@zat-design/sisyphus-react 3.4.0 → 3.4.1

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 (82) hide show
  1. package/dist/index.esm.css +121 -124
  2. package/es/ProEditTable/components/DndWrapper/index.d.ts +1 -1
  3. package/es/ProEditTable/components/DndWrapper/index.js +5 -5
  4. package/es/ProEditTable/components/RenderField/index.js +1 -1
  5. package/es/ProEditTable/index.js +15 -9
  6. package/es/ProEditTable/style/index.less +36 -55
  7. package/es/ProEditTable/utils/index.js +2 -2
  8. package/es/ProEnum/components/Group.d.ts +7 -0
  9. package/es/ProEnum/components/Group.js +51 -0
  10. package/es/ProEnum/index.js +25 -2
  11. package/es/ProEnum/propsType.d.ts +2 -2
  12. package/es/ProEnum/propsType.js +1 -1
  13. package/es/ProEnum/style/index.less +65 -1
  14. package/es/ProForm/components/base/InputNumber/index.js +2 -2
  15. package/es/ProForm/components/base/Radio/index.js +1 -1
  16. package/es/ProForm/components/base/Select/index.js +0 -13
  17. package/es/ProForm/components/combination/FormList/components/LineFields.js +1 -0
  18. package/es/ProForm/components/combination/ProNumberRange/style/index.less +20 -19
  19. package/es/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
  20. package/es/ProForm/components/render/ConfirmWrapper.js +66 -0
  21. package/es/ProForm/components/render/Render.js +19 -6
  22. package/es/ProForm/components/render/RenderFields.js +9 -9
  23. package/es/ProForm/components/render/propsType.d.ts +5 -2
  24. package/es/ProForm/style/index.less +6 -1
  25. package/es/ProForm/utils/useShouldUpdate.js +1 -1
  26. package/es/ProForm/utils/valueType.js +37 -3
  27. package/es/ProIcon/index.d.ts +0 -1
  28. package/es/ProIcon/index.js +6 -4
  29. package/es/ProIcon/style/index.less +4 -6
  30. package/es/ProIcon/symbolIcon.js +20 -20
  31. package/es/ProLayout/components/ProCollapse/style/index.less +17 -7
  32. package/es/ProLayout/components/ProHeader/style/index.less +109 -101
  33. package/es/ProTable/components/RenderColumn/index.js +1 -2
  34. package/es/ProTable/propsType.d.ts +1 -1
  35. package/es/ProTable/style/index.less +196 -99
  36. package/es/ProTable/utils.js +1 -1
  37. package/es/ProThemeTools/component/PrdTools/index.js +3 -3
  38. package/es/ProThemeTools/index.js +4 -2
  39. package/es/ProTreeModal/components/SortableItem.js +5 -7
  40. package/es/ProTreeModal/style/index.less +0 -6
  41. package/es/style/core/mixins.less +12 -5
  42. package/lib/ProEditTable/components/DndWrapper/index.d.ts +1 -1
  43. package/lib/ProEditTable/components/DndWrapper/index.js +5 -5
  44. package/lib/ProEditTable/components/RenderField/index.js +1 -1
  45. package/lib/ProEditTable/index.js +13 -7
  46. package/lib/ProEditTable/style/index.less +36 -55
  47. package/lib/ProEditTable/utils/index.js +2 -2
  48. package/lib/ProEnum/components/Group.d.ts +7 -0
  49. package/lib/ProEnum/components/Group.js +58 -0
  50. package/lib/ProEnum/index.js +25 -2
  51. package/lib/ProEnum/propsType.d.ts +2 -2
  52. package/lib/ProEnum/propsType.js +1 -1
  53. package/lib/ProEnum/style/index.less +65 -1
  54. package/lib/ProForm/components/base/InputNumber/index.js +2 -2
  55. package/lib/ProForm/components/base/Radio/index.js +1 -1
  56. package/lib/ProForm/components/base/Select/index.js +0 -13
  57. package/lib/ProForm/components/combination/FormList/components/LineFields.js +1 -0
  58. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +20 -19
  59. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
  60. package/lib/ProForm/components/render/ConfirmWrapper.js +72 -0
  61. package/lib/ProForm/components/render/Render.js +19 -6
  62. package/lib/ProForm/components/render/RenderFields.js +9 -9
  63. package/lib/ProForm/components/render/propsType.d.ts +5 -2
  64. package/lib/ProForm/style/index.less +6 -1
  65. package/lib/ProForm/utils/useShouldUpdate.js +1 -1
  66. package/lib/ProForm/utils/valueType.js +37 -3
  67. package/lib/ProIcon/index.d.ts +0 -1
  68. package/lib/ProIcon/index.js +6 -4
  69. package/lib/ProIcon/style/index.less +4 -6
  70. package/lib/ProIcon/symbolIcon.js +20 -20
  71. package/lib/ProLayout/components/ProCollapse/style/index.less +17 -7
  72. package/lib/ProLayout/components/ProHeader/style/index.less +109 -101
  73. package/lib/ProTable/components/RenderColumn/index.js +1 -2
  74. package/lib/ProTable/propsType.d.ts +1 -1
  75. package/lib/ProTable/style/index.less +196 -99
  76. package/lib/ProTable/utils.js +1 -1
  77. package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
  78. package/lib/ProThemeTools/index.js +3 -1
  79. package/lib/ProTreeModal/components/SortableItem.js +5 -7
  80. package/lib/ProTreeModal/style/index.less +0 -6
  81. package/lib/style/core/mixins.less +12 -5
  82. package/package.json +1 -1
