amotify 0.1.3 → 0.1.6

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 (96) hide show
  1. package/bundler.ts +10 -7
  2. package/dist/@declaration/_.js +3 -0
  3. package/dist/@declaration/amotify.d.ts +2 -3
  4. package/dist/@declaration/amotify.js +2 -0
  5. package/dist/@declaration/module.js +1 -0
  6. package/dist/@declaration/property.js +2 -0
  7. package/dist/@middleware/GenerateClassName.d.ts +3 -0
  8. package/dist/@middleware/GenerateClassName.js +282 -0
  9. package/dist/@middleware/_.d.ts +23 -0
  10. package/dist/@middleware/_.js +131 -0
  11. package/dist/@middleware/color.d.ts +21 -0
  12. package/dist/@middleware/color.js +99 -0
  13. package/dist/@middleware/pageTransit.d.ts +2 -0
  14. package/dist/@middleware/pageTransit.js +31 -0
  15. package/dist/@middleware/useRecycle.d.ts +2 -0
  16. package/dist/@middleware/useRecycle.js +43 -0
  17. package/dist/@middleware/useStore.d.ts +2 -0
  18. package/dist/@middleware/useStore.js +39 -0
  19. package/dist/{config.d.ts → @middleware/userAgent.d.ts} +1 -6
  20. package/dist/@middleware/userAgent.js +36 -0
  21. package/dist/atoms/Box/index.d.ts +9 -0
  22. package/dist/atoms/Box/index.js +19 -0
  23. package/dist/atoms/index.d.ts +4 -0
  24. package/dist/atoms/index.js +25 -0
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.js +17 -0
  27. package/package.json +37 -47
  28. package/tsconfig.json +64 -20
  29. package/dist/@atoms.d.ts +0 -4
  30. package/dist/@functions.d.ts +0 -12
  31. package/dist/@global.d.ts +0 -23
  32. package/dist/@globalJsmin.d.ts +0 -4
  33. package/dist/@jsminAmotifyExtension/_.d.ts +0 -3
  34. package/dist/@jsminAmotifyExtension/formCollect.d.ts +0 -1
  35. package/dist/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
  36. package/dist/@jsminAmotifyExtension/variables.d.ts +0 -1
  37. package/dist/@molecules.d.ts +0 -23
  38. package/dist/@organisms.d.ts +0 -1
  39. package/dist/@templates.d.ts +0 -1
  40. package/dist/@variables.d.ts +0 -9
  41. package/dist/amotify.d.ts +0 -12
  42. package/dist/amotify.min.css +0 -1
  43. package/dist/amotify.min.js +0 -929
  44. package/dist/atoms/FAI/parts.d.ts +0 -3
  45. package/dist/atoms/Logo/parts.d.ts +0 -2
  46. package/dist/atoms/Various/parts.d.ts +0 -11
  47. package/dist/fin.d.ts +0 -1
  48. package/dist/functions/Button/_.d.ts +0 -2
  49. package/dist/functions/Cropper/parts.d.ts +0 -2
  50. package/dist/functions/Effects/Fade.d.ts +0 -2
  51. package/dist/functions/Effects/Ripple.d.ts +0 -1
  52. package/dist/functions/Effects/_.d.ts +0 -4
  53. package/dist/functions/Input/Chips/Selector.d.ts +0 -2
  54. package/dist/functions/Input/Chips/_.d.ts +0 -3
  55. package/dist/functions/Input/Contenteditable.d.ts +0 -4
  56. package/dist/functions/Input/DigitCharacters.d.ts +0 -4
  57. package/dist/functions/Input/File/_.d.ts +0 -3
  58. package/dist/functions/Input/Hidden.d.ts +0 -3
  59. package/dist/functions/Input/List/_.d.ts +0 -4
  60. package/dist/functions/Input/RichSelect/_.d.ts +0 -4
  61. package/dist/functions/Input/Segmented/_.d.ts +0 -2
  62. package/dist/functions/Input/Select/_.d.ts +0 -4
  63. package/dist/functions/Input/Slider/_.d.ts +0 -4
  64. package/dist/functions/Input/Switch/_.d.ts +0 -4
  65. package/dist/functions/Input/Text.d.ts +0 -8
  66. package/dist/functions/Input/TextArea.d.ts +0 -4
  67. package/dist/functions/Input/Time/Picker.d.ts +0 -4
  68. package/dist/functions/Input/Time/_.d.ts +0 -5
  69. package/dist/functions/Input/_.d.ts +0 -6
  70. package/dist/functions/Input/core.d.ts +0 -36
  71. package/dist/functions/Inputs/_.d.ts +0 -4
  72. package/dist/functions/Inputs/text.d.ts +0 -3
  73. package/dist/functions/Layout/PageNotFound.d.ts +0 -2
  74. package/dist/functions/Layout/PageRouter.d.ts +0 -4
  75. package/dist/functions/Layout/PageViewController/parts.d.ts +0 -4
  76. package/dist/functions/Layout/Plate.d.ts +0 -3
  77. package/dist/functions/Layout/RootViewController/parts.d.ts +0 -2
  78. package/dist/functions/Layout/SwipeView/parts.d.ts +0 -5
  79. package/dist/functions/Layout/TabBar.d.ts +0 -4
  80. package/dist/functions/Layout/_.d.ts +0 -3
  81. package/dist/functions/Loader/corner.d.ts +0 -3
  82. package/dist/functions/Loader/mini.d.ts +0 -7
  83. package/dist/functions/Loader/parts.d.ts +0 -4
  84. package/dist/functions/Loader/top.d.ts +0 -3
  85. package/dist/functions/Sheet/parts.d.ts +0 -3
  86. package/dist/functions/SnackBar/parts.d.ts +0 -3
  87. package/dist/functions/Table/Data/parts.d.ts +0 -6
  88. package/dist/functions/Table/Drag/parts.d.ts +0 -4
  89. package/dist/functions/Table/Normal/parts.d.ts +0 -3
  90. package/dist/functions/Table/_.d.ts +0 -10
  91. package/dist/functions/Tooltips/parts.d.ts +0 -3
  92. package/dist/global/LaunchReactApplication.d.ts +0 -3
  93. package/dist/global/styleConverter.d.ts +0 -3
  94. package/dist/molecules/Accordion/parts.d.ts +0 -3
  95. package/dist/molecules/LinkifyText/parts.d.ts +0 -3
  96. package/dist/molecules/List.d.ts +0 -3
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pageTransit = void 0;
4
+ const useStore_1 = require("./useStore");
5
+ exports.pageTransit = {
6
+ open: (url) => {
7
+ window.open(url);
8
+ },
9
+ pushSync: (url) => {
10
+ window.location.href = url;
11
+ },
12
+ pushAsync: (url) => {
13
+ if (url.match(/https?:\/\//)) {
14
+ exports.pageTransit.pushSync(url);
15
+ return;
16
+ }
17
+ let navigate = useStore_1.useStore.get('navigate');
18
+ navigate(url);
19
+ },
20
+ push: (url, newTab) => {
21
+ if (newTab) {
22
+ exports.pageTransit.open(url);
23
+ return;
24
+ }
25
+ exports.pageTransit.pushAsync(url);
26
+ },
27
+ back: () => {
28
+ let navigate = useStore_1.useStore.get('navigate');
29
+ navigate(-1);
30
+ },
31
+ };
@@ -0,0 +1,2 @@
1
+ import { global } from '../@declaration/_';
2
+ export declare const useRecycle: global.useRecycleParams;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.useRecycle = void 0;
7
+ const _1 = require("./_");
8
+ const useStore_1 = require("./useStore");
9
+ const react_1 = __importDefault(require("react"));
10
+ exports.useRecycle = {
11
+ set: (key) => {
12
+ var _a;
13
+ let [val_recycleID] = react_1.default.useState(_1.$.uuid.gen());
14
+ let [val_refresh, set_refresh] = react_1.default.useState(_1.$.uuid.gen());
15
+ useStore_1.useStore.set({
16
+ key: 'RecycleKey_' + val_recycleID,
17
+ value: () => {
18
+ set_refresh(_1.$.uuid.gen());
19
+ }
20
+ });
21
+ useStore_1.useStore.update({
22
+ key: 'RecycleKeys_' + key,
23
+ value: {
24
+ keys: [
25
+ ...((_a = useStore_1.useStore.get('RecycleKeys_' + key)) === null || _a === void 0 ? void 0 : _a.keys) || [],
26
+ val_recycleID
27
+ ]
28
+ }
29
+ });
30
+ return val_refresh;
31
+ },
32
+ do: (key) => {
33
+ var _a;
34
+ let Keys = ((_a = useStore_1.useStore.get('RecycleKeys_' + key)) === null || _a === void 0 ? void 0 : _a.keys) || [];
35
+ if (!Keys.length)
36
+ return;
37
+ for (let key of Keys) {
38
+ let receiver = useStore_1.useStore.get('RecycleKey_' + key);
39
+ if (receiver)
40
+ receiver();
41
+ }
42
+ }
43
+ };
@@ -0,0 +1,2 @@
1
+ import { global } from '../@declaration/_';
2
+ export declare const useStore: global.useStoreParams;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useStore = void 0;
4
+ const Inmemory = {};
5
+ exports.useStore = {
6
+ set: (params) => {
7
+ let { key, value, privateKey } = params;
8
+ let Prev = Inmemory[key] || {};
9
+ if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
10
+ return false;
11
+ Inmemory[key] = {
12
+ privateKey,
13
+ value
14
+ };
15
+ return true;
16
+ },
17
+ update: (params) => {
18
+ var _a;
19
+ let { key, value, privateKey } = params;
20
+ let Prev = Inmemory[key] || {};
21
+ if (Prev && Prev.privateKey && Prev.privateKey != privateKey)
22
+ return false;
23
+ Inmemory[key] = Object.assign(Object.assign({}, Inmemory[key]), { value: Object.assign(Object.assign({}, (_a = Inmemory[key]) === null || _a === void 0 ? void 0 : _a.value), value) });
24
+ return true;
25
+ },
26
+ get: (key, privateKey) => {
27
+ let Data = Inmemory[key];
28
+ if (Data && Data.privateKey && Data.privateKey != privateKey)
29
+ return void 0;
30
+ return Data === null || Data === void 0 ? void 0 : Data.value;
31
+ },
32
+ delete: (key, privateKey) => {
33
+ let Data = Inmemory[key];
34
+ if (Data && Data.privateKey && Data.privateKey != privateKey)
35
+ return false;
36
+ delete Inmemory[key];
37
+ return true;
38
+ }
39
+ };
@@ -1,7 +1,4 @@
1
- import { Device, Browser, config } from '@declaration';
2
- export declare const script: HTMLOrSVGScriptElement | null;
3
- export declare const fileName: string | null | undefined;
4
- export declare const Version: string;
1
+ import { Device, Browser } from '../@declaration/_';
5
2
  export declare const userAgent: string;
6
3
  export declare const deviceType: Device;
7
4
  export declare const browserType: Browser;
@@ -15,5 +12,3 @@ export declare const deviceIdentifier: () => {
15
12
  isBreakpoint: () => boolean;
16
13
  isPhonepoint: () => boolean;
17
14
  };
18
- export declare const SetThemeColorTag: () => void;
19
- export declare const defaultConfig: config.Methods;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deviceIdentifier = exports.browserType = exports.deviceType = exports.userAgent = void 0;
4
+ exports.userAgent = window.navigator.userAgent.toLowerCase();
5
+ exports.deviceType = exports.userAgent.indexOf("windows nt") !== -1 ? 'windows'
6
+ : exports.userAgent.indexOf("android") !== -1 ? 'android'
7
+ : exports.userAgent.indexOf("iphone") !== -1 ? 'iPhone'
8
+ : exports.userAgent.indexOf("ipad") > -1 || (exports.userAgent.indexOf("macintosh") > -1 && "ontouchend" in document) ? 'iPad'
9
+ : exports.userAgent.indexOf("mac os x") !== -1 ? 'macOSX'
10
+ : 'undefined';
11
+ exports.browserType = exports.userAgent.indexOf("msie") !== -1 || exports.userAgent.indexOf("trident") !== -1 ? 'ie'
12
+ : exports.userAgent.indexOf("edge") !== -1 ? 'edge'
13
+ : exports.userAgent.indexOf("chrome") !== -1 ? 'chrome'
14
+ : exports.userAgent.indexOf("safari") !== -1 ? 'safari'
15
+ : exports.userAgent.indexOf("firefox") !== -1 ? 'firefox'
16
+ : exports.userAgent.indexOf("opera") !== -1 || exports.userAgent.indexOf("opr") !== -1 ? 'opera'
17
+ : 'undefined';
18
+ const deviceIdentifier = () => {
19
+ let info = {
20
+ deviceIs: exports.deviceType,
21
+ browserIs: exports.browserType,
22
+ isTouchDevice: window.ontouchstart !== undefined && 0 < navigator.maxTouchPoints,
23
+ isPhone: ['Android', 'iPhone'].includes(exports.deviceType),
24
+ isIOS: ['iPhone', 'iPad'].includes(exports.deviceType),
25
+ isSystemDarkmode: () => {
26
+ return window.matchMedia('(prefers-color-scheme: dark)').matches == true;
27
+ },
28
+ isBreakpoint: () => {
29
+ // if (getInstance().config.)
30
+ return window.innerWidth <= 834;
31
+ },
32
+ isPhonepoint: () => window.innerWidth <= 690
33
+ };
34
+ return info;
35
+ };
36
+ exports.deviceIdentifier = deviceIdentifier;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TagProps, ReactElement } from '../../@declaration/_';
3
+ import { React } from '../../@middleware/_';
4
+ type BoxInput = TagProps.BasicElement & {
5
+ children?: ReactElement;
6
+ } & React.HTMLAttributes<HTMLDivElement>;
7
+ declare const Box: React.FC<BoxInput>;
8
+ export default Box;
9
+ export { BoxInput };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __rest = (this && this.__rest) || function (s, e) {
3
+ var t = {};
4
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
+ t[p] = s[p];
6
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
+ t[p[i]] = s[p[i]];
10
+ }
11
+ return t;
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ const _1 = require("../../@middleware/_");
15
+ const Box = (params) => {
16
+ let _a = (0, _1.GenerateClassName)(params), { freeCSS } = _a, Params = __rest(_a, ["freeCSS"]);
17
+ return _1.React.createElement("div", Object.assign({}, Params));
18
+ };
19
+ exports.default = Box;
@@ -0,0 +1,4 @@
1
+ export { default as Box } from './Box';
2
+ export * from './Box';
3
+ declare let test: string;
4
+ export { test };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ var __importDefault = (this && this.__importDefault) || function (mod) {
17
+ return (mod && mod.__esModule) ? mod : { "default": mod };
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ exports.test = exports.Box = void 0;
21
+ var Box_1 = require("./Box");
22
+ Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return __importDefault(Box_1).default; } });
23
+ __exportStar(require("./Box"), exports);
24
+ let test = 'test';
25
+ exports.test = test;
@@ -0,0 +1 @@
1
+ export * from './atoms/index';
package/dist/index.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./atoms/index"), exports);
package/package.json CHANGED
@@ -1,24 +1,35 @@
1
1
  {
2
2
  "name": "amotify",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "UI FW for React",
5
- "main": "dist/amotify.min.js",
6
- "types": "dist/amotify.d.ts",
5
+ "main": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./atoms": {
13
+ "types": "./dist/atoms/index.d.ts",
14
+ "import": "./dist/atoms/index.js"
15
+ },
16
+ "./atoms/Box": {
17
+ "types": "./dist/atoms/Box/index.d.ts",
18
+ "import": "./dist/atoms//Box/index.js"
19
+ }
20
+ },
7
21
  "scripts": {
8
22
  "clean": "rimraf dist",
9
- "devCDN:webpack": "webpack --mode development --watch",
10
- "devCDN:server": "nodemon app.js",
11
- "proCDN:webpack": "webpack --mode production",
12
- "build": "run-p clean proCDN:*",
13
-
14
- "start": "run-p clean build:*",
15
-
23
+ "start": "run-p clean start:*",
24
+ "build": "run-p clean pro:*",
25
+ "_pro:webpack": "webpack --mode production",
16
26
  "_start:webpack": "webpack --mode development --watch",
17
-
18
- "build:component": "npx ts-node bundler.ts",
19
- "build:component_watch": "nodemon --watch src --ext tsx --ext scss --exec \"npx ts-node bundler.ts\"",
20
- "build:declaration": "npx tsc --declaration --emitDeclarationOnly --skipLibCheck --declarationDir './dist'",
21
- "build:declaration_watch": "nodemon --watch src --ext tsx --exec \"npx tsc --emitDeclarationOnly\""
27
+ "_start:component": "npx ts-node bundler.ts",
28
+ "_start:component_watch": "nodemon --watch @src --ext tsx,scss --exec \"npx ts-node bundler.ts\"",
29
+ "start:compile": "npx tsc --declaration --skipLibCheck --declarationDir './dist'",
30
+ "start:compile_watch": "nodemon --watch @src --ext tsx,scss --exec \"npx tsc\"",
31
+ "_start:declaration": "npx tsc --declaration --emitDeclarationOnly --skipLibCheck --declarationDir './dist'",
32
+ "_start:declaration_watch": "nodemon --watch @src --ext tsx --exec \"npx tsc --emitDeclarationOnly\""
22
33
  },
