soda-heroui 0.11.15 → 0.11.17

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.
@@ -29,47 +29,17 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  createEnumSelect: ()=>createEnumSelect
30
30
  });
31
31
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
33
32
  const react_namespaceObject = require("@heroui/react");
34
33
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
35
34
  const external_FormSelect_cjs_namespaceObject = require("./FormSelect.cjs");
36
- function EnumSelect(t0) {
37
- const $ = (0, compiler_runtime_namespaceObject.c)(8);
38
- let enumObject;
39
- let rest;
40
- if ($[0] !== t0) {
41
- ({ enumObject, ...rest } = t0);
42
- $[0] = t0;
43
- $[1] = enumObject;
44
- $[2] = rest;
45
- } else {
46
- enumObject = $[1];
47
- rest = $[2];
48
- }
49
- let t1;
50
- if ($[3] !== enumObject) {
51
- t1 = (0, external_deepsea_tools_namespaceObject.getEnumOptions)(enumObject);
52
- $[3] = enumObject;
53
- $[4] = t1;
54
- } else t1 = $[4];
55
- let t2;
56
- if ($[5] !== rest || $[6] !== t1) {
57
- t2 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FormSelect_cjs_namespaceObject.FormSelect, {
58
- items: t1,
59
- ...rest,
60
- children: _temp
61
- });
62
- $[5] = rest;
63
- $[6] = t1;
64
- $[7] = t2;
65
- } else t2 = $[7];
66
- return t2;
67
- }
68
- function _temp(t0) {
69
- const { label, value } = t0;
70
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_namespaceObject.SelectItem, {
71
- children: label
72
- }, value);
35
+ function EnumSelect({ enumObject, ...rest }) {
36
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FormSelect_cjs_namespaceObject.FormSelect, {
37
+ items: (0, external_deepsea_tools_namespaceObject.getEnumOptions)(enumObject),
38
+ ...rest,
39
+ children: ({ label, value })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_namespaceObject.SelectItem, {
40
+ children: label
41
+ }, value)
42
+ });
73
43
  }
74
44
  function createEnumSelect(enumObject) {
75
45
  return function(props) {
@@ -1,46 +1,16 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { SelectItem } from "@heroui/react";
5
4
  import { getEnumOptions } from "deepsea-tools";
6
5
  import { FormSelect as external_FormSelect_js_FormSelect } from "./FormSelect.js";
7
- function EnumSelect(t0) {
8
- const $ = c(8);
9
- let enumObject;
10
- let rest;
11
- if ($[0] !== t0) {
12
- ({ enumObject, ...rest } = t0);
13
- $[0] = t0;
14
- $[1] = enumObject;
15
- $[2] = rest;
16
- } else {
17
- enumObject = $[1];
18
- rest = $[2];
19
- }
20
- let t1;
21
- if ($[3] !== enumObject) {
22
- t1 = getEnumOptions(enumObject);
23
- $[3] = enumObject;
24
- $[4] = t1;
25
- } else t1 = $[4];
26
- let t2;
27
- if ($[5] !== rest || $[6] !== t1) {
28
- t2 = /*#__PURE__*/ jsx(external_FormSelect_js_FormSelect, {
29
- items: t1,
30
- ...rest,
31
- children: _temp
32
- });
33
- $[5] = rest;
34
- $[6] = t1;
35
- $[7] = t2;
36
- } else t2 = $[7];
37
- return t2;
38
- }
39
- function _temp(t0) {
40
- const { label, value } = t0;
41
- return /*#__PURE__*/ jsx(SelectItem, {
42
- children: label
43
- }, value);
6
+ function EnumSelect({ enumObject, ...rest }) {
7
+ return /*#__PURE__*/ jsx(external_FormSelect_js_FormSelect, {
8
+ items: getEnumOptions(enumObject),
9
+ ...rest,
10
+ children: ({ label, value })=>/*#__PURE__*/ jsx(SelectItem, {
11
+ children: label
12
+ }, value)
13
+ });
44
14
  }
45
15
  function createEnumSelect(enumObject) {
46
16
  return function(props) {
@@ -28,7 +28,6 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  ErrorMessage: ()=>ErrorMessage
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
31
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
33
32
  function getErrorMessage(error) {
34
33
  if (!(0, external_deepsea_tools_namespaceObject.isNonNullable)(error)) return [];
@@ -41,39 +40,15 @@ function getErrorMessage(error) {
41
40
  ];
42
41
  }
43
42
  const ErrorMessage = (props)=>{
44
- const $ = (0, compiler_runtime_namespaceObject.c)(6);
45
- let data;
46
- let rest;
47
- if ($[0] !== props) {
48
- ({ data, ...rest } = props);
49
- $[0] = props;
50
- $[1] = data;
51
- $[2] = rest;
52
- } else {
53
- data = $[1];
54
- rest = $[2];
55
- }
56
- let t0;
57
- if ($[3] !== data || $[4] !== rest) {
58
- const errors = data.flatMap(getErrorMessage).filter(_temp);
59
- t0 = errors.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
60
- ...rest,
61
- children: errors.map(_temp2)
62
- });
63
- $[3] = data;
64
- $[4] = rest;
65
- $[5] = t0;
66
- } else t0 = $[5];
67
- return t0;
43
+ const { data, ...rest } = props;
44
+ const errors = data.flatMap(getErrorMessage).filter((item, index, array)=>array.indexOf(item) === index);
45
+ return errors.length > 0 && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
46
+ ...rest,
47
+ children: errors.map((item, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
48
+ children: item
49
+ }, index))
50
+ });
68
51
  };
