@faasjs/ant-design 5.0.0 → 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.js → index.cjs} +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +7 -12
|
@@ -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 ===
|
|
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 !==
|
|
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" :
|
|
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 ===
|
|
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 !==
|
|
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" :
|
|
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,21 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0-beta.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "dist/index.
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.mjs",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
"require": {
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
17
|
-
"default": "./dist/index.js"
|
|
18
|
-
}
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.cjs"
|
|
19
14
|
}
|
|
20
15
|
},
|
|
21
16
|
"homepage": "https://faasjs.com/doc/ant-design",
|
|
@@ -35,7 +30,7 @@
|
|
|
35
30
|
"dist"
|
|
36
31
|
],
|
|
37
32
|
"peerDependencies": {
|
|
38
|
-
"@faasjs/react": "
|
|
33
|
+
"@faasjs/react": "6.0.0-beta.0",
|
|
39
34
|
"antd": "*",
|
|
40
35
|
"@ant-design/icons": "*",
|
|
41
36
|
"lodash-es": "*",
|
|
@@ -45,7 +40,7 @@
|
|
|
45
40
|
},
|
|
46
41
|
"devDependencies": {
|
|
47
42
|
"@types/lodash-es": "*",
|
|
48
|
-
"@faasjs/react": "
|
|
43
|
+
"@faasjs/react": "6.0.0-beta.0",
|
|
49
44
|
"antd": "*",
|
|
50
45
|
"@ant-design/icons": "*",
|
|
51
46
|
"lodash-es": "*",
|