soda-heroui 0.11.7 → 0.11.8

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.
Files changed (35) hide show
  1. package/dist/components/AutoRefresh.cjs +4 -3
  2. package/dist/components/AutoRefresh.js +4 -3
  3. package/dist/components/EnumSelect.cjs +38 -8
  4. package/dist/components/EnumSelect.js +38 -8
  5. package/dist/components/ErrorMessage.cjs +33 -8
  6. package/dist/components/ErrorMessage.js +33 -8
  7. package/dist/components/FormAutocomplete.cjs +42 -7
  8. package/dist/components/FormAutocomplete.js +42 -7
  9. package/dist/components/FormCheckbox.cjs +42 -7
  10. package/dist/components/FormCheckbox.js +42 -7
  11. package/dist/components/FormCheckboxGroup.cjs +47 -7
  12. package/dist/components/FormCheckboxGroup.js +47 -7
  13. package/dist/components/FormInput.cjs +42 -7
  14. package/dist/components/FormInput.js +42 -7
  15. package/dist/components/FormInputOtp.cjs +42 -7
  16. package/dist/components/FormInputOtp.js +42 -7
  17. package/dist/components/FormNumberInput.cjs +42 -7
  18. package/dist/components/FormNumberInput.js +42 -7
  19. package/dist/components/FormPagination.cjs +42 -7
  20. package/dist/components/FormPagination.js +42 -7
  21. package/dist/components/FormProvider.cjs +25 -8
  22. package/dist/components/FormProvider.js +25 -8
  23. package/dist/components/FormRadioGroup.cjs +42 -7
  24. package/dist/components/FormRadioGroup.js +42 -7
  25. package/dist/components/FormSwitch.cjs +42 -7
  26. package/dist/components/FormSwitch.js +42 -7
  27. package/dist/components/FormTextarea.cjs +42 -7
  28. package/dist/components/FormTextarea.js +42 -7
  29. package/dist/utils/addBetterToast.cjs +2 -2
  30. package/dist/utils/addBetterToast.js +2 -2
  31. package/dist/utils/getTimeValue.cjs +7 -7
  32. package/dist/utils/getTimeValue.js +7 -7
  33. package/dist/utils/range.cjs +1 -1
  34. package/dist/utils/range.js +1 -1
  35. package/package.json +5 -5