69
- function _temp(item, index, array) {
70
- return array.indexOf(item) === index;
71
- }
72
- function _temp2(item_0, index_0) {
73
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
74
- children: item_0
75
- }, index_0);
76
- }
77
52
  exports.ErrorMessage = __webpack_exports__.ErrorMessage;
78
53
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
79
54
  "ErrorMessage"
@@ -1,6 +1,5 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { isNonNullable } from "deepsea-tools";
5
4
  function getErrorMessage(error) {
6
5
  if (!isNonNullable(error)) return [];
@@ -13,37 +12,13 @@ function getErrorMessage(error) {
13
12
  ];
14
13
  }
15
14
  const ErrorMessage = (props)=>{
16
- const $ = c(6);
17
- let data;
18
- let rest;
19
- if ($[0] !== props) {
20
- ({ data, ...rest } = props);
21
- $[0] = props;
22
- $[1] = data;
23
- $[2] = rest;
24
- } else {
25
- data = $[1];
26
- rest = $[2];
27
- }
28
- let t0;
29
- if ($[3] !== data || $[4] !== rest) {
30
- const errors = data.flatMap(getErrorMessage).filter(_temp);
31
- t0 = errors.length > 0 && /*#__PURE__*/ jsx("div", {
32
- ...rest,
33
- children: errors.map(_temp2)
34
- });
35
- $[3] = data;
36
- $[4] = rest;
37
- $[5] = t0;
38
- } else t0 = $[5];
39
- return t0;
15
+ const { data, ...rest } = props;
16
+ const errors = data.flatMap(getErrorMessage).filter((item, index, array)=>array.indexOf(item) === index);
17
+ return errors.length > 0 && /*#__PURE__*/ jsx("div", {
18
+ ...rest,
19
+ children: errors.map((item, index)=>/*#__PURE__*/ jsx("div", {
20
+ children: item
21
+ }, index))
22
+ });
40
23
  };
41
- function _temp(item, index, array) {
42
- return array.indexOf(item) === index;
43
- }
44
- function _temp2(item_0, index_0) {
45
- return /*#__PURE__*/ jsx("div", {
46
- children: item_0
47
- }, index_0);
48
- }
49
24
  export { ErrorMessage };
@@ -28,50 +28,15 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  FormAutocomplete: ()=>FormAutocomplete
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
31
  const react_namespaceObject = require("@heroui/react");
33
32
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
34
- function FormAutocomplete(t0) {
35
- const $ = (0, compiler_runtime_namespaceObject.c)(12);
36
- let field;
37
- let rest;
38
- let t1;
39
- if ($[0] !== t0) {
40
- ({ field, component: t1, ...rest } = t0);
41
- $[0] = t0;
42
- $[1] = field;
43
- $[2] = rest;
44
- $[3] = t1;
45
- } else {
46
- field = $[1];
47
- rest = $[2];
48
- t1 = $[3];
49
- }
50
- const Autocomplete2 = void 0 === t1 ? react_namespaceObject.Autocomplete : t1;
51
- const t2 = field.state.value ?? "";
52
- const t3 = field.handleChange;
53
- let t4;
54
- if ($[4] !== field) {
55
- t4 = (0, getFieldProps_cjs_namespaceObject.getFieldProps)(field);
56
- $[4] = field;
57
- $[5] = t4;
58
- } else t4 = $[5];
59
- let t5;
60
- if ($[6] !== Autocomplete2 || $[7] !== rest || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
61
- t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Autocomplete2, {
62
- selectedKey: t2,
63
- onSelectionChange: t3,
64
- ...t4,
65
- ...rest
66
- });
67
- $[6] = Autocomplete2;
68
- $[7] = rest;
69
- $[8] = t2;
70
- $[9] = t3;
71
- $[10] = t4;
72
- $[11] = t5;
73
- } else t5 = $[11];
74
- return t5;
33
+ function FormAutocomplete({ field, component: Autocomplete2 = react_namespaceObject.Autocomplete, ...rest }) {
34
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Autocomplete2, {
35
+ selectedKey: field.state.value ?? "",
36
+ onSelectionChange: field.handleChange,
37
+ ...(0, getFieldProps_cjs_namespaceObject.getFieldProps)(field),
38
+ ...rest
39
+ });
75
40
  }
