@nutui/nutui-react-taro 2.0.0-alpha.14 → 2.0.0-alpha.15

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 (172) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/esm/Address.js +2 -2
  3. package/dist/esm/Audio.js +2 -2
  4. package/dist/esm/Avatar.js +3 -3
  5. package/dist/esm/Calendar.js +3 -3
  6. package/dist/esm/CalendarItem.js +2 -2
  7. package/dist/esm/Card/style/style.css +1 -1
  8. package/dist/esm/Card.js +2 -4
  9. package/dist/esm/ConfigProvider.js +2 -2
  10. package/dist/esm/CountDown.js +2 -2
  11. package/dist/esm/DatePicker.js +3 -3
  12. package/dist/esm/Dialog.js +2 -2
  13. package/dist/esm/Empty.js +2 -2
  14. package/dist/esm/FixedNav.js +2 -2
  15. package/dist/esm/Grid.js +3 -3
  16. package/dist/esm/GridItem.js +2 -2
  17. package/dist/esm/Image.js +2 -2
  18. package/dist/esm/ImagePreview.js +1 -1
  19. package/dist/esm/InfiniteLoading/style/style.css +1 -0
  20. package/dist/esm/InfiniteLoading.js +10 -0
  21. package/dist/esm/Input.js +2 -2
  22. package/dist/esm/NumberKeyboard.js +2 -2
  23. package/dist/esm/Pagination.js +2 -2
  24. package/dist/esm/Picker.js +2 -2
  25. package/dist/esm/PullToRefresh.js +2 -2
  26. package/dist/esm/SearchBar.js +2 -2
  27. package/dist/esm/ShortPassword.js +2 -2
  28. package/dist/esm/Signature/style/index.js +1 -1
  29. package/dist/esm/Signature/style/style.css +1 -1
  30. package/dist/esm/Signature.js +1 -7
  31. package/dist/esm/Skeleton.js +4 -4
  32. package/dist/esm/Table.js +2 -2
  33. package/dist/esm/Tag/style/style.css +1 -1
  34. package/dist/esm/Tag.js +1 -1
  35. package/dist/esm/TextArea.js +2 -2
  36. package/dist/esm/TimeDetail/style/style.css +1 -1
  37. package/dist/esm/TimeDetail.js +3 -4
  38. package/dist/esm/TimeSelect/style/index.js +0 -1
  39. package/dist/esm/TimeSelect/style/style.css +1 -1
  40. package/dist/esm/TimeSelect.js +4 -7
  41. package/dist/esm/Uploader.js +2 -2
  42. package/dist/esm/WaterMark.js +2 -2
  43. package/dist/esm/{address.taro-1a8ab3f1.js → address.taro-cc879a1d.js} +1 -1
  44. package/dist/esm/{audio.taro-73011657.js → audio.taro-64b15071.js} +1 -1
  45. package/dist/esm/{avatar.taro-01536aff.js → avatar.taro-8a26cd6c.js} +1 -1
  46. package/dist/esm/{calendar.taro-10a6cb11.js → calendar.taro-02195ddb.js} +2 -2
  47. package/dist/esm/{calendaritem.taro-3e5f114e.js → calendaritem.taro-4230e5c4.js} +1 -1
  48. package/dist/esm/card.taro-92fe9733.js +64 -0
  49. package/dist/esm/{configprovider.taro-25758d9f.js → configprovider.taro-372b1525.js} +1 -1
  50. package/dist/esm/{countdown.taro-c399cc08.js → countdown.taro-8f19d21b.js} +1 -1
  51. package/dist/esm/{datepicker.taro-6304d59d.js → datepicker.taro-8c9230b6.js} +2 -2
  52. package/dist/esm/{dialog.taro-290eb9a6.js → dialog.taro-e5c2cb03.js} +1 -1
  53. package/dist/esm/{empty.taro-ca792f57.js → empty.taro-8345ac72.js} +1 -1
  54. package/dist/esm/{fixednav.taro-b9ecf0d5.js → fixednav.taro-6c69ad79.js} +1 -1
  55. package/dist/esm/{grid.taro-fbbd8618.js → grid.taro-9b63aca5.js} +1 -1
  56. package/dist/esm/{griditem.taro-b0c37077.js → griditem.taro-48971911.js} +1 -1
  57. package/dist/esm/{image.taro-767aa000.js → image.taro-fde6e649.js} +1 -1
  58. package/dist/esm/{imagepreview.taro-daa5a84f.js → imagepreview.taro-cfe0a4cc.js} +3 -2
  59. package/dist/esm/{infiniteloading.taro-f8f23ac6.js → infiniteloading.taro-53eeb1ec.js} +17 -33
  60. package/dist/esm/{input.taro-27d686c9.js → input.taro-69c08268.js} +1 -1
  61. package/dist/esm/{numberkeyboard.taro-ad8afaf9.js → numberkeyboard.taro-18879f04.js} +1 -1
  62. package/dist/esm/nutui-react.es.js +37 -39
  63. package/dist/esm/{pagination.taro-63607c3b.js → pagination.taro-592bca05.js} +1 -1
  64. package/dist/esm/{picker.taro-8ba4624c.js → picker.taro-6b672469.js} +1 -1
  65. package/dist/esm/{pulltorefresh.taro-5b36a881.js → pulltorefresh.taro-3719fdfb.js} +1 -1
  66. package/dist/esm/{searchbar.taro-09468fff.js → searchbar.taro-39351331.js} +1 -1
  67. package/dist/esm/{shortpassword.taro-eabbde1b.js → shortpassword.taro-cff61e4e.js} +1 -1
  68. package/dist/esm/{signature.taro-6e75a1ac.js → signature.taro-4f68516a.js} +19 -20
  69. package/dist/esm/{skeleton.taro-0552c2ec.js → skeleton.taro-ce714b06.js} +1 -1
  70. package/dist/esm/{table.taro-15a55c5d.js → table.taro-a20f15f2.js} +1 -1
  71. package/dist/esm/tag.taro-614758eb.js +76 -0
  72. package/dist/esm/{textarea.taro-c110565e.js → textarea.taro-593cd471.js} +1 -1
  73. package/dist/esm/timedetail.taro-d7aa4c1b.js +48 -0
  74. package/dist/esm/timeselect.taro-9e37e648.js +114 -0
  75. package/dist/esm/types/src/locales/base.d.ts +1 -1
  76. package/dist/esm/types/src/packages/card/card.d.ts +8 -9
  77. package/dist/esm/types/src/packages/card/card.taro.d.ts +8 -9
  78. package/dist/esm/types/src/packages/card/index.d.ts +1 -0
  79. package/dist/esm/types/src/packages/card/index.taro.d.ts +1 -0
  80. package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
  81. package/dist/esm/types/src/packages/imagepreview/imagepreview.taro.d.ts +1 -0
  82. package/dist/esm/types/src/packages/infiniteloading/demo.taro.d.ts +2 -2
  83. package/dist/esm/types/src/packages/infiniteloading/index.d.ts +3 -2
  84. package/dist/esm/types/src/packages/infiniteloading/index.taro.d.ts +3 -2
  85. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.d.ts +9 -14
  86. package/dist/esm/types/src/packages/infiniteloading/infiniteloading.taro.d.ts +8 -12
  87. package/dist/esm/types/src/packages/nutui.react.build.d.ts +2 -3
  88. package/dist/esm/types/src/packages/nutui.react.d.ts +2 -4
  89. package/dist/esm/types/src/packages/nutui.react.scss.d.ts +0 -1
  90. package/dist/esm/types/src/packages/nutui.react.taro.d.ts +2 -4
  91. package/dist/esm/types/src/packages/nutui.react.taro.scss.d.ts +0 -1
  92. package/dist/esm/types/src/packages/nutui.taro.react.build.d.ts +2 -3
  93. package/dist/esm/types/src/packages/signature/index.d.ts +1 -0
  94. package/dist/esm/types/src/packages/signature/index.taro.d.ts +1 -0
  95. package/dist/esm/types/src/packages/signature/signature.d.ts +10 -8
  96. package/dist/esm/types/src/packages/signature/signature.taro.d.ts +7 -12
  97. package/dist/esm/types/src/packages/tag/index.d.ts +1 -0
  98. package/dist/esm/types/src/packages/tag/index.taro.d.ts +1 -0
  99. package/dist/esm/types/src/packages/tag/tag.d.ts +4 -6
  100. package/dist/esm/types/src/packages/tag/tag.taro.d.ts +4 -6
  101. package/dist/esm/types/src/packages/timedetail/index.d.ts +1 -2
  102. package/dist/esm/types/src/packages/timedetail/timedetail.d.ts +9 -11
  103. package/dist/esm/types/src/packages/timedetail/timedetail.taro.d.ts +9 -11
  104. package/dist/esm/types/src/packages/timeselect/demo.taro.d.ts +0 -4
  105. package/dist/esm/types/src/packages/timeselect/index.d.ts +1 -0
  106. package/dist/esm/types/src/packages/timeselect/index.taro.d.ts +1 -0
  107. package/dist/esm/types/src/packages/timeselect/timeselect.d.ts +25 -20
  108. package/dist/esm/types/src/packages/timeselect/timeselect.taro.d.ts +25 -20
  109. package/dist/esm/{uploader.taro-fbd05e20.js → uploader.taro-5ad88f83.js} +1 -1
  110. package/dist/esm/{watermark.taro-e2245bb1.js → watermark.taro-b6b1ae18.js} +1 -1
  111. package/dist/locales/base.d.ts +1 -1
  112. package/dist/locales/base.js +1 -1
  113. package/dist/locales/en-US.js +2 -2
  114. package/dist/locales/id-ID.js +2 -2
  115. package/dist/locales/tr-TR.js +2 -2
  116. package/dist/locales/zh-CN.js +2 -2
  117. package/dist/locales/zh-TW.js +2 -2
  118. package/dist/locales/zh-UG.js +2 -2
  119. package/dist/nutui.react.es.js +556 -602
  120. package/dist/nutui.react.umd.js +555 -601
  121. package/dist/packages/card/card.scss +8 -14
  122. package/dist/packages/infiniteloading/infiniteloading.scss +2 -25
  123. package/dist/packages/signature/signature.scss +1 -18
  124. package/dist/packages/tag/tag.scss +10 -17
  125. package/dist/packages/timedetail/timedetail.scss +12 -37
  126. package/dist/packages/timeselect/timeselect.scss +15 -44
  127. package/dist/style.css +1 -1
  128. package/dist/style.mjs +1 -1
  129. package/dist/styles/themes/default.scss +0 -1
  130. package/dist/styles/variables-jmapp.scss +50 -97
  131. package/dist/styles/variables.scss +51 -98
  132. package/dist/types/index.d.ts +2 -3
  133. package/dist/types/locales/base.d.ts +1 -1
  134. package/dist/types/packages/card/card.taro.d.ts +57 -14
  135. package/dist/types/packages/card/index.taro.d.ts +1 -0
  136. package/dist/types/packages/configprovider/types.d.ts +1 -1
  137. package/dist/types/packages/imagepreview/imagepreview.taro.d.ts +5 -0
  138. package/dist/types/packages/infiniteloading/index.taro.d.ts +3 -2
  139. package/dist/types/packages/infiniteloading/infiniteloading.taro.d.ts +52 -16
  140. package/dist/types/packages/signature/index.taro.d.ts +1 -0
  141. package/dist/types/packages/signature/signature.taro.d.ts +32 -17
  142. package/dist/types/packages/tag/index.taro.d.ts +1 -0
  143. package/dist/types/packages/tag/tag.taro.d.ts +52 -14
  144. package/dist/types/packages/timedetail/timedetail.taro.d.ts +9 -11
  145. package/dist/types/packages/timeselect/index.taro.d.ts +1 -0
  146. package/dist/types/packages/timeselect/timeselect.taro.d.ts +62 -21
  147. package/dist/types/packages/toast/toast.taro.d.ts +60 -12
  148. package/package.json +1 -1
  149. package/dist/esm/Infiniteloading/style/style.css +0 -1
  150. package/dist/esm/Infiniteloading.js +0 -12
  151. package/dist/esm/TimePannel/style/css.js +0 -1
  152. package/dist/esm/TimePannel/style/index.js +0 -2
  153. package/dist/esm/TimePannel/style/style.css +0 -1
  154. package/dist/esm/TimePannel.js +0 -8
  155. package/dist/esm/card.taro-2080f4d2.js +0 -51
  156. package/dist/esm/tag.taro-1b4134a5.js +0 -92
  157. package/dist/esm/timedetail.taro-8d2acbbf.js +0 -41
  158. package/dist/esm/timepannel.taro-ee4c5dfa.js +0 -22
  159. package/dist/esm/timeselect.taro-069deedd.js +0 -133
  160. package/dist/esm/types/src/packages/timedetail/demo.d.ts +0 -3
  161. package/dist/esm/types/src/packages/timedetail/demo.taro.d.ts +0 -3
  162. package/dist/esm/types/src/packages/timepannel/demo.d.ts +0 -3
  163. package/dist/esm/types/src/packages/timepannel/demo.taro.d.ts +0 -3
  164. package/dist/esm/types/src/packages/timepannel/index.d.ts +0 -2
  165. package/dist/esm/types/src/packages/timepannel/index.taro.d.ts +0 -2
  166. package/dist/esm/types/src/packages/timepannel/timepannel.d.ts +0 -8
  167. package/dist/esm/types/src/packages/timepannel/timepannel.taro.d.ts +0 -8
  168. package/dist/packages/timepannel/timepannel.scss +0 -17
  169. package/dist/types/packages/timepannel/index.taro.d.ts +0 -2
  170. package/dist/types/packages/timepannel/timepannel.taro.d.ts +0 -8
  171. /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/css.js +0 -0
  172. /package/dist/esm/{Infiniteloading → InfiniteLoading}/style/index.js +0 -0
