math-main-components 0.0.26 → 0.0.27

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 CHANGED
@@ -208,8 +208,8 @@ var styles$h = {"container":"styles-module_container__IXTeq","input":"styles-mod
208
208
  styleInject(css_248z$h);
209
209
 
210
210
  function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
211
- const [value1, setValue1] = React.useState("");
212
- const [value2, setValue2] = React.useState("");
211
+ const [value1, setValue1] = React.useState(defaultValue.firstName ? defaultValue.firstName : "");
212
+ const [value2, setValue2] = React.useState(defaultValue.lastName ? defaultValue.lastName : "");
213
213
  function onInput1(event) {
214
214
  setValue1(event.target.value);
215
215
  onInputFirstName(event);
package/dist/index.esm.js CHANGED
@@ -200,8 +200,8 @@ var styles$h = {"container":"styles-module_container__IXTeq","input":"styles-mod
200
200
  styleInject(css_248z$h);
201
201
 
202
202
  function InputNames({ width = "100%", placeholder = { firstName: "", lastName: "" }, title = { firstName: "Vorname", lastName: "Nachname" }, defaultValue = { firstName: "", lastName: "" }, onInput = (name, event) => { }, onInputFirstName = (event) => { }, onInputLastName = (event) => { }, }) {
203
- const [value1, setValue1] = useState("");
204
- const [value2, setValue2] = useState("");
203
+ const [value1, setValue1] = useState(defaultValue.firstName ? defaultValue.firstName : "");
204
+ const [value2, setValue2] = useState(defaultValue.lastName ? defaultValue.lastName : "");
205
205
  function onInput1(event) {
206
206
  setValue1(event.target.value);
207
207
  onInputFirstName(event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "math-main-components",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "author": "Emilian Scheel",
5
5
  "files": [
6
6
  "dist/**/*"