76
41
  exports.FormAutocomplete = __webpack_exports__.FormAutocomplete;
77
42
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,48 +1,13 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { Autocomplete } from "@heroui/react";
5
4
  import { getFieldProps } from "../utils/getFieldProps.js";
6
- function FormAutocomplete(t0) {
7
- const $ = c(12);
8
- let field;
9
- let rest;
10
- let t1;
11
- if ($[0] !== t0) {
12
- ({ field, component: t1, ...rest } = t0);
13
- $[0] = t0;
14
- $[1] = field;
15
- $[2] = rest;
16
- $[3] = t1;
17
- } else {
18
- field = $[1];
19
- rest = $[2];
20
- t1 = $[3];
21
- }
22
- const Autocomplete2 = void 0 === t1 ? Autocomplete : t1;
23
- const t2 = field.state.value ?? "";
24
- const t3 = field.handleChange;
25
- let t4;
26
- if ($[4] !== field) {
27
- t4 = getFieldProps(field);
28
- $[4] = field;
29
- $[5] = t4;
30
- } else t4 = $[5];
31
- let t5;
32
- if ($[6] !== Autocomplete2 || $[7] !== rest || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
33
- t5 = /*#__PURE__*/ jsx(Autocomplete2, {
34
- selectedKey: t2,
35
- onSelectionChange: t3,
36
- ...t4,
37
- ...rest
38
- });
39
- $[6] = Autocomplete2;
40
- $[7] = rest;
41
- $[8] = t2;
42
- $[9] = t3;
43
- $[10] = t4;
44
- $[11] = t5;
45
- } else t5 = $[11];
46
- return t5;
5
+ function FormAutocomplete({ field, component: Autocomplete2 = Autocomplete, ...rest }) {
6
+ return /*#__PURE__*/ jsx(Autocomplete2, {
7
+ selectedKey: field.state.value ?? "",
8
+ onSelectionChange: field.handleChange,
9
+ ...getFieldProps(field),
10
+ ...rest
11
+ });
47
12
  }
48
13
  export { FormAutocomplete };
@@ -28,50 +28,15 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  FormCheckbox: ()=>FormCheckbox
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
31
  const react_namespaceObject = require("@heroui/react");
33
32
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
34
- function FormCheckbox(t0) {
35
- const $ = (0, compiler_runtime_namespaceObject.c)(12);
36
- let field;
37
- let rest;
38
- let t1;
39
- if ($[0] !== t0) {
40
- ({ field, component: t1, ...rest } = t0);
41
- $[0] = t0;
42
- $[1] = field;
43
- $[2] = rest;
44
- $[3] = t1;
45
- } else {
46
- field = $[1];
47
- rest = $[2];
48
- t1 = $[3];
49
- }
50
- const Checkbox2 = void 0 === t1 ? react_namespaceObject.Checkbox : t1;
51
- const t2 = field.state.value ?? false;
52
- const t3 = field.handleChange;
53
- let t4;
54
- if ($[4] !== field) {
55
- t4 = (0, getFieldProps_cjs_namespaceObject.getFieldProps)(field, true);
56
- $[4] = field;
57
- $[5] = t4;
58
- } else t4 = $[5];
59
- let t5;
60
- if ($[6] !== Checkbox2 || $[7] !== rest || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
61
- t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Checkbox2, {
62
- isSelected: t2,
63
- onValueChange: t3,
64
- ...t4,
65
- ...rest
66
- });
67
- $[6] = Checkbox2;
68
- $[7] = rest;
69
- $[8] = t2;
70
- $[9] = t3;
71
- $[10] = t4;
72
- $[11] = t5;
73
- } else t5 = $[11];
74
- return t5;
33
+ function FormCheckbox({ field, component: Checkbox2 = react_namespaceObject.Checkbox, ...rest }) {
34
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Checkbox2, {
35
+ isSelected: field.state.value ?? false,
36
+ onValueChange: field.handleChange,
37
+ ...(0, getFieldProps_cjs_namespaceObject.getFieldProps)(field, true),
38
+ ...rest
39
+ });
75
40
  }
