rox-react-components 0.0.36 → 0.0.38
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/README.md +1 -1
- package/dist/es/Button/Button.js +1 -1
- package/dist/es/Popup/Popup.d.ts +10 -3
- package/dist/es/Popup/Popup.js +1 -1
- package/dist/es/Popup/styles.d.ts +16 -0
- package/dist/es/Popup/styles.js +1 -1
- package/dist/es/Popup/type.d.ts +2 -0
- package/dist/index.d.ts +11 -3
- package/dist/lib/Button/Button.js +1 -1
- package/dist/lib/Popup/Popup.d.ts +10 -3
- package/dist/lib/Popup/Popup.js +1 -1
- package/dist/lib/Popup/styles.d.ts +16 -0
- package/dist/lib/Popup/styles.js +1 -1
- package/dist/lib/Popup/type.d.ts +2 -0
- package/package.json +3 -2
package/README.md
CHANGED
package/dist/es/Button/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__rest as t,__assign as
|
|
1
|
+
import{__rest as t,__assign as e}from"tslib";import{css as o}from"aphrodite/no-important";import r,{useRef as i,useMemo as n,useCallback as l,useEffect as a}from"react";import c from"./styles.js";var s=["relative","absolute","fixed"],d=function(d){var u=d.children,f=d.style,p=void 0===f?{}:f,v=d.block,m=void 0!==v&&v,h=d.className,g=void 0===h?"":h,b=d.radius,y=void 0===b?4:b,C=d.bg,k=void 0===C?"rgba(0,0,0,.7)":C,x=d.color,w=void 0===x?"#ffffff":x,N=d.onClick,E=d.wavesColor,R=void 0===E?"rgba(255,255,255,.3)":E,j=t(d,["children","style","block","className","radius","bg","color","onClick","wavesColor"]),B=i([]),H=i(null),L=n((function(){return e(e({},p),{overflow:"hidden",borderRadius:y+"px",background:k,color:w})}),[p,y,k,w]),M=l((function(t){null==N||N(t);var e,r=t.currentTarget;B.current.length?e=B.current.shift():(e=document.createElement("div")).classList.add(o(c.ripple));var i=r.getBoundingClientRect();e.style.width=e.style.height=Math.max(i.width,i.height)+"px",e.style.backgroundColor=R,r.appendChild(e);var n=t.pageY-i.top-e.offsetHeight/2+"px",l=t.pageX-i.left-e.offsetWidth/2+"px";e.style.top=n,e.style.left=l,e.onanimationend=function(){r.removeChild(e),B.current.push(e)}}),[N,R]);return a((function(){if(H.current){var t=getComputedStyle(H.current);s.includes(t.position)||(H.current.style.position="relative")}}),[]),r.createElement("button",e({},j,{className:"".concat(g," ").concat(o(c.button)," ").concat(m?o(c.block):""),style:L,ref:H,onClick:M}),u)};export{d as default};
|
package/dist/es/Popup/Popup.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { PopupPosition, PopupType } from './type';
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { AnimationTimingFunction, PopupPosition, PopupType } from './type';
|
|
3
3
|
declare module 'react' {
|
|
4
4
|
interface CSSProperties {
|
|
5
5
|
'--bg'?: string;
|
|
6
|
+
'--duration'?: string;
|
|
7
|
+
'--curve'?: AnimationTimingFunction;
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
interface PopupProps extends PropsWithChildren {
|
|
@@ -12,6 +14,11 @@ interface PopupProps extends PropsWithChildren {
|
|
|
12
14
|
bg?: string;
|
|
13
15
|
maskClosable?: boolean;
|
|
14
16
|
popupType?: PopupType;
|
|
17
|
+
onClose?: Function;
|
|
18
|
+
contentClassName?: string;
|
|
19
|
+
contentStyle?: CSSProperties;
|
|
20
|
+
scale?: number[];
|
|
21
|
+
curve?: AnimationTimingFunction;
|
|
15
22
|
}
|
|
16
|
-
declare function PopupContainer(_props: PopupProps): React.ReactPortal
|
|
23
|
+
declare function PopupContainer(_props: PopupProps): React.ReactPortal;
|
|
17
24
|
export default PopupContainer;
|
package/dist/es/Popup/Popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as t}from"tslib";import e,{useRef as n,useCallback as i,useEffect as o,useState as r,useMemo as a}from"react";import{createPortal as l}from"react-dom";import{css as s}from"aphrodite/no-important";import c,{animateStyles as u}from"./styles.js";var f={visible:!1,position:"bottom",duration:200,bg:"rgba(0,0,0,.35)",maskClosable:!0,popupType:"fade",onClose:function(){return null},contentClassName:"",contentStyle:{},scale:[.2],curve:"linear"};function m(n){var l=n.bg,f=n.visible,m=n.duration,d=n.inject,p=n.dispose,_=n.maskClosable,y=n.onClose,b=n.children,v=n.position,g=n.contentStyle,C=n.contentClassName,h=n.popupType,j=n.scale,E=n.curve,x=r(f),I=x[0],N=x[1],k=r(!1),A=k[0],S=k[1];o((function(){N(f),f&&(p(),d(),S(!0))}),[f]),o((function(){return function(){S(!1),p()}}),[]);var T=i((function(){_&&N(!1)}),[_]),q=i((function(){I||(S(!1),y(),p())}),[I,y]),w=a((function(){return"bottom"===v?{justifyContent:"center",alignItems:"flex-end"}:"top"===v?{justifyContent:"center",alignItems:"flex-start"}:"left"===v?{justifyContent:"flex-start",alignItems:"center"}:"right"===v?{justifyContent:"flex-end",alignItems:"center"}:"center"===v?{justifyContent:"center",alignItems:"center"}:{}}),[v]),z=a((function(){if("slide"===h){if("top"===v)return I?c.slide_in_top:c.slide_out_top;if("bottom"===v)return I?c.slide_in_bottom:c.slide_out_bottom;if("left"===v)return I?c.slide_in_left:c.slide_out_left;if("right"===v)return I?c.slide_in_right:c.slide_out_right}else if("scale"===h&&Array.isArray(j)&&j.length>=1){var t=u(j);return I?t.scale_in:t.scale_out}return I?c.fade_in:c.fade_out}),[h,v,I,j]);return A?e.createElement("div",{style:t({"--bg":l,"--duration":m+"ms","--curve":E},w),className:s(c.container)},e.createElement("div",{onClick:T,onAnimationEnd:q,className:s(c.mask,c.animation_properties,I?c.fade_in:c.fade_out)}),e.createElement("div",{style:g,className:"".concat(C," ").concat(s(c.animation_properties,z))},b)):null}function d(r){var a=t(t({},f),r),s=n(document.createElement("div")),c=i((function(){document.body.appendChild(s.current)}),[]),u=i((function(){try{document.body.removeChild(s.current)}catch(t){}}),[]);return o((function(){return function(){return u()}}),[]),l(e.createElement(m,t({},a,{inject:c,dispose:u})),s.current)}export{d as default};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
container: object;
|
|
3
|
+
mask: object;
|
|
4
|
+
animation_properties: object;
|
|
5
|
+
fade_in: object;
|
|
6
|
+
fade_out: object;
|
|
7
|
+
slide_in_top: object;
|
|
8
|
+
slide_out_top: object;
|
|
9
|
+
slide_in_right: object;
|
|
10
|
+
slide_out_right: object;
|
|
11
|
+
slide_in_bottom: object;
|
|
12
|
+
slide_out_bottom: object;
|
|
13
|
+
slide_in_left: object;
|
|
14
|
+
slide_out_left: object;
|
|
3
15
|
};
|
|
4
16
|
export default styles;
|
|
17
|
+
export declare const animateStyles: (scale: number[]) => {
|
|
18
|
+
scale_in: object;
|
|
19
|
+
scale_out: object;
|
|
20
|
+
};
|
package/dist/es/Popup/styles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{StyleSheet as
|
|
1
|
+
import{__assign as t}from"tslib";import{StyleSheet as a}from"aphrodite/no-important";function n(t){return{from:{opacity:t?0:1},to:{opacity:t?1:0}}}function i(t,a){var n="0",i="0";return t?(n=a?"-100%":"100%",i="0"):(n="0",i=a?"-100%":"100%"),{from:{transform:"translate3d(0, ".concat(n,", 0)")},to:{transform:"translate3d(0, ".concat(i,", 0)")}}}function o(t,a){var n="0",i="0";return t?(n=a?"-100%":"100%",i="0"):(n="0",i=a?"-100%":"100%"),{from:{transform:"translate3d(".concat(n,", 0, 0)")},to:{transform:"translate3d(".concat(i,", 0, 0)")}}}var e=a.create({container:{position:"absolute",display:"flex",width:"100%",height:"100%",top:0,left:0,zIndex:99},mask:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:-10,backgroundColor:"var(--bg)"},animation_properties:{animationFillMode:"forwards",animationTimingFunction:"var(--curve)",animationDuration:"var(--duration)"},fade_in:{animationName:[n(!0)]},fade_out:{animationName:[n(!1)]},slide_in_top:{animationName:[i(!0,!0)]},slide_out_top:{animationName:[i(!1,!0)]},slide_in_right:{animationName:[o(!0,!1)]},slide_out_right:{animationName:[o(!1,!1)]},slide_in_bottom:{animationName:[i(!0,!1)]},slide_out_bottom:{animationName:[i(!1,!1)]},slide_in_left:{animationName:[o(!0,!0)]},slide_out_left:{animationName:[o(!1,!0)]}}),r=function(n){var i=1===n[n.length-1]?n.slice(0,-1):n,o={},e={};if(i.length){var r=100/i.length;o=t(t({},m({step:"0%",value:i[0]})),m({step:"100%",value:1})),e=t(t({},m({step:"0%",value:1})),m({step:"100%",value:i[0]})),i.forEach((function(t,a){a>0&&(Object.assign(o,m({step:"".concat(r*a,"%"),value:t})),Object.assign(e,m({step:"".concat(r*(n.length-a),"%"),value:t})))}))}return a.create({scale_in:{animationName:[o]},scale_out:{animationName:[e]}})};function m(t){var a;return(a={})[t.step]={transform:"scale3d(".concat(t.value,", ").concat(t.value,", 1)")},a}export{r as animateStyles,e as default};
|
package/dist/es/Popup/type.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React, { PropsWithChildren, ReactNode,
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren, ReactNode, FC, HTMLAttributes, Component } from 'react';
|
|
2
2
|
|
|
3
3
|
type PopupPosition = 'left' | 'top' | 'right' | 'bottom' | 'center';
|
|
4
4
|
type PopupType = 'slide' | 'fade' | 'scale';
|
|
5
|
+
type AnimationTimingFunction = CSSProperties['animationTimingFunction'];
|
|
5
6
|
|
|
6
7
|
interface ToParams {
|
|
7
8
|
x?: number;
|
|
@@ -90,6 +91,8 @@ declare class Loading extends Component<LoadingProps, LoadingState> {
|
|
|
90
91
|
declare module 'react' {
|
|
91
92
|
interface CSSProperties {
|
|
92
93
|
'--bg'?: string;
|
|
94
|
+
'--duration'?: string;
|
|
95
|
+
'--curve'?: AnimationTimingFunction;
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
interface PopupProps extends PropsWithChildren {
|
|
@@ -99,8 +102,13 @@ interface PopupProps extends PropsWithChildren {
|
|
|
99
102
|
bg?: string;
|
|
100
103
|
maskClosable?: boolean;
|
|
101
104
|
popupType?: PopupType;
|
|
105
|
+
onClose?: Function;
|
|
106
|
+
contentClassName?: string;
|
|
107
|
+
contentStyle?: CSSProperties;
|
|
108
|
+
scale?: number[];
|
|
109
|
+
curve?: AnimationTimingFunction;
|
|
102
110
|
}
|
|
103
|
-
declare function PopupContainer(_props: PopupProps): React.ReactPortal
|
|
111
|
+
declare function PopupContainer(_props: PopupProps): React.ReactPortal;
|
|
104
112
|
|
|
105
113
|
interface OnScrollParameters {
|
|
106
114
|
x?: number;
|
|
@@ -124,4 +132,4 @@ declare module 'react' {
|
|
|
124
132
|
}
|
|
125
133
|
declare const _default: <T extends unknown>(props: SwiperProps<T> & React.RefAttributes<SwiperExposeMethods>) => React.ReactNode;
|
|
126
134
|
|
|
127
|
-
export { Button, 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 };
|
|
135
|
+
export { type AnimationTimingFunction, Button, 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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("aphrodite/no-important"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("aphrodite/no-important"),r=require("react"),o=require("./styles.js"),i=["relative","absolute","fixed"];exports.default=function(s){var l=s.children,n=s.style,a=void 0===n?{}:n,c=s.block,u=void 0!==c&&c,d=s.className,f=void 0===d?"":d,p=s.radius,v=void 0===p?4:p,g=s.bg,h=void 0===g?"rgba(0,0,0,.7)":g,b=s.color,m=void 0===b?"#ffffff":b,y=s.onClick,C=s.wavesColor,_=void 0===C?"rgba(255,255,255,.3)":C,k=e.__rest(s,["children","style","block","className","radius","bg","color","onClick","wavesColor"]),x=r.useRef([]),w=r.useRef(null),q=r.useMemo((function(){return e.__assign(e.__assign({},a),{overflow:"hidden",borderRadius:v+"px",background:h,color:m})}),[a,v,h,m]),R=r.useCallback((function(e){null==y||y(e);var r,i=e.currentTarget;x.current.length?r=x.current.shift():(r=document.createElement("div")).classList.add(t.css(o.default.ripple));var s=i.getBoundingClientRect();r.style.width=r.style.height=Math.max(s.width,s.height)+"px",r.style.backgroundColor=_,i.appendChild(r);var l=e.pageY-s.top-r.offsetHeight/2+"px",n=e.pageX-s.left-r.offsetWidth/2+"px";r.style.top=l,r.style.left=n,r.onanimationend=function(){i.removeChild(r),x.current.push(r)}}),[y,_]);return r.useEffect((function(){if(w.current){var e=getComputedStyle(w.current);i.includes(e.position)||(w.current.style.position="relative")}}),[]),r.createElement("button",e.__assign({},k,{className:"".concat(f," ").concat(t.css(o.default.button)," ").concat(u?t.css(o.default.block):""),style:q,ref:w,onClick:R}),l)};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { PopupPosition, PopupType } from './type';
|
|
1
|
+
import React, { CSSProperties, PropsWithChildren } from 'react';
|
|
2
|
+
import { AnimationTimingFunction, PopupPosition, PopupType } from './type';
|
|
3
3
|
declare module 'react' {
|
|
4
4
|
interface CSSProperties {
|
|
5
5
|
'--bg'?: string;
|
|
6
|
+
'--duration'?: string;
|
|
7
|
+
'--curve'?: AnimationTimingFunction;
|
|
6
8
|
}
|
|
7
9
|
}
|
|
8
10
|
interface PopupProps extends PropsWithChildren {
|
|
@@ -12,6 +14,11 @@ interface PopupProps extends PropsWithChildren {
|
|
|
12
14
|
bg?: string;
|
|
13
15
|
maskClosable?: boolean;
|
|
14
16
|
popupType?: PopupType;
|
|
17
|
+
onClose?: Function;
|
|
18
|
+
contentClassName?: string;
|
|
19
|
+
contentStyle?: CSSProperties;
|
|
20
|
+
scale?: number[];
|
|
21
|
+
curve?: AnimationTimingFunction;
|
|
15
22
|
}
|
|
16
|
-
declare function PopupContainer(_props: PopupProps): React.ReactPortal
|
|
23
|
+
declare function PopupContainer(_props: PopupProps): React.ReactPortal;
|
|
17
24
|
export default PopupContainer;
|
package/dist/lib/Popup/Popup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react"),n=require("react-dom"),a=require("aphrodite/no-important"),i=require("./styles.js"),r={visible:!1,position:"bottom",duration:200,bg:"rgba(0,0,0,.35)",maskClosable:!0,popupType:"fade",onClose:function(){return null},contentClassName:"",contentStyle:{},scale:[.2],curve:"linear"};function s(n){var r=n.bg,s=n.visible,u=n.duration,l=n.inject,o=n.dispose,c=n.maskClosable,f=n.onClose,d=n.children,m=n.position,_=n.contentStyle,p=n.contentClassName,b=n.popupType,y=n.scale,g=n.curve,C=t.useState(s),v=C[0],h=C[1],j=t.useState(!1),E=j[0],k=j[1];t.useEffect((function(){h(s),s&&(o(),l(),k(!0))}),[s]),t.useEffect((function(){return function(){k(!1),o()}}),[]);var x=t.useCallback((function(){c&&h(!1)}),[c]),q=t.useCallback((function(){v||(k(!1),f(),o())}),[v,f]),I=t.useMemo((function(){return"bottom"===m?{justifyContent:"center",alignItems:"flex-end"}:"top"===m?{justifyContent:"center",alignItems:"flex-start"}:"left"===m?{justifyContent:"flex-start",alignItems:"center"}:"right"===m?{justifyContent:"flex-end",alignItems:"center"}:"center"===m?{justifyContent:"center",alignItems:"center"}:{}}),[m]),N=t.useMemo((function(){if("slide"===b){if("top"===m)return v?i.default.slide_in_top:i.default.slide_out_top;if("bottom"===m)return v?i.default.slide_in_bottom:i.default.slide_out_bottom;if("left"===m)return v?i.default.slide_in_left:i.default.slide_out_left;if("right"===m)return v?i.default.slide_in_right:i.default.slide_out_right}else if("scale"===b&&Array.isArray(y)&&y.length>=1){var e=i.animateStyles(y);return v?e.scale_in:e.scale_out}return v?i.default.fade_in:i.default.fade_out}),[b,m,v,y]);return E?t.createElement("div",{style:e.__assign({"--bg":r,"--duration":u+"ms","--curve":g},I),className:a.css(i.default.container)},t.createElement("div",{onClick:x,onAnimationEnd:q,className:a.css(i.default.mask,i.default.animation_properties,v?i.default.fade_in:i.default.fade_out)}),t.createElement("div",{style:_,className:"".concat(p," ").concat(a.css(i.default.animation_properties,N))},d)):null}exports.default=function(a){var i=e.__assign(e.__assign({},r),a),u=t.useRef(document.createElement("div")),l=t.useCallback((function(){document.body.appendChild(u.current)}),[]),o=t.useCallback((function(){try{document.body.removeChild(u.current)}catch(e){}}),[]);return t.useEffect((function(){return function(){return o()}}),[]),n.createPortal(t.createElement(s,e.__assign({},i,{inject:l,dispose:o})),u.current)};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
container: object;
|
|
3
|
+
mask: object;
|
|
4
|
+
animation_properties: object;
|
|
5
|
+
fade_in: object;
|
|
6
|
+
fade_out: object;
|
|
7
|
+
slide_in_top: object;
|
|
8
|
+
slide_out_top: object;
|
|
9
|
+
slide_in_right: object;
|
|
10
|
+
slide_out_right: object;
|
|
11
|
+
slide_in_bottom: object;
|
|
12
|
+
slide_out_bottom: object;
|
|
13
|
+
slide_in_left: object;
|
|
14
|
+
slide_out_left: object;
|
|
3
15
|
};
|
|
4
16
|
export default styles;
|
|
17
|
+
export declare const animateStyles: (scale: number[]) => {
|
|
18
|
+
scale_in: object;
|
|
19
|
+
scale_out: object;
|
|
20
|
+
};
|
package/dist/lib/Popup/styles.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),a=require("aphrodite/no-important");function e(t){return{from:{opacity:t?0:1},to:{opacity:t?1:0}}}function n(t,a){var e="0",n="0";return t?(e=a?"-100%":"100%",n="0"):(e="0",n=a?"-100%":"100%"),{from:{transform:"translate3d(0, ".concat(e,", 0)")},to:{transform:"translate3d(0, ".concat(n,", 0)")}}}function i(t,a){var e="0",n="0";return t?(e=a?"-100%":"100%",n="0"):(e="0",n=a?"-100%":"100%"),{from:{transform:"translate3d(".concat(e,", 0, 0)")},to:{transform:"translate3d(".concat(n,", 0, 0)")}}}var o=a.StyleSheet.create({container:{position:"absolute",display:"flex",width:"100%",height:"100%",top:0,left:0,zIndex:99},mask:{position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:-10,backgroundColor:"var(--bg)"},animation_properties:{animationFillMode:"forwards",animationTimingFunction:"var(--curve)",animationDuration:"var(--duration)"},fade_in:{animationName:[e(!0)]},fade_out:{animationName:[e(!1)]},slide_in_top:{animationName:[n(!0,!0)]},slide_out_top:{animationName:[n(!1,!0)]},slide_in_right:{animationName:[i(!0,!1)]},slide_out_right:{animationName:[i(!1,!1)]},slide_in_bottom:{animationName:[n(!0,!1)]},slide_out_bottom:{animationName:[n(!1,!1)]},slide_in_left:{animationName:[i(!0,!0)]},slide_out_left:{animationName:[i(!1,!0)]}});function r(t){var a;return(a={})[t.step]={transform:"scale3d(".concat(t.value,", ").concat(t.value,", 1)")},a}exports.animateStyles=function(e){var n=1===e[e.length-1]?e.slice(0,-1):e,i={},o={};if(n.length){var s=100/n.length;i=t.__assign(t.__assign({},r({step:"0%",value:n[0]})),r({step:"100%",value:1})),o=t.__assign(t.__assign({},r({step:"0%",value:1})),r({step:"100%",value:n[0]})),n.forEach((function(t,a){a>0&&(Object.assign(i,r({step:"".concat(s*a,"%"),value:t})),Object.assign(o,r({step:"".concat(s*(e.length-a),"%"),value:t})))}))}return a.StyleSheet.create({scale_in:{animationName:[i]},scale_out:{animationName:[o]}})},exports.default=o;
|
package/dist/lib/Popup/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rox-react-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"main": "dist/lib/index.js",
|
|
5
5
|
"module": "dist/es/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"react swiper carousel pc mobile touch mouse",
|
|
21
21
|
"touch events swiper",
|
|
22
22
|
"touch events carousel",
|
|
23
|
-
"scrollview reachTop reachBottom reachLeft reachRight"
|
|
23
|
+
"scrollview reachTop reachBottom reachLeft reachRight",
|
|
24
|
+
"popup、modal"
|
|
24
25
|
],
|
|
25
26
|
"files": [
|
|
26
27
|
"dist",
|