@nutui/nutui-react 0.1.0-beta.1 → 0.1.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 (167) hide show
  1. package/README.md +50 -135
  2. package/dist/esm/ActionSheet/style/index.js +1 -0
  3. package/dist/esm/Address/style/index.js +1 -0
  4. package/dist/esm/AnimatingNumbers/style/index.js +1 -0
  5. package/dist/esm/Avatar/style/index.js +1 -0
  6. package/dist/esm/BackTop/style/index.js +1 -0
  7. package/dist/esm/BackTop.js +1 -3
  8. package/dist/esm/Badge/style/index.js +1 -0
  9. package/dist/esm/Barrage/style/index.js +1 -0
  10. package/dist/esm/Button/style/index.js +1 -0
  11. package/dist/esm/Button.js +110 -4
  12. package/dist/esm/Calendar/style/index.js +1 -0
  13. package/dist/esm/Calendar.js +86 -0
  14. package/dist/esm/CalendarItem/style/index.js +1 -0
  15. package/dist/esm/CalendarItem.js +554 -0
  16. package/dist/esm/Cell/style/index.js +1 -0
  17. package/dist/esm/Cell.js +1 -1
  18. package/dist/esm/CellGroup/style/index.js +1 -0
  19. package/dist/esm/CellGroup.js +33 -0
  20. package/dist/esm/Checkbox/style/index.js +1 -0
  21. package/dist/esm/Checkbox.js +1 -1
  22. package/dist/esm/CheckboxGroup/style/index.js +1 -0
  23. package/dist/esm/CircleProgress/style/index.js +1 -0
  24. package/dist/esm/Col/style/index.js +1 -0
  25. package/dist/esm/Col.js +60 -0
  26. package/dist/esm/Collapse/style/index.js +1 -0
  27. package/dist/esm/CollapseItem/style/index.js +1 -0
  28. package/dist/esm/CollapseItem.js +142 -0
  29. package/dist/esm/Dialog/style/index.js +1 -0
  30. package/dist/esm/Dialog.js +327 -0
  31. package/dist/esm/Divider/style/index.js +1 -0
  32. package/dist/esm/Drag/style/index.js +1 -0
  33. package/dist/esm/Drag.js +83 -140
  34. package/dist/esm/Elevator/style/index.js +1 -0
  35. package/dist/esm/Elevator.js +3 -6
  36. package/dist/esm/FixedNav/style/index.js +1 -0
  37. package/dist/esm/FixedNav.js +2 -2
  38. package/dist/esm/Icon/style/index.js +1 -0
  39. package/dist/esm/Icon.js +70 -4
  40. package/dist/esm/Infiniteloading/style/index.js +1 -0
  41. package/dist/esm/Input/style/index.js +1 -0
  42. package/dist/esm/Input.js +1 -1
  43. package/dist/esm/InputNumber/style/index.js +1 -0
  44. package/dist/esm/Layout/style/index.js +1 -0
  45. package/dist/esm/NavBar/style/index.js +1 -0
  46. package/dist/esm/NavBar.js +1 -1
  47. package/dist/esm/NoticeBar/style/index.js +1 -0
  48. package/dist/esm/NoticeBar.js +1 -1
  49. package/dist/esm/Notify/style/index.js +1 -0
  50. package/dist/esm/Overlay/style/index.js +1 -0
  51. package/dist/esm/Pagination/style/index.js +1 -0
  52. package/dist/esm/Picker/style/index.js +1 -0
  53. package/dist/esm/Picker.js +397 -0
  54. package/dist/esm/Popover/style/index.js +1 -0
  55. package/dist/esm/Popover.js +299 -0
  56. package/dist/esm/Popup/style/index.js +1 -0
  57. package/dist/esm/Popup.js +0 -3
  58. package/dist/esm/Price/style/index.js +1 -0
  59. package/dist/esm/Radio/style/index.js +1 -0
  60. package/dist/esm/Radio.js +2 -3
  61. package/dist/esm/RadioGroup/style/index.js +1 -0
  62. package/dist/esm/Range/style/index.js +1 -0
  63. package/dist/esm/Range.js +1 -4
  64. package/dist/esm/Rate/style/index.js +1 -0
  65. package/dist/esm/Rate.js +1 -1
  66. package/dist/esm/Row/style/index.js +1 -0
  67. package/dist/esm/Row.js +48 -0
  68. package/dist/esm/ShortPassword/style/index.js +1 -0
  69. package/dist/esm/ShortPassword.js +203 -0
  70. package/dist/esm/Signature/style/index.js +1 -0
  71. package/dist/esm/Signature.js +1 -2
  72. package/dist/esm/Step/style/index.js +1 -0
  73. package/dist/esm/Steps/style/index.js +1 -0
  74. package/dist/esm/Swiper/style/index.js +1 -0
  75. package/dist/esm/Swiper.js +517 -0
  76. package/dist/esm/SwiperItem/style/index.js +1 -0
  77. package/dist/esm/SwiperItem.js +64 -0
  78. package/dist/esm/Switch/style/index.js +1 -0
  79. package/dist/esm/Switch.js +85 -0
  80. package/dist/esm/Tabbar/style/index.js +1 -0
  81. package/dist/esm/Tabbar.js +1 -4
  82. package/dist/esm/TabbarItem/style/index.js +1 -0
  83. package/dist/esm/TabbarItem.js +1 -1
  84. package/dist/esm/Tag/style/index.js +1 -0
  85. package/dist/esm/TextArea/style/index.js +1 -0
  86. package/dist/esm/Toast/style/index.js +1 -0
  87. package/dist/esm/Toast.js +294 -7
  88. package/dist/esm/Uploader/style/index.js +1 -0
  89. package/dist/esm/UserContext-b4181162.js +3 -0
  90. package/dist/esm/UserContext-be8097d2.js +3 -0
  91. package/dist/esm/date-649fe493.js +112 -0
  92. package/dist/esm/nutui-react.es.js +28 -15
  93. package/dist/esm/types/src/packages/calendar/calendar.d.ts +14 -0
  94. package/dist/esm/types/src/packages/calendar/index.d.ts +2 -0
  95. package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +17 -0
  96. package/dist/esm/types/src/packages/calendaritem/index.d.ts +2 -0
  97. package/dist/esm/types/src/packages/dialog/Confirm.d.ts +7 -0
  98. package/dist/esm/types/src/packages/dialog/Content.d.ts +10 -0
  99. package/dist/esm/types/src/packages/dialog/DialogWrap.d.ts +11 -0
  100. package/dist/esm/types/src/packages/dialog/DialogWrapper.d.ts +8 -0
  101. package/dist/esm/types/src/packages/dialog/Mask.d.ts +3 -0
  102. package/dist/esm/types/src/packages/dialog/config.d.ts +46 -0
  103. package/dist/esm/types/src/packages/dialog/dialog.d.ts +2 -0
  104. package/dist/esm/types/src/packages/dialog/index.d.ts +2 -0
  105. package/dist/esm/types/src/packages/drag/drag.d.ts +1 -1
  106. package/dist/esm/types/src/packages/nutui.react.build.d.ts +29 -16
  107. package/dist/esm/types/src/packages/nutui.react.d.ts +29 -16
  108. package/dist/esm/types/src/packages/picker/index.d.ts +2 -0
  109. package/dist/esm/types/src/packages/picker/picker.d.ts +19 -0
  110. package/dist/esm/types/src/packages/picker/pickerSlot.d.ts +10 -0
  111. package/dist/esm/types/src/packages/popover/Trigger.d.ts +21 -0
  112. package/dist/esm/types/src/packages/popover/index.d.ts +2 -0
  113. package/dist/esm/types/src/packages/popover/popover.d.ts +13 -0
  114. package/dist/esm/types/src/packages/row/UserContext.d.ts +1 -0
  115. package/dist/esm/types/src/packages/shortpassword/index.d.ts +2 -0
  116. package/dist/esm/types/src/packages/shortpassword/shortpassword.d.ts +21 -0
  117. package/dist/esm/types/src/packages/steps/UserContext.d.ts +1 -0
  118. package/dist/esm/types/src/packages/swiper/UserContext.d.ts +2 -0
  119. package/dist/esm/types/src/packages/swiper/index.d.ts +2 -0
  120. package/dist/esm/types/src/packages/swiper/swiper.d.ts +26 -0
  121. package/dist/esm/types/src/packages/swiperitem/index.d.ts +2 -0
  122. package/dist/esm/types/src/packages/swiperitem/swiperitem.d.ts +7 -0
  123. package/dist/nutui.react.es.js +10683 -4344
  124. package/dist/nutui.react.umd.js +26 -17
  125. package/dist/packages/actionsheet/actionsheet.scss +1 -0
  126. package/dist/packages/address/address.scss +3 -0
  127. package/dist/packages/animatingnumbers/animatingnumbers.scss +1 -1
  128. package/dist/packages/backtop/backtop.scss +1 -0
  129. package/dist/packages/button/button.scss +1 -1
  130. package/dist/packages/calendar/calendar.scss +200 -0
  131. package/dist/packages/calendaritem/calendaritem.scss +191 -0
  132. package/dist/packages/cell/cell.scss +2 -0
  133. package/dist/packages/checkbox/checkbox.scss +1 -1
  134. package/dist/packages/collapse/collapse.scss +1 -1
  135. package/dist/packages/collapseitem/collapseitem.scss +2 -0
  136. package/dist/packages/dialog/dialog.scss +129 -0
  137. package/dist/packages/drag/drag.scss +2 -1
  138. package/dist/packages/fixednav/fixednav.scss +5 -0
  139. package/dist/packages/icon/icon.scss +1 -1
  140. package/dist/packages/infiniteloading/infiniteloading.scss +1 -0
  141. package/dist/packages/input/input.scss +1 -0
  142. package/dist/packages/inputnumber/inputnumber.scss +1 -0
  143. package/dist/packages/navbar/navbar.scss +2 -0
  144. package/dist/packages/noticebar/noticebar.scss +2 -0
  145. package/dist/packages/picker/picker.scss +104 -0
  146. package/dist/packages/popover/popover.scss +142 -0
  147. package/dist/packages/popup/popup.scss +2 -0
  148. package/dist/packages/radio/radio.scss +2 -0
  149. package/dist/packages/range/range.scss +1 -0
  150. package/dist/packages/rate/rate.scss +2 -0
  151. package/dist/packages/shortpassword/shortpassword.scss +115 -0
  152. package/dist/packages/signature/signature.scss +1 -0
  153. package/dist/packages/step/step.scss +1 -0
  154. package/dist/packages/swiper/swiper.scss +45 -0
  155. package/dist/packages/swiperitem/swiperitem.scss +3 -0
  156. package/dist/packages/tabbaritem/{tabbarItem.scss → tabbaritem.scss} +2 -0
  157. package/dist/packages/tag/tag.scss +1 -0
  158. package/dist/packages/toast/toast.scss +2 -0
  159. package/dist/packages/uploader/uploader.scss +2 -0
  160. package/dist/style.css +1 -1
  161. package/dist/style.es.js +1 -1
  162. package/dist/styles/themes/default.scss +26 -16
  163. package/dist/styles/variables.scss +25 -0
  164. package/package.json +16 -5
  165. package/dist/esm/button-345fb015.js +0 -110
  166. package/dist/esm/icon-63c0d58f.js +0 -70
  167. package/dist/esm/toast-420b65b7.js +0 -294
