@nutui/nutui-react 1.2.3-beta.2 → 2.0.0-beta.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 (214) hide show
  1. package/dist/esm/Avatar.js +7 -5
  2. package/dist/esm/CalendarItem.js +19 -15
  3. package/dist/esm/CheckboxGroup.js +0 -1
  4. package/dist/esm/Drag.js +1 -1
  5. package/dist/esm/Icon/style/index.js +1 -0
  6. package/dist/esm/Icon.js +2 -2
  7. package/dist/esm/Infiniteloading.js +6 -5
  8. package/dist/esm/Input.js +8 -2
  9. package/dist/esm/InputNumber.js +11 -11
  10. package/dist/esm/NoticeBar.js +67 -28
  11. package/dist/esm/Notify.js +17 -3
  12. package/dist/esm/Picker.js +9 -4
  13. package/dist/esm/Popover.js +56 -72
  14. package/dist/esm/Price.js +14 -3
  15. package/dist/esm/Progress.js +1 -1
  16. package/dist/esm/Range.js +9 -3
  17. package/dist/esm/ShortPassword.js +22 -17
  18. package/dist/esm/TabbarItem.js +1 -1
  19. package/dist/esm/Tag.js +1 -1
  20. package/dist/esm/TextArea.js +3 -0
  21. package/dist/esm/Toast.js +22 -12
  22. package/dist/esm/Uploader.js +16 -6
  23. package/dist/esm/{icon-62bd7379.js → icon-8dc4de10.js} +9 -9
  24. package/dist/locales/base.js +1 -1
  25. package/dist/locales/en-US.js +1 -1
  26. package/dist/locales/id-ID.js +1 -1
  27. package/dist/locales/zh-CN.js +1 -1
  28. package/dist/locales/zh-TW.js +1 -1
  29. package/dist/nutui.react.es.js +240 -173
  30. package/dist/nutui.react.umd.js +16771 -28
  31. package/dist/packages/col/col.scss +2 -2
  32. package/dist/packages/collapseitem/collapseitem.scss +1 -2
  33. package/dist/packages/icon/icon.scss +104 -12
  34. package/dist/packages/noticebar/noticebar.scss +31 -15
  35. package/dist/packages/notify/notify.scss +9 -0
  36. package/dist/packages/popover/popover.scss +205 -83
  37. package/dist/packages/rate/rate.scss +14 -13
  38. package/dist/packages/toast/toast.scss +16 -13
  39. package/dist/style.css +1 -1
  40. package/dist/style.es.js +1 -1
  41. package/dist/styles/animation/icon.scss +245 -0
  42. package/dist/styles/animation/index.scss +1 -0
  43. package/dist/styles/font/config.json +169 -0
  44. package/dist/styles/font/demo_index.html +210 -3
  45. package/dist/styles/font/iconfont.css +39 -3
  46. package/dist/styles/font/iconfont.js +32 -32
  47. package/dist/styles/font/iconfont.json +63 -0
  48. package/dist/styles/font/iconfont.ttf +0 -0
  49. package/dist/styles/font/iconfont.woff +0 -0
  50. package/dist/styles/font/iconfont.woff2 +0 -0
  51. package/dist/styles/variables.scss +23 -8
  52. package/dist/types/actionsheet/actionsheet.taro.d.ts +20 -0
  53. package/dist/types/actionsheet/index.taro.d.ts +2 -0
  54. package/dist/types/address/address.taro.d.ts +34 -0
  55. package/dist/types/address/index.taro.d.ts +2 -0
  56. package/dist/types/animatingnumbers/animatingnumbers.taro.d.ts +12 -0
  57. package/dist/types/animatingnumbers/countup.taro.d.ts +11 -0
  58. package/dist/types/animatingnumbers/index.taro.d.ts +2 -0
  59. package/dist/types/avatar/avatar.taro.d.ts +17 -0
  60. package/dist/types/avatar/index.taro.d.ts +2 -0
  61. package/dist/types/avatargroup/index.taro.d.ts +2 -0
  62. package/dist/types/backtop/backtop.taro.d.ts +15 -0
  63. package/dist/types/backtop/index.taro.d.ts +2 -0
  64. package/dist/types/badge/badge.taro.d.ts +14 -0
  65. package/dist/types/badge/index.taro.d.ts +2 -0
  66. package/dist/types/barrage/barrage.taro.d.ts +12 -0
  67. package/dist/types/barrage/index.taro.d.ts +2 -0
  68. package/dist/types/button/button.taro.d.ts +20 -0
  69. package/dist/types/button/index.taro.d.ts +2 -0
  70. package/dist/types/calendar/calendar.taro.d.ts +14 -0
  71. package/dist/types/calendar/index.taro.d.ts +2 -0
  72. package/dist/types/calendaritem/calendaritem.taro.d.ts +17 -0
  73. package/dist/types/calendaritem/index.taro.d.ts +2 -0
  74. package/dist/types/card/card.taro.d.ts +17 -0
  75. package/dist/types/card/index.taro.d.ts +2 -0
  76. package/dist/types/cell/cell.taro.d.ts +20 -0
  77. package/dist/types/cell/index.taro.d.ts +2 -0
  78. package/dist/types/cellgroup/cellgroup.taro.d.ts +10 -0
  79. package/dist/types/cellgroup/index.taro.d.ts +2 -0
  80. package/dist/types/checkbox/checkbox.taro.d.ts +19 -0
  81. package/dist/types/checkbox/index.taro.d.ts +2 -0
  82. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +8 -0
  83. package/dist/types/checkboxgroup/index.taro.d.ts +2 -0
  84. package/dist/types/circleprogress/circleprogress.taro.d.ts +15 -0
  85. package/dist/types/circleprogress/index.taro.d.ts +2 -0
  86. package/dist/types/col/col.taro.d.ts +10 -0
  87. package/dist/types/col/index.taro.d.ts +2 -0
  88. package/dist/types/collapse/collapse.taro.d.ts +12 -0
  89. package/dist/types/collapse/index.taro.d.ts +2 -0
  90. package/dist/types/collapseitem/index.taro.d.ts +2 -0
  91. package/dist/types/configprovider/configprovider.taro.d.ts +12 -0
  92. package/dist/types/configprovider/index.taro.d.ts +2 -0
  93. package/dist/types/countdown/countdown.taro.d.ts +15 -0
  94. package/dist/types/countdown/index.taro.d.ts +2 -0
  95. package/dist/types/datepicker/datepicker.taro.d.ts +27 -0
  96. package/dist/types/datepicker/index.taro.d.ts +2 -0
  97. package/dist/types/dialog/dialog.taro.d.ts +2 -0
  98. package/dist/types/dialog/index.taro.d.ts +2 -0
  99. package/dist/types/divider/divider.taro.d.ts +12 -0
  100. package/dist/types/divider/index.taro.d.ts +2 -0
  101. package/dist/types/drag/drag.taro.d.ts +14 -0
  102. package/dist/types/drag/index.taro.d.ts +2 -0
  103. package/dist/types/elevator/elevator.taro.d.ts +22 -0
  104. package/dist/types/elevator/index.taro.d.ts +2 -0
  105. package/dist/types/empty/empty.taro.d.ts +8 -0
  106. package/dist/types/empty/index.taro.d.ts +2 -0
  107. package/dist/types/fixednav/fixednav.taro.d.ts +22 -0
  108. package/dist/types/fixednav/index.taro.d.ts +2 -0
  109. package/dist/types/icon/icon.d.ts +9 -3
  110. package/dist/types/icon/icon.taro.d.ts +19 -0
  111. package/dist/types/icon/index.taro.d.ts +2 -0
  112. package/dist/types/indicator/index.taro.d.ts +2 -0
  113. package/dist/types/indicator/indicator.taro.d.ts +10 -0
  114. package/dist/types/infiniteloading/index.taro.d.ts +2 -0
  115. package/dist/types/infiniteloading/infiniteloading.taro.d.ts +20 -0
  116. package/dist/types/input/index.taro.d.ts +2 -0
  117. package/dist/types/input/input.taro.d.ts +57 -0
  118. package/dist/types/inputnumber/index.taro.d.ts +2 -0
  119. package/dist/types/inputnumber/inputnumber.taro.d.ts +22 -0
  120. package/dist/types/layout/index.taro.d.ts +2 -0
  121. package/dist/types/layout/layout.taro.d.ts +4 -0
  122. package/dist/types/navbar/index.taro.d.ts +2 -0
  123. package/dist/types/navbar/navbar.taro.d.ts +21 -0
  124. package/dist/types/noticebar/demo.d.ts +1 -0
  125. package/dist/types/noticebar/index.taro.d.ts +2 -0
  126. package/dist/types/noticebar/noticebar.d.ts +1 -1
  127. package/dist/types/noticebar/noticebar.taro.d.ts +23 -0
  128. package/dist/types/notify/Notification.d.ts +8 -7
  129. package/dist/types/notify/index.taro.d.ts +2 -0
  130. package/dist/types/notify/notify.taro.d.ts +10 -0
  131. package/dist/types/numberkeyboard/index.taro.d.ts +2 -0
  132. package/dist/types/numberkeyboard/numberkeyboard.taro.d.ts +20 -0
  133. package/dist/types/overlay/index.taro.d.ts +2 -0
  134. package/dist/types/overlay/overlay.taro.d.ts +12 -0
  135. package/dist/types/pagination/index.taro.d.ts +2 -0
  136. package/dist/types/pagination/pagination.taro.d.ts +19 -0
  137. package/dist/types/picker/index.taro.d.ts +2 -0
  138. package/dist/types/picker/picker.d.ts +1 -0
  139. package/dist/types/picker/picker.taro.d.ts +24 -0
  140. package/dist/types/picker/pickerSlot.d.ts +1 -0
  141. package/dist/types/popover/__tests__/popover.spec.d.ts +1 -0
  142. package/dist/types/popover/index.taro.d.ts +2 -0
  143. package/dist/types/popover/popover.d.ts +14 -7
  144. package/dist/types/popover/popover.taro.d.ts +21 -0
  145. package/dist/types/popup/index.taro.d.ts +2 -0
  146. package/dist/types/popup/popup.taro.d.ts +25 -0
  147. package/dist/types/price/index.taro.d.ts +2 -0
  148. package/dist/types/price/price.taro.d.ts +11 -0
  149. package/dist/types/progress/index.taro.d.ts +2 -0
  150. package/dist/types/progress/progress.taro.d.ts +26 -0
  151. package/dist/types/radio/index.taro.d.ts +2 -0
  152. package/dist/types/radio/radio.taro.d.ts +21 -0
  153. package/dist/types/radiogroup/index.taro.d.ts +2 -0
  154. package/dist/types/range/index.taro.d.ts +2 -0
  155. package/dist/types/range/range.taro.d.ts +25 -0
  156. package/dist/types/rate/index.taro.d.ts +2 -0
  157. package/dist/types/rate/rate.taro.d.ts +17 -0
  158. package/dist/types/row/index.taro.d.ts +2 -0
  159. package/dist/types/row/row.taro.d.ts +12 -0
  160. package/dist/types/searchbar/index.taro.d.ts +2 -0
  161. package/dist/types/searchbar/searchbar.taro.d.ts +60 -0
  162. package/dist/types/shortpassword/_test_/index.spec.d.ts +1 -0
  163. package/dist/types/shortpassword/index.taro.d.ts +2 -0
  164. package/dist/types/shortpassword/shortpassword.d.ts +3 -3
  165. package/dist/types/shortpassword/shortpassword.taro.d.ts +21 -0
  166. package/dist/types/sidenavbar/index.taro.d.ts +2 -0
  167. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +3 -0
  168. package/dist/types/sidenavbaritem/index.taro.d.ts +2 -0
  169. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +3 -0
  170. package/dist/types/signature/index.taro.d.ts +2 -0
  171. package/dist/types/signature/signature.taro.d.ts +11 -0
  172. package/dist/types/skeleton/index.taro.d.ts +2 -0
  173. package/dist/types/skeleton/skeleton.taro.d.ts +19 -0
  174. package/dist/types/step/index.taro.d.ts +2 -0
  175. package/dist/types/steps/index.taro.d.ts +2 -0
  176. package/dist/types/steps/steps.taro.d.ts +10 -0
  177. package/dist/types/subsidenavbar/index.taro.d.ts +2 -0
  178. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +3 -0
  179. package/dist/types/swiper/index.taro.d.ts +2 -0
  180. package/dist/types/swiper/swiper.taro.d.ts +27 -0
  181. package/dist/types/swiperitem/index.taro.d.ts +2 -0
  182. package/dist/types/switch/index.taro.d.ts +2 -0
  183. package/dist/types/switch/switch.taro.d.ts +14 -0
  184. package/dist/types/tabbar/index.taro.d.ts +2 -0
  185. package/dist/types/tabbar/tabbar.taro.d.ts +14 -0
  186. package/dist/types/tabbaritem/index.taro.d.ts +2 -0
  187. package/dist/types/tabbaritem/tabbaritem.taro.d.ts +17 -0
  188. package/dist/types/table/index.taro.d.ts +2 -0
  189. package/dist/types/table/table.taro.d.ts +3 -0
  190. package/dist/types/tabpane/index.taro.d.ts +2 -0
  191. package/dist/types/tabpane/tabpane.taro.d.ts +10 -0
  192. package/dist/types/tabs/index.taro.d.ts +2 -0
  193. package/dist/types/tabs/tabs.taro.d.ts +30 -0
  194. package/dist/types/tag/index.taro.d.ts +2 -0
  195. package/dist/types/tag/tag.taro.d.ts +16 -0
  196. package/dist/types/textarea/index.taro.d.ts +2 -0
  197. package/dist/types/textarea/textarea.taro.d.ts +18 -0
  198. package/dist/types/timedetail/index.taro.d.ts +2 -0
  199. package/dist/types/timedetail/timedetail.taro.d.ts +13 -0
  200. package/dist/types/timepannel/index.taro.d.ts +2 -0
  201. package/dist/types/timepannel/timepannel.taro.d.ts +8 -0
  202. package/dist/types/timeselect/index.taro.d.ts +2 -0
  203. package/dist/types/timeselect/timeselect.taro.d.ts +21 -0
  204. package/dist/types/toast/Notification.d.ts +6 -4
  205. package/dist/types/toast/__test__/toast.spec.d.ts +1 -0
  206. package/dist/types/toast/index.taro.d.ts +2 -0
  207. package/dist/types/toast/toast.taro.d.ts +11 -0
  208. package/dist/types/uploader/index.taro.d.ts +2 -0
  209. package/dist/types/uploader/uploader.d.ts +2 -2
  210. package/dist/types/uploader/uploader.taro.d.ts +68 -0
  211. package/dist/types/video/index.taro.d.ts +2 -0
  212. package/dist/types/virtuallist/index.taro.d.ts +2 -0
  213. package/dist/types/virtuallist/virtuallist.taro.d.ts +3 -0
  214. package/package.json +22 -4