@@ -52,7 +52,7 @@ import Badge from '@/packages/badge/index.taro';
52
52
  import Dialog from '@/packages/dialog/index.taro';
53
53
  import Drag from '@/packages/drag/index.taro';
54
54
  import Empty from '@/packages/empty/index.taro';
55
- import Infiniteloading from '@/packages/infiniteloading/index.taro';
55
+ import InfiniteLoading from '@/packages/infiniteloading/index.taro';
56
56
  import NoticeBar from '@/packages/noticebar/index.taro';
57
57
  import Notify from '@/packages/notify/index.taro';
58
58
  import Popover from '@/packages/popover/index.taro';
@@ -87,7 +87,6 @@ import Video from '@/packages/video/index.taro';
87
87
  import Barrage from '@/packages/barrage/index.taro';
88
88
  import Card from '@/packages/card/index.taro';
89
89
  import TimeDetail from '@/packages/timedetail/index.taro';
90
- import TimePannel from '@/packages/timepannel/index.taro';
91
90
  import TimeSelect from '@/packages/timeselect/index.taro';
92
91
  import TrendArrow from '@/packages/trendarrow/index.taro';
93
92
  import WaterMark from '@/packages/watermark/index.taro';
@@ -180,8 +179,7 @@ import '@/packages/video/video.scss';
180
179
  import '@/packages/barrage/barrage.scss';
