@nutui/nutui-react 1.3.0 → 1.3.1-beta.2

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 (158) hide show
  1. package/dist/esm/Audio/style/index.js +4 -0
  2. package/dist/esm/Audio.js +293 -0
  3. package/dist/esm/Calendar/style/index.js +1 -2
  4. package/dist/esm/Calendar.js +80 -33
  5. package/dist/esm/CalendarItem.js +429 -231
  6. package/dist/esm/Cascader/style/index.js +2 -0
  7. package/dist/esm/Cascader.js +788 -0
  8. package/dist/esm/ConfigProvider.js +16 -0
  9. package/dist/esm/DatePicker.js +37 -6
  10. package/dist/esm/Dialog.js +9 -16
  11. package/dist/esm/Elevator.js +16 -5
  12. package/dist/esm/Grid/style/index.js +2 -0
  13. package/dist/esm/Grid.js +91 -0
  14. package/dist/esm/GridItem/style/index.js +2 -0
  15. package/dist/esm/GridItem.js +99 -0
  16. package/dist/esm/ImagePreview/style/index.js +2 -0
  17. package/dist/esm/ImagePreview.js +257 -0
  18. package/dist/esm/Menu/style/index.js +3 -0
  19. package/dist/esm/Menu.js +153 -0
  20. package/dist/esm/MenuItem/style/index.js +3 -0
  21. package/dist/esm/MenuItem.js +197 -0
  22. package/dist/esm/NoticeBar.js +3 -2
  23. package/dist/esm/Notify.js +2 -1
  24. package/dist/esm/Popover.js +4 -11
  25. package/dist/esm/Range.js +2 -45
  26. package/dist/esm/Swipe/style/index.js +2 -0
  27. package/dist/esm/Swipe.js +265 -0
  28. package/dist/esm/Swiper.js +2 -1
  29. package/dist/esm/TabPane.js +5 -33
  30. package/dist/esm/Tabs.js +6 -196
  31. package/dist/esm/TextArea.js +45 -4
  32. package/dist/esm/Toast.js +2 -1
  33. package/dist/esm/nutui-react.es.js +8 -0
  34. package/dist/esm/render-4a3856cb.js +32 -0
  35. package/dist/esm/tabpane-c957ab14.js +33 -0
  36. package/dist/esm/tabs-a48583e9.js +196 -0
  37. package/dist/esm/useClientRect-839d18c5.js +44 -0
  38. package/dist/locales/base.d.ts +16 -0
  39. package/dist/locales/base.js +1 -1
  40. package/dist/locales/en-US.js +17 -1
  41. package/dist/locales/id-ID.js +17 -1
  42. package/dist/locales/zh-CN.js +17 -1
  43. package/dist/locales/zh-TW.js +17 -1
  44. package/dist/nutui.react.es.js +2338 -530
  45. package/dist/nutui.react.umd.js +2345 -529
  46. package/dist/packages/audio/audio.scss +80 -0
  47. package/dist/packages/calendar/calendar.scss +57 -36
  48. package/dist/packages/calendaritem/calendaritem.scss +0 -191
  49. package/dist/packages/cascader/cascader.scss +69 -0
  50. package/dist/packages/grid/grid.scss +10 -0
  51. package/dist/packages/griditem/griditem.scss +103 -0
  52. package/dist/packages/imagepreview/imagepreview.scss +51 -0
  53. package/dist/packages/menu/menu.scss +72 -0
  54. package/dist/packages/menuitem/menuitem.scss +90 -0
  55. package/dist/packages/popup/popup.scss +1 -1
  56. package/dist/packages/searchbar/searchbar.scss +1 -0
  57. package/dist/packages/shortpassword/shortpassword.scss +6 -1
  58. package/dist/packages/swipe/swipe.scss +33 -0
  59. package/dist/packages/textarea/textarea.scss +16 -1
  60. package/dist/style.css +1 -1
  61. package/dist/style.es.js +1 -1
  62. package/dist/styles/font/iconfont.js +20 -18
  63. package/dist/styles/themes/default.scss +8 -0
  64. package/dist/styles/variables.scss +59 -8
  65. package/dist/types/audio/__test__/audio.spec.d.ts +1 -0
  66. package/dist/types/audio/audio.d.ts +18 -0
  67. package/dist/types/audio/audio.taro.d.ts +18 -0
  68. package/dist/types/audio/demo.d.ts +4 -0
  69. package/dist/types/audio/index.d.ts +2 -0
  70. package/dist/types/audio/index.taro.d.ts +2 -0
  71. package/dist/types/backtop/__test__/backtop.spec.d.ts +1 -0
  72. package/dist/types/calendar/__tests__/calendar.spec.d.ts +1 -0
  73. package/dist/types/calendar/calendar.d.ts +22 -2
  74. package/dist/types/calendar/demo.d.ts +1 -0
  75. package/dist/types/calendaritem/calendaritem.d.ts +21 -3
  76. package/dist/types/cascader/__tests__/cascader.spec.d.ts +1 -0
  77. package/dist/types/cascader/cascader.d.ts +25 -0
  78. package/dist/types/cascader/cascader.taro.d.ts +25 -0
  79. package/dist/types/cascader/cascaderItem.d.ts +25 -0
  80. package/dist/types/cascader/cascaderItem.taro.d.ts +25 -0
  81. package/dist/types/cascader/demo.d.ts +3 -0
  82. package/dist/types/cascader/helper.d.ts +4 -0
  83. package/dist/types/cascader/index.d.ts +2 -0
  84. package/dist/types/cascader/index.taro.d.ts +2 -0
  85. package/dist/types/cascader/tree.d.ts +12 -0
  86. package/dist/types/cascader/types.d.ts +28 -0
  87. package/dist/types/checkbox/checkbox.d.ts +2 -2
  88. package/dist/types/checkbox/checkbox.taro.d.ts +2 -2
  89. package/dist/types/checkboxgroup/checkboxgroup.d.ts +2 -2
  90. package/dist/types/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  91. package/dist/types/dialog/__test__/dialog.spec.d.ts +1 -0
  92. package/dist/types/dialog/config.d.ts +3 -3
  93. package/dist/types/dialog/dialog.d.ts +2 -1
  94. package/dist/types/dialog/dialog.taro.d.ts +2 -1
  95. package/dist/types/fixednav/fixednav.d.ts +2 -2
  96. package/dist/types/grid/__test__/grid.spec.d.ts +1 -0
  97. package/dist/types/grid/demo.d.ts +3 -0
  98. package/dist/types/grid/grid.d.ts +16 -0
  99. package/dist/types/grid/grid.taro.d.ts +16 -0
  100. package/dist/types/grid/index.d.ts +2 -0
  101. package/dist/types/grid/index.taro.d.ts +2 -0
  102. package/dist/types/griditem/griditem.d.ts +20 -0
  103. package/dist/types/griditem/griditem.taro.d.ts +20 -0
  104. package/dist/types/griditem/index.d.ts +2 -0
  105. package/dist/types/griditem/index.taro.d.ts +2 -0
  106. package/dist/types/icon/icon.d.ts +1 -2
  107. package/dist/types/icon/icon.taro.d.ts +1 -2
  108. package/dist/types/imagepreview/__test__/imagepreview.spec.d.ts +1 -0
  109. package/dist/types/imagepreview/demo.d.ts +3 -0
  110. package/dist/types/imagepreview/imagepreview.d.ts +26 -0
  111. package/dist/types/imagepreview/imagepreview.taro.d.ts +26 -0
  112. package/dist/types/imagepreview/index.d.ts +2 -0
  113. package/dist/types/imagepreview/index.taro.d.ts +2 -0
  114. package/dist/types/input/__test__/input.spec.d.ts +1 -0
  115. package/dist/types/menu/__test__/menu.spec.d.ts +1 -0
  116. package/dist/types/menu/demo.d.ts +4 -0
  117. package/dist/types/menu/index.d.ts +2 -0
  118. package/dist/types/menu/index.taro.d.ts +2 -0
  119. package/dist/types/menu/menu.d.ts +12 -0
  120. package/dist/types/menu/menu.taro.d.ts +12 -0
  121. package/dist/types/menuitem/index.d.ts +2 -0
  122. package/dist/types/menuitem/index.taro.d.ts +2 -0
  123. package/dist/types/menuitem/menuitem.d.ts +23 -0
  124. package/dist/types/menuitem/menuitem.taro.d.ts +23 -0
  125. package/dist/types/notify/__test__/notify.spec.d.ts +1 -0
  126. package/dist/types/notify/notify.d.ts +13 -0
  127. package/dist/types/notify/notify.taro.d.ts +13 -0
  128. package/dist/types/nutui.react.d.ts +95 -1
  129. package/dist/types/picker/doc.en.d.ts +142 -0
  130. package/dist/types/picker/picker.d.ts +2 -2
  131. package/dist/types/picker/picker.taro.d.ts +2 -2
  132. package/dist/types/popup/popup.d.ts +1 -1
  133. package/dist/types/popup/popup.taro.d.ts +1 -1
  134. package/dist/types/shortpassword/shortpassword.taro.d.ts +3 -3
  135. package/dist/types/sidenavbar/sidenavbar.d.ts +14 -2
  136. package/dist/types/sidenavbar/sidenavbar.taro.d.ts +14 -2
  137. package/dist/types/sidenavbaritem/sidenavbaritem.d.ts +10 -2
  138. package/dist/types/sidenavbaritem/sidenavbaritem.taro.d.ts +10 -2
  139. package/dist/types/subsidenavbar/subsidenavbar.d.ts +13 -3
  140. package/dist/types/subsidenavbar/subsidenavbar.taro.d.ts +13 -3
  141. package/dist/types/swipe/__tests__/swipe.spec.d.ts +1 -0
  142. package/dist/types/swipe/demo.d.ts +3 -0
  143. package/dist/types/swipe/index.d.ts +2 -0
  144. package/dist/types/swipe/index.taro.d.ts +2 -0
  145. package/dist/types/swipe/swipe.d.ts +41 -0
  146. package/dist/types/swipe/swipe.taro.d.ts +41 -0
  147. package/dist/types/swiper/swiper.d.ts +1 -2
  148. package/dist/types/swiperitem/swiperitem.d.ts +1 -2
  149. package/dist/types/table/table.d.ts +2 -1
  150. package/dist/types/table/table.taro.d.ts +2 -1
  151. package/dist/types/table/types.d.ts +1 -1
  152. package/dist/types/textarea/__test__/textarea.spec.d.ts +1 -0
  153. package/dist/types/toast/toast.d.ts +21 -0
  154. package/dist/types/toast/toast.taro.d.ts +18 -0
  155. package/dist/types/virtuallist/type.d.ts +1 -1
  156. package/dist/types/virtuallist/virtuallist.d.ts +2 -1
  157. package/dist/types/virtuallist/virtuallist.taro.d.ts +2 -1
  158. package/package.json +4 -4
