@zat-design/sisyphus-react 3.3.3 → 3.4.0

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 (69) hide show
  1. package/dist/index.esm.css +32 -5
  2. package/es/ProConfigProvider/index.d.ts +10 -2
  3. package/es/ProConfigProvider/index.js +13 -7
  4. package/es/ProEditLabel/index.js +2 -3
  5. package/es/ProEditTable/components/ActionButton/index.js +6 -6
  6. package/es/ProEditTable/components/RenderField/index.js +5 -5
  7. package/es/ProEditTable/style/index.less +0 -1
  8. package/es/ProEditTable/utils/index.js +2 -4
  9. package/es/ProForm/components/base/Switch/index.js +0 -1
  10. package/es/ProForm/components/base/TextArea/index.js +1 -3
  11. package/es/ProForm/components/base/TextArea/index.less +7 -0
  12. package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  13. package/es/ProForm/components/combination/Group/index.js +6 -1
  14. package/es/ProForm/components/combination/Group/style/index.less +2 -1
  15. package/es/ProForm/components/combination/ProCombination/index.js +0 -1
  16. package/es/ProForm/components/combination/ProModalSelect/index.js +2 -2
  17. package/es/ProForm/components/render/Render.js +3 -4
  18. package/es/ProForm/index.js +36 -6
  19. package/es/ProForm/propsType.d.ts +1 -0
  20. package/es/ProForm/utils/index.d.ts +4 -0
  21. package/es/ProForm/utils/index.js +23 -6
  22. package/es/ProForm/utils/useForm.js +48 -75
  23. package/es/ProForm/utils/useRules.js +4 -2
  24. package/es/ProForm/utils/useShouldUpdate.js +11 -7
  25. package/es/ProStep/index.js +0 -1
  26. package/es/ProThemeTools/index.d.ts +1 -1
  27. package/es/ProThemeTools/index.js +10 -2
  28. package/es/ProThemeTools/propsType.d.ts +1 -0
  29. package/es/ProThemeTools/utils/index.js +0 -1
  30. package/es/ProTree/components/Tree.js +0 -1
  31. package/es/ProTreeSelect/index.js +2 -4
  32. package/es/ProUpload/index.js +0 -1
  33. package/es/old/ProEditableTable/index.js +1 -1
  34. package/es/style/theme/antd.less +46 -5
  35. package/lib/ProConfigProvider/index.d.ts +10 -2
  36. package/lib/ProConfigProvider/index.js +14 -7
  37. package/lib/ProEditLabel/index.js +2 -3
  38. package/lib/ProEditTable/components/ActionButton/index.js +6 -6
  39. package/lib/ProEditTable/components/RenderField/index.js +5 -5
  40. package/lib/ProEditTable/style/index.less +0 -1
  41. package/lib/ProEditTable/utils/index.js +2 -4
  42. package/lib/ProForm/components/base/TextArea/index.js +1 -3
  43. package/lib/ProForm/components/base/TextArea/index.less +7 -0
  44. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  45. package/lib/ProForm/components/combination/Group/index.js +6 -1
  46. package/lib/ProForm/components/combination/Group/style/index.less +2 -1
  47. package/lib/ProForm/components/combination/ProCombination/index.js +0 -1
  48. package/lib/ProForm/components/combination/ProModalSelect/index.js +2 -2
  49. package/lib/ProForm/components/old/InputRange/index.js +1 -0
  50. package/lib/ProForm/components/render/Render.js +3 -4
  51. package/lib/ProForm/index.js +35 -5
  52. package/lib/ProForm/propsType.d.ts +1 -0
  53. package/lib/ProForm/utils/index.d.ts +4 -0
  54. package/lib/ProForm/utils/index.js +24 -7
  55. package/lib/ProForm/utils/useForm.js +48 -75
  56. package/lib/ProForm/utils/useRules.js +4 -2
  57. package/lib/ProForm/utils/useShouldUpdate.js +10 -6
  58. package/lib/ProStep/index.js +0 -1
  59. package/lib/ProThemeTools/index.d.ts +1 -1
  60. package/lib/ProThemeTools/index.js +10 -2
  61. package/lib/ProThemeTools/propsType.d.ts +1 -0
  62. package/lib/ProThemeTools/utils/index.js +0 -1
  63. package/lib/ProTree/components/Tree.js +0 -1
  64. package/lib/ProTree/index.js +1 -0
  65. package/lib/ProTreeSelect/index.js +2 -4
  66. package/lib/ProUpload/index.js +0 -1
  67. package/lib/old/ProEditableTable/index.js +1 -1
  68. package/lib/style/theme/antd.less +46 -5
  69. package/package.json +1 -1
