amotify 0.0.2 → 0.0.4
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/src/@jsminAmotifyExtension/_.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/fetch.d.ts +9 -0
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +1 -0
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +4 -0
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/src/@types/_.d.ts +6 -0
- package/dist/src/@types/amot.d.ts +260 -0
- package/dist/src/@types/fn.d.ts +1040 -0
- package/dist/src/@types/index.d.ts +62 -0
- package/dist/src/@types/jsminAmotifyExtension.d.ts +134 -0
- package/dist/src/@types/module.d.ts +2 -0
- package/dist/src/@types/state.d.ts +145 -0
- package/dist/src/Atoms/@export.d.ts +4 -0
- package/dist/src/Atoms/FAIcon/parts.d.ts +2 -0
- package/dist/src/Atoms/Logo/parts.d.ts +1 -0
- package/dist/src/Atoms/Various/parts.d.ts +9 -0
- package/dist/src/Functions/@export.d.ts +12 -0
- package/dist/src/Functions/Button/_.d.ts +1 -0
- package/dist/src/Functions/Cropper/parts.d.ts +1 -0
- package/dist/src/Functions/Effects/Fade.d.ts +1 -0
- package/dist/src/Functions/Effects/Ripple.d.ts +1 -0
- package/dist/src/Functions/Effects/_.d.ts +3 -0
- package/dist/src/Functions/Input/Chips/Selector.d.ts +1 -0
- package/dist/src/Functions/Input/Chips/_.d.ts +2 -0
- package/dist/src/Functions/Input/DigitCharacters.d.ts +1 -0
- package/dist/src/Functions/Input/File/_.d.ts +2 -0
- package/dist/src/Functions/Input/Hidden.d.ts +1 -0
- package/dist/src/Functions/Input/List/_.d.ts +1 -0
- package/dist/src/Functions/Input/Segmented/_.d.ts +1 -0
- package/dist/src/Functions/Input/Select/_.d.ts +1 -0
- package/dist/src/Functions/Input/Slider/_.d.ts +1 -0
- package/dist/src/Functions/Input/Switch/_.d.ts +1 -0
- package/dist/src/Functions/Input/Text.d.ts +5 -0
- package/dist/src/Functions/Input/TextArea.d.ts +1 -0
- package/dist/src/Functions/Input/Time/Picker.d.ts +1 -0
- package/dist/src/Functions/Input/Time/_.d.ts +2 -0
- package/dist/src/Functions/Input/_.d.ts +5 -0
- package/dist/src/Functions/Input/core.d.ts +34 -0
- package/dist/src/Functions/Inputs/_.d.ts +3 -0
- package/dist/src/Functions/Inputs/text.d.ts +12 -0
- package/dist/src/Functions/Layout/PageNotFound.d.ts +1 -0
- package/dist/src/Functions/Layout/PageRouter.d.ts +2 -0
- package/dist/src/Functions/Layout/PageViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/Plate.d.ts +1 -0
- package/dist/src/Functions/Layout/RootViewController/parts.d.ts +1 -0
- package/dist/src/Functions/Layout/SwipeView/parts.d.ts +2 -0
- package/dist/src/Functions/Layout/TabBar.d.ts +1 -0
- package/dist/src/Functions/Layout/_.d.ts +2 -0
- package/dist/src/Functions/Loader/corner.d.ts +1 -0
- package/dist/src/Functions/Loader/mini.d.ts +33 -0
- package/dist/src/Functions/Loader/parts.d.ts +3 -0
- package/dist/src/Functions/Loader/top.d.ts +1 -0
- package/dist/src/Functions/Sheet/parts.d.ts +2 -0
- package/dist/src/Functions/SnackBar/parts.d.ts +2 -0
- package/dist/src/Functions/Table/Data/parts.d.ts +3 -0
- package/dist/src/Functions/Table/Drag/parts.d.ts +1 -0
- package/dist/src/Functions/Table/Normal/parts.d.ts +1 -0
- package/dist/src/Functions/Table/_.d.ts +9 -0
- package/dist/src/Functions/Tooltips/parts.d.ts +2 -0
- package/dist/src/Global/@export.d.ts +12 -0
- package/dist/src/Global/LaunchReactApplication.d.ts +1 -0
- package/dist/src/Global/styleConverter.d.ts +2 -0
- package/dist/src/Molecules/@export.d.ts +21 -0
- package/dist/src/Molecules/Accordion/parts.d.ts +2 -0
- package/dist/src/Molecules/LinkifyText/parts.d.ts +1 -0
- package/dist/src/Molecules/List.d.ts +1 -0
- package/dist/src/Organisms/@export.d.ts +2 -0
- package/dist/src/Organisms/DisplayStyleInput/_.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/darkmode.d.ts +1 -0
- package/dist/src/Organisms/DisplayStyleInput/themeColor.d.ts +27 -0
- package/dist/src/Templates/@export.d.ts +2 -0
- package/dist/src/Templates/PlayGround/parts.d.ts +1 -0
- package/dist/src/config.d.ts +16 -0
- package/dist/src/launch.d.ts +9 -0
- package/dist/src/preload.d.ts +1 -0
- package/package.json +2 -2
- package/src/@jsminAmotifyExtension/_.tsx +4 -0
- package/src/@jsminAmotifyExtension/fetch.tsx +107 -0
- package/src/@jsminAmotifyExtension/formCollect.tsx +89 -0
- package/src/@jsminAmotifyExtension/spreadSheet.tsx +159 -0
- package/src/@jsminAmotifyExtension/variables.tsx +130 -0
- package/src/@styles/@app.scss +4 -0
- package/src/@styles/@variables/customProps.scss +109 -0
- package/src/@styles/@variables/styleSet.scss +38 -0
- package/src/@styles/@variables/themeColor.scss +71 -0
- package/src/@styles/@variables/var.scss +171 -0
- package/src/@styles/UniStyling.scss +996 -0
- package/src/@styles/init.scss +154 -0
- package/src/@types/_.tsx +6 -0
- package/src/@types/amot.tsx +323 -0
- package/src/@types/fn.tsx +1210 -0
- package/src/@types/index.tsx +74 -0
- package/src/@types/jsminAmotifyExtension.tsx +143 -0
- package/src/@types/module.tsx +2 -0
- package/src/@types/state.tsx +199 -0
- package/src/Atoms/@export.tsx +32 -0
- package/src/Atoms/FAIcon/parts.tsx +117 -0
- package/src/Atoms/FAIcon/style.module.scss +9 -0
- package/src/Atoms/Logo/parts.tsx +335 -0
- package/src/Atoms/Logo/style.module.scss +96 -0
- package/src/Atoms/Various/parts.tsx +157 -0
- package/src/Atoms/Various/style.module.scss +40 -0
- package/src/Functions/@export.tsx +29 -0
- package/src/Functions/Button/_.tsx +305 -0
- package/src/Functions/Button/style.module.scss +183 -0
- package/src/Functions/Cropper/parts.tsx +1061 -0
- package/src/Functions/Cropper/style.module.scss +62 -0
- package/src/Functions/Effects/Fade.tsx +81 -0
- package/src/Functions/Effects/Ripple.tsx +141 -0
- package/src/Functions/Effects/_.tsx +33 -0
- package/src/Functions/Effects/style.module.scss +83 -0
- package/src/Functions/Input/Chips/Selector.tsx +451 -0
- package/src/Functions/Input/Chips/_.tsx +286 -0
- package/src/Functions/Input/Chips/style.module.scss +6 -0
- package/src/Functions/Input/DigitCharacters.tsx +241 -0
- package/src/Functions/Input/File/_.tsx +596 -0
- package/src/Functions/Input/File/style.module.scss +34 -0
- package/src/Functions/Input/Hidden.tsx +18 -0
- package/src/Functions/Input/List/_.tsx +383 -0
- package/src/Functions/Input/List/style.module.scss +84 -0
- package/src/Functions/Input/Segmented/_.tsx +238 -0
- package/src/Functions/Input/Segmented/style.module.scss +81 -0
- package/src/Functions/Input/Select/_.tsx +225 -0
- package/src/Functions/Input/Select/style.module.scss +10 -0
- package/src/Functions/Input/Slider/_.tsx +519 -0
- package/src/Functions/Input/Slider/style.module.scss +67 -0
- package/src/Functions/Input/Switch/_.tsx +177 -0
- package/src/Functions/Input/Switch/style.module.scss +18 -0
- package/src/Functions/Input/Text.tsx +437 -0
- package/src/Functions/Input/TextArea.tsx +115 -0
- package/src/Functions/Input/Time/Picker.tsx +950 -0
- package/src/Functions/Input/Time/_.tsx +736 -0
- package/src/Functions/Input/Time/style.module.scss +72 -0
- package/src/Functions/Input/_.tsx +793 -0
- package/src/Functions/Input/core.tsx +461 -0
- package/src/Functions/Input/style.module.scss +43 -0
- package/src/Functions/Inputs/_.tsx +5 -0
- package/src/Functions/Inputs/style.module.scss +15 -0
- package/src/Functions/Inputs/text.tsx +67 -0
- package/src/Functions/Inputs/types.d.ts +1 -0
- package/src/Functions/Layout/PageNotFound.tsx +81 -0
- package/src/Functions/Layout/PageRouter.tsx +107 -0
- package/src/Functions/Layout/PageViewController/parts.tsx +32 -0
- package/src/Functions/Layout/Plate.tsx +30 -0
- package/src/Functions/Layout/RootViewController/parts.tsx +290 -0
- package/src/Functions/Layout/RootViewController/style.module.scss +24 -0
- package/src/Functions/Layout/SwipeView/parts.tsx +380 -0
- package/src/Functions/Layout/SwipeView/style.module.scss +19 -0
- package/src/Functions/Layout/TabBar.tsx +64 -0
- package/src/Functions/Layout/_.tsx +20 -0
- package/src/Functions/Loader/corner.tsx +78 -0
- package/src/Functions/Loader/mini.tsx +117 -0
- package/src/Functions/Loader/parts.tsx +105 -0
- package/src/Functions/Loader/style.module.scss +222 -0
- package/src/Functions/Loader/top.tsx +90 -0
- package/src/Functions/Sheet/parts.tsx +972 -0
- package/src/Functions/Sheet/style.module.scss +235 -0
- package/src/Functions/SnackBar/parts.tsx +215 -0
- package/src/Functions/SnackBar/style.module.scss +25 -0
- package/src/Functions/Table/Data/parts.tsx +955 -0
- package/src/Functions/Table/Drag/parts.tsx +448 -0
- package/src/Functions/Table/Normal/parts.tsx +123 -0
- package/src/Functions/Table/_.tsx +170 -0
- package/src/Functions/Table/style.module.scss +92 -0
- package/src/Functions/Tooltips/parts.tsx +52 -0
- package/src/Global/@export.tsx +138 -0
- package/src/Global/LaunchReactApplication.tsx +30 -0
- package/src/Global/exe.tsx +0 -0
- package/src/Global/styleConverter.tsx +435 -0
- package/src/Molecules/@export.tsx +95 -0
- package/src/Molecules/Accordion/parts.tsx +146 -0
- package/src/Molecules/Accordion/style.module.scss +13 -0
- package/src/Molecules/LinkifyText/parts.tsx +54 -0
- package/src/Molecules/List.tsx +30 -0
- package/src/Organisms/@export.tsx +5 -0
- package/src/Organisms/DisplayStyleInput/_.tsx +18 -0
- package/src/Organisms/DisplayStyleInput/darkmode.tsx +112 -0
- package/src/Organisms/DisplayStyleInput/themeColor.tsx +210 -0
- package/src/Templates/@export.tsx +7 -0
- package/src/Templates/PlayGround/parts.tsx +115 -0
- package/src/Templates/PlayGround/style.module.scss +38 -0
- package/src/config.tsx +132 -0
- package/src/launch.tsx +100 -0
- package/src/preload.tsx +49 -0
- package/tsconfig.json +27 -14
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LaunchReactApplication,
|
|
3
|
+
useStore
|
|
4
|
+
} from '@global';
|
|
5
|
+
const {
|
|
6
|
+
useEffect,
|
|
7
|
+
useState,
|
|
8
|
+
} = React;
|
|
9
|
+
|
|
10
|
+
import style from './style.module.scss';
|
|
11
|
+
|
|
12
|
+
export const memoryID = $.uuidGen();
|
|
13
|
+
import { Mini } from './mini';
|
|
14
|
+
import { Top } from './top';
|
|
15
|
+
import { Corner } from './corner';
|
|
16
|
+
|
|
17
|
+
const SizeWrapper: {
|
|
18
|
+
( params: {
|
|
19
|
+
color: amotify.fn.Loader.Colors
|
|
20
|
+
} ): {
|
|
21
|
+
S: FNC<amotify.fn.Loader.CompInput>
|
|
22
|
+
R: FNC<amotify.fn.Loader.CompInput>
|
|
23
|
+
L: FNC<amotify.fn.Loader.CompInput>
|
|
24
|
+
XL: FNC<amotify.fn.Loader.CompInput>
|
|
25
|
+
MAX: FNC<amotify.fn.Loader.CompInput>
|
|
26
|
+
}
|
|
27
|
+
} = ( params ) => {
|
|
28
|
+
let color = params.color;
|
|
29
|
+
return {
|
|
30
|
+
S: ( params ) => <Mini size='S' color={ color } { ...params } />,
|
|
31
|
+
R: ( params ) => <Mini size='R' color={ color } { ...params } />,
|
|
32
|
+
L: ( params ) => <Mini size='L' color={ color } { ...params } />,
|
|
33
|
+
XL: ( params ) => <Mini size='XL' color={ color } { ...params } />,
|
|
34
|
+
MAX: ( params ) => <Mini size='MAX' color={ color } { ...params } />,
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const Loader: amotify.fn.Loader.Methods = {
|
|
39
|
+
__memoryID: memoryID,
|
|
40
|
+
Theme: SizeWrapper( { color: 'theme' } ),
|
|
41
|
+
Posi: SizeWrapper( { color: 'posi' } ),
|
|
42
|
+
Nega: SizeWrapper( { color: 'nega' } ),
|
|
43
|
+
Warn: SizeWrapper( { color: 'warn' } ),
|
|
44
|
+
White: SizeWrapper( { color: 'white' } ),
|
|
45
|
+
Cloud: SizeWrapper( { color: 'cloud' } ),
|
|
46
|
+
fn: {
|
|
47
|
+
top: {
|
|
48
|
+
active: () => {
|
|
49
|
+
useStore.get( memoryID + '-top' ).active();
|
|
50
|
+
},
|
|
51
|
+
stop: () => {
|
|
52
|
+
useStore.get( memoryID + '-top' ).stop();
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
corner: {
|
|
56
|
+
active: () => {
|
|
57
|
+
useStore.get( memoryID + '-corner' ).active();
|
|
58
|
+
},
|
|
59
|
+
stop: () => {
|
|
60
|
+
useStore.get( memoryID + '-corner' ).stop();
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
mini: {
|
|
64
|
+
active: ( keyCode = '' ) => {
|
|
65
|
+
$( '.' + style.MiniLoader ).for( ( elm ) => {
|
|
66
|
+
let { dataset: { componentId } = {} } = elm;
|
|
67
|
+
if ( !componentId ) return;
|
|
68
|
+
let fn = useStore.get( componentId );
|
|
69
|
+
if ( fn && fn.active ) fn.active( keyCode );
|
|
70
|
+
} );
|
|
71
|
+
},
|
|
72
|
+
stop: ( keyCode = '' ) => {
|
|
73
|
+
$( '.' + style.MiniLoader ).for( ( elm ) => {
|
|
74
|
+
let { dataset: { componentId } = {} } = elm;
|
|
75
|
+
if ( !componentId ) return;
|
|
76
|
+
let fn = useStore.get( componentId );
|
|
77
|
+
if ( fn && fn.stop ) fn.stop( keyCode );
|
|
78
|
+
} );
|
|
79
|
+
},
|
|
80
|
+
stopALL: () => {
|
|
81
|
+
$( '.' + style.MiniLoader ).for( ( elm ) => {
|
|
82
|
+
let { dataset: { componentId } = {} } = elm;
|
|
83
|
+
if ( !componentId ) return;
|
|
84
|
+
let fn = useStore.get( componentId );
|
|
85
|
+
if ( fn && fn.stopForce ) fn.stopForce();
|
|
86
|
+
} );
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
stopALL: () => {
|
|
90
|
+
Loader.fn.top.stop();
|
|
91
|
+
Loader.fn.corner.stop();
|
|
92
|
+
Loader.fn.mini.stopALL();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export { Loader }
|
|
97
|
+
|
|
98
|
+
LaunchReactApplication( {
|
|
99
|
+
baseElement: '#LOADER',
|
|
100
|
+
reactElement: <>
|
|
101
|
+
<Top />
|
|
102
|
+
<Corner />
|
|
103
|
+
</>,
|
|
104
|
+
nonRouter: true
|
|
105
|
+
} );
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
@use '@uniVar' as *;
|
|
2
|
+
:global {
|
|
3
|
+
#LOADER {
|
|
4
|
+
z-index: 10;
|
|
5
|
+
position: absolute;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
.TopLoader {
|
|
9
|
+
z-index: 3000;
|
|
10
|
+
cursor: not-allowed !important;
|
|
11
|
+
.Center {
|
|
12
|
+
width: 10rem;
|
|
13
|
+
height: 10rem;
|
|
14
|
+
}
|
|
15
|
+
.Child {
|
|
16
|
+
position: absolute;
|
|
17
|
+
$cubic : cubic-bezier(.61, .48, .61, .76);
|
|
18
|
+
transform-origin: 0 0;
|
|
19
|
+
justify-content: flex-end;
|
|
20
|
+
align-items: center;
|
|
21
|
+
display: flex;
|
|
22
|
+
height: 0;
|
|
23
|
+
background-color: white;
|
|
24
|
+
.Circle {
|
|
25
|
+
border-radius: 50%;
|
|
26
|
+
animation: expander 6s $cubic infinite;
|
|
27
|
+
}
|
|
28
|
+
&.Child1 {
|
|
29
|
+
$size : 20px;
|
|
30
|
+
width: 3rem;
|
|
31
|
+
animation: rotation 4s $cubic infinite -2.5s;
|
|
32
|
+
.Circle {
|
|
33
|
+
width: $size;
|
|
34
|
+
height: $size;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&.Child2 {
|
|
38
|
+
$size : 10px;
|
|
39
|
+
width: 45px;
|
|
40
|
+
animation: rotation 4.7s $cubic infinite -1.4s;
|
|
41
|
+
.Circle {
|
|
42
|
+
width: $size;
|
|
43
|
+
height: $size;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
&.Child3 {
|
|
47
|
+
$size : 10px;
|
|
48
|
+
width: 46px;
|
|
49
|
+
animation: rotation 3s $cubic infinite -3.6s;
|
|
50
|
+
.Circle {
|
|
51
|
+
width: $size;
|
|
52
|
+
height: $size;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
&.Child4 {
|
|
56
|
+
$size : 6px;
|
|
57
|
+
width: 32px;
|
|
58
|
+
animation: rotation 5.3s $cubic infinite -1.4s;
|
|
59
|
+
.Circle {
|
|
60
|
+
width: $size;
|
|
61
|
+
height: $size;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&.Child5 {
|
|
65
|
+
$size : 8px;
|
|
66
|
+
width: 22px;
|
|
67
|
+
animation: rotation 4.9s $cubic infinite -.9s;
|
|
68
|
+
.Circle {
|
|
69
|
+
width: $size;
|
|
70
|
+
height: $size;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
&.Child6 {
|
|
74
|
+
$size : 15px;
|
|
75
|
+
width: 38px;
|
|
76
|
+
animation: rotation 5.4s $cubic infinite -3.1s;
|
|
77
|
+
.Circle {
|
|
78
|
+
width: $size;
|
|
79
|
+
height: $size;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
&.Child7 {
|
|
83
|
+
$size : 6px;
|
|
84
|
+
width: 42px;
|
|
85
|
+
animation: rotation 6s $cubic infinite -2s;
|
|
86
|
+
.Circle {
|
|
87
|
+
width: $size;
|
|
88
|
+
height: $size;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
@keyframes rotation {
|
|
93
|
+
0% {
|
|
94
|
+
transform: rotate(0deg);
|
|
95
|
+
}
|
|
96
|
+
50% {
|
|
97
|
+
transform: rotate(360deg);
|
|
98
|
+
}
|
|
99
|
+
100% {
|
|
100
|
+
transform: rotate(720deg);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
@keyframes expander {
|
|
104
|
+
0% {
|
|
105
|
+
transform: scale(1);
|
|
106
|
+
}
|
|
107
|
+
30% {
|
|
108
|
+
transform: scale(0);
|
|
109
|
+
}
|
|
110
|
+
70% {
|
|
111
|
+
transform: scale(1.4);
|
|
112
|
+
}
|
|
113
|
+
100% {
|
|
114
|
+
transform: scale(1);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
&.Active_true {
|
|
118
|
+
opacity: 1;
|
|
119
|
+
pointer-events: all;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.CornerLoader {
|
|
123
|
+
@keyframes ldAnm {
|
|
124
|
+
0% {
|
|
125
|
+
height: 20%
|
|
126
|
+
}
|
|
127
|
+
40% {
|
|
128
|
+
height: 100%
|
|
129
|
+
}
|
|
130
|
+
80% {
|
|
131
|
+
height: 20%
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
.Wrap {
|
|
135
|
+
height: 1rem;
|
|
136
|
+
gap: 1px;
|
|
137
|
+
> div {
|
|
138
|
+
box-shadow: $shadow2;
|
|
139
|
+
background-color: white;
|
|
140
|
+
border-radius: 4px;
|
|
141
|
+
width: 2px;
|
|
142
|
+
height: 20%;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
&.Active_true {
|
|
146
|
+
opacity: 1;
|
|
147
|
+
.Wrap {
|
|
148
|
+
> div {
|
|
149
|
+
animation: 1.2s ldAnm ease infinite;
|
|
150
|
+
@for $i from 1 to 5 {
|
|
151
|
+
&.Ld#{ $i } {
|
|
152
|
+
animation-delay: calc(#{ $i - 1 } * .15s);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
@keyframes ldAnm {
|
|
160
|
+
0% {
|
|
161
|
+
height: 50%;
|
|
162
|
+
}
|
|
163
|
+
25% {
|
|
164
|
+
height: 100%;
|
|
165
|
+
}
|
|
166
|
+
50% {
|
|
167
|
+
height: 20%;
|
|
168
|
+
}
|
|
169
|
+
75% {
|
|
170
|
+
height: 50%;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
.MiniLoader {
|
|
174
|
+
transition: .1s;
|
|
175
|
+
&.Active_false {
|
|
176
|
+
display: none !important;
|
|
177
|
+
}
|
|
178
|
+
&.Hide {
|
|
179
|
+
display: none !important;
|
|
180
|
+
}
|
|
181
|
+
&:not(.Active) {
|
|
182
|
+
overflow: hidden;
|
|
183
|
+
padding: 0 !important;
|
|
184
|
+
margin: 0 !important;
|
|
185
|
+
width: 0 !important;
|
|
186
|
+
height: 0 !important;
|
|
187
|
+
}
|
|
188
|
+
> .Core {
|
|
189
|
+
animation: spin .5s linear infinite;
|
|
190
|
+
}
|
|
191
|
+
svg {
|
|
192
|
+
position: absolute;
|
|
193
|
+
fill: none;
|
|
194
|
+
}
|
|
195
|
+
.SVG1 {
|
|
196
|
+
stroke-width: 9;
|
|
197
|
+
stroke-dasharray: 220 220;
|
|
198
|
+
stroke-linecap: round;
|
|
199
|
+
animation: loader 1.8s infinite cubic-bezier(.4, 0, .3, 1), loading 1.4s infinite linear;
|
|
200
|
+
vertical-align: middle;
|
|
201
|
+
}
|
|
202
|
+
.SVG2 {
|
|
203
|
+
stroke-width: 6;
|
|
204
|
+
opacity: .2;
|
|
205
|
+
}
|
|
206
|
+
@keyframes loader {
|
|
207
|
+
from {
|
|
208
|
+
stroke-dashoffset: 220;
|
|
209
|
+
}
|
|
210
|
+
to {
|
|
211
|
+
stroke-dashoffset: -220;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
@keyframes loading {
|
|
215
|
+
from {
|
|
216
|
+
transform: none;
|
|
217
|
+
}
|
|
218
|
+
to {
|
|
219
|
+
transform: rotate(360deg);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useStore
|
|
3
|
+
} from '@global';
|
|
4
|
+
import {
|
|
5
|
+
Box,
|
|
6
|
+
Flex
|
|
7
|
+
} from '@atoms';
|
|
8
|
+
import {
|
|
9
|
+
Row
|
|
10
|
+
} from '@mols';
|
|
11
|
+
const {
|
|
12
|
+
useEffect,
|
|
13
|
+
useState,
|
|
14
|
+
} = React;
|
|
15
|
+
|
|
16
|
+
import style from './style.module.scss';
|
|
17
|
+
|
|
18
|
+
import { memoryID } from './parts';
|
|
19
|
+
|
|
20
|
+
export const Top = () => {
|
|
21
|
+
let [ val_active,set_active ] = useState( false );
|
|
22
|
+
|
|
23
|
+
useEffect( () => {
|
|
24
|
+
useStore.set( {
|
|
25
|
+
key: memoryID + '-top',
|
|
26
|
+
value: {
|
|
27
|
+
active: () => {
|
|
28
|
+
set_active( true );
|
|
29
|
+
},
|
|
30
|
+
stop: () => {
|
|
31
|
+
set_active( false );
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
} );
|
|
35
|
+
},[] );
|
|
36
|
+
|
|
37
|
+
return <Flex
|
|
38
|
+
className={ [
|
|
39
|
+
style.TopLoader,
|
|
40
|
+
style[ 'Active_' + val_active ]
|
|
41
|
+
].join( ' ' ) }
|
|
42
|
+
position='fixed'
|
|
43
|
+
top={ 0 }
|
|
44
|
+
left={ 0 }
|
|
45
|
+
right={ 0 }
|
|
46
|
+
bottom={ 0 }
|
|
47
|
+
horizontalAlign='center'
|
|
48
|
+
transition='long'
|
|
49
|
+
opacity='trans'
|
|
50
|
+
backgroundColor='lcOpHigh'
|
|
51
|
+
freeCSS={ {
|
|
52
|
+
paddingTop: 12 * 8,
|
|
53
|
+
pointerEvents: 'none'
|
|
54
|
+
} }
|
|
55
|
+
>
|
|
56
|
+
<Flex flexType='col' position='relative'>
|
|
57
|
+
<Flex className={ style.Center } flexCenter>
|
|
58
|
+
<Box>
|
|
59
|
+
<Box className={ [ style.Child,style.Child1 ].join( ' ' ) }>
|
|
60
|
+
<Box className={ style.Circle } backgroundColor='tcDarken' />
|
|
61
|
+
</Box>
|
|
62
|
+
<Box className={ [ style.Child,style.Child2 ].join( ' ' ) }>
|
|
63
|
+
<Box className={ style.Circle } backgroundColor='tcDarker' />
|
|
64
|
+
</Box>
|
|
65
|
+
<Box className={ [ style.Child,style.Child3 ].join( ' ' ) }>
|
|
66
|
+
<Box className={ style.Circle } backgroundColor='tcDarkest' />
|
|
67
|
+
</Box>
|
|
68
|
+
<Box className={ [ style.Child,style.Child4 ].join( ' ' ) }>
|
|
69
|
+
<Box className={ style.Circle } backgroundColor='tcLighten' />
|
|
70
|
+
</Box>
|
|
71
|
+
<Box className={ [ style.Child,style.Child5 ].join( ' ' ) }>
|
|
72
|
+
<Box className={ style.Circle } backgroundColor='tcLighter' />
|
|
73
|
+
</Box>
|
|
74
|
+
<Box className={ [ style.Child,style.Child6 ].join( ' ' ) }>
|
|
75
|
+
<Box className={ style.Circle } backgroundColor='tcLightest' />
|
|
76
|
+
</Box>
|
|
77
|
+
<Box className={ [ style.Child,style.Child7 ].join( ' ' ) }>
|
|
78
|
+
<Box className={ style.Circle } backgroundColor='theme' />
|
|
79
|
+
</Box>
|
|
80
|
+
</Box>
|
|
81
|
+
</Flex>
|
|
82
|
+
<Box
|
|
83
|
+
flexCenter
|
|
84
|
+
fontSize={ '2.normal' }
|
|
85
|
+
>
|
|
86
|
+
Loading...
|
|
87
|
+
</Box>
|
|
88
|
+
</Flex>
|
|
89
|
+
</Flex>;
|
|
90
|
+
}
|