@faasjs/ant-design 8.0.0-beta.13 → 8.0.0-beta.14

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/README.md CHANGED
@@ -22,11 +22,15 @@ In `@faasjs/ant-design`, we use `FaasItemProps` to provide data structures for c
22
22
 
23
23
  ```ts
24
24
  type FaasItemType =
25
- 'string' | 'string[]' |
26
- 'number' | 'number[]' |
27
- 'boolean' |
28
- 'date' | 'time' |
29
- 'object' | 'object[]'
25
+ | 'string'
26
+ | 'string[]'
27
+ | 'number'
28
+ | 'number[]'
29
+ | 'boolean'
30
+ | 'date'
31
+ | 'time'
32
+ | 'object'
33
+ | 'object[]'
30
34
 
31
35
  type FaasItemProps = {
32
36
  type: FaasItemTypes
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  //#region \0rolldown/runtime.js
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -7,16 +7,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
7
7
  var __getProtoOf = Object.getPrototypeOf;
8
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
9
  var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
- key = keys[i];
13
- if (!__hasOwnProp.call(to, key) && key !== except) {
14
- __defProp(to, key, {
15
- get: ((k) => from[k]).bind(null, key),
16
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
- });
18
- }
19
- }
10
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
11
+ key = keys[i];
12
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
+ get: ((k) => from[k]).bind(null, key),
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
20
16
  }
21
17
  return to;
22
18
  };
@@ -24,7 +20,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
20
  value: mod,
25
21
  enumerable: true
26
22
  }) : target, mod));
27
-
28
23
  //#endregion
29
24
  let _faasjs_react = require("@faasjs/react");
30
25
  let antd = require("antd");
@@ -35,7 +30,6 @@ let react_jsx_runtime = require("react/jsx-runtime");
35
30
  let _ant_design_icons = require("@ant-design/icons");
36
31
  let dayjs = require("dayjs");
37
32
  dayjs = __toESM(dayjs);
38
-
39
33
  //#region src/Loading.tsx
40
34
  /**
41
35
  * Loading component based on Spin
@@ -62,7 +56,6 @@ function Loading(props) {
62
56
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Spin, { size: props.size || "large" })
63
57
  });
64
58
  }
65
-
66
59
  //#endregion
67
60
  //#region src/FaasDataWrapper.tsx
68
61
  /**
@@ -101,7 +94,6 @@ function withFaasData(Component, faasProps) {
101
94
  ...faasProps
102
95
  });
103
96
  }
104
-
105
97
  //#endregion
106
98
  //#region src/Config.tsx
107
99
  const zh = {
@@ -173,7 +165,6 @@ function ConfigProvider(props) {
173
165
  function useConfigContext() {
174
166
  return (0, react.useContext)(ConfigContext);
175
167
  }
176
-
177
168
  //#endregion
178
169
  //#region src/Drawer.tsx
179
170
  /**
@@ -216,7 +207,6 @@ function useDrawer(init) {
216
207
  setDrawerProps
217
208
  };
218
209
  }
219
-
220
210
  //#endregion
221
211
  //#region src/ErrorBoundary.tsx
222
212
  function ErrorChildren(props) {
@@ -241,7 +231,6 @@ function ErrorBoundary(props) {
241
231
  ...props
242
232
  });
243
233
  }
244
-
245
234
  //#endregion
246
235
  //#region src/Modal.tsx
247
236
  /**
@@ -282,7 +271,6 @@ function useModal(init) {
282
271
  setModalProps
283
272
  };
284
273
  }
285
-
286
274
  //#endregion
287
275
  //#region src/App.tsx
288
276
  const AppContext = (0, _faasjs_react.createSplittingContext)([
@@ -388,7 +376,6 @@ function App(props) {
388
376
  */
389
377
  const useApp = AppContext.use;
390
378
  App.useApp = useApp;
391
-
392
379
  //#endregion
393
380
  //#region src/Blank.tsx
394
381
  /**
@@ -410,7 +397,6 @@ function Blank(options) {
410
397
  children: options?.text || theme.Blank.text
411
398
  }) : options.value;
412
399
  }
413
-
414
400
  //#endregion
415
401
  //#region src/data.ts
416
402
  /**
@@ -480,7 +466,6 @@ function transferValue(type, value) {
480
466
  function cloneUnionFaasItemElement(element, props) {
481
467
  return (0, react.cloneElement)((0, react.isValidElement)(element) ? element : (0, react.createElement)(element), props);
482
468
  }
483
-
484
469
  //#endregion
485
470
  //#region src/Description.tsx
486
471
  function DescriptionItemContent(props) {
@@ -607,7 +592,6 @@ function Description({ faasData, dataSource, renderTitle, extendTypes, ...props
607
592
  });
608
593
  }
609
594
  Description.displayName = "Description";
610
-
611
595
  //#endregion
612
596
  //#region src/FormItem.tsx
613
597
  function isOptionsProps(item) {
@@ -898,7 +882,6 @@ function FormItem(props) {
898
882
  }
899
883
  }
900
884
  FormItem.useStatus = antd.Form.Item.useStatus;
901
-
902
885
  //#endregion
903
886
  //#region src/Form.tsx
904
887
  function isFormItemProps(item) {
@@ -1015,7 +998,6 @@ Form.Item = FormItem;
1015
998
  Form.List = antd.Form.List;
1016
999
  Form.ErrorList = antd.Form.ErrorList;
1017
1000
  Form.Provider = antd.Form.Provider;
1018
-
1019
1001
  //#endregion
1020
1002
  //#region src/Link.tsx
1021
1003
  /**
@@ -1074,7 +1056,6 @@ function Link(props) {
1074
1056
  children: props.children ?? props.text
1075
1057
  });
1076
1058
  }
1077
-
1078
1059
  //#endregion
1079
1060
  //#region src/Routers.tsx
1080
1061
  function PageNotFound() {
@@ -1122,7 +1103,6 @@ function Routes(props) {
1122
1103
  element: props.notFound || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PageNotFound, {})
1123
1104
  }, "*")] });
1124
1105
  }
1125
-
1126
1106
  //#endregion
1127
1107
  //#region src/Table.tsx
1128
1108
  function processValue(item, value) {
@@ -1514,7 +1494,6 @@ function FaasDataTable({ props, columns, data, params, reload, loading }) {
1514
1494
  }
1515
1495
  });
1516
1496
  }
1517
-
1518
1497
  //#endregion
1519
1498
  //#region src/Tabs.tsx
1520
1499
  /**
@@ -1552,7 +1531,6 @@ function Tabs(props) {
1552
1531
  }))
1553
1532
  });
1554
1533
  }
1555
-
1556
1534
  //#endregion
1557
1535
  //#region src/Title.tsx
1558
1536
  /**
@@ -1591,7 +1569,6 @@ function Title(props) {
1591
1569
  if (props.children) return (0, react.cloneElement)(props.children, { title: props.title });
1592
1570
  return null;
1593
1571
  }
1594
-
1595
1572
  //#endregion
1596
1573
  //#region src/useThemeToken.ts
1597
1574
  /**
@@ -1605,7 +1582,6 @@ function Title(props) {
1605
1582
  function useThemeToken() {
1606
1583
  return antd.theme.useToken().token;
1607
1584
  }
1608
-
1609
1585
  //#endregion
1610
1586
  exports.App = App;
1611
1587
  exports.Blank = Blank;
@@ -1629,11 +1605,11 @@ exports.Title = Title;
1629
1605
  exports.cloneUnionFaasItemElement = cloneUnionFaasItemElement;
1630
1606
  exports.faas = _faasjs_react.faas;
1631
1607
  exports.idToTitle = idToTitle;
1632
- Object.defineProperty(exports, 'lazy', {
1633
- enumerable: true,
1634
- get: function () {
1635
- return react.lazy;
1636
- }
1608
+ Object.defineProperty(exports, "lazy", {
1609
+ enumerable: true,
1610
+ get: function() {
1611
+ return react.lazy;
1612
+ }
1637
1613
  });
1638
1614
  exports.transferOptions = transferOptions;
1639
1615
  exports.transferValue = transferValue;
@@ -1643,4 +1619,4 @@ exports.useDrawer = useDrawer;
1643
1619
  exports.useFaas = _faasjs_react.useFaas;
1644
1620
  exports.useModal = useModal;
1645
1621
  exports.useThemeToken = useThemeToken;
1646
- exports.withFaasData = withFaasData;
1622
+ exports.withFaasData = withFaasData;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as react_jsx_runtime0 from "react/jsx-runtime";
1
+ import { ErrorBoundaryProps, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1, FaasDataWrapperRef, FaasReactClient, FaasReactClientOptions, faas, useFaas } from "@faasjs/react";
2
2
  import { ButtonProps, ConfigProviderProps as ConfigProviderProps$1, DatePickerProps, DescriptionsProps, Drawer, DrawerProps as DrawerProps$1, FormInstance, FormItemProps as FormItemProps$1, FormProps as FormProps$1, GlobalToken, InputNumberProps, InputProps, Modal, ModalProps as ModalProps$1, RadioProps, SelectProps, SwitchProps, TableColumnProps, TablePaginationConfig, TableProps as TableProps$1, TabsProps as TabsProps$1 } from "antd";
3
- import { MessageInstance } from "antd/es/message/interface";
4
- import { NotificationInstance } from "antd/es/notification/interface";
5
3
  import { BrowserRouterProps, RouteProps } from "react-router-dom";
6
4
  import * as react from "react";
7
5
  import { CSSProperties, ComponentType, Dispatch, FC, JSX, LazyExoticComponent, ReactElement, ReactNode, SetStateAction, lazy } from "react";
8
- import { ErrorBoundaryProps, FaasDataInjection as FaasDataInjection$1, FaasDataWrapperProps as FaasDataWrapperProps$1, FaasDataWrapperRef, FaasReactClient, FaasReactClientOptions, faas, useFaas } from "@faasjs/react";
6
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
9
7
  import { Dayjs } from "dayjs";
8
+ import { MessageInstance } from "antd/es/message/interface";
9
+ import { NotificationInstance } from "antd/es/notification/interface";
10
10
  import * as antd_es_form_FormItem0 from "antd/es/form/FormItem";
11
11
  import * as antd_es_form0 from "antd/es/form";
12
12
  import { RuleObject } from "antd/es/form";
package/dist/index.mjs CHANGED
@@ -6,7 +6,6 @@ import { Suspense, cloneElement, createContext, createElement, isValidElement, l
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  import { CheckOutlined, CloseOutlined, MinusCircleOutlined, PlusOutlined } from "@ant-design/icons";
8
8
  import dayjs from "dayjs";
9
-
10
9
  //#region src/Loading.tsx
11
10
  /**
12
11
  * Loading component based on Spin
@@ -33,7 +32,6 @@ function Loading(props) {
33
32
  children: /* @__PURE__ */ jsx(Spin, { size: props.size || "large" })
34
33
  });
35
34
  }
36
-
37
35
  //#endregion
38
36
  //#region src/FaasDataWrapper.tsx
39
37
  /**
@@ -72,7 +70,6 @@ function withFaasData(Component, faasProps) {
72
70
  ...faasProps
73
71
  });
74
72
  }
75
-
76
73
  //#endregion
77
74
  //#region src/Config.tsx
78
75
  const zh = {
@@ -144,7 +141,6 @@ function ConfigProvider(props) {
144
141
  function useConfigContext() {
145
142
  return useContext(ConfigContext);
146
143
  }
147
-
148
144
  //#endregion
149
145
  //#region src/Drawer.tsx
150
146
  /**
@@ -187,7 +183,6 @@ function useDrawer(init) {
187
183
  setDrawerProps
188
184
  };
189
185
  }
190
-
191
186
  //#endregion
192
187
  //#region src/ErrorBoundary.tsx
193
188
  function ErrorChildren(props) {
@@ -212,7 +207,6 @@ function ErrorBoundary(props) {
212
207
  ...props
213
208
  });
214
209
  }
215
-
216
210
  //#endregion
217
211
  //#region src/Modal.tsx
218
212
  /**
@@ -253,7 +247,6 @@ function useModal(init) {
253
247
  setModalProps
254
248
  };
255
249
  }
256
-
257
250
  //#endregion
258
251
  //#region src/App.tsx
259
252
  const AppContext = createSplittingContext([
@@ -359,7 +352,6 @@ function App(props) {
359
352
  */
360
353
  const useApp = AppContext.use;
361
354
  App.useApp = useApp;
362
-
363
355
  //#endregion
364
356
  //#region src/Blank.tsx
365
357
  /**
@@ -381,7 +373,6 @@ function Blank(options) {
381
373
  children: options?.text || theme.Blank.text
382
374
  }) : options.value;
383
375
  }
384
-
385
376
  //#endregion
386
377
  //#region src/data.ts
387
378
  /**
@@ -451,7 +442,6 @@ function transferValue(type, value) {
451
442
  function cloneUnionFaasItemElement(element, props) {
452
443
  return cloneElement(isValidElement(element) ? element : createElement(element), props);
453
444
  }
454
-
455
445
  //#endregion
456
446
  //#region src/Description.tsx
457
447
  function DescriptionItemContent(props) {
@@ -578,7 +568,6 @@ function Description({ faasData, dataSource, renderTitle, extendTypes, ...props
578
568
  });
579
569
  }
580
570
  Description.displayName = "Description";
581
-
582
571
  //#endregion
583
572
  //#region src/FormItem.tsx
584
573
  function isOptionsProps(item) {
@@ -869,7 +858,6 @@ function FormItem(props) {
869
858
  }
870
859
  }
871
860
  FormItem.useStatus = Form$1.Item.useStatus;
872
-
873
861
  //#endregion
874
862
  //#region src/Form.tsx
875
863
  function isFormItemProps(item) {
@@ -986,7 +974,6 @@ Form.Item = FormItem;
986
974
  Form.List = Form$1.List;
987
975
  Form.ErrorList = Form$1.ErrorList;
988
976
  Form.Provider = Form$1.Provider;
989
-
990
977
  //#endregion
991
978
  //#region src/Link.tsx
992
979
  /**
@@ -1045,7 +1032,6 @@ function Link(props) {
1045
1032
  children: props.children ?? props.text
1046
1033
  });
1047
1034
  }
1048
-
1049
1035
  //#endregion
1050
1036
  //#region src/Routers.tsx
1051
1037
  function PageNotFound() {
@@ -1093,7 +1079,6 @@ function Routes(props) {
1093
1079
  element: props.notFound || /* @__PURE__ */ jsx(PageNotFound, {})
1094
1080
  }, "*")] });
1095
1081
  }
1096
-
1097
1082
  //#endregion
1098
1083
  //#region src/Table.tsx
1099
1084
  function processValue(item, value) {
@@ -1485,7 +1470,6 @@ function FaasDataTable({ props, columns, data, params, reload, loading }) {
1485
1470
  }
1486
1471
  });
1487
1472
  }
1488
-
1489
1473
  //#endregion
1490
1474
  //#region src/Tabs.tsx
1491
1475
  /**
@@ -1523,7 +1507,6 @@ function Tabs(props) {
1523
1507
  }))
1524
1508
  });
1525
1509
  }
1526
-
1527
1510
  //#endregion
1528
1511
  //#region src/Title.tsx
1529
1512
  /**
@@ -1562,7 +1545,6 @@ function Title(props) {
1562
1545
  if (props.children) return cloneElement(props.children, { title: props.title });
1563
1546
  return null;
1564
1547
  }
1565
-
1566
1548
  //#endregion
1567
1549
  //#region src/useThemeToken.ts
1568
1550
  /**
@@ -1576,6 +1558,5 @@ function Title(props) {
1576
1558
  function useThemeToken() {
1577
1559
  return theme.useToken().token;
1578
1560
  }
1579
-
1580
1561
  //#endregion
1581
- export { App, Blank, ConfigContext, ConfigProvider, Description, Drawer, ErrorBoundary, FaasDataWrapper, FaasReactClient, Form, FormItem, Link, Loading, Modal, PageNotFound, Routes, Table, Tabs, Title, cloneUnionFaasItemElement, faas, idToTitle, lazy, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useFaas, useModal, useThemeToken, withFaasData };
1562
+ export { App, Blank, ConfigContext, ConfigProvider, Description, Drawer, ErrorBoundary, FaasDataWrapper, FaasReactClient, Form, FormItem, Link, Loading, Modal, PageNotFound, Routes, Table, Tabs, Title, cloneUnionFaasItemElement, faas, idToTitle, lazy, transferOptions, transferValue, useApp, useConfigContext, useDrawer, useFaas, useModal, useThemeToken, withFaasData };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "8.0.0-beta.13",
3
+ "version": "8.0.0-beta.14",
4
4
  "homepage": "https://faasjs.com/doc/ant-design",
5
5
  "bugs": {
6
6
  "url": "https://github.com/faasjs/faasjs/issues"
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "devDependencies": {
33
33
  "@ant-design/icons": "*",
34
- "@faasjs/react": ">=8.0.0-beta.13",
34
+ "@faasjs/react": ">=8.0.0-beta.14",
35
35
  "@types/lodash-es": "*",
36
36
  "@types/react": "^19.0.0",
37
37
  "@types/react-dom": "^19.0.0",
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "@ant-design/icons": "*",
46
- "@faasjs/react": ">=8.0.0-beta.13",
46
+ "@faasjs/react": ">=8.0.0-beta.14",
47
47
  "antd": "^6.0.0",
48
48
  "lodash-es": "*",
49
49
  "react": "^19.0.0",