@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.
- package/cjs-bundle/components/Button/components/Button/index.js +1 -1
- package/cjs-bundle/config/theme/buttonOverrides.js +1 -1
- package/cjs-bundle/icons/WithCustomSize.js +1 -1
- package/cjs-bundle/icons/constants.js +1 -1
- package/components/Button/components/Button/index.d.ts +3 -1
- package/components/Button/components/Button/index.d.ts.map +1 -1
- package/components/Button/components/Button/index.js +1 -1
- package/config/theme/buttonOverrides.d.ts +15 -9
- package/config/theme/buttonOverrides.js +1 -1
- package/icons/WithCustomSize.d.ts.map +1 -1
- package/icons/WithCustomSize.js +1 -1
- package/icons/constants.d.ts +0 -1
- package/icons/constants.d.ts.map +1 -1
- package/icons/constants.js +1 -1
- package/package.json +1 -1
|
@@ -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:
|
|
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,
|
|
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"]),
|
|
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:
|
|
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,
|
|
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:
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
72
|
+
const contained: {};
|
|
73
|
+
const containedPrimary: {
|
|
74
|
+
color: string;
|
|
67
75
|
'&:hover': {
|
|
68
|
-
|
|
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",
|
|
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;
|
|
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"}
|
package/icons/WithCustomSize.js
CHANGED
|
@@ -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
|
|
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};
|
package/icons/constants.d.ts
CHANGED
package/icons/constants.d.ts.map
CHANGED
|
@@ -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
|
|
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"}
|
package/icons/constants.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var m={small:
|
|
1
|
+
var m={small:20,medium:24};export{m as ICON_SIZES};
|