math-main-components 0.0.36 → 0.0.38
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, { MouseEvent } from 'react';
|
2
|
-
export declare function PrimaryButton({ text, iconName, type, onClick }: {
|
3
|
-
text
|
4
|
-
iconName
|
2
|
+
export declare function PrimaryButton({ text, iconName, iconFill, type, onClick }: {
|
3
|
+
text?: string;
|
4
|
+
iconName?: string;
|
5
|
+
iconFill?: string;
|
5
6
|
type?: string;
|
6
7
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
7
8
|
}): React.JSX.Element;
|
package/dist/index.cjs.js
CHANGED
@@ -385,20 +385,20 @@ function OptionFieldHorizontal({ title, iconName, onClick, preselected = false }
|
|
385
385
|
React__default["default"].createElement("h3", null, title)));
|
386
386
|
}
|
387
387
|
|
388
|
-
var css_248z$a = ".styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}";
|
389
|
-
var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","red":"styles-module_red__CHF3e"};
|
388
|
+
var css_248z$a = ".styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 span {\n font-size: 22px;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_grey__hdqot {\n background: #EEEEEE;\n color: black;\n}";
|
389
|
+
var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","onlyIcon":"styles-module_onlyIcon__-Niv0","red":"styles-module_red__CHF3e","grey":"styles-module_grey__hdqot"};
|
390
390
|
styleInject(css_248z$a);
|
391
391
|
|
392
|
-
function PrimaryButton({ text, iconName, type = "blue", onClick = () => { } }) {
|
392
|
+
function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
393
393
|
function onClickButton(event) {
|
394
394
|
event.preventDefault();
|
395
395
|
if (onClick)
|
396
396
|
onClick(event);
|
397
397
|
}
|
398
398
|
return (React__default["default"].createElement("div", { className: styles$a.container },
|
399
|
-
React__default["default"].createElement("button", { className:
|
399
|
+
React__default["default"].createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName) ?? styles$a.onlyText, (!text && iconName) ?? styles$a.onlyIcon].join(" "), onClick: onClickButton },
|
400
400
|
text,
|
401
|
-
React__default["default"].createElement(SvgIcon, { iconName: iconName, fill:
|
401
|
+
iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, fill: iconFill }))));
|
402
402
|
}
|
403
403
|
|
404
404
|
var css_248z$9 = ".styles-module_container__u4q5n {\n margin-bottom: 50px;\n}\n\n.styles-module_background__jt-ry {\n background: #D9D9D9;\n width: 400px;\n max-width: 100%;\n height: 3px;\n position: relative;\n}\n\n.styles-module_progress__Zj-B7 {\n background: black;\n position: absolute;\n left: 0;\n top: 0;\n height: 3px;\n}";
|
@@ -573,8 +573,8 @@ function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" })
|
|
573
573
|
text)));
|
574
574
|
}
|
575
575
|
|
576
|
-
var css_248z$2 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
|
577
|
-
var styles$2 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF"};
|
576
|
+
var css_248z$2 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_icon__Jy87z {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
|
577
|
+
var styles$2 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF","icon":"styles-module_icon__Jy87z"};
|
578
578
|
styleInject(css_248z$2);
|
579
579
|
|
580
580
|
exports.TableActionType = void 0;
|
@@ -605,6 +605,7 @@ class TableItemAction {
|
|
605
605
|
this.title = title;
|
606
606
|
this.iconName = iconName;
|
607
607
|
this.onClick = onClick;
|
608
|
+
this.type = type;
|
608
609
|
}
|
609
610
|
}
|
610
611
|
function Table({ items, title = "Titel", actions = [], moreActions }) {
|
package/dist/index.esm.js
CHANGED
@@ -377,20 +377,20 @@ function OptionFieldHorizontal({ title, iconName, onClick, preselected = false }
|
|
377
377
|
React.createElement("h3", null, title)));
|
378
378
|
}
|
379
379
|
|
380
|
-
var css_248z$a = ".styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}";
|
381
|
-
var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","red":"styles-module_red__CHF3e"};
|
380
|
+
var css_248z$a = ".styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 span {\n font-size: 22px;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_grey__hdqot {\n background: #EEEEEE;\n color: black;\n}";
|
381
|
+
var styles$a = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","onlyIcon":"styles-module_onlyIcon__-Niv0","red":"styles-module_red__CHF3e","grey":"styles-module_grey__hdqot"};
|
382
382
|
styleInject(css_248z$a);
|
383
383
|
|
384
|
-
function PrimaryButton({ text, iconName, type = "blue", onClick = () => { } }) {
|
384
|
+
function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
385
385
|
function onClickButton(event) {
|
386
386
|
event.preventDefault();
|
387
387
|
if (onClick)
|
388
388
|
onClick(event);
|
389
389
|
}
|
390
390
|
return (React.createElement("div", { className: styles$a.container },
|
391
|
-
React.createElement("button", { className:
|
391
|
+
React.createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName) ?? styles$a.onlyText, (!text && iconName) ?? styles$a.onlyIcon].join(" "), onClick: onClickButton },
|
392
392
|
text,
|
393
|
-
React.createElement(SvgIcon, { iconName: iconName, fill:
|
393
|
+
iconName && React.createElement(SvgIcon, { iconName: iconName, fill: iconFill }))));
|
394
394
|
}
|
395
395
|
|
396
396
|
var css_248z$9 = ".styles-module_container__u4q5n {\n margin-bottom: 50px;\n}\n\n.styles-module_background__jt-ry {\n background: #D9D9D9;\n width: 400px;\n max-width: 100%;\n height: 3px;\n position: relative;\n}\n\n.styles-module_progress__Zj-B7 {\n background: black;\n position: absolute;\n left: 0;\n top: 0;\n height: 3px;\n}";
|
@@ -565,8 +565,8 @@ function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" })
|
|
565
565
|
text)));
|
566
566
|
}
|
567
567
|
|
568
|
-
var css_248z$2 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
|
569
|
-
var styles$2 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF"};
|
568
|
+
var css_248z$2 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_icon__Jy87z {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
|
569
|
+
var styles$2 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF","icon":"styles-module_icon__Jy87z"};
|
570
570
|
styleInject(css_248z$2);
|
571
571
|
|
572
572
|
var TableActionType;
|
@@ -597,6 +597,7 @@ class TableItemAction {
|
|
597
597
|
this.title = title;
|
598
598
|
this.iconName = iconName;
|
599
599
|
this.onClick = onClick;
|
600
|
+
this.type = type;
|
600
601
|
}
|
601
602
|
}
|
602
603
|
function Table({ items, title = "Titel", actions = [], moreActions }) {
|