@ucloud-fe/react-components 1.3.26 → 1.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 (112) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/icon.min.js +1 -1
  3. package/dist/main.min.js +4 -4
  4. package/lib/components/AutoComplete/AutoComplete.js +7 -4
  5. package/lib/components/Badge/Bubble.d.ts +2 -0
  6. package/lib/components/Box/Box.d.ts +1 -0
  7. package/lib/components/Calendar/Calendar.d.ts +6 -1
  8. package/lib/components/Calendar/Calendar.js +12 -4
  9. package/lib/components/Calendar/Cell.d.ts +8 -0
  10. package/lib/components/Calendar/Cell.js +55 -0
  11. package/lib/components/Calendar/HeaderButton.d.ts +8 -0
  12. package/lib/components/Calendar/HeaderButton.js +75 -0
  13. package/lib/components/Calendar/HeaderSwitcher.d.ts +2 -1
  14. package/lib/components/Calendar/Month.js +10 -4
  15. package/lib/components/Calendar/TwoSide.d.ts +4 -0
  16. package/lib/components/Calendar/TwoSide.js +155 -0
  17. package/lib/components/Calendar/index.d.ts +3 -0
  18. package/lib/components/Calendar/index.js +9 -0
  19. package/lib/components/Calendar/locale/en_US.js +2 -1
  20. package/lib/components/Calendar/locale/zh_CN.d.ts +1 -0
  21. package/lib/components/Calendar/locale/zh_CN.js +3 -2
  22. package/lib/components/Calendar/style/index.d.ts +13 -0
  23. package/lib/components/Calendar/style/index.js +29 -7
  24. package/lib/components/Calendar/utils.d.ts +1 -1
  25. package/lib/components/Calendar/utils.js +5 -5
  26. package/lib/components/DatePicker/DatePicker.d.ts +1 -1
  27. package/lib/components/DatePicker/DatePicker.js +5 -7
  28. package/lib/components/DatePicker/Footer.d.ts +5 -2
  29. package/lib/components/DatePicker/Footer.js +31 -55
  30. package/lib/components/DatePicker/Month.js +4 -6
  31. package/lib/components/DatePicker/Range.d.ts +2 -2
  32. package/lib/components/DatePicker/Range.js +179 -71
  33. package/lib/components/DatePicker/locale/en_US.js +2 -1
  34. package/lib/components/DatePicker/locale/zh_CN.d.ts +1 -0
  35. package/lib/components/DatePicker/locale/zh_CN.js +2 -1
  36. package/lib/components/DatePicker/style/index.d.ts +24 -5
  37. package/lib/components/DatePicker/style/index.js +102 -34
  38. package/lib/components/DatePicker/usePicker.js +90 -31
  39. package/lib/components/DatePicker/useRangePicker.d.ts +16 -0
  40. package/lib/components/DatePicker/{RangePicker.js → useRangePicker.js} +44 -80
  41. package/lib/components/DatePicker/utils.d.ts +1 -1
  42. package/lib/components/Form/ControllerContext.d.ts +1 -1
  43. package/lib/components/Input/Input.js +4 -2
  44. package/lib/components/Input/Search.js +1 -1
  45. package/lib/components/Input/style/index.d.ts +2 -1
  46. package/lib/components/Input/style/index.js +6 -4
  47. package/lib/components/Loading/Loading.d.ts +1 -0
  48. package/lib/components/NumberInput/NumberInput.d.ts +12 -0
  49. package/lib/components/NumberInput/NumberInput.js +1 -1
  50. package/lib/components/Pagination/Options.js +1 -1
  51. package/lib/components/Popover/Popover.d.ts +17 -13
  52. package/lib/components/Popover/Popover.js +1 -3
  53. package/lib/components/Popover/style/index.d.ts +1 -0
  54. package/lib/components/Popover/style/index.js +1 -1
  55. package/lib/components/Select/style/index.d.ts +6 -6
  56. package/lib/components/SvgIcon/SvgIcon.d.ts +1 -0
  57. package/lib/components/SvgIcon/SvgIcon.js +6 -0
  58. package/lib/components/SvgIcon/SvgIconWrap.d.ts +1 -0
  59. package/lib/components/SvgIcon/icons/DoubleArrowLeft.d.ts +3 -0
  60. package/lib/components/SvgIcon/icons/DoubleArrowLeft.js +27 -0
  61. package/lib/components/SvgIcon/icons/DoubleArrowRight.d.ts +3 -0
  62. package/lib/components/SvgIcon/icons/DoubleArrowRight.js +26 -0
  63. package/lib/components/Switch/style/index.js +2 -2
  64. package/lib/components/Tabs/Tabs.js +1 -1
  65. package/lib/components/Tabs/style/index.d.ts +1 -1
  66. package/lib/components/Tag/Group.d.ts +1 -0
  67. package/lib/components/Tag/Icon.d.ts +1 -0
  68. package/lib/components/Tag/Tag.d.ts +1 -0
  69. package/lib/components/Textarea/Textarea.d.ts +1 -0
  70. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -0
  71. package/lib/components/ThemeProvider/dark.js +6 -249
  72. package/lib/components/ThemeProvider/designTokens.d.ts +267 -258
  73. package/lib/components/ThemeProvider/designTokens.js +460 -185
  74. package/lib/components/ThemeProvider/designTokensDark.d.ts +267 -0
  75. package/lib/components/ThemeProvider/designTokensDark.js +540 -0
  76. package/lib/components/ThemeProvider/theme.d.ts +1 -1
  77. package/lib/components/ThemeProvider/theme.js +3 -3
  78. package/lib/components/TimePicker/TimePicker.d.ts +1 -1
  79. package/lib/components/TimePicker/TimePicker.js +11 -13
  80. package/lib/components/TimePicker/style/index.d.ts +3 -1
  81. package/lib/components/TimePicker/style/index.js +11 -21
  82. package/lib/hooks/usePopoverConfig.d.ts +4 -4
  83. package/lib/libs/dom-align/adjustForViewport.js +55 -0
  84. package/lib/libs/dom-align/align/align.js +244 -0
  85. package/lib/libs/dom-align/align/alignElement.js +34 -0
  86. package/lib/libs/dom-align/align/alignPoint.js +67 -0
  87. package/lib/libs/dom-align/getAlignOffset.js +38 -0
  88. package/lib/libs/dom-align/getElFuturePos.js +23 -0
  89. package/lib/libs/dom-align/getOffsetParent.js +63 -0
  90. package/lib/libs/dom-align/getRegion.js +38 -0
  91. package/lib/libs/dom-align/getVisibleRectForElement.js +118 -0
  92. package/lib/libs/dom-align/index.js +27 -0
  93. package/lib/libs/dom-align/isAncestorFixed.js +34 -0
  94. package/lib/libs/dom-align/propertyUtils.js +138 -0
  95. package/lib/libs/dom-align/utils.js +657 -0
  96. package/lib/libs/rc-align/index.d.ts +4 -0
  97. package/lib/libs/rc-align/index.js +15 -3
  98. package/lib/libs/rc-table/Table.d.ts +5 -0
  99. package/lib/libs/rc-table/TableCell.d.ts +1 -0
  100. package/lib/libs/rc-trigger/index.js +14 -0
  101. package/lib/libs/rc-trigger/src/LazyRenderBox.js +82 -0
  102. package/lib/libs/rc-trigger/src/Popup.js +383 -0
  103. package/lib/libs/rc-trigger/src/PopupInner.js +85 -0
  104. package/lib/libs/rc-trigger/src/index.js +867 -0
  105. package/lib/libs/rc-trigger/src/mock.js +33 -0
  106. package/lib/libs/rc-trigger/src/utils.js +48 -0
  107. package/lib/utils/KeyCode.d.ts +15 -0
  108. package/lib/{interfaces → utils}/KeyCode.js +0 -0
  109. package/package.json +4 -6
  110. package/lib/components/DatePicker/RangePicker.d.ts +0 -17
  111. package/lib/interfaces/KeyCode.d.ts +0 -15
  112. package/lib/style/color.js +0 -23
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.4.1](https://github.com/UCloud-FE/react-components/compare/v1.4.0...v1.4.1) (2022-05-30)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **DatePicker:** fix footer button disabled ([019c5be](https://github.com/UCloud-FE/react-components/commit/019c5be7601c4c58a02594e5ce2f7ff1c6eb999c))
10
+
11
+ ## [1.4.0](https://github.com/UCloud-FE/react-components/compare/v1.3.27...v1.4.0) (2022-05-30)
12
+
13
+ ### Features
14
+
15
+ - **DatePicker:** refactor style & UX ([a5301e2](https://github.com/UCloud-FE/react-components/commit/a5301e2d96e33983a9127bf7e4fedaffe9cfea47)), closes [#357](https://github.com/UCloud-FE/react-components/issues/357)
16
+
17
+ ### [1.3.27](https://github.com/UCloud-FE/react-components/compare/v1.3.26...v1.3.27) (2022-05-19)
18
+
19
+ ### Bug Fixes
20
+
21
+ - **Popover:** use transform to fix safari flash bug ([aadaab1](https://github.com/UCloud-FE/react-components/commit/aadaab184f238da0f1780696965be55f88fb0d46))
22
+ - **Switch:** add default line-height to fix inherit style bug ([e8364c6](https://github.com/UCloud-FE/react-components/commit/e8364c63e02f2eec60188ddb2eb8f1de766fd671))
23
+
5
24
  ### [1.3.26](https://github.com/UCloud-FE/react-components/compare/v1.3.25...v1.3.26) (2022-05-16)
6
25
 
7
26
  ### Bug Fixes
package/dist/icon.min.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-components"]=t():e["react-components"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=602)}({602:function(e,t,n){}})}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["react-components"]=t():e["react-components"]=t()}(window,(function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=597)}({597:function(e,t,n){}})}));