@@ -1,43 +1,56 @@
1
1
  import Avatar from '@/packages/avatar';
2
2
  import Button from '@/packages/button';
3
3
  import Cell from '@/packages/cell';
4
+ import CellGroup from '@/packages/cellgroup';
4
5
  import Icon from '@/packages/icon';
5
6
  import Price from '@/packages/price';
6
7
  import Overlay from '@/packages/overlay';
7
8
  import Divider from '@/packages/divider';
8
9
  import Layout from '@/packages/layout';
9
- import Drag from '@/packages/drag';
10
- import Collapse from '@/packages/collapse';
10
+ import Row from '@/packages/row';
11
+ import Col from '@/packages/col';
11
12
  import Toast from '@/packages/toast';
12
- import BackTop from '@/packages/backtop';
13
- import Range from '@/packages/range';
14
- import Infiniteloading from '@/packages/infiniteloading';
15
- import Steps from '@/packages/steps';
16
- import Step from '@/packages/step';
17
- import CircleProgress from '@/packages/circleprogress';
13
+ import Dialog from '@/packages/dialog';
18
14
  import Popup from '@/packages/popup';
19
15
  import ActionSheet from '@/packages/actionsheet';
16
+ import Picker from '@/packages/picker';
17
+ import Infiniteloading from '@/packages/infiniteloading';
18
+ import Popover from '@/packages/popover';
19
+ import Collapse from '@/packages/collapse';
20
+ import CollapseItem from '@/packages/collapseitem';
21
+ import Range from '@/packages/range';
22
+ import CircleProgress from '@/packages/circleprogress';
20
23
  import NoticeBar from '@/packages/noticebar';
