@corva/ui 0.85.0-0 → 0.85.0-2

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({"data-testid":"Button_".concat(e.children)},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:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),l=e.forwardRef((function(e,t){var l=e.classes,c=void 0===l?{}:l,s=e.variation,d=r.__rest(e,["classes","variation"]),u=i(),m=r.__assign(r.__assign({},c),{root:n.default(null==u?void 0:u[s],c.root),disabled:n.default(null==u?void 0:u["".concat(s,"Disabled")],c.disabled)}),p=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)},p))}));l.defaultProps={variation:"default"};var c=e.memo(l);module.exports=c;
@@ -1 +1 @@
1
- "use strict";var i=require("./palette.mjs.js"),o=i.primary,t=i.background,e={MuiButton:{root:{height:36,padding:"12px 16px",letterSpacing:"1px","&.Mui-disabled":{opacity:.4},"&:hover":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)"},"& .MuiButton-label":{lineHeight:0},"& .MuiSvgIcon-root":{color:"inherit"},"& .MuiButton-startIcon":{"&.MuiButton-iconSizeSmall":{marginLeft:"-4px",marginRight:4},"&.MuiButton-iconSizeMedium":{marginLeft:"-8px"},"&.MuiButton-iconSizeLarge":{marginLeft:"-8px"}},"& .MuiButton-endIcon":{"&.MuiButton-iconSizeSmall":{marginRight:"-4px",marginLeft:4},"&.MuiButton-iconSizeMedium":{marginRight:"-8px"},"&.MuiButton-iconSizeLarge":{marginRight:"-8px"}},"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeLarge > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeSmall > *:first-child":{fontSize:"24px"}},sizeLarge:{height:40,fontSize:16,fontWeight:700,padding:"12px 16px"},sizeSmall:{height:30,padding:8},contained:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)","&:hover":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)"}},containedPrimary:{"&.Mui-disabled":{backgroundColor:o.main,color:"#FFFFFF"}},textPrimary:{"&:hover":{color:o.main,backgroundColor:"rgba(3, 188, 212, 0.2)"},"&.Mui-disabled":{color:o.main}},text:{padding:"12px 16px",color:o.text6,"&:hover":{color:"#FFFFFF",backgroundColor:t.b7},"&.Mui-disabled":{color:o.text6}}}};module.exports=e;
1
+ "use strict";var i=require("./palette.mjs.js"),o=i.primary,t=i.background,n={MuiButton:{root:{height:36,padding:"12px 16px",borderRadius:8,boxShadow:"none !important","&:hover":{boxShadow:"none !important"},"&.Mui-disabled":{opacity:.4},"& .MuiButton-label":{lineHeight:0},"& .MuiSvgIcon-root":{color:"inherit"},"& .MuiButton-startIcon":{"&.MuiButton-iconSizeSmall":{marginLeft:"-2px",marginRight:4},"&.MuiButton-iconSizeMedium":{marginLeft:"-4px"},"&.MuiButton-iconSizeLarge":{marginLeft:"-4px"}},"& .MuiButton-endIcon":{"&.MuiButton-iconSizeSmall":{marginRight:"-2px",marginLeft:4},"&.MuiButton-iconSizeMedium":{marginRight:"-4px"},"&.MuiButton-iconSizeLarge":{marginRight:"-4px"}},"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeLarge > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeSmall > *:first-child":{fontSize:"20px"},"& .MuiButton-iconSizeSmall > .i-icon, & .MuiButton-iconSizeSmall > .i-icon > svg":{width:"20px !important",height:"20px !important"}},sizeLarge:{height:40,fontSize:16,fontWeight:500,padding:"12px 16px"},sizeSmall:{height:32,fontSize:14,padding:8},contained:{},containedPrimary:{color:t.b2,"&:hover":{backgroundColor:o.light},"&.Mui-disabled":{backgroundColor:o.main,color:t.b2}},textPrimary:{"&:hover":{color:o.light,backgroundColor:"rgba(3, 188, 212, 0.24)"},"&.Mui-disabled":{color:o.main}},text:{padding:"12px 16px",color:o.text6,"&:hover":{color:"#FFFFFF",backgroundColor:t.b7},"&.Mui-disabled":{color:o.text6}}}};module.exports=n;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("classnames"),r=require("@icon-park/react/es/all"),s=require("@material-ui/core"),a=require("./constants.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t),u=n(r),l=s.makeStyles({iconWrapper:function(e){var i=e.iconSize,t=void 0===i?24:i;return{width:t,height:t}}});exports.withCustomIconSize=function(t){return void 0===t&&(t=null),function(r){var s=r.size,n=void 0===s?24:s,o=r.className,u=r.fill,l=e.__rest(r,["size","className","fill"]),c="string"==typeof n?a.ICON_SIZES[n]:n;return i.jsx(t,e.__assign({className:o,width:c,height:c,fill:u||"#FFFFFF"},l))}},exports.withCustomSize=function(t){return function(r){var s=r.size,n=void 0===s?24:s,c=r.className,f=e.__rest(r,["size","className"]),_="string"==typeof n?a.ICON_SIZES[n]:n,d=a.STROKE_WIDTH_BY_ICON_SIZE[_],m=l({iconSize:_});return i.jsx(u.default,e.__assign({strokeWidth:d},f,{type:t,className:o.default(m.iconWrapper,c),size:_}))}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../ext-esm/tslib/tslib.es6.js'),i=require("react/jsx-runtime"),t=require("classnames"),r=require("@icon-park/react/es/all"),s=require("@material-ui/core"),a=require("./constants.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t),u=n(r),l=s.makeStyles({iconWrapper:function(e){var i=e.iconSize,t=void 0===i?24:i;return{width:t,height:t}}});exports.withCustomIconSize=function(t){return void 0===t&&(t=null),function(r){var s=r.size,n=void 0===s?24:s,o=r.className,u=r.fill,l=e.__rest(r,["size","className","fill"]),c="string"==typeof n?a.ICON_SIZES[n]:n;return i.jsx(t,e.__assign({className:o,width:c,height:c,fill:u||"#FFFFFF"},l))}},exports.withCustomSize=function(t){return function(r){var s=r.size,n=void 0===s?24:s,c=r.className,f=e.__rest(r,["size","className"]),d="string"==typeof n?a.ICON_SIZES[n]:n,m=l({iconSize:d});return i.jsx(u.default,e.__assign({strokeWidth:3},f,{type:t,className:o.default(m.iconWrapper,c),size:d}))}};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ICON_SIZES={small:16,medium:24},exports.STROKE_WIDTH_BY_ICON_SIZE={16:4,24:3};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.ICON_SIZES={small:20,medium:24};
@@ -1,7 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonProps as MUIButtonProps } from '@material-ui/core/Button';
3
- declare type Variation = 'primary' | 'secondary' | 'tertiary' | 'dangerPrimary' | 'dangerSecondary';
3
+ declare type Variation = 'primary' | 'secondary' | 'tertiary' | 'dangerPrimary' | 'dangerSecondary' | 'default';
4
4
  export interface ButtonProps extends MUIButtonProps {
5
+ color?: 'inherit' | 'primary' | 'default';
6
+ variant?: 'text' | 'contained';
5
7
  variation?: Variation;
6
8
  }
7
9
  declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<ButtonProps, "type" | "name" | "key" | "value" | "title" | "size" | "id" | "form" | "slot" | "style" | "hidden" | "security" | "role" | "property" | "resource" | "variation" | "action" | "children" | "href" | "className" | "onClick" | "tabIndex" | "classes" | "color" | "translate" | "disabled" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "innerRef" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps"> & import("react").RefAttributes<HTMLButtonElement>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/Button/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGzE,aAAK,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,GAAG,iBAAiB,CAAC;AA4C5F,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;;AA2BD,wBAA4B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Button/components/Button/index.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAGzE,aAAK,SAAS,GACV,SAAS,GACT,WAAW,GACX,UAAU,GACV,eAAe,GACf,iBAAiB,GACjB,SAAS,CAAC;AAsDd,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC/B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;;AA2BD,wBAA4B"}