@@ -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>>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -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;
@@ -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';
9
9
  import Col from './col';
10
10
  import Row from './row';
11
11
  import Divider from './divider';
12
+ import Grid from './grid';
13
+ import GridItem from './griditem';
12
14
  import NavBar from './navbar';
13
15
  import FixedNav from './fixednav';
14
16
  import Tabbar from './tabbar';
@@ -21,6 +23,8 @@ import Indicator from './indicator';
21
23
  import SideNavBar from './sidenavbar';
22
24
  import SubSideNavBar from './subsidenavbar';
23
25
  import SideNavBarItem from './sidenavbaritem';
26
+ import Menu from './menu';
27
+ import MenuItem from './menuitem';
24
28
  import Range from './range';
25
29
  import Calendar from './calendar';
26
30
  import Checkbox from './checkbox';
@@ -36,6 +40,7 @@ import Picker from './picker';
36
40
  import ShortPassword from './shortpassword';
37
41
  import TextArea from './textarea';
38
42
  import Uploader from './uploader';
43
+ import Cascader from './cascader';
39
44
  import SearchBar from './searchbar';
40
45
  import NumberKeyboard from './numberkeyboard';
41
46
  import ActionSheet from './actionsheet';
@@ -46,6 +51,7 @@ import Infiniteloading from './infiniteloading';
46
51
  import Notify from './notify';