21
24
  import Notify from '@/packages/notify';
25
+ import Switch from '@/packages/switch';
22
26
  import NavBar from '@/packages/navbar';
23
27
  import Tabbar from '@/packages/tabbar';
24
28
  import TabbarItem from '@/packages/tabbaritem';
25
- import InputNumber from '@/packages/inputnumber';
26
29
  import Elevator from '@/packages/elevator';
27
30
  import FixedNav from '@/packages/fixednav';
28
31
  import Pagination from '@/packages/pagination';
32
+ import Steps from '@/packages/steps';
33
+ import Step from '@/packages/step';
34
+ import Swiper from '@/packages/swiper';
35
+ import SwiperItem from '@/packages/swiperitem';
36
+ import BackTop from '@/packages/backtop';
29
37
  import Rate from '@/packages/rate';
30
- import Uploader from '@/packages/uploader';
31
38
  import Input from '@/packages/input';
32
39
  import TextArea from '@/packages/textarea';
40
+ import InputNumber from '@/packages/inputnumber';
41
+ import ShortPassword from '@/packages/shortpassword';
42
+ import Radio from '@/packages/radio';
43
+ import RadioGroup from '@/packages/radiogroup';
33
44
  import Checkbox from '@/packages/checkbox';
34
45
  import CheckboxGroup from '@/packages/checkboxgroup';
