@ucloud-fe/react-components 1.2.17 → 1.3.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 (80) 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/DatePicker/DatePicker.d.ts +6 -0
  34. package/lib/components/DatePicker/DatePicker.js +45 -4
  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.d.ts +3 -50
  38. package/lib/components/DatePicker/Month.js +6 -22
  39. package/lib/components/DatePicker/RangePicker.js +18 -10
  40. package/lib/components/DatePicker/style/index.d.ts +10 -5
  41. package/lib/components/DatePicker/style/index.js +30 -21
  42. package/lib/components/DatePicker/usePicker.d.ts +3 -21
  43. package/lib/components/DatePicker/usePicker.js +15 -4
  44. package/lib/components/Input/Input.js +20 -12
  45. package/lib/components/LocaleProvider/locale/en_US.js +5 -2
  46. package/lib/components/LocaleProvider/locale/zh_CN.js +5 -2
  47. package/lib/components/Menu/Menu.js +2 -2
  48. package/lib/components/Select/Select.js +1 -1
  49. package/lib/components/Tabs/Pane.d.ts +3 -1
  50. package/lib/components/Tabs/Pane.js +4 -2
  51. package/lib/components/Tabs/Tabs.js +6 -1
  52. package/lib/components/TimePicker/TimePicker.js +2 -2
  53. package/lib/components/TimePicker/style/index.d.ts +3 -0
  54. package/lib/components/TimePicker/style/index.js +29 -7
  55. package/lib/components/Transfer/Transfer.js +4 -3
  56. package/lib/components/Transfer/locale/en_US.js +3 -1
  57. package/lib/components/Transfer/locale/zh_CN.js +3 -1
  58. package/lib/hooks/group.js +2 -2
  59. package/lib/hooks/useSearch.d.ts +23 -0
  60. package/lib/hooks/useSearch.js +387 -0
  61. package/lib/index.js +5 -1
  62. package/lib/sharedComponents/Search/Highlight.d.ts +4 -2
  63. package/lib/sharedComponents/Search/Highlight.js +1 -24
  64. package/lib/sharedComponents/Search/Search.d.ts +3 -3
  65. package/lib/sharedComponents/Search/Search.js +6 -21
  66. package/lib/sharedComponents/Search/SearchInput.d.ts +4 -0
  67. package/lib/sharedComponents/Search/SearchInput.js +51 -0
  68. package/lib/sharedComponents/Search/index.d.ts +2 -1
  69. package/lib/sharedComponents/Search/index.js +8 -0
  70. package/lib/sharedComponents/Search/style.d.ts +3 -0
  71. package/lib/sharedComponents/Search/style.js +15 -4
  72. package/lib/sharedComponents/VirtualScrollList.d.ts +7 -0
  73. package/lib/sharedComponents/VirtualScrollList.js +68 -0
  74. package/lib/utils/attrs.d.ts +5 -0
  75. package/lib/utils/attrs.js +39 -0
  76. package/lib/utils/wait.d.ts +2 -0
  77. package/lib/utils/wait.js +23 -0
  78. package/package.json +1 -1
  79. package/lib/sharedComponents/Search/useSearch.d.ts +0 -10
  80. 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.0](https://github.com/UCloud-FE/react-components/compare/v1.2.20...v1.3.0) (2021-12-01)
6
+
7
+ ### Features
8
+
9
+ - **Calendar:** merge month to calendar type ([93a3c4d](https://github.com/UCloud-FE/react-components/commit/93a3c4d9f57c9e338282501d5be1477a91de333d))
10
+ - **Cascader:** add Cascader ([470e2ac](https://github.com/UCloud-FE/react-components/commit/470e2ac455dc6450ea691626015baad372e2aff3))
11
+ - **DatePicker:** auto adapt input width for diff usage ([a653b3f](https://github.com/UCloud-FE/react-components/commit/a653b3f21c2d0579fef49a9ea2532fa1104d094e))
12
+ - **TimePicker:** add default width ([2187628](https://github.com/UCloud-FE/react-components/commit/21876287469847150007a8a91427e7356fb3140d))
13
+
14
+ ### Bug Fixes
15
+
16
+ - **LocaleProvider:** add some demos & fix missing locales ([032bbec](https://github.com/UCloud-FE/react-components/commit/032bbec0b3b96a7cb035be53a9e29a516426a353))
17
+ - **Select:** fix missing empty tip when options is empty ([662d3c3](https://github.com/UCloud-FE/react-components/commit/662d3c30f8b8ccf9257b3d488422d237bddc6f61))
18
+
19
+ ### [1.2.20](https://github.com/UCloud-FE/react-components/compare/v1.2.19...v1.2.20) (2021-11-17)
20
+
21
+ ### Features
22
+
23
+ - **DatePicker:** remove default shortcuts ([90ee420](https://github.com/UCloud-FE/react-components/commit/90ee42046904a821aea9dc9892bb0419df8da9a6))
24
+
25
+ ### [1.2.19](https://github.com/UCloud-FE/react-components/compare/v1.2.18...v1.2.19) (2021-11-12)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **Select:** fix null value override by key ([acc91e2](https://github.com/UCloud-FE/react-components/commit/acc91e24b645eada75656d8c24ae579932ff236e))
30
+
31
+ ### [1.2.18](https://github.com/UCloud-FE/react-components/compare/v1.2.17...v1.2.18) (2021-11-12)
32
+
33
+ ### Features
34
+
35
+ - **DatePicker:** add type of month and deprecated Month ([6a7edb0](https://github.com/UCloud-FE/react-components/commit/6a7edb0b7552dd499a35f38da2489bdad4b4bb0a))
36
+ - **DatePicker:** change defaultTime when empty ([48772cc](https://github.com/UCloud-FE/react-components/commit/48772cc5d9984cac22e69c80c9ebf6f161db32fb))
37
+ - **Tabs:** add tabKey to tabPane ([fdc5a65](https://github.com/UCloud-FE/react-components/commit/fdc5a65c7dba210c9710a0d36b5e4bcb68249dae))
38
+
5
39
  ### [1.2.17](https://github.com/UCloud-FE/react-components/compare/v1.2.16...v1.2.17) (2021-11-10)
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=638)}({638:function(e,t,n){}})}));