@ucloud-fe/react-components 1.2.18 → 1.3.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 (89) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/icon.min.js +1 -1
  3. package/dist/main.min.js +4 -4
  4. package/index.d.ts +46 -41
  5. package/lib/__index.js +4 -0
  6. package/lib/components/AutoComplete/AutoComplete.d.ts +1 -1
  7. package/lib/components/AutoComplete/AutoComplete.js +1 -1
  8. package/lib/components/Calendar/Calendar.d.ts +4 -2
  9. package/lib/components/Calendar/Calendar.js +21 -11
  10. package/lib/components/Calendar/Month.d.ts +3 -28
  11. package/lib/components/Calendar/Month.js +3 -11
  12. package/lib/components/Cascader/Cascade.d.ts +24 -0
  13. package/lib/components/Cascader/Cascade.js +280 -0
  14. package/lib/components/Cascader/CascadeContext.d.ts +7 -0
  15. package/lib/components/Cascader/CascadeContext.js +20 -0
  16. package/lib/components/Cascader/Cascader.d.ts +41 -0
  17. package/lib/components/Cascader/Cascader.js +359 -0
  18. package/lib/components/Cascader/Item.d.ts +14 -0
  19. package/lib/components/Cascader/Item.js +97 -0
  20. package/lib/components/Cascader/Items.d.ts +11 -0
  21. package/lib/components/Cascader/Items.js +175 -0
  22. package/lib/components/Cascader/index.d.ts +2 -0
  23. package/lib/components/Cascader/index.js +13 -0
  24. package/lib/components/Cascader/interface.d.ts +12 -0
  25. package/lib/components/Cascader/interface.js +5 -0
  26. package/lib/components/Cascader/locale/en_US.js +11 -0
  27. package/lib/components/Cascader/locale/zh_CN.d.ts +5 -0
  28. package/lib/components/Cascader/locale/zh_CN.js +11 -0
  29. package/lib/components/Cascader/style/cascade.d.ts +15 -0
  30. package/lib/components/Cascader/style/cascade.js +55 -0
  31. package/lib/components/Cascader/style/index.d.ts +11 -0
  32. package/lib/components/Cascader/style/index.js +49 -0
  33. package/lib/components/Compact/Compact.js +6 -18
  34. package/lib/components/DatePicker/DatePicker.js +9 -3
  35. package/lib/components/DatePicker/Footer.d.ts +1 -1
  36. package/lib/components/DatePicker/Footer.js +3 -27
  37. package/lib/components/DatePicker/Month.js +2 -1
  38. package/lib/components/DatePicker/RangePicker.js +18 -10
  39. package/lib/components/DatePicker/style/index.d.ts +10 -5
  40. package/lib/components/DatePicker/style/index.js +30 -21
  41. package/lib/components/Input/Input.js +21 -18
  42. package/lib/components/LocaleProvider/LocaleProvider.js +1 -1
  43. package/lib/components/LocaleProvider/locale/en_US.js +5 -2
  44. package/lib/components/LocaleProvider/locale/zh_CN.js +5 -2
  45. package/lib/components/LocaleProvider/localeConsumerDecorator.js +1 -1
  46. package/lib/components/LocaleProvider/{locale/runtime.d.ts → runtime.d.ts} +1 -1
  47. package/lib/components/LocaleProvider/{locale/runtime.js → runtime.js} +0 -0
  48. package/lib/components/LocaleProvider/useLocale.js +1 -1
  49. package/lib/components/Menu/Menu.js +2 -2
  50. package/lib/components/Message/Message.js +17 -24
  51. package/lib/components/Message/method.js +22 -4
  52. package/lib/components/Modal/method.js +131 -57
  53. package/lib/components/Notice/Notice.js +15 -20
  54. package/lib/components/Select/Select.js +7 -19
  55. package/lib/components/Table/Table.js +1 -6
  56. package/lib/components/TimePicker/TimePicker.js +2 -2
  57. package/lib/components/TimePicker/style/index.d.ts +3 -0
  58. package/lib/components/TimePicker/style/index.js +29 -7
  59. package/lib/components/Transfer/Transfer.js +4 -3
  60. package/lib/components/Transfer/locale/en_US.js +3 -1
  61. package/lib/components/Transfer/locale/zh_CN.js +3 -1
  62. package/lib/components/Upload/Upload.js +3 -2
  63. package/lib/hooks/group.js +2 -2
  64. package/lib/hooks/useSearch.d.ts +23 -0
  65. package/lib/hooks/useSearch.js +387 -0
  66. package/lib/index.js +5 -1
  67. package/lib/sharedComponents/Search/Highlight.d.ts +4 -2
  68. package/lib/sharedComponents/Search/Highlight.js +1 -24
  69. package/lib/sharedComponents/Search/Search.d.ts +3 -3
  70. package/lib/sharedComponents/Search/Search.js +6 -21
  71. package/lib/sharedComponents/Search/SearchInput.d.ts +4 -0
  72. package/lib/sharedComponents/Search/SearchInput.js +51 -0
  73. package/lib/sharedComponents/Search/index.d.ts +2 -1
  74. package/lib/sharedComponents/Search/index.js +8 -0
  75. package/lib/sharedComponents/Search/style.d.ts +3 -0
  76. package/lib/sharedComponents/Search/style.js +15 -4
  77. package/lib/sharedComponents/VirtualScrollList.d.ts +7 -0
  78. package/lib/sharedComponents/VirtualScrollList.js +68 -0
  79. package/lib/utils/attrs.d.ts +5 -0
  80. package/lib/utils/attrs.js +39 -0
  81. package/lib/utils/deprecatedLog.d.ts +1 -1
  82. package/lib/utils/deprecatedLog.js +8 -1
  83. package/lib/utils/wait.d.ts +2 -0
  84. package/lib/utils/wait.js +23 -0
  85. package/lib/utils/warning.d.ts +4 -2
  86. package/lib/utils/warning.js +19 -4
  87. package/package.json +1 -1
  88. package/lib/sharedComponents/Search/useSearch.d.ts +0 -10
  89. package/lib/sharedComponents/Search/useSearch.js +0 -122
