@corva/ui 0.60.0-10 → 0.60.0-11

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 e=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("react"),t=require("@material-ui/core"),l=require("uuid/v4"),i=require("classnames");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=a(l),n=a(i),d=t.makeStyles((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),s=function(l){var i,a,s,p,c,b,M,m=l.FormControlProps,f=l.InputLabelProps,x=l.label,I=l.formHelperText,v=e.__rest(l,["FormControlProps","InputLabelProps","label","formHelperText"]),y=r.useMemo(u.default,[]),g=d();return o.jsxs(t.FormControl,e.__assign({},m,{classes:e.__assign(e.__assign({},m.classes),{root:n.default(null===(a=m.classes)||void 0===a?void 0:a.root,g.formControlRoot,(i={},i[g.error]=v.error,i))}),disabled:m.disabled||v.disabled},{children:[x&&o.jsx(t.InputLabel,e.__assign({id:y},f,{children:x})),o.jsx(t.Select,e.__assign({},v,{labelId:y,label:x,MenuProps:e.__assign(e.__assign({},null==v?void 0:v.MenuProps),{classes:e.__assign(e.__assign({},null===(s=null==v?void 0:v.MenuProps)||void 0===s?void 0:s.classes),{paper:null===(c=null===(p=null==v?void 0:v.MenuProps)||void 0===p?void 0:p.classes)||void 0===c?void 0:c.paper,list:n.default(null===(M=null===(b=null==v?void 0:v.MenuProps)||void 0===b?void 0:b.classes)||void 0===M?void 0:M.list,g.menuList)})})})),I&&o.jsx(t.FormHelperText,{children:I})]}))};s.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1},module.exports=s;
1
+ "use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),o=require("react/jsx-runtime"),r=require("react"),t=require("@material-ui/core"),i=require("uuid/v4"),l=require("classnames");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(i),u=a(l),d=t.makeStyles((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:e.palette.primary.text6,"& svg":{height:16,width:16}},"&:not(.Mui-error):not(.Mui-disabled):not(.Mui-focused) .MuiInputAdornment-root:hover":{color:e.palette.primary.contrastText},"&.Mui-error":{"& .MuiInputAdornment-root":{color:e.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:e.palette.primary.main}}}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),p=function(i){var l,a,p,s,c,M,m,b=i.FormControlProps,f=i.InputLabelProps,I=i.label,x=i.formHelperText,y=e.__rest(i,["FormControlProps","InputLabelProps","label","formHelperText"]),v=r.useMemo(n.default,[]),g=d();return o.jsxs(t.FormControl,e.__assign({},b,{classes:e.__assign(e.__assign({},b.classes),{root:u.default(null===(a=b.classes)||void 0===a?void 0:a.root,g.formControlRoot,(l={},l[g.error]=y.error,l))}),disabled:b.disabled||y.disabled},{children:[I&&o.jsx(t.InputLabel,e.__assign({id:v},f,{children:I})),o.jsx(t.Select,e.__assign({},y,{labelId:v,label:I,MenuProps:e.__assign(e.__assign({},null==y?void 0:y.MenuProps),{classes:e.__assign(e.__assign({},null===(p=null==y?void 0:y.MenuProps)||void 0===p?void 0:p.classes),{paper:null===(c=null===(s=null==y?void 0:y.MenuProps)||void 0===s?void 0:s.classes)||void 0===c?void 0:c.paper,list:u.default(null===(m=null===(M=null==y?void 0:y.MenuProps)||void 0===M?void 0:M.classes)||void 0===m?void 0:m.list,g.menuList)})})})),x&&o.jsx(t.FormHelperText,{children:x})]}))};p.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1},module.exports=p;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA6ItC,QAAA,MAAM,MAAM;gDAA+C,WAAW;;;;;;;;CAyCrE,CAAC;AAUF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAkKtC,QAAA,MAAM,MAAM;gDAA+C,WAAW;;;;;;;;CAyCrE,CAAC;AAUF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- import{__rest as e,__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as l}from"react";import{makeStyles as i,FormControl as a,InputLabel as u,Select as n,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=i((function(e){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:e.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(e.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(e.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:e.palette.primary.text6,"&.Mui-focused":{color:e.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:e.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:e.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:e.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:e.palette.background.b6,"&:hover":{backgroundColor:e.palette.background.b7},"&.Mui-disabled":{backgroundColor:e.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:e.palette.primary.text6}},menuList:{backgroundColor:e.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:e.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(e.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:e.palette.error.main,"&.Mui-focused":{color:e.palette.error.main},"&.Mui-disabled":{color:e.palette.error.main}},"& .MuiFormHelperText-root":{color:e.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(e.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(e.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.error.main,opacity:"0.4"}}}})),m=function(i){var m,b,M,f,I,x,v,y=i.FormControlProps,F=i.InputLabelProps,g=i.label,L=i.formHelperText,P=e(i,["FormControlProps","InputLabelProps","label","formHelperText"]),C=l(p,[]),S=s();return r(a,o({},y,{classes:o(o({},y.classes),{root:c(null===(b=y.classes)||void 0===b?void 0:b.root,S.formControlRoot,(m={},m[S.error]=P.error,m))}),disabled:y.disabled||P.disabled},{children:[g&&t(u,o({id:C},F,{children:g})),t(n,o({},P,{labelId:C,label:g,MenuProps:o(o({},null==P?void 0:P.MenuProps),{classes:o(o({},null===(M=null==P?void 0:P.MenuProps)||void 0===M?void 0:M.classes),{paper:null===(I=null===(f=null==P?void 0:P.MenuProps)||void 0===f?void 0:f.classes)||void 0===I?void 0:I.paper,list:c(null===(v=null===(x=null==P?void 0:P.MenuProps)||void 0===x?void 0:x.classes)||void 0===v?void 0:v.list,S.menuList)})})})),L&&t(d,{children:L})]}))};m.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{m as default};
1
+ import{__rest as o,__assign as e}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useMemo as i}from"react";import{makeStyles as l,FormControl as a,InputLabel as n,Select as u,FormHelperText as d}from"@material-ui/core";import p from"uuid/v4";import c from"classnames";var s=l((function(o){return{formControlRoot:{"&:hover":{"& .MuiFormLabel-root":{color:o.palette.primary.contrastText},"& .MuiInput-underline:not(.Mui-disabled), & .MuiFilledInput-underline:not(.Mui-disabled)":{"&::before":{borderBottom:"2px solid ".concat(o.palette.primary.contrastText)}},"& .MuiSvgIcon-root.MuiSelect-icon":{color:o.palette.primary.contrastText}},"& .MuiInputBase-root.Mui-focused":{"& .MuiSvgIcon-root.MuiSelect-icon":{color:o.palette.primary.main}},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::before":{borderBottom:"1px solid ".concat(o.palette.primary.text6)},"&.Mui-disabled":{"&::before":{opacity:"0.4",borderBottom:"1px solid ".concat(o.palette.primary.text6)},"&::after":{opacity:"0.4"}}},"& .MuiSelect-root":{"&.Mui-disabled":{color:o.palette.primary.contrastText,opacity:"0.4"}},"& .MuiFormLabel-root":{color:o.palette.primary.text6,"&.Mui-focused":{color:o.palette.primary.main},"&.Mui-disabled.MuiInputLabel-root":{color:o.palette.primary.text6,opacity:"0.4"}},"& .MuiSelect-icon.Mui-disabled":{color:o.palette.primary.contrastText,opacity:"0.4"},"& .MuiFormHelperText-root":{color:o.palette.primary.text6,"&.Mui-disabled":{opacity:"0.4"}},"& .MuiFilledInput-root":{backgroundColor:o.palette.background.b6,"&:hover":{backgroundColor:o.palette.background.b7},"&.Mui-disabled":{backgroundColor:o.palette.background.b6,opacity:"0.4"}},"& .MuiInputLabel-filled":{left:2},"& .MuiSelect-filled":{paddingLeft:14},"& .MuiSvgIcon-root.MuiSelect-icon":{color:o.palette.primary.text6},"& .MuiInputBase-root":{"& .MuiInputAdornment-root":{color:o.palette.primary.text6,"& svg":{height:16,width:16}},"&:not(.Mui-error):not(.Mui-disabled):not(.Mui-focused) .MuiInputAdornment-root:hover":{color:o.palette.primary.contrastText},"&.Mui-error":{"& .MuiInputAdornment-root":{color:o.palette.error.main}},"&.Mui-disabled":{"& .MuiInputAdornment-root":{opacity:"0.4"}},"&.Mui-focused":{"& .MuiInputAdornment-root":{color:o.palette.primary.main}}}},menuList:{backgroundColor:o.palette.background.b9,"& .MuiMenuItem-root":{"&.Mui-selected":{backgroundColor:o.palette.primary.text9}}},error:{"&:hover":{"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"2px solid ".concat(o.palette.error.main)}},"& .MuiInput-underline.Mui-disabled, & .MuiFilledInput-underline.Mui-disabled":{"&::before":{borderBottom:"1px solid ".concat(o.palette.error.main)},"&::after":{display:"none"}},"& .MuiOutlinedInput-root.Mui-error:not(.Mui-disabled) .MuiOutlinedInput-notchedOutline":{borderWidth:2}},"& .MuiFormLabel-root.MuiInputLabel-root":{color:o.palette.error.main,"&.Mui-focused":{color:o.palette.error.main},"&.Mui-disabled":{color:o.palette.error.main}},"& .MuiFormHelperText-root":{color:o.palette.error.main},"& .MuiInput-underline, & .MuiFilledInput-underline":{"&::after":{borderBottom:"1px solid ".concat(o.palette.error.main)},"&.Mui-disabled::after":{display:"none"},"&.Mui-disabled::before":{borderBottom:"1px solid ".concat(o.palette.error.main)}},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:o.palette.error.main,opacity:"0.4"}}}})),m=function(l){var m,M,b,f,I,x,y,v=l.FormControlProps,g=l.InputLabelProps,F=l.label,h=l.formHelperText,L=o(l,["FormControlProps","InputLabelProps","label","formHelperText"]),P=i(p,[]),C=s();return r(a,e({},v,{classes:e(e({},v.classes),{root:c(null===(M=v.classes)||void 0===M?void 0:M.root,C.formControlRoot,(m={},m[C.error]=L.error,m))}),disabled:v.disabled||L.disabled},{children:[F&&t(n,e({id:P},g,{children:F})),t(u,e({},L,{labelId:P,label:F,MenuProps:e(e({},null==L?void 0:L.MenuProps),{classes:e(e({},null===(b=null==L?void 0:L.MenuProps)||void 0===b?void 0:b.classes),{paper:null===(I=null===(f=null==L?void 0:L.MenuProps)||void 0===f?void 0:f.classes)||void 0===I?void 0:I.paper,list:c(null===(y=null===(x=null==L?void 0:L.MenuProps)||void 0===x?void 0:x.classes)||void 0===y?void 0:y.list,C.menuList)})})})),h&&t(d,{children:h})]}))};m.defaultProps={FormControlProps:{},InputLabelProps:{},label:null,formHelperText:null,error:!1};export{m as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.60.0-10",
3
+ "version": "0.60.0-11",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"