@zat-design/sisyphus-react 4.2.0-beta.3 → 4.2.0-beta.5

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.
Files changed (77) hide show
  1. package/README.md +16 -5
  2. package/dist/index.esm.css +1 -1
  3. package/dist/less.esm.css +1 -1
  4. package/es/ProAction/index.less +0 -1
  5. package/es/ProDownload/style/index.less +0 -1
  6. package/es/ProDrawerForm/style/index.less +2 -1
  7. package/es/ProEditLabel/style/index.less +0 -1
  8. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  9. package/es/ProEditTable/style/index.less +150 -114
  10. package/es/ProEditTable/utils/config.d.ts +2 -2
  11. package/es/ProEditTable/utils/tools.d.ts +1 -1
  12. package/es/ProEditTable/utils/useEditTableError.d.ts +1 -1
  13. package/es/ProEnum/hooks/useEnum.js +22 -71
  14. package/es/ProEnum/hooks/useEnumRequest.js +9 -10
  15. package/es/ProEnum/hooks/useFrequentEnumRequest.js +2 -1
  16. package/es/ProEnum/index.d.ts +2 -0
  17. package/es/ProEnum/index.js +4 -2
  18. package/es/ProEnum/style/index.less +0 -1
  19. package/es/ProEnum/utils/frequentEnum.d.ts +1 -2
  20. package/es/ProEnum/utils/frequentEnum.js +2 -2
  21. package/es/ProEnum/utils/getEnum.d.ts +47 -0
  22. package/es/ProEnum/utils/getEnum.js +151 -0
  23. package/es/ProEnum/utils/index.d.ts +13 -3
  24. package/es/ProEnum/utils/index.js +44 -10
  25. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +4 -5
  26. package/es/ProForm/components/base/TimePicker/style/index.less +0 -1
  27. package/es/ProForm/components/combination/Container/style/index.less +18 -19
  28. package/es/ProForm/components/combination/FormList/style/index.less +4 -4
  29. package/es/ProForm/components/combination/Group/style/index.less +43 -50
  30. package/es/ProForm/components/combination/Group/utils/index.d.ts +20 -20
  31. package/es/ProForm/components/combination/ProModalSelect/style/index.less +20 -16
  32. package/es/ProForm/components/combination/ProNumberRange/style/index.less +3 -3
  33. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +1 -1
  34. package/es/ProForm/style/index.less +39 -44
  35. package/es/ProLayout/components/Layout/Header/style/index.less +224 -222
  36. package/es/ProLayout/components/Layout/Icon/style/index.less +1 -1
  37. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +4 -1
  38. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +9 -7
  39. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +3 -5
  40. package/es/ProLayout/components/Layout/Menu/style/index.less +9 -5
  41. package/es/ProLayout/components/Layout/index.less +4 -4
  42. package/es/ProLayout/components/ProCollapse/PropTypes.d.ts +45 -45
  43. package/es/ProLayout/components/ProCollapse/style/index.less +30 -32
  44. package/es/ProLayout/components/ProFooter/style/index.less +0 -1
  45. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +31 -31
  46. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +7 -7
  47. package/es/ProLayout/components/ProHeader/style/index.less +8 -9
  48. package/es/ProLayout/components/TabsManager/style/index.less +9 -11
  49. package/es/ProLayout/style/index.less +197 -201
  50. package/es/ProLayout/utils/index.d.ts +1 -1
  51. package/es/ProSelect/style/index.less +0 -1
  52. package/es/ProSelect/utils/index.d.ts +1 -1
  53. package/es/ProStep/components/Item/index.js +1 -1
  54. package/es/ProStep/components/LazyLoad/index.d.ts +19 -0
  55. package/es/ProStep/components/LazyLoad/index.js +55 -0
  56. package/es/ProStep/components/Listener/index.js +1 -1
  57. package/es/ProStep/index.d.ts +1 -1
  58. package/es/ProStep/propsType.d.ts +1 -1
  59. package/es/ProStep/style/index.less +7 -9
  60. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +1 -1
  61. package/es/ProTable/propsType.d.ts +1 -1
  62. package/es/ProTable/style/index.less +24 -22
  63. package/es/ProTooltip/style/index.less +0 -1
  64. package/es/ProTree/components/ProTreeSelect/style/index.less +102 -99
  65. package/es/ProTree/style/index.less +108 -109
  66. package/es/ProTreeModal/style/index.less +10 -9
  67. package/es/ProUpload/style/index.less +20 -22
  68. package/es/global.less +1 -1
  69. package/es/index.d.ts +2 -2
  70. package/es/style/core/normalize.less +11 -2
  71. package/es/style/index.less +2 -2
  72. package/es/style/less.less +2 -2
  73. package/es/style/theme/antd.less +19 -23
  74. package/es/style/theme/base.less +81 -81
  75. package/es/style/theme/tokens.less +13 -14
  76. package/es/style/variables.less +1 -1
  77. package/package.json +37 -20
package/README.md CHANGED
@@ -12,17 +12,28 @@
12
12
  - ✅ **React 19.0.0+**(最新版本)
13
13
 
14
14
  **推荐版本**:
15
+
15
16
  - 生产环境:React 18.3.1 或 React 19.x
16
17
  - 开发环境:React 19.x(本地验证最新特性)
17
18
 
18
19
  **peerDependencies**:
20
+
19
21
  ```json
20
22
  {
21
23
  "react": "^18.0.0 || ^19.0.0",
22
- "react-dom": "^18.0.0 || ^19.0.0"
24
+ "react-dom": "^18.0.0 || ^19.0.0",
25
+ "ahooks": ">=3.9.5"
23
26
  }
24
27
  ```
25
28
 
29
+ > **注意(v4.2.0+)**:`ahooks` 已从 `dependencies` 移至 `peerDependencies`,需要在消费者项目中单独安装:
30
+ >
31
+ > ```bash
32
+ > npm install ahooks
33
+ > # 或
34
+ > yarn add ahooks
35
+ > ```
36
+
26
37
  ### 安装
27
38
 
28
39
  npm 或 yarn 安装
@@ -59,7 +70,7 @@ import { ProForm } from '@zat-design/sisyphus-react';
59
70
  libraryDirectory: 'es',
60
71
  style: false,
61
72
  },
62
- ]
73
+ ];
63
74
  ```
64
75
 
65
76
  在 umi 框架下同时配置 antd 按需加载时,需要配置别名:
@@ -82,9 +93,9 @@ extraBabelPlugins: [
82
93
  libraryDirectory: 'es',
83
94
  style: false,
84
95
  },
85
- '@zat-design/sisyphus-react'
96
+ '@zat-design/sisyphus-react',
86
97
  ],
87
- ]
98
+ ];
88
99
  ```
89
100
 
90
101
  ### 使用示例
@@ -139,8 +150,8 @@ yarn release # 正式版
139
150
  yarn release:beta # beta 版本
140
151
  ```
141
152
 
142
-
143
153
  2. 执行发布(使用域账号登录):
154
+
144
155
  ```bash
145
156
  npm publish
146
157
  ```