@faasjs/ant-design 5.0.1 → 6.0.0-beta.0

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
@@ -238,7 +238,7 @@ App.useApp = useApp;
238
238
  App.whyDidYouRender = true;
239
239
  function Blank(options) {
240
240
  const { theme } = useConfigContext();
241
- return !options || options.value === void 0 || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Typography.Text, { disabled: true, children: options?.text || theme.Blank.text }) : options.value;
241
+ return !options || options.value === undefined || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Typography.Text, { disabled: true, children: options?.text || theme.Blank.text }) : options.value;
242
242
  }
243
243
  Blank.whyDidYouRender = true;
244
244
  function upperFirst(str) {
@@ -762,7 +762,7 @@ function FormItem(props) {
762
762
  FormItem.whyDidYouRender = true;
763
763
  FormItem.useStatus = antd.Form.Item.useStatus;
764
764
  function isFormItemProps(item) {
765
- return item.id !== void 0;
765
+ return item.id !== undefined;
766
766
  }
767
767
  function Form(props) {
768
768
  const [loading, setLoading] = react$1.useState(false);
@@ -896,7 +896,7 @@ Form.Provider = antd.Form.Provider;
896
896
  function Link(props) {
897
897
  const { theme } = useConfigContext();
898
898
  const navigate = reactRouterDom.useNavigate();
899
- const target = props.target || theme.Link?.target || (props.href.startsWith("http") ? "_blank" : void 0);
899
+ const target = props.target || theme.Link?.target || (props.href.startsWith("http") ? "_blank" : undefined);
900
900
  let computedStyle = {
901
901
  ...theme.Link.style || {},
902
902
  cursor: "pointer",
package/dist/index.mjs CHANGED
@@ -234,7 +234,7 @@ App.useApp = useApp;
234
234
  App.whyDidYouRender = true;
235
235
  function Blank(options) {
236
236
  const { theme } = useConfigContext();
237
- return !options || options.value === void 0 || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsx(Typography.Text, { disabled: true, children: options?.text || theme.Blank.text }) : options.value;
237
+ return !options || options.value === undefined || options.value === null || Array.isArray(options.value) && !options.value.length || options.value === "" ? /* @__PURE__ */ jsx(Typography.Text, { disabled: true, children: options?.text || theme.Blank.text }) : options.value;
238
238
  }
239
239
  Blank.whyDidYouRender = true;
240
240
  function upperFirst(str) {
@@ -758,7 +758,7 @@ function FormItem(props) {
758
758
  FormItem.whyDidYouRender = true;
759
759
  FormItem.useStatus = Form$1.Item.useStatus;
760
760
  function isFormItemProps(item) {
761
- return item.id !== void 0;
761
+ return item.id !== undefined;
762
762
  }
763
763
  function Form(props) {
764
764
  const [loading, setLoading] = useState(false);
@@ -892,7 +892,7 @@ Form.Provider = Form$1.Provider;
892
892
  function Link(props) {
893
893
  const { theme } = useConfigContext();
894
894
  const navigate = useNavigate();
895
- const target = props.target || theme.Link?.target || (props.href.startsWith("http") ? "_blank" : void 0);
895
+ const target = props.target || theme.Link?.target || (props.href.startsWith("http") ? "_blank" : undefined);
896
896
  let computedStyle = {
897
897
  ...theme.Link.style || {},
898
898
  cursor: "pointer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "5.0.1",
3
+ "version": "6.0.0-beta.0",
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": "5.0.1",
33
+ "@faasjs/react": "6.0.0-beta.0",
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": "5.0.1",
43
+ "@faasjs/react": "6.0.0-beta.0",
44
44
  "antd": "*",
45
45
  "@ant-design/icons": "*",
46
46
  "lodash-es": "*",