35
46
  import Tag from '@/packages/tag';
36
47
  import Badge from '@/packages/badge';
37
- import AnimatingNumbers from '@/packages/animatingnumbers';
38
- import Radio from '@/packages/radio';
39
- import RadioGroup from '@/packages/radiogroup';
40
- import Signature from '@/packages/signature';
41
- import Barrage from '@/packages/barrage';
48
+ import Uploader from '@/packages/uploader';
49
+ import Calendar from '@/packages/calendar';
50
+ import CalendarItem from '@/packages/calendaritem';
42
51
  import Address from '@/packages/address';
43
- export { Avatar, Button, Cell, Icon, Price, Overlay, Divider, Layout, Drag, Collapse, Toast, BackTop, Range, Infiniteloading, Steps, Step, CircleProgress, Popup, ActionSheet, NoticeBar, Notify, NavBar, Tabbar, TabbarItem, InputNumber, Elevator, FixedNav, Pagination, Rate, Uploader, Input, TextArea, Checkbox, CheckboxGroup, Tag, Badge, AnimatingNumbers, Radio, RadioGroup, Signature, Barrage, Address };
52
+ import Barrage from '@/packages/barrage';
53
+ import Signature from '@/packages/signature';
54
+ import Drag from '@/packages/drag';
55
+ import AnimatingNumbers from '@/packages/animatingnumbers';
56
+ export { Avatar, Button, Cell, CellGroup, Icon, Price, Overlay, Divider, Layout, Row, Col, Toast, Dialog, Popup, ActionSheet, Picker, Infiniteloading, Popover, Collapse, CollapseItem, Range, CircleProgress, NoticeBar, Notify, Switch, NavBar, Tabbar, TabbarItem, Elevator, FixedNav, Pagination, Steps, Step, Swiper, SwiperItem, BackTop, Rate, Input, TextArea, InputNumber, ShortPassword, Radio, RadioGroup, Checkbox, CheckboxGroup, Tag, Badge, Uploader, Calendar, CalendarItem, Address, Barrage, Signature, Drag, AnimatingNumbers };
@@ -1,43 +1,56 @@
1
1
  import Avatar from './avatar';
2
2
  import Button from './button';
3
3
  import Cell from './cell';
4
+ import CellGroup from './cellgroup';
4
5
  import Icon from './icon';
5
6
  import Price from './price';
6
7
  import Overlay from './overlay';
7
8
  import Divider from './divider';
8
9
  import Layout from './layout';
9
- import Drag from './drag';
10
- import Collapse from './collapse';
10
+ import Row from './row';
11
+ import Col from './col';
11
12
  import Toast from './toast';
12
- import BackTop from './backtop';
13
- import Range from './range';
14
- import Infiniteloading from './infiniteloading';
15
- import Steps from './steps';
16
- import Step from './step';
17
- import CircleProgress from './circleprogress';
13
+ import Dialog from './dialog';
18
14
  import Popup from './popup';
19
15
  import ActionSheet from './actionsheet';
