math-main-components 0.0.42 → 0.0.43
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,9 +1,9 @@
|
|
1
|
-
import React, {
|
1
|
+
import React, { MouseEvent } from 'react';
|
2
2
|
export declare function AuthButton({ text, type, theme, iconName, isVisible, onClick }: {
|
3
3
|
text: string | undefined;
|
4
4
|
type?: 'submit' | 'reset' | 'button' | undefined;
|
5
5
|
theme?: 'primary' | 'secondary' | undefined;
|
6
6
|
iconName?: string;
|
7
7
|
isVisible?: boolean;
|
8
|
-
onClick?:
|
8
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
9
9
|
}): React.JSX.Element;
|
@@ -6,7 +6,7 @@ export interface DialogData {
|
|
6
6
|
export declare function Dialog({ data, text, onClose, onSubmit, children }: {
|
7
7
|
data?: DialogData;
|
8
8
|
text?: any;
|
9
|
-
onClose?: (event: React.
|
10
|
-
onSubmit?: (event: React.
|
9
|
+
onClose?: (event: React.MouseEvent<HTMLDivElement>, data: any) => void;
|
10
|
+
onSubmit?: (event: React.MouseEvent<HTMLButtonElement>, data: any) => void;
|
11
11
|
children: any;
|
12
12
|
}): React.JSX.Element;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import {
|
1
|
+
import { MouseEvent } from "react";
|
2
2
|
export interface SvgIconProps {
|
3
3
|
iconName?: string;
|
4
4
|
size?: string;
|
5
5
|
fill?: string;
|
6
6
|
className?: string;
|
7
|
-
onClick?:
|
7
|
+
onClick?: (event: MouseEvent<HTMLSpanElement>) => void;
|
8
8
|
}
|
package/dist/index.cjs.js
CHANGED
@@ -57,12 +57,11 @@ var css_248z$r = ".styles-module_container__4978M {\n max-width: 100%;\n width
|
|
57
57
|
var styles$r = {"container":"styles-module_container__4978M","visible":"styles-module_visible__uvQwq","hidden":"styles-module_hidden__Oruyx","rotate":"styles-module_rotate__mmYPQ","button":"styles-module_button__BWOOi","secondary":"styles-module_secondary__Eoik3"};
|
58
58
|
styleInject(css_248z$r);
|
59
59
|
|
60
|
-
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick
|
61
|
-
return (React__default["default"].createElement(
|
62
|
-
React__default["default"].createElement("
|
63
|
-
|
64
|
-
|
65
|
-
React__default["default"].createElement(SvgIcon, { iconName: iconName })))));
|
60
|
+
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
61
|
+
return (React__default["default"].createElement("div", { className: [styles$r.container, isVisible ? styles$r.visible : styles$r.hidden, ["arrow_forward"].includes(iconName) ? styles$r.rotate : null].join(" ") },
|
62
|
+
React__default["default"].createElement("button", { type: type, className: `${styles$r.button} ${styles$r[theme]}`, onClick: onClick },
|
63
|
+
text,
|
64
|
+
React__default["default"].createElement(SvgIcon, { iconName: iconName }))));
|
66
65
|
}
|
67
66
|
|
68
67
|
var css_248z$q = ".styles-module_card__bOd85 {\n background: #F4F4F4;\n border: 1px solid #B1B1B1;\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: grey;\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: grey;\n font-weight: 400;\n font-size: 18px;\n}";
|
package/dist/index.esm.js
CHANGED
@@ -49,12 +49,11 @@ var css_248z$r = ".styles-module_container__4978M {\n max-width: 100%;\n width
|
|
49
49
|
var styles$r = {"container":"styles-module_container__4978M","visible":"styles-module_visible__uvQwq","hidden":"styles-module_hidden__Oruyx","rotate":"styles-module_rotate__mmYPQ","button":"styles-module_button__BWOOi","secondary":"styles-module_secondary__Eoik3"};
|
50
50
|
styleInject(css_248z$r);
|
51
51
|
|
52
|
-
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick
|
53
|
-
return (React.createElement(
|
54
|
-
React.createElement("
|
55
|
-
|
56
|
-
|
57
|
-
React.createElement(SvgIcon, { iconName: iconName })))));
|
52
|
+
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
53
|
+
return (React.createElement("div", { className: [styles$r.container, isVisible ? styles$r.visible : styles$r.hidden, ["arrow_forward"].includes(iconName) ? styles$r.rotate : null].join(" ") },
|
54
|
+
React.createElement("button", { type: type, className: `${styles$r.button} ${styles$r[theme]}`, onClick: onClick },
|
55
|
+
text,
|
56
|
+
React.createElement(SvgIcon, { iconName: iconName }))));
|
58
57
|
}
|
59
58
|
|
60
59
|
var css_248z$q = ".styles-module_card__bOd85 {\n background: #F4F4F4;\n border: 1px solid #B1B1B1;\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: grey;\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: grey;\n font-weight: 400;\n font-size: 18px;\n}";
|