@corva/ui 3.33.0-0 → 3.33.0-1
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/componentsV2/Button/Button.js +1 -1
- package/componentsV2/Button/Button.d.ts +1 -1
- package/componentsV2/Button/Button.d.ts.map +1 -1
- package/componentsV2/Button/Button.js +1 -1
- package/componentsV2/Button/Button.stories.d.ts +1 -0
- package/componentsV2/Button/Button.stories.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),t=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require('./../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),t=require("react"),a=require("@material-ui/core"),i=require("classnames"),s=require("./Button.scss.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=o(i),n={primary:{variant:"contained",color:"primary"},secondary:{variant:"text",color:"primary"},primaryDestructive:{variant:"contained",color:"primary"},secondaryDestructive:{variant:"text",color:"primary"},tertiary:{variant:"text",color:"default"},chart:{variant:"text",color:"default"},chartColored:{variant:"text",color:"primary"}},d={primaryDestructive:s.primaryDestructive,secondaryDestructive:s.secondaryDestructive,chart:s.chart,chartColored:s.chart},l=t.forwardRef((function(t,i){var o=t.children,l=t.onClick,u=t.size,m=void 0===u?"medium":u,v=t.type,f=void 0===v?"secondary":v,y=t.prefix,p=t.suffix,x=t.disabled,h=t.testId,b=t.className,j=t.htmlAttributes,_=e.__rest(t,["children","onClick","size","type","prefix","suffix","disabled","testId","className","htmlAttributes"]);return r.jsx("div",{className:c.default(s.root,b),children:r.jsx(a.Button,e.__assign({},j,n[f],{size:m,ref:i,disabled:x,className:c.default(s.button,d[f],x&&s.disabled),"data-testid":h,startIcon:y,endIcon:p,onClick:l},_,{children:o}))})}));exports.Button=l;
|
|
2
2
|
//# sourceMappingURL=Button.js.map
|
|
@@ -9,7 +9,7 @@ export type ButtonProps = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Button visual style
|
|
11
11
|
*/
|
|
12
|
-
type?: 'primary' | 'secondary' | 'primaryDestructive' | 'secondaryDestructive' | 'tertiary' | 'chart';
|
|
12
|
+
type?: 'primary' | 'secondary' | 'primaryDestructive' | 'secondaryDestructive' | 'tertiary' | 'chart' | 'chartColored';
|
|
13
13
|
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
14
14
|
onMouseEnter?: MouseEventHandler<HTMLButtonElement>;
|
|
15
15
|
onMouseLeave?: MouseEventHandler<HTMLButtonElement>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EACD,SAAS,GACT,WAAW,GACX,oBAAoB,GACpB,sBAAsB,GACtB,UAAU,GACV,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvF,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,IAAI,CAAC,EACD,SAAS,GACT,WAAW,GACX,oBAAoB,GACpB,sBAAsB,GACtB,UAAU,GACV,OAAO,GACP,cAAc,CAAC;IACnB,OAAO,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAC/C,YAAY,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpD,YAAY,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpD,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CACnB,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,EAChD,SAAS,GAAG,cAAc,GAAG,cAAc,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAChF,CAAC;IAEF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAwCF,eAAO,MAAM,MAAM,2GAoClB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__rest as r,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{forwardRef as
|
|
1
|
+
import{__rest as r,__assign as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as e}from"react/jsx-runtime";import{forwardRef as a}from"react";import{Button as i}from"@material-ui/core";import o from"classnames";import s from"./Button.scss.js";var c={primary:{variant:"contained",color:"primary"},secondary:{variant:"text",color:"primary"},primaryDestructive:{variant:"contained",color:"primary"},secondaryDestructive:{variant:"text",color:"primary"},tertiary:{variant:"text",color:"default"},chart:{variant:"text",color:"default"},chartColored:{variant:"text",color:"primary"}},n={primaryDestructive:s.primaryDestructive,secondaryDestructive:s.secondaryDestructive,chart:s.chart,chartColored:s.chart},d=a((function(a,d){var l=a.children,m=a.onClick,u=a.size,p=void 0===u?"medium":u,v=a.type,y=void 0===v?"secondary":v,f=a.prefix,h=a.suffix,x=a.disabled,b=a.testId,D=a.className,C=a.htmlAttributes,I=r(a,["children","onClick","size","type","prefix","suffix","disabled","testId","className","htmlAttributes"]);return e("div",{className:o(s.root,D),children:e(i,t({},C,c[y],{size:p,ref:d,disabled:x,className:o(s.button,n[y],x&&s.disabled),"data-testid":b,startIcon:f,endIcon:h,onClick:m},I,{children:l}))})}));export{d as Button};
|
|
2
2
|
//# sourceMappingURL=Button.js.map
|
|
@@ -9,4 +9,5 @@ export declare const Type: () => JSX.Element;
|
|
|
9
9
|
export declare const Sizes: () => JSX.Element;
|
|
10
10
|
export declare const WithPrefixSuffix: () => JSX.Element;
|
|
11
11
|
export declare const WithHTMLAttributes: () => JSX.Element;
|
|
12
|
+
export declare const ChartButtonMenu: () => JSX.Element;
|
|
12
13
|
//# sourceMappingURL=Button.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"Button.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/Button/Button.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAoB,MAAM,OAAO,CAAC;AAKzD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AAqBF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBAA0B,CAAC;AAE/D,eAAO,MAAM,IAAI,mBAShB,CAAC;AAYF,eAAO,MAAM,KAAK,mBAYjB,CAAC;AASF,eAAO,MAAM,gBAAgB,mBA2B5B,CAAC;AAOF,eAAO,MAAM,kBAAkB,mBAW9B,CAAC;AAMF,eAAO,MAAM,eAAe,mBAmB3B,CAAC"}
|