76
41
  exports.FormCheckbox = __webpack_exports__.FormCheckbox;
77
42
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,48 +1,13 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { Checkbox } from "@heroui/react";
5
4
  import { getFieldProps } from "../utils/getFieldProps.js";
6
- function FormCheckbox(t0) {
7
- const $ = c(12);
8
- let field;
9
- let rest;
10
- let t1;
11
- if ($[0] !== t0) {
12
- ({ field, component: t1, ...rest } = t0);
13
- $[0] = t0;
14
- $[1] = field;
15
- $[2] = rest;
16
- $[3] = t1;
17
- } else {
18
- field = $[1];
19
- rest = $[2];
20
- t1 = $[3];
21
- }
22
- const Checkbox2 = void 0 === t1 ? Checkbox : t1;
23
- const t2 = field.state.value ?? false;
24
- const t3 = field.handleChange;
25
- let t4;
26
- if ($[4] !== field) {
27
- t4 = getFieldProps(field, true);
28
- $[4] = field;
29
- $[5] = t4;
30
- } else t4 = $[5];
31
- let t5;
32
- if ($[6] !== Checkbox2 || $[7] !== rest || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
33
- t5 = /*#__PURE__*/ jsx(Checkbox2, {
34
- isSelected: t2,
35
- onValueChange: t3,
36
- ...t4,
37
- ...rest
38
- });
39
- $[6] = Checkbox2;
40
- $[7] = rest;
41
- $[8] = t2;
42
- $[9] = t3;
43
- $[10] = t4;
44
- $[11] = t5;
45
- } else t5 = $[11];
46
- return t5;
5
+ function FormCheckbox({ field, component: Checkbox2 = Checkbox, ...rest }) {
6
+ return /*#__PURE__*/ jsx(Checkbox2, {
7
+ isSelected: field.state.value ?? false,
8
+ onValueChange: field.handleChange,
9
+ ...getFieldProps(field, true),
10
+ ...rest
11
+ });
47
12
  }
48
13
  export { FormCheckbox };
@@ -28,55 +28,15 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  FormCheckboxGroup: ()=>FormCheckboxGroup
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
31
  const react_namespaceObject = require("@heroui/react");
33
32
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
34
- function FormCheckboxGroup(t0) {
35
- const $ = (0, compiler_runtime_namespaceObject.c)(14);
36
- let field;
37
- let rest;
38
- let t1;
39
- if ($[0] !== t0) {
40
- ({ field, component: t1, ...rest } = t0);
41
- $[0] = t0;
42
- $[1] = field;
43
- $[2] = rest;
44
- $[3] = t1;
45
- } else {
46
- field = $[1];
47
- rest = $[2];
48
- t1 = $[3];
49
- }
50
- const CheckboxGroup2 = void 0 === t1 ? react_namespaceObject.CheckboxGroup : t1;
51
- let t2;
52
- if ($[4] !== field.state.value) {
53
- t2 = field.state.value ?? [];
54
- $[4] = field.state.value;
55
- $[5] = t2;
56
- } else t2 = $[5];
57
- const t3 = field.handleChange;
58
- let t4;
59
- if ($[6] !== field) {
60
- t4 = (0, getFieldProps_cjs_namespaceObject.getFieldProps)(field);
61
- $[6] = field;
62
- $[7] = t4;
63
- } else t4 = $[7];
64
- let t5;
65
- if ($[8] !== CheckboxGroup2 || $[9] !== rest || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
66
- t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CheckboxGroup2, {
67
- value: t2,
68
- onValueChange: t3,
69
- ...t4,
70
- ...rest
71
- });
72
- $[8] = CheckboxGroup2;
73
- $[9] = rest;
74
- $[10] = t2;
75
- $[11] = t3;
76
- $[12] = t4;
77
- $[13] = t5;
78
- } else t5 = $[13];
79
- return t5;
33
+ function FormCheckboxGroup({ field, component: CheckboxGroup2 = react_namespaceObject.CheckboxGroup, ...rest }) {
34
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CheckboxGroup2, {
35
+ value: field.state.value ?? [],
36
+ onValueChange: field.handleChange,
37
+ ...(0, getFieldProps_cjs_namespaceObject.getFieldProps)(field),
38
+ ...rest
39
+ });
80
40
  }
