rox-react-components 0.0.34 → 0.0.35
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.
- package/dist/es/ScrollView/ScrollView.d.ts +2 -2
- package/dist/es/ScrollView/type.d.ts +1 -1
- package/dist/es/types.d.ts +1 -0
- package/dist/index.d.ts +11 -11
- package/dist/lib/ScrollView/ScrollView.d.ts +2 -2
- package/dist/lib/ScrollView/type.d.ts +1 -1
- package/dist/lib/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ScrollViewExposeMethods } from './type';
|
|
3
3
|
interface OnScrollParameters {
|
|
4
4
|
x?: number;
|
|
5
5
|
y?: number;
|
|
@@ -15,5 +15,5 @@ interface ScrollViewProps extends PropsWithChildren {
|
|
|
15
15
|
onReachLeft?: (done: Function) => void;
|
|
16
16
|
onReachRight?: (done: Function) => void;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: ScrollViewProps & React.RefAttributes<
|
|
18
|
+
declare const _default: (props: ScrollViewProps & React.RefAttributes<ScrollViewExposeMethods>) => React.ReactNode;
|
|
19
19
|
export default _default;
|
package/dist/es/types.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,15 @@ import React, { PropsWithChildren, ReactNode, CSSProperties, FC, Component } fro
|
|
|
3
3
|
type PopupPosition = 'left' | 'top' | 'right' | 'bottom' | 'center';
|
|
4
4
|
type PopupType = 'slide' | 'fade' | 'scale';
|
|
5
5
|
|
|
6
|
+
interface ToParams {
|
|
7
|
+
x?: number;
|
|
8
|
+
y?: number;
|
|
9
|
+
animation?: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface ScrollViewExposeMethods {
|
|
12
|
+
to: (data?: ToParams) => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
6
15
|
interface SwiperProps<T> extends PropsWithChildren {
|
|
7
16
|
data: T[];
|
|
8
17
|
renderItem: (item: T) => ReactNode;
|
|
@@ -84,15 +93,6 @@ interface PopupProps extends PropsWithChildren {
|
|
|
84
93
|
}
|
|
85
94
|
declare function PopupContainer(_props: PopupProps): React.ReactPortal | null;
|
|
86
95
|
|
|
87
|
-
interface ToParams {
|
|
88
|
-
x?: number;
|
|
89
|
-
y?: number;
|
|
90
|
-
animation?: boolean;
|
|
91
|
-
}
|
|
92
|
-
interface ExposedScrollViewMethods {
|
|
93
|
-
to: (data?: ToParams) => void;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
96
|
interface OnScrollParameters {
|
|
97
97
|
x?: number;
|
|
98
98
|
y?: number;
|
|
@@ -108,11 +108,11 @@ interface ScrollViewProps extends PropsWithChildren {
|
|
|
108
108
|
onReachLeft?: (done: Function) => void;
|
|
109
109
|
onReachRight?: (done: Function) => void;
|
|
110
110
|
}
|
|
111
|
-
declare const _default$1: (props: ScrollViewProps & React.RefAttributes<
|
|
111
|
+
declare const _default$1: (props: ScrollViewProps & React.RefAttributes<ScrollViewExposeMethods>) => React.ReactNode;
|
|
112
112
|
|
|
113
113
|
declare module 'react' {
|
|
114
114
|
function forwardRef<T, P = {}>(render: (props: P, ref: React.Ref<T>) => React.ReactNode | null): (props: P & React.RefAttributes<T>) => React.ReactNode | null;
|
|
115
115
|
}
|
|
116
116
|
declare const _default: <T extends unknown>(props: SwiperProps<T> & React.RefAttributes<SwiperExposeMethods>) => React.ReactNode;
|
|
117
117
|
|
|
118
|
-
export { Card, Container, Loading, PopupContainer as Popup, type PopupPosition, type PopupType, _default$1 as ScrollView, _default as Swiper, type SwiperExposeMethods, type SwiperProps, _default$2 as utils };
|
|
118
|
+
export { Card, Container, Loading, PopupContainer as Popup, type PopupPosition, type PopupType, _default$1 as ScrollView, type ScrollViewExposeMethods, _default as Swiper, type SwiperExposeMethods, type SwiperProps, type ToParams, _default$2 as utils };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ScrollViewExposeMethods } from './type';
|
|
3
3
|
interface OnScrollParameters {
|
|
4
4
|
x?: number;
|
|
5
5
|
y?: number;
|
|
@@ -15,5 +15,5 @@ interface ScrollViewProps extends PropsWithChildren {
|
|
|
15
15
|
onReachLeft?: (done: Function) => void;
|
|
16
16
|
onReachRight?: (done: Function) => void;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: (props: ScrollViewProps & React.RefAttributes<
|
|
18
|
+
declare const _default: (props: ScrollViewProps & React.RefAttributes<ScrollViewExposeMethods>) => React.ReactNode;
|
|
19
19
|
export default _default;
|
package/dist/lib/types.d.ts
CHANGED