181
180
  import '@/packages/card/card.scss';
182
181
  import '@/packages/timedetail/timedetail.scss';
183
- import '@/packages/timepannel/timepannel.scss';
184
182
  import '@/packages/timeselect/timeselect.scss';
185
183
  import '@/packages/trendarrow/trendarrow.scss';
186
184
  import '@/packages/watermark/watermark.scss';
187
- export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, Infiniteloading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimePannel, TimeSelect, TrendArrow, WaterMark };
185
+ export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
@@ -87,7 +87,6 @@ import '@/packages/video/video.scss';
87
87
  import '@/packages/barrage/barrage.scss';
88
88
  import '@/packages/card/card.scss';
89
89
  import '@/packages/timedetail/timedetail.scss';
90
- import '@/packages/timepannel/timepannel.scss';
91
90
  import '@/packages/timeselect/timeselect.scss';
92
91
  import '@/packages/trendarrow/trendarrow.scss';
93
92
  import '@/packages/watermark/watermark.scss';
@@ -52,7 +52,7 @@ import Badge from '@/packages/badge/index.taro';
52
52
  import Dialog from '@/packages/dialog/index.taro';
53
53
  import Drag from '@/packages/drag/index.taro';
54
54
  import Empty from '@/packages/empty/index.taro';
55
- import Infiniteloading from '@/packages/infiniteloading/index.taro';
55
+ import InfiniteLoading from '@/packages/infiniteloading/index.taro';
56
56
  import NoticeBar from '@/packages/noticebar/index.taro';
57
57
  import Notify from '@/packages/notify/index.taro';
58
58
  import Popover from '@/packages/popover/index.taro';
@@ -87,8 +87,7 @@ import Video from '@/packages/video/index.taro';
87
87
  import Barrage from '@/packages/barrage/index.taro';
88
88
  import Card from '@/packages/card/index.taro';
89
89
  import TimeDetail from '@/packages/timedetail/index.taro';
90
- import TimePannel from '@/packages/timepannel/index.taro';
91
90
  import TimeSelect from '@/packages/timeselect/index.taro';
92
91
  import TrendArrow from '@/packages/trendarrow/index.taro';
93
92
  import WaterMark from '@/packages/watermark/index.taro';
94
- export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, Infiniteloading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimePannel, TimeSelect, TrendArrow, WaterMark };
93
+ export { Button, Cell, CellGroup, ConfigProvider, Image, Overlay, Col, Divider, Grid, GridItem, Layout, Row, Sticky, BackTop, Elevator, FixedNav, NavBar, SideNavBar, SideNavBarItem, SubSideNavBar, Tabbar, TabbarItem, TabPane, Tabs, Address, Calendar, CalendarItem, Cascader, Checkbox, CheckboxGroup, DatePicker, Form, FormItem, Input, InputNumber, Menu, MenuItem, NumberKeyboard, Picker, Radio, RadioGroup, Range, Rate, SearchBar, ShortPassword, Signature, Switch, TextArea, Uploader, ActionSheet, Badge, Dialog, Drag, Empty, InfiniteLoading, NoticeBar, Notify, Popover, PullToRefresh, Skeleton, Swipe, Popup, Toast, Animate, AnimatingNumbers, Audio, Avatar, AvatarGroup, CircleProgress, Collapse, CollapseItem, CountDown, Ellipsis, ImagePreview, Indicator, VirtualList, Pagination, Price, Progress, Step, Steps, Swiper, SwiperItem, Table, Tag, Video, Barrage, Card, TimeDetail, TimeSelect, TrendArrow, WaterMark };
@@ -1,2 +1,3 @@
1
1
  import { Signature } from './signature';