package/CHANGELOG.md CHANGED
@@ -2,6 +2,40 @@
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.3.1](https://github.com/UCloud-FE/react-components/compare/v1.3.0...v1.3.1) (2021-12-03)
6
+
7
+ ### Features
8
+
9
+ - **log:** clear log usage ([17154dd](https://github.com/UCloud-FE/react-components/commit/17154ddeb3c8d522906e0cebb1d69277bdb11a67))
10
+ - **Modal:** add destroyAll to close all method modals ([1eaafc0](https://github.com/UCloud-FE/react-components/commit/1eaafc048475daf3949d703236bed99c2278cf09))
11
+ - **Modal:** add method usage warning, docs & add runtime locale ([638a83d](https://github.com/UCloud-FE/react-components/commit/638a83dc12509adace21b01b38c3f77dc2b867d1))
12
+
13
+ ## [1.3.0](https://github.com/UCloud-FE/react-components/compare/v1.2.20...v1.3.0) (2021-12-01)
14
+
15
+ ### Features
16
+
17
+ - **Calendar:** merge month to calendar type ([93a3c4d](https://github.com/UCloud-FE/react-components/commit/93a3c4d9f57c9e338282501d5be1477a91de333d))
18
+ - **Cascader:** add Cascader ([470e2ac](https://github.com/UCloud-FE/react-components/commit/470e2ac455dc6450ea691626015baad372e2aff3))
19
+ - **DatePicker:** auto adapt input width for diff usage ([a653b3f](https://github.com/UCloud-FE/react-components/commit/a653b3f21c2d0579fef49a9ea2532fa1104d094e))
20
+ - **TimePicker:** add default width ([2187628](https://github.com/UCloud-FE/react-components/commit/21876287469847150007a8a91427e7356fb3140d))
21
+
22
+ ### Bug Fixes
23
+
24
+ - **LocaleProvider:** add some demos & fix missing locales ([032bbec](https://github.com/UCloud-FE/react-components/commit/032bbec0b3b96a7cb035be53a9e29a516426a353))
25
+ - **Select:** fix missing empty tip when options is empty ([662d3c3](https://github.com/UCloud-FE/react-components/commit/662d3c30f8b8ccf9257b3d488422d237bddc6f61))
26
+
27
+ ### [1.2.20](https://github.com/UCloud-FE/react-components/compare/v1.2.19...v1.2.20) (2021-11-17)
28
+
29
+ ### Features
30
+
31
+ - **DatePicker:** remove default shortcuts ([90ee420](https://github.com/UCloud-FE/react-components/commit/90ee42046904a821aea9dc9892bb0419df8da9a6))
32
+
33
+ ### [1.2.19](https://github.com/UCloud-FE/react-components/compare/v1.2.18...v1.2.19) (2021-11-12)
34
+
35
+ ### Bug Fixes
36
+
37
+ - **Select:** fix null value override by key ([acc91e2](https://github.com/UCloud-FE/react-components/commit/acc91e24b645eada75656d8c24ae579932ff236e))
38
+
5
39
  ### [1.2.18](https://github.com/UCloud-FE/react-components/compare/v1.2.17...v1.2.18) (2021-11-12)
6
40
 
7
41
  ### Features
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=634)}({634: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=637)}({637:function(e,t,n){}})}));