math-main-components 0.0.159 → 0.0.160
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/index.cjs.js +6 -6
- package/dist/index.esm.js +6 -6
- package/dist/types/Calculator.d.ts +1 -0
- package/dist/types/Category.d.ts +1 -0
- package/dist/types/Ebook.d.ts +1 -0
- package/dist/types/HelpData.d.ts +1 -0
- package/dist/types/Material.d.ts +1 -0
- package/dist/types/Movie.d.ts +1 -0
- package/dist/types/Product.d.ts +1 -0
- package/dist/types/marketing/About.d.ts +4 -1
- package/dist/types/marketing/BenefitForIndividuals.d.ts +1 -0
- package/dist/types/marketing/BenefitForSchools.d.ts +1 -0
- package/dist/types/marketing/Concept.d.ts +1 -0
- package/dist/types/marketing/Content.d.ts +1 -0
- package/dist/types/marketing/Faq.d.ts +1 -0
- package/dist/types/marketing/Feature.d.ts +1 -0
- package/dist/types/marketing/FooterLink.d.ts +1 -0
- package/dist/types/marketing/Home.d.ts +1 -1
- package/dist/types/marketing/News.d.ts +1 -0
- package/dist/types/marketing/Pricing.d.ts +1 -0
- package/dist/types/marketing/StaticPage.d.ts +2 -0
- package/dist/types/marketing/Website.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -256,25 +256,25 @@ var styles$h = {"container":"styles-module_container__IXTeq","input":"styles-mod
|
|
256
256
|
styleInject(css_248z$h);
|
257
257
|
|
258
258
|
function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
|
259
|
-
const [
|
260
|
-
const [
|
259
|
+
const [firstName, setFirstName] = React.useState(defaultValue.firstName ? defaultValue.firstName : "");
|
260
|
+
const [lastName, setLastName] = React.useState(defaultValue.lastName ? defaultValue.lastName : "");
|
261
261
|
function onInput1(event) {
|
262
|
-
|
262
|
+
setFirstName(event.target.value);
|
263
263
|
onInputFirstName(event);
|
264
264
|
onInput("firstName", event);
|
265
265
|
}
|
266
266
|
function onInput2(event) {
|
267
|
-
|
267
|
+
setLastName(event.target.value);
|
268
268
|
onInputLastName(event);
|
269
269
|
onInput("lastName", event);
|
270
270
|
}
|
271
271
|
return (React__default["default"].createElement("div", { className: styles$h.container, style: { width: width } },
|
272
272
|
React__default["default"].createElement("div", { className: styles$h.form },
|
273
|
-
React__default["default"].createElement("input", { className: `${styles$h.input} ${title.firstName != undefined ? styles$h.with_title : styles$h.without_title} ${
|
273
|
+
React__default["default"].createElement("input", { className: `${styles$h.input} ${title.firstName != undefined ? styles$h.with_title : styles$h.without_title} ${firstName.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "firstName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.firstName, defaultValue: defaultValue.firstName, onInput: onInput1 }),
|
274
274
|
React__default["default"].createElement("label", { htmlFor: "text", className: styles$h.label },
|
275
275
|
React__default["default"].createElement("span", { className: styles$h.label_text }, title.firstName))),
|
276
276
|
React__default["default"].createElement("div", { className: styles$h.form },
|
277
|
-
React__default["default"].createElement("input", { className: `${styles$h.input} ${title.lastName != undefined ? styles$h.with_title : styles$h.without_title} ${
|
277
|
+
React__default["default"].createElement("input", { className: `${styles$h.input} ${title.lastName != undefined ? styles$h.with_title : styles$h.without_title} ${lastName.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "lastName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.lastName, defaultValue: defaultValue.lastName, onInput: onInput2 }),
|
278
278
|
React__default["default"].createElement("label", { htmlFor: "text", className: styles$h.label },
|
279
279
|
React__default["default"].createElement("span", { className: styles$h.label_text }, title.lastName)))));
|
280
280
|
}
|
package/dist/index.esm.js
CHANGED
@@ -248,25 +248,25 @@ var styles$h = {"container":"styles-module_container__IXTeq","input":"styles-mod
|
|
248
248
|
styleInject(css_248z$h);
|
249
249
|
|
250
250
|
function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
|
251
|
-
const [
|
252
|
-
const [
|
251
|
+
const [firstName, setFirstName] = useState(defaultValue.firstName ? defaultValue.firstName : "");
|
252
|
+
const [lastName, setLastName] = useState(defaultValue.lastName ? defaultValue.lastName : "");
|
253
253
|
function onInput1(event) {
|
254
|
-
|
254
|
+
setFirstName(event.target.value);
|
255
255
|
onInputFirstName(event);
|
256
256
|
onInput("firstName", event);
|
257
257
|
}
|
258
258
|
function onInput2(event) {
|
259
|
-
|
259
|
+
setLastName(event.target.value);
|
260
260
|
onInputLastName(event);
|
261
261
|
onInput("lastName", event);
|
262
262
|
}
|
263
263
|
return (React.createElement("div", { className: styles$h.container, style: { width: width } },
|
264
264
|
React.createElement("div", { className: styles$h.form },
|
265
|
-
React.createElement("input", { className: `${styles$h.input} ${title.firstName != undefined ? styles$h.with_title : styles$h.without_title} ${
|
265
|
+
React.createElement("input", { className: `${styles$h.input} ${title.firstName != undefined ? styles$h.with_title : styles$h.without_title} ${firstName.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "firstName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.firstName, defaultValue: defaultValue.firstName, onInput: onInput1 }),
|
266
266
|
React.createElement("label", { htmlFor: "text", className: styles$h.label },
|
267
267
|
React.createElement("span", { className: styles$h.label_text }, title.firstName))),
|
268
268
|
React.createElement("div", { className: styles$h.form },
|
269
|
-
React.createElement("input", { className: `${styles$h.input} ${title.lastName != undefined ? styles$h.with_title : styles$h.without_title} ${
|
269
|
+
React.createElement("input", { className: `${styles$h.input} ${title.lastName != undefined ? styles$h.with_title : styles$h.without_title} ${lastName.length > 0 ? styles$h.valid : styles$h.not_valid}`, name: "lastName", type: "name", style: { width: width != "100%" ? "100px" : width }, placeholder: placeholder.lastName, defaultValue: defaultValue.lastName, onInput: onInput2 }),
|
270
270
|
React.createElement("label", { htmlFor: "text", className: styles$h.label },
|
271
271
|
React.createElement("span", { className: styles$h.label_text }, title.lastName)))));
|
272
272
|
}
|
package/dist/types/Category.d.ts
CHANGED
package/dist/types/Ebook.d.ts
CHANGED
package/dist/types/HelpData.d.ts
CHANGED
package/dist/types/Material.d.ts
CHANGED
package/dist/types/Movie.d.ts
CHANGED
package/dist/types/Product.d.ts
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
import { PortableTextBlock } from "sanity";
|
2
2
|
export type About = {
|
3
|
-
|
3
|
+
_id: string;
|
4
|
+
_type: "about";
|
4
5
|
quote: string;
|
5
6
|
description: PortableTextBlock[];
|
6
7
|
persons: Person[];
|
7
8
|
};
|
8
9
|
export type Person = {
|
10
|
+
_id: number;
|
11
|
+
_type: "person";
|
9
12
|
name: string;
|
10
13
|
role: string;
|
11
14
|
linkedIn: string;
|