@ucloud-fe/react-components 1.3.27 → 1.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 (88) hide show
  1. package/CHANGELOG.md +6 -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 -3
  29. package/lib/components/DatePicker/Footer.js +33 -57
  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 +7 -0
  52. package/lib/components/Popover/style/index.d.ts +1 -0
  53. package/lib/components/Select/style/index.d.ts +6 -6
  54. package/lib/components/SvgIcon/SvgIcon.d.ts +1 -0
  55. package/lib/components/SvgIcon/SvgIcon.js +6 -0
  56. package/lib/components/SvgIcon/SvgIconWrap.d.ts +1 -0
  57. package/lib/components/SvgIcon/icons/DoubleArrowLeft.d.ts +3 -0
  58. package/lib/components/SvgIcon/icons/DoubleArrowLeft.js +27 -0
  59. package/lib/components/SvgIcon/icons/DoubleArrowRight.d.ts +3 -0
  60. package/lib/components/SvgIcon/icons/DoubleArrowRight.js +26 -0
  61. package/lib/components/Tabs/Tabs.js +1 -1
  62. package/lib/components/Tabs/style/index.d.ts +1 -1
  63. package/lib/components/Tag/Group.d.ts +1 -0
  64. package/lib/components/Tag/Icon.d.ts +1 -0
  65. package/lib/components/Tag/Tag.d.ts +1 -0
  66. package/lib/components/Textarea/Textarea.d.ts +1 -0
  67. package/lib/components/ThemeProvider/ThemeProvider.d.ts +6 -0
  68. package/lib/components/ThemeProvider/dark.js +6 -249
  69. package/lib/components/ThemeProvider/designTokens.d.ts +267 -258
  70. package/lib/components/ThemeProvider/designTokens.js +460 -185
  71. package/lib/components/ThemeProvider/designTokensDark.d.ts +267 -0
  72. package/lib/components/ThemeProvider/designTokensDark.js +540 -0
  73. package/lib/components/ThemeProvider/theme.d.ts +1 -1
  74. package/lib/components/ThemeProvider/theme.js +3 -3
  75. package/lib/components/TimePicker/TimePicker.d.ts +1 -1
  76. package/lib/components/TimePicker/TimePicker.js +11 -13
  77. package/lib/components/TimePicker/style/index.d.ts +3 -1
  78. package/lib/components/TimePicker/style/index.js +11 -21
  79. package/lib/hooks/usePopoverConfig.d.ts +4 -4
  80. package/lib/libs/rc-align/index.d.ts +4 -0
  81. package/lib/libs/rc-table/Table.d.ts +5 -0
  82. package/lib/libs/rc-table/TableCell.d.ts +1 -0
  83. package/lib/utils/KeyCode.d.ts +15 -0
  84. package/lib/{interfaces → utils}/KeyCode.js +0 -0
  85. package/package.json +3 -4
  86. package/lib/components/DatePicker/RangePicker.d.ts +0 -17
  87. package/lib/interfaces/KeyCode.d.ts +0 -15
  88. package/lib/style/color.js +0 -23
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
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.0](https://github.com/UCloud-FE/react-components/compare/v1.3.27...v1.4.0) (2022-05-30)
6
+
7
+ ### Features
8
+
9
+ - **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)
10
+
5
11
  ### [1.3.27](https://github.com/UCloud-FE/react-components/compare/v1.3.26...v1.3.27) (2022-05-19)
6
12
 
7
13
  ### 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=595)}({595: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){}})}));