@@ -3,8 +3,8 @@
3
3
  @import '../components/ProBackBtn/style/index';
4
4
 
5
5
  .pro-header {
6
+ padding: 16px 0 0 0 !important;
6
7
  background-color: var(--zaui-base-bg, #ffffff);
7
- padding : 16px 0 0 0 !important;
8
8
 
9
9
  &.pro-header-no-back.pro-header-has-describe {
10
10
  .pro-header-top {
@@ -21,45 +21,47 @@
21
21
  &.pro-header-left-space {
22
22
  margin-left: 0 !important;
23
23
  }
24
-
25
24
  }
26
25
  }
27
26
 
28
27
  &.pro-header-no-describe {
29
- box-shadow : none;
30
28
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
29
+ box-shadow: none;
31
30
 
32
31
  .pro-header-title,
33
32
  .pro-header-top {
33
+ margin: 0;
34
34
  padding: 0;
35
- margin : 0;
36
35
  }
37
36
  }
38
37
 
39
38
  &.pro-header-fixed.pro-header-no-describe {
40
39
  .pro-header-top {
41
- padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
40
+ padding-bottom: calc(
41
+ var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) *
42
+ var(--zaui-size; 1)
43
+ );
42
44
  }
43
45
  }
44
46
 
45
47
  .pro-header-describe {
46
48
  a {
47
- color: var(--zaui-link, #006AFF);
49
+ color: var(--zaui-link, #006aff);
48
50
  }
49
51
  }
50
52
 
51
53
  .pro-header-copy {
54
+ display: flex;
55
+ align-items: center;
56
+ width: 16px;
52
57
  margin-bottom: 0;
53
- width : 14px;
54
- display : flex;
55
- align-items : center;
56
58
 
57
59
  .@{ant-prefix}-typography-copy-success {
58
60
  svg {
59
- width : 14px;
60
- height : 14px;
61
- fill : var(--zaui-success, #00AE4D);
62
61
  display: inline-block;
62
+ width: 16px;
63
+ height: 16px;
64
+ fill: var(--zaui-success, #00ae4d);
63
65
  }
64
66
  }
65
67
 
@@ -69,36 +71,36 @@
69
71
  }
70
72
 
71
73
  svg {
72
- width : 14px;
73
- height : 14px;
74
- fill : #3F3F3F;
75
74
  display: inline-block;
75
+ width: 16px;
76
+ height: 16px;
77
+ fill: var(--zaui-brand, #006aff);
76
78
  }
77
79
  }
78
80
  }
79
81
 
80
82
  .pro-header-tag {
81
- background : var(--ant-primary-1, #e6f4ff);
82
- color : var(--zaui-brand, #006AFF);
83
- padding : 4px 8px;
83
+ display: inline-block;
84
+ padding: 4px 8px;
85
+ color: var(--zaui-brand, #006aff);
86
+ font-weight: normal;
87
+ font-size: var(--zaui-font-size-sm, 12px);
88
+ line-height: 16px;
89
+ white-space: pre;
90
+ background: var(--ant-primary-1, #e6f4ff);
84
91
  border-radius: var(--zaui-border-radius-card, 2px);
85
- font-size : var(--zaui-font-size-sm, 12px);
86
- font-weight : normal;
87
- line-height : 16px;
88
- display : inline-block;
89
- white-space : pre;
90
92
  }
91
93
 
92
94
  .pro-header-title {
95
+ padding: 0 var(--zaui-space-size-md, 16px);
93
96
  font-weight: 500;
94
- font-size : var(--zaui-font-size-xl, 18px);
95
- padding : 0 var(--zaui-space-size-md, 16px);
97
+ font-size: var(--zaui-font-size-xl, 18px);
96
98
  line-height: 22px;
97
99
  }
98
100
 
99
101
  &.pro-header-fixed {
100
- position : sticky;
101
- z-index : 101;
102
+ position: sticky;
103
+ z-index: 101;
102
104
  box-shadow: 0px 1px 2px 0px rgba(0, 55, 93, 0.1);
103
105
  }
104
106
 
@@ -108,33 +110,33 @@
108
110
 
109
111
  .@{ant-prefix}-breadcrumb {
110
112
  li {
113
+ color: #1d2129;
111
114
  font-weight: 500;
112
- color : #1D2129;
113
115
  }
114
116
 
115
117
  .@{ant-prefix}-breadcrumb-link {
118
+ display: inline-flex;
116
119
  font-size: var(--zaui-font-size-xl, 18px);
117
- display : inline-flex;
118
120
  }
119
121
 
120
122
  .@{ant-prefix}-breadcrumb-separator {
123
+ margin: 0 var(--zaui-space-size-xs, 4px);
124
+ color: #1d2129;
121
125
  font-weight: 500;
122
- color : #1D2129;
123
- font-size : var(--zaui-font-size-xl, 18px);
124
- margin : 0 var(--zaui-space-size-xs, 4px);
126
+ font-size: var(--zaui-font-size-xl, 18px);
125
127
  }
126
128
  }
127
129
 
128
130
  .pro-header-top {
129
- display : flex;
131
+ display: flex;
132
+ align-items: center;
130
133
  justify-content: space-between;
131
- align-items : center;
132
- margin-bottom : calc(var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1));
133
- padding : 0 var(--zaui-space-size-md, 16px);
134
+ margin-bottom: calc(var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1));
135
+ padding: 0 var(--zaui-space-size-md, 16px);
134
136
 
135
137
  .pro-header-left {
136
- display : flex;
137
- align-items : center;
138
+ display: flex;
139
+ align-items: center;
138
140
  margin-right: var(--zaui-space-size-md, 16px);
139
141
 
140
142
  &.pro-header-left-space {
@@ -142,26 +144,26 @@
142
144
  }
143
145
 
144
146
  ul {
145
- display : flex;
147
+ display: flex;
146
148
  align-items: center;
147
149
 
148
150
  li {
149
- color : #1D2129;
150
- font-size : var(--zaui-font-size-xl, 18px);
151
+ display: flex;
152
+ color: #1d2129;
151
153
  font-weight: 500;
152
- display : flex;
154
+ font-size: var(--zaui-font-size-xl, 18px);
153
155
 
154
156
  .breadcrumb-value {
155
157
  display: inline-block;
156
158
  }
157
159
 
158
- &>span {
160
+ & > span {
159
161
  display: flex;
160
162
  }
161
163
 
162
164
  .omit {
163
- overflow : hidden;
164
- white-space : nowrap;
165
+ overflow: hidden;
166
+ white-space: nowrap;
165
167
  text-overflow: ellipsis;
166
168
  }
167
169
 
@@ -170,19 +172,19 @@
170
172
  }
171
173
 
172
174
  .@{ant-prefix}-typography {
173
- display : flex;
175
+ display: flex;
174
176
  margin-bottom: 0;
175
177
  }
176
178
 
177
179
  &.version {
178
- background : var(--ant-primary-1, #e6f4ff);
180
+ height: 24px;
181
+ padding: 0 var(--zaui-space-size-sm, 8px);
182
+ color: var(--zaui-brand, #006aff);
183
+ font-size: var(--zaui-font-size-sm, 12px);
184
+ font-style: initial;
185
+ line-height: 24px;
186
+ background: var(--ant-primary-1, #e6f4ff);
179
187
  border-radius: var(--zaui-border-radius, 4px);
180
- color : var(--zaui-brand, #006AFF);
181
- font-style : initial;
182
- padding : 0 var(--zaui-space-size-sm, 8px);
183
- font-size : var(--zaui-font-size-sm, 12px);
184
- height : 24px;
185
- line-height : 24px;
186
188
  }
187
189
 
188
190
  &.hidden {
@@ -190,7 +192,6 @@
190
192
  }
191
193
  }
192
194
  }
193
-
194
195
  }
195
196
 
196
197
  .pro-header-right {
@@ -210,14 +211,13 @@
210
211
  margin: 0;
211
212
  }
212
213
  }
213
-
214
214
  }
215
215
 
216
216
  .pro-header-nav {
217
- display : flex;
218
- background: #F7F9FC;
219
- border-top: 1px solid #F2F2F2;
220
- position : relative;
217
+ position: relative;
218
+ display: flex;
219
+ background: #f7f9fc;
220
+ border-top: 1px solid #f2f2f2;
221
221
 
222
222
  &.pro-header-nav-open {
223
223
  .pro-header-fold {
@@ -225,63 +225,68 @@
225
225
  transform: rotate(180deg);
226
226
  }
227
227
  }
228
-
229
228
  }
230
229
 
231
230
  &.pro-header-nav-hidden {
232
231
  padding: 0;
233
- border : none;
232
+ border: none;
234
233
 
235
234
  ul {
236
- height : 0;
237
- overflow : hidden;
235
+ height: 0;
236
+ overflow: hidden;
238
237
  }
239
238
  }
240
239
 
241
240
  .pro-header-fold {
242
- position : absolute;
243
- bottom : -13px;
244
- left : 50%;
241
+ position: absolute;
242
+ bottom: -13px;
243
+ left: 50%;
245
244
  transform: translateX(-50%);
246
- cursor : pointer;
245
+ cursor: pointer;
247
246
 
248
247
  .pro-header-fold-bg {
249
- background : #fff;
250
- position : relative;
251
- z-index : 2;
252
- height : 26px;
253
- transform : rotate(0deg);
248
+ position: relative;
249
+ z-index: 2;
250
+ height: 26px;
251
+ background: #fff;
252
+ transform: rotate(0deg);
254
253
  transform-origin: center;
255
254
  }
256
255
 
257
256
  &::before {
258
- content : '';
259
- z-index : 1;
260
- position : absolute;
261
- bottom : 13px;
262
- left : 50%;
263
- transform : translateX(-50%);
264
- width : 140px;
265
- height : 1px;
266
- background: linear-gradient(90deg, rgba(238, 238, 238, 0) 0%, var(--zaui-brand, #006AFF) 37%, var(--zaui-brand, #006AFF)57%, rgba(216, 216, 216, 0) 100%);
257
+ position: absolute;
258
+ bottom: 13px;
259
+ left: 50%;
260
+ z-index: 1;
261
+ width: 140px;
262
+ height: 1px;
263
+ background: linear-gradient(
264
+ 90deg,
265
+ rgba(238, 238, 238, 0) 0%,
266
+ var(--zaui-brand, #006aff) 37%,
267
+ var(--zaui-brand, #006aff) 57%,
268
+ rgba(216, 216, 216, 0) 100%
269
+ );
270
+ transform: translateX(-50%);
271
+ content: '';
267
272
  }
268
273
 
269
274
  svg {
270
- fill: var(--zaui-brand, #006AFF);
275
+ fill: var(--zaui-brand, #006aff);
271
276
  }
272
277
  }
273
278
 
274
279
  ul {
275
- display : flex;
276
- flex-wrap : wrap;
277
- padding : 0 16px;
280
+ display: flex;
281
+ flex-wrap: wrap;
282
+ height: 60px;
283
+ padding: 0 16px;
284
+ overflow: hidden;
278
285
  transition: height 0.2s ease-in-out;
279
- height : 60px;
280
- overflow : hidden;
281
286
 
282
287
  li {
283
- margin-right : 52px;
284
- margin-top : 4px;
288
+ margin-top: 4px;
289
+ margin-right: 52px;
285
290
  margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
286
291
 
287
292
  &:last-child {
@@ -290,20 +295,20 @@
290
295
 
291
296
  span {
292
297
  font-weight: 400;
293
- font-size : var(--zaui-font-size, 14px);
298
+ font-size: var(--zaui-font-size, 14px);
294
299
 
295
300
  &:first-child {
296
- display : block;
301
+ display: block;
297
302
  font-weight: 500;
298
303
  }
299
304
  }
300
305
 
301
306
  .describe-value {
302
- color : var(--zaui-text, #343434);
307
+ color: var(--zaui-text, #343434);
303
308
  font-weight: 400;
304
309
 
305
- &>* {
306
- color : var(--zaui-text, #343434);
310
+ & > * {
311
+ color: var(--zaui-text, #343434);
307
312
  font-weight: 400 !important;
308
313
  }
309
314
  }
@@ -318,11 +323,14 @@
318
323
  }
319
324
 
320
325
  .pro-header-describe {
321
- display : flex;
322
- flex-wrap : wrap;
323
- font-size : var(--zaui-font-size, 14px);
324
- padding : 0 var(--zaui-space-size-md, 16px);
325
- padding-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) * var(--zaui-size; 1));
326
+ display: flex;
327
+ flex-wrap: wrap;
328
+ padding: 0 var(--zaui-space-size-md, 16px);
329
+ padding-bottom: calc(
330
+ var(--zaui-space-size-md; 16px) * var(--zaui-size; 1) - var(--zaui-space-size-xs; 4px) *
331
+ var(--zaui-size; 1)
332
+ );
333
+ font-size: var(--zaui-font-size, 14px);
326
334
 
327
335
  li {
328
336
  margin-left: var(--zaui-space-card, 32px);
@@ -340,16 +348,16 @@
340
348
  }
341
349
 
342
350
  span {
351
+ color: #0a0a0a;
343
352
  font-weight: 400;
344
- color : #0A0A0A;
345
353
 
346
354
  &:first-child {
347
355
  margin-right: 12px;
348
356
  }
349
357
 
350
358
  &:last-child {
359
+ display: inline-grid;
351
360
  font-weight: 600;
352
- display : inline-grid;
353
361
 
354
362
  .pro-header-tag {
355
363
  margin-left: 4px;
@@ -80,8 +80,7 @@ var RenderColumn = function RenderColumn(props) {
80
80
  width: width
81
81
  },
82
82
  ellipsis: {
83
- tooltip: true,
84
- onEllipsis: function onEllipsis() {}
83
+ tooltip: true
85
84
  },
86
85
  children: node
87
86
  }) : '-';
@@ -24,7 +24,7 @@ export interface ProTableColumn extends Omit<ColumnType<any>, 'dataIndex'> {
24
24
  valueType?: ProTableValueType;
25
25
  format?: string;
26
26
  precision?: number;
27
- code?: string | string[] | (() => string);
27
+ code?: string | string[] | ((text: any, record: any) => string);
28
28
  copyable?: boolean;
29
29
  originalTip?: boolean;
30
30
  prefix?: string | ReactNode | ((value: any, record?: any, index?: number) => any);