math-main-components 0.0.12 → 0.0.14
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/InputPassword/InputPassword.d.ts +2 -2
- package/dist/components/OptionField/OptionField.d.ts +1 -2
- package/dist/components/OptionFieldHorizontal/OptionFieldHorizontal.d.ts +1 -2
- package/dist/components/StepBack/StepBack.d.ts +3 -2
- package/dist/components/TextWithIcon/TextWithIcon.d.ts +1 -2
- package/dist/index.cjs.js +23 -34
- package/dist/index.esm.js +23 -33
- package/package.json +2 -5
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare function InputPassword({ placeholder, title, name, isVisible, width, autoComplete,
|
2
|
+
export declare function InputPassword({ placeholder, title, name, isVisible, width, autoComplete, forgotLink }: {
|
3
3
|
placeholder?: string;
|
4
4
|
autoComplete?: string;
|
5
5
|
title?: string;
|
6
6
|
name: string;
|
7
7
|
isVisible?: boolean;
|
8
8
|
width?: string;
|
9
|
-
|
9
|
+
forgotLink?: any;
|
10
10
|
}): React.JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare function OptionField({ headline, description,
|
2
|
+
export declare function OptionField({ headline, description, iconName }: {
|
3
3
|
headline: string;
|
4
4
|
description: string;
|
5
5
|
iconName?: string;
|
6
|
-
link: string;
|
7
6
|
}): React.JSX.Element;
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
export declare function OptionFieldHorizontal({ title,
|
2
|
+
export declare function OptionFieldHorizontal({ title, iconName, preselected }: {
|
3
3
|
title: string;
|
4
|
-
href: string;
|
5
4
|
iconName: string;
|
6
5
|
preselected?: boolean;
|
7
6
|
}): React.JSX.Element;
|
package/dist/index.cjs.js
CHANGED
@@ -3,12 +3,10 @@
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
5
|
var React = require('react');
|
6
|
-
var Link = require('next/link');
|
7
6
|
|
8
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
9
8
|
|
10
9
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
11
|
-
var Link__default = /*#__PURE__*/_interopDefaultLegacy(Link);
|
12
10
|
|
13
11
|
function SvgIcon({ iconName, size = "24px", className = "", onClick }) {
|
14
12
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
@@ -252,7 +250,7 @@ var css_248z$f = "@keyframes styles-module_show__OLTZH {\n from {\n max-heig
|
|
252
250
|
var styles$f = {"container":"styles-module_container__UdmOO","forgot_label":"styles-module_forgot_label__EeN6a","visible":"styles-module_visible__QROqh","hidden":"styles-module_hidden__hDKDO","input":"styles-module_input__sC2fP","hideButton":"styles-module_hideButton__83mRI","form":"styles-module_form__m866x","label":"styles-module_label__8PuaL","label_text":"styles-module_label_text__FwJ1F","with_title":"styles-module_with_title__dftgq","valid":"styles-module_valid__SM7w5","show":"styles-module_show__OLTZH","hide":"styles-module_hide__LAgaY"};
|
253
251
|
styleInject(css_248z$f);
|
254
252
|
|
255
|
-
function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete,
|
253
|
+
function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete, forgotLink = false }) {
|
256
254
|
const [value, setValue] = React.useState("");
|
257
255
|
const [hidePassword, setHidePassword] = React.useState(true);
|
258
256
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
@@ -263,12 +261,11 @@ function InputPassword({ placeholder = "", title = "Passwort", name, isVisible =
|
|
263
261
|
React__default["default"].createElement("span", { className: styles$f.label_text }, title)),
|
264
262
|
React__default["default"].createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$f.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
|
265
263
|
React__default["default"].createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
|
266
|
-
|
267
|
-
React__default["default"].createElement(
|
268
|
-
React__default["default"].createElement("span", { className: styles$f.forgot_label }, "Passwort vergessen?")))));
|
264
|
+
forgotLink &&
|
265
|
+
React__default["default"].createElement("div", { className: styles$f.forgot_container }, forgotLink))));
|
269
266
|
}
|
270
267
|
|
271
|
-
var css_248z$e = ".styles-module_container__--NO0 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n justify-content: center;\n align-items: center;\n user-select: none;\n margin-bottom: 20px;\n}\n.styles-module_container__--NO0
|
268
|
+
var css_248z$e = ".styles-module_container__--NO0 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n justify-content: center;\n align-items: center;\n user-select: none;\n margin-bottom: 20px;\n}\n.styles-module_container__--NO0 button {\n background: transparent;\n color: #0075FF;\n border: none;\n font-size: 14px;\n cursor: pointer;\n}\n\n.styles-module_input_wrapper__LPIk1 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 10px;\n}\n\n.styles-module_input__84v36 {\n padding: 14px 10px;\n width: 30px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n text-align: center;\n font-size: 18px;\n}\n.styles-module_input__84v36:focus, .styles-module_input__84v36:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_input__84v36:nth-child(3) {\n margin-right: 25px;\n}\n\n.styles-module_input__84v36::placeholder,\n.styles-module_input__84v36:-ms-input-placeholder,\n.styles-module_input__84v36::-ms-input-placeholder {\n letter-spacing: 0px !important;\n}";
|
272
269
|
var styles$e = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
|
273
270
|
styleInject(css_248z$e);
|
274
271
|
|
@@ -336,7 +333,7 @@ function InputPin({ name, length, onFinished = () => { } }) {
|
|
336
333
|
}
|
337
334
|
return React__default["default"].createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$e.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
338
335
|
})),
|
339
|
-
React__default["default"].createElement("
|
336
|
+
React__default["default"].createElement("button", { onClick: resetValues }, "Zur\u00FCcksetzen"))));
|
340
337
|
}
|
341
338
|
|
342
339
|
var css_248z$d = ".styles-module_container__zcXGF {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__Tpth8 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n}\n.styles-module_input__Tpth8:focus, .styles-module_input__Tpth8:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__Tpth8.styles-module_not_available__CRXjB, .styles-module_input__Tpth8:invalid {\n border-color: #e50000;\n box-shadow: 0px 0px 3px 3px rgba(255, 0, 0, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_container__zcXGF {\n position: relative;\n}\n\n.styles-module_label__appHO {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__-sKjY {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__Tpth8:focus + .styles-module_label__appHO .styles-module_label_text__-sKjY,\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n color: #a8a8a8;\n}";
|
@@ -363,25 +360,23 @@ var css_248z$c = ".styles-module_box__Z0iod {\n background: #F4F4F4;\n width:
|
|
363
360
|
var styles$c = {"box":"styles-module_box__Z0iod","left_side":"styles-module_left_side__8ObGs","right_side":"styles-module_right_side__Ypp0D"};
|
364
361
|
styleInject(css_248z$c);
|
365
362
|
|
366
|
-
function OptionField({ headline, description,
|
363
|
+
function OptionField({ headline, description, iconName }) {
|
367
364
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
368
|
-
React__default["default"].createElement("
|
369
|
-
React__default["default"].createElement("div", { className: styles$c.
|
370
|
-
|
371
|
-
React__default["default"].createElement("
|
372
|
-
|
373
|
-
React__default["default"].createElement("p", null, description))))));
|
365
|
+
React__default["default"].createElement("div", { className: styles$c.box },
|
366
|
+
React__default["default"].createElement("div", { className: styles$c.left_side }, iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName })),
|
367
|
+
React__default["default"].createElement("div", { className: styles$c.right_side },
|
368
|
+
React__default["default"].createElement("h4", null, headline),
|
369
|
+
React__default["default"].createElement("p", null, description)))));
|
374
370
|
}
|
375
371
|
|
376
372
|
var css_248z$b = ".styles-module_container__XCtqW {\n background: white;\n border-radius: 12px;\n padding: 30px;\n margin-bottom: 30px;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px;\n color: black;\n border: 1px solid #B1B1B1;\n transition: 0.2s ease-in-out;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);\n}\n.styles-module_container__XCtqW:hover {\n background: #f0f0f0;\n border-color: #888888;\n}\n.styles-module_container__XCtqW h3 {\n font-weight: 500;\n margin: 0;\n}\n\n.styles-module_container__XCtqW.styles-module_preselected__WoSbB {\n border: 1px solid black;\n}";
|
377
373
|
var styles$b = {"container":"styles-module_container__XCtqW","preselected":"styles-module_preselected__WoSbB"};
|
378
374
|
styleInject(css_248z$b);
|
379
375
|
|
380
|
-
function OptionFieldHorizontal({ title,
|
381
|
-
return (React__default["default"].createElement("
|
382
|
-
React__default["default"].createElement(
|
383
|
-
|
384
|
-
React__default["default"].createElement("h3", null, title))));
|
376
|
+
function OptionFieldHorizontal({ title, iconName, preselected = false }) {
|
377
|
+
return (React__default["default"].createElement("div", { className: [styles$b.container, preselected ? styles$b.preselected : styles$b.not_preselected].join(" ") },
|
378
|
+
React__default["default"].createElement(SvgIcon, { iconName: iconName, size: "32px" }),
|
379
|
+
React__default["default"].createElement("h3", null, title)));
|
385
380
|
}
|
386
381
|
|
387
382
|
var css_248z$a = ".styles-module_container__oNbrP {\n padding-top: 10px;\n}\n.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}";
|
@@ -563,12 +558,11 @@ var css_248z$3 = ".styles-module_container__xRQNT {\n display: flex;\n flex-di
|
|
563
558
|
var styles$3 = {"container":"styles-module_container__xRQNT"};
|
564
559
|
styleInject(css_248z$3);
|
565
560
|
|
566
|
-
function StepBack({
|
561
|
+
function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" }) {
|
567
562
|
return (React__default["default"].createElement(React__default["default"].Fragment, null,
|
568
|
-
React__default["default"].createElement("
|
569
|
-
React__default["default"].createElement(
|
570
|
-
|
571
|
-
"Weitere M\u00F6glichkeiten"))));
|
563
|
+
React__default["default"].createElement("div", { className: styles$3.container },
|
564
|
+
React__default["default"].createElement(SvgIcon, { iconName: iconName }),
|
565
|
+
text)));
|
572
566
|
}
|
573
567
|
|
574
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}";
|
@@ -629,15 +623,10 @@ var css_248z$1 = ".styles-module_container__ItBx0 {\n display: flex;\n flex-di
|
|
629
623
|
var styles$1 = {"container":"styles-module_container__ItBx0"};
|
630
624
|
styleInject(css_248z$1);
|
631
625
|
|
632
|
-
function TextWithIcon({ iconName, label,
|
633
|
-
return (React__default["default"].createElement("div", { className: styles$1.container },
|
634
|
-
React__default["default"].createElement(
|
635
|
-
|
636
|
-
React__default["default"].createElement("span", null, label))
|
637
|
-
:
|
638
|
-
React__default["default"].createElement(React__default["default"].Fragment, null,
|
639
|
-
React__default["default"].createElement(SvgIcon, { iconName: iconName }),
|
640
|
-
React__default["default"].createElement("span", null, label))));
|
626
|
+
function TextWithIcon({ iconName, label, }) {
|
627
|
+
return (React__default["default"].createElement("div", { className: styles$1.container },
|
628
|
+
React__default["default"].createElement(SvgIcon, { iconName: iconName }),
|
629
|
+
React__default["default"].createElement("span", null, label)));
|
641
630
|
}
|
642
631
|
|
643
632
|
function degreesToRadians(degrees) {
|
package/dist/index.esm.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import React, { useState, useCallback, useRef, createRef, useEffect } from 'react';
|
2
|
-
import Link from 'next/link';
|
3
2
|
|
4
3
|
function SvgIcon({ iconName, size = "24px", className = "", onClick }) {
|
5
4
|
return (React.createElement(React.Fragment, null,
|
@@ -243,7 +242,7 @@ var css_248z$f = "@keyframes styles-module_show__OLTZH {\n from {\n max-heig
|
|
243
242
|
var styles$f = {"container":"styles-module_container__UdmOO","forgot_label":"styles-module_forgot_label__EeN6a","visible":"styles-module_visible__QROqh","hidden":"styles-module_hidden__hDKDO","input":"styles-module_input__sC2fP","hideButton":"styles-module_hideButton__83mRI","form":"styles-module_form__m866x","label":"styles-module_label__8PuaL","label_text":"styles-module_label_text__FwJ1F","with_title":"styles-module_with_title__dftgq","valid":"styles-module_valid__SM7w5","show":"styles-module_show__OLTZH","hide":"styles-module_hide__LAgaY"};
|
244
243
|
styleInject(css_248z$f);
|
245
244
|
|
246
|
-
function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete,
|
245
|
+
function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", autoComplete, forgotLink = false }) {
|
247
246
|
const [value, setValue] = useState("");
|
248
247
|
const [hidePassword, setHidePassword] = useState(true);
|
249
248
|
return (React.createElement(React.Fragment, null,
|
@@ -254,12 +253,11 @@ function InputPassword({ placeholder = "", title = "Passwort", name, isVisible =
|
|
254
253
|
React.createElement("span", { className: styles$f.label_text }, title)),
|
255
254
|
React.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$f.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
|
256
255
|
React.createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
|
257
|
-
|
258
|
-
React.createElement(
|
259
|
-
React.createElement("span", { className: styles$f.forgot_label }, "Passwort vergessen?")))));
|
256
|
+
forgotLink &&
|
257
|
+
React.createElement("div", { className: styles$f.forgot_container }, forgotLink))));
|
260
258
|
}
|
261
259
|
|
262
|
-
var css_248z$e = ".styles-module_container__--NO0 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n justify-content: center;\n align-items: center;\n user-select: none;\n margin-bottom: 20px;\n}\n.styles-module_container__--NO0
|
260
|
+
var css_248z$e = ".styles-module_container__--NO0 {\n display: flex;\n flex-direction: column;\n gap: 10px;\n justify-content: center;\n align-items: center;\n user-select: none;\n margin-bottom: 20px;\n}\n.styles-module_container__--NO0 button {\n background: transparent;\n color: #0075FF;\n border: none;\n font-size: 14px;\n cursor: pointer;\n}\n\n.styles-module_input_wrapper__LPIk1 {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 10px;\n}\n\n.styles-module_input__84v36 {\n padding: 14px 10px;\n width: 30px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n text-align: center;\n font-size: 18px;\n}\n.styles-module_input__84v36:focus, .styles-module_input__84v36:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_input__84v36:nth-child(3) {\n margin-right: 25px;\n}\n\n.styles-module_input__84v36::placeholder,\n.styles-module_input__84v36:-ms-input-placeholder,\n.styles-module_input__84v36::-ms-input-placeholder {\n letter-spacing: 0px !important;\n}";
|
263
261
|
var styles$e = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
|
264
262
|
styleInject(css_248z$e);
|
265
263
|
|
@@ -327,7 +325,7 @@ function InputPin({ name, length, onFinished = () => { } }) {
|
|
327
325
|
}
|
328
326
|
return React.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$e.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
329
327
|
})),
|
330
|
-
React.createElement("
|
328
|
+
React.createElement("button", { onClick: resetValues }, "Zur\u00FCcksetzen"))));
|
331
329
|
}
|
332
330
|
|
333
331
|
var css_248z$d = ".styles-module_container__zcXGF {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__Tpth8 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n}\n.styles-module_input__Tpth8:focus, .styles-module_input__Tpth8:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__Tpth8.styles-module_not_available__CRXjB, .styles-module_input__Tpth8:invalid {\n border-color: #e50000;\n box-shadow: 0px 0px 3px 3px rgba(255, 0, 0, 0.2509803922);\n}\n\n/* animated title */\n.styles-module_container__zcXGF {\n position: relative;\n}\n\n.styles-module_label__appHO {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n}\n\n.styles-module_label_text__-sKjY {\n position: absolute;\n bottom: 16px;\n left: 12px;\n transition: 0.3s ease;\n font-size: 16px;\n border-top-left-radius: 5px;\n border-top-right-radius: 5px;\n opacity: initial;\n background: white;\n color: grey;\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: grey;\n}\n\n.styles-module_input__Tpth8.styles-module_with_title__L3eGj:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__Tpth8:focus + .styles-module_label__appHO .styles-module_label_text__-sKjY,\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: linear-gradient(to bottom, rgba(250, 250, 250, 0.9411764706), hsla(0, 0%, 100%, 0.951));\n color: #0063d4;\n}\n\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n color: #a8a8a8;\n}";
|
@@ -354,25 +352,23 @@ var css_248z$c = ".styles-module_box__Z0iod {\n background: #F4F4F4;\n width:
|
|
354
352
|
var styles$c = {"box":"styles-module_box__Z0iod","left_side":"styles-module_left_side__8ObGs","right_side":"styles-module_right_side__Ypp0D"};
|
355
353
|
styleInject(css_248z$c);
|
356
354
|
|
357
|
-
function OptionField({ headline, description,
|
355
|
+
function OptionField({ headline, description, iconName }) {
|
358
356
|
return (React.createElement(React.Fragment, null,
|
359
|
-
React.createElement("
|
360
|
-
React.createElement("div", { className: styles$c.
|
361
|
-
|
362
|
-
React.createElement("
|
363
|
-
|
364
|
-
React.createElement("p", null, description))))));
|
357
|
+
React.createElement("div", { className: styles$c.box },
|
358
|
+
React.createElement("div", { className: styles$c.left_side }, iconName && React.createElement(SvgIcon, { iconName: iconName })),
|
359
|
+
React.createElement("div", { className: styles$c.right_side },
|
360
|
+
React.createElement("h4", null, headline),
|
361
|
+
React.createElement("p", null, description)))));
|
365
362
|
}
|
366
363
|
|
367
364
|
var css_248z$b = ".styles-module_container__XCtqW {\n background: white;\n border-radius: 12px;\n padding: 30px;\n margin-bottom: 30px;\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px;\n color: black;\n border: 1px solid #B1B1B1;\n transition: 0.2s ease-in-out;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);\n}\n.styles-module_container__XCtqW:hover {\n background: #f0f0f0;\n border-color: #888888;\n}\n.styles-module_container__XCtqW h3 {\n font-weight: 500;\n margin: 0;\n}\n\n.styles-module_container__XCtqW.styles-module_preselected__WoSbB {\n border: 1px solid black;\n}";
|
368
365
|
var styles$b = {"container":"styles-module_container__XCtqW","preselected":"styles-module_preselected__WoSbB"};
|
369
366
|
styleInject(css_248z$b);
|
370
367
|
|
371
|
-
function OptionFieldHorizontal({ title,
|
372
|
-
return (React.createElement("
|
373
|
-
React.createElement(
|
374
|
-
|
375
|
-
React.createElement("h3", null, title))));
|
368
|
+
function OptionFieldHorizontal({ title, iconName, preselected = false }) {
|
369
|
+
return (React.createElement("div", { className: [styles$b.container, preselected ? styles$b.preselected : styles$b.not_preselected].join(" ") },
|
370
|
+
React.createElement(SvgIcon, { iconName: iconName, size: "32px" }),
|
371
|
+
React.createElement("h3", null, title)));
|
376
372
|
}
|
377
373
|
|
378
374
|
var css_248z$a = ".styles-module_container__oNbrP {\n padding-top: 10px;\n}\n.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}";
|
@@ -554,12 +550,11 @@ var css_248z$3 = ".styles-module_container__xRQNT {\n display: flex;\n flex-di
|
|
554
550
|
var styles$3 = {"container":"styles-module_container__xRQNT"};
|
555
551
|
styleInject(css_248z$3);
|
556
552
|
|
557
|
-
function StepBack({
|
553
|
+
function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" }) {
|
558
554
|
return (React.createElement(React.Fragment, null,
|
559
|
-
React.createElement("
|
560
|
-
React.createElement(
|
561
|
-
|
562
|
-
"Weitere M\u00F6glichkeiten"))));
|
555
|
+
React.createElement("div", { className: styles$3.container },
|
556
|
+
React.createElement(SvgIcon, { iconName: iconName }),
|
557
|
+
text)));
|
563
558
|
}
|
564
559
|
|
565
560
|
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}";
|
@@ -620,15 +615,10 @@ var css_248z$1 = ".styles-module_container__ItBx0 {\n display: flex;\n flex-di
|
|
620
615
|
var styles$1 = {"container":"styles-module_container__ItBx0"};
|
621
616
|
styleInject(css_248z$1);
|
622
617
|
|
623
|
-
function TextWithIcon({ iconName, label,
|
624
|
-
return (React.createElement("div", { className: styles$1.container },
|
625
|
-
React.createElement(
|
626
|
-
|
627
|
-
React.createElement("span", null, label))
|
628
|
-
:
|
629
|
-
React.createElement(React.Fragment, null,
|
630
|
-
React.createElement(SvgIcon, { iconName: iconName }),
|
631
|
-
React.createElement("span", null, label))));
|
618
|
+
function TextWithIcon({ iconName, label, }) {
|
619
|
+
return (React.createElement("div", { className: styles$1.container },
|
620
|
+
React.createElement(SvgIcon, { iconName: iconName }),
|
621
|
+
React.createElement("span", null, label)));
|
632
622
|
}
|
633
623
|
|
634
624
|
function degreesToRadians(degrees) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "math-main-components",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.14",
|
4
4
|
"author": "Emilian Scheel",
|
5
5
|
"files": [
|
6
6
|
"dist/**/*"
|
@@ -32,7 +32,6 @@
|
|
32
32
|
"typescript-plugin-css-modules": "^5.0.1"
|
33
33
|
},
|
34
34
|
"peerDependencies": {
|
35
|
-
"next": "^13.2.4",
|
36
35
|
"react": "^18.2.0",
|
37
36
|
"react-dom": "^18.2.0"
|
38
37
|
},
|
@@ -42,7 +41,5 @@
|
|
42
41
|
"build:js": "rollup -c",
|
43
42
|
"build:types": "tsc --emitDeclarationOnly --outDir dist"
|
44
43
|
},
|
45
|
-
"dependencies": {
|
46
|
-
"next": "13.2.4"
|
47
|
-
}
|
44
|
+
"dependencies": {}
|
48
45
|
}
|