16
+ import Picker from './picker';
17
+ import Infiniteloading from './infiniteloading';
18
+ import Popover from './popover';
19
+ import Collapse from './collapse';
20
+ import CollapseItem from './collapseitem';
21
+ import Range from './range';
22
+ import CircleProgress from './circleprogress';
20
23
  import NoticeBar from './noticebar';
21
24
  import Notify from './notify';
25
+ import Switch from './switch';
22
26
  import NavBar from './navbar';
23
27
  import Tabbar from './tabbar';
24
28
  import TabbarItem from './tabbaritem';
25
- import InputNumber from './inputnumber';
26
29
  import Elevator from './elevator';
27
30
  import FixedNav from './fixednav';
28
31
  import Pagination from './pagination';
32
+ import Steps from './steps';
33
+ import Step from './step';
34
+ import Swiper from './swiper';
35
+ import SwiperItem from './swiperitem';
36
+ import BackTop from './backtop';
29
37
  import Rate from './rate';
30
- import Uploader from './uploader';
31
38
  import Input from './input';
32
39
  import TextArea from './textarea';
40
+ import InputNumber from './inputnumber';
41
+ import ShortPassword from './shortpassword';
42
+ import Radio from './radio';
43
+ import RadioGroup from './radiogroup';
33
44
  import Checkbox from './checkbox';
34
45
  import CheckboxGroup from './checkboxgroup';
35
46
  import Tag from './tag';
36
47
  import Badge from './badge';
37
- import AnimatingNumbers from './animatingnumbers';
38
- import Radio from './radio';
39
- import RadioGroup from './radiogroup';
40
- import Signature from './signature';
41
- import Barrage from './barrage';
48
+ import Uploader from './uploader';
49
+ import Calendar from './calendar';
50
+ import CalendarItem from './calendaritem';
42
51
  import Address from './address';
