@xanui/core 1.2.22 → 1.2.25
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/Transition/index.d.ts +10 -30
- package/Transition/index.js +7 -92
- package/Transition/index.js.map +1 -1
- package/Transition/index.mjs +7 -92
- package/Transition/index.mjs.map +1 -1
- package/css/getProps.js +3 -1
- package/css/getProps.js.map +1 -1
- package/css/getProps.mjs +3 -1
- package/css/getProps.mjs.map +1 -1
- package/hooks/useAnimation.d.ts +4 -5
- package/hooks/useAnimation.js +15 -8
- package/hooks/useAnimation.js.map +1 -1
- package/hooks/useAnimation.mjs +15 -8
- package/hooks/useAnimation.mjs.map +1 -1
- package/hooks/useTransition/index.d.ts +36 -0
- package/hooks/useTransition/index.js +88 -0
- package/hooks/useTransition/index.js.map +1 -0
- package/hooks/useTransition/index.mjs +88 -0
- package/hooks/useTransition/index.mjs.map +1 -0
- package/{Transition → hooks/useTransition}/variants.d.ts +17 -19
- package/hooks/useTransition/variants.js +158 -0
- package/hooks/useTransition/variants.js.map +1 -0
- package/hooks/useTransition/variants.mjs +158 -0
- package/hooks/useTransition/variants.mjs.map +1 -0
- package/index.d.ts +2 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +3 -3
- package/Transition/variants.js +0 -158
- package/Transition/variants.js.map +0 -1
- package/Transition/variants.mjs +0 -158
- package/Transition/variants.mjs.map +0 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
const slideDown = (rect) => {
|
|
2
|
+
return {
|
|
3
|
+
from: {
|
|
4
|
+
transform: `translateY(-${rect.height}px)`,
|
|
5
|
+
},
|
|
6
|
+
to: {
|
|
7
|
+
transform: `translateY(0)`,
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
const slideUp = (rect) => {
|
|
12
|
+
return {
|
|
13
|
+
from: {
|
|
14
|
+
transform: `translateY(${rect.height}px)`,
|
|
15
|
+
},
|
|
16
|
+
to: {
|
|
17
|
+
transform: `translateY(0)`,
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
const slideRight = (rect) => {
|
|
22
|
+
return {
|
|
23
|
+
from: {
|
|
24
|
+
transform: `translateX(-${rect.width}px)`,
|
|
25
|
+
},
|
|
26
|
+
to: {
|
|
27
|
+
transform: `translateX(0)`,
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
const slideLeft = (rect) => {
|
|
32
|
+
return {
|
|
33
|
+
from: {
|
|
34
|
+
transform: `translateX(${rect.width}px)`,
|
|
35
|
+
},
|
|
36
|
+
to: {
|
|
37
|
+
transform: `translateX(0)`,
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
const fade = () => {
|
|
42
|
+
return {
|
|
43
|
+
from: {
|
|
44
|
+
opacity: 0
|
|
45
|
+
},
|
|
46
|
+
to: {
|
|
47
|
+
opacity: 1
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
const fadeDown = () => {
|
|
52
|
+
return {
|
|
53
|
+
from: {
|
|
54
|
+
transform: `translateY(-30px)`,
|
|
55
|
+
opacity: 0
|
|
56
|
+
},
|
|
57
|
+
to: {
|
|
58
|
+
transform: `translateY(0)`,
|
|
59
|
+
opacity: 1
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const fadeUp = () => {
|
|
64
|
+
return {
|
|
65
|
+
from: {
|
|
66
|
+
transform: `translateY(30px)`,
|
|
67
|
+
opacity: 0
|
|
68
|
+
},
|
|
69
|
+
to: {
|
|
70
|
+
transform: `translateY(0)`,
|
|
71
|
+
opacity: 1
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
const fadeRight = () => {
|
|
76
|
+
return {
|
|
77
|
+
from: {
|
|
78
|
+
transform: `translateX(-30px)`,
|
|
79
|
+
opacity: 0
|
|
80
|
+
},
|
|
81
|
+
to: {
|
|
82
|
+
transform: `translateX(0)`,
|
|
83
|
+
opacity: 1
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
const fadeLeft = () => {
|
|
88
|
+
return {
|
|
89
|
+
from: {
|
|
90
|
+
transform: `translateX(30px)`,
|
|
91
|
+
opacity: 0
|
|
92
|
+
},
|
|
93
|
+
to: {
|
|
94
|
+
transform: `translateX(0)`,
|
|
95
|
+
opacity: 1
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
const grow = () => {
|
|
100
|
+
return {
|
|
101
|
+
from: {
|
|
102
|
+
transform: "scale(.8, .6)",
|
|
103
|
+
opacity: 0
|
|
104
|
+
},
|
|
105
|
+
to: {
|
|
106
|
+
transform: "scale(1)",
|
|
107
|
+
opacity: 1
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
const zoom = () => {
|
|
112
|
+
return {
|
|
113
|
+
from: {
|
|
114
|
+
transform: "scale(.8)",
|
|
115
|
+
opacity: 0
|
|
116
|
+
},
|
|
117
|
+
to: {
|
|
118
|
+
transform: "scale(1)",
|
|
119
|
+
opacity: 1
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
const zoomOver = () => {
|
|
124
|
+
return {
|
|
125
|
+
from: {
|
|
126
|
+
transform: "scale(1.2)",
|
|
127
|
+
opacity: 0
|
|
128
|
+
},
|
|
129
|
+
to: {
|
|
130
|
+
transform: "scale(1)",
|
|
131
|
+
opacity: 1
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
const collapseVertical = (rect) => {
|
|
136
|
+
return {
|
|
137
|
+
from: {
|
|
138
|
+
maxHeight: 0 + "px",
|
|
139
|
+
overflow: "hidden"
|
|
140
|
+
},
|
|
141
|
+
to: {
|
|
142
|
+
maxHeight: rect.height,
|
|
143
|
+
overflow: "hidden"
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
const collapseHorizontal = (rect) => {
|
|
148
|
+
return {
|
|
149
|
+
from: {
|
|
150
|
+
width: 0 + "px",
|
|
151
|
+
overflow: "hidden"
|
|
152
|
+
},
|
|
153
|
+
to: {
|
|
154
|
+
width: (rect === null || rect === void 0 ? void 0 : rect.width) ? (rect === null || rect === void 0 ? void 0 : rect.width) + "px" : "auto",
|
|
155
|
+
overflow: "hidden"
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
};export{collapseHorizontal,collapseVertical,fade,fadeDown,fadeLeft,fadeRight,fadeUp,grow,slideDown,slideLeft,slideRight,slideUp,zoom,zoomOver};//# sourceMappingURL=variants.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"variants.mjs","sources":["../../../src/hooks/useTransition/variants.ts"],"sourcesContent":["\nexport const slideDown = (rect: DOMRect) => {\n\n return {\n from: {\n transform: `translateY(-${rect.height}px)`,\n },\n to: {\n transform: `translateY(0)`,\n }\n }\n}\n\nexport const slideUp = (rect: DOMRect) => {\n return {\n from: {\n transform: `translateY(${rect.height}px)`,\n },\n to: {\n transform: `translateY(0)`,\n }\n }\n}\n\nexport const slideRight = (rect: DOMRect) => {\n return {\n from: {\n transform: `translateX(-${rect.width}px)`,\n },\n to: {\n transform: `translateX(0)`,\n }\n }\n}\n\nexport const slideLeft = (rect: DOMRect) => {\n return {\n from: {\n transform: `translateX(${rect.width}px)`,\n },\n to: {\n transform: `translateX(0)`,\n }\n }\n}\n\nexport const fade = () => {\n return {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n }\n}\n\nexport const fadeDown = () => {\n return {\n from: {\n transform: `translateY(-30px)`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)`,\n opacity: 1\n }\n }\n}\n\nexport const fadeUp = () => {\n return {\n from: {\n transform: `translateY(30px)`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)`,\n opacity: 1\n }\n }\n}\n\nexport const fadeRight = () => {\n return {\n from: {\n transform: `translateX(-30px)`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)`,\n opacity: 1\n }\n }\n}\n\nexport const fadeLeft = () => {\n return {\n from: {\n transform: `translateX(30px)`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)`,\n opacity: 1\n }\n }\n}\n\nexport const grow = () => {\n return {\n from: {\n transform: \"scale(.8, .6)\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)\",\n opacity: 1\n }\n }\n}\n\nexport const zoom = () => {\n return {\n from: {\n transform: \"scale(.8)\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)\",\n opacity: 1\n }\n }\n}\n\nexport const zoomOver = () => {\n return {\n from: {\n transform: \"scale(1.2)\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)\",\n opacity: 1\n }\n }\n}\n\nexport const collapseVertical = (rect: DOMRect) => {\n\n return {\n from: {\n maxHeight: 0 + \"px\",\n overflow: \"hidden\"\n },\n to: {\n maxHeight: rect.height,\n overflow: \"hidden\"\n }\n }\n}\n\n\nexport const collapseHorizontal = (rect: DOMRect) => {\n return {\n from: {\n width: 0 + \"px\",\n overflow: \"hidden\"\n },\n to: {\n width: rect?.width ? rect?.width + \"px\" : \"auto\",\n overflow: \"hidden\"\n }\n }\n}\n\n\n\n\n"],"names":[],"mappings":"AACO,MAAM,SAAS,GAAG,CAAC,IAAa,KAAI;IAEvC,OAAO;AACH,QAAA,IAAI,EAAE;AACF,YAAA,SAAS,EAAE,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAA,GAAA,CAAK;AAC7C,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,SAAS,EAAE,CAAA,aAAA,CAAe;AAC7B;KACJ;AACL;AAEO,MAAM,OAAO,GAAG,CAAC,IAAa,KAAI;IACrC,OAAO;AACH,QAAA,IAAI,EAAE;AACF,YAAA,SAAS,EAAE,CAAA,WAAA,EAAc,IAAI,CAAC,MAAM,CAAA,GAAA,CAAK;AAC5C,SAAA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AI;IAE9C,OAAO;AACH,QAAA,IAAI,EAAE;YACF,SAAS,EAAE,CAAC,GAAG,IAAI;AACnB,YAAA,QAAQ,EAAE;AACb,SAAA;AACD,QAAA,EAAE,EAAE;YACA,SAAS,EAAE,IAAI,CAAC,MAAM;AACtB,YAAA,QAAQ,EAAE;AACb;KACJ;AACL;AAGO,MAAM,kBAAkB,GAAG,CAAC,IAAa,KAAI;IAChD,OAAO;AACH,QAAA,IAAI,EAAE;YACF,KAAK,EAAE,CAAC,GAAG,IAAI;AACf,YAAA,QAAQ,EAAE;AACb,SAAA;AACD,QAAA,EAAE,EAAE;YACA,KAAK,EAAE,CAAA,IAAI,KAAA,IAAA,IAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAG,CAAA,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,KAAK,IAAG,IAAI,GAAG,MAAM;AAChD,YAAA,QAAQ,EAAE;AACb;KACJ;AACL"}
|
package/index.d.ts
CHANGED
|
@@ -5,7 +5,8 @@ export { UseColorTemplateColor, UseColorTemplateType, default as useColorTemplat
|
|
|
5
5
|
export { default as useBreakpoint } from './breakpoint/useBreakpoint.js';
|
|
6
6
|
export { default as useBreakpointProps, useBreakpointPropsType } from './breakpoint/useBreakpointProps.js';
|
|
7
7
|
export { default as useInterface } from './hooks/useInterface.js';
|
|
8
|
-
export {
|
|
8
|
+
export { UseTransitionProps, UseTransitionState, UseTransitionVariant, UseTransitionVariantTypes, default as useTransition } from './hooks/useTransition/index.js';
|
|
9
|
+
export { default as Transition, TransitionProps } from './Transition/index.js';
|
|
9
10
|
export { default as AppRoot, AppRootProps, appRootElement } from './AppRoot/index.js';
|
|
10
11
|
export { default as usePortal } from './hooks/usePortal.js';
|
|
11
12
|
export { Renderar } from './AppRoot/Renderar.js';
|
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var index$1=require('./Tag/index.js'),useTagProps=require('./Tag/useTagProps.js'),useAnimation=require('./hooks/useAnimation.js'),useColorTemplate=require('./hooks/useColorTemplate.js'),useBreakpoint=require('./breakpoint/useBreakpoint.js'),useBreakpointProps=require('./breakpoint/useBreakpointProps.js'),useInterface=require('./hooks/useInterface.js'),index$2=require('./Transition/index.js'),index=require('./AppRoot/index.js'),usePortal=require('./hooks/usePortal.js'),Renderar=require('./AppRoot/Renderar.js'),index$
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var index$1=require('./Tag/index.js'),useTagProps=require('./Tag/useTagProps.js'),useAnimation=require('./hooks/useAnimation.js'),useColorTemplate=require('./hooks/useColorTemplate.js'),useBreakpoint=require('./breakpoint/useBreakpoint.js'),useBreakpointProps=require('./breakpoint/useBreakpointProps.js'),useInterface=require('./hooks/useInterface.js'),index$3=require('./hooks/useTransition/index.js'),index$2=require('./Transition/index.js'),index=require('./AppRoot/index.js'),usePortal=require('./hooks/usePortal.js'),Renderar=require('./AppRoot/Renderar.js'),index$4=require('./css/index.js'),index$5=require('./theme/index.js'),getValue=require('./css/getValue.js'),getProps=require('./css/getProps.js'),ThemeProvider=require('./theme/ThemeProvider.js'),createThemeSwitcher=require('./theme/createThemeSwitcher.js'),createTheme=require('./theme/createTheme.js'),core=require('./theme/core.js');exports.Tag=index$1.default;exports.useTagProps=useTagProps.default;exports.animationEases=useAnimation.animationEases;exports.useAnimation=useAnimation.default;exports.useColorTemplate=useColorTemplate.default;exports.useBreakpoint=useBreakpoint.default;exports.useBreakpointProps=useBreakpointProps.default;exports.useInterface=useInterface.default;exports.useTransition=index$3.default;exports.Transition=index$2.default;exports.AppRoot=index.default;exports.appRootElement=index.appRootElement;exports.usePortal=usePortal.usePortal;exports.Renderar=Renderar.Renderar;exports.adjustColor=index$4.adjustColor;exports.adjustTextContrast=index$4.adjustTextContrast;exports.alpha=index$4.alpha;exports.breakpoints=index$4.breakpoints;exports.css=index$4.css;exports.themeRootClass=index$5.themeRootClass;exports.getValue=getValue.default;exports.getProps=getProps.default;exports.ThemeProvider=ThemeProvider.default;exports.createThemeSwitcher=createThemeSwitcher.default;exports.createTheme=createTheme.createTheme;exports.getTheme=core.getTheme;exports.useTheme=core.useTheme;//# sourceMappingURL=index.js.map
|
package/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{default as Tag}from'./Tag/index.mjs';export{default as useTagProps}from'./Tag/useTagProps.mjs';export{animationEases,default as useAnimation}from'./hooks/useAnimation.mjs';export{default as useColorTemplate}from'./hooks/useColorTemplate.mjs';export{default as useBreakpoint}from'./breakpoint/useBreakpoint.mjs';export{default as useBreakpointProps}from'./breakpoint/useBreakpointProps.mjs';export{default as useInterface}from'./hooks/useInterface.mjs';export{default as Transition}from'./Transition/index.mjs';export{default as AppRoot,appRootElement}from'./AppRoot/index.mjs';export{usePortal}from'./hooks/usePortal.mjs';export{Renderar}from'./AppRoot/Renderar.mjs';export{adjustColor,adjustTextContrast,alpha,breakpoints,css}from'./css/index.mjs';export{themeRootClass}from'./theme/index.mjs';export{default as getValue}from'./css/getValue.mjs';export{default as getProps}from'./css/getProps.mjs';export{default as ThemeProvider}from'./theme/ThemeProvider.mjs';export{default as createThemeSwitcher}from'./theme/createThemeSwitcher.mjs';export{createTheme}from'./theme/createTheme.mjs';export{getTheme,useTheme}from'./theme/core.mjs';//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export{default as Tag}from'./Tag/index.mjs';export{default as useTagProps}from'./Tag/useTagProps.mjs';export{animationEases,default as useAnimation}from'./hooks/useAnimation.mjs';export{default as useColorTemplate}from'./hooks/useColorTemplate.mjs';export{default as useBreakpoint}from'./breakpoint/useBreakpoint.mjs';export{default as useBreakpointProps}from'./breakpoint/useBreakpointProps.mjs';export{default as useInterface}from'./hooks/useInterface.mjs';export{default as useTransition}from'./hooks/useTransition/index.mjs';export{default as Transition}from'./Transition/index.mjs';export{default as AppRoot,appRootElement}from'./AppRoot/index.mjs';export{usePortal}from'./hooks/usePortal.mjs';export{Renderar}from'./AppRoot/Renderar.mjs';export{adjustColor,adjustTextContrast,alpha,breakpoints,css}from'./css/index.mjs';export{themeRootClass}from'./theme/index.mjs';export{default as getValue}from'./css/getValue.mjs';export{default as getProps}from'./css/getProps.mjs';export{default as ThemeProvider}from'./theme/ThemeProvider.mjs';export{default as createThemeSwitcher}from'./theme/createThemeSwitcher.mjs';export{createTheme}from'./theme/createTheme.mjs';export{getTheme,useTheme}from'./theme/core.mjs';//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xanui/core",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.2.25",
|
|
4
|
+
"description": "Xanui Core Library",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"module": "./index.mjs",
|
|
8
8
|
"types": "./index.d.ts",
|
|
9
9
|
"sideEffects": false,
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"oncss": "^1.2.
|
|
11
|
+
"oncss": "^1.2.5",
|
|
12
12
|
"pretty-class": "^1.0.8",
|
|
13
13
|
"react-state-bucket": "^1.2.6"
|
|
14
14
|
},
|
package/Transition/variants.js
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});const slideDown = (_arg) => {
|
|
2
|
-
return {
|
|
3
|
-
from: {
|
|
4
|
-
transform: `translateY(-${_arg.height}px)!important`,
|
|
5
|
-
},
|
|
6
|
-
to: {
|
|
7
|
-
transform: `translateY(0)!important`,
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
const slideUp = (_arg) => {
|
|
12
|
-
return {
|
|
13
|
-
from: {
|
|
14
|
-
transform: `translateY(${_arg.height}px)!important`,
|
|
15
|
-
},
|
|
16
|
-
to: {
|
|
17
|
-
transform: `translateY(0)!important`,
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const slideRight = (_arg) => {
|
|
22
|
-
return {
|
|
23
|
-
from: {
|
|
24
|
-
transform: `translateX(-${_arg.width}px)!important`,
|
|
25
|
-
},
|
|
26
|
-
to: {
|
|
27
|
-
transform: `translateX(0)!important`,
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
const slideLeft = (_arg) => {
|
|
32
|
-
return {
|
|
33
|
-
from: {
|
|
34
|
-
transform: `translateX(${_arg.width}px)!important`,
|
|
35
|
-
},
|
|
36
|
-
to: {
|
|
37
|
-
transform: `translateX(0)!important`,
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const fade = (_arg) => {
|
|
42
|
-
return {
|
|
43
|
-
from: {
|
|
44
|
-
opacity: 0
|
|
45
|
-
},
|
|
46
|
-
to: {
|
|
47
|
-
opacity: 1
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
const fadeDown = (_arg) => {
|
|
52
|
-
return {
|
|
53
|
-
from: {
|
|
54
|
-
transform: `translateY(-30px)!important`,
|
|
55
|
-
opacity: 0
|
|
56
|
-
},
|
|
57
|
-
to: {
|
|
58
|
-
transform: `translateY(0)!important`,
|
|
59
|
-
opacity: 1
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
const fadeUp = (_arg) => {
|
|
64
|
-
return {
|
|
65
|
-
from: {
|
|
66
|
-
transform: `translateY(30px)!important`,
|
|
67
|
-
opacity: 0
|
|
68
|
-
},
|
|
69
|
-
to: {
|
|
70
|
-
transform: `translateY(0)!important`,
|
|
71
|
-
opacity: 1
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
const fadeRight = (_arg) => {
|
|
76
|
-
return {
|
|
77
|
-
from: {
|
|
78
|
-
transform: `translateX(-30px)!important`,
|
|
79
|
-
opacity: 0
|
|
80
|
-
},
|
|
81
|
-
to: {
|
|
82
|
-
transform: `translateX(0)!important`,
|
|
83
|
-
opacity: 1
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
const fadeLeft = (_arg) => {
|
|
88
|
-
return {
|
|
89
|
-
from: {
|
|
90
|
-
transform: `translateX(30px)!important`,
|
|
91
|
-
opacity: 0
|
|
92
|
-
},
|
|
93
|
-
to: {
|
|
94
|
-
transform: `translateX(0)!important`,
|
|
95
|
-
opacity: 1
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
const grow = (_arg) => {
|
|
100
|
-
return {
|
|
101
|
-
from: {
|
|
102
|
-
transform: "scale(.8, .6)!important",
|
|
103
|
-
opacity: 0
|
|
104
|
-
},
|
|
105
|
-
to: {
|
|
106
|
-
transform: "scale(1)!important",
|
|
107
|
-
opacity: 1
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
const zoom = (_arg) => {
|
|
112
|
-
return {
|
|
113
|
-
from: {
|
|
114
|
-
transform: "scale(.8)!important",
|
|
115
|
-
opacity: 0
|
|
116
|
-
},
|
|
117
|
-
to: {
|
|
118
|
-
transform: "scale(1)!important",
|
|
119
|
-
opacity: 1
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
const zoomOver = (_arg) => {
|
|
124
|
-
return {
|
|
125
|
-
from: {
|
|
126
|
-
transform: "scale(1.2)!important",
|
|
127
|
-
opacity: 0
|
|
128
|
-
},
|
|
129
|
-
to: {
|
|
130
|
-
transform: "scale(1)!important",
|
|
131
|
-
opacity: 1
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
const collapsVerticle = (_arg) => {
|
|
136
|
-
return {
|
|
137
|
-
from: {
|
|
138
|
-
height: 0 + "px!important",
|
|
139
|
-
overflow: "hidden"
|
|
140
|
-
},
|
|
141
|
-
to: {
|
|
142
|
-
height: (_arg === null || _arg === void 0 ? void 0 : _arg.height) ? (_arg === null || _arg === void 0 ? void 0 : _arg.height) + "px!important" : "auto",
|
|
143
|
-
overflow: "hidden"
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
const collapsHorizental = (_arg) => {
|
|
148
|
-
return {
|
|
149
|
-
from: {
|
|
150
|
-
width: 0 + "px!important",
|
|
151
|
-
overflow: "hidden"
|
|
152
|
-
},
|
|
153
|
-
to: {
|
|
154
|
-
width: (_arg === null || _arg === void 0 ? void 0 : _arg.width) ? (_arg === null || _arg === void 0 ? void 0 : _arg.width) + "px!important" : "auto",
|
|
155
|
-
overflow: "hidden"
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
};exports.collapsHorizental=collapsHorizental;exports.collapsVerticle=collapsVerticle;exports.fade=fade;exports.fadeDown=fadeDown;exports.fadeLeft=fadeLeft;exports.fadeRight=fadeRight;exports.fadeUp=fadeUp;exports.grow=grow;exports.slideDown=slideDown;exports.slideLeft=slideLeft;exports.slideRight=slideRight;exports.slideUp=slideUp;exports.zoom=zoom;exports.zoomOver=zoomOver;//# sourceMappingURL=variants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variants.js","sources":["../../src/Transition/variants.ts"],"sourcesContent":["import { TransitionElementProps } from \".\"\n\nexport const slideDown = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(-${_arg.height}px)!important`,\n },\n to: {\n transform: `translateY(0)!important`,\n }\n }\n}\n\nexport const slideUp = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(${_arg.height}px)!important`,\n },\n to: {\n transform: `translateY(0)!important`,\n }\n }\n}\n\nexport const slideRight = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(-${_arg.width}px)!important`,\n },\n to: {\n transform: `translateX(0)!important`,\n }\n }\n}\n\nexport const slideLeft = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(${_arg.width}px)!important`,\n },\n to: {\n transform: `translateX(0)!important`,\n }\n }\n}\n\nexport const fade = (_arg: TransitionElementProps) => {\n return {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n }\n}\n\nexport const fadeDown = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(-30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeUp = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeRight = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(-30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeLeft = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const grow = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(.8, .6)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const zoom = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(.8)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const zoomOver = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(1.2)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const collapsVerticle = (_arg: TransitionElementProps) => {\n return {\n from: {\n height: 0 + \"px!important\",\n overflow: \"hidden\"\n },\n to: {\n height: _arg?.height ? _arg?.height + \"px!important\" : \"auto\",\n overflow: \"hidden\"\n }\n }\n}\n\n\nexport const collapsHorizental = (_arg: TransitionElementProps) => {\n return {\n from: {\n width: 0 + \"px!important\",\n overflow: \"h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A,IAAA,IAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,IAAG,CAAA,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,KAAK,IAAG,cAAc,GAAG,MAAM;AAC1D,YAAA,QAAQ,EAAE;AACb;KACJ;AACL"}
|
package/Transition/variants.mjs
DELETED
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
const slideDown = (_arg) => {
|
|
2
|
-
return {
|
|
3
|
-
from: {
|
|
4
|
-
transform: `translateY(-${_arg.height}px)!important`,
|
|
5
|
-
},
|
|
6
|
-
to: {
|
|
7
|
-
transform: `translateY(0)!important`,
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
const slideUp = (_arg) => {
|
|
12
|
-
return {
|
|
13
|
-
from: {
|
|
14
|
-
transform: `translateY(${_arg.height}px)!important`,
|
|
15
|
-
},
|
|
16
|
-
to: {
|
|
17
|
-
transform: `translateY(0)!important`,
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const slideRight = (_arg) => {
|
|
22
|
-
return {
|
|
23
|
-
from: {
|
|
24
|
-
transform: `translateX(-${_arg.width}px)!important`,
|
|
25
|
-
},
|
|
26
|
-
to: {
|
|
27
|
-
transform: `translateX(0)!important`,
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
const slideLeft = (_arg) => {
|
|
32
|
-
return {
|
|
33
|
-
from: {
|
|
34
|
-
transform: `translateX(${_arg.width}px)!important`,
|
|
35
|
-
},
|
|
36
|
-
to: {
|
|
37
|
-
transform: `translateX(0)!important`,
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const fade = (_arg) => {
|
|
42
|
-
return {
|
|
43
|
-
from: {
|
|
44
|
-
opacity: 0
|
|
45
|
-
},
|
|
46
|
-
to: {
|
|
47
|
-
opacity: 1
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
const fadeDown = (_arg) => {
|
|
52
|
-
return {
|
|
53
|
-
from: {
|
|
54
|
-
transform: `translateY(-30px)!important`,
|
|
55
|
-
opacity: 0
|
|
56
|
-
},
|
|
57
|
-
to: {
|
|
58
|
-
transform: `translateY(0)!important`,
|
|
59
|
-
opacity: 1
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
const fadeUp = (_arg) => {
|
|
64
|
-
return {
|
|
65
|
-
from: {
|
|
66
|
-
transform: `translateY(30px)!important`,
|
|
67
|
-
opacity: 0
|
|
68
|
-
},
|
|
69
|
-
to: {
|
|
70
|
-
transform: `translateY(0)!important`,
|
|
71
|
-
opacity: 1
|
|
72
|
-
}
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
const fadeRight = (_arg) => {
|
|
76
|
-
return {
|
|
77
|
-
from: {
|
|
78
|
-
transform: `translateX(-30px)!important`,
|
|
79
|
-
opacity: 0
|
|
80
|
-
},
|
|
81
|
-
to: {
|
|
82
|
-
transform: `translateX(0)!important`,
|
|
83
|
-
opacity: 1
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
const fadeLeft = (_arg) => {
|
|
88
|
-
return {
|
|
89
|
-
from: {
|
|
90
|
-
transform: `translateX(30px)!important`,
|
|
91
|
-
opacity: 0
|
|
92
|
-
},
|
|
93
|
-
to: {
|
|
94
|
-
transform: `translateX(0)!important`,
|
|
95
|
-
opacity: 1
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
};
|
|
99
|
-
const grow = (_arg) => {
|
|
100
|
-
return {
|
|
101
|
-
from: {
|
|
102
|
-
transform: "scale(.8, .6)!important",
|
|
103
|
-
opacity: 0
|
|
104
|
-
},
|
|
105
|
-
to: {
|
|
106
|
-
transform: "scale(1)!important",
|
|
107
|
-
opacity: 1
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
const zoom = (_arg) => {
|
|
112
|
-
return {
|
|
113
|
-
from: {
|
|
114
|
-
transform: "scale(.8)!important",
|
|
115
|
-
opacity: 0
|
|
116
|
-
},
|
|
117
|
-
to: {
|
|
118
|
-
transform: "scale(1)!important",
|
|
119
|
-
opacity: 1
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
const zoomOver = (_arg) => {
|
|
124
|
-
return {
|
|
125
|
-
from: {
|
|
126
|
-
transform: "scale(1.2)!important",
|
|
127
|
-
opacity: 0
|
|
128
|
-
},
|
|
129
|
-
to: {
|
|
130
|
-
transform: "scale(1)!important",
|
|
131
|
-
opacity: 1
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
const collapsVerticle = (_arg) => {
|
|
136
|
-
return {
|
|
137
|
-
from: {
|
|
138
|
-
height: 0 + "px!important",
|
|
139
|
-
overflow: "hidden"
|
|
140
|
-
},
|
|
141
|
-
to: {
|
|
142
|
-
height: (_arg === null || _arg === void 0 ? void 0 : _arg.height) ? (_arg === null || _arg === void 0 ? void 0 : _arg.height) + "px!important" : "auto",
|
|
143
|
-
overflow: "hidden"
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
};
|
|
147
|
-
const collapsHorizental = (_arg) => {
|
|
148
|
-
return {
|
|
149
|
-
from: {
|
|
150
|
-
width: 0 + "px!important",
|
|
151
|
-
overflow: "hidden"
|
|
152
|
-
},
|
|
153
|
-
to: {
|
|
154
|
-
width: (_arg === null || _arg === void 0 ? void 0 : _arg.width) ? (_arg === null || _arg === void 0 ? void 0 : _arg.width) + "px!important" : "auto",
|
|
155
|
-
overflow: "hidden"
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
};export{collapsHorizental,collapsVerticle,fade,fadeDown,fadeLeft,fadeRight,fadeUp,grow,slideDown,slideLeft,slideRight,slideUp,zoom,zoomOver};//# sourceMappingURL=variants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"variants.mjs","sources":["../../src/Transition/variants.ts"],"sourcesContent":["import { TransitionElementProps } from \".\"\n\nexport const slideDown = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(-${_arg.height}px)!important`,\n },\n to: {\n transform: `translateY(0)!important`,\n }\n }\n}\n\nexport const slideUp = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(${_arg.height}px)!important`,\n },\n to: {\n transform: `translateY(0)!important`,\n }\n }\n}\n\nexport const slideRight = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(-${_arg.width}px)!important`,\n },\n to: {\n transform: `translateX(0)!important`,\n }\n }\n}\n\nexport const slideLeft = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(${_arg.width}px)!important`,\n },\n to: {\n transform: `translateX(0)!important`,\n }\n }\n}\n\nexport const fade = (_arg: TransitionElementProps) => {\n return {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n }\n}\n\nexport const fadeDown = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(-30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeUp = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateY(30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateY(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeRight = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(-30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const fadeLeft = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: `translateX(30px)!important`,\n opacity: 0\n },\n to: {\n transform: `translateX(0)!important`,\n opacity: 1\n }\n }\n}\n\nexport const grow = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(.8, .6)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const zoom = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(.8)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const zoomOver = (_arg: TransitionElementProps) => {\n return {\n from: {\n transform: \"scale(1.2)!important\",\n opacity: 0\n },\n to: {\n transform: \"scale(1)!important\",\n opacity: 1\n }\n }\n}\n\nexport const collapsVerticle = (_arg: TransitionElementProps) => {\n return {\n from: {\n height: 0 + \"px!important\",\n overflow: \"hidden\"\n },\n to: {\n height: _arg?.height ? _arg?.height + \"px!important\" : \"auto\",\n overflow: \"hidden\"\n }\n }\n}\n\n\nexport const collapsHorizental = (_arg: TransitionElementProps) => {\n return {\n from: {\n width: 0 + \"px!important\",\n overflow: \"hidden\"\n },\n to: {\n width: _arg?.width ? _arg?.width + \"px!important\" : \"auto\",\n overflow: \"hidden\"\n }\n }\n}\n\n\n\n\n"],"names":[],"mappings":"AAEO,MAAM,SAAS,GAAG,CAAC,IAA4B,KAAI;IACtD,OAAO;AACH,QAAA,IAAI,EAAE;AACF,YAAA,SAAS,EAAE,CAAA,YAAA,EAAe,IAAI,CAAC,MAAM,CAAA,aAAA,CAAe;AACvD,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,SAAS,EAAE,CAAA,uBAAA,CAAyB;AACvC;KACJ;AACL;AAEO,MAAM,OAAO,GAAG,CAAC,IAA4B,KAAI;IACpD,OAAO;AACH,QAAA,IAAI,EAAE;AACF,YAAA,SAAS,EAAE,CAAA,WAAA,EAAc,IAAI,CAAC,MAAM,CAAA,aAAA,CAAe;AACtD,SAAA;AACD,QAAA,EAAE,EAAE;AACA,YAAA,SAAS,EAAE,CAAA,uBAAA,CAAyB;AACvC;KACJ;AACL;AAEO,MAAM,UAAU,GAAG,CAAC,IAA4B,KAAI;IACvD,OAAO;AACH,QAAA,IAAI,EAAE;AACF,YAAA,SAAS,EAAE,CAAA,YAAA,EAAe,IAAI,CAAC,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