47
52
  import Switch from './switch';
48
53
  import Toast from './toast';
54
+ import Swipe from './swipe';
49
55
  import CircleProgress from './circleprogress';
50
56
  import NoticeBar from './noticebar';
51
57
  import Steps from './steps';
@@ -68,6 +74,8 @@ import VirtualList from './virtuallist';
68
74
  import Table from './table';
69
75
  import Video from './video';
70
76
  import Progress from './progress';
77
+ import Audio from './audio';
78
+ import ImagePreview from './imagepreview';
71
79
  import Address from './address';
72
80
  import Barrage from './barrage';
73
81
  import Signature from './signature';
@@ -75,4 +83,90 @@ import Card from './card';
75
83
  import TimePannel from './timepannel';
76
84
  import TimeDetail from './timedetail';
77
85
  import TimeSelect from './timeselect';
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';
89
+ export type { CellProps } from './cell/cell';
90
+ export type { CellGroupProps } from './cellgroup/cellgroup';
91
+ export type { IconProps } from './icon/icon';
92
+ export type { OverlayProps } from './overlay/overlay';
93
+ export type { PopupProps } from './popup/popup';
94
+ export type { ConfigProviderProps } from './configprovider/configprovider';
95
+ export type { LayoutProps } from './layout/layout';
96
+ export type { ColProps } from './col/col';
97
+ export type { RowProps } from './row/row';
98
+ export type { DividerProps } from './divider/divider';
99
+ export type { GridProps } from './grid/grid';
100
+ export type { GridItemProps } from './griditem/griditem';
101
+ export type { NavBarProps } from './navbar/navbar';
102
+ export type { FixedNavProps } from './fixednav/fixednav';
103
+ export type { TabbarProps } from './tabbar/tabbar';
104
+ export type { TabbarItemProps } from './tabbaritem/tabbaritem';
105
+ export type { ElevatorProps } from './elevator/elevator';
106
+ export type { PaginationProps } from './pagination/pagination';
107
+ export type { TabsProps } from './tabs/tabs';
108
+ export type { TabPaneProps } from './tabpane/tabpane';
109
+ export type { IndicatorProps } from './indicator/indicator';
110
+ export type { SideNavBarProps } from './sidenavbar/sidenavbar';
111
+ export type { SubSideNavBarProps } from './subsidenavbar/subsidenavbar';
112
+ export type { SideNavBarItemProps } from './sidenavbaritem/sidenavbaritem';
113
+ export type { MenuProps } from './menu/menu';
114
+ export type { MenuItemProps } from './menuitem/menuitem';
115
+ export type { RangeProps } from './range/range';
116
+ export type { CalendarProps } from './calendar/calendar';
117
+ export type { CheckboxProps } from './checkbox/checkbox';
118
+ export type { CheckboxGroupProps } from './checkboxgroup/checkboxgroup';
119
+ export type { DatePickerProps } from './datepicker/datepicker';
120
+ export type { InputNumberProps } from './inputnumber/inputnumber';
121
+ export type { InputProps } from './input/input';
122
+ export type { RadioProps } from './radio/radio';
123
+ export type { RadioGroupProps } from './radiogroup/radiogroup';
124
+ export type { RateProps } from './rate/rate';
125
+ export type { CalendarItemProps } from './calendaritem/calendaritem';
126
+ export type { PickerProps } from './picker/picker';
127
+ export type { ShortPasswordProps } from './shortpassword/shortpassword';
128
+ export type { TextAreaProps } from './textarea/textarea';
129
+ export type { UploaderProps } from './uploader/uploader';
130
+ export type { CascaderProps } from './cascader/cascader';
131
+ export type { SearchBarProps } from './searchbar/searchbar';
132
+ export type { NumberKeyboardProps } from './numberkeyboard/numberkeyboard';
133
+ export type { ActionSheetProps } from './actionsheet/actionsheet';
134
+ export type { BackTopProps } from './backtop/backtop';
135
+ export type { DragProps } from './drag/drag';
136
+ export type { DialogProps } from './dialog/dialog';
137
+ export type { InfiniteloadingProps } from './infiniteloading/infiniteloading';
138
+ export type { NotifyProps } from './notify/notify';
139
+ export type { SwitchProps } from './switch/switch';
140
+ export type { ToastProps } from './toast/toast';
141
+ export type { SwipeProps } from './swipe/swipe';
142
+ export type { CircleProgressProps } from './circleprogress/circleprogress';
143
+ export type { NoticeBarProps } from './noticebar/noticebar';
144
+ export type { StepsProps } from './steps/steps';
145
+ export type { StepProps } from './step/step';
146
+ export type { SwiperProps } from './swiper/swiper';
147
+ export type { SwiperItemProps } from './swiperitem/swiperitem';
148
+ export type { AvatarProps } from './avatar/avatar';
149
+ export type { AvatarGroupProps } from './avatargroup/avatargroup';
150
+ export type { PriceProps } from './price/price';
151
+ export type { BadgeProps } from './badge/badge';
152
+ export type { TagProps } from './tag/tag';
153
+ export type { PopoverProps } from './popover/popover';
154
+ export type { SkeletonProps } from './skeleton/skeleton';
155
+ export type { CountDownProps } from './countdown/countdown';
156
+ export type { CollapseProps } from './collapse/collapse';
157
+ export type { CollapseItemProps } from './collapseitem/collapseitem';
158
+ export type { AnimatingNumbersProps } from './animatingnumbers/animatingnumbers';
159
+ export type { EmptyProps } from './empty/empty';
160
+ export type { VirtualListProps } from './virtuallist/virtuallist';
161
+ export type { TableProps } from './table/table';
162
+ export type { VideoProps } from './video/video';
163
+ export type { ProgressProps } from './progress/progress';
164
+ export type { AudioProps } from './audio/audio';
165
+ export type { ImagePreviewProps } from './imagepreview/imagepreview';
166
+ export type { AddressProps } from './address/address';
167
+ export type { BarrageProps } from './barrage/barrage';
168
+ export type { SignatureProps } from './signature/signature';
169
+ export type { CardProps } from './card/card';
170
+ export type { TimePannelProps } from './timepannel/timepannel';
171
+ export type { TimeDetailProps } from './timedetail/timedetail';
172
+ export type { TimeSelectProps } from './timeselect/timeselect';
@@ -0,0 +1,142 @@
1
+ export declare const Internation: {
2
+ 'zh-CN': {
3
+ basic: string;
4
+ chooseCity: string;
5
+ defaultSelected: string;
6
+ tileDesc: string;
7
+ multipleColumns: string;
8
+ chooseTime: string;
9
+ cascade: string;
10
+ async: string;
11
+ custom: string;
12
+ validTime: string;
13
+ chooseDate: string;
14
+ always: string;
15
+ monday: string;
16
+ tuesday: string;
17
+ wednesday: string;
18
+ thursday: string;
19
+ friday: string;
20
+ morning: string;
21
+ afternoon: string;
22
+ evening: string;
23
+ nanJing: string;
24
+ wuXi: string;
25
+ zangZu: string;
26
+ beiJing: string;
27
+ lianYunGang: string;
28
+ zheJiang: string;
29
+ jiangSu: string;
30
+ daQing: string;
31
+ suiHua: string;
32
+ weiFang: string;
33
+ anshi: string;
34
+ wlmq: string;
35
+ hangZhou: string;
36
+ chaoYang: string;
37
+ haiDian: string;
38
+ daXing: string;
39
+ dongCheng: string;
40
+ xiCheng: string;
41
+ fengTai: string;
42
+ shangHai: string;
43
+ huangPu: string;
44
+ changNing: string;
45
+ puTuo: string;
46
+ yangPu: string;
47
+ puDong: string;
48
+ };
49
+ 'zh-TW': {
50
+ basic: string;
51
+ chooseCity: string;
52
+ defaultSelected: string;
53
+ tileDesc: string;
54
+ multipleColumns: string;
55
+ chooseTime: string;
56
+ cascade: string;
57
+ async: string;
58
+ custom: string;
59
+ chooseDate: string;
60
+ always: string;
61
+ monday: string;
62
+ tuesday: string;
63
+ wednesday: string;
64
+ thursday: string;
65
+ friday: string;
66
+ morning: string;
67
+ afternoon: string;
68
+ evening: string;
69
+ nanJing: string;
70
+ wuXi: string;
71
+ zangZu: string;
72
+ beiJing: string;
73
+ lianYunGang: string;
74
+ zheJiang: string;
75
+ jiangSu: string;
76
+ daQing: string;
77
+ suiHua: string;
78
+ weiFang: string;
79
+ anshi: string;
80
+ wlmq: string;
81
+ hangZhou: string;
82
+ chaoYang: string;
83
+ haiDian: string;
84
+ daXing: string;
85
+ dongCheng: string;
86
+ xiCheng: string;
87
+ fengTai: string;
88
+ shangHai: string;
89
+ huangPu: string;
90
+ changNing: string;
91
+ puTuo: string;
92
+ yangPu: string;
93
+ puDong: string;
94
+ };
95
+ 'en-US': {
96
+ basic: string;
97
+ chooseCity: string;
98
+ defaultSelected: string;
99
+ tileDesc: string;
100
+ multipleColumns: string;
101
+ chooseTime: string;
102
+ cascade: string;
103
+ async: string;
104
+ custom: string;
105
+ validTime: string;
106
+ chooseDate: string;
107
+ always: string;
108
+ monday: string;
109
+ tuesday: string;
110
+ wednesday: string;
111
+ thursday: string;
112
+ friday: string;
113
+ morning: string;
114
+ afternoon: string;
115
+ evening: string;
116
+ nanJing: string;
117
+ wuXi: string;
118
+ zangZu: string;
119
+ beiJing: string;
120
+ lianYunGang: string;
121
+ zheJiang: string;
122
+ jiangSu: string;
123
+ daQing: string;
124
+ suiHua: string;
125
+ weiFang: string;
126
+ anshi: string;
127
+ wlmq: string;
128
+ hangZhou: string;
129
+ chaoYang: string;
130
+ haiDian: string;
131
+ daXing: string;
132
+ dongCheng: string;
133
+ xiCheng: string;
134
+ fengTai: string;
135
+ shangHai: string;
136
+ huangPu: string;
137
+ changNing: string;
138
+ puTuo: string;
139
+ yangPu: string;
140
+ puDong: string;
141
+ };
142
+ };
@@ -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;
@@ -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;
@@ -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,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,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>;
@@ -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 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const SwipeDemo: () => JSX.Element;
3
+ export default SwipeDemo;
@@ -0,0 +1,2 @@
1
+ import { Swipe } from './swipe';
2
+ export default Swipe;
@@ -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>>;
@@ -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>>;
@@ -4,7 +4,7 @@ export declare type SwiperRef = {
4
4
  next: () => void;
5
5
  prev: () => void;
6
6
  };
7
- interface SwiperProps {
7
+ export interface SwiperProps {
8
8
  width: number | string;
9
9
  height: number | string;
10
10
  duration: number | string;
@@ -24,4 +24,3 @@ interface SwiperProps {
24
24
  onChange?: (currPage: number) => void;
25
25
  }
26
26
  export declare const Swiper: React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<SwiperRef>>;
27
- export {};
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- interface SwiperItemProps {
2
+ export interface SwiperItemProps {
3
3
  direction?: string;
4
4
  size?: 0;
5
5
  }
6
6
  export declare const SwiperItem: React.ForwardRefExoticComponent<Partial<SwiperItemProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
- export {};
@@ -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,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>>;