math-main-components 0.0.27 → 0.0.28
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,7 +1,8 @@
|
|
1
1
|
import React, { CSSProperties, MouseEvent } from 'react';
|
2
|
-
export declare function FormButton({ text, style, iconName, onClick }: {
|
2
|
+
export declare function FormButton({ text, style, iconName, type, onClick }: {
|
3
3
|
text: string;
|
4
4
|
style?: CSSProperties;
|
5
5
|
iconName?: string;
|
6
|
+
type?: "submit" | "button" | "reset";
|
6
7
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
7
8
|
}): React.JSX.Element;
|
package/dist/index.cjs.js
CHANGED
@@ -154,9 +154,9 @@ var css_248z$l = ".styles-module_container__HOoBj {\n margin-bottom: 30px;\n}\n
|
|
154
154
|
var styles$l = {"container":"styles-module_container__HOoBj"};
|
155
155
|
styleInject(css_248z$l);
|
156
156
|
|
157
|
-
function FormButton({ text, style = {}, iconName = "", onClick = (event) => { } }) {
|
157
|
+
function FormButton({ text, style = {}, iconName = "", type = "submit", onClick = (event) => { } }) {
|
158
158
|
return (React__default["default"].createElement("div", { className: styles$l.container, style: style },
|
159
|
-
React__default["default"].createElement("button", { type:
|
159
|
+
React__default["default"].createElement("button", { type: type, onClick: onClick },
|
160
160
|
text,
|
161
161
|
iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
|
162
162
|
}
|
package/dist/index.esm.js
CHANGED
@@ -146,9 +146,9 @@ var css_248z$l = ".styles-module_container__HOoBj {\n margin-bottom: 30px;\n}\n
|
|
146
146
|
var styles$l = {"container":"styles-module_container__HOoBj"};
|
147
147
|
styleInject(css_248z$l);
|
148
148
|
|
149
|
-
function FormButton({ text, style = {}, iconName = "", onClick = (event) => { } }) {
|
149
|
+
function FormButton({ text, style = {}, iconName = "", type = "submit", onClick = (event) => { } }) {
|
150
150
|
return (React.createElement("div", { className: styles$l.container, style: style },
|
151
|
-
React.createElement("button", { type:
|
151
|
+
React.createElement("button", { type: type, onClick: onClick },
|
152
152
|
text,
|
153
153
|
iconName && React.createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
|
154
154
|
}
|