math-main-components 0.0.146 → 0.0.147
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/dist/components/AuthButton/AuthButton.d.ts +2 -1
- package/dist/components/Button/Button.d.ts +2 -1
- package/dist/components/CardButton/CardButton.d.ts +2 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/types/marketing/WebsiteData.d.ts +1 -1
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
2
|
-
export declare function AuthButton({ text, type, theme, iconName, isVisible, onClick }: {
|
2
|
+
export declare function AuthButton({ id, text, type, theme, iconName, isVisible, onClick }: {
|
3
|
+
id?: string;
|
3
4
|
text: string | undefined;
|
4
5
|
type?: 'submit' | 'reset' | 'button' | undefined;
|
5
6
|
theme?: 'primary' | 'secondary' | undefined;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
2
2
|
type ButtonType = "blue" | "red" | "grey" | "lightBlue";
|
3
|
-
export declare function Button({ text, iconName, iconFill, type, onClick }: {
|
3
|
+
export declare function Button({ id, text, iconName, iconFill, type, onClick }: {
|
4
|
+
id?: string;
|
4
5
|
text?: string;
|
5
6
|
iconName?: string;
|
6
7
|
iconFill?: string;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React, { MouseEvent } from 'react';
|
2
|
-
export declare function CardButton({ title, iconName, onClick, }: {
|
2
|
+
export declare function CardButton({ id, title, iconName, onClick, }: {
|
3
|
+
id?: string;
|
3
4
|
title: string;
|
4
5
|
iconName: string;
|
5
6
|
onClick?: (event: MouseEvent<HTMLDivElement>) => {};
|
package/dist/index.cjs.js
CHANGED
@@ -57,7 +57,7 @@ var css_248z$u = ".styles-module_container__4978M {\n max-width: 100%;\n width
|
|
57
57
|
var styles$u = {"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$u);
|
59
59
|
|
60
|
-
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
60
|
+
function AuthButton({ id, text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
61
61
|
return (React__default["default"].createElement("div", { className: [styles$u.container, isVisible ? styles$u.visible : styles$u.hidden, ["arrow_forward"].includes(iconName) ? styles$u.rotate : null].join(" ") },
|
62
62
|
React__default["default"].createElement("button", { type: type, className: `${styles$u.button} ${styles$u[theme]}`, onClick: onClick },
|
63
63
|
text,
|
@@ -68,7 +68,7 @@ var css_248z$t = ".styles-module_container__TP0rp {\n max-width: 100%;\n}\n.sty
|
|
68
68
|
var styles$t = {"container":"styles-module_container__TP0rp","button":"styles-module_button__Sh-fr","blue":"styles-module_blue__DRdbo","lightBlue":"styles-module_lightBlue__7EKfp","red":"styles-module_red__EhImH","grey":"styles-module_grey__kAVD1","onlyIcon":"styles-module_onlyIcon__bNVnI"};
|
69
69
|
styleInject(css_248z$t);
|
70
70
|
|
71
|
-
function Button({ text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
71
|
+
function Button({ id, text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
72
72
|
function onClickButton(event) {
|
73
73
|
event.preventDefault();
|
74
74
|
if (onClick)
|
@@ -84,7 +84,7 @@ var css_248z$s = ".styles-module_card__bOd85 {\n background: var(--background-2
|
|
84
84
|
var styles$s = {"card":"styles-module_card__bOd85"};
|
85
85
|
styleInject(css_248z$s);
|
86
86
|
|
87
|
-
function CardButton({ title, iconName, onClick, }) {
|
87
|
+
function CardButton({ id, title, iconName, onClick, }) {
|
88
88
|
function onClickCard(event) {
|
89
89
|
event.preventDefault();
|
90
90
|
if (onClick)
|
package/dist/index.esm.js
CHANGED
@@ -49,7 +49,7 @@ var css_248z$u = ".styles-module_container__4978M {\n max-width: 100%;\n width
|
|
49
49
|
var styles$u = {"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$u);
|
51
51
|
|
52
|
-
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
52
|
+
function AuthButton({ id, text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
53
53
|
return (React.createElement("div", { className: [styles$u.container, isVisible ? styles$u.visible : styles$u.hidden, ["arrow_forward"].includes(iconName) ? styles$u.rotate : null].join(" ") },
|
54
54
|
React.createElement("button", { type: type, className: `${styles$u.button} ${styles$u[theme]}`, onClick: onClick },
|
55
55
|
text,
|
@@ -60,7 +60,7 @@ var css_248z$t = ".styles-module_container__TP0rp {\n max-width: 100%;\n}\n.sty
|
|
60
60
|
var styles$t = {"container":"styles-module_container__TP0rp","button":"styles-module_button__Sh-fr","blue":"styles-module_blue__DRdbo","lightBlue":"styles-module_lightBlue__7EKfp","red":"styles-module_red__EhImH","grey":"styles-module_grey__kAVD1","onlyIcon":"styles-module_onlyIcon__bNVnI"};
|
61
61
|
styleInject(css_248z$t);
|
62
62
|
|
63
|
-
function Button({ text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
63
|
+
function Button({ id, text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
64
64
|
function onClickButton(event) {
|
65
65
|
event.preventDefault();
|
66
66
|
if (onClick)
|
@@ -76,7 +76,7 @@ var css_248z$s = ".styles-module_card__bOd85 {\n background: var(--background-2
|
|
76
76
|
var styles$s = {"card":"styles-module_card__bOd85"};
|
77
77
|
styleInject(css_248z$s);
|
78
78
|
|
79
|
-
function CardButton({ title, iconName, onClick, }) {
|
79
|
+
function CardButton({ id, title, iconName, onClick, }) {
|
80
80
|
function onClickCard(event) {
|
81
81
|
event.preventDefault();
|
82
82
|
if (onClick)
|