@@ -398,7 +398,7 @@ var ProEditableTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref)
398
398
  }, antButtonProps), {}, {
399
399
  children: buttonText
400
400
  }))]
401
- }) : /*#__PURE__*/(0, _react.cloneElement)(buttonText, antButtonProps)
401
+ }) : ( /*#__PURE__*/(0, _react.cloneElement)(buttonText, antButtonProps))
402
402
  }) : null
403
403
  });
404
404
  };
@@ -93,7 +93,8 @@
93
93
 
94
94
  .@{ant-prefix}-input[disabled],
95
95
  .@{ant-prefix}-select-disabled,
96
- .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector,
96
+ .@{ant-prefix}-select-disabled.@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input)
97
+ .@{ant-prefix}-select-selector,
97
98
  .@{ant-prefix}-input-number-disabled,
98
99
  .@{ant-prefix}-picker-input > input[disabled],
99
100
  .@{ant-prefix}-select-disabled.@{ant-prefix}-select-multiple .@{ant-prefix}-select-selection-item {
@@ -218,7 +219,11 @@
218
219
  .@{ant-prefix}-table tfoot > tr > td {
219
220
  padding: calc(4px + var(--zaui-size) * 8px);
220
221
  }
221
- .@{ant-prefix}-table-tbody > tr > td > .@{ant-prefix}-table-wrapper:only-child .@{ant-prefix}-table,
222
+ .@{ant-prefix}-table-tbody
223
+ > tr
224
+ > td
225
+ > .@{ant-prefix}-table-wrapper:only-child
226
+ .@{ant-prefix}-table,
222
227
  .@{ant-prefix}-table-tbody
223
228
  > tr
224
229
  > td
@@ -508,7 +513,8 @@
508
513
  border-radius: @zaui-border-radius;
509
514
  }
510
515
 
511
- .@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
516
+ .@{ant-prefix}-select-single:not(.@{ant-prefix}-select-customize-input)
517
+ .@{ant-prefix}-select-selector {
512
518
  .set-text-color();
513
519
  .set-text-size();
514
520
  width: 100%;
@@ -523,8 +529,12 @@
523
529
  border-radius: @zaui-border-radius;
524
530
  }
525
531
 
526
- .@{ant-prefix}-pagination-jump-prev .@{ant-prefix}-pagination-item-container .@{ant-prefix}-pagination-item-link-icon,
527
- .@{ant-prefix}-pagination-jump-next .@{ant-prefix}-pagination-item-container .@{ant-prefix}-pagination-item-link-icon {
532
+ .@{ant-prefix}-pagination-jump-prev
533
+ .@{ant-prefix}-pagination-item-container
534
+ .@{ant-prefix}-pagination-item-link-icon,
535
+ .@{ant-prefix}-pagination-jump-next
536
+ .@{ant-prefix}-pagination-item-container
537
+ .@{ant-prefix}-pagination-item-link-icon {
528
538
  color: @zaui-brand;
529
539
  }
530
540
  }
@@ -705,3 +715,34 @@
705
715
  .@{ant-prefix}-popover {
706
716
  width: max-content;
707
717
  }
718
+
719
+ // tooltip样式重载
720
+ .@{ant-prefix}-tooltip {
721
+ > .ant-tooltip-content {
722
+ > .ant-tooltip-inner {
723
+ color: rgb(29, 33, 41);
724
+ background-color: #fff;
725
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
726
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
727
+ &::selection {
728
+ color: inherit !important;
729
+ background: rgba(@primary-color, 0.3) !important;
730
+ }
731
+ > div {
732
+ &::selection {
733
+ color: inherit !important;
734
+ background: rgba(@primary-color, 0.3) !important;
735
+ }
736
+ }
737
+ }
738
+ > .ant-tooltip-arrow {
739
+ > .ant-tooltip-arrow-content {
740
+ --antd-arrow-background-color: linear-gradient(
741
+ to right bottom,
742
+ rgba(255, 255, 255, 0.95),
743
+ rgba(255, 255, 255, 1)
744
+ );
745
+ }
746
+ }
747
+ }
748
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.3.3",
3
+ "version": "3.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",