@@ -1 +1 @@
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};
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:r.palette.background.b2,backgroundColor:"".concat(r.palette.error.dark," !important"),"&:hover":{backgroundColor:"".concat(r.palette.error.main," !important")}},tertiary:{color:r.palette.primary.text6,backgroundColor:"rgba(255, 255, 255, 0.08)",textTransform:"capitalize","&:hover":{color:r.palette.primary.contrastText,backgroundColor:"rgba(255, 255, 255, 0.16)"}},dangerPrimaryDisabled:{backgroundColor:r.palette.error.dark,color:"".concat(r.palette.background.b2," !important")},dangerSecondary:{color:r.palette.error.dark,"&:hover":{color:r.palette.error.main,backgroundColor:"rgba(244, 67, 54, 0.24)"}},dangerSecondaryDisabled:{color:"".concat(r.palette.error.dark," !important")}}})),d=t((function(t,e){var n=t.classes,d=void 0===n?{}:n,s=t.variation,m=r(t,["classes","variation"]),p=l(),u=a(a({},d),{root:c(null==p?void 0:p[s],d.root),disabled:c(null==p?void 0:p["".concat(s,"Disabled")],d.disabled)}),b=a(a(a({classes:u},function(r){return{primary:{color:"primary",variant:"contained"},secondary:{color:"primary"},dangerPrimary:{variant:"contained"}}[r]||{}}(t.variation)),m),{ref:e});return o(i,a({"data-testid":"Button_".concat(t.children)},b))}));d.defaultProps={variation:"default"};var s=e(d);export{s as default};
@@ -3,13 +3,14 @@ declare namespace _default {
3
3
  const root: {
4
4
  height: number;
5
5
  padding: string;
6
- letterSpacing: string;
7
- '&.Mui-disabled': {
8
- opacity: number;
9
- };
6
+ borderRadius: number;
7
+ boxShadow: string;
10
8
  '&:hover': {
11
9
  boxShadow: string;
12
10
  };
11
+ '&.Mui-disabled': {
12
+ opacity: number;
13
+ };
13
14
  '& .MuiButton-label': {
14
15
  lineHeight: number;
15
16
  };
@@ -49,6 +50,10 @@ declare namespace _default {
49
50
  '& .MuiButton-iconSizeSmall > *:first-child': {
50
51
  fontSize: string;
51
52
  };
53
+ '& .MuiButton-iconSizeSmall > .i-icon, & .MuiButton-iconSizeSmall > .i-icon > svg': {
54
+ width: string;
55
+ height: string;
56
+ };
52
57
  };
53
58
  namespace sizeLarge {
54
59
  const height: number;
@@ -59,16 +64,17 @@ declare namespace _default {
59
64
  namespace sizeSmall {
60
65
  const height_1: number;
61
66
  export { height_1 as height };
67
+ const fontSize_1: number;
68
+ export { fontSize_1 as fontSize };
62
69
  const padding_1: number;
63
70
  export { padding_1 as padding };
64
71
  }
65
- const contained: {
66
- boxShadow: string;
72
+ const contained: {};
73
+ const containedPrimary: {
74
+ color: string;
67
75
  '&:hover': {
68
- boxShadow: string;
76
+ backgroundColor: string;
69
77
  };
70
- };
71
- const containedPrimary: {
72
78
  '&.Mui-disabled': {
73
79
  backgroundColor: string;
74
80
  color: string;
@@ -1 +1 @@
1
- import i from"./palette.mjs.js";var o=i.primary,t=i.background,n={MuiButton:{root:{height:36,padding:"12px 16px",letterSpacing:"1px","&.Mui-disabled":{opacity:.4},"&:hover":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)"},"& .MuiButton-label":{lineHeight:0},"& .MuiSvgIcon-root":{color:"inherit"},"& .MuiButton-startIcon":{"&.MuiButton-iconSizeSmall":{marginLeft:"-4px",marginRight:4},"&.MuiButton-iconSizeMedium":{marginLeft:"-8px"},"&.MuiButton-iconSizeLarge":{marginLeft:"-8px"}},"& .MuiButton-endIcon":{"&.MuiButton-iconSizeSmall":{marginRight:"-4px",marginLeft:4},"&.MuiButton-iconSizeMedium":{marginRight:"-8px"},"&.MuiButton-iconSizeLarge":{marginRight:"-8px"}},"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeLarge > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeSmall > *:first-child":{fontSize:"24px"}},sizeLarge:{height:40,fontSize:16,fontWeight:700,padding:"12px 16px"},sizeSmall:{height:30,padding:8},contained:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)","&:hover":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16)"}},containedPrimary:{"&.Mui-disabled":{backgroundColor:o.main,color:"#FFFFFF"}},textPrimary:{"&:hover":{color:o.main,backgroundColor:"rgba(3, 188, 212, 0.2)"},"&.Mui-disabled":{color:o.main}},text:{padding:"12px 16px",color:o.text6,"&:hover":{color:"#FFFFFF",backgroundColor:t.b7},"&.Mui-disabled":{color:o.text6}}}};export{n as default};
1
+ import i from"./palette.mjs.js";var o=i.primary,t=i.background,n={MuiButton:{root:{height:36,padding:"12px 16px",borderRadius:8,boxShadow:"none !important","&:hover":{boxShadow:"none !important"},"&.Mui-disabled":{opacity:.4},"& .MuiButton-label":{lineHeight:0},"& .MuiSvgIcon-root":{color:"inherit"},"& .MuiButton-startIcon":{"&.MuiButton-iconSizeSmall":{marginLeft:"-2px",marginRight:4},"&.MuiButton-iconSizeMedium":{marginLeft:"-4px"},"&.MuiButton-iconSizeLarge":{marginLeft:"-4px"}},"& .MuiButton-endIcon":{"&.MuiButton-iconSizeSmall":{marginRight:"-2px",marginLeft:4},"&.MuiButton-iconSizeMedium":{marginRight:"-4px"},"&.MuiButton-iconSizeLarge":{marginRight:"-4px"}},"& .MuiButton-iconSizeMedium > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeLarge > *:first-child":{fontSize:"24px"},"& .MuiButton-iconSizeSmall > *:first-child":{fontSize:"20px"},"& .MuiButton-iconSizeSmall > .i-icon, & .MuiButton-iconSizeSmall > .i-icon > svg":{width:"20px !important",height:"20px !important"}},sizeLarge:{height:40,fontSize:16,fontWeight:500,padding:"12px 16px"},sizeSmall:{height:32,fontSize:14,padding:8},contained:{},containedPrimary:{color:t.b2,"&:hover":{backgroundColor:o.light},"&.Mui-disabled":{backgroundColor:o.main,color:t.b2}},textPrimary:{"&:hover":{color:o.light,backgroundColor:"rgba(3, 188, 212, 0.24)"},"&.Mui-disabled":{color:o.main}},text:{padding:"12px 16px",color:o.text6,"&:hover":{color:"#FFFFFF",backgroundColor:t.b7},"&.Mui-disabled":{color:o.text6}}}};export{n as default};
@@ -1 +1 @@
1
- {"version":3,"file":"WithCustomSize.d.ts","sourceRoot":"","sources":["../../src/icons/WithCustomSize.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAmB,MAAM,SAAS,CAAC;AAa9E,eAAO,MAAM,cAAc,aAAc,MAAM,oCACa,aAAa,KAAG,WAe3E,CAAC;AAEF,eAAO,MAAM,kBAAkB,gEAM1B,mBAAmB,KAAG,WAa1B,CAAC"}
1
+ {"version":3,"file":"WithCustomSize.d.ts","sourceRoot":"","sources":["../../src/icons/WithCustomSize.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAmB,MAAM,SAAS,CAAC;AAc9E,eAAO,MAAM,cAAc,aAAc,MAAM,oCACa,aAAa,KAAG,WAc3E,CAAC;AAEF,eAAO,MAAM,kBAAkB,gEAM1B,mBAAmB,KAAG,WAa1B,CAAC"}
@@ -1 +1 @@
1
- import{__rest as i,__assign as r}from'./../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import t from"classnames";import o from"@icon-park/react/es/all";import{makeStyles as s}from"@material-ui/core";import{ICON_SIZES as n,STROKE_WIDTH_BY_ICON_SIZE as a}from"./constants.js";var m=s({iconWrapper:function(i){var r=i.iconSize,e=void 0===r?24:r;return{width:e,height:e}}}),c=function(s){return function(c){var l=c.size,f=void 0===l?24:l,p=c.className,u=i(c,["size","className"]),d="string"==typeof f?n[f]:f,v=a[d],h=m({iconSize:d});return e(o,r({strokeWidth:v},u,{type:s,className:t(h.iconWrapper,p),size:d}))}},l=function(t){return void 0===t&&(t=null),function(o){var s=o.size,a=void 0===s?24:s,m=o.className,c=o.fill,l=i(o,["size","className","fill"]),f="string"==typeof a?n[a]:a;return e(t,r({className:m,width:f,height:f,fill:c||"#FFFFFF"},l))}};export{l as withCustomIconSize,c as withCustomSize};
1
+ import{__rest as i,__assign as r}from'./../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import t from"classnames";import o from"@icon-park/react/es/all";import{makeStyles as s}from"@material-ui/core";import{ICON_SIZES as n}from"./constants.js";var a=s({iconWrapper:function(i){var r=i.iconSize,e=void 0===r?24:r;return{width:e,height:e}}}),m=function(s){return function(m){var c=m.size,l=void 0===c?24:c,f=m.className,p=i(m,["size","className"]),u="string"==typeof l?n[l]:l,d=a({iconSize:u});return e(o,r({strokeWidth:3},p,{type:s,className:t(d.iconWrapper,f),size:u}))}},c=function(t){return void 0===t&&(t=null),function(o){var s=o.size,a=void 0===s?24:s,m=o.className,c=o.fill,l=i(o,["size","className","fill"]),f="string"==typeof a?n[a]:a;return e(t,r({className:m,width:f,height:f,fill:c||"#FFFFFF"},l))}};export{c as withCustomIconSize,m as withCustomSize};
@@ -1,4 +1,3 @@
1
1
  import { IconSizeType } from './types';
2
2
  export declare const ICON_SIZES: Record<IconSizeType, number>;
3
- export declare const STROKE_WIDTH_BY_ICON_SIZE: Record<'16' | '24', number>;
4
3
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/icons/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,IAAI,GAAG,IAAI,EAAE,MAAM,CAGjE,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/icons/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAGnD,CAAC"}
@@ -1 +1 @@
1
- var m={small:16,medium:24},a={16:4,24:3};export{m as ICON_SIZES,a as STROKE_WIDTH_BY_ICON_SIZE};
1
+ var m={small:20,medium:24};export{m as ICON_SIZES};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.85.0-0",
3
+ "version": "0.85.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"