@corva/ui 0.70.0-1 → 0.70.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=function(e){var
|
|
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;
|
|
@@ -4,11 +4,6 @@ declare type Variation = 'primary' | 'secondary' | 'tertiary' | 'dangerPrimary'
|
|
|
4
4
|
export interface ButtonProps extends MUIButtonProps {
|
|
5
5
|
variation?: Variation;
|
|
6
6
|
}
|
|
7
|
-
declare const _default: import("react").MemoExoticComponent<
|
|
8
|
-
(props: ButtonProps): JSX.Element;
|
|
9
|
-
defaultProps: {
|
|
10
|
-
variation: string;
|
|
11
|
-
};
|
|
12
|
-
}>;
|
|
7
|
+
declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<Pick<ButtonProps, "key" | "type" | "value" | "name" | "title" | "size" | "id" | "form" | "slot" | "style" | "children" | "href" | "className" | "onClick" | "tabIndex" | "role" | "classes" | "innerRef" | "color" | "lang" | "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" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "disabled" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "action" | "disableFocusRipple" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "fullWidth" | "variant" | "disableElevation" | "endIcon" | "startIcon" | "variation"> & import("react").RefAttributes<HTMLButtonElement>>>;
|
|
13
8
|
export default _default;
|
|
14
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/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 +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{memo as
|
|
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};
|