@faasjs/ant-design 6.3.1 → 6.3.2

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 CHANGED
@@ -562,7 +562,7 @@ function FormItem(props) {
562
562
  }, [props]);
563
563
  if (!computedProps) return null;
564
564
  if (hidden)
565
- return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, noStyle: true, rules: [], children: /* @__PURE__ */ jsxRuntime.jsx(antd.Input, { hidden: true }) });
565
+ return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, noStyle: true, rules: [], children: /* @__PURE__ */ jsxRuntime.jsx(antd.Input, { type: "hidden", hidden: true }) });
566
566
  if (extendTypes?.[computedProps.type])
567
567
  return /* @__PURE__ */ jsxRuntime.jsx(antd.Form.Item, { ...computedProps, children: extendTypes[computedProps.type].children });
568
568
  if (computedProps.formChildren === null) return null;
@@ -793,7 +793,7 @@ function Form(props) {
793
793
  if (propsCopy.items?.length)
794
794
  for (const item of propsCopy.items) {
795
795
  if (isFormItemProps(item) && item.if)
796
- item.hidden = !item.if(propsCopy.initialValues || /* @__PURE__ */ Object.create(null));
796
+ item.hidden = !item.if(initialValues || /* @__PURE__ */ Object.create(null));
797
797
  }
798
798
  if (propsCopy.onFinish) {
799
799
  propsCopy.onFinish = async (values) => {
package/dist/index.mjs CHANGED
@@ -558,7 +558,7 @@ function FormItem(props) {
558
558
  }, [props]);
559
559
  if (!computedProps) return null;
560
560
  if (hidden)
561
- return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, noStyle: true, rules: [], children: /* @__PURE__ */ jsx(Input, { hidden: true }) });
561
+ return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, noStyle: true, rules: [], children: /* @__PURE__ */ jsx(Input, { type: "hidden", hidden: true }) });
562
562
  if (extendTypes?.[computedProps.type])
563
563
  return /* @__PURE__ */ jsx(Form$1.Item, { ...computedProps, children: extendTypes[computedProps.type].children });
564
564
  if (computedProps.formChildren === null) return null;
@@ -789,7 +789,7 @@ function Form(props) {
789
789
  if (propsCopy.items?.length)
790
790
  for (const item of propsCopy.items) {
791
791
  if (isFormItemProps(item) && item.if)
792
- item.hidden = !item.if(propsCopy.initialValues || /* @__PURE__ */ Object.create(null));
792
+ item.hidden = !item.if(initialValues || /* @__PURE__ */ Object.create(null));
793
793
  }
794
794
  if (propsCopy.onFinish) {
795
795
  propsCopy.onFinish = async (values) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "6.3.1",
3
+ "version": "6.3.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@faasjs/react": "6.3.1",
33
+ "@faasjs/react": "6.3.2",
34
34
  "antd": "*",
35
35
  "@ant-design/icons": "*",
36
36
  "lodash-es": "*",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/lodash-es": "*",
43
- "@faasjs/react": "6.3.1",
43
+ "@faasjs/react": "6.3.2",
44
44
  "antd": "*",
45
45
  "@ant-design/icons": "*",
46
46
  "lodash-es": "*",