math-main-components 0.0.67 → 0.0.68
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/InputArea/InputArea.d.ts +12 -0
- package/dist/components/InputArea/index.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/index.d.ts +1 -0
- package/dist/index.cjs.js +200 -169
- package/dist/index.d.ts +4 -4
- package/dist/index.esm.js +199 -170
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -32,33 +32,33 @@ function styleInject(css, ref) {
|
|
32
32
|
}
|
33
33
|
}
|
34
34
|
|
35
|
-
var css_248z$
|
36
|
-
var styles$
|
37
|
-
styleInject(css_248z$
|
35
|
+
var css_248z$u = ".styles-module_container__3IVfB {\n margin-top: 40px;\n background: white;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\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: grey;\n background: #F1F1F1;\n border-radius: 30px;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n transition: 0.2s ease-in-out;\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 background: #e2e2e2;\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}\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 0px;\n}";
|
36
|
+
var styles$u = {"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"};
|
37
|
+
styleInject(css_248z$u);
|
38
38
|
|
39
39
|
function Accordeon({ title, children }) {
|
40
40
|
const [isActive, setActive] = useState(false);
|
41
|
-
return (React.createElement("div", { className: [styles$
|
42
|
-
React.createElement("div", { className: styles$
|
41
|
+
return (React.createElement("div", { className: [styles$u.container, isActive ? styles$u.active : styles$u.not_active].join(" ") },
|
42
|
+
React.createElement("div", { className: styles$u.head, onClick: () => setActive(!isActive) },
|
43
43
|
React.createElement(SvgIcon, { iconName: "expand_more" }),
|
44
44
|
React.createElement("h3", null, title)),
|
45
|
-
React.createElement("div", { className: styles$
|
45
|
+
React.createElement("div", { className: styles$u.content }, children)));
|
46
46
|
}
|
47
47
|
|
48
|
-
var css_248z$
|
49
|
-
var styles$
|
50
|
-
styleInject(css_248z$
|
48
|
+
var css_248z$t = ".styles-module_container__4978M {\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__4978M.styles-module_visible__uvQwq {\n max-height: 100px;\n opacity: 1;\n}\n.styles-module_container__4978M.styles-module_hidden__Oruyx {\n overflow: hidden;\n max-height: 0;\n opacity: 0;\n}\n\n.styles-module_container__4978M.styles-module_rotate__mmYPQ .styles-module_button__BWOOi:hover span {\n rotate: -45deg;\n}\n\n.styles-module_button__BWOOi {\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 gap: 10px;\n position: relative;\n transition: all 0.5s ease-in-out;\n}\n.styles-module_button__BWOOi span {\n transition: 0.1s ease-in-out;\n}\n.styles-module_button__BWOOi:hover {\n background-position-x: left;\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 {\n background: white;\n color: #0075FF;\n border: 1px solid #0075FF;\n}\n.styles-module_button__BWOOi.styles-module_secondary__Eoik3 svg {\n fill: #0075FF;\n}";
|
49
|
+
var styles$t = {"container":"styles-module_container__4978M","visible":"styles-module_visible__uvQwq","hidden":"styles-module_hidden__Oruyx","rotate":"styles-module_rotate__mmYPQ","button":"styles-module_button__BWOOi","secondary":"styles-module_secondary__Eoik3"};
|
50
|
+
styleInject(css_248z$t);
|
51
51
|
|
52
52
|
function AuthButton({ text, type = "submit", theme = "primary", iconName = "arrow_forward", isVisible = true, onClick }) {
|
53
|
-
return (React.createElement("div", { className: [styles$
|
54
|
-
React.createElement("button", { type: type, className: `${styles$
|
53
|
+
return (React.createElement("div", { className: [styles$t.container, isVisible ? styles$t.visible : styles$t.hidden, ["arrow_forward"].includes(iconName) ? styles$t.rotate : null].join(" ") },
|
54
|
+
React.createElement("button", { type: type, className: `${styles$t.button} ${styles$t[theme]}`, onClick: onClick },
|
55
55
|
text,
|
56
56
|
React.createElement(SvgIcon, { iconName: iconName }))));
|
57
57
|
}
|
58
58
|
|
59
|
-
var css_248z$
|
60
|
-
var styles$
|
61
|
-
styleInject(css_248z$
|
59
|
+
var css_248z$s = ".styles-module_card__bOd85 {\n background: #F4F4F4;\n border: 1px solid #B1B1B1;\n border-radius: 18px;\n transition: 0.2s ease;\n padding: 18px 14px;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n cursor: pointer;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding-top: 30px;\n}\n.styles-module_card__bOd85 span {\n color: grey;\n}\n.styles-module_card__bOd85:hover {\n transform: scale(1.01);\n box-shadow: none;\n background: none;\n}\n.styles-module_card__bOd85 h2 {\n margin-top: 0;\n color: grey;\n font-weight: 400;\n font-size: 18px;\n}";
|
60
|
+
var styles$s = {"card":"styles-module_card__bOd85"};
|
61
|
+
styleInject(css_248z$s);
|
62
62
|
|
63
63
|
function CardButton({ title, iconName, onClick, }) {
|
64
64
|
function onClickCard(event) {
|
@@ -66,25 +66,25 @@ function CardButton({ title, iconName, onClick, }) {
|
|
66
66
|
if (onClick)
|
67
67
|
onClick(event);
|
68
68
|
}
|
69
|
-
return (React.createElement("div", { className: styles$
|
69
|
+
return (React.createElement("div", { className: styles$s.card, onClick: onClickCard },
|
70
70
|
React.createElement(SvgIcon, { iconName: iconName, size: "32px" }),
|
71
71
|
React.createElement("h2", null, title)));
|
72
72
|
}
|
73
73
|
|
74
|
-
var css_248z$
|
75
|
-
var styles$
|
76
|
-
styleInject(css_248z$
|
74
|
+
var css_248z$r = ".styles-module_container__gCCnD {\n margin-bottom: 20px;\n width: 343px;\n color: grey;\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}\n.styles-module_container__gCCnD [type=checkbox] + label {\n position: absolute;\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 #a8a8a8;\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 span {\n position: absolute;\n opacity: 1;\n color: white;\n z-index: 100;\n user-select: none;\n pointer-events: none;\n -webkit-user-select: none;\n font-weight: 300;\n}\n.styles-module_container__gCCnD [type=checkbox]:checked + label::before {\n background-color: #0075FF;\n border-color: #0075FF;\n}\n.styles-module_container__gCCnD [type=checkbox]:hover:not(:checked) + label::before {\n background-color: #ecedee;\n border-color: #ecedee;\n}";
|
75
|
+
var styles$r = {"container":"styles-module_container__gCCnD"};
|
76
|
+
styleInject(css_248z$r);
|
77
77
|
|
78
78
|
function Checkbox({ text, name, checked, defaultChecked = false, onInput = () => { }, }) {
|
79
|
-
return (React.createElement("div", { className: styles$
|
79
|
+
return (React.createElement("div", { className: styles$r.container },
|
80
80
|
React.createElement("input", { type: "checkbox", onInput: onInput, name: name, id: name, checked: checked, defaultChecked: defaultChecked }),
|
81
81
|
React.createElement("label", { htmlFor: name }, text),
|
82
82
|
React.createElement(SvgIcon, { iconName: "done", size: "21px" })));
|
83
83
|
}
|
84
84
|
|
85
|
-
var css_248z$
|
86
|
-
var styles$
|
87
|
-
styleInject(css_248z$
|
85
|
+
var css_248z$q = ".styles-module_container__OqDNA {\n display: flex;\n flex-direction: row;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(1) {\n background: #F0F0F0;\n border-color: #F0F0F0;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(2) {\n background: #E0E0E0;\n border-color: #E0E0E0;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:nth-child(3) {\n background: #CBCBCB;\n border-color: #CBCBCB;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:first-child {\n border-top-left-radius: 20px;\n border-bottom-left-radius: 20px;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI:last-child {\n border-top-right-radius: 20px;\n border-bottom-right-radius: 20px;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI {\n border: 1px solid transparent;\n padding: 11px 18px;\n font-size: 14px;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n user-select: none;\n -webkit-user-select: none;\n}\n.styles-module_container__OqDNA .styles-module_item__1SMCI.styles-module_selected__AXIA- {\n background: #C6D4F8;\n border-color: #0075FF;\n color: #0075FF;\n}";
|
86
|
+
var styles$q = {"container":"styles-module_container__OqDNA","item":"styles-module_item__1SMCI","selected":"styles-module_selected__AXIA-"};
|
87
|
+
styleInject(css_248z$q);
|
88
88
|
|
89
89
|
class ChooseRoleItem {
|
90
90
|
title;
|
@@ -102,12 +102,12 @@ function ChooseRole({ roles, defaultSelected, readOnly = false, onChange }) {
|
|
102
102
|
setSelected(newRole);
|
103
103
|
onChange(newRole);
|
104
104
|
}
|
105
|
-
return (React.createElement("div", { className: styles$
|
105
|
+
return (React.createElement("div", { className: styles$q.container }, roles.map((item, index) => React.createElement("div", { key: index, className: [styles$q.item, selected == item.value ? styles$q.selected : styles$q.not_selected].join(" "), onClick: () => onUpdate(item.value) }, item.title))));
|
106
106
|
}
|
107
107
|
|
108
|
-
var css_248z$
|
109
|
-
var styles$
|
110
|
-
styleInject(css_248z$
|
108
|
+
var css_248z$p = ".styles-module_container__yV6C8 {\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 30px;\n transition: 0.2s ease-in-out;\n margin-bottom: 20px;\n}\n.styles-module_container__yV6C8:hover {\n color: #0075FF;\n}";
|
109
|
+
var styles$p = {"container":"styles-module_container__yV6C8"};
|
110
|
+
styleInject(css_248z$p);
|
111
111
|
|
112
112
|
function CopyCode({ code, style, onCopy = () => { } }) {
|
113
113
|
function onClick() {
|
@@ -115,15 +115,15 @@ function CopyCode({ code, style, onCopy = () => { } }) {
|
|
115
115
|
if (onCopy)
|
116
116
|
onCopy();
|
117
117
|
}
|
118
|
-
return (React.createElement("div", { className: styles$
|
118
|
+
return (React.createElement("div", { className: styles$p.container, onClick: onClick, style: style },
|
119
119
|
React.createElement(SvgIcon, { iconName: "content_copy" }),
|
120
120
|
React.createElement("span", null, code),
|
121
121
|
React.createElement("input", { type: "hidden", name: "code", value: code })));
|
122
122
|
}
|
123
123
|
|
124
|
-
var css_248z$
|
125
|
-
var styles$
|
126
|
-
styleInject(css_248z$
|
124
|
+
var css_248z$o = ".styles-module_container__9-1MH {\n position: fixed;\n height: 100vh;\n width: 100vw;\n background: rgba(255, 255, 255, 0.659);\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: white;\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}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_cancel_button__KhwLS {\n border-radius: 12px;\n background: #DADADA;\n padding: 14px 0px;\n border: none;\n outline: none;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_cancel_button__KhwLS:hover {\n background: #cbcbcb;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_submit_button__xLzux {\n border-radius: 12px;\n color: white;\n background: #0075FF;\n padding: 14px 0px;\n border: none;\n outline: none;\n cursor: pointer;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__9-1MH .styles-module_dialog_window__0Bn2M .styles-module_submit_button__xLzux:hover {\n background: #006ce8;\n}";
|
125
|
+
var styles$o = {"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"};
|
126
|
+
styleInject(css_248z$o);
|
127
127
|
|
128
128
|
function Dialog({ data, text, onClose, onSubmit, children }) {
|
129
129
|
function onClick(event) {
|
@@ -134,38 +134,38 @@ function Dialog({ data, text, onClose, onSubmit, children }) {
|
|
134
134
|
onClose(event, data?.data);
|
135
135
|
}
|
136
136
|
}
|
137
|
-
return (React.createElement("div", { id: "dialog-backdrop", className: `${styles$
|
138
|
-
React.createElement("div", { className: styles$
|
137
|
+
return (React.createElement("div", { id: "dialog-backdrop", className: `${styles$o.container} ${data?.isActive ? styles$o.active : styles$o.disabled}`, onClick: onClick },
|
138
|
+
React.createElement("div", { className: styles$o.dialog_window },
|
139
139
|
children,
|
140
140
|
text && React.createElement("h1", null, text),
|
141
|
-
React.createElement("button", { className: styles$
|
142
|
-
React.createElement("button", { className: styles$
|
141
|
+
React.createElement("button", { className: styles$o.cancel_button, id: "cancel-button", onClick: onClick }, "Abbrechen"),
|
142
|
+
React.createElement("button", { className: styles$o.submit_button, id: "submit-button", onClick: (event) => onSubmit && onSubmit(event, data?.data) }, "Best\u00E4tigen"))));
|
143
143
|
}
|
144
144
|
|
145
|
-
var css_248z$
|
146
|
-
var styles$
|
147
|
-
styleInject(css_248z$
|
145
|
+
var css_248z$n = ".styles-module_container__HOoBj {\n margin-bottom: 30px;\n}\n.styles-module_container__HOoBj button {\n padding: 12px 18px;\n border-radius: 40px;\n border: none;\n color: white;\n font-size: 16px;\n background: #0075FF;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n align-items: center;\n}";
|
146
|
+
var styles$n = {"container":"styles-module_container__HOoBj"};
|
147
|
+
styleInject(css_248z$n);
|
148
148
|
|
149
149
|
function FormButton({ text, style = {}, iconName = "", type = "submit", background = "#0075FF", onClick = () => { } }) {
|
150
|
-
return (React.createElement("div", { className: styles$
|
150
|
+
return (React.createElement("div", { className: styles$n.container, style: style },
|
151
151
|
React.createElement("button", { type: type, onClick: onClick, style: { background: background } },
|
152
152
|
text,
|
153
153
|
iconName && React.createElement(SvgIcon, { iconName: iconName, fill: "white" }))));
|
154
154
|
}
|
155
155
|
|
156
|
-
var css_248z$
|
157
|
-
var styles$
|
158
|
-
styleInject(css_248z$
|
156
|
+
var css_248z$m = ".styles-module_container__9wYEm {\n margin-bottom: 30px;\n width: 100%;\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: 400;\n color: black;\n}\n.styles-module_container__9wYEm h3 {\n margin-top: 5px;\n}";
|
157
|
+
var styles$m = {"container":"styles-module_container__9wYEm"};
|
158
|
+
styleInject(css_248z$m);
|
159
159
|
|
160
160
|
function FormText({ title, value, style }) {
|
161
|
-
return (React.createElement("div", { className: styles$
|
161
|
+
return (React.createElement("div", { className: styles$m.container, style: style },
|
162
162
|
React.createElement("h5", null, title),
|
163
163
|
React.createElement("h3", null, value)));
|
164
164
|
}
|
165
165
|
|
166
|
-
var css_248z$
|
167
|
-
var styles$
|
168
|
-
styleInject(css_248z$
|
166
|
+
var css_248z$l = ".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: rgb(207, 207, 207);\n}";
|
167
|
+
var styles$l = {"container":"styles-module_container__C99XV","button":"styles-module_button__pGYkF"};
|
168
|
+
styleInject(css_248z$l);
|
169
169
|
|
170
170
|
function ForwardButton({ onClick }) {
|
171
171
|
function onClickButton(event) {
|
@@ -173,8 +173,8 @@ function ForwardButton({ onClick }) {
|
|
173
173
|
if (onClick)
|
174
174
|
onClick(event);
|
175
175
|
}
|
176
|
-
return (React.createElement("div", { className: styles$
|
177
|
-
React.createElement("button", { onClick: onClickButton, className: styles$
|
176
|
+
return (React.createElement("div", { className: styles$l.container },
|
177
|
+
React.createElement("button", { onClick: onClickButton, className: styles$l.button },
|
178
178
|
React.createElement(SvgIcon, { iconName: "arrow_back" }))));
|
179
179
|
}
|
180
180
|
|
@@ -182,22 +182,43 @@ function Gap({ size }) {
|
|
182
182
|
return (React.createElement("div", { style: { height: size } }));
|
183
183
|
}
|
184
184
|
|
185
|
-
var css_248z$
|
186
|
-
var styles$
|
187
|
-
styleInject(css_248z$
|
185
|
+
var css_248z$k = ".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: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n flex: 1;\n min-height: 50px;\n line-height: 1.7;\n}\n.styles-module_input__v-hUz:focus, .styles-module_input__v-hUz:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__v-hUz.styles-module_not_available__6xu3Y, .styles-module_input__v-hUz: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__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}\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: white;\n color: grey;\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: grey;\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: 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__v-hUz.styles-module_valid__6geu9 + .styles-module_label__SSsD3 .styles-module_label_text__EOAq5 {\n color: #a8a8a8;\n}";
|
186
|
+
var styles$k = {"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"};
|
187
|
+
styleInject(css_248z$k);
|
188
|
+
|
189
|
+
function InputArea({ title, name, placeholder = "", defaultValue = "", autoFocus = false, width = "100%", height = "100px", available = true, onInput }) {
|
190
|
+
const [value, setValue] = useState(defaultValue);
|
191
|
+
const inputElement = useCallback((element) => {
|
192
|
+
if (element && autoFocus)
|
193
|
+
element.focus();
|
194
|
+
}, [autoFocus]);
|
195
|
+
return (React.createElement(React.Fragment, null,
|
196
|
+
React.createElement("div", { className: styles$k.container, style: { width } },
|
197
|
+
React.createElement("textarea", { className: `${styles$k.input} ${title != undefined ? styles$k.with_title : styles$k.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$k.valid : styles$k.not_valid} ${available ? styles$k.available : styles$k.not_available}`, name: name, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, style: { minHeight: height, maxHeight: height }, onInput: (event) => {
|
198
|
+
setValue(event.target.value);
|
199
|
+
if (onInput)
|
200
|
+
onInput(event);
|
201
|
+
} }),
|
202
|
+
React.createElement("label", { htmlFor: "text", className: styles$k.label },
|
203
|
+
React.createElement("span", { className: styles$k.label_text }, title)))));
|
204
|
+
}
|
205
|
+
|
206
|
+
var css_248z$j = ".styles-module_input__-GKhx {\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}\n.styles-module_input__-GKhx:focus, .styles-module_input__-GKhx:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__-GKhx.styles-module_not_available__XD1kR, .styles-module_input__-GKhx: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__--4rV {\n position: relative;\n display: flex;\n flex-direction: column;\n margin-bottom: 20px;\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}\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: white;\n color: grey;\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: grey;\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: 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__-GKhx.styles-module_valid__uj8g- + .styles-module_label__mGzwP .styles-module_label_text__d0eMb {\n color: #a8a8a8;\n}";
|
207
|
+
var styles$j = {"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-"};
|
208
|
+
styleInject(css_248z$j);
|
188
209
|
|
189
210
|
function InputMail({ placeholder = "E-Mail-Adresse", title = "E-Mail-Adresse", name = "email", width = "100%", available = true }) {
|
190
211
|
const [value, setValue] = useState("");
|
191
212
|
return (React.createElement(React.Fragment, null,
|
192
|
-
React.createElement("div", { className: styles$
|
193
|
-
React.createElement("input", { className: `${styles$
|
194
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
195
|
-
React.createElement("span", { className: styles$
|
213
|
+
React.createElement("div", { className: styles$j.container, style: { width: width } },
|
214
|
+
React.createElement("input", { className: `${styles$j.input} ${title != undefined ? styles$j.with_title : styles$j.without_title} ${value.length > 0 ? styles$j.valid : styles$j.not_valid} ${available ? styles$j.available : styles$j.not_available}`, name: name, placeholder: placeholder, type: "email", onInput: (event) => setValue(event.target.value) }),
|
215
|
+
React.createElement("label", { htmlFor: "text", className: styles$j.label },
|
216
|
+
React.createElement("span", { className: styles$j.label_text }, title)))));
|
196
217
|
}
|
197
218
|
|
198
|
-
var css_248z$
|
199
|
-
var styles$
|
200
|
-
styleInject(css_248z$
|
219
|
+
var css_248z$i = ".styles-module_container__IXTeq {\n display: flex;\n flex-direction: row;\n gap: 20px;\n margin-bottom: 20px;\n}\n\n.styles-module_input__flMT5 {\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__flMT5:focus, .styles-module_input__flMT5:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\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}\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: white;\n color: grey;\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: grey;\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: 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__flMT5.styles-module_valid__76xYu + .styles-module_label__hflX9 .styles-module_label_text__oXgFI {\n color: #a8a8a8;\n}";
|
220
|
+
var styles$i = {"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"};
|
221
|
+
styleInject(css_248z$i);
|
201
222
|
|
202
223
|
function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
|
203
224
|
const [value1, setValue1] = useState(defaultValue.firstName ? defaultValue.firstName : "");
|
@@ -212,20 +233,20 @@ function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "
|
|
212
233
|
onInputLastName(event);
|
213
234
|
onInput("lastName", event);
|
214
235
|
}
|
215
|
-
return (React.createElement("div", { className: styles$
|
216
|
-
React.createElement("div", { className: styles$
|
217
|
-
React.createElement("input", { className: `${styles$
|
218
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
219
|
-
React.createElement("span", { className: styles$
|
220
|
-
React.createElement("div", { className: styles$
|
221
|
-
React.createElement("input", { className: `${styles$
|
222
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
223
|
-
React.createElement("span", { className: styles$
|
236
|
+
return (React.createElement("div", { className: styles$i.container, style: { width: width } },
|
237
|
+
React.createElement("div", { className: styles$i.form },
|
238
|
+
React.createElement("input", { className: `${styles$i.input} ${title.firstName != undefined ? styles$i.with_title : styles$i.without_title} ${value1.length > 0 ? styles$i.valid : styles$i.not_valid}`, name: "firstName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.firstName, defaultValue: defaultValue.firstName, onInput: onInput1 }),
|
239
|
+
React.createElement("label", { htmlFor: "text", className: styles$i.label },
|
240
|
+
React.createElement("span", { className: styles$i.label_text }, title.firstName))),
|
241
|
+
React.createElement("div", { className: styles$i.form },
|
242
|
+
React.createElement("input", { className: `${styles$i.input} ${title.lastName != undefined ? styles$i.with_title : styles$i.without_title} ${value2.length > 0 ? styles$i.valid : styles$i.not_valid}`, name: "lastName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.lastName, defaultValue: defaultValue.lastName, onInput: onInput2 }),
|
243
|
+
React.createElement("label", { htmlFor: "text", className: styles$i.label },
|
244
|
+
React.createElement("span", { className: styles$i.label_text }, title.lastName)))));
|
224
245
|
}
|
225
246
|
|
226
|
-
var css_248z$
|
227
|
-
var styles$
|
228
|
-
styleInject(css_248z$
|
247
|
+
var css_248z$h = ".styles-module_container__Xk2HY {\n display: flex;\n width: 100%;\n margin-bottom: 20px;\n}\n\n.styles-module_input__ReFFR {\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 width: 100%;\n}\n.styles-module_input__ReFFR:focus, .styles-module_input__ReFFR:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n.styles-module_input__ReFFR.styles-module_not_available__mZ5-1 {\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__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}\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: white;\n color: grey;\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: grey;\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: 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__ReFFR.styles-module_valid__NyP0J + .styles-module_label__4n2Ai .styles-module_label_text__NsKJU {\n color: #a8a8a8;\n}";
|
248
|
+
var styles$h = {"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"};
|
249
|
+
styleInject(css_248z$h);
|
229
250
|
|
230
251
|
function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "number", width = "100%", available = true, onInput = (event) => { } }) {
|
231
252
|
const [value, setValue] = useState(defaultValue);
|
@@ -234,37 +255,37 @@ function InputNumber({ title, name, placeholder = "", defaultValue = "", autoFoc
|
|
234
255
|
element.focus();
|
235
256
|
}, [autoFocus]);
|
236
257
|
return (React.createElement(React.Fragment, null,
|
237
|
-
React.createElement("div", { className: styles$
|
238
|
-
React.createElement("input", { className: `${styles$
|
258
|
+
React.createElement("div", { className: styles$h.container, style: { width } },
|
259
|
+
React.createElement("input", { className: `${styles$h.input} ${title != undefined ? styles$h.with_title : styles$h.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$h.valid : styles$h.not_valid} ${available ? styles$h.available : styles$h.not_available}`, name: name, type: type, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
|
239
260
|
setValue(event.target.value);
|
240
261
|
onInput(event);
|
241
262
|
} }),
|
242
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
243
|
-
React.createElement("span", { className: styles$
|
263
|
+
React.createElement("label", { htmlFor: "text", className: styles$h.label },
|
264
|
+
React.createElement("span", { className: styles$h.label_text }, title)))));
|
244
265
|
}
|
245
266
|
|
246
|
-
var css_248z$
|
247
|
-
var styles$
|
248
|
-
styleInject(css_248z$
|
267
|
+
var css_248z$g = "@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 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: grey;\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\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: 1.5px solid #a8a8a8;\n border-right: none;\n outline: none;\n transition: all 0.2s ease;\n flex: 1;\n}\n.styles-module_input__sC2fP:focus, .styles-module_input__sC2fP:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\n}\n\n.styles-module_hideButton__83mRI {\n outline: none;\n display: flex;\n align-items: center;\n padding: 10px;\n border: 1.5px solid #a8a8a8;\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: grey;\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}\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: white;\n color: grey;\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: grey;\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: 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__sC2fP.styles-module_valid__SM7w5 + .styles-module_label__8PuaL .styles-module_label_text__FwJ1F {\n color: #a8a8a8;\n}";
|
268
|
+
var styles$g = {"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"};
|
269
|
+
styleInject(css_248z$g);
|
249
270
|
|
250
271
|
function InputPassword({ placeholder = "", title = "Passwort", name, isVisible = true, width = "100%", minLength = 8, autoComplete, forgotLink = false }) {
|
251
272
|
const [value, setValue] = useState("");
|
252
273
|
const [hidePassword, setHidePassword] = useState(true);
|
253
274
|
return (React.createElement(React.Fragment, null,
|
254
|
-
React.createElement("div", { className: `${styles$
|
255
|
-
React.createElement("div", { className: styles$
|
256
|
-
React.createElement("input", { className: `${styles$
|
257
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
258
|
-
React.createElement("span", { className: styles$
|
259
|
-
React.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$
|
275
|
+
React.createElement("div", { className: `${styles$g.container} ${isVisible ? styles$g.visible : styles$g.hidden}`, style: { width: width } },
|
276
|
+
React.createElement("div", { className: styles$g.form },
|
277
|
+
React.createElement("input", { className: `${styles$g.input} ${title != undefined ? styles$g.with_title : styles$g.without_title} ${value.length > 0 ? styles$g.valid : styles$g.not_valid}`, name: name, minLength: minLength, autoComplete: autoComplete, placeholder: placeholder, type: hidePassword ? "password" : "text", onInput: (event) => setValue(event.target.value) }),
|
278
|
+
React.createElement("label", { htmlFor: "text", className: styles$g.label },
|
279
|
+
React.createElement("span", { className: styles$g.label_text }, title)),
|
280
|
+
React.createElement("button", { title: hidePassword ? "Passwort anzeigen" : "Passwort verstecken", className: styles$g.hideButton, onClick: () => setHidePassword(!hidePassword), type: "button" },
|
260
281
|
React.createElement(SvgIcon, { iconName: hidePassword ? "visibility" : "visibility_off" }))),
|
261
282
|
forgotLink &&
|
262
|
-
React.createElement("div", { className: styles$
|
283
|
+
React.createElement("div", { className: styles$g.forgot_container }, forgotLink))));
|
263
284
|
}
|
264
285
|
|
265
|
-
var css_248z$
|
266
|
-
var styles$
|
267
|
-
styleInject(css_248z$
|
286
|
+
var css_248z$f = ".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}";
|
287
|
+
var styles$f = {"container":"styles-module_container__--NO0","input_wrapper":"styles-module_input_wrapper__LPIk1","input":"styles-module_input__84v36"};
|
288
|
+
styleInject(css_248z$f);
|
268
289
|
|
269
290
|
function InputPin({ name, length, onFinished = () => { } }) {
|
270
291
|
const [state, setState] = useState({});
|
@@ -330,20 +351,20 @@ function InputPin({ name, length, onFinished = () => { } }) {
|
|
330
351
|
ref.current.value = "";
|
331
352
|
});
|
332
353
|
}
|
333
|
-
return (React.createElement("div", { className: styles$
|
354
|
+
return (React.createElement("div", { className: styles$f.container },
|
334
355
|
React.createElement("input", { name: name, type: "hidden", defaultValue: Object.values(state).join("") }),
|
335
|
-
React.createElement("div", { className: styles$
|
356
|
+
React.createElement("div", { className: styles$f.input_wrapper }, [...Array(length)].map((value, i) => {
|
336
357
|
if (i == 0) {
|
337
|
-
return React.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$
|
358
|
+
return React.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$f.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
338
359
|
}
|
339
|
-
return React.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$
|
360
|
+
return React.createElement("input", { key: i, pattern: "[0-9]", value: state[i] ? state[i] : "", ref: fieldRefs.current[i], className: styles$f.input, type: "text", onKeyUp: (event) => onKeyUp(event, i), onInput: (event) => onChange(event, i) });
|
340
361
|
})),
|
341
362
|
React.createElement("button", { type: "button", onClick: resetValues }, "Zur\u00FCcksetzen")));
|
342
363
|
}
|
343
364
|
|
344
|
-
var css_248z$
|
345
|
-
var styles$
|
346
|
-
styleInject(css_248z$
|
365
|
+
var css_248z$e = ".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}";
|
366
|
+
var styles$e = {"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"};
|
367
|
+
styleInject(css_248z$e);
|
347
368
|
|
348
369
|
function InputText({ title, name, placeholder = "", defaultValue = "", autoFocus = false, type = "text", width = "100%", marginBottom, available = true, onInput = (event) => { } }) {
|
349
370
|
const [value, setValue] = useState(defaultValue);
|
@@ -352,32 +373,32 @@ function InputText({ title, name, placeholder = "", defaultValue = "", autoFocus
|
|
352
373
|
element.focus();
|
353
374
|
}, [autoFocus]);
|
354
375
|
return (React.createElement(React.Fragment, null,
|
355
|
-
React.createElement("div", { className: styles$
|
356
|
-
React.createElement("input", { className: `${styles$
|
376
|
+
React.createElement("div", { className: styles$e.container, style: { width, marginBottom } },
|
377
|
+
React.createElement("input", { className: `${styles$e.input} ${title != undefined ? styles$e.with_title : styles$e.without_title} ${value.length > 0 || defaultValue.length > 0 ? styles$e.valid : styles$e.not_valid} ${available ? styles$e.available : styles$e.not_available}`, name: name, type: type, placeholder: placeholder, ref: inputElement, defaultValue: defaultValue, onInput: (event) => {
|
357
378
|
setValue(event.target.value);
|
358
379
|
if (onInput)
|
359
380
|
onInput(event);
|
360
381
|
} }),
|
361
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
362
|
-
React.createElement("span", { className: styles$
|
382
|
+
React.createElement("label", { htmlFor: "text", className: styles$e.label },
|
383
|
+
React.createElement("span", { className: styles$e.label_text }, title)))));
|
363
384
|
}
|
364
385
|
|
365
|
-
var css_248z$
|
366
|
-
var styles$
|
367
|
-
styleInject(css_248z$
|
386
|
+
var css_248z$d = ".styles-module_box__Z0iod {\n background: #F4F4F4;\n width: 400px;\n max-width: 100%;\n border-radius: 22px;\n border: 1px solid rgb(199, 199, 199);\n display: flex;\n flex-direction: row;\n padding: 18px;\n gap: 18px;\n cursor: pointer;\n margin-bottom: 20px;\n transition: 0.2s ease;\n color: black;\n}\n.styles-module_box__Z0iod:hover {\n /*.right_side {\n h4, p {\n color: #0075FF;\n }\n }*/\n background-color: white;\n transform: scale(1.01);\n /* border-color: #0075FF; */\n}\n.styles-module_box__Z0iod .styles-module_left_side__8ObGs {\n width: 40px;\n display: flex;\n flex-direction: column;\n align-items: center;\n padding-top: 5px;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D {\n flex: 1;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D p {\n color: #6F6F6F;\n margin: 0;\n text-align: left;\n font-size: 1.1rem;\n line-height: 1.6;\n}\n.styles-module_box__Z0iod .styles-module_right_side__Ypp0D h4 {\n margin: 0;\n text-align: left;\n font-size: 1.3rem;\n margin-bottom: 16px;\n margin-top: 5px;\n color: black;\n}";
|
387
|
+
var styles$d = {"box":"styles-module_box__Z0iod","left_side":"styles-module_left_side__8ObGs","right_side":"styles-module_right_side__Ypp0D"};
|
388
|
+
styleInject(css_248z$d);
|
368
389
|
|
369
390
|
function OptionField({ headline, description, iconName }) {
|
370
391
|
return (React.createElement(React.Fragment, null,
|
371
|
-
React.createElement("div", { className: styles$
|
372
|
-
React.createElement("div", { className: styles$
|
373
|
-
React.createElement("div", { className: styles$
|
392
|
+
React.createElement("div", { className: styles$d.box },
|
393
|
+
React.createElement("div", { className: styles$d.left_side }, iconName && React.createElement(SvgIcon, { iconName: iconName })),
|
394
|
+
React.createElement("div", { className: styles$d.right_side },
|
374
395
|
React.createElement("h4", null, headline),
|
375
396
|
React.createElement("p", null, description)))));
|
376
397
|
}
|
377
398
|
|
378
|
-
var css_248z$
|
379
|
-
var styles$
|
380
|
-
styleInject(css_248z$
|
399
|
+
var css_248z$c = ".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 cursor: pointer;\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}";
|
400
|
+
var styles$c = {"container":"styles-module_container__XCtqW","preselected":"styles-module_preselected__WoSbB"};
|
401
|
+
styleInject(css_248z$c);
|
381
402
|
|
382
403
|
function OptionFieldHorizontal({ title, iconName, onClick, preselected = false }) {
|
383
404
|
function onClickDiv(event) {
|
@@ -385,14 +406,14 @@ function OptionFieldHorizontal({ title, iconName, onClick, preselected = false }
|
|
385
406
|
if (onClick)
|
386
407
|
onClick(event);
|
387
408
|
}
|
388
|
-
return (React.createElement("div", { className: [styles$
|
409
|
+
return (React.createElement("div", { className: [styles$c.container, preselected ? styles$c.preselected : styles$c.not_preselected].join(" "), onClick: onClickDiv },
|
389
410
|
iconName && React.createElement(SvgIcon, { iconName: iconName, size: "32px" }),
|
390
411
|
React.createElement("h3", null, title)));
|
391
412
|
}
|
392
413
|
|
393
|
-
var css_248z$
|
394
|
-
var styles$
|
395
|
-
styleInject(css_248z$
|
414
|
+
var css_248z$b = ".styles-module_container__oNbrP .styles-module_button__UBk65 {\n padding: 10px 18px;\n background: #0075FF;\n border-radius: 40px;\n cursor: pointer;\n display: flex;\n flex-direction: row;\n gap: 10px;\n font-size: 15px;\n color: white;\n align-items: center;\n border: none;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 {\n width: 44px;\n height: 44px;\n padding: 0;\n align-items: center;\n justify-content: center;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_onlyIcon__-Niv0 span {\n font-size: 22px !important;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_red__CHF3e {\n background: #e40000;\n}\n.styles-module_container__oNbrP .styles-module_button__UBk65.styles-module_grey__hdqot {\n background: #EEEEEE;\n color: black;\n}";
|
415
|
+
var styles$b = {"container":"styles-module_container__oNbrP","button":"styles-module_button__UBk65","onlyIcon":"styles-module_onlyIcon__-Niv0","red":"styles-module_red__CHF3e","grey":"styles-module_grey__hdqot"};
|
416
|
+
styleInject(css_248z$b);
|
396
417
|
|
397
418
|
function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onClick = () => { } }) {
|
398
419
|
function onClickButton(event) {
|
@@ -400,26 +421,26 @@ function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onCl
|
|
400
421
|
if (onClick)
|
401
422
|
onClick(event);
|
402
423
|
}
|
403
|
-
return (React.createElement("div", { className: styles$
|
404
|
-
React.createElement("button", { className: [styles$
|
424
|
+
return (React.createElement("div", { className: styles$b.container },
|
425
|
+
React.createElement("button", { className: [styles$b.button, styles$b[type], (text && !iconName) ? styles$b.onlyText : "", (!text && iconName) ? styles$b.onlyIcon : ""].join(" "), onClick: onClickButton },
|
405
426
|
text,
|
406
427
|
iconName && React.createElement(SvgIcon, { iconName: iconName, fill: iconFill }))));
|
407
428
|
}
|
408
429
|
|
409
|
-
var css_248z$
|
410
|
-
var styles$
|
411
|
-
styleInject(css_248z$
|
430
|
+
var css_248z$a = ".styles-module_container__u4q5n {\n margin-bottom: 50px;\n}\n\n.styles-module_background__jt-ry {\n background: #D9D9D9;\n width: 400px;\n max-width: 100%;\n height: 3px;\n position: relative;\n}\n\n.styles-module_progress__Zj-B7 {\n background: black;\n position: absolute;\n left: 0;\n top: 0;\n height: 3px;\n}";
|
431
|
+
var styles$a = {"container":"styles-module_container__u4q5n","background":"styles-module_background__jt-ry","progress":"styles-module_progress__Zj-B7"};
|
432
|
+
styleInject(css_248z$a);
|
412
433
|
|
413
434
|
function ProgressBar({ length, progress }) {
|
414
435
|
return (React.createElement(React.Fragment, null,
|
415
|
-
React.createElement("div", { className: styles$
|
416
|
-
React.createElement("div", { className: styles$
|
417
|
-
React.createElement("div", { className: styles$
|
436
|
+
React.createElement("div", { className: styles$a.container },
|
437
|
+
React.createElement("div", { className: styles$a.background },
|
438
|
+
React.createElement("div", { className: styles$a.progress, style: { width: `${progress / length * 100}%` } })))));
|
418
439
|
}
|
419
440
|
|
420
|
-
var css_248z$
|
421
|
-
var styles$
|
422
|
-
styleInject(css_248z$
|
441
|
+
var css_248z$9 = ".styles-module_container__Grkzw {\n display: flex;\n flex-direction: column;\n gap: 12px;\n color: grey;\n margin-bottom: 20px;\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 #a8a8a8;\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]:checked + label::before {\n box-shadow: inset 0px 0px 0px 3px #fff;\n background-color: #0075FF;\n border-color: #0075FF;\n}\n.styles-module_container__Grkzw [type=radio]:hover:not(:checked) + label::before {\n box-shadow: inset 0px 0px 0px 3px #fff;\n background-color: #bdbdbd;\n border-color: #bdbdbd;\n}";
|
442
|
+
var styles$9 = {"container":"styles-module_container__Grkzw"};
|
443
|
+
styleInject(css_248z$9);
|
423
444
|
|
424
445
|
class RadioOption {
|
425
446
|
text;
|
@@ -436,7 +457,7 @@ function RadioButtons({ options, group, selected, onClick, width = "100%" }) {
|
|
436
457
|
if (onClick)
|
437
458
|
onClick(event);
|
438
459
|
}
|
439
|
-
return (React.createElement("div", { className: styles$
|
460
|
+
return (React.createElement("div", { className: styles$9.container, style: { width: width } }, options.map((option) => React.createElement("div", { className: styles$9.option, key: option.name },
|
440
461
|
selected && selected == option.name ?
|
441
462
|
React.createElement("input", { type: "radio", id: option.name, name: group, value: option.name, onInput: onUpdateSelected, defaultChecked: true })
|
442
463
|
:
|
@@ -444,9 +465,9 @@ function RadioButtons({ options, group, selected, onClick, width = "100%" }) {
|
|
444
465
|
React.createElement("label", { htmlFor: option.name }, option.text)))));
|
445
466
|
}
|
446
467
|
|
447
|
-
var css_248z$
|
448
|
-
var styles$
|
449
|
-
styleInject(css_248z$
|
468
|
+
var css_248z$8 = ".styles-module_container__RhsQe {\n margin-right: 8px;\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}\n.styles-module_container__RhsQe .styles-module_button__HuX-0:hover {\n background: rgb(207, 207, 207);\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}";
|
469
|
+
var styles$8 = {"container":"styles-module_container__RhsQe","button":"styles-module_button__HuX-0","middle":"styles-module_middle__xg7RF"};
|
470
|
+
styleInject(css_248z$8);
|
450
471
|
|
451
472
|
function RedirectButton({ type = "forward", onClick }) {
|
452
473
|
function onClickButton(event) {
|
@@ -461,16 +482,16 @@ function RedirectButton({ type = "forward", onClick }) {
|
|
461
482
|
case "middle": return "arrow_back";
|
462
483
|
}
|
463
484
|
};
|
464
|
-
return (React.createElement("div", { className: [styles$
|
465
|
-
React.createElement("button", { onClick: onClickButton, className: styles$
|
485
|
+
return (React.createElement("div", { className: [styles$8.container, styles$8[type]].join(" ") },
|
486
|
+
React.createElement("button", { onClick: onClickButton, className: styles$8.button },
|
466
487
|
React.createElement(SvgIcon, { iconName: getIcon() }),
|
467
488
|
["middle"].includes(type) &&
|
468
489
|
React.createElement("span", null, "Zur\u00FCck"))));
|
469
490
|
}
|
470
491
|
|
471
|
-
var css_248z$
|
472
|
-
var styles$
|
473
|
-
styleInject(css_248z$
|
492
|
+
var css_248z$7 = ".styles-module_container__VreeH {\n margin-bottom: 20px;\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n gap: 10px;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J,\n.styles-module_container__VreeH .styles-module_show_all__HKn-s {\n padding: 10px 18px;\n background: #F0F0F0;\n border-radius: 20px;\n display: flex;\n flex-direction: row;\n gap: 5px;\n align-items: center;\n cursor: pointer;\n user-select: none;\n -webkit-user-select: none;\n color: #565656;\n transition: 0.2s ease-in-out;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J:hover {\n background: #e5e5e5;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J.styles-module_selected__sArTD {\n background: #C6D4F8;\n color: #0075FF;\n}\n.styles-module_container__VreeH .styles-module_chip__EvZ4J.styles-module_selected__sArTD span {\n color: #0075FF;\n}";
|
493
|
+
var styles$7 = {"container":"styles-module_container__VreeH","chip":"styles-module_chip__EvZ4J","show_all":"styles-module_show_all__HKn-s","selected":"styles-module_selected__sArTD"};
|
494
|
+
styleInject(css_248z$7);
|
474
495
|
|
475
496
|
class SearchChip {
|
476
497
|
title;
|
@@ -491,19 +512,19 @@ function SearchChips({ items, onChange, chipsVisible = 9 }) {
|
|
491
512
|
if (onChange)
|
492
513
|
onChange(newChips);
|
493
514
|
}
|
494
|
-
return (React.createElement("div", { className: styles$
|
495
|
-
(showAll ? chips : chips.slice(0, chipsVisible)).map((item, index) => React.createElement("div", { key: index, onClick: (e) => onClick(item, index), className: [styles$
|
515
|
+
return (React.createElement("div", { className: styles$7.container },
|
516
|
+
(showAll ? chips : chips.slice(0, chipsVisible)).map((item, index) => React.createElement("div", { key: index, onClick: (e) => onClick(item, index), className: [styles$7.chip, item.selected ? styles$7.selected : styles$7.not_selected].join(" ") },
|
496
517
|
React.createElement(SvgIcon, { iconName: item.selected ? "close" : "filter_list", size: "20px" }),
|
497
518
|
item.title)),
|
498
519
|
showAll ?
|
499
|
-
React.createElement("div", { className: styles$
|
520
|
+
React.createElement("div", { className: styles$7.show_all, onClick: () => setShowAll(false) }, "Weniger anzeigen")
|
500
521
|
:
|
501
|
-
React.createElement("div", { className: styles$
|
522
|
+
React.createElement("div", { className: styles$7.show_all, onClick: () => setShowAll(true) }, "Mehr anzeigen")));
|
502
523
|
}
|
503
524
|
|
504
|
-
var css_248z$
|
505
|
-
var styles$
|
506
|
-
styleInject(css_248z$
|
525
|
+
var css_248z$6 = ".styles-module_container__k4Z26 {\n width: 100%;\n display: flex;\n flex-direction: row;\n margin-top: 30px;\n margin-bottom: 25px;\n gap: 10px;\n position: relative;\n}\n.styles-module_container__k4Z26 button {\n background: #BFD5FF;\n padding: 0px 18px;\n border: none;\n font-size: 14px;\n border-radius: 10px;\n cursor: pointer;\n color: #0075FF;\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: white;\n box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.2509803922);\n width: 100%;\n border-radius: 14px;\n border: 1px solid #C3C3C3;\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 #C3C3C3;\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: grey;\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: 1.5px solid #a8a8a8;\n outline: none;\n transition: 0.2s ease;\n width: 100%;\n}\n.styles-module_input__wOJmG:focus, .styles-module_input__wOJmG:active {\n border-color: #0075FF;\n box-shadow: 0px 0px 3px 3px rgba(0, 87, 255, 0.2509803922);\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\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}\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: white;\n color: grey;\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: grey;\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: 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__wOJmG.styles-module_valid__AAK-6 + .styles-module_label__A41g9 .styles-module_label_text__NQHTC {\n color: #a8a8a8;\n}";
|
526
|
+
var styles$6 = {"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"};
|
527
|
+
styleInject(css_248z$6);
|
507
528
|
|
508
529
|
function Searchbar({ placeholder, title = "Suchen", showNoResults = false, errorTitle = "Keine Ergebnisse gefunden", errorMessage = "", errorButton = "", helpTitle = "", helpMessage = "", errorAction = (event) => { }, onInput = (event) => { }, onClickResult = (event, result) => { }, withButton = false, buttonText = "Suchen", suggestions = [], autoFocus = false, results = [] }) {
|
509
530
|
const [value, setValue] = useState("");
|
@@ -532,34 +553,34 @@ function Searchbar({ placeholder, title = "Suchen", showNoResults = false, error
|
|
532
553
|
element.focus();
|
533
554
|
}, [autoFocus]);
|
534
555
|
return (React.createElement(React.Fragment, null,
|
535
|
-
React.createElement("div", { className: styles$
|
536
|
-
React.createElement("div", { className: `${styles$
|
537
|
-
React.createElement("input", { onFocus: () => setFocused(true), onBlur: () => setFocused(false), className: `${styles$
|
538
|
-
React.createElement("label", { htmlFor: "text", className: styles$
|
539
|
-
React.createElement("span", { className: styles$
|
556
|
+
React.createElement("div", { className: styles$6.container },
|
557
|
+
React.createElement("div", { className: `${styles$6.form} ${inputFocused ? styles$6.focus : styles$6.not_focused}` },
|
558
|
+
React.createElement("input", { onFocus: () => setFocused(true), onBlur: () => setFocused(false), className: `${styles$6.input} ${title != undefined ? styles$6.with_title : styles$6.without_title} ${value.length > 0 ? styles$6.valid : styles$6.not_valid}`, placeholder: placeholder, type: "search", ref: inputElement, onInput: onInputChanged }),
|
559
|
+
React.createElement("label", { htmlFor: "text", className: styles$6.label },
|
560
|
+
React.createElement("span", { className: styles$6.label_text }, title))),
|
540
561
|
withButton && React.createElement("button", { type: "button" }, buttonText),
|
541
|
-
suggestions.length > 0 && React.createElement("div", { className: styles$
|
562
|
+
suggestions.length > 0 && React.createElement("div", { className: styles$6.suggestions_container },
|
542
563
|
React.createElement("ul", null, suggestions.map((suggestion, index) => React.createElement("li", { key: index }, suggestion)))),
|
543
|
-
searchResults.length > 0 && React.createElement("div", { className: styles$
|
564
|
+
searchResults.length > 0 && React.createElement("div", { className: styles$6.results_container },
|
544
565
|
React.createElement("ul", null, searchResults.map((result, index) => React.createElement("li", { key: index, onClick: (event) => onClickResult(event, result) },
|
545
566
|
React.createElement("span", null, result.title),
|
546
567
|
React.createElement("button", { type: "button" }, buttonText))))),
|
547
|
-
searchResults.length == 0 && showNoResults && value.length > 0 && React.createElement("div", { className: styles$
|
548
|
-
React.createElement("div", { className: styles$
|
568
|
+
searchResults.length == 0 && showNoResults && value.length > 0 && React.createElement("div", { className: styles$6.results_container },
|
569
|
+
React.createElement("div", { className: styles$6.error },
|
549
570
|
React.createElement(SvgIcon, { iconName: "error" }),
|
550
571
|
React.createElement("h3", null, errorTitle),
|
551
572
|
React.createElement("p", null, errorMessage),
|
552
573
|
errorButton.length > 0 && React.createElement("button", { type: "button", onClick: errorAction }, errorButton))),
|
553
|
-
searchResults.length == 0 && showNoResults && value.length == 0 && React.createElement("div", { className: styles$
|
554
|
-
React.createElement("div", { className: styles$
|
574
|
+
searchResults.length == 0 && showNoResults && value.length == 0 && React.createElement("div", { className: styles$6.results_container },
|
575
|
+
React.createElement("div", { className: styles$6.error },
|
555
576
|
React.createElement(SvgIcon, { iconName: "lightbulb" }),
|
556
577
|
React.createElement("h3", null, helpTitle),
|
557
578
|
React.createElement("p", null, helpMessage))))));
|
558
579
|
}
|
559
580
|
|
560
|
-
var css_248z$
|
561
|
-
var styles$
|
562
|
-
styleInject(css_248z$
|
581
|
+
var css_248z$5 = "";
|
582
|
+
var styles$5 = {};
|
583
|
+
styleInject(css_248z$5);
|
563
584
|
|
564
585
|
class SliderCard {
|
565
586
|
title;
|
@@ -571,25 +592,25 @@ class SliderCard {
|
|
571
592
|
}
|
572
593
|
function Slider({ cards }) {
|
573
594
|
const [selected, setSelected] = useState(0);
|
574
|
-
return (React.createElement("div", { className: styles$
|
595
|
+
return (React.createElement("div", { className: styles$5.container }, cards.map((card, index) => React.createElement("div", { key: index, className: [styles$5.card, selected == index ? styles$5.selected : styles$5.not_selected].join(" ") },
|
575
596
|
React.createElement("h1", null, card.title),
|
576
597
|
React.createElement("p", null, card.description)))));
|
577
598
|
}
|
578
599
|
|
579
|
-
var css_248z$
|
580
|
-
var styles$
|
581
|
-
styleInject(css_248z$
|
600
|
+
var css_248z$4 = ".styles-module_container__xRQNT {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 7px;\n color: #6F6F6F;\n}\n.styles-module_container__xRQNT svg {\n fill: #6F6F6F;\n}";
|
601
|
+
var styles$4 = {"container":"styles-module_container__xRQNT"};
|
602
|
+
styleInject(css_248z$4);
|
582
603
|
|
583
604
|
function StepBack({ iconName = "arrow_back", text = "Weitere Möglichkeiten" }) {
|
584
605
|
return (React.createElement(React.Fragment, null,
|
585
|
-
React.createElement("div", { className: styles$
|
606
|
+
React.createElement("div", { className: styles$4.container },
|
586
607
|
React.createElement(SvgIcon, { iconName: iconName }),
|
587
608
|
text)));
|
588
609
|
}
|
589
610
|
|
590
|
-
var css_248z$
|
591
|
-
var styles$
|
592
|
-
styleInject(css_248z$
|
611
|
+
var css_248z$3 = ".styles-module_container__jNs7m {\n margin-top: 30px;\n}\n.styles-module_container__jNs7m h3 {\n font-weight: 500;\n font-size: 16px;\n}\n\n.styles-module_item_list__FxHkg.styles-module_has_children__Uu-8D {\n border-top: 1px solid #D0D0D0;\n border-bottom: 1px solid #D0D0D0;\n}\n\n.styles-module_item_list__FxHkg {\n list-style: none;\n padding: 0;\n margin: 0;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 6px;\n cursor: pointer;\n padding: 8px 14px;\n border-radius: 25px;\n transition: 0.2s ease-in-out;\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_default__SexGH:hover {\n background: rgb(223, 223, 223);\n}\n.styles-module_item_list__FxHkg .styles-module_action__YYTok.styles-module_red__KD3qJ:hover {\n background: rgb(255, 199, 199);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV {\n padding: 10px 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_moreText__-blXb {\n flex: 1;\n margin-bottom: 4px;\n color: #0075FF;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_subtitle__DT5OF {\n color: rgb(162, 162, 162);\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV .styles-module_icon__Jy87z {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:nth-child(even) {\n background: #F3F3F3;\n}\n.styles-module_item_list__FxHkg li.styles-module_item__sgyiV:not(:last-child) {\n border-bottom: 1px solid #D0D0D0;\n}";
|
612
|
+
var styles$3 = {"container":"styles-module_container__jNs7m","item_list":"styles-module_item_list__FxHkg","has_children":"styles-module_has_children__Uu-8D","action":"styles-module_action__YYTok","default":"styles-module_default__SexGH","red":"styles-module_red__KD3qJ","item":"styles-module_item__sgyiV","moreText":"styles-module_moreText__-blXb","subtitle":"styles-module_subtitle__DT5OF","icon":"styles-module_icon__Jy87z"};
|
613
|
+
styleInject(css_248z$3);
|
593
614
|
|
594
615
|
var TableActionType;
|
595
616
|
(function (TableActionType) {
|
@@ -623,25 +644,33 @@ class TableItemAction {
|
|
623
644
|
}
|
624
645
|
}
|
625
646
|
function Table({ items, title = "Titel", actions = [], moreActions }) {
|
626
|
-
return (React.createElement("div", { className: styles$
|
647
|
+
return (React.createElement("div", { className: styles$3.container },
|
627
648
|
React.createElement("h3", null, title),
|
628
|
-
React.createElement("ul", { className: `${styles$
|
629
|
-
React.createElement("div", { className: styles$
|
649
|
+
React.createElement("ul", { className: `${styles$3.item_list} ${items.length > 0 ? styles$3.has_children : styles$3.no_children}` }, items.map((item, index) => React.createElement("li", { key: index, className: styles$3.item },
|
650
|
+
React.createElement("div", { className: styles$3.icon },
|
630
651
|
React.createElement(SvgIcon, { iconName: item.iconName })),
|
631
|
-
React.createElement("div", { className: styles$
|
632
|
-
React.createElement("div", { className: styles$
|
633
|
-
React.createElement("div", { className: styles$
|
652
|
+
React.createElement("div", { className: styles$3.title }, item.title),
|
653
|
+
React.createElement("div", { className: styles$3.moreText }, item.moreText),
|
654
|
+
React.createElement("div", { className: styles$3.subtitle }, item.subtitle),
|
634
655
|
moreActions &&
|
635
|
-
moreActions.map((moreAction, index) => React.createElement("div", { className: styles$
|
656
|
+
moreActions.map((moreAction, index) => React.createElement("div", { className: styles$3.more_action, key: item.title + index }, moreAction(item.data, index))),
|
636
657
|
actions.length > 0 && actions.map((action, idx) => React.createElement("div", { key: idx, className: [
|
637
|
-
styles$
|
638
|
-
action.type == TableActionType.red && styles$
|
639
|
-
action.type == TableActionType.default && styles$
|
658
|
+
styles$3.action,
|
659
|
+
action.type == TableActionType.red && styles$3.red,
|
660
|
+
action.type == TableActionType.default && styles$3.default,
|
640
661
|
].join(" "), onClick: (event) => action.onClick(event, item, index) },
|
641
662
|
React.createElement(SvgIcon, { iconName: action.iconName }),
|
642
663
|
action.title)))))));
|
643
664
|
}
|
644
665
|
|
666
|
+
var css_248z$2 = ".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-bottom: 2px;\n border-bottom-style: solid;\n border-bottom-color: #F0F0F0;\n background: #F0F0F0;\n padding: 16px;\n text-align: center;\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n}\n.styles-module_tab__Veki-.styles-module_selected__geNE7 {\n border-bottom-color: #0075FF;\n background: #BFD5FF;\n color: #005ec9;\n}";
|
667
|
+
var styles$2 = {"container":"styles-module_container__Kl-lB","tab":"styles-module_tab__Veki-","selected":"styles-module_selected__geNE7"};
|
668
|
+
styleInject(css_248z$2);
|
669
|
+
|
670
|
+
function Tabs({ tabs = [], onSelect = () => { }, selected }) {
|
671
|
+
return (React.createElement("div", { className: styles$2.container }, tabs.map((tab) => React.createElement("div", { className: [styles$2.tab, tab.value == selected ? styles$2.selected : styles$2.not_selected].join(" "), key: tab.value, onClick: () => onSelect(tab.value) }, tab.title))));
|
672
|
+
}
|
673
|
+
|
645
674
|
var css_248z$1 = ".styles-module_container__ItBx0 {\n display: flex;\n flex-direction: row;\n gap: 6px;\n align-items: center;\n color: grey;\n padding: 5px 12px;\n border-radius: 20px;\n}\n.styles-module_container__ItBx0:hover span {\n background: linear-gradient(to top, #0075FF 30%, rgb(130, 169, 237) 70%, #0050ab 80%);\n -webkit-background-clip: text;\n background-clip: text;\n -webkit-text-fill-color: transparent;\n text-fill-color: transparent;\n background-size: auto 400%;\n animation: styles-module_textShine__ELfW9 3s ease-in-out infinite alternate;\n}\n\n.styles-module_container__ItBx0 a {\n display: flex;\n flex-direction: row;\n gap: 6px;\n align-items: center;\n color: grey;\n padding: 5px 12px;\n border-radius: 20px;\n transition: 0.2s ease-in-out;\n}\n\n@keyframes styles-module_textShine__ELfW9 {\n 0% {\n background-position: 0% 50%;\n }\n 100% {\n background-position: 100% 50%;\n }\n}";
|
646
675
|
var styles$1 = {"container":"styles-module_container__ItBx0","textShine":"styles-module_textShine__ELfW9"};
|
647
676
|
styleInject(css_248z$1);
|
@@ -1043,4 +1072,4 @@ var ManagerPermission;
|
|
1043
1072
|
ManagerPermission["file"] = "file";
|
1044
1073
|
})(ManagerPermission || (ManagerPermission = {}));
|
1045
1074
|
|
1046
|
-
export { Accordeon, AuthButton, CardButton, Checkbox, ChooseRole, ChooseRoleItem, CopyCode, CourseAnnouncementAssetType, Dialog, FormButton, FormText, ForwardButton, Gap, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, ManagerPermission, OptionField, OptionFieldHorizontal, PrimaryButton, ProgressBar, RadioButtons, RadioOption, RedirectButton, S3FileCategory, SearchChip, SearchChips, Searchbar, Slider, SliderCard, StepBack, SvgIcon, Table, TableActionType, TableItem, TableItemAction, TextWithIcon, UsageCard };
|
1075
|
+
export { Accordeon, AuthButton, CardButton, Checkbox, ChooseRole, ChooseRoleItem, CopyCode, CourseAnnouncementAssetType, Dialog, FormButton, FormText, ForwardButton, Gap, InputArea, InputMail, InputNames, InputNumber, InputPassword, InputPin, InputText, ManagerPermission, OptionField, OptionFieldHorizontal, PrimaryButton, ProgressBar, RadioButtons, RadioOption, RedirectButton, S3FileCategory, SearchChip, SearchChips, Searchbar, Slider, SliderCard, StepBack, SvgIcon, Table, TableActionType, TableItem, TableItemAction, Tabs, TextWithIcon, UsageCard };
|