math-main-components 0.0.225 → 0.0.227
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/Switch/Switch.stories.d.ts +17 -0
- package/dist/components/Switch/index.d.ts +6 -0
- package/dist/index.cjs.js +158 -140
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +158 -141
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -28,13 +28,13 @@ function styleInject(css, ref) {
|
|
28
28
|
}
|
29
29
|
}
|
30
30
|
|
31
|
-
var css_248z$
|
32
|
-
var styles$
|
33
|
-
styleInject(css_248z$
|
31
|
+
var css_248z$B = "";
|
32
|
+
var styles$B = {};
|
33
|
+
styleInject(css_248z$B);
|
34
34
|
|
35
35
|
function Slider({ cards }) {
|
36
36
|
const [selected, setSelected] = useState(0);
|
37
|
-
return (React__default.createElement("div", { className: styles$
|
37
|
+
return (React__default.createElement("div", { className: styles$B.container }, cards.map((card, index) => React__default.createElement("div", { key: index, className: [styles$B.card, selected == index ? styles$B.selected : styles$B.not_selected].join(" ") },
|
38
38
|
React__default.createElement("h1", null, card.title),
|
39
39
|
React__default.createElement("p", null, card.description)))));
|
40
40
|
}
|
@@ -9380,72 +9380,72 @@ function SvgIcon({ animate = false, toggle = false, ...props }) {
|
|
9380
9380
|
React__default.createElement(Icon, { ...props }))));
|
9381
9381
|
}
|
9382
9382
|
|
9383
|
-
var css_248z$
|
9384
|
-
var styles$
|
9385
|
-
styleInject(css_248z$
|
9383
|
+
var css_248z$A = ".styles-module_container__PIGIl {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 7px;\n color: var(--foreground-3);\n}\n.styles-module_container__PIGIl svg {\n fill: var(--foreground-3);\n}";
|
9384
|
+
var styles$A = {"container":"styles-module_container__PIGIl"};
|
9385
|
+
styleInject(css_248z$A);
|
9386
9386
|
|
9387
9387
|
function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" }) {
|
9388
9388
|
return (React__default.createElement(React__default.Fragment, null,
|
9389
|
-
React__default.createElement("div", { className: styles$
|
9389
|
+
React__default.createElement("div", { className: styles$A.container },
|
9390
9390
|
React__default.createElement(SvgIcon, { iconName: iconName }),
|
9391
9391
|
text)));
|
9392
9392
|
}
|
9393
9393
|
|
9394
|
-
var css_248z$
|
9395
|
-
var styles$
|
9396
|
-
styleInject(css_248z$
|
9394
|
+
var css_248z$z = ".styles-module_container__3IVfB {\n margin-bottom: 20px;\n background: var(--background-1);\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n color: var(--foreground-1);\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 16px 20px;\n color: var(--foreground-3);\n background: var(--background-2);\n border-radius: 30px;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n transition: 0.2s ease-in-out;\n font-family: var(--font-1);\n gap: 10px;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb span {\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb h3 {\n margin: 0;\n font-weight: 400;\n font-size: 16px;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__3IVfB .styles-module_head__xFYQb:hover {\n filter: brightness(0.95);\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R {\n box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_head__xFYQb span {\n rotate: 180deg;\n}\n.styles-module_container__3IVfB .styles-module_content__XAf02 {\n transition: all 0.3s ease-in-out;\n line-height: 1.5;\n padding: 0px 20px;\n}\n.styles-module_container__3IVfB.styles-module_not_active__JcVLz .styles-module_content__XAf02 {\n height: 0;\n max-height: 0;\n overflow: hidden;\n opacity: 0;\n}\n.styles-module_container__3IVfB.styles-module_active__soD8R .styles-module_content__XAf02 {\n max-height: auto;\n overflow: visible;\n opacity: 1;\n padding: 10px 20px;\n}";
|
9395
|
+
var styles$z = {"container":"styles-module_container__3IVfB","head":"styles-module_head__xFYQb","active":"styles-module_active__soD8R","content":"styles-module_content__XAf02","not_active":"styles-module_not_active__JcVLz"};
|
9396
|
+
styleInject(css_248z$z);
|
9397
9397
|
|
9398
9398
|
function Accordeon({ title, children }) {
|
9399
9399
|
const [isActive, setActive] = useState(false);
|
9400
|
-
return (React__default.createElement("div", { className: [styles$
|
9401
|
-
React__default.createElement("div", { className: styles$
|
9400
|
+
return (React__default.createElement("div", { className: [styles$z.container, isActive ? styles$z.active : styles$z.not_active].join(" ") },
|
9401
|
+
React__default.createElement("div", { className: styles$z.head, onClick: () => setActive(!isActive) },
|
9402
9402
|
React__default.createElement(SvgIcon, { iconName: "expand_more" }),
|
9403
9403
|
React__default.createElement("h3", null, title)),
|
9404
|
-
React__default.createElement("div", { className: styles$
|
9404
|
+
React__default.createElement("div", { className: styles$z.content }, children)));
|
9405
9405
|
}
|
9406
9406
|
|
9407
|
-
var css_248z$
|
9408
|
-
var styles$
|
9409
|
-
styleInject(css_248z$
|
9407
|
+
var css_248z$y = ".styles-module_container__TP0rp {\n max-width: 100%;\n}\n\n.styles-module_button__Sh-fr {\n padding: 10px 18px;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n font-weight: 400;\n align-items: center;\n justify-content: center;\n border: none;\n transition: 0.2s ease-in-out;\n font-family: \"Space Grotesk\", sans-serif;\n border: 1px solid transparent;\n}\n.styles-module_button__Sh-fr:hover {\n filter: brightness(0.9);\n}\n.styles-module_button__Sh-fr:focus {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_button__Sh-fr.styles-module_blue__DRdbo {\n background: var(--primary-1);\n color: white;\n}\n.styles-module_button__Sh-fr.styles-module_lightBlue__7EKfp {\n background: var(--primary-2);\n color: var(--primary-1);\n}\n.styles-module_button__Sh-fr.styles-module_red__EhImH {\n background: var(--red-1);\n color: white;\n}\n.styles-module_button__Sh-fr.styles-module_grey__kAVD1 {\n background: var(--background-1);\n color: var(--foreground-2);\n}\n.styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_button__Sh-fr.styles-module_onlyIcon__bNVnI span {\n font-size: 22px !important;\n}";
|
9408
|
+
var styles$y = {"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"};
|
9409
|
+
styleInject(css_248z$y);
|
9410
9410
|
|
9411
9411
|
function Button({ id, children, iconName, iconFill = "white", type = "blue", onClick = () => { }, ...props }) {
|
9412
9412
|
const onClickButton = (event) => {
|
9413
9413
|
event.preventDefault();
|
9414
9414
|
onClick(event);
|
9415
9415
|
};
|
9416
|
-
return (React__default.createElement("div", { className: styles$
|
9417
|
-
React__default.createElement("button", { className: [styles$
|
9416
|
+
return (React__default.createElement("div", { className: styles$y.container },
|
9417
|
+
React__default.createElement("button", { className: [styles$y.button, styles$y[type], (children && !iconName) ? styles$y.onlyText : "", (!children && iconName) ? styles$y.onlyIcon : ""].join(" "), onClick: onClickButton, id: id, ...props },
|
9418
9418
|
children,
|
9419
9419
|
iconName && React__default.createElement(SvgIcon, { iconName: iconName }))));
|
9420
9420
|
}
|
9421
9421
|
|
9422
|
-
var css_248z$
|
9423
|
-
var styles$
|
9424
|
-
styleInject(css_248z$
|
9422
|
+
var css_248z$x = ".styles-module_container__Q2wD4 {\n max-width: 100%;\n width: 350px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__Q2wD4.styles-module_visible__hQgjm {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__Q2wD4.styles-module_hidden__sO2e7 {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_container__Q2wD4.styles-module_rotate__HQYfs .styles-module_button__jo0MC:hover span {\n rotate: -45deg;\n}\n\n.styles-module_button__jo0MC {\n padding: 12px 20px;\n background: linear-gradient(60deg, #0075FF, #0056b8);\n background-position-x: right;\n color: white;\n display: flex;\n flex-direction: row;\n width: 100%;\n align-items: center;\n justify-content: center;\n border-radius: 14px;\n border: none;\n cursor: pointer;\n font-size: 16px;\n font-weight: 400;\n gap: 10px;\n position: relative;\n transition: all 0.5s ease-in-out;\n outline: none;\n border: 1px solid transparent;\n font-family: \"Space Grotesk\", sans-serif;\n}\n.styles-module_button__jo0MC:focus {\n box-shadow: var(--focus-shadow);\n border: var(--focus-border);\n}\n.styles-module_button__jo0MC span {\n transition: 0.1s ease-in-out;\n}\n.styles-module_button__jo0MC:hover {\n background-position-x: left;\n}\n.styles-module_button__jo0MC.styles-module_secondary__YBbOj {\n background: var(--background-2);\n color: var(--primary-1);\n border: 1px solid var(--primary-1);\n}\n.styles-module_button__jo0MC.styles-module_secondary__YBbOj svg {\n fill: var(--primary-1);\n}\n\n@media (max-width: 450px) {\n .styles-module_button__jo0MC {\n font-size: 14px;\n }\n}";
|
9423
|
+
var styles$x = {"container":"styles-module_container__Q2wD4","visible":"styles-module_visible__hQgjm","hidden":"styles-module_hidden__sO2e7","rotate":"styles-module_rotate__HQYfs","button":"styles-module_button__jo0MC","secondary":"styles-module_secondary__YBbOj"};
|
9424
|
+
styleInject(css_248z$x);
|
9425
9425
|
|
9426
9426
|
function Button2({ id, children, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, style, onClick }) {
|
9427
|
-
return (React__default.createElement("div", { className: [styles$
|
9428
|
-
React__default.createElement("button", { type: type, className: `${styles$
|
9427
|
+
return (React__default.createElement("div", { className: [styles$x.container, isVisible ? styles$x.visible : styles$x.hidden, ["arrow_forward"].includes(iconName) ? styles$x.rotate : null].join(" "), style: style },
|
9428
|
+
React__default.createElement("button", { type: type, className: `${styles$x.button} ${styles$x[theme]}`, onClick: onClick, id: id },
|
9429
9429
|
children,
|
9430
9430
|
React__default.createElement(SvgIcon, { iconName: iconName }))));
|
9431
9431
|
}
|
9432
9432
|
|
9433
|
-
var css_248z$
|
9434
|
-
var styles$
|
9435
|
-
styleInject(css_248z$
|
9433
|
+
var css_248z$w = ".styles-module_container__gCCnD {\n margin-bottom: 20px;\n color: var(--foreground-3);\n width: 100%;\n position: relative;\n}\n.styles-module_container__gCCnD [type=checkbox] {\n position: relative;\n left: 15px;\n top: -4px;\n z-index: 0;\n appearance: none;\n -webkit-appearance: none;\n cursor: pointer;\n margin-left: -3.5px;\n display: none;\n}\n.styles-module_container__gCCnD [type=checkbox] + label {\n position: relative;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__gCCnD [type=checkbox] + label::before {\n width: 17px;\n height: 17px;\n border-radius: 5px;\n border: 2px solid var(--border-2);\n display: block;\n content: \"\";\n float: left;\n margin-right: 8px;\n z-index: 5;\n position: relative;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__gCCnD [type=checkbox] ~ span {\n position: absolute;\n opacity: 1;\n color: var(--background-2);\n z-index: 100;\n user-select: none;\n pointer-events: none;\n -webkit-user-select: none;\n font-weight: 500;\n top: 0px;\n left: 0px;\n}\n.styles-module_container__gCCnD [type=checkbox]:checked + label::before {\n background-color: var(--primary-1);\n border-color: var(--primary-1);\n}\n.styles-module_container__gCCnD [type=checkbox]:hover:not(:checked) + label::before {\n background-color: var(--background-4);\n border-color: var(--border-2);\n}";
|
9434
|
+
var styles$w = {"container":"styles-module_container__gCCnD"};
|
9435
|
+
styleInject(css_248z$w);
|
9436
9436
|
|
9437
9437
|
function Checkbox({ id, name, defaultChecked = false, onInput = () => { }, children, ...props }) {
|
9438
9438
|
const [checked, setChecked] = React__default.useState(defaultChecked);
|
9439
9439
|
useEffect(() => setChecked(defaultChecked), [defaultChecked]);
|
9440
|
-
return (React__default.createElement("div", { className: styles$
|
9440
|
+
return (React__default.createElement("div", { className: styles$w.container, ...props },
|
9441
9441
|
React__default.createElement("input", { type: "checkbox", onInput: onInput, name: name, defaultChecked: checked, id: id || name }),
|
9442
9442
|
React__default.createElement("label", { htmlFor: id || name }, children),
|
9443
9443
|
React__default.createElement(SvgIcon, { iconName: "done", size: "21px" })));
|
9444
9444
|
}
|
9445
9445
|
|
9446
|
-
var css_248z$
|
9447
|
-
var styles$
|
9448
|
-
styleInject(css_248z$
|
9446
|
+
var css_248z$v = ".styles-module_container__9-1MH {\n position: fixed;\n height: 100vh;\n width: 100vw;\n background: var(--background-2);\n backdrop-filter: blur(10px) brightness(70%);\n left: 0;\n top: 0;\n z-index: 10000;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n}\n.styles-module_container__9-1MH.styles-module_active__AXoyo {\n opacity: 1;\n}\n.styles-module_container__9-1MH.styles-module_disabled__sELpy {\n pointer-events: none;\n opacity: 0;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M {\n background: var(--background-1);\n border-radius: 20px;\n padding: 35px;\n width: 450px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n max-width: 100%;\n box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;\n cursor: auto;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M h1 {\n font-size: 26px;\n font-weight: 500;\n line-height: 1.5;\n margin-top: 20px;\n margin-bottom: 20px;\n text-align: center;\n color: var(--foreground-1);\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_cancel_button__KhwLS {\n border-radius: 12px;\n color: var(--foreground-1);\n background: var(--background-2);\n padding: 14px 0px;\n border: none;\n outline: none;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n font-size: 16px;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_cancel_button__KhwLS:hover {\n filter: brightness(0.95);\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_submit_button__xLzux {\n border-radius: 12px;\n color: var(--background-1);\n background: var(--primary-1);\n padding: 14px 0px;\n border: none;\n outline: none;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n font-size: 16px;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_submit_button__xLzux:hover {\n background: var(--primary-1);\n}";
|
9447
|
+
var styles$v = {"container":"styles-module_container__9-1MH","active":"styles-module_active__AXoyo","disabled":"styles-module_disabled__sELpy","dialog_window":"styles-module_dialog_window__0Bn2M","cancel_button":"styles-module_cancel_button__KhwLS","submit_button":"styles-module_submit_button__xLzux"};
|
9448
|
+
styleInject(css_248z$v);
|
9449
9449
|
|
9450
9450
|
function Dialog({ data, enabled, text, onClose, onSubmit = () => { }, children }) {
|
9451
9451
|
function onClick(event) {
|
@@ -9456,48 +9456,48 @@ function Dialog({ data, enabled, text, onClose, onSubmit = () => { }, children }
|
|
9456
9456
|
onClose(event, data);
|
9457
9457
|
}
|
9458
9458
|
}
|
9459
|
-
return (React__default.createElement("div", { id: "dialog-backdrop", className: `${styles$
|
9460
|
-
React__default.createElement("div", { className: styles$
|
9459
|
+
return (React__default.createElement("div", { id: "dialog-backdrop", className: `${styles$v.container} ${enabled ? styles$v.active : styles$v.disabled}`, onClick: onClick },
|
9460
|
+
React__default.createElement("div", { className: styles$v.dialog_window },
|
9461
9461
|
children,
|
9462
9462
|
text && React__default.createElement("h1", null, text),
|
9463
|
-
React__default.createElement("button", { className: styles$
|
9464
|
-
React__default.createElement("button", { className: styles$
|
9463
|
+
React__default.createElement("button", { className: styles$v.cancel_button, id: "cancel-button", onClick: onClick }, "Abbrechen"),
|
9464
|
+
React__default.createElement("button", { className: styles$v.submit_button, id: "submit-button", onClick: (event) => onSubmit(event, data) }, "Best\u00E4tigen"))));
|
9465
9465
|
}
|
9466
9466
|
|
9467
|
-
var css_248z$
|
9468
|
-
var styles$
|
9469
|
-
styleInject(css_248z$
|
9467
|
+
var css_248z$u = ".styles-module_container__hGVir {\n width: 100%;\n}\n\n.styles-module_wrapper__HkVIU {\n display: flex;\n align-items: center;\n gap: 6px;\n border-radius: 18px;\n transition: 0.2s ease-in-out;\n padding-left: 4px;\n background: var(--background-1);\n border: 1px solid var(--border-1);\n margin-bottom: 20px;\n font-family: var(--font-1);\n border: 1px solid var(--border-1);\n padding: 0px 14px;\n gap: 10px;\n display: flex;\n align-items: center;\n border-radius: 12px;\n cursor: pointer;\n background: var(--background-1);\n transition: 0.2s ease-in-out;\n outline: none;\n text-indent: 1px;\n text-overflow: \"\";\n}\n.styles-module_wrapper__HkVIU .styles-module_select__nSHFF {\n background: none;\n font-size: 16px;\n min-width: 64px;\n height: 100%;\n font-family: var(--font-1);\n user-select: none;\n border: none;\n outline: none;\n height: 44px;\n cursor: pointer;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n}\n.styles-module_wrapper__HkVIU:hover {\n border-color: var(--primary-2);\n}\n.styles-module_wrapper__HkVIU:focus-within {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n background: var(--background-2);\n}";
|
9468
|
+
var styles$u = {"container":"styles-module_container__hGVir","wrapper":"styles-module_wrapper__HkVIU","select":"styles-module_select__nSHFF"};
|
9469
|
+
styleInject(css_248z$u);
|
9470
9470
|
|
9471
9471
|
const Dropdown = ({ options = [], unit = "", ...props }) => {
|
9472
|
-
return (React__default.createElement("div", { className: styles$
|
9473
|
-
React__default.createElement("div", { className: styles$
|
9472
|
+
return (React__default.createElement("div", { className: styles$u.container },
|
9473
|
+
React__default.createElement("div", { className: styles$u.wrapper },
|
9474
9474
|
React__default.createElement(SvgIcon, { iconName: "expand_more" }),
|
9475
|
-
React__default.createElement("select", { className: styles$
|
9475
|
+
React__default.createElement("select", { className: styles$u.select, ...props },
|
9476
9476
|
React__default.createElement("option", { value: "none" }, "Ausw\u00E4hlen"),
|
9477
9477
|
options.map((option, index) => (React__default.createElement("option", { key: index, value: option.value }, option.label)))))));
|
9478
9478
|
};
|
9479
9479
|
|
9480
|
-
var css_248z$
|
9481
|
-
var styles$
|
9482
|
-
styleInject(css_248z$
|
9480
|
+
var css_248z$t = ".styles-module_container__9wYEm {\n margin-bottom: 30px;\n width: 100%;\n font-family: var(--font-1);\n}\n.styles-module_container__9wYEm h1,\n.styles-module_container__9wYEm h2,\n.styles-module_container__9wYEm h3,\n.styles-module_container__9wYEm h4,\n.styles-module_container__9wYEm h5 {\n margin: 0;\n font-weight: 500;\n color: var(--foreground-1);\n}\n.styles-module_container__9wYEm h3 {\n margin-top: 5px;\n font-weight: 400;\n}";
|
9481
|
+
var styles$t = {"container":"styles-module_container__9wYEm"};
|
9482
|
+
styleInject(css_248z$t);
|
9483
9483
|
|
9484
9484
|
function FormText({ title, value, style }) {
|
9485
|
-
return (React__default.createElement("div", { className: styles$
|
9485
|
+
return (React__default.createElement("div", { className: styles$t.container, style: style },
|
9486
9486
|
React__default.createElement("h5", null, title),
|
9487
9487
|
React__default.createElement("h3", null, value)));
|
9488
9488
|
}
|
9489
9489
|
|
9490
|
-
var css_248z$
|
9491
|
-
var styles$
|
9492
|
-
styleInject(css_248z$
|
9490
|
+
var css_248z$s = ".styles-module_container__C99XV {\n margin-right: 8px;\n}\n.styles-module_container__C99XV .styles-module_button__pGYkF {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n}\n.styles-module_container__C99XV .styles-module_button__pGYkF:hover {\n background: var(--background-2);\n}\n.styles-module_container__C99XV .styles-module_button__pGYkF span {\n color: var(--foreground-1) !important;\n}";
|
9491
|
+
var styles$s = {"container":"styles-module_container__C99XV","button":"styles-module_button__pGYkF"};
|
9492
|
+
styleInject(css_248z$s);
|
9493
9493
|
|
9494
9494
|
function ForwardButton({ onClick = () => { } }) {
|
9495
9495
|
function onClickButton(event) {
|
9496
9496
|
event.preventDefault();
|
9497
9497
|
onClick(event);
|
9498
9498
|
}
|
9499
|
-
return (React__default.createElement("div", { className: styles$
|
9500
|
-
React__default.createElement("button", { onClick: onClickButton, className: styles$
|
9499
|
+
return (React__default.createElement("div", { className: styles$s.container },
|
9500
|
+
React__default.createElement("button", { onClick: onClickButton, className: styles$s.button },
|
9501
9501
|
React__default.createElement(SvgIcon, { iconName: "arrow_back" }))));
|
9502
9502
|
}
|
9503
9503
|
|
@@ -9505,9 +9505,9 @@ function Gap({ size }) {
|
|
9505
9505
|
return (React__default.createElement("div", { style: { height: size } }));
|
9506
9506
|
}
|
9507
9507
|
|
9508
|
-
var css_248z$
|
9509
|
-
var styles$
|
9510
|
-
styleInject(css_248z$
|
9508
|
+
var css_248z$r = ".styles-module_container__Jr7LQ {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__v-hUz {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n min-height: 50px;\n line-height: 1.7;\n background: var(--background-1);\n color: var(--foreground-1);\n font-family: var(--font-2);\n}\n.styles-module_input__v-hUz:focus, .styles-module_input__v-hUz:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_input__v-hUz.styles-module_not_available__6xu3Y, .styles-module_input__v-hUz:invalid {\n border: var(--invalid-border);\n box-shadow: var(--invalid-shadow);\n}\n\n/* animated title */\n.styles-module_container__Jr7LQ {\n position: relative;\n}\n\n.styles-module_label__SSsD3 {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__EOAq5 {\n position: absolute;\n top: 20px;\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__v-hUz.styles-module_with_title__HWcCH::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__v-hUz.styles-module_with_title__HWcCH:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__v-hUz:focus + .styles-module_label__SSsD3 .styles-module_label_text__EOAq5,\n.styles-module_input__v-hUz.styles-module_valid__6geu9 + .styles-module_label__SSsD3 .styles-module_label_text__EOAq5 {\n transform: translateY(-50%);\n left: 15px;\n font-size: 14px;\n top: 0;\n background: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__v-hUz.styles-module_valid__6geu9 + .styles-module_label__SSsD3 .styles-module_label_text__EOAq5 {\n color: var(--foreground-3);\n}";
|
9509
|
+
var styles$r = {"container":"styles-module_container__Jr7LQ","input":"styles-module_input__v-hUz","not_available":"styles-module_not_available__6xu3Y","label":"styles-module_label__SSsD3","label_text":"styles-module_label_text__EOAq5","with_title":"styles-module_with_title__HWcCH","valid":"styles-module_valid__6geu9"};
|
9510
|
+
styleInject(css_248z$r);
|
9511
9511
|
|
9512
9512
|
function InputArea({ id, title, name, placeholder = "", defaultValue = "", autoFocus = false, width = "100%", height = "100px", available = true, onInput }) {
|
9513
9513
|
const [value, setValue] = useState(defaultValue);
|
@@ -9516,36 +9516,36 @@ function InputArea({ id, title, name, placeholder = "", defaultValue = "", autoF
|
|
9516
9516
|
element.focus();
|
9517
9517
|
}, [autoFocus]);
|
9518
9518
|
return (React__default.createElement(React__default.Fragment, null,
|
9519
|
-
React__default.createElement("div", { className: styles$
|
9520
|
-
React__default.createElement("textarea", { className: `${styles$
|
9519
|
+
React__default.createElement("div", { className: styles$r.container, style: { width } },
|
9520
|
+
React__default.createElement("textarea", { className: `${styles$r.input} ${title != undefined ? styles$r.with_title : styles$r.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$r.valid : styles$r.not_valid} ${available ? styles$r.available : styles$r.not_available}`, name: name, id: id, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, style: { minHeight: height, maxHeight: height }, onInput: (event) => {
|
9521
9521
|
setValue(event.target.value);
|
9522
9522
|
if (onInput)
|
9523
9523
|
onInput(event);
|
9524
9524
|
} }),
|
9525
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9526
|
-
React__default.createElement("span", { className: styles$
|
9525
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$r.label },
|
9526
|
+
React__default.createElement("span", { className: styles$r.label_text }, title)))));
|
9527
9527
|
}
|
9528
9528
|
|
9529
|
-
var css_248z$
|
9530
|
-
var styles$
|
9531
|
-
styleInject(css_248z$
|
9529
|
+
var css_248z$q = ".styles-module_input__-GKhx {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n background: var(--background-1);\n color: var(--foreground-1);\n}\n.styles-module_input__-GKhx:focus, .styles-module_input__-GKhx:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_input__-GKhx.styles-module_not_available__XD1kR, .styles-module_input__-GKhx:invalid {\n border: var(--invalid-border);\n box-shadow: var(--invalid-shadow);\n}\n\n/* animated title */\n.styles-module_container__--4rV {\n position: relative;\n display: flex;\n flex-direction: column;\n margin-bottom: 20px;\n max-width: 100%;\n}\n\n.styles-module_label__mGzwP {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__d0eMb {\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__-GKhx.styles-module_with_title__CGOEs::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__-GKhx.styles-module_with_title__CGOEs:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__-GKhx:focus + .styles-module_label__mGzwP .styles-module_label_text__d0eMb,\n.styles-module_input__-GKhx.styles-module_valid__uj8g- + .styles-module_label__mGzwP .styles-module_label_text__d0eMb {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: var(--background-2);\n color: #0063d4;\n}\n\n.styles-module_input__-GKhx.styles-module_valid__uj8g- + .styles-module_label__mGzwP .styles-module_label_text__d0eMb {\n color: var(--foreground-3);\n}";
|
9530
|
+
var styles$q = {"input":"styles-module_input__-GKhx","not_available":"styles-module_not_available__XD1kR","container":"styles-module_container__--4rV","label":"styles-module_label__mGzwP","label_text":"styles-module_label_text__d0eMb","with_title":"styles-module_with_title__CGOEs","valid":"styles-module_valid__uj8g-"};
|
9531
|
+
styleInject(css_248z$q);
|
9532
9532
|
|
9533
9533
|
function InputMail({ id, placeholder = "E-Mail-Adresse", title = "E-Mail-Adresse", name = "email", width = "100%", available = true, defaultValue = "", onInput = () => { }, ...props }) {
|
9534
9534
|
const [value, setValue] = useState(defaultValue);
|
9535
9535
|
useEffect(() => setValue(defaultValue), [defaultValue]);
|
9536
9536
|
return (React__default.createElement(React__default.Fragment, null,
|
9537
|
-
React__default.createElement("div", { className: styles$
|
9538
|
-
React__default.createElement("input", { className: `${styles$
|
9537
|
+
React__default.createElement("div", { className: styles$q.container, style: { width: width } },
|
9538
|
+
React__default.createElement("input", { className: `${styles$q.input} ${title != undefined ? styles$q.with_title : styles$q.without_title} ${value.length > 0 ? styles$q.valid : styles$q.not_valid} ${available ? styles$q.available : styles$q.not_available}`, name: name, placeholder: placeholder, type: "email", id: id, onInput: (event) => {
|
9539
9539
|
setValue(event.target.value);
|
9540
9540
|
onInput(event);
|
9541
9541
|
}, ...props }),
|
9542
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9543
|
-
React__default.createElement("span", { className: styles$
|
9542
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$q.label },
|
9543
|
+
React__default.createElement("span", { className: styles$q.label_text }, title)))));
|
9544
9544
|
}
|
9545
9545
|
|
9546
|
-
var css_248z$
|
9547
|
-
var styles$
|
9548
|
-
styleInject(css_248z$
|
9546
|
+
var css_248z$p = ".styles-module_container__IXTeq {\n display: flex;\n flex-direction: row;\n gap: 20px;\n margin-bottom: 20px;\n max-width: 100%;\n}\n\n.styles-module_input__flMT5 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n background: var(--background-1);\n color: var(--foreground-1);\n}\n.styles-module_input__flMT5:focus, .styles-module_input__flMT5:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n\n/* animated title */\n.styles-module_form__chEvQ {\n position: relative;\n flex: 1;\n display: flex;\n}\n\n.styles-module_label__hflX9 {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__oXgFI {\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__flMT5.styles-module_with_title__ubN0L::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__flMT5.styles-module_with_title__ubN0L:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__flMT5:focus + .styles-module_label__hflX9 .styles-module_label_text__oXgFI,\n.styles-module_input__flMT5.styles-module_valid__76xYu + .styles-module_label__hflX9 .styles-module_label_text__oXgFI {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__flMT5.styles-module_valid__76xYu + .styles-module_label__hflX9 .styles-module_label_text__oXgFI {\n color: var(--foreground-3);\n}";
|
9547
|
+
var styles$p = {"container":"styles-module_container__IXTeq","input":"styles-module_input__flMT5","form":"styles-module_form__chEvQ","label":"styles-module_label__hflX9","label_text":"styles-module_label_text__oXgFI","with_title":"styles-module_with_title__ubN0L","valid":"styles-module_valid__76xYu"};
|
9548
|
+
styleInject(css_248z$p);
|
9549
9549
|
|
9550
9550
|
function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
|
9551
9551
|
const [firstName, setFirstName] = useState(defaultValue.firstName ? defaultValue.firstName : "");
|
@@ -9560,20 +9560,20 @@ function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "
|
|
9560
9560
|
onInputLastName(event);
|
9561
9561
|
onInput("lastName", event);
|
9562
9562
|
}
|
9563
|
-
return (React__default.createElement("div", { className: styles$
|
9564
|
-
React__default.createElement("div", { className: styles$
|
9565
|
-
React__default.createElement("input", { className: `${styles$
|
9566
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9567
|
-
React__default.createElement("span", { className: styles$
|
9568
|
-
React__default.createElement("div", { className: styles$
|
9569
|
-
React__default.createElement("input", { className: `${styles$
|
9570
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9571
|
-
React__default.createElement("span", { className: styles$
|
9563
|
+
return (React__default.createElement("div", { className: styles$p.container, style: { width: width } },
|
9564
|
+
React__default.createElement("div", { className: styles$p.form },
|
9565
|
+
React__default.createElement("input", { className: `${styles$p.input} ${title.firstName != undefined ? styles$p.with_title : styles$p.without_title} ${firstName.length > 0 ? styles$p.valid : styles$p.not_valid}`, name: "firstName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.firstName, defaultValue: defaultValue.firstName, onInput: onInput1 }),
|
9566
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$p.label },
|
9567
|
+
React__default.createElement("span", { className: styles$p.label_text }, title.firstName))),
|
9568
|
+
React__default.createElement("div", { className: styles$p.form },
|
9569
|
+
React__default.createElement("input", { className: `${styles$p.input} ${title.lastName != undefined ? styles$p.with_title : styles$p.without_title} ${lastName.length > 0 ? styles$p.valid : styles$p.not_valid}`, name: "lastName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.lastName, defaultValue: defaultValue.lastName, onInput: onInput2 }),
|
9570
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$p.label },
|
9571
|
+
React__default.createElement("span", { className: styles$p.label_text }, title.lastName)))));
|
9572
9572
|
}
|
9573
9573
|
|
9574
|
-
var css_248z$
|
9575
|
-
var styles$
|
9576
|
-
styleInject(css_248z$
|
9574
|
+
var css_248z$o = ".styles-module_container__Xk2HY {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n max-width: 100%;\n}\n\n.styles-module_input__ReFFR {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n width: 100%;\n background: var(--background-1);\n color: var(--foreground-1);\n /* Chrome, Safari, Edge, Opera */\n /* Firefox */\n}\n.styles-module_input__ReFFR:focus, .styles-module_input__ReFFR:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_input__ReFFR.styles-module_not_available__mZ5-1, .styles-module_input__ReFFR:invalid {\n border: var(--invalid-border);\n box-shadow: var(--invalid-shadow);\n}\n.styles-module_input__ReFFR::-webkit-outer-spin-button, .styles-module_input__ReFFR::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n}\n.styles-module_input__ReFFR[type=number] {\n -moz-appearance: textfield;\n appearance: textfield;\n}\n\n/* animated title */\n.styles-module_container__Xk2HY {\n position: relative;\n}\n\n.styles-module_label__4n2Ai {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__NsKJU {\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__ReFFR.styles-module_with_title__vMb1v::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__ReFFR.styles-module_with_title__vMb1v:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__ReFFR:focus + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU,\n.styles-module_input__ReFFR.styles-module_valid__NyP0J + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__ReFFR.styles-module_valid__NyP0J + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU {\n color: var(--foreground-3);\n}";
|
9575
|
+
var styles$o = {"container":"styles-module_container__Xk2HY","input":"styles-module_input__ReFFR","not_available":"styles-module_not_available__mZ5-1","label":"styles-module_label__4n2Ai","label_text":"styles-module_label_text__NsKJU","with_title":"styles-module_with_title__vMb1v","valid":"styles-module_valid__NyP0J"};
|
9576
|
+
styleInject(css_248z$o);
|
9577
9577
|
|
9578
9578
|
function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "number", width = "100%", available = true, onInput = (event) => { } }) {
|
9579
9579
|
const [value, setValue] = useState(defaultValue);
|
@@ -9582,37 +9582,37 @@ function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFoc
|
|
9582
9582
|
element.focus();
|
9583
9583
|
}, [autoFocus]);
|
9584
9584
|
return (React__default.createElement(React__default.Fragment, null,
|
9585
|
-
React__default.createElement("div", { className: styles$
|
9586
|
-
React__default.createElement("input", { className: `${styles$
|
9585
|
+
React__default.createElement("div", { className: styles$o.container, style: { width } },
|
9586
|
+
React__default.createElement("input", { className: `${styles$o.input} ${title != undefined ? styles$o.with_title : styles$o.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$o.valid : styles$o.not_valid} ${available ? styles$o.available : styles$o.not_available}`, name: name, type: type, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
|
9587
9587
|
setValue(event.target.value);
|
9588
9588
|
onInput(event);
|
9589
9589
|
} }),
|
9590
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9591
|
-
React__default.createElement("span", { className: styles$
|
9590
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$o.label },
|
9591
|
+
React__default.createElement("span", { className: styles$o.label_text }, title)))));
|
9592
9592
|
}
|
9593
9593
|
|
9594
|
-
var css_248z$
|
9595
|
-
var styles$
|
9596
|
-
styleInject(css_248z$
|
9594
|
+
var css_248z$n = "@keyframes styles-module_show__OLTZH {\n from {\n max-heigth: 0px;\n height: 0px;\n }\n}\n@keyframes styles-module_hide__LAgaY {\n from {\n max-heigth: 0px;\n height: 0px;\n }\n to {\n max-height: fit-content;\n }\n}\n.styles-module_container__UdmOO {\n display: flex;\n flex-direction: column;\n gap: 6px;\n margin-bottom: 30px;\n max-width: 100%;\n border: 1px solid var(--border-2);\n border-radius: 12px;\n transition: all 0.2s ease-in-out;\n box-sizing: border-box;\n}\n.styles-module_container__UdmOO .styles-module_forgot_label__EeN6a {\n font-size: 12px;\n color: var(--foreground-3);\n}\n.styles-module_container__UdmOO.styles-module_visible__QROqh {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__UdmOO.styles-module_hidden__hDKDO {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n.styles-module_container__UdmOO:focus-within {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n\n.styles-module_input__sC2fP {\n padding: 14px 20px;\n font-size: 16px;\n border-top-left-radius: 12px;\n border-bottom-left-radius: 12px;\n border-right: none;\n outline: none;\n border: none;\n transition: all 0.2s ease;\n flex: 1;\n background: var(--background-1);\n color: var(--foreground-1);\n}\n\n.styles-module_hideButton__83mRI {\n outline: none;\n display: flex;\n align-items: center;\n padding: 10px;\n border: none;\n border-left: none;\n background: none;\n border-top-right-radius: 12px;\n border-bottom-right-radius: 12px;\n cursor: pointer;\n}\n.styles-module_hideButton__83mRI span {\n color: var(--foreground-3);\n}\n\n/* animated title */\n.styles-module_form__m866x {\n position: relative;\n display: flex;\n}\n\n.styles-module_label__8PuaL {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__FwJ1F {\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__sC2fP.styles-module_with_title__dftgq::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__sC2fP.styles-module_with_title__dftgq:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__sC2fP:focus + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F,\n.styles-module_input__sC2fP.styles-module_valid__SM7w5 + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__sC2fP.styles-module_valid__SM7w5 + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F {\n color: var(--foreground-3);\n}";
|
9595
|
+
var styles$n = {"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"};
|
9596
|
+
styleInject(css_248z$n);
|
9597
9597
|
|
9598
9598
|
function InputPassword({ id, placeholder = "", title = "Passwort", name = 'password', isVisible = true, width = "100%", minLength = 8, autoComplete, forgotLink = false }) {
|
9599
9599
|
const [value, setValue] = useState("");
|
9600
9600
|
const [hidePassword, setHidePassword] = useState(true);
|
9601
9601
|
return (React__default.createElement(React__default.Fragment, null,
|
9602
|
-
React__default.createElement("div", { className: `${styles$
|
9603
|
-
React__default.createElement("div", { className: styles$
|
9604
|
-
React__default.createElement("input", { className: `${styles$
|
9605
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9606
|
-
React__default.createElement("span", { className: styles$
|
9607
|
-
React__default.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$
|
9602
|
+
React__default.createElement("div", { className: `${styles$n.container} ${isVisible ? styles$n.visible : styles$n.hidden}`, style: { width: width } },
|
9603
|
+
React__default.createElement("div", { className: styles$n.form },
|
9604
|
+
React__default.createElement("input", { className: `${styles$n.input} ${title != undefined ? styles$n.with_title : styles$n.without_title} ${value.length > 0 ? styles$n.valid : styles$n.not_valid}`, name: name, id: id, minLength: minLength, autoComplete: autoComplete, placeholder: placeholder, type: hidePassword ? "password" : "text", onInput: (event) => setValue(event.target.value) }),
|
9605
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$n.label },
|
9606
|
+
React__default.createElement("span", { className: styles$n.label_text }, title)),
|
9607
|
+
React__default.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$n.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
|
9608
9608
|
React__default.createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
|
9609
9609
|
forgotLink &&
|
9610
|
-
React__default.createElement("div", { className: styles$
|
9610
|
+
React__default.createElement("div", { className: styles$n.forgot_container }, forgotLink))));
|
9611
9611
|
}
|
9612
9612
|
|
9613
|
-
var css_248z$
|
9614
|
-
var styles$
|
9615
|
-
styleInject(css_248z$
|
9613
|
+
var css_248z$m = ".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: var(--primary-1);\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: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n text-align: center;\n font-size: 18px;\n font-weight: 400;\n background: var(--background-1);\n color: var(--foreground-1);\n font-family: var(--font-1);\n}\n.styles-module_input__84v36:focus, .styles-module_input__84v36:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\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}\n\n@media (max-width: 450px) {\n .styles-module_input__84v36 {\n width: 25px;\n font-size: 16px;\n }\n .styles-module_input_wrapper__LPIk1 {\n gap: 7px;\n }\n .styles-module_input__84v36:nth-child(3) {\n margin-right: 12px;\n }\n}";
|
9614
|
+
var styles$m = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
|
9615
|
+
styleInject(css_248z$m);
|
9616
9616
|
|
9617
9617
|
function InputPin({ name, length, onFinished = () => { } }) {
|
9618
9618
|
const [state, setState] = useState({});
|
@@ -9678,20 +9678,20 @@ function InputPin({ name, length, onFinished = () => { } }) {
|
|
9678
9678
|
ref.current.value = "";
|
9679
9679
|
});
|
9680
9680
|
}
|
9681
|
-
return (React__default.createElement("div", { className: styles$
|
9681
|
+
return (React__default.createElement("div", { className: styles$m.container },
|
9682
9682
|
React__default.createElement("input", { name: name, type: "hidden", defaultValue: Object.values(state).join("") }),
|
9683
|
-
React__default.createElement("div", { className: styles$
|
9683
|
+
React__default.createElement("div", { className: styles$m.input_wrapper }, [...Array(length)].map((value, i) => {
|
9684
9684
|
if (i == 0) {
|
9685
|
-
return React__default.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$
|
9685
|
+
return React__default.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$m.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
9686
9686
|
}
|
9687
|
-
return React__default.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$
|
9687
|
+
return React__default.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$m.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
9688
9688
|
})),
|
9689
9689
|
React__default.createElement("button", { type: "button", onClick: resetValues }, "Zur\u00FCcksetzen")));
|
9690
9690
|
}
|
9691
9691
|
|
9692
|
-
var css_248z$
|
9693
|
-
var styles$
|
9694
|
-
styleInject(css_248z$
|
9692
|
+
var css_248z$l = ".styles-module_container__zcXGF {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n max-width: 100%;\n}\n\n.styles-module_input__Tpth8 {\n padding: 14px 20px;\n font-size: 16px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n background: var(--background-1);\n color: var(--foreground-1);\n}\n.styles-module_input__Tpth8:focus, .styles-module_input__Tpth8:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n.styles-module_input__Tpth8.styles-module_not_available__CRXjB, .styles-module_input__Tpth8:invalid {\n border: var(--invalid-border);\n box-shadow: var(--invalid-shadow);\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 font-family: var(--font-1);\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: var(--background-1);\n color: var(--foreground-3);\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: var(--foreground-3);\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: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__Tpth8.styles-module_valid__zWcOz + .styles-module_label__appHO .styles-module_label_text__-sKjY {\n color: var(--foreground-3);\n}";
|
9693
|
+
var styles$l = {"container":"styles-module_container__zcXGF","input":"styles-module_input__Tpth8","not_available":"styles-module_not_available__CRXjB","label":"styles-module_label__appHO","label_text":"styles-module_label_text__-sKjY","with_title":"styles-module_with_title__L3eGj","valid":"styles-module_valid__zWcOz"};
|
9694
|
+
styleInject(css_248z$l);
|
9695
9695
|
|
9696
9696
|
function InputText({ id, title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "text", width = "100%", marginBottom, autoComplete = "off", available = true, onInput = () => { } }) {
|
9697
9697
|
const [value, setValue] = useState(defaultValue);
|
@@ -9701,29 +9701,29 @@ function InputText({ id, title, name, placeholder = "", defaultValue = "", autoF
|
|
9701
9701
|
element.focus();
|
9702
9702
|
}, [autoFocus]);
|
9703
9703
|
return (React__default.createElement(React__default.Fragment, null,
|
9704
|
-
React__default.createElement("div", { className: styles$
|
9705
|
-
React__default.createElement("input", { className: `${styles$
|
9704
|
+
React__default.createElement("div", { className: styles$l.container, style: { width, marginBottom } },
|
9705
|
+
React__default.createElement("input", { className: `${styles$l.input} ${title != undefined ? styles$l.with_title : styles$l.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$l.valid : styles$l.not_valid} ${available ? styles$l.available : styles$l.not_available}`, name: name, id: id, type: type, placeholder: placeholder, autoComplete: autoComplete, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
|
9706
9706
|
setValue(event.target.value);
|
9707
9707
|
onInput(event);
|
9708
9708
|
} }),
|
9709
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9710
|
-
React__default.createElement("span", { className: styles$
|
9709
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$l.label },
|
9710
|
+
React__default.createElement("span", { className: styles$l.label_text }, title)))));
|
9711
9711
|
}
|
9712
9712
|
|
9713
|
-
var css_248z$
|
9714
|
-
var styles$
|
9715
|
-
styleInject(css_248z$
|
9713
|
+
var css_248z$k = ".styles-module_container__u4q5n {\n margin-bottom: 50px;\n width: 400px;\n max-width: 100%;\n}\n\n.styles-module_background__jt-ry {\n background: var(--border-2);\n height: 3px;\n position: relative;\n}\n\n@keyframes styles-module_fadeIn__ytfsX {\n from {\n width: 0;\n }\n to {\n width: 100%;\n }\n}\n@keyframes styles-module_moveIn__E7c-3 {\n from {\n left: 0;\n }\n to {\n left: 100%;\n }\n}\n.styles-module_progress__Zj-B7 {\n left: 0;\n top: 0;\n height: 3px;\n position: relative;\n}\n.styles-module_progress__Zj-B7::before {\n height: 3px;\n content: \"\";\n left: 0;\n top: 0;\n background: var(--foreground-1);\n position: absolute;\n animation: styles-module_fadeIn__ytfsX 2s ease forwards;\n}\n.styles-module_progress__Zj-B7.styles-module_enableDot__CJC4D::after {\n content: \"\";\n height: 10px;\n width: 10px;\n background: var(--foreground-1);\n border-radius: 5px;\n left: 100%;\n bottom: -3.5px;\n position: absolute;\n animation: styles-module_moveIn__E7c-3 2s ease forwards;\n}";
|
9714
|
+
var styles$k = {"container":"styles-module_container__u4q5n","background":"styles-module_background__jt-ry","progress":"styles-module_progress__Zj-B7","fadeIn":"styles-module_fadeIn__ytfsX","enableDot":"styles-module_enableDot__CJC4D","moveIn":"styles-module_moveIn__E7c-3"};
|
9715
|
+
styleInject(css_248z$k);
|
9716
9716
|
|
9717
9717
|
function ProgressBar({ length, progress, enableDot = false }) {
|
9718
9718
|
return (React__default.createElement(React__default.Fragment, null,
|
9719
|
-
React__default.createElement("div", { className: styles$
|
9720
|
-
React__default.createElement("div", { className: styles$
|
9721
|
-
React__default.createElement("div", { className: [styles$
|
9719
|
+
React__default.createElement("div", { className: styles$k.container },
|
9720
|
+
React__default.createElement("div", { className: styles$k.background },
|
9721
|
+
React__default.createElement("div", { className: [styles$k.progress, enableDot ? styles$k.enableDot : styles$k.disableDot].join(" "), style: { width: `${progress / length * 100}%` } })))));
|
9722
9722
|
}
|
9723
9723
|
|
9724
|
-
var css_248z$
|
9725
|
-
var styles$
|
9726
|
-
styleInject(css_248z$
|
9724
|
+
var css_248z$j = ".styles-module_container__Grkzw {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: var(--foreground-3);\n margin-bottom: 20px;\n position: relative;\n}\n.styles-module_container__Grkzw [type=radio] {\n position: relative;\n left: 15px;\n top: -4px;\n z-index: 0;\n appearance: none;\n -webkit-appearance: none;\n cursor: pointer;\n margin-left: -3.5px;\n}\n.styles-module_container__Grkzw [type=radio] + label {\n position: absolute;\n cursor: pointer;\n}\n.styles-module_container__Grkzw [type=radio] + label::before {\n width: 15px;\n height: 15px;\n border-radius: 20px;\n border: 2px solid var(--border-2);\n display: block;\n content: \"\";\n float: left;\n margin-right: 8px;\n z-index: 5;\n position: relative;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__Grkzw [type=radio] + label::after {\n width: 10px;\n height: 10px;\n border-radius: 10px;\n display: block;\n content: \"\";\n z-index: 6;\n position: absolute;\n left: 4.5px;\n top: 4.5px;\n background-color: var(--background-1);\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__Grkzw .styles-module_option__nijjM {\n position: relative;\n}\n.styles-module_container__Grkzw [type=radio] ~ span {\n position: absolute;\n opacity: 1;\n color: var(--background-1);\n z-index: 100;\n user-select: none;\n pointer-events: none;\n -webkit-user-select: none;\n font-weight: 500;\n bottom: -1.5px;\n left: -1px;\n}\n.styles-module_container__Grkzw [type=radio]:checked ~ span {\n color: var(--background-1);\n}\n.styles-module_container__Grkzw [type=radio]:checked + label::before {\n background-color: var(--background-1);\n border-color: var(--primary-1);\n}\n.styles-module_container__Grkzw [type=radio]:checked + label::after {\n background-color: var(--primary-1);\n}\n.styles-module_container__Grkzw [type=radio]:hover:not(:checked) + label::before {\n border-color: var(--primary-2);\n}\n.styles-module_container__Grkzw [type=radio]:hover:not(:checked) + label::after {\n background: var(--primary-2);\n}";
|
9725
|
+
var styles$j = {"container":"styles-module_container__Grkzw","option":"styles-module_option__nijjM"};
|
9726
|
+
styleInject(css_248z$j);
|
9727
9727
|
|
9728
9728
|
function RadioButtons({ options, group, selected, onInput = () => { }, width = "100%" }) {
|
9729
9729
|
const [selectedOption, setSelected] = useState(selected);
|
@@ -9732,7 +9732,7 @@ function RadioButtons({ options, group, selected, onInput = () => { }, width = "
|
|
9732
9732
|
setSelected(event.target.value);
|
9733
9733
|
onInput(event);
|
9734
9734
|
}
|
9735
|
-
return (React__default.createElement("div", { className: styles$
|
9735
|
+
return (React__default.createElement("div", { className: styles$j.container, style: { width: width } }, options.map((option) => React__default.createElement("div", { className: styles$j.option, key: option.name },
|
9736
9736
|
selectedOption == option.name ?
|
9737
9737
|
React__default.createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onInput: onUpdateSelected, defaultChecked: true })
|
9738
9738
|
:
|
@@ -9740,9 +9740,9 @@ function RadioButtons({ options, group, selected, onInput = () => { }, width = "
|
|
9740
9740
|
React__default.createElement("label", { htmlFor: option.name }, option.text)))));
|
9741
9741
|
}
|
9742
9742
|
|
9743
|
-
var css_248z$
|
9744
|
-
var styles$
|
9745
|
-
styleInject(css_248z$
|
9743
|
+
var css_248z$i = ".styles-module_container__RhsQe {\n margin-right: 8px;\n}\n.styles-module_container__RhsQe.styles-module_back__j0HkC {\n display: block;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 {\n background: none;\n padding: none;\n border: none;\n width: 40px;\n height: 40px;\n transition: 0.2s;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 20px;\n font-family: var(--font-1);\n font-weight: 500;\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0 span {\n color: var(--foreground-1);\n}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: var(--background-1);\n}\n.styles-module_container__RhsQe .styles-module_label__bdjMh {\n display: none;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_label__bdjMh {\n display: block;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0 {\n flex-direction: row;\n gap: 5px;\n}\n.styles-module_container__RhsQe.styles-module_middle__xg7RF .styles-module_button__HuX-0:hover {\n background: none;\n}\n\n@media (max-width: 800px) {\n .styles-module_container__RhsQe.styles-module_forward__Vjtye {\n flex-basis: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC {\n flex-basis: 100%;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_label__bdjMh {\n display: block;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0 {\n gap: 5px;\n width: auto;\n }\n .styles-module_container__RhsQe.styles-module_back__j0HkC .styles-module_button__HuX-0:hover {\n background: none;\n }\n}";
|
9744
|
+
var styles$i = {"container":"styles-module_container__RhsQe","back":"styles-module_back__j0HkC","button":"styles-module_button__HuX-0","label":"styles-module_label__bdjMh","middle":"styles-module_middle__xg7RF","forward":"styles-module_forward__Vjtye"};
|
9745
|
+
styleInject(css_248z$i);
|
9746
9746
|
|
9747
9747
|
function RedirectButton({ id, type = "forward", onClick = () => { }, text = "" }) {
|
9748
9748
|
function onClickButton(event) {
|
@@ -9757,19 +9757,19 @@ function RedirectButton({ id, type = "forward", onClick = () => { }, text = "" }
|
|
9757
9757
|
}
|
9758
9758
|
};
|
9759
9759
|
return (React__default.createElement("div", { className: [
|
9760
|
-
styles$
|
9761
|
-
type === "forward" ? styles$
|
9762
|
-
type === "back" ? styles$
|
9763
|
-
type === "middle" ? styles$
|
9760
|
+
styles$i.container,
|
9761
|
+
type === "forward" ? styles$i.forward : styles$i.not_forward,
|
9762
|
+
type === "back" ? styles$i.back : styles$i.not_back,
|
9763
|
+
type === "middle" ? styles$i.middle : styles$i.not_middle
|
9764
9764
|
].join(" ") },
|
9765
|
-
React__default.createElement("button", { onClick: onClickButton, className: styles$
|
9765
|
+
React__default.createElement("button", { onClick: onClickButton, className: styles$i.button, id: id },
|
9766
9766
|
React__default.createElement(SvgIcon, { iconName: getIcon() }),
|
9767
|
-
React__default.createElement("span", { className: styles$
|
9767
|
+
React__default.createElement("span", { className: styles$i.label }, type == "middle" ? "Zurück" : text))));
|
9768
9768
|
}
|
9769
9769
|
|
9770
|
-
var css_248z$
|
9771
|
-
var styles$
|
9772
|
-
styleInject(css_248z$
|
9770
|
+
var css_248z$h = ".styles-module_container__k4Z26 {\n width: 100%;\n display: flex;\n flex-direction: row;\n gap: 10px;\n position: relative;\n}\n.styles-module_container__k4Z26 button {\n background: var(--primary-2);\n padding: 0px 18px;\n border: none;\n font-size: 14px;\n border-radius: 10px;\n cursor: pointer;\n color: var(--primary-1);\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ-,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om {\n display: none;\n position: absolute;\n top: 60px;\n background: var(--background-1);\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n width: 100%;\n border-radius: 14px;\n border: 1px solid var(--border-3);\n z-index: 1000;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ-:hover,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om:hover {\n display: block;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul li,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li {\n padding: 16px 20px;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- ul li:not(:last-child),\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li:not(:last-child) {\n border-bottom: 1px solid var(--border-3);\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X {\n padding: 35px 0px;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 15px;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X h3,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X h3 {\n margin: 0;\n}\n.styles-module_container__k4Z26 .styles-module_suggestions_container__pceQ- .styles-module_error__2Ov4X p,\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om .styles-module_error__2Ov4X p {\n color: var(--foreground-3);\n padding: 0px 30px;\n line-height: 1.5;\n text-align: center;\n margin-bottom: 10px;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li {\n display: flex;\n flex-direction: row;\n padding: 10px 20px;\n align-items: center;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om ul li span {\n flex: 1;\n}\n.styles-module_container__k4Z26 .styles-module_results_container__OY4Om button {\n padding: 10px 16px;\n}\n\n.styles-module_input__wOJmG {\n padding: 14px 20px;\n font-size: 16px;\n width: 300px;\n border-radius: 12px;\n border: 1px solid var(--border-2);\n outline: none;\n transition: 0.2s ease;\n width: 100%;\n background: var(--background-1);\n color: var(--foreground-1);\n}\n.styles-module_input__wOJmG:focus, .styles-module_input__wOJmG:active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n}\n\n.styles-module_form__mWTCu.styles-module_focus__-6H1f + .styles-module_suggestions_container__pceQ-,\n.styles-module_form__mWTCu.styles-module_focus__-6H1f + .styles-module_results_container__OY4Om {\n display: block;\n}\n\ninput[type=search]::-webkit-search-decoration,\ninput[type=search]::-webkit-search-cancel-button,\ninput[type=search]::-webkit-search-results-button,\ninput[type=search]::-webkit-search-results-decoration {\n -webkit-appearance: none;\n}\n\n/* animated text field */\n.styles-module_form__mWTCu {\n position: relative;\n width: 100%;\n}\n\n.styles-module_label__A41g9 {\n position: absolute;\n bottom: 0px;\n left: 0px;\n width: 100%;\n height: 100%;\n pointer-events: none;\n font-family: var(--font-1);\n}\n\n.styles-module_label_text__NQHTC {\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: var(--background-1);\n color: var(--foreground-3);\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.styles-module_input__wOJmG.styles-module_with_title__rnN-t::placeholder {\n opacity: 0;\n transition: opacity 0.3s ease;\n color: var(--foreground-3);\n}\n\n.styles-module_input__wOJmG.styles-module_with_title__rnN-t:focus::placeholder {\n opacity: 1;\n}\n\n.styles-module_input__wOJmG:focus + .styles-module_label__A41g9 .styles-module_label_text__NQHTC,\n.styles-module_input__wOJmG.styles-module_valid__AAK-6 + .styles-module_label__A41g9 .styles-module_label_text__NQHTC {\n transform: translateY(-150%);\n left: 15px;\n font-size: 14px;\n background: var(--background-2);\n color: var(--primary-1);\n}\n\n.styles-module_input__wOJmG.styles-module_valid__AAK-6 + .styles-module_label__A41g9 .styles-module_label_text__NQHTC {\n color: var(--foreground-3);\n}";
|
9771
|
+
var styles$h = {"container":"styles-module_container__k4Z26","suggestions_container":"styles-module_suggestions_container__pceQ-","results_container":"styles-module_results_container__OY4Om","error":"styles-module_error__2Ov4X","input":"styles-module_input__wOJmG","form":"styles-module_form__mWTCu","focus":"styles-module_focus__-6H1f","label":"styles-module_label__A41g9","label_text":"styles-module_label_text__NQHTC","with_title":"styles-module_with_title__rnN-t","valid":"styles-module_valid__AAK-6"};
|
9772
|
+
styleInject(css_248z$h);
|
9773
9773
|
|
9774
9774
|
function Searchbar({ placeholder, title = "Suchen", showNoResults = false, errorTitle = "Keine Ergebnisse gefunden", errorMessage = "", errorButton = "", helpTitle = "", helpMessage = "", width = "100%", marginBottom = 25, marginTop = 30, errorAction = () => { }, onInput = () => { }, onClickResult = () => { }, withButton = false, buttonText = "Suchen", suggestions = [], autoFocus = false, results = [] }) {
|
9775
9775
|
const [value, setValue] = useState("");
|
@@ -9798,31 +9798,48 @@ function Searchbar({ placeholder, title = "Suchen", showNoResults = false, error
|
|
9798
9798
|
element.focus();
|
9799
9799
|
}, [autoFocus]);
|
9800
9800
|
return (React__default.createElement(React__default.Fragment, null,
|
9801
|
-
React__default.createElement("div", { className: styles$
|
9802
|
-
React__default.createElement("div", { className: `${styles$
|
9803
|
-
React__default.createElement("input", { onFocus: () => setFocused(true), onBlur: () => setFocused(false), className: `${styles$
|
9804
|
-
React__default.createElement("label", { htmlFor: "text", className: styles$
|
9805
|
-
React__default.createElement("span", { className: styles$
|
9801
|
+
React__default.createElement("div", { className: styles$h.container, style: { marginTop: marginTop, marginBottom: marginBottom, width: width } },
|
9802
|
+
React__default.createElement("div", { className: `${styles$h.form} ${inputFocused ? styles$h.focus : styles$h.not_focused}` },
|
9803
|
+
React__default.createElement("input", { onFocus: () => setFocused(true), onBlur: () => setFocused(false), className: `${styles$h.input} ${title != undefined ? styles$h.with_title : styles$h.without_title} ${value.length > 0 ? styles$h.valid : styles$h.not_valid}`, placeholder: placeholder, type: "search", ref: inputElement, onInput: onInputChanged }),
|
9804
|
+
React__default.createElement("label", { htmlFor: "text", className: styles$h.label },
|
9805
|
+
React__default.createElement("span", { className: styles$h.label_text }, title))),
|
9806
9806
|
withButton && React__default.createElement("button", { type: "button" }, buttonText),
|
9807
|
-
suggestions.length > 0 && React__default.createElement("div", { className: styles$
|
9807
|
+
suggestions.length > 0 && React__default.createElement("div", { className: styles$h.suggestions_container },
|
9808
9808
|
React__default.createElement("ul", null, suggestions.map((suggestion, index) => React__default.createElement("li", { key: index }, suggestion)))),
|
9809
|
-
searchResults.length > 0 && React__default.createElement("div", { className: styles$
|
9809
|
+
searchResults.length > 0 && React__default.createElement("div", { className: styles$h.results_container },
|
9810
9810
|
React__default.createElement("ul", null, searchResults.map((result, index) => React__default.createElement("li", { key: index, onClick: (event) => onClickResult(event, result) },
|
9811
9811
|
React__default.createElement("span", null, result.title),
|
9812
9812
|
React__default.createElement("button", { type: "button" }, buttonText))))),
|
9813
|
-
searchResults.length == 0 && showNoResults && value.length > 0 && React__default.createElement("div", { className: styles$
|
9814
|
-
React__default.createElement("div", { className: styles$
|
9813
|
+
searchResults.length == 0 && showNoResults && value.length > 0 && React__default.createElement("div", { className: styles$h.results_container },
|
9814
|
+
React__default.createElement("div", { className: styles$h.error },
|
9815
9815
|
React__default.createElement(SvgIcon, { iconName: "error" }),
|
9816
9816
|
React__default.createElement("h3", null, errorTitle),
|
9817
9817
|
React__default.createElement("p", null, errorMessage),
|
9818
9818
|
errorButton.length > 0 && React__default.createElement("button", { type: "button", onClick: errorAction }, errorButton))),
|
9819
|
-
searchResults.length == 0 && showNoResults && value.length == 0 && React__default.createElement("div", { className: styles$
|
9820
|
-
React__default.createElement("div", { className: styles$
|
9819
|
+
searchResults.length == 0 && showNoResults && value.length == 0 && React__default.createElement("div", { className: styles$h.results_container },
|
9820
|
+
React__default.createElement("div", { className: styles$h.error },
|
9821
9821
|
React__default.createElement(SvgIcon, { iconName: "lightbulb" }),
|
9822
9822
|
React__default.createElement("h3", null, helpTitle),
|
9823
9823
|
React__default.createElement("p", null, helpMessage))))));
|
9824
9824
|
}
|
9825
9825
|
|
9826
|
+
var css_248z$g = ".styles-module_container__Mk8-I {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n font-family: var(--font-1);\n}\n\n.styles-module_toggle__HDqwi {\n background: var(--background-4);\n border-radius: 50px;\n padding: 2px;\n transition: 0.2s ease-in-out;\n cursor: pointer;\n width: 32px;\n}\n.styles-module_toggle__HDqwi.styles-module_active__ZEu1a {\n background: var(--primary-1);\n}\n.styles-module_toggle__HDqwi.styles-module_active__ZEu1a .styles-module_circle__QuzsS {\n transform: translateX(16px);\n}\n.styles-module_toggle__HDqwi .styles-module_circle__QuzsS {\n width: 16px;\n height: 16px;\n background: var(--background-1);\n border-radius: 50%;\n transition: 0.1s ease-in-out;\n}";
|
9827
|
+
var styles$g = {"container":"styles-module_container__Mk8-I","toggle":"styles-module_toggle__HDqwi","active":"styles-module_active__ZEu1a","circle":"styles-module_circle__QuzsS"};
|
9828
|
+
styleInject(css_248z$g);
|
9829
|
+
|
9830
|
+
const Switch = ({ children, defaultActive = false, onChange = () => { } }) => {
|
9831
|
+
const [isActive, setActive] = useState(defaultActive);
|
9832
|
+
useEffect(() => setActive(defaultActive), [defaultActive]);
|
9833
|
+
const onToggle = () => {
|
9834
|
+
setActive(!isActive);
|
9835
|
+
onChange(!isActive);
|
9836
|
+
};
|
9837
|
+
return (React__default.createElement("div", { className: styles$g.container },
|
9838
|
+
React__default.createElement("div", { className: [styles$g.toggle, isActive ? styles$g.active : styles$g.not_active].join(" "), onClick: onToggle },
|
9839
|
+
React__default.createElement("div", { className: styles$g.circle })),
|
9840
|
+
children));
|
9841
|
+
};
|
9842
|
+
|
9826
9843
|
var css_248z$f = ".styles-module_container__Kl-lB {\n display: flex;\n flex-direction: row;\n gap: 20px;\n margin-bottom: 20px;\n}\n\n.styles-module_tab__Veki- {\n flex: 1;\n border-radius: 42px;\n border: 1px solid transparent;\n border-bottom: 2px;\n border-bottom-style: solid;\n border-bottom-color: var(--border-1);\n background: var(--background-1);\n color: var(--foreground-1);\n padding: 16px;\n text-align: center;\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n font-family: var(--font-1);\n font-weight: 400;\n}\n.styles-module_tab__Veki-:not(.styles-module_selected__geNE7):active {\n border: var(--focus-border);\n box-shadow: var(--focus-shadow);\n border-bottom: 2px;\n border-bottom-style: solid;\n border-bottom-color: var(--primary-1);\n}\n.styles-module_tab__Veki-.styles-module_selected__geNE7 {\n border-bottom-color: var(--primary-1);\n background: var(--primary-2);\n color: var(--primary-1);\n}\n\n@media (max-width: 750px) {\n .styles-module_container__Kl-lB {\n gap: 0px;\n display: grid;\n grid-template-columns: 1fr 1fr;\n }\n .styles-module_tab__Veki- {\n border-radius: 0px;\n }\n .styles-module_tab__Veki-:nth-child(1) {\n border-top-left-radius: 16px;\n }\n .styles-module_tab__Veki-:nth-child(2) {\n border-top-right-radius: 16px;\n }\n .styles-module_tab__Veki-:nth-child(3) {\n border-bottom-left-radius: 16px;\n }\n .styles-module_tab__Veki-:nth-child(4) {\n border-bottom-right-radius: 16px;\n }\n}";
|
9827
9844
|
var styles$f = {"container":"styles-module_container__Kl-lB","tab":"styles-module_tab__Veki-","selected":"styles-module_selected__geNE7"};
|
9828
9845
|
styleInject(css_248z$f);
|
@@ -10541,4 +10558,4 @@ const site = (pathname) => process.env.NEXT_PUBLIC_APP_URL + pathname;
|
|
10541
10558
|
const app = (pathname) => site("/app" + pathname);
|
10542
10559
|
const cdn = (pathname) => process.env.NEXT_PUBLIC_WEB_ASSETS_CDN + pathname;
|
10543
10560
|
|
10544
|
-
export { Accordeon, Button, Button2, CardButton, Checkbox, ChooseRole, CopyCode, Dialog, Dropdown, EmptyCard, FormText, ForwardButton, Gap, InputArea, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, NumberDropdown, NumberField, OptionField, OptionField2, Popover, ProgressBar, RadioButtons, RedirectButton, SearchChips, Searchbar, SelectFileCard, Slider, StepBack, SvgIcon, Table, Tabs, TextWithIcon, UsageCard, app, cdn, site, useDimensions, useOrientation, useScroll };
|
10561
|
+
export { Accordeon, Button, Button2, CardButton, Checkbox, ChooseRole, CopyCode, Dialog, Dropdown, EmptyCard, FormText, ForwardButton, Gap, InputArea, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, NumberDropdown, NumberField, OptionField, OptionField2, Popover, ProgressBar, RadioButtons, RedirectButton, SearchChips, Searchbar, SelectFileCard, Slider, StepBack, SvgIcon, Switch, Table, Tabs, TextWithIcon, UsageCard, app, cdn, site, useDimensions, useOrientation, useScroll };
|