81
41
  exports.FormCheckboxGroup = __webpack_exports__.FormCheckboxGroup;
82
42
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,53 +1,13 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
- import { c } from "react/compiler-runtime";
4
3
  import { CheckboxGroup } from "@heroui/react";
5
4
  import { getFieldProps } from "../utils/getFieldProps.js";
6
- function FormCheckboxGroup(t0) {
7
- const $ = c(14);
8
- let field;
9
- let rest;
10
- let t1;
11
- if ($[0] !== t0) {
12
- ({ field, component: t1, ...rest } = t0);
13
- $[0] = t0;
14
- $[1] = field;
15
- $[2] = rest;
16
- $[3] = t1;
17
- } else {
18
- field = $[1];
19
- rest = $[2];
20
- t1 = $[3];
21
- }
22
- const CheckboxGroup2 = void 0 === t1 ? CheckboxGroup : t1;
23
- let t2;
24
- if ($[4] !== field.state.value) {
25
- t2 = field.state.value ?? [];
26
- $[4] = field.state.value;
27
- $[5] = t2;
28
- } else t2 = $[5];
29
- const t3 = field.handleChange;
30
- let t4;
31
- if ($[6] !== field) {
32
- t4 = getFieldProps(field);
33
- $[6] = field;
34
- $[7] = t4;
35
- } else t4 = $[7];
36
- let t5;
37
- if ($[8] !== CheckboxGroup2 || $[9] !== rest || $[10] !== t2 || $[11] !== t3 || $[12] !== t4) {
38
- t5 = /*#__PURE__*/ jsx(CheckboxGroup2, {
39
- value: t2,
40
- onValueChange: t3,
41
- ...t4,
42
- ...rest
43
- });
44
- $[8] = CheckboxGroup2;
45
- $[9] = rest;
46
- $[10] = t2;
47
- $[11] = t3;
48
- $[12] = t4;
49
- $[13] = t5;
50
- } else t5 = $[13];
51
- return t5;
5
+ function FormCheckboxGroup({ field, component: CheckboxGroup2 = CheckboxGroup, ...rest }) {
6
+ return /*#__PURE__*/ jsx(CheckboxGroup2, {
7
+ value: field.state.value ?? [],
8
+ onValueChange: field.handleChange,
9
+ ...getFieldProps(field),
10
+ ...rest
11
+ });
52
12
  }
53
13
  export { FormCheckboxGroup };
@@ -28,50 +28,15 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  FormInput: ()=>FormInput
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const compiler_runtime_namespaceObject = require("react/compiler-runtime");
32
31
  const react_namespaceObject = require("@heroui/react");
33
32
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
34
- function FormInput(t0) {
35
- const $ = (0, compiler_runtime_namespaceObject.c)(12);
36
- let field;
37
- let rest;
38
- let t1;
39
- if ($[0] !== t0) {
40
- ({ field, component: t1, ...rest } = t0);
41
- $[0] = t0;
42
- $[1] = field;
43
- $[2] = rest;
44
- $[3] = t1;
45
- } else {
46
- field = $[1];
47
- rest = $[2];
48
- t1 = $[3];
49
- }
50
- const Input2 = void 0 === t1 ? react_namespaceObject.Input : t1;
51
- const t2 = field.state.value ?? "";
52
- const t3 = field.handleChange;
53
- let t4;
54
- if ($[4] !== field) {
55
- t4 = (0, getFieldProps_cjs_namespaceObject.getFieldProps)(field);
56
- $[4] = field;
57
- $[5] = t4;
58
- } else t4 = $[5];
59
- let t5;
60
- if ($[6] !== Input2 || $[7] !== rest || $[8] !== t2 || $[9] !== t3 || $[10] !== t4) {
61
- t5 = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Input2, {
62
- value: t2,
63
- onValueChange: t3,
64
- ...t4,
65
- ...rest
66
- });
67
- $[6] = Input2;
68
- $[7] = rest;
69
- $[8] = t2;
70
- $[9] = t3;
71
- $[10] = t4;
72
- $[11] = t5;
73
- } else t5 = $[11];
74
- return t5;
33
+ function FormInput({ field, component: Input2 = react_namespaceObject.Input, ...rest }) {
34
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Input2, {
35
+ value: field.state.value ?? "",
36
+ onValueChange: field.handleChange,
37
+ ...(0, getFieldProps_cjs_namespaceObject.getFieldProps)(field),
38
+ ...rest
39
+ });
75
40
  }
76
41
  exports.FormInput = __webpack_exports__.FormInput;
77
42
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [