@nutui/nutui-react-taro 1.3.0 → 1.3.1-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 (157) hide show
  1. package/dist/esm/Address.js +4 -4
  2. package/dist/esm/Audio/style/index.js +4 -0
  3. package/dist/esm/Audio.js +18 -0
  4. package/dist/esm/AvatarGroup.js +4 -4
  5. package/dist/esm/Calendar/style/index.js +1 -2
  6. package/dist/esm/Calendar.js +6 -5
  7. package/dist/esm/CalendarItem.js +5 -5
  8. package/dist/esm/Cascader/style/index.js +2 -0
  9. package/dist/esm/Cascader.js +14 -0
  10. package/dist/esm/ConfigProvider.js +3 -3
  11. package/dist/esm/CountDown.js +4 -4
  12. package/dist/esm/DatePicker.js +4 -4
  13. package/dist/esm/Dialog.js +4 -4
  14. package/dist/esm/Empty.js +4 -4
  15. package/dist/esm/FixedNav.js +4 -4
  16. package/dist/esm/Grid/style/index.js +2 -0
  17. package/dist/esm/Grid.js +7 -0
  18. package/dist/esm/GridItem/style/index.js +2 -0
  19. package/dist/esm/GridItem.js +8 -0
  20. package/dist/esm/ImagePreview/style/index.js +2 -0
  21. package/dist/esm/ImagePreview.js +15 -0
  22. package/dist/esm/Infiniteloading.js +4 -4
  23. package/dist/esm/Input.js +4 -4
  24. package/dist/esm/Menu/style/index.js +3 -0
  25. package/dist/esm/Menu.js +7 -0
  26. package/dist/esm/MenuItem/style/index.js +3 -0
  27. package/dist/esm/MenuItem.js +11 -0
  28. package/dist/esm/NoticeBar.js +3 -2
  29. package/dist/esm/{Notification-dccc7625.js → Notification-422905bd.js} +2 -1
  30. package/dist/esm/Notify.js +3 -2
  31. package/dist/esm/NumberKeyboard.js +4 -4
  32. package/dist/esm/Pagination.js +4 -4
  33. package/dist/esm/Picker.js +4 -4
  34. package/dist/esm/Popover.js +3 -2
  35. package/dist/esm/Range.js +7 -5
  36. package/dist/esm/SearchBar.js +4 -4
  37. package/dist/esm/ShortPassword.js +4 -4
  38. package/dist/esm/SideNavBar.js +4 -4
  39. package/dist/esm/Signature.js +4 -4
  40. package/dist/esm/Swipe/style/index.js +2 -0
  41. package/dist/esm/Swipe.js +7 -0
  42. package/dist/esm/Swiper.js +3 -2
  43. package/dist/esm/Table.js +4 -4
  44. package/dist/esm/TextArea.js +4 -4
  45. package/dist/esm/TimeDetail.js +4 -4
  46. package/dist/esm/TimePannel.js +4 -4
  47. package/dist/esm/TimeSelect.js +4 -4
  48. package/dist/esm/Toast.js +4 -3
  49. package/dist/esm/Uploader.js +4 -4
  50. package/dist/esm/VirtualList.js +4 -4
  51. package/dist/esm/{address.taro-a1092e30.js → address.taro-4765a826.js} +17 -6
  52. package/dist/esm/audio.taro-cd6cc93b.js +292 -0
  53. package/dist/esm/{avatargroup-65173caa.js → avatargroup-1ca79066.js} +1 -1
  54. package/dist/esm/calendar.taro-1abb1925.js +89 -0
  55. package/dist/esm/{calendaritem.taro-fe84d94b.js → calendaritem.taro-3c06a809.js} +130 -5
  56. package/dist/esm/cascader.taro-31dbc60e.js +786 -0
  57. package/dist/esm/{configprovider-18657611.js → configprovider-9c393a29.js} +1 -1
  58. package/dist/esm/{configprovider.taro-98343012.js → configprovider.taro-1ff7f150.js} +2 -2
  59. package/dist/esm/{countdown.taro-cd6a1bd4.js → countdown.taro-b00d0d46.js} +1 -1
  60. package/dist/esm/{datepicker.taro-c1249537.js → datepicker.taro-e385849d.js} +1 -1
  61. package/dist/esm/{dialog.taro-5b850861.js → dialog.taro-c80b7b5f.js} +12 -18
  62. package/dist/esm/{empty.taro-6f86eda5.js → empty.taro-20b8adac.js} +1 -1
  63. package/dist/esm/{fixednav.taro-ca94fd6a.js → fixednav.taro-75e35339.js} +1 -1
  64. package/dist/esm/grid.taro-7fb43d02.js +90 -0
  65. package/dist/esm/griditem.taro-8020b409.js +98 -0
  66. package/dist/esm/imagepreview.taro-a0ddd8a2.js +813 -0
  67. package/dist/esm/{infiniteloading.taro-d2c0ca14.js → infiniteloading.taro-0a86819e.js} +1 -1
  68. package/dist/esm/{input.taro-2e31ebbb.js → input.taro-1d23861d.js} +1 -1
  69. package/dist/esm/menu.taro-03e3b011.js +153 -0
  70. package/dist/esm/menuitem.taro-56bf3205.js +195 -0
  71. package/dist/esm/{noticebar.taro-ae593896.js → noticebar.taro-1890c693.js} +3 -2
  72. package/dist/esm/{notify.taro-95b5f97e.js → notify.taro-22b8f4cd.js} +2 -1
  73. package/dist/esm/{numberkeyboard.taro-71b2e0eb.js → numberkeyboard.taro-5d685c76.js} +1 -1
  74. package/dist/esm/nutui-react.es.js +45 -36
  75. package/dist/esm/{pagination.taro-abc4a71e.js → pagination.taro-10449c4a.js} +1 -1
  76. package/dist/esm/{picker.taro-0eb8bfa3.js → picker.taro-216cc3cb.js} +1 -1
  77. package/dist/esm/{popover.taro-4c102df6.js → popover.taro-9b3da0fa.js} +17 -71
  78. package/dist/esm/{range.taro-034fcf7a.js → range.taro-fe08c5f4.js} +118 -110
  79. package/dist/esm/render-4a3856cb.js +32 -0
  80. package/dist/esm/{searchbar.taro-4c6091cb.js → searchbar.taro-450d2f88.js} +1 -1
  81. package/dist/esm/{shortpassword.taro-ce46b9cd.js → shortpassword.taro-08a05360.js} +23 -18
  82. package/dist/esm/{sidenavbar.taro-36f1e118.js → sidenavbar.taro-dd471476.js} +1 -1
  83. package/dist/esm/{signature.taro-45aedfa9.js → signature.taro-7cb77bab.js} +1 -1
  84. package/dist/esm/swipe.taro-dfb9a049.js +264 -0
  85. package/dist/esm/{swiper.taro-59bf2777.js → swiper.taro-7a2ef124.js} +2 -1
  86. package/dist/esm/{table.taro-49009dfc.js → table.taro-305e0317.js} +1 -1
  87. package/dist/esm/{textarea.taro-0c40e966.js → textarea.taro-700b04c2.js} +1 -1
  88. package/dist/esm/{timedetail.taro-0e31b4a5.js → timedetail.taro-7cc00243.js} +1 -1
  89. package/dist/esm/{timepannel.taro-2d54b3db.js → timepannel.taro-e24537e4.js} +1 -1
  90. package/dist/esm/{timeselect.taro-c35d3490.js → timeselect.taro-210fd548.js} +1 -1
  91. package/dist/esm/{toast.taro-48539c09.js → toast.taro-bb181833.js} +1 -1
  92. package/dist/esm/{uploader.taro-ece83a00.js → uploader.taro-f7528535.js} +1 -1
  93. package/dist/esm/useClientRect-8b7cc406.js +74 -0
  94. package/dist/esm/{virtuallist.taro-2ff1a5ad.js → virtuallist.taro-ce9619f9.js} +1 -1
  95. package/dist/esm/{zh-CN-f5124686.js → zh-CN-91090ae2.js} +16 -0
  96. package/dist/locales/base.d.ts +16 -0
  97. package/dist/locales/base.js +1 -1
  98. package/dist/locales/en-US.js +17 -1
  99. package/dist/locales/id-ID.js +17 -1
  100. package/dist/locales/zh-CN.js +17 -1
  101. package/dist/locales/zh-TW.js +17 -1
  102. package/dist/nutui.react.es.js +5595 -4062
  103. package/dist/nutui.react.umd.js +20243 -30
  104. package/dist/packages/audio/audio.scss +80 -0
  105. package/dist/packages/calendar/calendar.scss +57 -36
  106. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  107. package/dist/packages/cascader/cascader.scss +69 -0
  108. package/dist/packages/grid/grid.scss +10 -0
  109. package/dist/packages/griditem/griditem.scss +103 -0
  110. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  111. package/dist/packages/menu/menu.scss +72 -0
  112. package/dist/packages/menuitem/menuitem.scss +90 -0
  113. package/dist/packages/popup/popup.scss +1 -1
  114. package/dist/packages/searchbar/searchbar.scss +1 -0
  115. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  116. package/dist/packages/swipe/swipe.scss +33 -0
  117. package/dist/packages/textarea/textarea.scss +16 -1
  118. package/dist/style.css +1 -1
  119. package/dist/style.es.js +1 -1
  120. package/dist/styles/font/iconfont.js +20 -18
  121. package/dist/styles/themes/default.scss +8 -0
  122. package/dist/styles/variables.scss +59 -8
  123. package/dist/types/audio/audio.taro.d.ts +18 -0
  124. package/dist/types/audio/index.taro.d.ts +2 -0
  125. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  126. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  127. package/dist/types/cascader/index.taro.d.ts +2 -0
  128. package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
  129. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  130. package/dist/types/dialog/dialog.taro.d.ts +2 -1
  131. package/dist/types/grid/grid.taro.d.ts +16 -0
  132. package/dist/types/grid/index.taro.d.ts +2 -0
  133. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  134. package/dist/types/griditem/index.taro.d.ts +2 -0
  135. package/dist/types/icon/icon.taro.d.ts +1 -2
  136. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  137. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  138. package/dist/types/menu/index.taro.d.ts +2 -0
  139. package/dist/types/menu/menu.taro.d.ts +12 -0
  140. package/dist/types/menuitem/index.taro.d.ts +2 -0
  141. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  142. package/dist/types/notify/notify.taro.d.ts +13 -0
  143. package/dist/types/nutui.react.d.ts +95 -1
  144. package/dist/types/picker/picker.taro.d.ts +2 -2
  145. package/dist/types/popup/popup.taro.d.ts +1 -1
  146. package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
  147. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
  148. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
  149. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
  150. package/dist/types/swipe/index.taro.d.ts +2 -0
  151. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  152. package/dist/types/table/table.taro.d.ts +2 -1
  153. package/dist/types/toast/toast.taro.d.ts +18 -0
  154. package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
  155. package/package.json +4 -4
  156. package/dist/esm/calendar.taro-4b2103c1.js +0 -621
  157. package/dist/esm/raf-3fbb5f92.js +0 -126
@@ -1,6 +1,6 @@
1
1
  import React, { FunctionComponent } from 'react';
2
2
  import CheckboxGroup from '../checkboxgroup';
3
- export interface CheckBoxProps {
3
+ export interface CheckboxProps {
4
4
  checked: boolean;
5
5
  disabled: boolean;
6
6
  textPosition: 'left' | 'right';
@@ -14,6 +14,6 @@ export interface CheckBoxProps {
14
14
  label: string;
15
15
  onChange: (state: boolean, label: string) => void;
16
16
  }
17
- export declare const Checkbox: FunctionComponent<Partial<CheckBoxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
17
+ export declare const Checkbox: FunctionComponent<Partial<CheckboxProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>> & {
18
18
  Group: typeof CheckboxGroup;
19
19
  };
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- export interface CheckBoxGroupProps {
2
+ export interface CheckboxGroupProps {
3
3
  disabled: boolean;
4
4
  checkedValue: string[];
5
5
  max: number | undefined;
6
6
  onChange: (value: string[]) => void;
7
7
  }
8
- export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckBoxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
8
+ export declare const CheckboxGroup: React.ForwardRefExoticComponent<Partial<CheckboxGroupProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<unknown>>;
@@ -1,2 +1,3 @@
1
- import { DialogComponent } from './config';
1
+ import { IDialogProps, DialogComponent } from './config';
2
+ export declare type DialogProps = IDialogProps;
2
3
  export declare const Dialog: DialogComponent;
@@ -0,0 +1,16 @@
1
+ import React, { CSSProperties, FunctionComponent } from 'react';
2
+ export declare type GridDirection = 'horizontal' | 'vertical';
3
+ export interface GridProps {
4
+ columnNum: string | number;
5
+ border: boolean;
6
+ gutter: string | number;
7
+ center: boolean;
8
+ square: boolean;
9
+ reverse: boolean;
10
+ direction: GridDirection;
11
+ className?: string;
12
+ iconSize?: string | number;
13
+ iconColor?: string;
14
+ style?: CSSProperties;
15
+ }
16
+ export declare const Grid: FunctionComponent<Partial<GridProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -0,0 +1,2 @@
1
+ import { Grid } from './grid.taro';
2
+ export default Grid;
@@ -0,0 +1,20 @@
1
+ import React, { FunctionComponent, ReactNode } from 'react';
2
+ declare type GridDirection = 'horizontal' | 'vertical';
3
+ export interface GridItemProps {
4
+ text: string | ReactNode;
5
+ icon: string | ReactNode;
6
+ iconSize?: string | number;
7
+ iconColor?: string;
8
+ parentIconSize?: string | number;
9
+ parentIconColor?: string;
10
+ index: number;
11
+ columnNum: string | number;
12
+ border: boolean;
13
+ gutter: string | number;
14
+ center: boolean;
15
+ square: boolean;
16
+ reverse: boolean;
17
+ direction: GridDirection;
18
+ }
19
+ export declare const GridItem: FunctionComponent<Partial<GridItemProps> & React.HTMLAttributes<HTMLDivElement>>;
20
+ export {};
@@ -0,0 +1,2 @@
1
+ import { GridItem } from './griditem.taro';
2
+ export default GridItem;
@@ -1,5 +1,5 @@
1
1
  import React, { ReactElement, ReactHTML } from 'react';
2
- interface IconProps {
2
+ export interface IconProps {
3
3
  name: string;
4
4
  size: string | number;
5
5
  classPrefix: string;
@@ -16,4 +16,3 @@ export declare namespace Icon {
16
16
  var defaultProps: IconProps;
17
17
  var displayName: string;
18
18
  }
19
- export {};
@@ -0,0 +1,26 @@
1
+ import { FunctionComponent, CSSProperties } from 'react';
2
+ export interface ImagePreviewProps {
3
+ className?: string;
4
+ images: Array<{
5
+ src: string;
6
+ }>;
7
+ videos: Array<{
8
+ source: {
9
+ src: string;
10
+ type: string;
11
+ };
12
+ options: {
13
+ muted: boolean;
14
+ controls: boolean;
15
+ };
16
+ }>;
17
+ show: boolean;
18
+ autoplay: number | string;
19
+ initNo: number;
20
+ contentClose: boolean;
21
+ paginationVisible: boolean;
22
+ style?: CSSProperties;
23
+ paginationColor: string;
24
+ onClose: () => void;
25
+ }
26
+ export declare const ImagePreview: FunctionComponent<Partial<ImagePreviewProps>>;
@@ -0,0 +1,2 @@
1
+ import { ImagePreview } from './imagepreview.taro';
2
+ export default ImagePreview;
@@ -0,0 +1,2 @@
1
+ import { Menu } from './menu.taro';
2
+ export default Menu;
@@ -0,0 +1,12 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface MenuProps {
3
+ className: string;
4
+ style: React.CSSProperties;
5
+ activeColor: string;
6
+ closeOnClickOverlay: boolean;
7
+ scrollFixed: boolean | string | number;
8
+ lockScroll: boolean;
9
+ titleIcon: string;
10
+ children: React.ReactNode;
11
+ }
12
+ export declare const Menu: FunctionComponent<Partial<MenuProps>>;
@@ -0,0 +1,2 @@
1
+ import { MenuItem } from './menuitem.taro';
2
+ export default MenuItem;
@@ -0,0 +1,23 @@
1
+ import React, { FunctionComponent } from 'react';
2
+ export interface OptionItem {
3
+ text: string;
4
+ value: string | number;
5
+ }
6
+ export interface MenuItemProps {
7
+ className: string;
8
+ style: React.CSSProperties;
9
+ title: React.ReactNode;
10
+ options: OptionItem[];
11
+ disabled: boolean;
12
+ columns: number;
13
+ optionsIcon: string;
14
+ direction: string;
15
+ activeTitleClass: string;
16
+ inactiveTitleClass: string;
17
+ fontClassName: string;
18
+ iconClassPrefix: string;
19
+ value: string | number;
20
+ onChange: (event: any) => void;
21
+ children: React.ReactNode;
22
+ }
23
+ export declare const MenuItem: FunctionComponent<Partial<MenuItemProps>>;
@@ -1,4 +1,17 @@
1
1
  import * as React from 'react';
2
+ export interface NotifyProps {
3
+ id: string;
4
+ color?: string;
5
+ msg: string;
6
+ duration: number;
7
+ className?: string;
8
+ background?: string;
9
+ type: string;
10
+ position: string;
11
+ isWrapTeleport: boolean;
12
+ onClick: () => void;
13
+ onClosed: () => void;
14
+ }
2
15
  declare const _default: {
3
16
  text(msg: string | React.ReactNode, option?: {}): void;
4
17
  success(msg: string | React.ReactNode, option?: {}): void;
@@ -9,6 +9,8 @@ import Layout from './layout/index.taro';
9
9
  import Col from './col/index.taro';
10
10
  import Row from './row/index.taro';
11
11
  import Divider from './divider/index.taro';
12
+ import Grid from './grid/index.taro';
13
+ import GridItem from './griditem/index.taro';
12
14
  import NavBar from './navbar/index.taro';
13
15
  import FixedNav from './fixednav/index.taro';
14
16
  import Tabbar from './tabbar/index.taro';
@@ -21,6 +23,8 @@ import Indicator from './indicator/index.taro';
21
23
  import SideNavBar from './sidenavbar/index.taro';
22
24
  import SubSideNavBar from './subsidenavbar/index.taro';
23
25
  import SideNavBarItem from './sidenavbaritem/index.taro';
26
+ import Menu from './menu/index.taro';
27
+ import MenuItem from './menuitem/index.taro';
24
28
  import Range from './range/index.taro';
25
29
  import Calendar from './calendar/index.taro';
26
30
  import Checkbox from './checkbox/index.taro';
@@ -36,6 +40,7 @@ import Picker from './picker/index.taro';
36
40
  import ShortPassword from './shortpassword/index.taro';
37
41
  import TextArea from './textarea/index.taro';
38
42
  import Uploader from './uploader/index.taro';
43
+ import Cascader from './cascader/index.taro';
39
44
  import SearchBar from './searchbar/index.taro';
40
45
  import NumberKeyboard from './numberkeyboard/index.taro';
41
46
  import ActionSheet from './actionsheet/index.taro';
@@ -46,6 +51,7 @@ import Infiniteloading from './infiniteloading/index.taro';
46
51
  import Notify from './notify/index.taro';
47
52
  import Switch from './switch/index.taro';
48
53
  import Toast from './toast/index.taro';
54
+ import Swipe from './swipe/index.taro';
49
55
  import CircleProgress from './circleprogress/index.taro';
50
56
  import NoticeBar from './noticebar/index.taro';
51
57
  import Steps from './steps/index.taro';
@@ -68,6 +74,8 @@ import VirtualList from './virtuallist/index.taro';
68
74
  import Table from './table/index.taro';
69
75
  import Video from './video/index.taro';
70
76
  import Progress from './progress/index.taro';
77
+ import Audio from './audio/index.taro';
78
+ import ImagePreview from './imagepreview/index.taro';
71
79
  import Address from './address/index.taro';
72
80
  import Barrage from './barrage/index.taro';
73
81
  import Signature from './signature/index.taro';
@@ -75,4 +83,90 @@ import Card from './card/index.taro';
75
83
  import TimePannel from './timepannel/index.taro';
76
84
  import TimeDetail from './timedetail/index.taro';
77
85
  import TimeSelect from './timeselect/index.taro';
78
- export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
86
+ export { Button, Cell, CellGroup, Icon, Overlay, Popup, ConfigProvider, Layout, Col, Row, Divider, Grid, GridItem, NavBar, FixedNav, Tabbar, TabbarItem, Elevator, Pagination, Tabs, TabPane, Indicator, SideNavBar, SubSideNavBar, SideNavBarItem, Menu, MenuItem, Range, Calendar, Checkbox, CheckboxGroup, DatePicker, InputNumber, Input, Radio, RadioGroup, Rate, CalendarItem, Picker, ShortPassword, TextArea, Uploader, Cascader, SearchBar, NumberKeyboard, ActionSheet, BackTop, Drag, Dialog, Infiniteloading, Notify, Switch, Toast, Swipe, CircleProgress, NoticeBar, Steps, Step, Swiper, SwiperItem, Avatar, AvatarGroup, Price, Badge, Tag, Popover, Skeleton, CountDown, Collapse, CollapseItem, AnimatingNumbers, Empty, VirtualList, Table, Video, Progress, Audio, ImagePreview, Address, Barrage, Signature, Card, TimePannel, TimeDetail, TimeSelect };
87
+
88
+ export type { ButtonProps } from './button/button.taro';
89
+ export type { CellProps } from './cell/cell.taro';
90
+ export type { CellGroupProps } from './cellgroup/cellgroup.taro';
91
+ export type { IconProps } from './icon/icon.taro';
92
+ export type { OverlayProps } from './overlay/overlay.taro';
93
+ export type { PopupProps } from './popup/popup.taro';
94
+ export type { ConfigProviderProps } from './configprovider/configprovider.taro';
95
+ export type { LayoutProps } from './layout/layout.taro';
96
+ export type { ColProps } from './col/col.taro';
97
+ export type { RowProps } from './row/row.taro';
98
+ export type { DividerProps } from './divider/divider.taro';
99
+ export type { GridProps } from './grid/grid.taro';
100
+ export type { GridItemProps } from './griditem/griditem.taro';
101
+ export type { NavBarProps } from './navbar/navbar.taro';
102
+ export type { FixedNavProps } from './fixednav/fixednav.taro';
103
+ export type { TabbarProps } from './tabbar/tabbar.taro';
104
+ export type { TabbarItemProps } from './tabbaritem/tabbaritem.taro';
105
+ export type { ElevatorProps } from './elevator/elevator.taro';
106
+ export type { PaginationProps } from './pagination/pagination.taro';
107
+ export type { TabsProps } from './tabs/tabs.taro';
108
+ export type { TabPaneProps } from './tabpane/tabpane.taro';
109
+ export type { IndicatorProps } from './indicator/indicator.taro';
110
+ export type { SideNavBarProps } from './sidenavbar/sidenavbar.taro';
111
+ export type { SubSideNavBarProps } from './subsidenavbar/subsidenavbar.taro';
112
+ export type { SideNavBarItemProps } from './sidenavbaritem/sidenavbaritem.taro';
113
+ export type { MenuProps } from './menu/menu.taro';
114
+ export type { MenuItemProps } from './menuitem/menuitem.taro';
115
+ export type { RangeProps } from './range/range.taro';
116
+ export type { CalendarProps } from './calendar/calendar.taro';
117
+ export type { CheckboxProps } from './checkbox/checkbox.taro';
118
+ export type { CheckboxGroupProps } from './checkboxgroup/checkboxgroup.taro';
119
+ export type { DatePickerProps } from './datepicker/datepicker.taro';
120
+ export type { InputNumberProps } from './inputnumber/inputnumber.taro';
121
+ export type { InputProps } from './input/input.taro';
122
+ export type { RadioProps } from './radio/radio.taro';
123
+ export type { RadioGroupProps } from './radiogroup/radiogroup.taro';
124
+ export type { RateProps } from './rate/rate.taro';
125
+ export type { CalendarItemProps } from './calendaritem/calendaritem.taro';
126
+ export type { PickerProps } from './picker/picker.taro';
127
+ export type { ShortPasswordProps } from './shortpassword/shortpassword.taro';
128
+ export type { TextAreaProps } from './textarea/textarea.taro';
129
+ export type { UploaderProps } from './uploader/uploader.taro';
130
+ export type { CascaderProps } from './cascader/cascader.taro';
131
+ export type { SearchBarProps } from './searchbar/searchbar.taro';
132
+ export type { NumberKeyboardProps } from './numberkeyboard/numberkeyboard.taro';
133
+ export type { ActionSheetProps } from './actionsheet/actionsheet.taro';
134
+ export type { BackTopProps } from './backtop/backtop.taro';
135
+ export type { DragProps } from './drag/drag.taro';
136
+ export type { DialogProps } from './dialog/dialog.taro';
137
+ export type { InfiniteloadingProps } from './infiniteloading/infiniteloading.taro';
138
+ export type { NotifyProps } from './notify/notify.taro';
139
+ export type { SwitchProps } from './switch/switch.taro';
140
+ export type { ToastProps } from './toast/toast.taro';
141
+ export type { SwipeProps } from './swipe/swipe.taro';
142
+ export type { CircleProgressProps } from './circleprogress/circleprogress.taro';
143
+ export type { NoticeBarProps } from './noticebar/noticebar.taro';
144
+ export type { StepsProps } from './steps/steps.taro';
145
+ export type { StepProps } from './step/step.taro';
146
+ export type { SwiperProps } from './swiper/swiper.taro';
147
+ export type { SwiperItemProps } from './swiperitem/swiperitem.taro';
148
+ export type { AvatarProps } from './avatar/avatar.taro';
149
+ export type { AvatarGroupProps } from './avatargroup/avatargroup.taro';
150
+ export type { PriceProps } from './price/price.taro';
151
+ export type { BadgeProps } from './badge/badge.taro';
152
+ export type { TagProps } from './tag/tag.taro';
153
+ export type { PopoverProps } from './popover/popover.taro';
154
+ export type { SkeletonProps } from './skeleton/skeleton.taro';
155
+ export type { CountDownProps } from './countdown/countdown.taro';
156
+ export type { CollapseProps } from './collapse/collapse.taro';
157
+ export type { CollapseItemProps } from './collapseitem/collapseitem.taro';
158
+ export type { AnimatingNumbersProps } from './animatingnumbers/animatingnumbers.taro';
159
+ export type { EmptyProps } from './empty/empty.taro';
160
+ export type { VirtualListProps } from './virtuallist/virtuallist.taro';
161
+ export type { TableProps } from './table/table.taro';
162
+ export type { VideoProps } from './video/video.taro';
163
+ export type { ProgressProps } from './progress/progress.taro';
164
+ export type { AudioProps } from './audio/audio.taro';
165
+ export type { ImagePreviewProps } from './imagepreview/imagepreview.taro';
166
+ export type { AddressProps } from './address/address.taro';
167
+ export type { BarrageProps } from './barrage/barrage.taro';
168
+ export type { SignatureProps } from './signature/signature.taro';
169
+ export type { CardProps } from './card/card.taro';
170
+ export type { TimePannelProps } from './timepannel/timepannel.taro';
171
+ export type { TimeDetailProps } from './timedetail/timedetail.taro';
172
+ export type { TimeSelectProps } from './timeselect/timeselect.taro';
@@ -6,7 +6,7 @@ export interface PickerOption {
6
6
  children?: PickerOption[];
7
7
  className?: string | number;
8
8
  }
9
- export interface IPickerProps {
9
+ export interface PickerProps {
10
10
  isVisible: boolean;
11
11
  title?: string;
12
12
  listData: (PickerOption | PickerOption[])[];
@@ -20,5 +20,5 @@ export interface IPickerProps {
20
20
  onCloseUpdate?: (selectedValue: (string | number)[], list: PickerOption[], pickerRef: RefObject<HTMLDivElement>) => void;
21
21
  onChange?: (index: number, value: (string | number)[], selectedOptions: PickerOption[]) => void;
22
22
  }
23
- declare const Picker: React.ForwardRefExoticComponent<Partial<IPickerProps> & React.RefAttributes<unknown>>;
23
+ declare const Picker: React.ForwardRefExoticComponent<Partial<PickerProps> & React.RefAttributes<unknown>>;
24
24
  export default Picker;
@@ -1,7 +1,7 @@
1
1
  import React, { FunctionComponent, MouseEvent } from 'react';
2
2
  import { OverlayProps } from '../overlay/overlay';
3
3
  declare type Teleport = HTMLElement | (() => HTMLElement) | null;
4
- interface PopupProps extends OverlayProps {
4
+ export interface PopupProps extends OverlayProps {
5
5
  position: string;
6
6
  transition: string;
7
7
  style: React.CSSProperties;
@@ -11,11 +11,11 @@ export interface ShortPasswordProps {
11
11
  length: string | number;
12
12
  className: string;
13
13
  style?: CSSProperties;
14
- change: (value: string | number) => void;
14
+ onChange: (value: string | number) => void;
15
15
  onOk: (value: string | number) => void;
16
16
  onCancel: () => void;
17
17
  onClose: () => void;
18
18
  onTips: () => void;
19
- complete: (value: string | number) => void;
19
+ onComplete: (value: string | number) => void;
20
20
  }
21
- export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & React.HTMLAttributes<HTMLDivElement>>;
21
+ export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>>;
@@ -1,3 +1,15 @@
1
- import { FunctionComponent } from 'react';
2
- import { SideNavBarProps } from './type';
1
+ import React, { FunctionComponent } from 'react';
2
+ declare type NavBarProps = {
3
+ showhead?: boolean;
4
+ };
5
+ export interface SideNavBarProps extends React.HTMLAttributes<HTMLDivElement>, NavBarProps {
6
+ title: string;
7
+ visible: boolean;
8
+ width?: string;
9
+ offset?: number;
10
+ position?: 'left' | 'right';
11
+ handleClose: () => void;
12
+ children?: React.ReactNode;
13
+ }
3
14
  export declare const SideNavBar: FunctionComponent<SideNavBarProps>;
15
+ export {};
@@ -1,3 +1,11 @@
1
- import { FunctionComponent } from 'react';
2
- import { SideNavBarItemProps } from '../sidenavbar/type';
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare type SideNavBarItemProps = {
3
+ title: string;
4
+ ikey: string | number;
5
+ click?: ({ title, ikey }: {
6
+ title: string;
7
+ ikey: string | number;
8
+ }) => void;
9
+ children?: React.ReactNode;
10
+ };
3
11
  export declare const SideNavBarItem: FunctionComponent<SideNavBarItemProps>;
@@ -1,3 +1,13 @@
1
- import { FunctionComponent } from 'react';
2
- import { SubNavBarProps } from '../sidenavbar/type';
3
- export declare const SubSideNavBar: FunctionComponent<SubNavBarProps>;
1
+ import React, { FunctionComponent } from 'react';
2
+ export declare type SubSideNavBarProps = {
3
+ title: string;
4
+ ikey: string | number;
5
+ open?: boolean;
6
+ children?: React.ReactNode;
7
+ titleClick?: ({ title, ikey, isShow, }: {
8
+ title: string;
9
+ ikey: string | number;
10
+ isShow: boolean;
11
+ }) => void;
12
+ };
13
+ export declare const SubSideNavBar: FunctionComponent<SubSideNavBarProps>;
@@ -0,0 +1,2 @@
1
+ import { Swipe } from './swipe.taro';
2
+ export default Swipe;
@@ -0,0 +1,41 @@
1
+ import React from 'react';
2
+ export declare type SwipeSide = 'left' | 'right';
3
+ export declare type SwipePosition = SwipeSide | 'cell' | 'outside';
4
+ export interface SwipeInstance {
5
+ open: (side: SwipeSide) => void;
6
+ close: () => void;
7
+ }
8
+ export interface SwipeProps {
9
+ /** 自定义类名 */
10
+ className: string;
11
+ /** 自定义样式 */
12
+ style: React.CSSProperties;
13
+ /** 标识符,可以在事件参数中获取到 */
14
+ name?: string | number;
15
+ /** 指定左侧滑动区域宽度,单位为px */
16
+ leftWidth?: string | number;
17
+ /** 指定右侧滑动区域宽度,单位为 px */
18
+ rightWidth?: string | number;
19
+ /** 左侧滑动区域的内容 */
20
+ leftAction?: React.ReactNode;
21
+ /** 右侧滑动区域的内容 */
22
+ rightAction?: React.ReactNode;
23
+ /** 关闭前的回调函数,返回 false 可阻止关闭,支持返回 Promise */
24
+ beforeClose?: (position: string) => void;
25
+ /** 是否禁用 */
26
+ disabled?: boolean;
27
+ /** 打开时触发 */
28
+ onOpen?: ({ name, position, }: {
29
+ name: string | number;
30
+ position: SwipeSide;
31
+ }) => void;
32
+ /** 关闭时触发 */
33
+ onClose?: ({ name, position, }: {
34
+ name: string | number;
35
+ position: SwipePosition;
36
+ }) => void;
37
+ /** 点击时触发 */
38
+ onActionClick?: (event: Event, position: SwipePosition) => void;
39
+ children?: React.ReactNode;
40
+ }
41
+ export declare const Swipe: React.ForwardRefExoticComponent<Partial<SwipeProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<SwipeInstance>>;
@@ -1,3 +1,4 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { TableProps } from './types';
2
+ import { ITableProps } from './types';
3
+ export declare type TableProps = ITableProps;
3
4
  export declare const Table: FunctionComponent<Partial<TableProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -1,4 +1,22 @@
1
1
  import * as React from 'react';
2
+ export interface ToastProps {
3
+ id: string;
4
+ msg: string;
5
+ duration: number;
6
+ center: boolean;
7
+ type: string;
8
+ customClass: string;
9
+ bottom: number;
10
+ size: string | number;
11
+ icon: string;
12
+ textAlignCenter: boolean;
13
+ loadingRotate: boolean;
14
+ bgColor: string;
15
+ onClose: () => void;
16
+ cover: boolean;
17
+ coverColor: string;
18
+ closeOnClickOverlay: boolean;
19
+ }
2
20
  declare const _default: {
3
21
  text(msg: string | React.ReactNode, option?: {}): void;
4
22
  success(msg: string | React.ReactNode, option?: {}): void;
@@ -1,3 +1,4 @@
1
1
  import React, { FunctionComponent } from 'react';
2
- import { VirtualListProps } from './type';
2
+ import { IVirtualListProps } from './type';
3
+ export declare type VirtualListProps = IVirtualListProps;
3
4
  export declare const VirtualList: FunctionComponent<VirtualListProps & React.HTMLAttributes<HTMLDivElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react-taro",
3
- "version": "1.3.0",
3
+ "version": "1.3.1-beta.0",
4
4
  "style": "dist/style.css",
5
5
  "main": "dist/nutui.react.umd.js",
6
6
  "module": "dist/esm/nutui-react.es.js",
@@ -50,10 +50,10 @@
50
50
  "build:replace": "npm run replace:scss",
51
51
  "build:es": "npx rollup -c rollup.config.es.js",
52
52
  "build:locales": "vite build --config vite.config.build.locales.ts",
53
- "build": "npm run checked && npm run test && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:types && npm run build:locales",
53
+ "build": "npm run checked && vite build --config vite.config.build.ts && npm run build:es && npm run build:css && npm run build:loader-style && npm run build:types && npm run build:locales",
54
54
  "build:site": "npm run checked && vite build --config vite.config.build.site.ts",
55
- "lint": "eslint .",
56
- "lint:fix": "eslint --fix .",
55
+ "lint": "eslint ./src/packages/calendar",
56
+ "lint:fix": "eslint --fix ./src/packages/calendar",
57
57
  "publish:beta": "npm publish --tag beta",
58
58
  "prepare": "husky install",
59
59
  "test": "jest",