@zat-design/sisyphus-react 3.2.2-beta.1 → 3.2.2-beta.11

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 (141) hide show
  1. package/README.md +7 -0
  2. package/dist/index.esm.css +47 -5
  3. package/es/ProAction/index.less +3 -0
  4. package/es/ProDownload/index.js +9 -6
  5. package/es/ProDownload/style/index.less +5 -2
  6. package/es/ProDrawerForm/style/index.less +17 -14
  7. package/es/ProEditLabel/style/index.less +12 -9
  8. package/es/ProEditTable/index.js +8 -4
  9. package/es/ProEditTable/style/index.less +50 -42
  10. package/es/ProEditTable/utils/config.d.ts +1 -1
  11. package/es/ProEditTable/utils/config.js +3 -3
  12. package/es/ProEnum/style/index.less +3 -0
  13. package/es/ProForm/components/base/DatePicker/index.js +0 -3
  14. package/es/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  15. package/es/ProForm/components/base/TextArea/index.less +4 -3
  16. package/es/ProForm/components/base/TimePicker/style/index.less +4 -1
  17. package/es/ProForm/components/combination/Container/style/index.less +3 -3
  18. package/es/ProForm/components/combination/FormList/style/index.less +3 -3
  19. package/es/ProForm/components/combination/Group/style/index.less +15 -15
  20. package/es/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  21. package/es/ProForm/components/combination/ProCombination/style/index.less +2 -2
  22. package/es/ProForm/components/combination/ProModalSelect/style/index.less +29 -11
  23. package/es/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  24. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  25. package/es/ProForm/components/render/RenderFields.js +3 -3
  26. package/es/ProForm/style/index.less +46 -44
  27. package/es/ProIcon/style/index.less +4 -1
  28. package/es/ProLayout/components/Layout/Header/style/index.less +1 -1
  29. package/es/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  30. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  31. package/es/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  32. package/es/ProLayout/components/ProCollapse/style/index.less +24 -24
  33. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  34. package/es/ProLayout/components/ProHeader/style/index.less +10 -11
  35. package/es/ProLayout/style/index.less +10 -7
  36. package/es/ProSelect/index.less +3 -0
  37. package/es/ProStep/style/index.less +3 -0
  38. package/es/ProTable/index.js +3 -3
  39. package/es/ProTable/style/index.less +68 -54
  40. package/es/ProTabs/style/index.less +14 -11
  41. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  42. package/es/ProThemeTools/component/PrdTools/index.js +7 -6
  43. package/es/ProThemeTools/component/PrdTools/style/index.less +6 -6
  44. package/es/ProThemeTools/index.d.ts +1 -1
  45. package/es/ProThemeTools/index.js +7 -2
  46. package/es/ProThemeTools/propsType.d.ts +4 -0
  47. package/es/ProThemeTools/style/index.less +6 -3
  48. package/es/ProThemeTools/utils/index.d.ts +1 -1
  49. package/es/ProThemeTools/utils/index.js +2 -1
  50. package/es/ProTooltip/style/index.less +3 -0
  51. package/es/ProTree/components/CloseIcon.js +2 -4
  52. package/es/ProTree/style/index.less +29 -26
  53. package/es/ProTreeModal/components/CloseIcon.js +2 -4
  54. package/es/ProTreeModal/components/Trigger.d.ts +3 -0
  55. package/es/ProTreeModal/components/Trigger.js +79 -19
  56. package/es/ProTreeModal/index.js +24 -3
  57. package/es/ProTreeModal/propsType.d.ts +5 -2
  58. package/es/ProTreeModal/style/index.less +11 -8
  59. package/es/ProTreeSelect/style/index.less +25 -22
  60. package/es/ProUpload/components/DragRender.js +7 -4
  61. package/es/ProUpload/components/ImageRender.js +5 -1
  62. package/es/ProUpload/index.js +11 -7
  63. package/es/ProUpload/style/index.less +13 -4
  64. package/es/ProViewer/index.js +3 -1
  65. package/es/ProViewer/style/index.less +6 -3
  66. package/es/locale/en_US.d.ts +3 -0
  67. package/es/locale/en_US.js +3 -0
  68. package/es/locale/zh_CN.d.ts +3 -0
  69. package/es/locale/zh_CN.js +4 -1
  70. package/es/style/core/compatible.less +6 -6
  71. package/es/style/theme/antd.less +172 -157
  72. package/lib/ProAction/index.less +3 -0
  73. package/lib/ProDownload/index.js +9 -6
  74. package/lib/ProDownload/style/index.less +5 -2
  75. package/lib/ProDrawerForm/style/index.less +17 -14
  76. package/lib/ProEditLabel/style/index.less +12 -9
  77. package/lib/ProEditTable/index.js +6 -2
  78. package/lib/ProEditTable/style/index.less +50 -42
  79. package/lib/ProEditTable/utils/config.d.ts +1 -1
  80. package/lib/ProEditTable/utils/config.js +3 -3
  81. package/lib/ProEnum/style/index.less +3 -0
  82. package/lib/ProForm/components/base/DatePicker/index.js +0 -3
  83. package/lib/ProForm/components/base/SwitchCheckbox/style/index.less +3 -0
  84. package/lib/ProForm/components/base/TextArea/index.less +4 -3
  85. package/lib/ProForm/components/base/TimePicker/style/index.less +4 -1
  86. package/lib/ProForm/components/combination/Container/style/index.less +3 -3
  87. package/lib/ProForm/components/combination/FormList/style/index.less +3 -3
  88. package/lib/ProForm/components/combination/Group/style/index.less +15 -15
  89. package/lib/ProForm/components/combination/ProAddressBar/style/index.less +3 -3
  90. package/lib/ProForm/components/combination/ProCombination/style/index.less +2 -2
  91. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +29 -11
  92. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +10 -10
  93. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +6 -6
  94. package/lib/ProForm/components/render/RenderFields.js +3 -3
  95. package/lib/ProForm/style/index.less +46 -44
  96. package/lib/ProIcon/style/index.less +4 -1
  97. package/lib/ProLayout/components/Layout/Header/style/index.less +1 -1
  98. package/lib/ProLayout/components/Layout/Menu/FoldMenu/style/index.less +7 -7
  99. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +28 -28
  100. package/lib/ProLayout/components/Layout/Menu/SideMenu/style/index.less +11 -11
  101. package/lib/ProLayout/components/ProCollapse/style/index.less +24 -24
  102. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +1 -1
  103. package/lib/ProLayout/components/ProHeader/style/index.less +10 -11
  104. package/lib/ProLayout/style/index.less +10 -7
  105. package/lib/ProSelect/index.less +3 -0
  106. package/lib/ProStep/style/index.less +3 -0
  107. package/lib/ProTable/index.js +3 -3
  108. package/lib/ProTable/style/index.less +68 -54
  109. package/lib/ProTabs/style/index.less +14 -11
  110. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  111. package/lib/ProThemeTools/component/PrdTools/index.js +7 -6
  112. package/lib/ProThemeTools/component/PrdTools/style/index.less +6 -6
  113. package/lib/ProThemeTools/index.d.ts +1 -1
  114. package/lib/ProThemeTools/index.js +7 -2
  115. package/lib/ProThemeTools/propsType.d.ts +4 -0
  116. package/lib/ProThemeTools/style/index.less +6 -3
  117. package/lib/ProThemeTools/utils/index.d.ts +1 -1
  118. package/lib/ProThemeTools/utils/index.js +2 -1
  119. package/lib/ProTooltip/style/index.less +3 -0
  120. package/lib/ProTree/components/CloseIcon.js +2 -4
  121. package/lib/ProTree/style/index.less +29 -26
  122. package/lib/ProTreeModal/components/CloseIcon.js +2 -4
  123. package/lib/ProTreeModal/components/Trigger.d.ts +3 -0
  124. package/lib/ProTreeModal/components/Trigger.js +74 -18
  125. package/lib/ProTreeModal/index.js +24 -3
  126. package/lib/ProTreeModal/propsType.d.ts +5 -2
  127. package/lib/ProTreeModal/style/index.less +11 -8
  128. package/lib/ProTreeSelect/style/index.less +25 -22
  129. package/lib/ProUpload/components/DragRender.js +7 -4
  130. package/lib/ProUpload/components/ImageRender.js +5 -1
  131. package/lib/ProUpload/index.js +11 -7
  132. package/lib/ProUpload/style/index.less +13 -4
  133. package/lib/ProViewer/index.js +4 -3
  134. package/lib/ProViewer/style/index.less +6 -3
  135. package/lib/locale/en_US.d.ts +3 -0
  136. package/lib/locale/en_US.js +3 -0
  137. package/lib/locale/zh_CN.d.ts +3 -0
  138. package/lib/locale/zh_CN.js +4 -1
  139. package/lib/style/core/compatible.less +6 -6
  140. package/lib/style/theme/antd.less +172 -157
  141. package/package.json +1 -1