2
+ export type { SignatureProps, FileType } from './signature';
2
3
  export default Signature;
@@ -1,2 +1,3 @@
1
1
  import { Signature } from './signature.taro';
2
+ export type { SignatureProps, FileType } from './signature.taro';
2
3
  export default Signature;
@@ -1,13 +1,15 @@
1
- import React, { FunctionComponent } from 'react';
2
- export interface SignatureProps {
3
- type: string;
1
+ import React, { ReactNode } from 'react';
2
+ import { BasicComponent } from '@/utils/typings';
3
+ export interface FileType {
4
+ jpg: string;
5
+ png: string;
6
+ }
7
+ export interface SignatureProps extends BasicComponent {
8
+ type: keyof FileType;
4
9
  lineWidth: number;
5
10
  strokeStyle: string;
6
- unSupportTpl: string;
7
- className: string;
8
- confirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
9
- clear?: () => void;
11
+ unsupported: ReactNode;
10
12
  onConfirm?: (canvas: HTMLCanvasElement, dataurl: string) => void;
11
13
  onClear?: () => void;
12
14
  }
13
- export declare const Signature: FunctionComponent<Partial<SignatureProps> & React.HTMLAttributes<HTMLDivElement>>;
15
+ export declare const Signature: React.ForwardRefExoticComponent<Partial<SignatureProps> & React.RefAttributes<unknown>>;
@@ -1,21 +1,16 @@
1
- import React, { FunctionComponent } from 'react';
2
- interface FileType {
3
- /** jpg 图片 */
4
- jpg: any;
5
- /** png 图片 */
6
- png: any;
1
+ import React from 'react';
2
+ import { BasicComponent } from '@/utils/typings';
3
+ export interface FileType {
4
+ jpg: string;
5
+ png: string;
7
6
  }
8
- export interface SignatureProps {
7
+ export interface SignatureProps extends BasicComponent {
9
8
  canvasId: string;
10
9
  type: keyof FileType;
11
10
  lineWidth: number;
12
11
  strokeStyle: string;
13
12
  unSupportTpl: string;
14
- className: string;
15
- confirm?: (dataurl: string) => void;
16
- clear?: () => void;
17
13
  onConfirm?: (dataurl: string) => void;
18
14
  onClear?: () => void;
19
15
  }
20
- export declare const Signature: FunctionComponent<Partial<SignatureProps> & React.HTMLAttributes<HTMLDivElement>>;
21
- export {};
16
+ export declare const Signature: React.ForwardRefExoticComponent<Partial<SignatureProps> & React.RefAttributes<unknown>>;
@@ -1,2 +1,3 @@
1
1
  import { Tag } from './tag';
2
+ export type { TagType, TagProps } from './tag';
2
3
  export default Tag;
@@ -1,2 +1,3 @@
1
1
  import { Tag } from './tag.taro';
2
+ export type { TagType, TagProps } from './tag.taro';
2
3
  export default Tag;
@@ -1,18 +1,16 @@
1
- import React, { FunctionComponent } from 'react';
1
+ import { FunctionComponent, ReactNode } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3
4
  export interface TagProps extends BasicComponent {
4
5
  type: TagType;
6
+ background: string;
5
7
  color: string;
6
- textColor: string;
7
8
  plain: boolean;
8
9
  round: boolean;
9
10
  mark: boolean;
10
11
  closeable: boolean;
11
- closeIcon: React.ReactNode;
12
- prefixCls: string;
12
+ closeIcon: ReactNode;
13
13
  onClick: (e: MouseEvent) => void;
14
14
  onClose: (e?: any) => void;
15
- children?: React.ReactNode;
16
15
  }
17
- export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
18
16
  export declare const Tag: FunctionComponent<Partial<TagProps>>;
@@ -1,18 +1,16 @@
1
- import React, { FunctionComponent } from 'react';
1
+ import { FunctionComponent, ReactNode } from 'react';
2
2
  import { BasicComponent } from '@/utils/typings';
3
+ export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3
4
  export interface TagProps extends BasicComponent {
4
5
  type: TagType;
6
+ background: string;
5
7
  color: string;
6
- textColor: string;
7
8
  plain: boolean;
8
9
  round: boolean;
9
10
  mark: boolean;
10
11
  closeable: boolean;
11
- closeIcon: React.ReactNode;
12
- prefixCls: string;
12
+ closeIcon: ReactNode;
13
13
  onClick: (e: MouseEvent) => void;
14
14
  onClose: (e?: any) => void;
15
- children?: React.ReactNode;
16
15
  }
17
- export type TagType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
18
16
  export declare const Tag: FunctionComponent<Partial<TagProps>>;
@@ -1,3 +1,2 @@
1
- import { TimeDetail, TimeType } from './timedetail';
1
+ import { TimeDetail } from './timedetail';
2
2
  export default TimeDetail;
3
- export type { TimeType };
@@ -1,13 +1,11 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export interface TimeType {
3
- key?: string | number;
4
- list: string[];
2
+ import { BasicComponent } from '@/utils/typings';
3
+ import { TimeType, DateType, OptionKeyType } from '@/packages/timeselect';
4
+ export interface TimeDetailProps extends BasicComponent {
5
+ activeDate: string;
6
+ activeTime: DateType[];
7
+ options: DateType[];
8
+ optionKey: OptionKeyType;
9
+ onSelect: (time: TimeType) => void;
5
10
  }
6
- export interface TimeDetailProps {
7
- className?: string;
8
- currentKey: string | number;
9
- currentTime: TimeType[];
10
- times: TimeType[];
11
- select: (time: string) => void;
12
- }
13
- export declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & React.HTMLAttributes<HTMLDivElement>>;
11
+ export declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'>>;
@@ -1,13 +1,11 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- export interface TimeType {
3
- key?: string | number;
4
- list: string[];
2
+ import { BasicComponent } from '@/utils/typings';
3
+ import { TimeType, DateType, OptionKeyType } from '@/packages/timeselect/index.taro';
4
+ export interface TimeDetailProps extends BasicComponent {
5
+ activeDate: string;
6
+ activeTime: DateType[];
7
+ options: DateType[];
8
+ optionKey: OptionKeyType;
9
+ onSelect: (time: TimeType) => void;
5
10
  }
6
- export interface TimeDetailProps {
7
- className?: string;
8
- currentKey: string | number;
9
- currentTime: TimeType[];
10
- times: TimeType[];
11
- select: (time: string) => void;
12
- }
13
- export declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & React.HTMLAttributes<HTMLDivElement>>;
11
+ export declare const TimeDetail: FunctionComponent<Partial<TimeDetailProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onSelect'>>;
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- export interface TimeType {
3
- key?: string | number;
4
- list: string[];
5
- }
6
2
  declare const TimeSelectDemo: () => JSX.Element;
7
3
  export default TimeSelectDemo;
@@ -1,2 +1,3 @@
1
1
  import { TimeSelect } from './timeselect';
2
+ export type { TimeSelectProps, DateType, OptionKeyType, TimeType, } from './timeselect';
2
3
  export default TimeSelect;
@@ -1,2 +1,3 @@
1
1
  import { TimeSelect } from './timeselect.taro';
2
+ export type { TimeSelectProps, DateType, OptionKeyType, TimeType, } from './timeselect.taro';
2
3
  export default TimeSelect;
@@ -1,25 +1,30 @@
1
- import React, { FunctionComponent } from 'react';
2
- import { TimeType } from '@/packages/timedetail/timedetail';
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ import { BasicComponent } from '@/utils/typings';
3
+ export interface TimeType {
4
+ value?: string;
5
+ text?: string;
6
+ [prop: string]: any;
7
+ }
3
8
  export interface DateType {
4
- paneKey?: string | number;
5
- date: string;
9
+ value?: string;
10
+ text?: string;
11
+ children?: TimeType[];
12
+ [prop: string]: any;
13
+ }
14
+ export interface OptionKeyType {
15
+ valueKey: string;
16
+ textKey: string;
17
+ childrenKey: string;
6
18
  }
7
- export interface TimeSelectProps {
8
- className?: string;
9
- style: React.CSSProperties;
10
- visible?: boolean;
11
- height?: string;
19
+ export interface TimeSelectProps extends BasicComponent {
20
+ visible: boolean;
12
21
  multiple?: boolean;
13
- title?: string;
14
- currentKey: string | number;
15
- currentTime: TimeType[];
16
- dates: DateType[];
17
- times: TimeType[];
18
- select?: (selectTimeData: TimeType[]) => void;
19
- pannelChange?: (pannelKey: string | number, selectTimeData: TimeType[]) => void;
20
- timeChange?: (time: string, selectTimeData: TimeType[]) => void;
21
- onSelect?: (selectTimeData: TimeType[]) => void;
22
- onPannelChange?: (pannelKey: string | number, selectTimeData: TimeType[]) => void;
23
- onTimeChange?: (time: string, selectTimeData: TimeType[]) => void;
22
+ title?: ReactNode;
23
+ defaultValue: DateType[];
24
+ options: DateType[];
25
+ optionKey: OptionKeyType;
26
+ onSelect?: (value: DateType[]) => void;
27
+ onDateChange?: (date: DateType, value: DateType[]) => void;
28
+ onTimeChange?: (time: TimeType, value: DateType[]) => void;
24
29
  }
25
30
  export declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
@@ -1,25 +1,30 @@
1
- import React, { FunctionComponent } from 'react';
2
- import { TimeType } from '@/packages/timedetail/timedetail.taro';
1
+ import { FunctionComponent, ReactNode } from 'react';
2
+ import { BasicComponent } from '@/utils/typings';
3
+ export interface TimeType {
4
+ value?: string;
5
+ text?: string;
6
+ [prop: string]: any;
7
+ }
3
8
  export interface DateType {
4
- paneKey?: string | number;
5
- date: string;
9
+ value?: string;
10
+ text?: string;
11
+ children?: TimeType[];
12
+ [prop: string]: any;
13
+ }
14
+ export interface OptionKeyType {
15
+ valueKey: string;
16
+ textKey: string;
17
+ childrenKey: string;
6
18
  }
7
- export interface TimeSelectProps {
8
- className?: string;
9
- style: React.CSSProperties;
10
- visible?: boolean;
11
- height?: string;
19
+ export interface TimeSelectProps extends BasicComponent {
20
+ visible: boolean;
12
21
  multiple?: boolean;
13
- title?: string;
14
- currentKey: string | number;
15
- currentTime: TimeType[];
16
- dates: DateType[];
17
- times: TimeType[];
18
- select?: (selectTimeData: TimeType[]) => void;
19
- pannelChange?: (pannelKey: string | number, selectTimeData: TimeType[]) => void;
20
- timeChange?: (time: string, selectTimeData: TimeType[]) => void;
21
- onSelect?: (selectTimeData: TimeType[]) => void;
22
- onPannelChange?: (pannelKey: string | number, selectTimeData: TimeType[]) => void;
23
- onTimeChange?: (time: string, selectTimeData: TimeType[]) => void;
22
+ title?: ReactNode;
23
+ defaultValue: DateType[];
24
+ options: DateType[];
25
+ optionKey: OptionKeyType;
26
+ onSelect?: (value: DateType[]) => void;
27
+ onDateChange?: (date: DateType, value: DateType[]) => void;
28
+ onTimeChange?: (time: TimeType, value: DateType[]) => void;
24
29
  }
25
30
  export declare const TimeSelect: FunctionComponent<Partial<TimeSelectProps>>;
@@ -11,7 +11,7 @@ import { Failure, Loading, Link, Del, Photograph } from "@nutui/icons-react-taro
11
11
  import { Image } from "@tarojs/components";
12
12
  import { B as Button } from "./button.taro-01eae688.js";
13
13
  import { P as Progress } from "./progress.taro-437b9f6a.js";
14
- import { u as useConfig } from "./configprovider.taro-25758d9f.js";
14
+ import { u as useConfig } from "./configprovider.taro-372b1525.js";
15
15
  import { i as isPromise } from "./index-0a89a47b.js";
16
16
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
17
17
  class UploadOptions {
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect } from "react";
2
2
  import { getSystemInfo, createOffscreenCanvas } from "@tarojs/taro";
3
3
  import classNames from "classnames";
4
- import { u as useConfig } from "./configprovider.taro-25758d9f.js";
4
+ import { u as useConfig } from "./configprovider.taro-372b1525.js";
5
5
  import { C as ComponentDefaults } from "./typings-11d83a22.js";
6
6
  const defaultProps = {
7
7
  ...ComponentDefaults,
@@ -64,7 +64,7 @@ export interface BaseLang {
64
64
  };
65
65
  signature: {
66
66
  reSign: string;
67
- unSupportTpl: string;
67
+ unsupported: string;
68
68
  };
69
69
  ecard: {
70
70
  chooseText: string;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,7 +67,7 @@ const o = {
67
67
  },
68
68
  signature: {
69
69
  reSign: "Re Sign",
70
- unSupportTpl: "Sorry, the current browser doesn't support canvas, so we can't use this control!"
70
+ unsupported: "Sorry, the current browser doesn't support canvas, so we can't use this control!"
71
71
  },
72
72
  ecard: {
73
73
  chooseText: "Select",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,7 +67,7 @@ const n = {
67
67
  },
68
68
  signature: {
69
69
  reSign: "Masuk Kembali",
70
- unSupportTpl: "Maaf, browser Anda saat ini tidak mendukung Canvas, sehingga kita tidak dapat menggunakan kontrol ini!"
70
+ unsupported: "Maaf, browser Anda saat ini tidak mendukung Canvas, sehingga kita tidak dapat menggunakan kontrol ini!"
71
71
  },
72
72
  ecard: {
73
73
  chooseText: "Pilih",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -75,7 +75,7 @@ const i = {
75
75
  },
76
76
  signature: {
77
77
  reSign: "Yeniden imzala",
78
- unSupportTpl: "Üzgünüz, mevcut tarayıcı Canvas'ı desteklemiyor ve bu kontrol kullanılamıyor!"
78
+ unsupported: "Üzgünüz, mevcut tarayıcı Canvas'ı desteklemiyor ve bu kontrol kullanılamıyor!"
79
79
  },
80
80
  ecard: {
81
81
  chooseText: "Lütfen eCard değerini seçin",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -69,7 +69,7 @@ const a = {
69
69
  },
70
70
  signature: {
71
71
  reSign: "重签",
72
- unSupportTpl: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
72
+ unsupported: "对不起,当前浏览器不支持Canvas,无法使用本控件!"
73
73
  },
74
74
  ecard: {
75
75
  chooseText: "请选择电子卡面值",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,7 +67,7 @@ const a = {
67
67
  },
68
68
  signature: {
69
69
  reSign: "重簽",
70
- unSupportTpl: "對不起,當前瀏覽器不支持Canvas,無法使用本控制項!"
70
+ unsupported: "對不起,當前瀏覽器不支持Canvas,無法使用本控制項!"
71
71
  },
72
72
  ecard: {
73
73
  chooseText: "請選擇電子卡面值",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react-taro v2.0.0-alpha.14 Fri Jun 02 2023 17:15:09 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react-taro v2.0.0-alpha.15 Wed Jun 07 2023 16:24:42 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -67,7 +67,7 @@ const a = {
67
67
  },
68
68
  signature: {
69
69
  reSign: "قايتا",
70
- unSupportTpl: "كەچۈرۈڭ، بۇ توركۆرگۈچ Canvas قوللىمايدىكەن"
70
+ unsupported: "كەچۈرۈڭ، بۇ توركۆرگۈچ Canvas قوللىمايدىكەن"
71
71
  },
72
72
  ecard: {
73
73
  chooseText: "قىممەتنى تاللاڭ",