amotify 0.0.6 → 0.0.8

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.
Files changed (160) hide show
  1. package/dist/@jsminAmotifyExtension/formCollect.js +2 -2
  2. package/dist/Atoms/Logo/parts.js +11 -11
  3. package/dist/Atoms/Various/parts.js +5 -5
  4. package/dist/Functions/Button/_.js +5 -5
  5. package/dist/Functions/Cropper/parts.js +47 -47
  6. package/dist/Functions/Effects/Fade.js +5 -5
  7. package/dist/Functions/Input/Chips/Selector.js +32 -32
  8. package/dist/Functions/Input/Chips/_.js +10 -10
  9. package/dist/Functions/Input/DigitCharacters.js +8 -8
  10. package/dist/Functions/Input/File/_.js +33 -33
  11. package/dist/Functions/Input/List/_.js +17 -17
  12. package/dist/Functions/Input/Segmented/_.js +13 -13
  13. package/dist/Functions/Input/Select/_.js +12 -12
  14. package/dist/Functions/Input/Slider/_.js +16 -16
  15. package/dist/Functions/Input/Switch/_.js +12 -12
  16. package/dist/Functions/Input/Text.js +12 -12
  17. package/dist/Functions/Input/TextArea.js +4 -4
  18. package/dist/Functions/Input/Time/Picker.js +65 -65
  19. package/dist/Functions/Input/Time/_.js +10 -10
  20. package/dist/Functions/Input/_.js +31 -31
  21. package/dist/Functions/Input/core.js +27 -27
  22. package/dist/Functions/Inputs/text.js +2 -2
  23. package/dist/Functions/Layout/PageNotFound.js +15 -15
  24. package/dist/Functions/Layout/PageRouter.js +5 -5
  25. package/dist/Functions/Layout/PageViewController/parts.js +5 -5
  26. package/dist/Functions/Layout/Plate.js +2 -2
  27. package/dist/Functions/Layout/RootViewController/parts.js +22 -22
  28. package/dist/Functions/Layout/SwipeView/parts.js +6 -6
  29. package/dist/Functions/Layout/TabBar.js +7 -7
  30. package/dist/Functions/Loader/corner.js +13 -13
  31. package/dist/Functions/Loader/mini.js +4 -4
  32. package/dist/Functions/Loader/parts.js +9 -9
  33. package/dist/Functions/Loader/top.js +22 -22
  34. package/dist/Functions/Sheet/parts.js +46 -46
  35. package/dist/Functions/SnackBar/parts.js +16 -16
  36. package/dist/Functions/Table/Data/parts.js +72 -72
  37. package/dist/Functions/Table/Drag/parts.js +15 -15
  38. package/dist/Functions/Table/_.js +11 -11
  39. package/dist/Functions/Tooltips/parts.js +6 -6
  40. package/dist/Molecules/@export.js +14 -14
  41. package/dist/Molecules/Accordion/parts.js +10 -10
  42. package/dist/Molecules/LinkifyText/parts.js +4 -4
  43. package/dist/Molecules/List.js +3 -3
  44. package/dist/Organisms/DisplayStyleInput/darkmode.js +17 -17
  45. package/dist/Organisms/DisplayStyleInput/themeColor.js +25 -25
  46. package/dist/Templates/PlayGround/parts.js +22 -22
  47. package/dist/launch.js +12 -12
  48. package/package.json +1 -1
  49. package/public/amotify.js +47 -47
  50. package/src/@jsminAmotifyExtension/_.tsx +4 -0
  51. package/src/@jsminAmotifyExtension/fetch.tsx +107 -0
  52. package/src/@jsminAmotifyExtension/formCollect.tsx +89 -0
  53. package/src/@jsminAmotifyExtension/spreadSheet.tsx +159 -0
  54. package/src/@jsminAmotifyExtension/variables.tsx +130 -0
  55. package/src/@styles/@app.scss +4 -0
  56. package/src/@styles/UniStyling.scss +996 -0
  57. package/src/@styles/init.scss +154 -0
  58. package/src/@styles/props.scss +109 -0
  59. package/src/@styles/styleSet.scss +38 -0
  60. package/src/@styles/themeColor.scss +71 -0
  61. package/src/@styles/var.scss +171 -0
  62. package/src/@types/_.tsx +6 -0
  63. package/src/@types/amot.tsx +323 -0
  64. package/src/@types/fn.tsx +1210 -0
  65. package/src/@types/index.tsx +74 -0
  66. package/src/@types/jsminAmotifyExtension.tsx +143 -0
  67. package/src/@types/module.tsx +2 -0
  68. package/src/@types/state.tsx +199 -0
  69. package/src/Atoms/@export.tsx +32 -0
  70. package/src/Atoms/FAIcon/parts.tsx +117 -0
  71. package/src/Atoms/FAIcon/style.module.scss +9 -0
  72. package/src/Atoms/Logo/parts.tsx +335 -0
  73. package/src/Atoms/Logo/style.module.scss +96 -0
  74. package/src/Atoms/Various/parts.tsx +157 -0
  75. package/src/Atoms/Various/style.module.scss +40 -0
  76. package/src/Functions/@export.tsx +29 -0
  77. package/src/Functions/Button/_.tsx +305 -0
  78. package/src/Functions/Button/style.module.scss +183 -0
  79. package/src/Functions/Cropper/parts.tsx +1061 -0
  80. package/src/Functions/Cropper/style.module.scss +62 -0
  81. package/src/Functions/Effects/Fade.tsx +81 -0
  82. package/src/Functions/Effects/Ripple.tsx +141 -0
  83. package/src/Functions/Effects/_.tsx +33 -0
  84. package/src/Functions/Effects/style.module.scss +83 -0
  85. package/src/Functions/Input/Chips/Selector.tsx +451 -0
  86. package/src/Functions/Input/Chips/_.tsx +286 -0
  87. package/src/Functions/Input/Chips/style.module.scss +6 -0
  88. package/src/Functions/Input/DigitCharacters.tsx +241 -0
  89. package/src/Functions/Input/File/_.tsx +596 -0
  90. package/src/Functions/Input/File/style.module.scss +34 -0
  91. package/src/Functions/Input/Hidden.tsx +18 -0
  92. package/src/Functions/Input/List/_.tsx +383 -0
  93. package/src/Functions/Input/List/style.module.scss +84 -0
  94. package/src/Functions/Input/Segmented/_.tsx +238 -0
  95. package/src/Functions/Input/Segmented/style.module.scss +81 -0
  96. package/src/Functions/Input/Select/_.tsx +225 -0
  97. package/src/Functions/Input/Select/style.module.scss +10 -0
  98. package/src/Functions/Input/Slider/_.tsx +519 -0
  99. package/src/Functions/Input/Slider/style.module.scss +67 -0
  100. package/src/Functions/Input/Switch/_.tsx +177 -0
  101. package/src/Functions/Input/Switch/style.module.scss +18 -0
  102. package/src/Functions/Input/Text.tsx +437 -0
  103. package/src/Functions/Input/TextArea.tsx +115 -0
  104. package/src/Functions/Input/Time/Picker.tsx +950 -0
  105. package/src/Functions/Input/Time/_.tsx +736 -0
  106. package/src/Functions/Input/Time/style.module.scss +72 -0
  107. package/src/Functions/Input/_.tsx +793 -0
  108. package/src/Functions/Input/core.tsx +461 -0
  109. package/src/Functions/Input/style.module.scss +43 -0
  110. package/src/Functions/Inputs/_.tsx +5 -0
  111. package/src/Functions/Inputs/style.module.scss +15 -0
  112. package/src/Functions/Inputs/text.tsx +67 -0
  113. package/src/Functions/Inputs/types.d.ts +1 -0
  114. package/src/Functions/Layout/PageNotFound.tsx +81 -0
  115. package/src/Functions/Layout/PageRouter.tsx +107 -0
  116. package/src/Functions/Layout/PageViewController/parts.tsx +32 -0
  117. package/src/Functions/Layout/Plate.tsx +30 -0
  118. package/src/Functions/Layout/RootViewController/parts.tsx +290 -0
  119. package/src/Functions/Layout/RootViewController/style.module.scss +24 -0
  120. package/src/Functions/Layout/SwipeView/parts.tsx +380 -0
  121. package/src/Functions/Layout/SwipeView/style.module.scss +19 -0
  122. package/src/Functions/Layout/TabBar.tsx +64 -0
  123. package/src/Functions/Layout/_.tsx +20 -0
  124. package/src/Functions/Loader/corner.tsx +78 -0
  125. package/src/Functions/Loader/mini.tsx +117 -0
  126. package/src/Functions/Loader/parts.tsx +105 -0
  127. package/src/Functions/Loader/style.module.scss +222 -0
  128. package/src/Functions/Loader/top.tsx +90 -0
  129. package/src/Functions/Sheet/parts.tsx +972 -0
  130. package/src/Functions/Sheet/style.module.scss +235 -0
  131. package/src/Functions/SnackBar/parts.tsx +215 -0
  132. package/src/Functions/SnackBar/style.module.scss +25 -0
  133. package/src/Functions/Table/Data/parts.tsx +955 -0
  134. package/src/Functions/Table/Drag/parts.tsx +448 -0
  135. package/src/Functions/Table/Normal/parts.tsx +123 -0
  136. package/src/Functions/Table/_.tsx +170 -0
  137. package/src/Functions/Table/style.module.scss +92 -0
  138. package/src/Functions/Tooltips/parts.tsx +52 -0
  139. package/src/Global/@export.tsx +138 -0
  140. package/src/Global/LaunchReactApplication.tsx +30 -0
  141. package/src/Global/exe.tsx +0 -0
  142. package/src/Global/styleConverter.tsx +435 -0
  143. package/src/Molecules/@export.tsx +95 -0
  144. package/src/Molecules/Accordion/parts.tsx +146 -0
  145. package/src/Molecules/Accordion/style.module.scss +13 -0
  146. package/src/Molecules/LinkifyText/parts.tsx +54 -0
  147. package/src/Molecules/List.tsx +30 -0
  148. package/src/Organisms/@export.tsx +5 -0
  149. package/src/Organisms/DisplayStyleInput/_.tsx +18 -0
  150. package/src/Organisms/DisplayStyleInput/darkmode.tsx +112 -0
  151. package/src/Organisms/DisplayStyleInput/themeColor.tsx +210 -0
  152. package/src/Templates/@export.tsx +7 -0
  153. package/src/Templates/PlayGround/parts.tsx +116 -0
  154. package/src/Templates/PlayGround/style.module.scss +38 -0
  155. package/src/config.tsx +132 -0
  156. package/src/index.js +0 -0
  157. package/src/launch.tsx +100 -0
  158. package/src/preload.tsx +49 -0
  159. package/tsconfig.json +4 -22
  160. package/webpack.config.js +105 -0