@@ -1,3 +1,6 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-upload {
2
5
  // display: inline-flex;
3
6
 
@@ -8,7 +11,7 @@
8
11
  border-radius: var(--zaui-border-radius, 4px);
9
12
  padding : var(--zaui-space-size-sm, 8px);
10
13
 
11
- .ant-upload.ant-upload-drag {
14
+ .@{ant-prefix}-upload.@{ant-prefix}-upload-drag {
12
15
  background-color: var(--zaui-base-bg, #fff);
13
16
  }
14
17
 
@@ -158,8 +161,8 @@
158
161
  position: relative;
159
162
  display : inline-flex;
160
163
 
161
- .ant-upload-list-picture-card-container,
162
- .ant-upload-select-picture-card {
164
+ .@{ant-prefix}-upload-list-picture-card-container,
165
+ .@{ant-prefix}-upload-select-picture-card {
163
166
  width : 126px;
164
167
  height: 126px;
165
168
  }
@@ -271,7 +274,7 @@
271
274
  }
272
275
 
273
276
  .pro-upload-image {
274
- .ant-space-item {
277
+ .@{ant-prefix}-space-item {
275
278
  display: inline-flex;
276
279
  }
277
280
 
@@ -319,3 +322,9 @@
319
322
  align-items : center;
320
323
  justify-content: center;
321
324
  }
325
+
326
+ .proupload-modal-preview {
327
+ .ant-modal {
328
+ width: 600px;
329
+ }
330
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
@@ -14,8 +14,9 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
  var _ahooks = require("ahooks");
15
15
  var _antd = require("antd");
16
16
  var _react = _interopRequireWildcard(require("react"));
17
+ var _locale = _interopRequireDefault(require("../locale"));
18
+ var _locale$ProViewer;
17
19
  /* eslint-disable jsx-a11y/iframe-has-title */
18
-
19
20
  // 用于解析word | excel
20
21
  var officeApp = 'https://view.officeapps.live.com/op/view.aspx?src=';
21
22
  // 文件MIME类型
@@ -203,7 +204,7 @@ ProViewer.defaultProps = {
203
204
  width: '1200px',
204
205
  height: '650px',
205
206
  centered: true,
206
- title: '预览',
207
+ title: _locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProViewer = _locale.default.ProViewer) === null || _locale$ProViewer === void 0 ? void 0 : _locale$ProViewer.preview,
207
208
  footer: null,
208
209
  bodyStyle: {
209
210
  padding: 0
@@ -1,7 +1,10 @@
1
+ @root-entry-name: 'default';
2
+ @import (reference) '~antd/es/style/themes/index.less';
3
+
1
4
  .pro-viewer {
2
- .ant-image {
3
- .ant-image-img,
4
- .ant-image-mask-info {
5
+ .@{ant-prefix}-image {
6
+ .@{ant-prefix}-image-img,
7
+ .@{ant-prefix}-image-mask-info {
5
8
  display: none;
6
9
  }
7
10
  }
@@ -148,5 +148,8 @@ declare const _default: {
148
148
  tableStripe: string;
149
149
  reset: string;
150
150
  };
151
+ ProViewer: {
152
+ preview: string;
153
+ };
151
154
  };
152
155
  export default _default;
@@ -153,5 +153,8 @@ var _default = exports.default = {
153
153
  tableBorder: 'Table border',
154
154
  tableStripe: 'Table zebra',
155
155
  reset: 'Reset'
156
+ },
157
+ ProViewer: {
158
+ preview: 'preview'
156
159
  }
157
160
  };
@@ -147,5 +147,8 @@ declare const _default: {
147
147
  tableStripe: string;
148
148
  reset: string;
149
149
  };
150
+ ProViewer: {
151
+ preview: string;
152
+ };
150
153
  };
151
154
  export default _default;
@@ -73,7 +73,7 @@ var _default = exports.default = {
73
73
  buttonText: '上传文件',
74
74
  draggerSelect: '重新选择',
75
75
  draggerDelete: '删除',
76
- draggerTips: '将文件拖拽到此处,或点击上传',
76
+ draggerTips: '将文件拖拽到此处,或',
77
77
  draggerBtnTxt: '点击上传',
78
78
  draggerFileExt: '支持扩展名',
79
79
  draggerLimitless: '无限制',
@@ -152,5 +152,8 @@ var _default = exports.default = {
152
152
  tableBorder: '表格边框',
153
153
  tableStripe: '表格斑马纹',
154
154
  reset: '重置'
155
+ },
156
+ ProViewer: {
157
+ preview: '预览'
155
158
  }
156
159
  };
@@ -1,27 +1,27 @@
1
- .ant-tabs-nav-list {
1
+ .@{ant-prefix}-tabs-nav-list {
2
2
  overflow: auto;
3
3
  }
4
4
 
5
5
  // 兼容IE11
6
6
  @media screen and(-ms-high-contrast: active),
7
7
  (-ms-high-contrast: none) {
8
- .ant-form-item-control-input-content {
8
+ .@{ant-prefix}-form-item-control-input-content {
9
9
  overflow: hidden;
10
10
  }
11
11
 
12
12
  // 解决popover表单压缩
13
- .ant-popover {
14
- .ant-form-item-control {
13
+ .@{ant-prefix}-popover {
14
+ .@{ant-prefix}-form-item-control {
15
15
  flex: auto;
16
16
  }
17
17
  }
18
18
 
19
- .ant-tabs-tab {
19
+ .@{ant-prefix}-tabs-tab {
20
20
  display: inline-block;
21
21
  }
22
22
 
23
23
  /* IE兼容 */
24
- .ant-space {
24
+ .@{ant-prefix}-space {
25
25
  width: 100% !important;
26
26
  }
27
27