@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
@@ -2,7 +2,7 @@
2
2
 
3
3
  .pro-table {
4
4
  .pro-tooltip .singleLine {
5
- transition: none;
5
+ transition: none;
6
6
  }
7
7
  &.pro-table-draggable-only {
8
8
  .ant-table-tbody {
@@ -24,10 +24,9 @@
24
24
  }
25
25
  }
26
26
 
27
-
28
27
  .@{ant-prefix}-table-content {
29
28
  > table {
30
- .@{ant-prefix}-table-cell-fix-left-last:after{
29
+ .@{ant-prefix}-table-cell-fix-left-last:after {
31
30
  width: 8px;
32
31
  }
33
32
  .@{ant-prefix}-table-summary {
@@ -53,7 +52,7 @@
53
52
  display: flex;
54
53
  justify-content: center;
55
54
  align-items: center;
56
- >button.@{ant-prefix}-table-row-expand-icon{
55
+ > button.@{ant-prefix}-table-row-expand-icon {
57
56
  position: relative;
58
57
  left: auto;
59
58
  top: auto;
@@ -103,7 +102,7 @@
103
102
  display: flex;
104
103
  justify-content: flex-end;
105
104
  margin-right: 8px;
106
- .@{ant-prefix}-btn:hover{
105
+ .@{ant-prefix}-btn:hover {
107
106
  background: #fff !important;
108
107
  }
109
108
  .anticon {
@@ -255,14 +254,14 @@
255
254
  }
256
255
  }
257
256
 
258
- .column-config .right-actions .@{ant-prefix}-btn{
259
- &:hover,
260
- &:visited,
261
- &:focus {
262
- color: #333 !important;
263
- background: #fff !important;
264
- border: 1px solid #d9d9d9 !important;
265
- }
257
+ .column-config .right-actions .@{ant-prefix}-btn {
258
+ &:hover,
259
+ &:visited,
260
+ &:focus {
261
+ color: #333 !important;
262
+ background: #fff !important;
263
+ border: 1px solid #d9d9d9 !important;
264
+ }
266
265
  }
267
266
 
268
267
  .custom-column-btn {
@@ -280,13 +279,12 @@
280
279
  }
281
280
  }
282
281
 
283
-
284
282
  .@{ant-prefix}-table table tbody.@{ant-prefix}-table-tbody,
285
283
  .@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal table tbody.@{ant-prefix}-table-tbody {
286
284
  tr.@{ant-prefix}-table-row.new-cell,
287
285
  tr.@{ant-prefix}-table-row.new-cell:hover {
288
286
  background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
289
- td.@{ant-prefix}-table-cell{
287
+ td.@{ant-prefix}-table-cell {
290
288
  background-color: var(--zaui-contract-bg-add; #d2fff4) !important;
291
289
  border-bottom: 1px solid var(--zaui-form-control-line, #dcdcdc);
292
290
  &.@{ant-prefix}-table-cell-fix-right {
@@ -313,7 +311,7 @@
313
311
  text-overflow: ellipsis;
314
312
  }
315
313
  }
316
- .add-cell{
314
+ .add-cell {
317
315
  display: block;
318
316
  margin-left: -8px;
319
317
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
@@ -602,8 +600,8 @@
602
600
 
603
601
  .@{ant-prefix}-table-summary {
604
602
  background-color: var(--zaui-table-header-bg, #f2f3f5);
605
- td{
606
- padding:calc(4px + var(--zaui-size)* 8px);
603
+ td {
604
+ padding: calc(4px + var(--zaui-size) * 8px);
607
605
  }
608
606
  .@{ant-prefix}-table-cell {
609
607
  font-weight: 500;
@@ -617,7 +615,11 @@
617
615
  > tr.@{ant-prefix}-table-expanded-row {
618
616
  > td {
619
617
  > .pro-table {
620
- margin-inline: calc(var(--ant-control-interactive-size) + 2 * var(--ant-padding) - var(--ant-table-cell-padding-inline)) calc(-1 * var(--ant-table-cell-padding-inline));
618
+ margin-inline: calc(
619
+ var(--ant-control-interactive-size) + 2 * var(--ant-padding) -
620
+ var(--ant-table-cell-padding-inline)
621
+ )
622
+ calc(-1 * var(--ant-table-cell-padding-inline));
621
623
  }
622
624
  }
623
625
  }
@@ -634,10 +636,10 @@
634
636
  }
635
637
  }
636
638
 
637
- .@{ant-prefix}-table{
638
- .original-value-tooltip{
639
+ .@{ant-prefix}-table {
640
+ .original-value-tooltip {
639
641
  position: fixed;
640
- &.@{ant-prefix}-tooltip > @{ant-prefix}-tooltip-content > @{ant-prefix}-tooltip-inner{
642
+ &.@{ant-prefix}-tooltip > @{ant-prefix}-tooltip-content > @{ant-prefix}-tooltip-inner {
641
643
  width: max-content;
642
644
  }
643
645
  }
@@ -1,4 +1,3 @@
1
-
2
1
  .pro-tooltip {
3
2
  cursor: pointer;
4
3
 
@@ -1,119 +1,122 @@
1
1
  @import '../../../../style/variables.less';
2
2
 
3
- .pro-tree-select{
4
- .@{ant-prefix}-select-selector{
5
- // 单选树选择结果框里title不用待后缀
6
- .check-mark-icon{
7
- display: none;
8
- }
3
+ .pro-tree-select {
4
+ .@{ant-prefix}-select-selector {
5
+ // 单选树选择结果框里title不用待后缀
6
+ .check-mark-icon {
7
+ display: none;
9
8
  }
10
- .@{ant-prefix}-select.@{ant-prefix}-select-single.@{ant-prefix}-select-show-arrow:not(.@{ant-prefix}-select-show-search){
11
- &.@{ant-prefix}-select-open{
12
- .@{ant-prefix}-select-arrow{
13
- transition: transform 300ms ease-in-out;
14
- transform: rotate(180deg);
15
- }
16
- }
9
+ }
10
+ .@{ant-prefix}-select.@{ant-prefix}-select-single.@{ant-prefix}-select-show-arrow:not(
11
+ .@{ant-prefix}-select-show-search
12
+ ) {
13
+ &.@{ant-prefix}-select-open {
14
+ .@{ant-prefix}-select-arrow {
15
+ transition: transform 300ms ease-in-out;
16
+ transform: rotate(180deg);
17
+ }
17
18
  }
19
+ }
18
20
  }
19
- .pro-tree-select-drop-down-container{
20
- &.@{ant-prefix}-select-dropdown{
21
- .highlight-search-text{
22
- color: @zaui-brand;
21
+ .pro-tree-select-drop-down-container {
22
+ &.@{ant-prefix}-select-dropdown {
23
+ .highlight-search-text {
24
+ color: @zaui-brand;
25
+ }
26
+ .@{ant-prefix}-select-tree-list-holder-inner {
27
+ position: relative !important;
28
+ }
29
+ &.@{ant-prefix}-tree-select-dropdown {
30
+ width: auto !important;
31
+ padding: 0px;
32
+ }
33
+ &.singal-tree,
34
+ &.checkable-tree {
35
+ .@{ant-prefix}-select-tree {
36
+ .@{ant-prefix}-select-tree-treenode {
37
+ padding-top: var(--zaui-space-size-xs);
38
+ padding-bottom: var(--zaui-space-size-xs);
39
+ }
40
+ }
41
+ .highlight {
42
+ color: red;
43
+ }
44
+ }
45
+ // 隐藏单选下拉树后面勾号
46
+ .@{ant-prefix}-select-tree-node-content-wrapper {
47
+ .check-mark-icon {
48
+ display: none;
49
+ }
50
+ }
51
+ // 单选
52
+ &.signal-tree {
53
+ .@{ant-prefix}-select-tree {
54
+ .@{ant-prefix}-select-tree-treenode {
55
+ position: relative;
56
+ padding-right: 50px;
57
+ padding-left: 7px;
58
+ z-index: 0;
59
+ &:after {
60
+ content: '';
61
+ display: none;
62
+ position: absolute;
63
+ z-index: 0;
64
+ left: 0;
65
+ width: 100%;
66
+ height: 100%;
67
+ background-color: @zaui-brand;
68
+ opacity: 0.1;
69
+ }
70
+ &.@{ant-prefix}-select-tree-treenode-selected:after {
71
+ display: block;
72
+ }
23
73
  }
24
- .@{ant-prefix}-select-tree-list-holder-inner{
25
- position: relative!important;
74
+ .@{ant-prefix}-select-tree-treenode:hover {
75
+ background-color: var(--zaui-disabled-bg);
26
76
  }
27
- &.@{ant-prefix}-tree-select-dropdown{
28
- width: auto!important;
29
- padding: 0px;
77
+ .check-option-text {
78
+ .check-mark-icon {
79
+ position: absolute;
80
+ right: -34px;
81
+ top: 2px;
82
+ display: none;
83
+ color: var(--zaui-list-item-selected-bg);
84
+ }
30
85
  }
31
- &.singal-tree,&.checkable-tree{
32
- .@{ant-prefix}-select-tree{
33
- .@{ant-prefix}-select-tree-treenode{
34
- padding-top: var(--zaui-space-size-xs);
35
- padding-bottom: var(--zaui-space-size-xs);
36
- }
37
- }
38
- .highlight{
39
- color: red;
40
- }
86
+ }
87
+ }
88
+ // 复选
89
+ &.checkable-tree {
90
+ .@{ant-prefix}-select-tree {
91
+ .@{ant-prefix}-select-tree-treenode {
92
+ padding-left: 7px;
41
93
  }
42
- // 隐藏单选下拉树后面勾号
43
- .@{ant-prefix}-select-tree-node-content-wrapper{
44
- .check-mark-icon{
45
- display: none;
46
- }
94
+ .@{ant-prefix}-select-tree-treenode:hover {
95
+ background-color: var(--zaui-disabled-bg);
47
96
  }
48
- // 单选
49
- &.signal-tree{
50
- .@{ant-prefix}-select-tree{
51
- .@{ant-prefix}-select-tree-treenode{
52
- position: relative;
53
- padding-right: 50px;
54
- padding-left: 7px;
55
- z-index: 0;
56
- &:after{
57
- content: '';
58
- display: none;
59
- position: absolute;
60
- z-index: 0;
61
- left: 0;
62
- width: 100%;
63
- height: 100%;
64
- background-color: @zaui-brand;
65
- opacity: 0.1;
66
- }
67
- &.@{ant-prefix}-select-tree-treenode-selected:after{
68
- display: block;
69
- }
70
- }
71
- .@{ant-prefix}-select-tree-treenode:hover{
72
- background-color: var(--zaui-disabled-bg);
73
- }
74
- .check-option-text{
75
- .check-mark-icon{
76
- position: absolute;
77
- right: -34px;
78
- top: 2px;
79
- display: none;
80
- color: var(--zaui-list-item-selected-bg);
81
- }
82
- }
83
- }
97
+ .@{ant-prefix}-select-tree-node-content-wrapper {
98
+ padding-right: var(--zaui-space-size-md);
84
99
  }
85
- // 复选
86
- &.checkable-tree{
87
- .@{ant-prefix}-select-tree{
88
- .@{ant-prefix}-select-tree-treenode{
89
- padding-left: 7px;
90
- }
91
- .@{ant-prefix}-select-tree-treenode:hover{
92
- background-color: var(--zaui-disabled-bg);;
93
- }
94
- .@{ant-prefix}-select-tree-node-content-wrapper{
95
- padding-right: var(--zaui-space-size-md);
96
- }
97
- .@{ant-prefix}-select-tree-node-content-wrapper:hover{
98
- background-color: transparent;
99
- }
100
- .@{ant-prefix}-select-tree-checkbox{
101
- margin-top: var(--zaui-space-size-xs);
102
- align-self: stretch;
103
- }
104
- }
100
+ .@{ant-prefix}-select-tree-node-content-wrapper:hover {
101
+ background-color: transparent;
105
102
  }
106
- // 数据小于10条
107
- &.ten-count-tree-node{
108
- .@{ant-prefix}-select-tree-switcher-noop{
109
- width: var(--zaui-space-size-xs);
110
- }
103
+ .@{ant-prefix}-select-tree-checkbox {
104
+ margin-top: var(--zaui-space-size-xs);
105
+ align-self: stretch;
111
106
  }
107
+ }
108
+ }
109
+ // 数据小于10条
110
+ &.ten-count-tree-node {
111
+ .@{ant-prefix}-select-tree-switcher-noop {
112
+ width: var(--zaui-space-size-xs);
113
+ }
112
114
  }
115
+ }
113
116
  }
114
117
 
115
118
  // ProTreeSelect 更多项数量样式
116
119
  .pro-tree-more-count {
117
120
  color: var(--zaui-primary, #006aff);
118
121
  font-weight: bold;
119
- }
122
+ }