@@ -5,6 +5,69 @@
5
5
  "css_prefix_text": "nut-icon-",
6
6
  "description": "nutui 3.0字体管理",
7
7
  "glyphs": [
8
+ {
9
+ "icon_id": "30188161",
10
+ "name": "image-error",
11
+ "font_class": "image-error",
12
+ "unicode": "e60a",
13
+ "unicode_decimal": 58890
14
+ },
15
+ {
16
+ "icon_id": "30187558",
17
+ "name": "image",
18
+ "font_class": "image",
19
+ "unicode": "e609",
20
+ "unicode_decimal": 58889
21
+ },
22
+ {
23
+ "icon_id": "27579944",
24
+ "name": "voice",
25
+ "font_class": "voice",
26
+ "unicode": "e608",
27
+ "unicode_decimal": 58888
28
+ },
29
+ {
30
+ "icon_id": "27574732",
31
+ "name": "play-stop",
32
+ "font_class": "play-stop",
33
+ "unicode": "e604",
34
+ "unicode_decimal": 58884
35
+ },
36
+ {
37
+ "icon_id": "27574733",
38
+ "name": "play-start",
39
+ "font_class": "play-start",
40
+ "unicode": "e605",
41
+ "unicode_decimal": 58885
42
+ },
43
+ {
44
+ "icon_id": "27574749",
45
+ "name": "play-double-back",
46
+ "font_class": "play-double-back",
47
+ "unicode": "e606",
48
+ "unicode_decimal": 58886
49
+ },
50
+ {
51
+ "icon_id": "27574750",
52
+ "name": "play-double-forward",
53
+ "font_class": "play-double-forward",
54
+ "unicode": "e607",
55
+ "unicode_decimal": 58887
56
+ },
57
+ {
58
+ "icon_id": "27276580",
59
+ "name": "dou-arrow-up",
60
+ "font_class": "dou-arrow-up",
61
+ "unicode": "e603",
62
+ "unicode_decimal": 58883
63
+ },
64
+ {
65
+ "icon_id": "1388116",
66
+ "name": "loading2",
67
+ "font_class": "loading1",
68
+ "unicode": "e614",
69
+ "unicode_decimal": 58900
70
+ },
8
71
  {
9
72
  "icon_id": "21445300",
10
73
  "name": "checked",
Binary file
Binary file
Binary file
@@ -194,6 +194,15 @@ $avatar-normal-height: 40px;
194
194
  $switch-close-bg-color: #ebebeb;
195
195
  $switch-close--cline-bg-color: #f0f0f0;
196
196
 
197
+ // toast
198
+ $toast-title-font-size: 16px !default;
199
+ $toast-text-font-size: 14px !default;
200
+ $toast-font-color: $white !default;
201
+ $toast-inner-padding: 24px 30px !default;
202
+ $toast-inner-bg-color: rgba(0, 0, 0, 0.8) !default;
203
+ $toast-inner-border-radius: 12px !default;
204
+ $toast-cover-bg-color: rgba(0, 0, 0, 0) !default;
205
+
197
206
  //backtop
198
207
  $backtop-border-color: #e0e0e0;
199
208
 
@@ -221,12 +230,19 @@ $notify-font-size: 14px;
221
230
  $notify-height: 44px;
222
231
 
223
232
  // NoticeBar
224
- $noticeBar-font-size: 14px !default;
225
- $noticeBar-height: 40px !default;
226
- $noticeBar-line-height: 24px !default;
227
- $noticeBar-left-icon-width: 16px !default;
228
- $noticeBar-right-icon-width: 16px !default;
229
-
233
+ $noticebar-background: rgba(251, 248, 220, 1) !default;
234
+ $noticebar-color: #d9500b !default;
235
+ $noticebar-font-size: 14px !default;
236
+ $noticebar-height: 40px !default;
237
+ $noticebar-line-height: 24px !default;
238
+ $noticebar-left-icon-width: 16px !default;
239
+ $noticebar-right-icon-width: 16px !default;
240
+ $noticebar-box-padding: 0 16px !default;
241
+ $noticebar-wrapable-padding: 16px !default;
242
+ $noticebar-lefticon-margin: 0px 10px !default;
243
+ $noticebar-righticon-margin: 0px 10px !default;
244
+
245
+ //notify
230
246
  $notify-base-background-color: linear-gradient(
231
247
  135deg,
232
248
  rgba(250, 44, 25, 1) 0%,
@@ -468,7 +484,7 @@ $indicator-color: $primary-color !default;
468
484
  $indicator-dot-color: $disable-color !default;
469
485
  $indicator-white: $white !default;
470
486
  $indicator-size: 18px !default;
471
- $indicator-dot-size: calc($indicator-size / 3) !default;
487
+ $indicator-dot-size: calc(#{$indicator-size} / 3) !default;
472
488
  $indicator-border-size: $indicator-size + 2 !default;
473
489
  $indicator-number-font-size: 10px !default;
474
490
  $indicator-dot-margin: 4px !default;
@@ -495,7 +511,6 @@ $divider-vertical-top: 2px !default;
495
511
  $divider-vertical-border-left: rgba(0, 0, 0, 0.06) !default;
496
512
  $divider-vertical-margin: 0 8px !default;
497
513
 
498
-
499
514
  // swiper
500
515
  $swiper-pagination-item-background-color: #ddd !default;
501
516
 
@@ -0,0 +1,20 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare type ItemType<T> = {
3
+ [key: string]: T;
4
+ };
5
+ export interface ActionSheetProps {
6
+ cancelTxt: string;
7
+ optionTag: string;
8
+ optionSubTag: string;
9
+ chooseTagValue: string;
10
+ title: string;
11
+ color: string;
12
+ description: string;
13
+ menuItems: ItemType<string | boolean>[];
14
+ cancel: () => void;
15
+ choose: (item: any, index: number) => void;
16
+ visible: boolean;
17
+ className: string;
18
+ style: React.CSSProperties;
19
+ }
20
+ export declare const ActionSheet: FunctionComponent<Partial<ActionSheetProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { ActionSheet } from './actionsheet.taro';
2
+ export default ActionSheet;
@@ -0,0 +1,34 @@
1
+ import React, { FunctionComponent, CSSProperties } from 'react';
2
+ import { RegionData, ChangeCallBack, CloseCallBack, AddressList } from './type';
3
+ export interface AddressProps {
4
+ className?: string;
5
+ style?: CSSProperties;
6
+ modelValue: boolean;
7
+ modelSelect: (string | number)[];
8
+ type: string;
9
+ customAddressTitle: string;
10
+ province: RegionData[];
11
+ city: RegionData[];
12
+ country: RegionData[];
13
+ town: RegionData[];
14
+ isShowCustomAddress: boolean;
15
+ existAddress: AddressList[];
16
+ existAddressTitle: string;
17
+ customAndExistTitle: string;
18
+ height: string | number;
19
+ defaultIcon: string;
20
+ selectedIcon: string;
21
+ closeBtnIcon: string;
22
+ backBtnIcon: string;
23
+ onSelected?: (prevExistAdd: AddressList, item: AddressList, copyExistAdd: AddressList[]) => void;
24
+ onClose?: (cal: CloseCallBack) => void;
25
+ closeMask?: (cal: {
26
+ closeWay: string;
27
+ }) => void;
28
+ switchModule?: (cal: {
29
+ type: string;
30
+ }) => void;
31
+ onChange?: (cal: ChangeCallBack) => void;
32
+ onTabChecked?: (cal: string) => void;
33
+ }
34
+ export declare const Address: FunctionComponent<Partial<AddressProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
@@ -0,0 +1,2 @@
1
+ import { Address } from './address.taro';
2
+ export default Address;
@@ -0,0 +1,12 @@
1
+ import React, { Component } from 'react';
2
+ export interface AnimatingNumbersProps {
3
+ }
4
+ declare type AnimatingNumbersStates = {};
5
+ export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
6
+ static defaultProps: AnimatingNumbersProps;
7
+ static displayName: string;
8
+ static CountUp: React.FunctionComponent<Partial<import("./countup.taro").CountUpProps>>;
9
+ constructor(props: AnimatingNumbersProps);
10
+ render(): JSX.Element;
11
+ }
12
+ export {};
@@ -0,0 +1,11 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface CountUpProps {
3
+ maxLen: number;
4
+ endNumber: string;
5
+ delaySpeed?: number;
6
+ easeSpeed: number;
7
+ thousands: boolean;
8
+ className: string;
9
+ style: React.CSSProperties;
10
+ }
11
+ export declare const CountUp: FunctionComponent<Partial<CountUpProps>>;
@@ -0,0 +1,2 @@
1
+ import { AnimatingNumbers } from './animatingnumbers.taro';
2
+ export default AnimatingNumbers;
@@ -0,0 +1,17 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface AvatarProps {
3
+ size: string;
4
+ icon: string;
5
+ shape: AvatarShape;
6
+ bgColor: string;
7
+ color: string;
8
+ prefixCls: string;
9
+ url: string;
10
+ className: string;
11
+ alt: string;
12
+ style: React.CSSProperties;
13
+ activeAvatar: (e: MouseEvent) => void;
14
+ onError: (e: any) => void;
15
+ }
16
+ export declare type AvatarShape = 'round' | 'square';
17
+ export declare const Avatar: FunctionComponent<Partial<AvatarProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { Avatar } from './avatar.taro';
2
+ export default Avatar;
@@ -0,0 +1,2 @@
1
+ import { AvatarGroup } from './avatargroup';
2
+ export default AvatarGroup;
@@ -0,0 +1,15 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface BackTopProps {
3
+ className?: string;
4
+ bottom: number;
5
+ right: number;
6
+ elId: string;
7
+ distance: number;
8
+ zIndex: number;
9
+ isAnimation: boolean;
10
+ duration: number;
11
+ children?: HTMLElement | any;
12
+ style?: React.CSSProperties;
13
+ onClick?: (event: MouseEvent) => void;
14
+ }
15
+ export declare const BackTop: FunctionComponent<Partial<BackTopProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
@@ -0,0 +1,2 @@
1
+ import { BackTop } from './backtop.taro';
2
+ export default BackTop;
@@ -0,0 +1,14 @@
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ export interface BadgeProps {
3
+ value: any;
4
+ dot: boolean;
5
+ max: number;
6
+ top: string;
7
+ right: string;
8
+ zIndex: string;
9
+ color: string;
10
+ icons: any;
11
+ children?: ReactNode;
12
+ }
13
+ export declare type BadgeType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
14
+ export declare const Badge: FunctionComponent<Partial<BadgeProps>>;
@@ -0,0 +1,2 @@
1
+ import { Badge } from './badge.taro';
2
+ export default Badge;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export interface BarrageProps {
3
+ className: string;
4
+ style: React.CSSProperties;
5
+ barrageList: Array<string>;
6
+ frequency: number;
7
+ loop: boolean;
8
+ speeds: number;
9
+ rows: number;
10
+ top: number;
11
+ }
12
+ export declare const Barrage: React.ForwardRefExoticComponent<Partial<BarrageProps> & React.RefAttributes<unknown>>;
@@ -0,0 +1,2 @@
1
+ import { Barrage } from './barrage.taro';
2
+ export default Barrage;
@@ -0,0 +1,20 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface ButtonProps {
3
+ className: string;
4
+ color: string;
5
+ shape: ButtonShape;
6
+ plain: boolean;
7
+ loading: boolean;
8
+ disabled: boolean;
9
+ style: React.CSSProperties;
10
+ type: ButtonType;
11
+ size: ButtonSize;
12
+ block: boolean;
13
+ icon: string;
14
+ children: any;
15
+ onClick: (e: MouseEvent) => void;
16
+ }
17
+ export declare type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger';
18
+ export declare type ButtonSize = 'large' | 'normal' | 'small';
19
+ export declare type ButtonShape = 'square' | 'round';
20
+ export declare const Button: FunctionComponent<Partial<ButtonProps>>;
@@ -0,0 +1,2 @@
1
+ import { Button } from './button.taro';
2
+ export default Button;
@@ -0,0 +1,14 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface CalendarProps {
3
+ type?: string;
4
+ isAutoBackFill?: boolean;
5
+ poppable?: boolean;
6
+ visible?: boolean;
7
+ title?: string;
8
+ defaultValue?: string | string[];
9
+ startDate?: string;
10
+ endDate?: string;
11
+ onClose?: () => void;
12
+ onChoose?: (param: string) => void;
13
+ }
14
+ export declare const Calendar: FunctionComponent<Partial<CalendarProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { Calendar } from './calendar.taro';
2
+ export default Calendar;
@@ -0,0 +1,17 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ declare type InputDate = string | string[];
3
+ export interface CalendarItemProps {
4
+ type?: string;
5
+ isAutoBackFill?: boolean;
6
+ poppable?: boolean;
7
+ visible?: boolean;
8
+ title?: string;
9
+ defaultValue: InputDate;
10
+ startDate?: InputDate;
11
+ endDate?: InputDate;
12
+ onChoose?: (data: any) => void;
13
+ onUpdate?: () => void;
14
+ onClose?: () => void;
15
+ }
16
+ export declare const CalendarItem: FunctionComponent<Partial<CalendarItemProps> & React.HTMLAttributes<HTMLDivElement>>;
17
+ export {};
@@ -0,0 +1,2 @@
1
+ import { CalendarItem } from './calendaritem.taro';
2
+ export default CalendarItem;
@@ -0,0 +1,17 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface CardProps {
3
+ imgUrl: string;
4
+ title: string;
5
+ price: string;
6
+ vipPrice: string;
7
+ shopDesc: string;
8
+ delivery: string;
9
+ shopName: string;
10
+ className: string;
11
+ style: React.CSSProperties;
12
+ prolistTpl: React.ReactNode;
13
+ shopTagTpl: React.ReactNode;
14
+ originTpl: React.ReactNode;
15
+ footerTpl: React.ReactNode;
16
+ }
17
+ export declare const Card: FunctionComponent<Partial<CardProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { Card } from './card.taro';
2
+ export default Card;
@@ -0,0 +1,20 @@
1
+ import React, { FunctionComponent, ReactNode } from 'react';
2
+ export interface CellProps {
3
+ title: ReactNode;
4
+ subTitle: ReactNode;
5
+ desc: string;
6
+ descTextAlign: string;
7
+ isLink: boolean;
8
+ icon: string;
9
+ roundRadius: string | number;
10
+ url: string;
11
+ to: string;
12
+ replace: boolean;
13
+ center: boolean;
14
+ size: string;
15
+ className: string;
16
+ iconSlot: ReactNode;
17
+ linkSlot: ReactNode;
18
+ click: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
19
+ }
20
+ export declare const Cell: FunctionComponent<Partial<CellProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'title'>>;
@@ -0,0 +1,2 @@
1
+ import { Cell } from './cell.taro';
2
+ export default Cell;
@@ -0,0 +1,10 @@
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ export interface CellGroupProps {
3
+ title: ReactNode;
4
+ desc: ReactNode;
5
+ titleSlot: ReactNode;
6
+ descSlot: ReactNode;
7
+ classPrefix: string;
8
+ children?: ReactNode;
9
+ }
10
+ export declare const CellGroup: FunctionComponent<Partial<CellGroupProps>>;
@@ -0,0 +1,2 @@
1
+ import { CellGroup } from './cellgroup.taro';
2
+ export default CellGroup;
@@ -0,0 +1,19 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ import CheckboxGroup from '../checkboxgroup';
3
+ export interface CheckBoxProps {
4
+ checked: boolean;
5
+ disabled: boolean;
6
+ textPosition: 'left' | 'right';
7
+ iconSize: string | number;
8
+ iconName: string;
9
+ iconActiveName: string;
10
+ iconIndeterminateName: string;
11
+ iconClassPrefix: string;
12
+ iconFontClassName: string;
13
+ indeterminate: boolean;
14
+ label: string;
15
+ onChange: (state: boolean, label: string) => void;
16
+ }
17
+ export declare const Checkbox: FunctionComponent<Partial<CheckBoxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
18
+ Group: typeof CheckboxGroup;
19
+ };
@@ -0,0 +1,2 @@
1
+ import { Checkbox } from './checkbox.taro';
2
+ export default Checkbox;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ export interface CheckBoxGroupProps {
3
+ disabled: boolean;
4
+ checkedValue: string[];
5
+ max: number | undefined;
6
+ onChange: (value: string[]) => void;
7
+ }
8
+ export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckBoxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
@@ -0,0 +1,2 @@
1
+ import { CheckboxGroup } from './checkboxgroup.taro';
2
+ export default CheckboxGroup;
@@ -0,0 +1,15 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface IColor {
3
+ [key: string]: string;
4
+ }
5
+ export interface CircleProgressProps {
6
+ progress: string | number;
7
+ strokeWidth?: string | number;
8
+ radius?: number | string;
9
+ strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit' | undefined;
10
+ circleColor?: object | string;
11
+ pathColor?: string;
12
+ clockwise?: boolean;
13
+ className?: string;
14
+ }
15
+ export declare const CircleProgress: FunctionComponent<CircleProgressProps & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { CircleProgress } from './circleprogress.taro';
2
+ export default CircleProgress;
@@ -0,0 +1,10 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ declare type EventType = 'row' | 'col';
3
+ export interface ColProps {
4
+ span: string | number;
5
+ offset: string | number;
6
+ gutter: string | number;
7
+ onClick: (e: any, type: EventType) => void;
8
+ }
9
+ export declare const Col: FunctionComponent<Partial<ColProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onClick'>>;
10
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Col } from './col.taro';
2
+ export default Col;
@@ -0,0 +1,12 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface CollapseProps {
3
+ activeName: Array<number | string> | number | string;
4
+ accordion: boolean;
5
+ icon: string;
6
+ iconSize: string;
7
+ iconColor: string;
8
+ rotate: number;
9
+ change: (isOpen: boolean, name: string) => void;
10
+ children?: React.ReactNode;
11
+ }
12
+ export declare const Collapse: FunctionComponent<Partial<CollapseProps>>;
@@ -0,0 +1,2 @@
1
+ import { Collapse } from './collapse.taro';
2
+ export default Collapse;
@@ -0,0 +1,2 @@
1
+ import { CollapseItem } from './collapseitem';
2
+ export default CollapseItem;
@@ -0,0 +1,12 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ import { BaseLang } from '@/locales/base';
3
+ export interface ConfigProviderProps {
4
+ locale: BaseLang;
5
+ }
6
+ export declare const defaultConfigRef: {
7
+ current: ConfigProviderProps;
8
+ };
9
+ export declare const setDefaultConfig: (config: ConfigProviderProps) => void;
10
+ export declare const getDefaultConfig: () => ConfigProviderProps;
11
+ export declare const useConfig: () => ConfigProviderProps;
12
+ export declare const ConfigProvider: FunctionComponent<Partial<ConfigProviderProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { ConfigProvider } from './configprovider.taro';
2
+ export default ConfigProvider;
@@ -0,0 +1,15 @@
1
+ import React, { FunctionComponent, CSSProperties } from 'react';
2
+ export interface CountDownProps {
3
+ className?: string;
4
+ style?: CSSProperties;
5
+ paused: boolean;
6
+ showDays: boolean;
7
+ showPlainText: boolean;
8
+ startTime: number | string;
9
+ endTime: number | string;
10
+ onEnd: () => void;
11
+ onPaused: (restTime: number) => void;
12
+ onRestart: (restTime: number) => void;
13
+ onUpdate: (restTime: any) => void;
14
+ }
15
+ export declare const CountDown: FunctionComponent<Partial<CountDownProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { CountDown } from './countdown.taro';
2
+ export default CountDown;
@@ -0,0 +1,27 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface PickerOption {
3
+ text: string | number;
4
+ value: string | number;
5
+ disabled?: string;
6
+ children?: PickerOption[];
7
+ className?: string | number;
8
+ }
9
+ export interface DatePickerProps {
10
+ modelValue: Date | null;
11
+ visible: boolean;
12
+ title: string;
13
+ type: 'date' | 'time' | 'year-month' | 'month-day' | 'datehour' | 'datetime';
14
+ isShowChinese: boolean;
15
+ minuteStep: number;
16
+ minDate: Date;
17
+ maxDate: Date;
18
+ threeDimensional: boolean;
19
+ className?: string;
20
+ style?: React.CSSProperties;
21
+ formatter: (type: string, option: PickerOption) => PickerOption;
22
+ filter: (type: string, option: PickerOption[]) => PickerOption[];
23
+ onCloseDatePicker: () => void;
24
+ onConfirmDatePicker: (values: (string | number)[], options: PickerOption[]) => void;
25
+ onChangeDatePicker: (columnIndex: string | number, values: (string | number)[], options: PickerOption[]) => void;
26
+ }
27
+ export declare const DatePicker: FunctionComponent<Partial<DatePickerProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { DatePicker } from './datepicker.taro';
2
+ export default DatePicker;
@@ -0,0 +1,2 @@
1
+ import { DialogComponent } from './config';
2
+ export declare const Dialog: DialogComponent;
@@ -0,0 +1,2 @@
1
+ import { Dialog } from './dialog.taro';
2
+ export default Dialog;
@@ -0,0 +1,12 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare type ContentPositionType = 'left' | 'center' | 'right';
3
+ export declare type DirectionType = 'horizontal' | 'vertical';
4
+ export interface DividerProps {
5
+ contentPosition: ContentPositionType;
6
+ dashed: boolean;
7
+ hairline: boolean;
8
+ styles?: React.CSSProperties;
9
+ className?: string;
10
+ direction?: DirectionType;
11
+ }
12
+ export declare const Divider: FunctionComponent<Partial<DividerProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { Divider } from './divider.taro';
2
+ export default Divider;