@@ -32,9 +32,10 @@ const external_soda_hooks_namespaceObject = require("soda-hooks");
32
32
  const AutoRefresh = ({ children, onRefresh, ...rest })=>{
33
33
  if ("development" === process.env.NODE_ENV) return children;
34
34
  function onPress(e) {
35
- const closeButton = e.target.parentElement?.querySelector(`[aria-label="\u{5173}\u{95ED}"]`);
36
- closeButton?.click();
37
- onRefresh?.();
35
+ var _e_target_parentElement;
36
+ const closeButton = null == (_e_target_parentElement = e.target.parentElement) ? void 0 : _e_target_parentElement.querySelector(`[aria-label="\u{5173}\u{95ED}"]`);
37
+ null == closeButton || closeButton.click();
38
+ null == onRefresh || onRefresh();
38
39
  }
39
40
  (0, external_soda_hooks_namespaceObject.useAutoRefresh)(()=>(0, react_namespaceObject.addToast)({
40
41
  title: "\u68C0\u6D4B\u5230\u9875\u9762\u66F4\u65B0",
@@ -4,9 +4,10 @@ import { useAutoRefresh } from "soda-hooks";
4
4
  const AutoRefresh = ({ children, onRefresh, ...rest })=>{
5
5
  if ("development" === process.env.NODE_ENV) return children;
6
6
  function onPress(e) {
7
- const closeButton = e.target.parentElement?.querySelector(`[aria-label="\u{5173}\u{95ED}"]`);
8
- closeButton?.click();
9
- onRefresh?.();
7
+ var _e_target_parentElement;
8
+ const closeButton = null == (_e_target_parentElement = e.target.parentElement) ? void 0 : _e_target_parentElement.querySelector(`[aria-label="\u{5173}\u{95ED}"]`);
9
+ null == closeButton || closeButton.click();
10
+ null == onRefresh || onRefresh();
10
11
  }
11
12
  useAutoRefresh(()=>addToast({
12
13
  title: "\u68C0\u6D4B\u5230\u9875\u9762\u66F4\u65B0",
@@ -29,17 +29,47 @@ __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");
32
33
  const react_namespaceObject = require("@heroui/react");
33
34
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
34
35
  const external_FormSelect_cjs_namespaceObject = require("./FormSelect.cjs");
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
- });
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);
43
73
  }
44
74
  function createEnumSelect(enumObject) {
45
75
  return function(props) {
@@ -1,16 +1,46 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { SelectItem } from "@heroui/react";
4
5
  import { getEnumOptions } from "deepsea-tools";
5
6
  import { FormSelect as external_FormSelect_js_FormSelect } from "./FormSelect.js";
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
- });
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);
14
44
  }
15
45
  function createEnumSelect(enumObject) {
16
46
  return function(props) {
@@ -28,6 +28,7 @@ __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");
31
32
  const external_deepsea_tools_namespaceObject = require("deepsea-tools");
32
33
  function getErrorMessage(error) {
33
34
  if (!(0, external_deepsea_tools_namespaceObject.isNonNullable)(error)) return [];
@@ -40,15 +41,39 @@ function getErrorMessage(error) {
40
41
  ];
41
42
  }
42
43
  const ErrorMessage = (props)=>{
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
- });
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;
51
68
  };
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
+ }
52
77
  exports.ErrorMessage = __webpack_exports__.ErrorMessage;
53
78
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
54
79
  "ErrorMessage"
@@ -1,5 +1,6 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { isNonNullable } from "deepsea-tools";
4
5
  function getErrorMessage(error) {
5
6
  if (!isNonNullable(error)) return [];
@@ -12,13 +13,37 @@ function getErrorMessage(error) {
12
13
  ];
13
14
  }
14
15
  const ErrorMessage = (props)=>{
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
- });
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;
23
40
  };
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
+ }
24
49
  export { ErrorMessage };
@@ -28,15 +28,50 @@ __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");
31
32
  const react_namespaceObject = require("@heroui/react");
32
33
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
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
- });
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;
40
75
  }
41
76
  exports.FormAutocomplete = __webpack_exports__.FormAutocomplete;
42
77
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,13 +1,48 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { Autocomplete } from "@heroui/react";
4
5
  import { getFieldProps } from "../utils/getFieldProps.js";
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
- });
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;
12
47
  }
13
48
  export { FormAutocomplete };
@@ -28,15 +28,50 @@ __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");
31
32
  const react_namespaceObject = require("@heroui/react");
32
33
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
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
- });
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;
40
75
  }
41
76
  exports.FormCheckbox = __webpack_exports__.FormCheckbox;
42
77
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,13 +1,48 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { Checkbox } from "@heroui/react";
4
5
  import { getFieldProps } from "../utils/getFieldProps.js";
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
- });
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;
12
47
  }
13
48
  export { FormCheckbox };
@@ -28,15 +28,55 @@ __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");
31
32
  const react_namespaceObject = require("@heroui/react");
32
33
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
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
- });
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;
40
80
  }
41
81
  exports.FormCheckboxGroup = __webpack_exports__.FormCheckboxGroup;
42
82
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [
@@ -1,13 +1,53 @@
1
1
  "use client"
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { c } from "react/compiler-runtime";
3
4
  import { CheckboxGroup } from "@heroui/react";
4
5
  import { getFieldProps } from "../utils/getFieldProps.js";
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
- });
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;
12
52
  }
13
53
  export { FormCheckboxGroup };
@@ -28,15 +28,50 @@ __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");
31
32
  const react_namespaceObject = require("@heroui/react");
32
33
  const getFieldProps_cjs_namespaceObject = require("../utils/getFieldProps.cjs");
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
- });
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;
40
75
  }
41
76
  exports.FormInput = __webpack_exports__.FormInput;
42
77
  for(var __webpack_i__ in __webpack_exports__)if (-1 === [