@faasjs/ant-design 6.4.3 → 6.5.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: theme2 } = useConfigContext();
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 || theme2.Blank.text }) : options.value;
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 || theme2.Blank.text }) : options.value;
242
242
  }
243
243
  Blank.whyDidYouRender = true;
244
244
  function upperFirst(str) {
@@ -755,7 +755,7 @@ function FormItem(props) {
755
755
  FormItem.whyDidYouRender = true;
756
756
  FormItem.useStatus = antd.Form.Item.useStatus;
757
757
  function isFormItemProps(item) {
758
- return item.id !== undefined;
758
+ return item.id !== void 0;
759
759
  }
760
760
  function Form(props) {
761
761
  const [loading, setLoading] = react$1.useState(false);
@@ -886,7 +886,7 @@ Form.Provider = antd.Form.Provider;
886
886
  function Link(props) {
887
887
  const { theme: theme2 } = useConfigContext();
888
888
  const navigate = reactRouterDom.useNavigate();
889
- const target = props.target || theme2.Link?.target || (props.href.startsWith("http") ? "_blank" : undefined);
889
+ const target = props.target || theme2.Link?.target || (props.href.startsWith("http") ? "_blank" : void 0);
890
890
  let computedStyle = {
891
891
  ...theme2.Link.style || {},
892
892
  cursor: "pointer",
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { FaasReactClientOptions, ErrorBoundaryProps, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1 } from '@faasjs/react';
1
+ import { FaasReactClientOptions, ErrorBoundaryProps, FaasDataWrapperProps as FaasDataWrapperProps$1, FaasDataInjection as FaasDataInjection$1 } from '@faasjs/react';
2
2
  export { ErrorBoundaryProps, faas, useFaas } from '@faasjs/react';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { StyleProviderProps } from '@ant-design/cssinjs';
5
- import { DrawerProps as DrawerProps$1, ModalProps as ModalProps$1, ConfigProviderProps as ConfigProviderProps$1, DescriptionsProps, FormItemProps as FormItemProps$1, FormInstance, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1, GlobalToken } from 'antd';
5
+ import { DrawerProps as DrawerProps$1, ModalProps as ModalProps$1, ConfigProviderProps as ConfigProviderProps$1, DescriptionsProps, FormItemProps as FormItemProps$1, InputProps, SelectProps, RadioProps, InputNumberProps, SwitchProps, DatePickerProps, FormInstance, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, FormProps as FormProps$1, ButtonProps, TabsProps as TabsProps$1, GlobalToken } from 'antd';
6
6
  import { MessageInstance } from 'antd/es/message/interface';
7
7
  import { NotificationInstance } from 'antd/es/notification/interface';
8
8
  import { BrowserRouterProps, RouteProps } from 'react-router-dom';
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  import { createSplittingContext, useEqualEffect, FaasReactClient, useEqualCallback, ErrorBoundary as ErrorBoundary$1, useEqualMemo, OptionalWrapper, FaasDataWrapper as FaasDataWrapper$1, withFaasData as withFaasData$1, faas } from '@faasjs/react';
2
2
  export { faas, useFaas } from '@faasjs/react';
3
3
  import { legacyLogicalPropertiesTransformer, StyleProvider } from '@ant-design/cssinjs';
4
- import { Form as Form$1, Drawer as Drawer$1, Modal as Modal$1, message, notification, ConfigProvider as ConfigProvider$1, Typography, Spin, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, theme, Alert, Space } from 'antd';
4
+ import { Drawer as Drawer$1, Modal as Modal$1, Form as Form$1, message, notification, ConfigProvider as ConfigProvider$1, Typography, Spin, Descriptions, Input, Button, Row, Col, DatePicker, Switch, Select, InputNumber, Radio, Result, Skeleton, Table as Table$1, Tabs as Tabs$1, theme, Alert, Space } from 'antd';
5
5
  import { BrowserRouter, useNavigate, Routes as Routes$1, Route, useLocation } from 'react-router-dom';
6
6
  import { defaultsDeep, cloneDeep, isNil, uniqBy } from 'lodash-es';
7
- import { createContext, useState, useContext, cloneElement, isValidElement, createElement, useEffect, Suspense } from 'react';
7
+ import { createContext, useState, useContext, cloneElement, createElement, isValidElement, useEffect, Suspense } from 'react';
8
8
  export { lazy } from 'react';
9
9
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
10
10
  import dayjs2 from 'dayjs';
@@ -234,7 +234,7 @@ App.useApp = useApp;
234
234
  App.whyDidYouRender = true;
235
235
  function Blank(options) {
236
236
  const { theme: theme2 } = useConfigContext();
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 || theme2.Blank.text }) : options.value;
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 || theme2.Blank.text }) : options.value;
238
238
  }
239
239
  Blank.whyDidYouRender = true;
240
240
  function upperFirst(str) {
@@ -751,7 +751,7 @@ function FormItem(props) {
751
751
  FormItem.whyDidYouRender = true;
752
752
  FormItem.useStatus = Form$1.Item.useStatus;
753
753
  function isFormItemProps(item) {
754
- return item.id !== undefined;
754
+ return item.id !== void 0;
755
755
  }
756
756
  function Form(props) {
757
757
  const [loading, setLoading] = useState(false);
@@ -882,7 +882,7 @@ Form.Provider = Form$1.Provider;
882
882
  function Link(props) {
883
883
  const { theme: theme2 } = useConfigContext();
884
884
  const navigate = useNavigate();
885
- const target = props.target || theme2.Link?.target || (props.href.startsWith("http") ? "_blank" : undefined);
885
+ const target = props.target || theme2.Link?.target || (props.href.startsWith("http") ? "_blank" : void 0);
886
886
  let computedStyle = {
887
887
  ...theme2.Link.style || {},
888
888
  cursor: "pointer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "6.4.3",
3
+ "version": "6.5.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": "6.4.3",
33
+ "@faasjs/react": "6.5.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": "6.4.3",
43
+ "@faasjs/react": "6.5.0",
44
44
  "antd": "*",
45
45
  "@ant-design/icons": "*",
46
46
  "lodash-es": "*",