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.
@@ -1,5 +1,5 @@
1
1
  import React, { CSSProperties, PropsWithChildren } from 'react';
2
- import { ExposedScrollViewMethods } from './type';
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<ExposedScrollViewMethods>) => React.ReactNode;
18
+ declare const _default: (props: ScrollViewProps & React.RefAttributes<ScrollViewExposeMethods>) => React.ReactNode;
19
19
  export default _default;
@@ -3,6 +3,6 @@ export interface ToParams {
3
3
  y?: number;
4
4
  animation?: boolean;
5
5
  }
6
- export interface ExposedScrollViewMethods {
6
+ export interface ScrollViewExposeMethods {
7
7
  to: (data?: ToParams) => void;
8
8
  }
@@ -1,2 +1,3 @@
1
1
  export * from './Popup/type';
2
+ export * from './ScrollView/type';
2
3
  export * from './Swiper/type';
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<ExposedScrollViewMethods>) => React.ReactNode;
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 { ExposedScrollViewMethods } from './type';
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<ExposedScrollViewMethods>) => React.ReactNode;
18
+ declare const _default: (props: ScrollViewProps & React.RefAttributes<ScrollViewExposeMethods>) => React.ReactNode;
19
19
  export default _default;
@@ -3,6 +3,6 @@ export interface ToParams {
3
3
  y?: number;
4
4
  animation?: boolean;
5
5
  }
6
- export interface ExposedScrollViewMethods {
6
+ export interface ScrollViewExposeMethods {
7
7
  to: (data?: ToParams) => void;
8
8
  }
@@ -1,2 +1,3 @@
1
1
  export * from './Popup/type';
2
+ export * from './ScrollView/type';
2
3
  export * from './Swiper/type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rox-react-components",
3
- "version": "0.0.34",
3
+ "version": "0.0.35",
4
4
  "main": "dist/lib/index.js",
5
5
  "module": "dist/es/index.js",
6
6
  "types": "dist/index.d.ts",