43
- export { Avatar, Button, Cell, Icon, Price, Overlay, Divider, Layout, Drag, Collapse, Toast, BackTop, Range, Infiniteloading, Steps, Step, CircleProgress, Popup, ActionSheet, NoticeBar, Notify, NavBar, Tabbar, TabbarItem, InputNumber, Elevator, FixedNav, Pagination, Rate, Uploader, Input, TextArea, Checkbox, CheckboxGroup, Tag, Badge, AnimatingNumbers, Radio, RadioGroup, Signature, Barrage, Address };
52
+ import Barrage from './barrage';
53
+ import Signature from './signature';
54
+ import Drag from './drag';
55
+ import AnimatingNumbers from './animatingnumbers';
56
+ export { Avatar, Button, Cell, CellGroup, Icon, Price, Overlay, Divider, Layout, Row, Col, Toast, Dialog, Popup, ActionSheet, Picker, Infiniteloading, Popover, Collapse, CollapseItem, Range, CircleProgress, NoticeBar, Notify, Switch, NavBar, Tabbar, TabbarItem, Elevator, FixedNav, Pagination, Steps, Step, Swiper, SwiperItem, BackTop, Rate, Input, TextArea, InputNumber, ShortPassword, Radio, RadioGroup, Checkbox, CheckboxGroup, Tag, Badge, Uploader, Calendar, CalendarItem, Address, Barrage, Signature, Drag, AnimatingNumbers };
@@ -0,0 +1,2 @@
1
+ import Picker from './picker';
2
+ export default Picker;
@@ -0,0 +1,19 @@
1
+ import React, { RefObject } from 'react';
2
+ interface IPickerProps {
3
+ isVisible: boolean;
4
+ title?: string;
5
+ listData: any[];
6
+ defaultValueData?: any[];
7
+ className: '';
8
+ style: {};
9
+ onConfirm?: (list: any[]) => void;
10
+ onClose?: () => void;
11
+ onCloseUpdate?: (list: any[], pickerRef: RefObject<HTMLDivElement>) => void;
12
+ onChoose?: (index: number, value: IResValue, list: any[], pickerRef: RefObject<HTMLDivElement>) => void;
13
+ }
14
+ interface IResValue {
15
+ label: number;
16
+ value: string;
17
+ }
18
+ declare const Picker: React.ForwardRefExoticComponent<Partial<IPickerProps> & React.RefAttributes<unknown>>;
19
+ export default Picker;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface IPickerSlotProps {
3
+ isUpdate?: boolean;
4
+ keyIndex?: number;
5
+ defaultValue?: string | number;
6
+ listData?: any[];
7
+ chooseItem?: (val: string, idx: number) => void;
8
+ }
9
+ declare const PickerSlot: React.ForwardRefExoticComponent<Partial<IPickerSlotProps> & React.RefAttributes<unknown>>;
10
+ export default PickerSlot;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ interface TriggerProps {
3
+ className?: string | undefined;
4
+ forwardedRef: React.RefObject<HTMLElement>;
5
+ }
6
+ interface TriggerState {
7
+ }
8
+ /**
9
+ * 过滤ref
10
+ */
11
+ export declare function fillRef<T>(ref: React.Ref<T>, node: T): void;
12
+ /**
13
+ * 将ref合并到一个ref函数中以支持ref传递
14
+ */
15
+ export declare function composeRef<T>(...refs: React.Ref<T>[]): React.Ref<T>;
16
+ export default class Trigger extends React.Component<TriggerProps, TriggerState> {
17
+ constructor(props: any);
18
+ fireEvents(type: string, e: Event): void;
19
+ render(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
20
+ }
21
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Popover } from './popover';
2
+ export default Popover;
@@ -0,0 +1,13 @@
1
+ import React, { CSSProperties, FunctionComponent } from 'react';
2
+ export interface PopoverProps {
3
+ list: Array<any>;
4
+ theme: string;
5
+ location: string;
6
+ visible: boolean;
7
+ className: string;
8
+ style?: CSSProperties;
9
+ onClick: (e: MouseEvent) => void;
10
+ }
11
+ export declare function findDOMNode<T = HTMLElement>(node: React.ReactInstance | HTMLElement): T;
12
+ export declare type PopoverType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
13
+ export declare const Popover: FunctionComponent<Partial<PopoverProps>>;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const DataContext: import("react").Context<{}>;
@@ -0,0 +1,2 @@
1
+ import { ShortPassword } from './shortpassword';
2
+ export default ShortPassword;
@@ -0,0 +1,21 @@
1
+ import React, { CSSProperties, FunctionComponent } from 'react';
2
+ export interface ShortPasswordProps {
3
+ title: string;
4
+ desc: string;
5
+ tips: string;
6
+ visible: boolean;
7
+ modelValue: string | number;
8
+ errorMsg: string;
9
+ noButton: boolean;
10
+ closeOnClickOverlay: boolean;
11
+ length: string | number;
12
+ className: string;
13
+ style?: CSSProperties;
14
+ change: (value: string | number) => void;
15
+ onOk: (value: string | number) => void;
16
+ onCancel: () => void;
17
+ onClose: () => void;
18
+ onTips: () => void;
19
+ complete: (value: string | number) => void;
20
+ }
21
+ export declare const ShortPassword: FunctionComponent<Partial<ShortPasswordProps> & React.HTMLAttributes<HTMLDivElement>>;
@@ -1 +1,2 @@
1
+ /// <reference types="react" />
1
2
  export declare const DataContext: import("react").Context<{}>;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const DataContext: import("react").Context<{}>;
@@ -0,0 +1,2 @@
1
+ import { Swiper } from './swiper';
2
+ export default Swiper;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export declare type SwiperRef = {
3
+ to: (index: number) => void;
4
+ next: () => void;
5
+ prev: () => void;
6
+ };
7
+ interface SwiperProps {
8
+ width: number | string;
9
+ height: number | string;
10
+ duration: number | string;
11
+ initPage: number | string;
12
+ autoPlay: number | string;
13
+ direction: 'horizontal' | 'vertical';
14
+ paginationColor: string;
15
+ paginationVisible: boolean;
16
+ loop: boolean;
17
+ touchable: boolean;
18
+ isPreventDefault: boolean;
19
+ isStopPropagation: boolean;
20
+ className?: string;
21
+ style?: React.CSSProperties;
22
+ pageContent?: React.ReactNode;
23
+ onChange?: (currPage: number) => void;
24
+ }
25
+ export declare const Swiper: React.ForwardRefExoticComponent<Partial<SwiperProps> & Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> & React.RefAttributes<SwiperRef>>;
26
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SwiperItem } from './swiperitem';
2
+ export default SwiperItem;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface SwiperItemProps {
3
+ direction?: string;
4
+ size?: 0;
5
+ }
6
+ export declare const SwiperItem: React.ForwardRefExoticComponent<Partial<SwiperItemProps> & React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
7
+ export {};