amotify 0.0.8 → 0.0.10
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/@types/_.d.ts → @types/_.tsx} +3 -4
- package/{src/@types → @types}/amot.tsx +125 -85
- package/{src/@types → @types}/fn.tsx +52 -53
- package/{src/@types → @types}/jsminAmotifyExtension.tsx +1 -2
- package/@types/module.tsx +1 -0
- package/dist/amotify.js +328 -0
- package/{public → dist}/amotify.min.css +339 -339
- package/package.json +11 -12
- package/src/{Atoms/@export.tsx → @atoms.tsx} +3 -3
- package/src/@functions.tsx +29 -0
- package/src/{Global/@export.tsx → @global.tsx} +9 -9
- package/src/@jsminAmotifyExtension/formCollect.tsx +1 -1
- package/src/{Molecules/@export.tsx → @molecules.tsx} +5 -4
- package/src/@organisms.tsx +5 -0
- package/src/@styles/UniStyling.scss +1 -1
- package/src/@styles/init.scss +1 -1
- package/src/@styles/styleSet.scss +1 -1
- package/src/{Templates/@export.tsx → @templates.tsx} +1 -1
- package/src/{Atoms → atoms}/FAIcon/parts.tsx +4 -3
- package/src/{Atoms → atoms}/FAIcon/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Logo/parts.tsx +2 -2
- package/src/{Atoms → atoms}/Logo/style.module.scss +1 -2
- package/src/{Atoms → atoms}/Various/parts.tsx +10 -9
- package/src/{Atoms → atoms}/Various/style.module.scss +3 -2
- package/src/config.tsx +4 -4
- package/src/{Functions → functions}/Button/_.tsx +2 -1
- package/src/{Functions → functions}/Button/style.module.scss +3 -2
- package/src/{Functions → functions}/Cropper/parts.tsx +16 -20
- package/src/{Functions → functions}/Cropper/style.module.scss +1 -1
- package/src/{Functions → functions}/Effects/Fade.tsx +6 -11
- package/src/{Functions → functions}/Effects/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Chips/Selector.tsx +17 -21
- package/src/{Functions → functions}/Input/Chips/_.tsx +12 -17
- package/src/functions/Input/Chips/style.module.scss +6 -0
- package/src/{Functions → functions}/Input/DigitCharacters.tsx +6 -10
- package/src/{Functions → functions}/Input/File/_.tsx +13 -16
- package/src/{Functions → functions}/Input/File/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Hidden.tsx +4 -3
- package/src/{Functions → functions}/Input/List/_.tsx +8 -12
- package/src/{Functions → functions}/Input/List/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Segmented/_.tsx +2 -2
- package/src/{Functions → functions}/Input/Segmented/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Select/_.tsx +8 -11
- package/src/{Functions → functions}/Input/Select/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Slider/_.tsx +9 -12
- package/src/{Functions → functions}/Input/Slider/style.module.scss +2 -2
- package/src/{Functions → functions}/Input/Switch/_.tsx +7 -11
- package/src/{Functions → functions}/Input/Switch/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/Text.tsx +6 -11
- package/src/{Functions → functions}/Input/TextArea.tsx +4 -8
- package/src/{Functions → functions}/Input/Time/Picker.tsx +11 -16
- package/src/{Functions → functions}/Input/Time/_.tsx +13 -17
- package/src/{Functions → functions}/Input/Time/style.module.scss +1 -1
- package/src/{Functions → functions}/Input/_.tsx +12 -17
- package/src/{Functions → functions}/Input/core.tsx +14 -19
- package/src/{Functions → functions}/Input/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/style.module.scss +1 -1
- package/src/{Functions → functions}/Inputs/text.tsx +5 -17
- package/src/functions/Inputs/types.d.ts +13 -0
- package/src/{Functions → functions}/Layout/PageNotFound.tsx +6 -7
- package/src/{Functions → functions}/Layout/PageRouter.tsx +25 -34
- package/src/{Functions → functions}/Layout/PageViewController/parts.tsx +6 -9
- package/src/{Functions → functions}/Layout/Plate.tsx +3 -2
- package/src/{Functions → functions}/Layout/RootViewController/parts.tsx +6 -8
- package/src/{Functions → functions}/Layout/RootViewController/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/SwipeView/parts.tsx +11 -16
- package/src/{Functions → functions}/Layout/SwipeView/style.module.scss +1 -1
- package/src/{Functions → functions}/Layout/TabBar.tsx +6 -10
- package/src/{Functions → functions}/Loader/corner.tsx +6 -12
- package/src/{Functions → functions}/Loader/mini.tsx +9 -12
- package/src/{Functions → functions}/Loader/parts.tsx +7 -10
- package/src/{Functions → functions}/Loader/style.module.scss +1 -1
- package/src/{Functions → functions}/Loader/top.tsx +6 -12
- package/src/{Functions → functions}/Sheet/parts.tsx +16 -19
- package/src/{Functions → functions}/Sheet/style.module.scss +1 -1
- package/src/{Functions → functions}/SnackBar/parts.tsx +14 -17
- package/src/{Functions → functions}/SnackBar/style.module.scss +1 -1
- package/src/{Functions → functions}/Table/Data/parts.tsx +4 -4
- package/src/{Functions → functions}/Table/Drag/parts.tsx +12 -15
- package/src/{Functions → functions}/Table/Normal/parts.tsx +5 -5
- package/src/{Functions → functions}/Table/_.tsx +4 -4
- package/src/{Functions → functions}/Table/style.module.scss +3 -2
- package/src/{Functions → functions}/Tooltips/parts.tsx +3 -2
- package/src/{Global → global}/LaunchReactApplication.tsx +4 -3
- package/src/{Global → global}/styleConverter.tsx +3 -7
- package/src/launch.tsx +16 -11
- package/src/{Molecules → molecules}/Accordion/parts.tsx +8 -12
- package/src/{Molecules → molecules}/Accordion/style.module.scss +1 -1
- package/src/{Molecules → molecules}/LinkifyText/parts.tsx +4 -3
- package/src/{Molecules → molecules}/List.tsx +3 -2
- package/src/{Organisms → organisms}/DisplayStyleInput/darkmode.tsx +6 -11
- package/src/{Organisms → organisms}/DisplayStyleInput/themeColor.tsx +7 -12
- package/src/{Templates → templates}/PlayGround/parts.tsx +12 -40
- package/src/{Templates → templates}/PlayGround/style.module.scss +1 -1
- package/tsconfig.json +19 -5
- package/webpack.config.js +18 -7
- package/dist/@jsminAmotifyExtension/_.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/_.js +0 -6
- package/dist/@jsminAmotifyExtension/fetch.d.ts +0 -9
- package/dist/@jsminAmotifyExtension/fetch.js +0 -199
- package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/@jsminAmotifyExtension/formCollect.js +0 -137
- package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/@jsminAmotifyExtension/spreadSheet.js +0 -314
- package/dist/@jsminAmotifyExtension/variables.d.ts +0 -0
- package/dist/@jsminAmotifyExtension/variables.js +0 -186
- package/dist/@types/_.js +0 -8
- package/dist/@types/amot.d.ts +0 -260
- package/dist/@types/amot.js +0 -2
- package/dist/@types/fn.d.ts +0 -1040
- package/dist/@types/fn.js +0 -2
- package/dist/@types/index.d.ts +0 -62
- package/dist/@types/index.js +0 -2
- package/dist/@types/jsminAmotifyExtension.d.ts +0 -134
- package/dist/@types/jsminAmotifyExtension.js +0 -2
- package/dist/@types/module.d.ts +0 -2
- package/dist/@types/module.js +0 -1
- package/dist/@types/state.d.ts +0 -145
- package/dist/@types/state.js +0 -2
- package/dist/Atoms/@export.d.ts +0 -4
- package/dist/Atoms/@export.js +0 -16
- package/dist/Atoms/FAIcon/parts.d.ts +0 -2
- package/dist/Atoms/FAIcon/parts.js +0 -152
- package/dist/Atoms/Logo/parts.d.ts +0 -1
- package/dist/Atoms/Logo/parts.js +0 -154
- package/dist/Atoms/Various/parts.d.ts +0 -9
- package/dist/Atoms/Various/parts.js +0 -113
- package/dist/Functions/@export.d.ts +0 -12
- package/dist/Functions/@export.js +0 -25
- package/dist/Functions/Button/_.d.ts +0 -1
- package/dist/Functions/Button/_.js +0 -270
- package/dist/Functions/Cropper/parts.d.ts +0 -1
- package/dist/Functions/Cropper/parts.js +0 -783
- package/dist/Functions/Effects/Fade.d.ts +0 -1
- package/dist/Functions/Effects/Fade.js +0 -82
- package/dist/Functions/Effects/Ripple.d.ts +0 -1
- package/dist/Functions/Effects/Ripple.js +0 -107
- package/dist/Functions/Effects/_.d.ts +0 -3
- package/dist/Functions/Effects/_.js +0 -43
- package/dist/Functions/Input/Chips/Selector.d.ts +0 -1
- package/dist/Functions/Input/Chips/Selector.js +0 -356
- package/dist/Functions/Input/Chips/_.d.ts +0 -2
- package/dist/Functions/Input/Chips/_.js +0 -218
- package/dist/Functions/Input/DigitCharacters.d.ts +0 -1
- package/dist/Functions/Input/DigitCharacters.js +0 -178
- package/dist/Functions/Input/File/_.d.ts +0 -2
- package/dist/Functions/Input/File/_.js +0 -458
- package/dist/Functions/Input/Hidden.d.ts +0 -1
- package/dist/Functions/Input/Hidden.js +0 -30
- package/dist/Functions/Input/List/_.d.ts +0 -1
- package/dist/Functions/Input/List/_.js +0 -232
- package/dist/Functions/Input/Segmented/_.d.ts +0 -1
- package/dist/Functions/Input/Segmented/_.js +0 -111
- package/dist/Functions/Input/Select/_.d.ts +0 -1
- package/dist/Functions/Input/Select/_.js +0 -154
- package/dist/Functions/Input/Slider/_.d.ts +0 -1
- package/dist/Functions/Input/Slider/_.js +0 -308
- package/dist/Functions/Input/Switch/_.d.ts +0 -1
- package/dist/Functions/Input/Switch/_.js +0 -120
- package/dist/Functions/Input/Text.d.ts +0 -5
- package/dist/Functions/Input/Text.js +0 -340
- package/dist/Functions/Input/TextArea.d.ts +0 -1
- package/dist/Functions/Input/TextArea.js +0 -98
- package/dist/Functions/Input/Time/Picker.d.ts +0 -1
- package/dist/Functions/Input/Time/Picker.js +0 -581
- package/dist/Functions/Input/Time/_.d.ts +0 -2
- package/dist/Functions/Input/Time/_.js +0 -567
- package/dist/Functions/Input/_.d.ts +0 -5
- package/dist/Functions/Input/_.js +0 -446
- package/dist/Functions/Input/core.d.ts +0 -34
- package/dist/Functions/Input/core.js +0 -324
- package/dist/Functions/Inputs/_.d.ts +0 -3
- package/dist/Functions/Inputs/_.js +0 -7
- package/dist/Functions/Inputs/text.d.ts +0 -12
- package/dist/Functions/Inputs/text.js +0 -46
- package/dist/Functions/Layout/PageNotFound.d.ts +0 -1
- package/dist/Functions/Layout/PageNotFound.js +0 -30
- package/dist/Functions/Layout/PageRouter.d.ts +0 -2
- package/dist/Functions/Layout/PageRouter.js +0 -65
- package/dist/Functions/Layout/PageViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/PageViewController/parts.js +0 -31
- package/dist/Functions/Layout/Plate.d.ts +0 -1
- package/dist/Functions/Layout/Plate.js +0 -39
- package/dist/Functions/Layout/RootViewController/parts.d.ts +0 -1
- package/dist/Functions/Layout/RootViewController/parts.js +0 -202
- package/dist/Functions/Layout/SwipeView/parts.d.ts +0 -2
- package/dist/Functions/Layout/SwipeView/parts.js +0 -319
- package/dist/Functions/Layout/TabBar.d.ts +0 -1
- package/dist/Functions/Layout/TabBar.js +0 -49
- package/dist/Functions/Layout/_.d.ts +0 -2
- package/dist/Functions/Layout/_.js +0 -20
- package/dist/Functions/Loader/corner.d.ts +0 -1
- package/dist/Functions/Loader/corner.js +0 -59
- package/dist/Functions/Loader/mini.d.ts +0 -33
- package/dist/Functions/Loader/mini.js +0 -126
- package/dist/Functions/Loader/parts.d.ts +0 -3
- package/dist/Functions/Loader/parts.js +0 -108
- package/dist/Functions/Loader/top.d.ts +0 -1
- package/dist/Functions/Loader/top.js +0 -69
- package/dist/Functions/Sheet/parts.d.ts +0 -2
- package/dist/Functions/Sheet/parts.js +0 -724
- package/dist/Functions/SnackBar/parts.d.ts +0 -2
- package/dist/Functions/SnackBar/parts.js +0 -171
- package/dist/Functions/Table/Data/parts.d.ts +0 -3
- package/dist/Functions/Table/Data/parts.js +0 -629
- package/dist/Functions/Table/Drag/parts.d.ts +0 -1
- package/dist/Functions/Table/Drag/parts.js +0 -359
- package/dist/Functions/Table/Normal/parts.d.ts +0 -1
- package/dist/Functions/Table/Normal/parts.js +0 -92
- package/dist/Functions/Table/_.d.ts +0 -9
- package/dist/Functions/Table/_.js +0 -153
- package/dist/Functions/Tooltips/parts.d.ts +0 -2
- package/dist/Functions/Tooltips/parts.js +0 -71
- package/dist/Global/@export.d.ts +0 -12
- package/dist/Global/@export.js +0 -198
- package/dist/Global/LaunchReactApplication.d.ts +0 -1
- package/dist/Global/LaunchReactApplication.js +0 -48
- package/dist/Global/styleConverter.d.ts +0 -2
- package/dist/Global/styleConverter.js +0 -349
- package/dist/Molecules/@export.d.ts +0 -21
- package/dist/Molecules/@export.js +0 -41
- package/dist/Molecules/Accordion/parts.d.ts +0 -2
- package/dist/Molecules/Accordion/parts.js +0 -165
- package/dist/Molecules/LinkifyText/parts.d.ts +0 -1
- package/dist/Molecules/LinkifyText/parts.js +0 -39
- package/dist/Molecules/List.d.ts +0 -1
- package/dist/Molecules/List.js +0 -35
- package/dist/Organisms/@export.d.ts +0 -2
- package/dist/Organisms/@export.js +0 -5
- package/dist/Organisms/DisplayStyleInput/_.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/_.js +0 -15
- package/dist/Organisms/DisplayStyleInput/darkmode.d.ts +0 -1
- package/dist/Organisms/DisplayStyleInput/darkmode.js +0 -77
- package/dist/Organisms/DisplayStyleInput/themeColor.d.ts +0 -27
- package/dist/Organisms/DisplayStyleInput/themeColor.js +0 -185
- package/dist/Templates/@export.d.ts +0 -2
- package/dist/Templates/@export.js +0 -5
- package/dist/Templates/PlayGround/parts.d.ts +0 -1
- package/dist/Templates/PlayGround/parts.js +0 -55
- package/dist/config.d.ts +0 -16
- package/dist/config.js +0 -171
- package/dist/launch.d.ts +0 -9
- package/dist/launch.js +0 -46
- package/dist/preload.d.ts +0 -1
- package/dist/preload.js +0 -73
- package/public/amotify.js +0 -310
- package/src/@types/_.tsx +0 -6
- package/src/@types/index.tsx +0 -74
- package/src/@types/module.tsx +0 -2
- package/src/Functions/@export.tsx +0 -29
- package/src/Functions/Input/Chips/style.module.scss +0 -6
- package/src/Functions/Inputs/types.d.ts +0 -1
- package/src/Global/exe.tsx +0 -0
- package/src/Organisms/@export.tsx +0 -5
- package/src/index.js +0 -0
- /package/{src/@types → @types}/state.tsx +0 -0
- /package/src/{Functions → functions}/Effects/Ripple.tsx +0 -0
- /package/src/{Functions → functions}/Effects/_.tsx +0 -0
- /package/src/{Functions → functions}/Inputs/_.tsx +0 -0
- /package/src/{Functions → functions}/Layout/_.tsx +0 -0
- /package/src/{Organisms → organisms}/DisplayStyleInput/_.tsx +0 -0
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Row
|
|
6
|
-
} from '
|
|
7
|
-
const {
|
|
8
|
-
useEffect,
|
|
9
|
-
useState,
|
|
10
|
-
} = React;
|
|
7
|
+
} from '@mols';
|
|
11
8
|
|
|
12
9
|
import style from './style.module.scss';
|
|
13
10
|
|
|
@@ -22,9 +19,9 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
|
|
|
22
19
|
loaderID = '',
|
|
23
20
|
...props
|
|
24
21
|
} = params;
|
|
25
|
-
let [ val_key ] = useState( loaderID );
|
|
26
|
-
let [ val_componentID ] = useState( $.uuidGen() );
|
|
27
|
-
let [ val_active,set_active ] = useState( showInitial );
|
|
22
|
+
let [ val_key ] = React.useState( loaderID );
|
|
23
|
+
let [ val_componentID ] = React.useState( $.uuidGen() );
|
|
24
|
+
let [ val_active,set_active ] = React.useState( showInitial );
|
|
28
25
|
|
|
29
26
|
let Size: amotify.UniStyles.Sizes.SizeParams = 0;
|
|
30
27
|
if ( size == 'S' ) {
|
|
@@ -48,7 +45,7 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
|
|
|
48
45
|
}[ color as 'theme' ];
|
|
49
46
|
|
|
50
47
|
let QuerySelector = '[data-component-id="' + val_componentID + '"]';
|
|
51
|
-
useEffect( () => {
|
|
48
|
+
React.useEffect( () => {
|
|
52
49
|
if ( val_active ) {
|
|
53
50
|
$( QuerySelector )
|
|
54
51
|
.removeClass( style.Hide )
|
|
@@ -62,7 +59,7 @@ export const Mini = ( params: amotify.fn.Loader.CompInput & {
|
|
|
62
59
|
}
|
|
63
60
|
},[ val_active ] );
|
|
64
61
|
|
|
65
|
-
useEffect( () => {
|
|
62
|
+
React.useEffect( () => {
|
|
66
63
|
useStore.set( {
|
|
67
64
|
key: val_componentID,
|
|
68
65
|
value: {
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
LaunchReactApplication,
|
|
3
4
|
useStore
|
|
4
|
-
} from '
|
|
5
|
-
const {
|
|
6
|
-
useEffect,
|
|
7
|
-
useState,
|
|
8
|
-
} = React;
|
|
5
|
+
} from '@global';
|
|
9
6
|
|
|
10
7
|
import style from './style.module.scss';
|
|
11
8
|
|
|
@@ -18,11 +15,11 @@ const SizeWrapper: {
|
|
|
18
15
|
( params: {
|
|
19
16
|
color: amotify.fn.Loader.Colors
|
|
20
17
|
} ): {
|
|
21
|
-
S:
|
|
22
|
-
R:
|
|
23
|
-
L:
|
|
24
|
-
XL:
|
|
25
|
-
MAX:
|
|
18
|
+
S: React.FC<amotify.fn.Loader.CompInput>
|
|
19
|
+
R: React.FC<amotify.fn.Loader.CompInput>
|
|
20
|
+
L: React.FC<amotify.fn.Loader.CompInput>
|
|
21
|
+
XL: React.FC<amotify.fn.Loader.CompInput>
|
|
22
|
+
MAX: React.FC<amotify.fn.Loader.CompInput>
|
|
26
23
|
}
|
|
27
24
|
} = ( params ) => {
|
|
28
25
|
let color = params.color;
|
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Box,
|
|
6
7
|
Flex
|
|
7
|
-
} from '
|
|
8
|
-
import {
|
|
9
|
-
Row
|
|
10
|
-
} from '~/Molecules/@export';
|
|
11
|
-
const {
|
|
12
|
-
useEffect,
|
|
13
|
-
useState,
|
|
14
|
-
} = React;
|
|
8
|
+
} from '@atoms';
|
|
15
9
|
|
|
16
10
|
import style from './style.module.scss';
|
|
17
11
|
|
|
18
12
|
import { memoryID } from './parts';
|
|
19
13
|
|
|
20
14
|
export const Top = () => {
|
|
21
|
-
let [ val_active,set_active ] = useState( false );
|
|
15
|
+
let [ val_active,set_active ] = React.useState( false );
|
|
22
16
|
|
|
23
|
-
useEffect( () => {
|
|
17
|
+
React.useEffect( () => {
|
|
24
18
|
useStore.set( {
|
|
25
19
|
key: memoryID + '-top',
|
|
26
20
|
value: {
|
|
@@ -1,27 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
+
React,
|
|
2
3
|
LaunchReactApplication,
|
|
3
4
|
useStore
|
|
4
|
-
} from '
|
|
5
|
+
} from '@global';
|
|
5
6
|
import {
|
|
6
7
|
Img,
|
|
7
8
|
Box,
|
|
8
9
|
Flex,
|
|
9
10
|
FAIcon
|
|
10
|
-
} from '
|
|
11
|
+
} from '@atoms';
|
|
11
12
|
import {
|
|
12
13
|
Column,
|
|
13
14
|
Row,
|
|
14
15
|
Text
|
|
15
|
-
} from '
|
|
16
|
+
} from '@mols';
|
|
16
17
|
import {
|
|
17
18
|
Buttons,
|
|
18
19
|
Input,
|
|
19
20
|
Layout
|
|
20
|
-
} from '
|
|
21
|
-
const {
|
|
22
|
-
useEffect,
|
|
23
|
-
useState,
|
|
24
|
-
} = React;
|
|
21
|
+
} from '@fn';
|
|
25
22
|
|
|
26
23
|
import style from './style.module.scss';
|
|
27
24
|
|
|
@@ -81,9 +78,9 @@ const Comps = {
|
|
|
81
78
|
mainSheetScrolls: 0,
|
|
82
79
|
subSheetLength: 0,
|
|
83
80
|
Core: ( params: Params ) => {
|
|
84
|
-
let [ val_componentID ] = useState( $.uuidGen() );
|
|
85
|
-
let [ val_params,set_params ] = useState( params );
|
|
86
|
-
let [ val_open,set_open ] = useState( true );
|
|
81
|
+
let [ val_componentID ] = React.useState( $.uuidGen() );
|
|
82
|
+
let [ val_params,set_params ] = React.useState( params );
|
|
83
|
+
let [ val_open,set_open ] = React.useState( true );
|
|
87
84
|
|
|
88
85
|
let {
|
|
89
86
|
type,
|
|
@@ -113,7 +110,7 @@ const Comps = {
|
|
|
113
110
|
'custom': 'Custom',
|
|
114
111
|
}[ type ] as 'Normal' ];
|
|
115
112
|
|
|
116
|
-
useEffect( () => {
|
|
113
|
+
React.useEffect( () => {
|
|
117
114
|
useStore.set( {
|
|
118
115
|
key: sheetID!,
|
|
119
116
|
value: {
|
|
@@ -148,7 +145,7 @@ const Comps = {
|
|
|
148
145
|
}
|
|
149
146
|
} );
|
|
150
147
|
} );
|
|
151
|
-
useEffect( () => {
|
|
148
|
+
React.useEffect( () => {
|
|
152
149
|
let {
|
|
153
150
|
closeOption
|
|
154
151
|
} = params;
|
|
@@ -168,7 +165,7 @@ const Comps = {
|
|
|
168
165
|
} );
|
|
169
166
|
} );
|
|
170
167
|
},[] );
|
|
171
|
-
useEffect( () => {
|
|
168
|
+
React.useEffect( () => {
|
|
172
169
|
$.fnScope( () => {
|
|
173
170
|
// #ROOT
|
|
174
171
|
if ( !isNewSheet ) return;
|
|
@@ -412,8 +409,8 @@ const Comps = {
|
|
|
412
409
|
'L': 3
|
|
413
410
|
}
|
|
414
411
|
|
|
415
|
-
let [ val_stableSize,set_stableSize ] = useState( size as any );
|
|
416
|
-
let [ val_edit,set_edit ] = useState( {
|
|
412
|
+
let [ val_stableSize,set_stableSize ] = React.useState( size as any );
|
|
413
|
+
let [ val_edit,set_edit ] = React.useState( {
|
|
417
414
|
process: false,
|
|
418
415
|
processStart: 0,
|
|
419
416
|
originY: 0,
|
|
@@ -527,7 +524,7 @@ const Comps = {
|
|
|
527
524
|
}
|
|
528
525
|
|
|
529
526
|
const mounted = React.useRef( false );
|
|
530
|
-
useEffect( () => {
|
|
527
|
+
React.useEffect( () => {
|
|
531
528
|
if ( mounted.current ) {
|
|
532
529
|
if ( val_stableSize == 'ZERO' ) {
|
|
533
530
|
if ( swipeDown ) Sheet.close( sheetID! );
|
|
@@ -828,8 +825,8 @@ const Sheet: amotify.fn.Sheet.Methods = {
|
|
|
828
825
|
transformOrigin: 'top'
|
|
829
826
|
},
|
|
830
827
|
content: () => {
|
|
831
|
-
let [ val_image ] = useState( $.flatArray( src ) );
|
|
832
|
-
let [ val_viewIndex,set_viewIndex ] = useState( 0 );
|
|
828
|
+
let [ val_image ] = React.useState( $.flatArray( src ) );
|
|
829
|
+
let [ val_viewIndex,set_viewIndex ] = React.useState( 0 );
|
|
833
830
|
|
|
834
831
|
let Radio: amotify.fn.Input.List.OptionParams[] = [];
|
|
835
832
|
let Slides: ReactElement[] = [];
|
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LaunchReactApplication,
|
|
3
|
-
useStore
|
|
4
|
-
|
|
3
|
+
useStore,
|
|
4
|
+
React
|
|
5
|
+
} from '@global';
|
|
5
6
|
import {
|
|
6
7
|
Box,
|
|
7
8
|
Flex,
|
|
8
9
|
FAIcon
|
|
9
|
-
} from '
|
|
10
|
+
} from '@atoms';
|
|
10
11
|
import {
|
|
11
12
|
Row,
|
|
12
13
|
Column
|
|
13
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
14
15
|
import {
|
|
15
16
|
Buttons
|
|
16
|
-
} from '
|
|
17
|
-
const {
|
|
18
|
-
useEffect,
|
|
19
|
-
useState,
|
|
20
|
-
} = React;
|
|
17
|
+
} from '@fn';
|
|
21
18
|
|
|
22
19
|
import style from './style.module.scss';
|
|
23
20
|
|
|
@@ -38,7 +35,7 @@ type ElementParams = amotify.fn.SnackBar.AddParams & {
|
|
|
38
35
|
snackID: string
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
const Cell:
|
|
38
|
+
const Cell: React.FC<ElementParams> = ( props ) => {
|
|
42
39
|
let {
|
|
43
40
|
snackID,
|
|
44
41
|
secondsToClose = 10,
|
|
@@ -48,10 +45,10 @@ const Cell: FNC<ElementParams> = ( props ) => {
|
|
|
48
45
|
...others
|
|
49
46
|
} = props;
|
|
50
47
|
|
|
51
|
-
let [ val_componentID ] = useState( componentID );
|
|
52
|
-
let [ val_mouseOn,set_mouseOn ] = useState( false );
|
|
48
|
+
let [ val_componentID ] = React.useState( componentID );
|
|
49
|
+
let [ val_mouseOn,set_mouseOn ] = React.useState( false );
|
|
53
50
|
|
|
54
|
-
useEffect( () => {
|
|
51
|
+
React.useEffect( () => {
|
|
55
52
|
let Query = '[data-component-id="' + val_componentID + '"]';
|
|
56
53
|
setTimeout( () => {
|
|
57
54
|
$( Query ).addClass( style.FadeIn );
|
|
@@ -67,7 +64,7 @@ const Cell: FNC<ElementParams> = ( props ) => {
|
|
|
67
64
|
} );
|
|
68
65
|
},[] );
|
|
69
66
|
|
|
70
|
-
useEffect( () => {
|
|
67
|
+
React.useEffect( () => {
|
|
71
68
|
$.interval.clear( 'SnackBar-' + val_componentID );
|
|
72
69
|
if ( !val_mouseOn ) {
|
|
73
70
|
setTimeout( () => {
|
|
@@ -138,10 +135,10 @@ const Cell: FNC<ElementParams> = ( props ) => {
|
|
|
138
135
|
|
|
139
136
|
let SnackBarElements: ElementParams[] = [];
|
|
140
137
|
|
|
141
|
-
const SnackBarsWrap:
|
|
142
|
-
let [ val_refresh,set_refresh ] = useState( $.uuidGen() );
|
|
138
|
+
const SnackBarsWrap: React.FC<{}> = () => {
|
|
139
|
+
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() );
|
|
143
140
|
|
|
144
|
-
useEffect( () => {
|
|
141
|
+
React.useEffect( () => {
|
|
145
142
|
useStore.set( {
|
|
146
143
|
key: 'SnackBar',
|
|
147
144
|
privateKey: SnackBar.__memoryID,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useStore,
|
|
3
3
|
React
|
|
4
|
-
} from '
|
|
4
|
+
} from '@global';
|
|
5
5
|
import {
|
|
6
6
|
Flex,
|
|
7
7
|
Box,
|
|
8
8
|
Span,
|
|
9
9
|
FAIcon
|
|
10
|
-
} from '
|
|
10
|
+
} from '@atoms';
|
|
11
11
|
import {
|
|
12
12
|
Column,
|
|
13
13
|
Row,Text
|
|
14
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
15
15
|
import {
|
|
16
16
|
Buttons,
|
|
17
17
|
Input,
|
|
18
18
|
Sheet,
|
|
19
|
-
} from '
|
|
19
|
+
} from '@fn';
|
|
20
20
|
|
|
21
21
|
import style from '../style.module.scss';
|
|
22
22
|
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
FAIcon
|
|
6
|
-
} from '
|
|
7
|
+
} from '@atoms';
|
|
7
8
|
import {
|
|
8
9
|
Buttons,
|
|
9
10
|
Tooltips,
|
|
10
|
-
} from '
|
|
11
|
-
const {
|
|
12
|
-
useState,
|
|
13
|
-
useEffect,
|
|
14
|
-
} = React;
|
|
11
|
+
} from '@fn';
|
|
15
12
|
|
|
16
13
|
import {
|
|
17
14
|
Comps,
|
|
@@ -20,7 +17,7 @@ import {
|
|
|
20
17
|
|
|
21
18
|
import style from '../style.module.scss';
|
|
22
19
|
|
|
23
|
-
const HeadRow:
|
|
20
|
+
const HeadRow: React.FC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
24
21
|
let {
|
|
25
22
|
cellStyles = {},
|
|
26
23
|
cellClassName = '',
|
|
@@ -70,7 +67,7 @@ const HeadRow: FNC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
|
70
67
|
children={ Cols }
|
|
71
68
|
/> );
|
|
72
69
|
}
|
|
73
|
-
const BodyRows:
|
|
70
|
+
const BodyRows: React.FC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
74
71
|
let {
|
|
75
72
|
cellStyles = {},
|
|
76
73
|
cellClassName = '',
|
|
@@ -81,8 +78,8 @@ const BodyRows: FNC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
|
81
78
|
onOrderChanged
|
|
82
79
|
} = props;
|
|
83
80
|
|
|
84
|
-
let [ val_componentID ] = useState( $.uuidGen() );
|
|
85
|
-
let [ val_info,set_info ] = useState( {
|
|
81
|
+
let [ val_componentID ] = React.useState( $.uuidGen() );
|
|
82
|
+
let [ val_info,set_info ] = React.useState( {
|
|
86
83
|
rows: rows,
|
|
87
84
|
origin: 0,
|
|
88
85
|
to: NaN
|
|
@@ -253,7 +250,7 @@ const BodyRows: FNC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
|
253
250
|
/> )
|
|
254
251
|
}
|
|
255
252
|
|
|
256
|
-
useEffect( () => {
|
|
253
|
+
React.useEffect( () => {
|
|
257
254
|
useStore.set( {
|
|
258
255
|
key: val_componentID,
|
|
259
256
|
value: {
|
|
@@ -291,7 +288,7 @@ const BodyRows: FNC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
|
291
288
|
}
|
|
292
289
|
} )
|
|
293
290
|
} );
|
|
294
|
-
useEffect( () => {
|
|
291
|
+
React.useEffect( () => {
|
|
295
292
|
return () => {
|
|
296
293
|
useStore.delete( val_componentID );
|
|
297
294
|
}
|
|
@@ -303,7 +300,7 @@ const BodyRows: FNC<amotify.fn.Tables.Drag.Params> = ( props ) => {
|
|
|
303
300
|
}
|
|
304
301
|
|
|
305
302
|
|
|
306
|
-
export const DragTable:
|
|
303
|
+
export const DragTable: React.FC<amotify.fn.Tables.Drag.Params> = ( params ) => {
|
|
307
304
|
params.colLength = params.colLength + 1;
|
|
308
305
|
|
|
309
306
|
if ( params.head ) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import {
|
|
4
3
|
Comps,
|
|
5
4
|
DefaultCellSystemStyles
|
|
6
5
|
} from '../_';
|
|
6
|
+
import style from '../style.module.scss';
|
|
7
7
|
|
|
8
|
-
const HeadRow:
|
|
8
|
+
const HeadRow: React.FC<amotify.fn.Tables.Normal.Params> = ( params ) => {
|
|
9
9
|
let {
|
|
10
10
|
cellStyles = {},
|
|
11
11
|
cellClassName = '',
|
|
@@ -52,7 +52,7 @@ const HeadRow: FNC<amotify.fn.Tables.Normal.Params> = ( params ) => {
|
|
|
52
52
|
children={ Cols }
|
|
53
53
|
/> );
|
|
54
54
|
}
|
|
55
|
-
const BodyRows:
|
|
55
|
+
const BodyRows: React.FC<amotify.fn.Tables.Normal.Params> = ( params ) => {
|
|
56
56
|
let {
|
|
57
57
|
cellStyles = {},
|
|
58
58
|
cellClassName = '',
|
|
@@ -110,7 +110,7 @@ const BodyRows: FNC<amotify.fn.Tables.Normal.Params> = ( params ) => {
|
|
|
110
110
|
</> );
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
export const NormalTable:
|
|
113
|
+
export const NormalTable: React.FC<amotify.fn.Tables.Normal.Params> = ( params ) => {
|
|
114
114
|
params.rows = params.rows.map( ( row,rowIndex ) => {
|
|
115
115
|
row.rowID = row.rowID || rowIndex;
|
|
116
116
|
return row;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StyleConverter,
|
|
3
|
-
|
|
4
|
-
} from '
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
Box,
|
|
8
8
|
FAIcon
|
|
9
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
10
10
|
|
|
11
11
|
export const Comps: amotify.fn.Tables.CompsMethods = {
|
|
12
12
|
Table: ( params ) => ( <table { ...StyleConverter.ToClassName( params ) } /> ),
|
|
@@ -38,7 +38,7 @@ import { DragTable } from './Drag/parts';
|
|
|
38
38
|
|
|
39
39
|
import style from './style.module.scss';
|
|
40
40
|
|
|
41
|
-
const Wrapper:
|
|
41
|
+
const Wrapper: React.FC<amotify.fn.Tables.Uni.Params & {
|
|
42
42
|
type: amotify.fn.Tables.Types
|
|
43
43
|
}> = ( params ) => {
|
|
44
44
|
let {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOMCLient from 'react-dom/client';
|
|
2
3
|
import * as ReactRouterDom from 'react-router-dom';
|
|
3
4
|
|
|
4
|
-
export const LaunchReactApplication: amotify.
|
|
5
|
+
export const LaunchReactApplication: amotify.global.LaunchReactApplicationParams = ( props ) => {
|
|
5
6
|
let {
|
|
6
7
|
baseElement = '#ROOT',
|
|
7
8
|
reactElement,
|
|
@@ -26,5 +27,5 @@ export const LaunchReactApplication: amotify.glob.LaunchReactApplicationParams =
|
|
|
26
27
|
}
|
|
27
28
|
let reactDom = nonRouter ? reactElement : <ReactRouterDom.BrowserRouter children={ reactElement } />;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
ReactDOMCLient.createRoot( Base ).render( <React.StrictMode children={ reactDom } /> );
|
|
30
31
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useStore
|
|
3
|
-
} from '~/Global/@export';
|
|
4
|
-
|
|
5
1
|
type StyleType = '¥' | '¥_h' | '¥_f' | '¥_a' | '¥bk';
|
|
6
2
|
|
|
7
3
|
const FNs = {
|
|
@@ -19,7 +15,7 @@ const FNs = {
|
|
|
19
15
|
},
|
|
20
16
|
ev: ( v: any ) => $.is.nullish( v ),
|
|
21
17
|
ClassNames: ( type: StyleType,params: amotifyUniStyleParams ) => {
|
|
22
|
-
let CLS = [];
|
|
18
|
+
let CLS: string[] = [];
|
|
23
19
|
|
|
24
20
|
let {
|
|
25
21
|
gap,
|
|
@@ -242,7 +238,7 @@ const FNs = {
|
|
|
242
238
|
}
|
|
243
239
|
}
|
|
244
240
|
|
|
245
|
-
export const ReadStyleSet: amotify.
|
|
241
|
+
export const ReadStyleSet: amotify.global.StyleConverter.ReadStyleSet = ( rawParams ) => {
|
|
246
242
|
let params: amotifyBasicElement = { ...rawParams } as any;
|
|
247
243
|
let {
|
|
248
244
|
gradients,
|
|
@@ -371,7 +367,7 @@ export const ReadStyleSet: amotify.glob.StyleConverter.ReadStyleSet = ( rawParam
|
|
|
371
367
|
|
|
372
368
|
return ReturnParams as any;
|
|
373
369
|
}
|
|
374
|
-
export const ToClassName: amotify.
|
|
370
|
+
export const ToClassName: amotify.global.StyleConverter.ToClassName = ( rawParams ) => {
|
|
375
371
|
let params = ReadStyleSet( rawParams ) as amotifyBasicElement;
|
|
376
372
|
|
|
377
373
|
let {
|
package/src/launch.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import 'jsmin-front/dist/@types';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
import '../@types/_';
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
if ( !global.$ ) console.log( `%c※can not find global.$,please read Jsmin to launch amotify.`,'color:orange;' );
|
|
6
6
|
|
|
7
7
|
let publicURI = 'https://public.comun.jp/';
|
|
8
8
|
export { publicURI }
|
|
@@ -10,14 +10,14 @@ export { publicURI }
|
|
|
10
10
|
import './@jsminAmotifyExtension/_';
|
|
11
11
|
import {
|
|
12
12
|
React,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
ReactDOM,
|
|
14
|
+
ReactRouterDOM,
|
|
15
15
|
pageTransit,
|
|
16
16
|
useStore,
|
|
17
17
|
useRecycle,
|
|
18
18
|
StyleConverter,
|
|
19
19
|
LaunchReactApplication
|
|
20
|
-
} from '
|
|
20
|
+
} from './@global';
|
|
21
21
|
import {
|
|
22
22
|
Flex,
|
|
23
23
|
FlexBr,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
Span,
|
|
30
30
|
Paragraph,
|
|
31
31
|
Img
|
|
32
|
-
} from '
|
|
32
|
+
} from '@atoms';
|
|
33
33
|
import {
|
|
34
34
|
List,
|
|
35
35
|
Accordion,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
Text,
|
|
38
38
|
Column,
|
|
39
39
|
Row
|
|
40
|
-
} from '
|
|
40
|
+
} from '@mols';
|
|
41
41
|
import {
|
|
42
42
|
DisplayStyleInput
|
|
43
|
-
} from '
|
|
43
|
+
} from '@orgs';
|
|
44
44
|
import {
|
|
45
45
|
PlayGround
|
|
46
|
-
} from '
|
|
46
|
+
} from './@templates';
|
|
47
47
|
import {
|
|
48
48
|
Buttons,
|
|
49
49
|
Input,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
Tooltips,
|
|
57
57
|
Effects,
|
|
58
58
|
Cropper,
|
|
59
|
-
} from '
|
|
59
|
+
} from '@fn';
|
|
60
60
|
|
|
61
61
|
import {
|
|
62
62
|
deviceIdentifier,
|
|
@@ -66,7 +66,12 @@ import {
|
|
|
66
66
|
|
|
67
67
|
const amotify: amotify = {
|
|
68
68
|
config: defaultConfig,
|
|
69
|
-
|
|
69
|
+
global: {
|
|
70
|
+
React,
|
|
71
|
+
ReactDOM,
|
|
72
|
+
ReactRouterDOM,
|
|
73
|
+
pageTransit,useStore,useRecycle,StyleConverter,LaunchReactApplication
|
|
74
|
+
},
|
|
70
75
|
atoms: { Flex,FlexBr,FAIcon,Placeholder,Grid,Logo,Box,Span,Paragraph,Img },
|
|
71
76
|
mols: { List,Accordion,LinkifyText,Text,Column,Row },
|
|
72
77
|
orgs: { DisplayStyleInput },
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useStore,
|
|
3
3
|
React
|
|
4
|
-
} from '
|
|
4
|
+
} from '@global';
|
|
5
5
|
import {
|
|
6
6
|
Box
|
|
7
|
-
} from '
|
|
8
|
-
const {
|
|
9
|
-
useEffect,
|
|
10
|
-
useState,
|
|
11
|
-
} = React;
|
|
7
|
+
} from '@atoms';
|
|
12
8
|
|
|
13
9
|
import style from './style.module.scss';
|
|
14
10
|
|
|
15
|
-
const Component:
|
|
11
|
+
const Component: React.FC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
16
12
|
let {
|
|
17
13
|
accordionID = '',
|
|
18
14
|
slideAnimation = 'fast',
|
|
@@ -20,16 +16,16 @@ const Component: FNC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
20
16
|
...others
|
|
21
17
|
} = params;
|
|
22
18
|
|
|
23
|
-
let [ val_wrapID ] = useState( $.uuidGen() );
|
|
24
|
-
let [ val_contentID ] = useState( $.uuidGen() );
|
|
25
|
-
let [ val_open,set_open ] = useState( open );
|
|
19
|
+
let [ val_wrapID ] = React.useState( $.uuidGen() );
|
|
20
|
+
let [ val_contentID ] = React.useState( $.uuidGen() );
|
|
21
|
+
let [ val_open,set_open ] = React.useState( open );
|
|
26
22
|
|
|
27
23
|
if ( val_open != open ) set_open( open );
|
|
28
24
|
|
|
29
25
|
let Query = '[data-accordion-content-id="' + val_contentID + '"]';
|
|
30
26
|
|
|
31
27
|
const mounted = React.useRef( false );
|
|
32
|
-
useEffect( () => {
|
|
28
|
+
React.useEffect( () => {
|
|
33
29
|
let Content = $( Query )[ 0 ];
|
|
34
30
|
if ( Content ) {
|
|
35
31
|
let contentHeight = Content.offsetHeight;
|
|
@@ -45,7 +41,7 @@ const Component: FNC<amotify.mols.Accordion.Params> = ( params ) => {
|
|
|
45
41
|
} )
|
|
46
42
|
}
|
|
47
43
|
},[] );
|
|
48
|
-
useEffect( () => {
|
|
44
|
+
React.useEffect( () => {
|
|
49
45
|
let Wrap = $( '#' + val_wrapID );
|
|
50
46
|
let Content = $( Query )[ 0 ];
|
|
51
47
|
if ( mounted.current ) {
|