23
34
  "repository": {
24
35
  "type": "git",
@@ -36,46 +47,16 @@
36
47
  },
37
48
  "homepage": "https://github.com/IkkoKoyama/amotify#readme",
38
49
  "dependencies": {
39
- "@fortawesome/fontawesome-common-types": "^6.5.1",
40
- "@fortawesome/fontawesome-svg-core": "^6.4.2",
41
- "@fortawesome/free-brands-svg-icons": "^6.4.2",
42
- "@fortawesome/free-regular-svg-icons": "^6.5.1",
43
- "@fortawesome/free-solid-svg-icons": "^6.5.1",
44
- "@fortawesome/react-fontawesome": "^0.2.0",
45
- "@types/express": "^4.17.21",
46
- "@types/google.maps": "^3.54.8",
47
- "@types/react": "^18.3.1",
48
- "@types/react-dom": "^18.3.0",
49
- "css-loader": "^6.8.1",
50
- "esbuild-sass-plugin": "^3.2.0",
51
- "glob": "^10.3.12",
52
- "mingoo.jsmin": "^0.0.3",
53
- "postcss-modules": "^6.0.0",
54
- "react": "^18.3.1",
55
- "react-dom": "^18.3.1",
56
- "react-router-dom": "^6.23.0",
57
- "ts-node": "^10.9.2"
58
- },
59
- "devDependencies": {
60
- "esbuild": "^0.20.2",
61
- "nodemon": "^3.1.0",
62
- "npm-run-all": "^4.1.5",
63
- "prop-types": "^15.8.1",
64
- "ts-loader": "^9.5.1",
65
- "typescript": "^5.4.5",
66
-
67
50
  "@babel/cli": "^7.23.0",
68
51
  "@babel/preset-env": "^7.23.3",
69
52
  "@babel/preset-react": "^7.23.3",
70
53
  "@babel/preset-typescript": "^7.23.3",
71
54
  "@fortawesome/fontawesome-common-types": "^6.5.1",
72
55
  "@fortawesome/fontawesome-svg-core": "^6.4.2",
73
- "@fortawesome/free-brands-svg-icons": "^6.4.2",
74
- "@fortawesome/free-regular-svg-icons": "^6.5.1",
75
56
  "@fortawesome/free-solid-svg-icons": "^6.5.1",
76
57
  "@fortawesome/react-fontawesome": "^0.2.0",
58
+ "@mingoo/jsmin": "^0.0.1",
77
59
  "@types/express": "^4.17.21",
78
- "@types/google.maps": "^3.54.8",
79
60
  "@types/react": "^18.3.1",
80
61
  "@types/react-dom": "^18.3.0",
81
62
  "babel-loader": "^9.1.3",
@@ -83,16 +64,25 @@
83
64
  "browser-sync-webpack-plugin": "^2.3.0",
84
65
  "css-loader": "^6.8.1",
85
66
  "dotenv": "^16.3.1",
67
+ "esbuild": "^0.20.2",
68
+ "esbuild-sass-plugin": "^3.2.0",
86
69
  "esbuild-scss-modules-plugin": "^1.1.1",
87
70
  "express": "^4.18.2",
88
- "mingoo.jsmin": "^0.0.2",
71
+ "glob": "^10.3.12",
89
72
  "mini-css-extract-plugin": "^2.7.6",
73
+ "nodemon": "^3.1.0",
74
+ "npm-run-all": "^4.1.5",
75
+ "postcss-modules": "^6.0.0",
76
+ "prop-types": "^15.8.1",
90
77
  "react": "^18.3.1",
91
78
  "react-dom": "^18.3.1",
92
79
  "react-router-dom": "^6.23.0",
93
80
  "sass": "^1.69.5",
94
81
  "sass-loader": "^13.3.2",
95
82
  "terser-webpack-plugin": "^5.3.9",
83
+ "ts-loader": "^9.5.1",
84
+ "ts-node": "^10.9.2",
85
+ "typescript": "^5.4.5",
96
86
  "webpack": "^5.89.0",
97
87
  "webpack-bundle-analyzer": "^4.10.1",
98
88
  "webpack-cli": "^5.1.4",
package/tsconfig.json CHANGED
@@ -10,25 +10,10 @@
10
10
  "baseUrl": "./",
11
11
  "paths": {
12
12
  "@declaration": [
13
- "src/@declaration/_"
13
+ "@src/@declaration/_"
14
14
  ],
15
- "@global": [
16
- "src/@global"
17
- ],
18
- "@atoms": [
19
- "src/@atoms"
20
- ],
21
- "@mols": [
22
- "src/@molecules"
23
- ],
24
- "@orgs": [
25
- "src/@organisms"
26
- ],
27
- "@temps": [
28
- "src/@templates"
29
- ],
30
- "@fn": [
31
- "src/@functions"
15
+ "@config": [
16
+ "@src/@middleware/_"
32
17
  ],
33
18
  },
34
19
  "strict": true,
@@ -52,6 +37,65 @@
52
37
  "dist"
53
38
  ],
54
39
  "include": [
55
- "src/**/*"
40
+ "@src/**/*"
56
41
  ]
57
- }
42
+ }
43
+
44
+
45
+ // {
46
+ // "compilerOptions": {
47
+ // "lib": [
48
+ // "dom",
49
+ // "dom.iterable"
50
+ // ],
51
+ // "jsx": "react",
52
+ // "target": "ES2016",
53
+ // "module": "commonjs",
54
+ // "baseUrl": "./",
55
+ // "paths": {
56
+ // "@declaration": [
57
+ // "@src/_"
58
+ // ],
59
+ // "@global": [
60
+ // "@src/@global"
61
+ // ],
62
+ // "@atoms": [
63
+ // "@src/@atoms"
64
+ // ],
65
+ // "@mols": [
66
+ // "@src/@molecules"
67
+ // ],
68
+ // "@orgs": [
69
+ // "@src/@organisms"
70
+ // ],
71
+ // "@temps": [
72
+ // "@src/@templates"
73
+ // ],
74
+ // "@fn": [
75
+ // "@src/@functions"
76
+ // ],
77
+ // },
78
+ // "strict": true,
79
+ // "skipLibCheck": true,
80
+ // "forceConsistentCasingInFileNames": true,
81
+ // "downlevelIteration": true,
82
+ // "allowJs": true,
83
+ // "declaration": true,
84
+ // "sourceMap": false,
85
+ // "outDir": "./dist",
86
+ // "noImplicitAny": true,
87
+ // "noImplicitThis": true,
88
+ // "noImplicitReturns": true,
89
+ // "strictNullChecks": true,
90
+ // "esModuleInterop": true,
91
+ // "noEmitOnError": false,
92
+ // "noEmit": false
93
+ // },
94
+ // "exclude": [
95
+ // "node_modules",
96
+ // "dist"
97
+ // ],
98
+ // "include": [
99
+ // "@src/**/*"
100
+ // ]
101
+ // }
package/dist/@atoms.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { Box, Span, Img, Flex, FlexBr, Grid, Paragraph, Placeholder } from './atoms/Various/parts';
2
- import { FAI } from './atoms/FAI/parts';
3
- import { Logo } from './atoms/Logo/parts';
4
- export { Flex, FlexBr, FAI, Placeholder, Grid, Logo, Box, Span, Paragraph, Img };
@@ -1,12 +0,0 @@
1
- import { Effects } from './functions/Effects/_';
2
- import { Buttons } from './functions/Button/_';
3
- import { Input } from './functions/Input/_';
4
- import { Inputs } from './functions/Inputs/_';
5
- import { Layout } from './functions/Layout/_';
6
- import { Table } from './functions/Table/_';
7
- import { Sheet } from './functions/Sheet/parts';
8
- import { SnackBar } from './functions/SnackBar/parts';
9
- import { Loader } from './functions/Loader/parts';
10
- import { Tooltips } from './functions/Tooltips/parts';
11
- import { Cropper } from './functions/Cropper/parts';
12
- export { Buttons, Input, Inputs, Table, Layout, Sheet, SnackBar, Loader, Tooltips, Effects, Cropper, };
package/dist/@global.d.ts DELETED
@@ -1,23 +0,0 @@
1
- import { global, amotify } from '@declaration';
2
- import React from 'react';
3
- import ReactDOM from 'react-dom';
4
- import * as ReactRouterDOM from 'react-router-dom';
5
- export { React, ReactDOM, ReactRouterDOM, };
6
- import { launchID, appRootID } from './@variables';
7
- export { launchID, appRootID };
8
- export declare const Inmemory: {
9
- [key: string]: {
10
- privateKey?: string;
11
- value: any;
12
- };
13
- };
14
- export declare const useStore: global.useStoreParams;
15
- export declare const useRecycle: global.useRecycleParams;
16
- export declare const pageTransit: global.PageTransitParams;
17
- export declare const getInstance: () => amotify;
18
- export declare const StyleConverter: {
19
- ReadStyleSet: global.StyleConverter.ReadStyleSet;
20
- ToClassName: global.StyleConverter.ToClassName;
21
- };
22
- export { LaunchRoot } from './global/LaunchReactApplication';
23
- export { LaunchReactApplication } from './global/LaunchReactApplication';
@@ -1,4 +0,0 @@
1
- import _$ from 'mingoo.jsmin';
2
- declare global {
3
- var $: typeof _$;
4
- }
@@ -1,3 +0,0 @@
1
- import './variables';
2
- import './formCollect';
3
- import './spreadSheet';
@@ -1 +0,0 @@
1
- export {};
@@ -1,4 +0,0 @@
1
- declare global {
2
- var ExcelJS: any;
3
- }
4
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,23 +0,0 @@
1
- import { atoms } from '@declaration';
2
- import React from 'react';
3
- import { List } from './molecules/List';
4
- import { Accordion } from './molecules/Accordion/parts';
5
- import { LinkifyText } from './molecules/LinkifyText/parts';
6
- declare const Text: {
7
- Title: (params: atoms.BoxInput) => React.JSX.Element;
8
- SubTitle: (params: atoms.BoxInput) => React.JSX.Element;
9
- ThirdTitle: (params: atoms.BoxInput) => React.JSX.Element;
10
- Paragraph: (params: atoms.BoxInput) => React.JSX.Element;
11
- Normal: (params: atoms.BoxInput) => React.JSX.Element;
12
- Description: (params: atoms.BoxInput) => React.JSX.Element;
13
- Supplement: (params: atoms.BoxInput) => React.JSX.Element;
14
- NowrapSpan: (params: atoms.SpanProps) => React.JSX.Element;
15
- };
16
- declare const Row: {
17
- Center: (params: atoms.FlexProps) => React.JSX.Element;
18
- Left: (params: atoms.FlexProps) => React.JSX.Element;
19
- Right: (params: atoms.FlexProps) => React.JSX.Element;
20
- Separate: (params: atoms.FlexProps) => React.JSX.Element;
21
- };
22
- declare const Column: (params: atoms.FlexProps) => React.JSX.Element;
23
- export { List, Accordion, LinkifyText, Text, Column, Row };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- import { TagProps } from './@declaration/property';
2
- export declare let publicURI: string;
3
- export declare const launchID: string;
4
- export declare let appRootID: string;
5
- export declare const ColorObjects: {
6
- key: TagProps.ThemeColor;
7
- isBrand: boolean;
8
- isAvocado: boolean;
9
- }[];
package/dist/amotify.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export type { Device, Browser, TagProps, ReactElement, config, global, atoms, mols, orgs, temps, fn } from './@declaration/_';
2
- import { amotify } from './@declaration/_';
3
- import './@styles/@app.scss';
4
- import './@globalJsmin';
5
- import { launchID, publicURI } from './@variables';
6
- export { launchID, publicURI };
7
- import './@jsminAmotifyExtension/_';
8
- import './@styles/parts.scss';
9
- import './fin';
10
- declare const instance: amotify;
11
- export { instance };
12
- export default instance;