@@ -0,0 +1,335 @@
1
+ import {
2
+ Box,
3
+ Flex,
4
+ Img
5
+ } from '~/Atoms/@export';
6
+
7
+ import style from './style.module.scss';
8
+
9
+ import { publicURI } from '../../launch';
10
+
11
+ const SVG = {
12
+ ComunIcon: () => {
13
+ return ( <svg viewBox="0,0,1200,1200" className={ style.ComunIcon }>
14
+ <g>
15
+ <path
16
+ d='
17
+ M
18
+ 100,600
19
+ A 500,500 0 0,0 600,1100
20
+ A 100,100 0 0,0 600,900
21
+ A 300,300 0 0,1 300,600
22
+ A 100,100 0 0,0 100,600
23
+ Z
24
+ '
25
+ className={ style.P1 }
26
+ style={ {
27
+ opacity: .9,
28
+ fill: '#16a3ec'
29
+ } }
30
+ />
31
+ <path
32
+ d='
33
+ M
34
+ 600,1100
35
+ A 500,500 0 0,0 1100,600
36
+ A 100,100 0 0,0 900,600
37
+ A 300,300 0 0,1 600,900
38
+ A 100,100 0 1,0 600,1100
39
+ Z
40
+ '
41
+ className={ style.P2 }
42
+ style={ {
43
+ opacity: .9,
44
+ fill: '#ea6093'
45
+ } }
46
+ />
47
+
48
+ <path
49
+ d='
50
+ M
51
+ 600,100
52
+ A 500,500 0 0,0 100,600
53
+ A 100,100 0 0,0 300,600
54
+ A 300,300 0 0,1 600,300
55
+ A 100,100 0 0,0 600,100
56
+ Z
57
+ '
58
+ className={ style.P3 }
59
+ style={ {
60
+ opacity: .9,
61
+ fill: '#387cfe'
62
+ } }
63
+ />
64
+
65
+ <path
66
+ d='
67
+ M
68
+ 600,100
69
+ A 100,100 0 0,1 700,200
70
+ A 300,300 0 0,0 1000,500
71
+ A 100,100 0 0,1 1100,600
72
+ A 100,100 0 0,1 1000,700
73
+ A 500,500 0 0,1 500,200
74
+ A 100,100 0 0,1 600,100
75
+ Z
76
+ '
77
+ className={ style.P4 }
78
+ style={ {
79
+ opacity: .9,
80
+ fill: '#9a66ff'
81
+ } }
82
+ />
83
+ </g>
84
+ </svg> );
85
+ },
86
+ MingooIcon: () => {
87
+ const CircleSet = ( p: number ) => {
88
+ return ( <>
89
+ <path
90
+ d='
91
+ M
92
+ 600,100
93
+ A 80,80 0 0,1 600,260
94
+ A 80,80 0 0,1 600,100
95
+ L600,600
96
+ L600,300
97
+ Z
98
+ '
99
+ className={ [
100
+ style.OuterCircle,
101
+ style.P,
102
+ style[ 'P_' + p ]
103
+ ].join( ' ' ) }
104
+ style={ {
105
+ fill: '#c56ff0'
106
+ // fill: '#9a66ff'
107
+ } }
108
+ />
109
+ <path
110
+ d='
111
+ M
112
+ 600,300
113
+ A 45,45 0 0,1 600,390
114
+ A 45,45 0 0,1 600,300
115
+ L600,600
116
+ L600,300
117
+ Z
118
+ '
119
+ className={ [
120
+ style.InnerCircle,
121
+ style.P,
122
+ style[ 'P_' + p ]
123
+ ].join( ' ' ) }
124
+ style={ {
125
+ fill: '#ea6093'
126
+ // fill: '#ffa500'
127
+ } }
128
+ />
129
+ </> );
130
+ }
131
+ return <svg viewBox="0,0,1200,1200" className={ style.MingooIcon }>
132
+ { CircleSet( 0 ) }
133
+ { CircleSet( 1 ) }
134
+ { CircleSet( 2 ) }
135
+ { CircleSet( 3 ) }
136
+ { CircleSet( 4 ) }
137
+ { CircleSet( 5 ) }
138
+ { CircleSet( 6 ) }
139
+ { CircleSet( 7 ) }
140
+ { CircleSet( 8 ) }
141
+ </svg>;
142
+ }
143
+ }
144
+
145
+
146
+ const Mingoos = {
147
+ Icon: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => ( <Logo.Icon
148
+ { ...params }
149
+ >
150
+ <SVG.MingooIcon />
151
+ </Logo.Icon> ),
152
+ Title: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => ( <Logo.Title
153
+ height={ 'auto' }
154
+ className={ style.ComunTitle }
155
+ { ...params }
156
+ freeCSS={ {
157
+ letterSpacing: '3px',
158
+ ...params.freeCSS
159
+ } }
160
+ >
161
+ mingoo
162
+ </Logo.Title> ),
163
+ LogoH: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => {
164
+ let { size,color,...others } = params;
165
+
166
+ return ( <Flex
167
+ gap={ '1/2' }
168
+ flexCenter
169
+ { ...others }
170
+ >
171
+ <Mingoos.Icon size={ size } color={ color } />
172
+ <Mingoos.Title size={ size } color={ color } />
173
+ </Flex> );
174
+ },
175
+ LogoV: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => {
176
+ let { size,color,...others } = params;
177
+
178
+ return ( <Flex
179
+ flexType="col"
180
+ gap={ '1/2' }
181
+ { ...others }
182
+ >
183
+ <Mingoos.Icon
184
+ margin={ 'auto' }
185
+ size={ size }
186
+ color={ color }
187
+ />
188
+ <Mingoos.Title
189
+ size={ size } color={ color }
190
+ />
191
+ </Flex> );
192
+ }
193
+ }
194
+ const Comuns = {
195
+ Icon: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => ( <Logo.Icon
196
+ { ...params }
197
+ >
198
+ <SVG.ComunIcon />
199
+ </Logo.Icon> ),
200
+ Title: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => ( <Logo.Title
201
+ height={ 'auto' }
202
+ className={ style.ComunTitle }
203
+ { ...params }
204
+ freeCSS={ {
205
+ letterSpacing: '3px',
206
+ ...params.freeCSS
207
+ } }
208
+ >
209
+ comun
210
+ </Logo.Title> ),
211
+ LogoH: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => {
212
+ let { size,color,...others } = params;
213
+
214
+ return ( <Flex
215
+ gap={ '1/2' }
216
+ flexCenter
217
+ { ...others }
218
+ >
219
+ <Comuns.Icon size={ size } color={ color } />
220
+ <Comuns.Title size={ size } color={ color } />
221
+ </Flex> );
222
+ },
223
+ LogoV: ( params: amotify.atoms.Logos.DefaultLogoTypes ) => {
224
+ let { size,color,...others } = params;
225
+
226
+ return ( <Flex
227
+ flexType="col"
228
+ gap={ '1/2' }
229
+ { ...others }
230
+ >
231
+ <Comuns.Icon
232
+ margin={ 'auto' }
233
+ size={ size }
234
+ color={ color }
235
+ />
236
+ <Comuns.Title
237
+ size={ size } color={ color }
238
+ />
239
+ </Flex> );
240
+ }
241
+ }
242
+ export const Logo: amotify.atoms.Logos.Methods = {
243
+ Icon: ( props: amotify.atoms.Logos.Params ) => {
244
+ let {
245
+ size = 'R',
246
+ color = 'normal',
247
+ className = '',
248
+ children: Children,
249
+ ...others
250
+ } = props;
251
+
252
+ return ( <Flex
253
+ verticalAlign='center'
254
+ className={ [
255
+ className,
256
+ style.Icon,
257
+ style[ 'Size_' + size ]
258
+ ].join( ' ' ) }
259
+ { ...others }
260
+ >
261
+ { $.is.function( Children ) ? <Children /> : Children }
262
+ </Flex > );
263
+ },
264
+ Title: ( props: amotify.atoms.Logos.Params ) => {
265
+ let {
266
+ size = 'R',
267
+ color = 'normal',
268
+ className = '',
269
+ children: Children,
270
+ ...others
271
+ } = props;
272
+
273
+ return <Flex
274
+ verticalAlign='center'
275
+ fontColor={ color == 'white' ? 'white' : 'logo' }
276
+ className={ [
277
+ className,
278
+ style.Title,
279
+ style[ 'Size_' + size ]
280
+ ].join( ' ' ) }
281
+ { ...others }
282
+ freeCSS={ {
283
+ lineHeight: '1.25',
284
+ ...others.freeCSS
285
+ } }
286
+ >
287
+ { $.is.function( Children ) ? <Children /> : Children }
288
+ </Flex>;
289
+ },
290
+
291
+ Brands: {
292
+ MingooIcon: Mingoos.Icon,
293
+ MingooTitle: Mingoos.Title,
294
+ MingooLogoH: Mingoos.LogoH,
295
+ MingooLogoV: Mingoos.LogoV,
296
+
297
+ ComunIcon: Comuns.Icon,
298
+ ComunTitle: Comuns.Title,
299
+ ComunLogoH: Comuns.LogoH,
300
+ ComunLogoV: Comuns.LogoV,
301
+
302
+ Google: ( params ) => ( <Logo.Icon
303
+ { ...params }
304
+ >
305
+ <Img
306
+ src={ publicURI + '@env/@logos/brands/Google_Icon.svg' }
307
+ alt=''
308
+ />
309
+ </Logo.Icon> ),
310
+ Facebook: ( params ) => ( <Logo.Icon
311
+ { ...params }
312
+ >
313
+ <Img
314
+ src={ publicURI + '@env/@logos/brands/FaceBook_Icon.svg' }
315
+ alt=''
316
+ />
317
+ </Logo.Icon> ),
318
+ Twitter: ( params ) => ( <Logo.Icon
319
+ { ...params }
320
+ >
321
+ <Img
322
+ src={ publicURI + '@env/@logos/brands/Twitter_Icon.svg' }
323
+ alt=''
324
+ />
325
+ </Logo.Icon> ),
326
+ LINE: ( params ) => ( <Logo.Icon
327
+ { ...params }
328
+ >
329
+ <Img
330
+ src={ publicURI + '@env/@logos/brands/Line_Icon.svg' }
331
+ alt=''
332
+ />
333
+ </Logo.Icon> ),
334
+ }
335
+ }
@@ -0,0 +1,96 @@
1
+ @use 'src/@styles/props' as *;
2
+ @use'src/@styles/styleSet' as *;
3
+
4
+ .Size_ {
5
+ &S {
6
+ width: $unit2;
7
+ height: $unit2;
8
+ font-size: $unit1;
9
+ }
10
+ &R {
11
+ width: $unit3;
12
+ height: $unit3;
13
+ font-size: $unit1-5;
14
+ }
15
+ &L {
16
+ width: $unit4;
17
+ height: $unit4;
18
+ font-size: $unit2-5;
19
+ }
20
+ &2L {
21
+ width: $unit6;
22
+ height: $unit6;
23
+ font-size: $unit3;
24
+ }
25
+ &3L {
26
+ width: $unit8;
27
+ height: $unit8;
28
+ font-size: $unit4;
29
+ }
30
+ }
31
+
32
+ .Icon {
33
+
34
+ }
35
+ .Title {
36
+ width: auto;
37
+ }
38
+
39
+
40
+ .ComunIcon {
41
+ path {
42
+ filter: drop-shadow($shadow4);
43
+ }
44
+ }
45
+ .ComunTitle {
46
+ letter-spacing: 3px;
47
+ }
48
+ .MingooIcon {
49
+ .P {
50
+ transform-box: fill-box;
51
+ transform-origin: bottom !important;
52
+ &.P_0 {
53
+ transform: rotate(0deg);
54
+ }
55
+ &.P_1 {
56
+ transform: rotate(-30deg);
57
+ }
58
+ &.P_2 {
59
+ transform: rotate(-60deg);
60
+ }
61
+ &.P_3 {
62
+ transform: rotate(-90deg);
63
+ }
64
+ &.P_4 {
65
+ transform: rotate(-120deg);
66
+ }
67
+ &.P_5 {
68
+ transform: rotate(-150deg);
69
+ }
70
+ &.P_6 {
71
+ transform: rotate(-180deg);
72
+ }
73
+ &.P_7 {
74
+ transform: rotate(-210deg);
75
+ }
76
+ &.P_8 {
77
+ transform: rotate(-240deg);
78
+ }
79
+ &.P_9 {
80
+ transform: rotate(-270deg);
81
+ opacity: .3;
82
+ }
83
+ &.P_10 {
84
+ transform: rotate(30deg);
85
+ opacity: .3;
86
+ }
87
+ &.P_11 {
88
+ transform: rotate(60deg);
89
+ opacity: .3;
90
+ }
91
+ &.P_12 {
92
+ transform: rotate(90deg);
93
+ opacity: .3;
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,157 @@
1
+ import {
2
+ StyleConverter
3
+ } from '~/Global/@export';
4
+
5
+ import { publicURI } from '../../launch';
6
+
7
+ import style from './style.module.scss';
8
+
9
+ export const Box: FNC<amotify.atoms.BoxInput> = ( params ) => {
10
+ let {
11
+ freeCSS,
12
+ ...Params
13
+ } = StyleConverter.ToClassName( params );
14
+ return ( <div { ...Params } /> );
15
+ }
16
+ export const Span: FNC<amotify.atoms.SpanProps> = ( params ) => {
17
+ let {
18
+ freeCSS,
19
+ ...Params
20
+ } = StyleConverter.ToClassName( params );
21
+ return ( <span { ...Params } /> );
22
+ }
23
+
24
+ export const Placeholder: FNC<amotify.atoms.PlaceholderParams> = ( params ) => {
25
+ let {
26
+ color = 'cloud',
27
+ ...others
28
+ } = params;
29
+ let DefStyles: amotifyUniStyleParams = {
30
+ flexCenter: true,
31
+ position: 'relative',
32
+ ssCardBox: true,
33
+ border: 'unset',
34
+ overflow: 'hidden',
35
+ backgroundColor: '3.layer.canvas',
36
+ }
37
+
38
+ return ( <Box
39
+ className={ [
40
+ style.Placeholder,
41
+ params.className
42
+ ].join( ' ' ) }
43
+ { ...DefStyles }
44
+ { ...others }
45
+ >
46
+ <Box
47
+ className={ [
48
+ style.Body,
49
+ style[ 'Color_' + color ],
50
+ ].join( ' ' ) }
51
+ />
52
+ </Box> );
53
+ }
54
+
55
+ let Img: amotify.atoms.Image.Methods = {} as any;
56
+ {
57
+ const ImageComp: FNC<amotify.atoms.Image.CompInput> = ( params ) => {
58
+ let {
59
+ src = '',
60
+ alt = '',
61
+ showExpand,
62
+ ...others
63
+ } = params;
64
+
65
+ others.freeCSS = {
66
+ cursor: showExpand ? 'zoom-in' : 'inherit',
67
+ ...others.freeCSS
68
+ }
69
+ let {
70
+ className = '',
71
+ ...Others
72
+ } = StyleConverter.ToClassName( others );
73
+
74
+ let ClassName = [
75
+ style.Img,
76
+ style[ 'ShowExpand_' + showExpand ],
77
+ className
78
+ ].join( ' ' );
79
+
80
+ return <img
81
+ src={ src }
82
+ alt={ alt }
83
+ className={ ClassName }
84
+ onMouseDown={ ( event ) => {
85
+ if ( showExpand ) event.stopPropagation();
86
+ } }
87
+ onTouchStart={ ( event ) => {
88
+ if ( showExpand ) event.stopPropagation();
89
+ } }
90
+ onClick={ ( event ) => {
91
+ if ( showExpand ) {
92
+ event.stopPropagation();
93
+ amotify.fn.Sheet.open( {
94
+ type: 'image',
95
+ src: showExpand != true ? showExpand : src
96
+ } );
97
+ }
98
+ } }
99
+ { ...Others }
100
+ />;
101
+ }
102
+ Img = ImageComp as any;
103
+ Img.uri = {
104
+ comunIcon: publicURI + 'app/admin/@logo/icon.png',
105
+ comunIconClear: publicURI + 'app/admin/@logo/iconClear.png',
106
+ mingooIcon: '',
107
+ defaultIcon: ( type ) => {
108
+ return publicURI + '@env/@icon/' + ( type || 'image' ) + '.png';
109
+ },
110
+ }
111
+ }
112
+ export { Img }
113
+
114
+ export const Flex: FNC<amotify.atoms.FlexProps> = ( props ) => {
115
+ let {
116
+ children,
117
+ freeCSS,
118
+ ...others
119
+ } = props;
120
+
121
+ return ( <Box
122
+ flexType={ 'row' }
123
+ flexWrap={ true }
124
+ display='flex'
125
+ freeCSS={ {
126
+ wordBreak: 'break-word',
127
+ ...freeCSS
128
+ } }
129
+ { ...others }
130
+ children={ children }
131
+ /> );
132
+ }
133
+
134
+ export const FlexBr: FNC<amotifyUniStyleParams> = ( params ) => ( <Box
135
+ width={ 1 }
136
+ flexSizing='none'
137
+ { ...params }
138
+ /> );
139
+
140
+ export const Grid: FNC<amotify.atoms.GridProps> = ( props ) => {
141
+ let {
142
+ children,
143
+ freeCSS,
144
+ ...others
145
+ } = props;
146
+
147
+ return ( <Box
148
+ freeCSS={ {
149
+ display: 'grid',
150
+ ...freeCSS
151
+ } }
152
+ { ...others }
153
+ children={ children }
154
+ /> );
155
+ }
156
+
157
+ export const Paragraph: FNC<amotify.atoms.ParagraphProps> = ( props ) => ( <p { ...StyleConverter.ToClassName( props ) } /> )
@@ -0,0 +1,40 @@
1
+ @use 'src/@styles/props' as *;
2
+ @use'src/@styles/styleSet' as *;
3
+ .Img {
4
+ &.ShowExpand_true {
5
+ transition: $animation-time-middle;
6
+ &:hover {
7
+ opacity: .8;
8
+ }
9
+ }
10
+ }
11
+ @keyframes PlaceholderEffect {
12
+ 0% {
13
+ left: -50%;
14
+ opacity: 0;
15
+ }
16
+ 30% {
17
+ opacity: 1;
18
+ }
19
+ 100% {
20
+ left: 150%;
21
+ opacity: 0;
22
+ }
23
+ }
24
+ .Placeholder {
25
+ .Body {
26
+ @include absoluteCovered();
27
+ width: 40%;
28
+ background: linear-gradient(to right,
29
+ transparent,
30
+ $color-layer5
31
+ );
32
+ animation: 1.5s PlaceholderEffect linear infinite;
33
+ &.Color_white {
34
+ background: linear-gradient(to right,
35
+ transparent,
36
+ $color-layer3
37
+ );
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,29 @@
1
+ import {
2
+ Effects
3
+ } from './Effects/_';
4
+
5
+ import { Buttons } from './Button/_';
6
+ import { Input } from './Input/_';
7
+ import { Inputs } from './Inputs/_';
8
+ import { Layout } from './Layout/_';
9
+ import { Table } from './Table/_';
10
+ import { Sheet } from './Sheet/parts';
11
+ import { SnackBar } from './SnackBar/parts';
12
+ import { Loader } from './Loader/parts';
13
+ import { Tooltips } from './Tooltips/parts';
14
+
15
+ import { Cropper } from './Cropper/parts';
16
+
17
+ export {
18
+ Buttons,
19
+ Input,
20
+ Inputs,
21
+ Table,
22
+ Layout,
23
+ Sheet,
24
+ SnackBar,
25
+ Loader,
26
+ Tooltips,
27
+ Effects,
28
+ Cropper,
29
+ }