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
package/package.json
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amotify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"description": "UI Component for React",
|
|
5
5
|
"main": "dist/launch.js",
|
|
6
6
|
"types": "dist/@types.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"clean
|
|
9
|
-
"clean-dist": "rimraf dist",
|
|
8
|
+
"clean": "rimraf dist",
|
|
10
9
|
"devCDN:webpack": "webpack --mode development --watch",
|
|
11
10
|
"devCDN:server": "nodemon app.js --ignore public --ignore package.json --ignore src --ignore webpack.config.js --ignore tsconfig.json",
|
|
12
11
|
"proCDN:webpack": "webpack --mode production",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"build": "run-p clean-dist allBuild:*",
|
|
16
|
-
"build-types": "run-p clean-dist typesBuild:*",
|
|
17
|
-
"server": "run-p clean-cdn devCDN:*",
|
|
18
|
-
"cdn": "run-p clean-cdn proCDN:*"
|
|
12
|
+
"start": "run-p clean devCDN:*",
|
|
13
|
+
"build": "run-p clean proCDN:*"
|
|
19
14
|
},
|
|
20
15
|
"repository": {
|
|
21
16
|
"type": "git",
|
|
@@ -32,6 +27,12 @@
|
|
|
32
27
|
"url": "https://github.com/IkkoKoyama/amotify/issues"
|
|
33
28
|
},
|
|
34
29
|
"homepage": "https://github.com/IkkoKoyama/amotify#readme",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/react": "^18.2.37",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-dom": "^18.2.0",
|
|
34
|
+
"react-router-dom": "^6.18.0"
|
|
35
|
+
},
|
|
35
36
|
"devDependencies": {
|
|
36
37
|
"@babel/cli": "^7.17.0",
|
|
37
38
|
"@babel/preset-env": "^7.16.11",
|
|
@@ -39,8 +40,7 @@
|
|
|
39
40
|
"@babel/preset-typescript": "^7.16.7",
|
|
40
41
|
"@types/express": "^4.17.13",
|
|
41
42
|
"@types/google.maps": "^3.50.0",
|
|
42
|
-
"@types/react": "^18.
|
|
43
|
-
"@types/react-dom": "^18.0.5",
|
|
43
|
+
"@types/react-dom": "^18.2.15",
|
|
44
44
|
"@types/react-router": "^5.1.20",
|
|
45
45
|
"@types/react-router-dom": "^5.3.3",
|
|
46
46
|
"babel-loader": "^8.2.3",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"sass-loader": "^12.6.0",
|
|
58
58
|
"terser-webpack-plugin": "^5.3.1",
|
|
59
59
|
"ts-loader": "^9.2.8",
|
|
60
|
-
"tsc-alias": "^1.8.8",
|
|
61
60
|
"webpack": "^5.69.1",
|
|
62
61
|
"webpack-bundle-analyzer": "^4.5.0",
|
|
63
62
|
"webpack-cli": "^4.9.2",
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
Grid,
|
|
8
8
|
Paragraph,
|
|
9
9
|
Placeholder
|
|
10
|
-
} from './Various/parts';
|
|
10
|
+
} from './atoms/Various/parts';
|
|
11
11
|
|
|
12
|
-
import { FAIcon } from './FAIcon/parts';
|
|
12
|
+
import { FAIcon } from './atoms/FAIcon/parts';
|
|
13
13
|
|
|
14
|
-
import { Logo } from './Logo/parts';
|
|
14
|
+
import { Logo } from './atoms/Logo/parts';
|
|
15
15
|
|
|
16
16
|
export {
|
|
17
17
|
Flex,
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Effects
|
|
3
|
+
} from './functions/Effects/_';
|
|
4
|
+
|
|
5
|
+
import { Buttons } from './functions/Button/_';
|
|
6
|
+
import { Input } from './functions/Input/_';
|
|
7
|
+
import { Inputs } from './functions/Inputs/_';
|
|
8
|
+
import { Layout } from './functions/Layout/_';
|
|
9
|
+
import { Table } from './functions/Table/_';
|
|
10
|
+
import { Sheet } from './functions/Sheet/parts';
|
|
11
|
+
import { SnackBar } from './functions/SnackBar/parts';
|
|
12
|
+
import { Loader } from './functions/Loader/parts';
|
|
13
|
+
import { Tooltips } from './functions/Tooltips/parts';
|
|
14
|
+
|
|
15
|
+
import { Cropper } from './functions/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
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import * as ReactRouterDOM from 'react-router-dom';
|
|
4
4
|
|
|
5
|
-
import { LaunchReactApplication } from './LaunchReactApplication';
|
|
5
|
+
import { LaunchReactApplication } from './global/LaunchReactApplication';
|
|
6
6
|
|
|
7
7
|
const Inmemory: {
|
|
8
8
|
[ key: string ]: {
|
|
@@ -10,7 +10,7 @@ const Inmemory: {
|
|
|
10
10
|
value: any
|
|
11
11
|
}
|
|
12
12
|
} = {}
|
|
13
|
-
const useStore: amotify.
|
|
13
|
+
const useStore: amotify.global.useStoreParams = {
|
|
14
14
|
set: ( params ) => {
|
|
15
15
|
let {
|
|
16
16
|
key,
|
|
@@ -57,7 +57,7 @@ const useStore: amotify.glob.useStoreParams = {
|
|
|
57
57
|
return true;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
const useRecycle: amotify.
|
|
60
|
+
const useRecycle: amotify.global.useRecycleParams = {
|
|
61
61
|
set: ( key ) => {
|
|
62
62
|
let [ val_recycleID ] = React.useState( $.uuidGen() );
|
|
63
63
|
let [ val_refresh,set_refresh ] = React.useState( $.uuidGen() );
|
|
@@ -90,7 +90,7 @@ const useRecycle: amotify.glob.useRecycleParams = {
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
const pageTransit: amotify.
|
|
93
|
+
const pageTransit: amotify.global.PageTransitParams = {
|
|
94
94
|
open: ( url ) => {
|
|
95
95
|
window.open( url );
|
|
96
96
|
},
|
|
@@ -119,7 +119,7 @@ const pageTransit: amotify.glob.PageTransitParams = {
|
|
|
119
119
|
import {
|
|
120
120
|
ReadStyleSet,
|
|
121
121
|
ToClassName
|
|
122
|
-
} from './styleConverter';
|
|
122
|
+
} from './global/styleConverter';
|
|
123
123
|
|
|
124
124
|
const StyleConverter = {
|
|
125
125
|
ReadStyleSet,
|
|
@@ -128,8 +128,8 @@ const StyleConverter = {
|
|
|
128
128
|
|
|
129
129
|
export {
|
|
130
130
|
React,
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
ReactDOM,
|
|
132
|
+
ReactRouterDOM,
|
|
133
133
|
pageTransit,
|
|
134
134
|
useStore,
|
|
135
135
|
useRecycle,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
Span,
|
|
3
4
|
Box,
|
|
4
5
|
Flex
|
|
5
|
-
} from '
|
|
6
|
-
import { List } from './List';
|
|
7
|
-
import { Accordion } from './Accordion/parts';
|
|
8
|
-
import { LinkifyText } from './LinkifyText/parts';
|
|
6
|
+
} from '@atoms';
|
|
7
|
+
import { List } from './molecules/List';
|
|
8
|
+
import { Accordion } from './molecules/Accordion/parts';
|
|
9
|
+
import { LinkifyText } from './molecules/LinkifyText/parts';
|
|
9
10
|
|
|
10
11
|
const Text = {
|
|
11
12
|
Title: ( params: amotify.atoms.BoxInput ) => ( <Box
|
package/src/@styles/init.scss
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import {
|
|
4
3
|
Box
|
|
5
4
|
} from '../Various/parts';
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
import style from './style.module.scss';
|
|
7
|
+
|
|
8
|
+
const FaIconComp: React.FC<amotify.atoms.FAIcon.FAIconFNC> = ( params ) => {
|
|
8
9
|
let {
|
|
9
10
|
iconAnimation = false,
|
|
10
11
|
iconFamily,
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import {
|
|
2
3
|
StyleConverter
|
|
3
|
-
} from '
|
|
4
|
+
} from '@global';
|
|
4
5
|
|
|
5
6
|
import { publicURI } from '../../launch';
|
|
6
7
|
|
|
7
8
|
import style from './style.module.scss';
|
|
8
9
|
|
|
9
|
-
export const Box:
|
|
10
|
+
export const Box: React.FC<amotify.atoms.BoxInput> = ( params ) => {
|
|
10
11
|
let {
|
|
11
12
|
freeCSS,
|
|
12
13
|
...Params
|
|
13
14
|
} = StyleConverter.ToClassName( params );
|
|
14
15
|
return ( <div { ...Params } /> );
|
|
15
16
|
}
|
|
16
|
-
export const Span:
|
|
17
|
+
export const Span: React.FC<amotify.atoms.SpanProps> = ( params ) => {
|
|
17
18
|
let {
|
|
18
19
|
freeCSS,
|
|
19
20
|
...Params
|
|
@@ -21,7 +22,7 @@ export const Span: FNC<amotify.atoms.SpanProps> = ( params ) => {
|
|
|
21
22
|
return ( <span { ...Params } /> );
|
|
22
23
|
}
|
|
23
24
|
|
|
24
|
-
export const Placeholder:
|
|
25
|
+
export const Placeholder: React.FC<amotify.atoms.PlaceholderParams> = ( params ) => {
|
|
25
26
|
let {
|
|
26
27
|
color = 'cloud',
|
|
27
28
|
...others
|
|
@@ -54,7 +55,7 @@ export const Placeholder: FNC<amotify.atoms.PlaceholderParams> = ( params ) => {
|
|
|
54
55
|
|
|
55
56
|
let Img: amotify.atoms.Image.Methods = {} as any;
|
|
56
57
|
{
|
|
57
|
-
const ImageComp:
|
|
58
|
+
const ImageComp: React.FC<amotify.atoms.Image.CompInput> = ( params ) => {
|
|
58
59
|
let {
|
|
59
60
|
src = '',
|
|
60
61
|
alt = '',
|
|
@@ -111,7 +112,7 @@ let Img: amotify.atoms.Image.Methods = {} as any;
|
|
|
111
112
|
}
|
|
112
113
|
export { Img }
|
|
113
114
|
|
|
114
|
-
export const Flex:
|
|
115
|
+
export const Flex: React.FC<amotify.atoms.FlexProps> = ( props ) => {
|
|
115
116
|
let {
|
|
116
117
|
children,
|
|
117
118
|
freeCSS,
|
|
@@ -131,13 +132,13 @@ export const Flex: FNC<amotify.atoms.FlexProps> = ( props ) => {
|
|
|
131
132
|
/> );
|
|
132
133
|
}
|
|
133
134
|
|
|
134
|
-
export const FlexBr:
|
|
135
|
+
export const FlexBr: React.FC<amotifyUniStyleParams> = ( params ) => ( <Box
|
|
135
136
|
width={ 1 }
|
|
136
137
|
flexSizing='none'
|
|
137
138
|
{ ...params }
|
|
138
139
|
/> );
|
|
139
140
|
|
|
140
|
-
export const Grid:
|
|
141
|
+
export const Grid: React.FC<amotify.atoms.GridProps> = ( props ) => {
|
|
141
142
|
let {
|
|
142
143
|
children,
|
|
143
144
|
freeCSS,
|
|
@@ -154,4 +155,4 @@ export const Grid: FNC<amotify.atoms.GridProps> = ( props ) => {
|
|
|
154
155
|
/> );
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
export const Paragraph:
|
|
158
|
+
export const Paragraph: React.FC<amotify.atoms.ParagraphProps> = ( props ) => ( <p { ...StyleConverter.ToClassName( props ) } /> )
|
package/src/config.tsx
CHANGED
|
@@ -58,7 +58,7 @@ export const defaultConfig: amotify.config.Methods = {
|
|
|
58
58
|
SetThemeColorTag();
|
|
59
59
|
} );
|
|
60
60
|
|
|
61
|
-
amotify.
|
|
61
|
+
amotify.global.useRecycle.do( 'RootViewController' );
|
|
62
62
|
},
|
|
63
63
|
themeColor: ( value ) => {
|
|
64
64
|
if ( ![
|
|
@@ -77,7 +77,7 @@ export const defaultConfig: amotify.config.Methods = {
|
|
|
77
77
|
.callback( () => {
|
|
78
78
|
SetThemeColorTag();
|
|
79
79
|
} );
|
|
80
|
-
amotify.
|
|
80
|
+
amotify.global.useRecycle.do( 'RootViewController' );
|
|
81
81
|
},
|
|
82
82
|
darkMode: ( value ) => {
|
|
83
83
|
if ( ![ 'light','dark','dim','auto' ].includes( value ) ) value = 'light';
|
|
@@ -95,14 +95,14 @@ export const defaultConfig: amotify.config.Methods = {
|
|
|
95
95
|
.removeClass( body.findClass( /^bdsDM/ ) )
|
|
96
96
|
.addClass( 'bdsDM_' + Value );
|
|
97
97
|
|
|
98
|
-
amotify.
|
|
98
|
+
amotify.global.useRecycle.do( 'RootViewController' );
|
|
99
99
|
},
|
|
100
100
|
roundness: ( value ) => {
|
|
101
101
|
if ( !( value >= 0 && value <= 5 ) ) value = 2;
|
|
102
102
|
if ( value == amotify.config.roundness ) return;
|
|
103
103
|
|
|
104
104
|
amotify.config.roundness = value;
|
|
105
|
-
amotify.
|
|
105
|
+
amotify.global.useRecycle.do( 'RootViewController' );
|
|
106
106
|
},
|
|
107
107
|
},
|
|
108
108
|
readExtraCDN: async ( key ) => {
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useStore
|
|
3
|
-
|
|
2
|
+
useStore,
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
4
5
|
import {
|
|
5
6
|
Box,
|
|
6
7
|
Flex,
|
|
7
8
|
FAIcon
|
|
8
|
-
} from '
|
|
9
|
+
} from '@atoms';
|
|
9
10
|
import {
|
|
10
11
|
Column,
|
|
11
12
|
Row,
|
|
12
13
|
Text
|
|
13
|
-
} from '
|
|
14
|
+
} from '@mols';
|
|
14
15
|
|
|
15
16
|
import {
|
|
16
17
|
Buttons,
|
|
17
18
|
Input,
|
|
18
19
|
Sheet,
|
|
19
20
|
Loader
|
|
20
|
-
} from '
|
|
21
|
-
|
|
22
|
-
const {
|
|
23
|
-
useState,
|
|
24
|
-
useEffect,
|
|
25
|
-
} = React;
|
|
21
|
+
} from '@fn';
|
|
26
22
|
|
|
27
23
|
import style from './style.module.scss';
|
|
28
24
|
|
|
@@ -566,8 +562,8 @@ class CroppImage {
|
|
|
566
562
|
}
|
|
567
563
|
|
|
568
564
|
const Comps: {
|
|
569
|
-
Core:
|
|
570
|
-
SettingRegion:
|
|
565
|
+
Core: React.FC<CoreProps>
|
|
566
|
+
SettingRegion: React.FC<{
|
|
571
567
|
DefaultOptions: plainObject
|
|
572
568
|
val_scale: number
|
|
573
569
|
set_scale: React.Dispatch<React.SetStateAction<number>>
|
|
@@ -591,7 +587,7 @@ const Comps: {
|
|
|
591
587
|
develops = []
|
|
592
588
|
} = options;
|
|
593
589
|
|
|
594
|
-
let [ val_componentID ] = useState( $.uuidGen( 32 ) );
|
|
590
|
+
let [ val_componentID ] = React.useState( $.uuidGen( 32 ) );
|
|
595
591
|
|
|
596
592
|
const DefaultOptions = {
|
|
597
593
|
scale: {
|
|
@@ -604,12 +600,12 @@ const Comps: {
|
|
|
604
600
|
tone: 0
|
|
605
601
|
}
|
|
606
602
|
|
|
607
|
-
let [ val_scale,set_scale ] = useState( DefaultOptions.scale.default );
|
|
608
|
-
let [ val_rotate,set_rotate ] = useState( DefaultOptions.rotate )
|
|
609
|
-
let [ val_grayScale,set_grayScale ] = useState( DefaultOptions.grayScale );
|
|
610
|
-
let [ val_tone,set_tone ] = useState( DefaultOptions.tone );
|
|
603
|
+
let [ val_scale,set_scale ] = React.useState( DefaultOptions.scale.default );
|
|
604
|
+
let [ val_rotate,set_rotate ] = React.useState( DefaultOptions.rotate )
|
|
605
|
+
let [ val_grayScale,set_grayScale ] = React.useState( DefaultOptions.grayScale );
|
|
606
|
+
let [ val_tone,set_tone ] = React.useState( DefaultOptions.tone );
|
|
611
607
|
|
|
612
|
-
useEffect( () => {
|
|
608
|
+
React.useEffect( () => {
|
|
613
609
|
useStore.set( {
|
|
614
610
|
key: val_componentID,
|
|
615
611
|
value: {}
|
|
@@ -747,13 +743,13 @@ const Comps: {
|
|
|
747
743
|
},1000 );
|
|
748
744
|
} )();
|
|
749
745
|
},[ val_file.id ] );
|
|
750
|
-
useEffect( () => {
|
|
746
|
+
React.useEffect( () => {
|
|
751
747
|
let Instance: CroppImage = useStore.get( val_componentID )?.Instance;
|
|
752
748
|
if ( Instance ) {
|
|
753
749
|
Instance.updateScale( val_scale );
|
|
754
750
|
}
|
|
755
751
|
},[ val_scale ] );
|
|
756
|
-
useEffect( () => {
|
|
752
|
+
React.useEffect( () => {
|
|
757
753
|
let Instance: CroppImage = useStore.get( val_componentID )?.Instance;
|
|
758
754
|
if ( Instance ) {
|
|
759
755
|
Instance.updateFilter( {
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
React
|
|
3
|
-
} from '
|
|
3
|
+
} from '@global';
|
|
4
4
|
import {
|
|
5
5
|
Box
|
|
6
|
-
} from '
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
useState,
|
|
10
|
-
useEffect
|
|
11
|
-
} = React;
|
|
6
|
+
} from '@atoms';
|
|
12
7
|
|
|
13
8
|
export const FadeEffects: amotify.fn.Effects.Methods = {
|
|
14
9
|
...{} as any,
|
|
@@ -19,9 +14,9 @@ export const FadeEffects: amotify.fn.Effects.Methods = {
|
|
|
19
14
|
componentID = $.uuidGen(),
|
|
20
15
|
...others
|
|
21
16
|
} = params;
|
|
22
|
-
let [ val_componentID ] = useState( componentID );
|
|
17
|
+
let [ val_componentID ] = React.useState( componentID );
|
|
23
18
|
|
|
24
|
-
useEffect( () => {
|
|
19
|
+
React.useEffect( () => {
|
|
25
20
|
setTimeout( () => {
|
|
26
21
|
let Element = $( '[data-component-id="' + val_componentID + '"]' );
|
|
27
22
|
if ( !Element[ 0 ] ) return;
|
|
@@ -51,9 +46,9 @@ export const FadeEffects: amotify.fn.Effects.Methods = {
|
|
|
51
46
|
componentID = $.uuidGen(),
|
|
52
47
|
...others
|
|
53
48
|
} = params;
|
|
54
|
-
let [ val_componentID ] = useState( componentID );
|
|
49
|
+
let [ val_componentID ] = React.useState( componentID );
|
|
55
50
|
|
|
56
|
-
useEffect( () => {
|
|
51
|
+
React.useEffect( () => {
|
|
57
52
|
setTimeout( () => {
|
|
58
53
|
let Element = $( '[data-component-id="' + val_componentID + '"]' );
|
|
59
54
|
if ( !Element[ 0 ] ) return;
|
|
@@ -1,28 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useRecycle,
|
|
3
2
|
useStore,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
useEffect,
|
|
7
|
-
useState
|
|
8
|
-
} = React;
|
|
3
|
+
React
|
|
4
|
+
} from '@global';
|
|
9
5
|
import {
|
|
10
6
|
Box,
|
|
11
7
|
Flex,
|
|
12
8
|
FAIcon,
|
|
13
9
|
Span
|
|
14
|
-
} from '
|
|
10
|
+
} from '@atoms';
|
|
15
11
|
import {
|
|
16
12
|
Column,
|
|
17
13
|
Row,
|
|
18
14
|
Text
|
|
19
|
-
} from '
|
|
15
|
+
} from '@mols';
|
|
20
16
|
import {
|
|
21
17
|
Input,
|
|
22
18
|
Buttons,
|
|
23
19
|
Loader,
|
|
24
20
|
Sheet
|
|
25
|
-
} from '
|
|
21
|
+
} from '@fn';
|
|
26
22
|
|
|
27
23
|
import style from './style.module.scss';
|
|
28
24
|
|
|
@@ -39,16 +35,16 @@ const Selector = ( params: {
|
|
|
39
35
|
onDynamicSearch?: amotify.fn.Input.Chips.onDynamicSearch
|
|
40
36
|
} ) => {
|
|
41
37
|
type StatusTypes = 'show' | 'interlude';
|
|
42
|
-
let [ val_status,set_status ] = useState( 'show' as StatusTypes );
|
|
43
|
-
let [ val_keyword,set_keyword ] = useState( '' );
|
|
44
|
-
let [ val_componentID ] = useState( $.uuidGen() );
|
|
38
|
+
let [ val_status,set_status ] = React.useState( 'show' as StatusTypes );
|
|
39
|
+
let [ val_keyword,set_keyword ] = React.useState( '' );
|
|
40
|
+
let [ val_componentID ] = React.useState( $.uuidGen() );
|
|
45
41
|
|
|
46
|
-
let [ val_options,set_options ] = useState( params.options );
|
|
47
|
-
let [ val_focus,set_focus ] = useState( val_options[ 0 ] || null );
|
|
48
|
-
let [ val_selected,set_selected ] = useState( params.selected );
|
|
49
|
-
let [ val_keyEvent,set_keyEvent ] = useState( 'init' );
|
|
42
|
+
let [ val_options,set_options ] = React.useState( params.options );
|
|
43
|
+
let [ val_focus,set_focus ] = React.useState( val_options[ 0 ] || null );
|
|
44
|
+
let [ val_selected,set_selected ] = React.useState( params.selected );
|
|
45
|
+
let [ val_keyEvent,set_keyEvent ] = React.useState( 'init' );
|
|
50
46
|
|
|
51
|
-
useEffect( () => {
|
|
47
|
+
React.useEffect( () => {
|
|
52
48
|
useStore.set( {
|
|
53
49
|
key: params.selectorID,
|
|
54
50
|
value: {
|
|
@@ -62,7 +58,7 @@ const Selector = ( params: {
|
|
|
62
58
|
} );
|
|
63
59
|
},[] );
|
|
64
60
|
const mountedOptions = React.useRef( false );
|
|
65
|
-
useEffect( () => {
|
|
61
|
+
React.useEffect( () => {
|
|
66
62
|
if ( mountedOptions.current ) {
|
|
67
63
|
Sheet.reposition( params.selectorID );
|
|
68
64
|
} else {
|
|
@@ -70,7 +66,7 @@ const Selector = ( params: {
|
|
|
70
66
|
}
|
|
71
67
|
},[ val_options ] );
|
|
72
68
|
const mountedKeyword = React.useRef( false );
|
|
73
|
-
useEffect( () => {
|
|
69
|
+
React.useEffect( () => {
|
|
74
70
|
if ( mountedKeyword.current ) {
|
|
75
71
|
set_status( 'interlude' );
|
|
76
72
|
set_focus( val_options[ 0 ] || null );
|
|
@@ -111,7 +107,7 @@ const Selector = ( params: {
|
|
|
111
107
|
}
|
|
112
108
|
},[ val_keyword ] );
|
|
113
109
|
const mountedSelected = React.useRef( false );
|
|
114
|
-
useEffect( () => {
|
|
110
|
+
React.useEffect( () => {
|
|
115
111
|
if ( mountedSelected.current ) {
|
|
116
112
|
params.onUpdated( {
|
|
117
113
|
values: val_selected
|
|
@@ -120,7 +116,7 @@ const Selector = ( params: {
|
|
|
120
116
|
mountedSelected.current = true;
|
|
121
117
|
}
|
|
122
118
|
},[ val_selected ] );
|
|
123
|
-
useEffect( () => {
|
|
119
|
+
React.useEffect( () => {
|
|
124
120
|
$.fnScope( () => {
|
|
125
121
|
if ( $.is.nullish( val_focus ) ) return;
|
|
126
122
|
if ( val_keyEvent == 'MouseEvent' ) return;
|