amotify 0.1.4 → 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.
- package/bundler.ts +10 -7
- package/dist/@declaration/_.js +3 -0
- package/dist/{src/@declaration → @declaration}/amotify.d.ts +2 -3
- package/dist/@declaration/amotify.js +2 -0
- package/dist/@declaration/module.js +1 -0
- package/dist/@declaration/property.js +2 -0
- package/dist/@middleware/GenerateClassName.d.ts +3 -0
- package/dist/@middleware/GenerateClassName.js +282 -0
- package/dist/@middleware/_.d.ts +23 -0
- package/dist/@middleware/_.js +131 -0
- package/dist/@middleware/color.d.ts +21 -0
- package/dist/@middleware/color.js +99 -0
- package/dist/@middleware/pageTransit.d.ts +2 -0
- package/dist/@middleware/pageTransit.js +31 -0
- package/dist/@middleware/useRecycle.d.ts +2 -0
- package/dist/@middleware/useRecycle.js +43 -0
- package/dist/@middleware/useStore.d.ts +2 -0
- package/dist/@middleware/useStore.js +39 -0
- package/dist/{src/config.d.ts → @middleware/userAgent.d.ts} +1 -6
- package/dist/@middleware/userAgent.js +36 -0
- package/dist/atoms/Box/index.d.ts +9 -0
- package/dist/atoms/Box/index.js +19 -0
- package/dist/atoms/index.d.ts +4 -0
- package/dist/atoms/index.js +25 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -0
- package/package.json +34 -37
- package/tsconfig.json +64 -20
- package/dist/amotify.min.css +0 -37
- package/dist/amotify.min.js +0 -13
- package/dist/coreVender.js +0 -13
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleDown.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleLeft.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faAngleUp.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowDown.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowLeft.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowRotateRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faArrowUp.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBars.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faBarsStaggered.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCalendarAlt.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCalendarDays.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretDown.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretLeft.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCaretUp.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheck.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCheckCircle.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronDown.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronLeft.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faChevronUp.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleCheck.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCircleQuestion.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faClock.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCloudArrowUp.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faCopy.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faDownload.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEdit.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsis.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisH.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisV.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEllipsisVertical.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamation.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExclamationTriangle.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faExternalLinkAlt.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faEye.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFile.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faFilter.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGear.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faGripVertical.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHeart.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHome.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faHouse.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faImage.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLink.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faLinkSlash.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMagnifyingGlass.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faMinus.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPalette.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPaperPlane.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPen.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPenToSquare.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faPlus.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestion.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faQuestionCircle.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRedo.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotate.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateLeft.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faRotateRight.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faSearch.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faShare.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faStar.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTimes.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashAlt.d.ts +0 -7
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTrashCan.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faTriangleExclamation.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUpRightFromSquare.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faUser.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faXmark.d.ts +0 -14
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/faYenSign.d.ts +0 -14
- package/dist/node_modules/@fortawesome/react-fontawesome/index.es.d.ts +0 -2
- package/dist/node_modules/@remix-run/router/dist/router.d.ts +0 -317
- package/dist/node_modules/css-loader/dist/runtime/api.d.ts +0 -2
- package/dist/node_modules/css-loader/dist/runtime/noSourceMaps.d.ts +0 -2
- package/dist/node_modules/mingoo.jsmin/dist/jsmin.d.ts +0 -2
- package/dist/node_modules/prop-types/factoryWithThrowingShims.d.ts +0 -86
- package/dist/node_modules/prop-types/index.d.ts +0 -2
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.d.ts +0 -2
- package/dist/node_modules/react/cjs/react.production.min.d.ts +0 -116
- package/dist/node_modules/react/index.d.ts +0 -2
- package/dist/node_modules/react-dom/cjs/react-dom.production.min.d.ts +0 -37
- package/dist/node_modules/react-dom/client.d.ts +0 -2
- package/dist/node_modules/react-dom/index.d.ts +0 -2
- package/dist/node_modules/react-router/dist/index.d.ts +0 -241
- package/dist/node_modules/react-router-dom/dist/index.d.ts +0 -139
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.d.ts +0 -20
- package/dist/node_modules/scheduler/index.d.ts +0 -2
- package/dist/src/@atoms.d.ts +0 -4
- package/dist/src/@functions.d.ts +0 -12
- package/dist/src/@global.d.ts +0 -23
- package/dist/src/@globalJsmin.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/_.d.ts +0 -3
- package/dist/src/@jsminAmotifyExtension/formCollect.d.ts +0 -1
- package/dist/src/@jsminAmotifyExtension/spreadSheet.d.ts +0 -4
- package/dist/src/@jsminAmotifyExtension/variables.d.ts +0 -1
- package/dist/src/@molecules.d.ts +0 -23
- package/dist/src/@organisms.d.ts +0 -1
- package/dist/src/@templates.d.ts +0 -1
- package/dist/src/@variables.d.ts +0 -9
- package/dist/src/amotify.d.ts +0 -12
- package/dist/src/atoms/FAI/parts.d.ts +0 -3
- package/dist/src/atoms/Logo/parts.d.ts +0 -2
- package/dist/src/atoms/Various/parts.d.ts +0 -11
- package/dist/src/fin.d.ts +0 -1
- package/dist/src/functions/Button/_.d.ts +0 -2
- package/dist/src/functions/Cropper/parts.d.ts +0 -2
- package/dist/src/functions/Effects/Fade.d.ts +0 -2
- package/dist/src/functions/Effects/Ripple.d.ts +0 -1
- package/dist/src/functions/Effects/_.d.ts +0 -4
- package/dist/src/functions/Input/Chips/Selector.d.ts +0 -2
- package/dist/src/functions/Input/Chips/_.d.ts +0 -3
- package/dist/src/functions/Input/Contenteditable.d.ts +0 -4
- package/dist/src/functions/Input/DigitCharacters.d.ts +0 -4
- package/dist/src/functions/Input/File/_.d.ts +0 -3
- package/dist/src/functions/Input/Hidden.d.ts +0 -3
- package/dist/src/functions/Input/List/_.d.ts +0 -4
- package/dist/src/functions/Input/RichSelect/_.d.ts +0 -4
- package/dist/src/functions/Input/Segmented/_.d.ts +0 -2
- package/dist/src/functions/Input/Select/_.d.ts +0 -4
- package/dist/src/functions/Input/Slider/_.d.ts +0 -4
- package/dist/src/functions/Input/Switch/_.d.ts +0 -4
- package/dist/src/functions/Input/Text.d.ts +0 -8
- package/dist/src/functions/Input/TextArea.d.ts +0 -4
- package/dist/src/functions/Input/Time/Picker.d.ts +0 -4
- package/dist/src/functions/Input/Time/_.d.ts +0 -5
- package/dist/src/functions/Input/_.d.ts +0 -6
- package/dist/src/functions/Input/core.d.ts +0 -36
- package/dist/src/functions/Inputs/_.d.ts +0 -4
- package/dist/src/functions/Inputs/text.d.ts +0 -3
- package/dist/src/functions/Layout/PageNotFound.d.ts +0 -2
- package/dist/src/functions/Layout/PageRouter.d.ts +0 -4
- package/dist/src/functions/Layout/PageViewController/parts.d.ts +0 -4
- package/dist/src/functions/Layout/Plate.d.ts +0 -3
- package/dist/src/functions/Layout/RootViewController/parts.d.ts +0 -2
- package/dist/src/functions/Layout/SwipeView/parts.d.ts +0 -5
- package/dist/src/functions/Layout/TabBar.d.ts +0 -4
- package/dist/src/functions/Layout/_.d.ts +0 -3
- package/dist/src/functions/Loader/corner.d.ts +0 -3
- package/dist/src/functions/Loader/mini.d.ts +0 -7
- package/dist/src/functions/Loader/parts.d.ts +0 -4
- package/dist/src/functions/Loader/top.d.ts +0 -3
- package/dist/src/functions/Sheet/parts.d.ts +0 -3
- package/dist/src/functions/SnackBar/parts.d.ts +0 -3
- package/dist/src/functions/Table/Data/parts.d.ts +0 -6
- package/dist/src/functions/Table/Drag/parts.d.ts +0 -4
- package/dist/src/functions/Table/Normal/parts.d.ts +0 -3
- package/dist/src/functions/Table/_.d.ts +0 -10
- package/dist/src/functions/Tooltips/parts.d.ts +0 -3
- package/dist/src/global/LaunchReactApplication.d.ts +0 -3
- package/dist/src/global/styleConverter.d.ts +0 -3
- package/dist/src/molecules/Accordion/parts.d.ts +0 -3
- package/dist/src/molecules/LinkifyText/parts.d.ts +0 -3
- package/dist/src/molecules/List.d.ts +0 -3
- /package/dist/{src/@declaration → @declaration}/_.d.ts +0 -0
- /package/dist/{src/@declaration → @declaration}/module.d.ts +0 -0
- /package/dist/{src/@declaration → @declaration}/property.d.ts +0 -0
|
@@ -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,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,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
|
|
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,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;
|
package/dist/index.d.ts
ADDED
|
@@ -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,22 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amotify",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "UI FW for React",
|
|
5
|
-
"main": "dist/
|
|
6
|
-
"types": "dist/
|
|
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
|
-
|
|
10
23
|
"start": "run-p clean start:*",
|
|
11
24
|
"build": "run-p clean pro:*",
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"start:webpack": "webpack --mode development --watch",
|
|
15
|
-
|
|
25
|
+
"_pro:webpack": "webpack --mode production",
|
|
26
|
+
"_start:webpack": "webpack --mode development --watch",
|
|
16
27
|
"_start:component": "npx ts-node bundler.ts",
|
|
17
|
-
"_start:component_watch": "nodemon --watch src --ext tsx
|
|
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\"",
|
|
18
31
|
"_start:declaration": "npx tsc --declaration --emitDeclarationOnly --skipLibCheck --declarationDir './dist'",
|
|
19
|
-
"_start:declaration_watch": "nodemon --watch src --ext tsx --exec \"npx tsc --emitDeclarationOnly\""
|
|
32
|
+
"_start:declaration_watch": "nodemon --watch @src --ext tsx --exec \"npx tsc --emitDeclarationOnly\""
|
|
20
33
|
},
|
|
21
34
|
"repository": {
|
|
22
35
|
"type": "git",
|
|
@@ -34,40 +47,15 @@
|
|
|
34
47
|
},
|
|
35
48
|
"homepage": "https://github.com/IkkoKoyama/amotify#readme",
|
|
36
49
|
"dependencies": {
|
|
37
|
-
"@fortawesome/fontawesome-common-types": "^6.5.1",
|
|
38
|
-
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
39
|
-
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
40
|
-
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
41
|
-
|
|
42
|
-
"@types/react": "^18.3.1",
|
|
43
|
-
"@types/react-dom": "^18.3.0",
|
|
44
|
-
"css-loader": "^6.8.1",
|
|
45
|
-
"esbuild-sass-plugin": "^3.2.0",
|
|
46
|
-
"glob": "^10.3.12",
|
|
47
|
-
"mingoo.jsmin": "^0.0.3",
|
|
48
|
-
"postcss-modules": "^6.0.0",
|
|
49
|
-
"react": "^18.3.1",
|
|
50
|
-
"react-dom": "^18.3.1",
|
|
51
|
-
"react-router-dom": "^6.23.0",
|
|
52
|
-
"ts-node": "^10.9.2"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"esbuild": "^0.20.2",
|
|
56
|
-
"nodemon": "^3.1.0",
|
|
57
|
-
"npm-run-all": "^4.1.5",
|
|
58
|
-
"prop-types": "^15.8.1",
|
|
59
|
-
"ts-loader": "^9.5.1",
|
|
60
|
-
"typescript": "^5.4.5",
|
|
61
|
-
|
|
62
50
|
"@babel/cli": "^7.23.0",
|
|
63
51
|
"@babel/preset-env": "^7.23.3",
|
|
64
52
|
"@babel/preset-react": "^7.23.3",
|
|
65
53
|
"@babel/preset-typescript": "^7.23.3",
|
|
66
54
|
"@fortawesome/fontawesome-common-types": "^6.5.1",
|
|
67
55
|
"@fortawesome/fontawesome-svg-core": "^6.4.2",
|
|
68
|
-
"@fortawesome/free-brands-svg-icons": "^6.4.2",
|
|
69
56
|
"@fortawesome/free-solid-svg-icons": "^6.5.1",
|
|
70
57
|
"@fortawesome/react-fontawesome": "^0.2.0",
|
|
58
|
+
"@mingoo/jsmin": "^0.0.1",
|
|
71
59
|
"@types/express": "^4.17.21",
|
|
72
60
|
"@types/react": "^18.3.1",
|
|
73
61
|
"@types/react-dom": "^18.3.0",
|
|
@@ -76,16 +64,25 @@
|
|
|
76
64
|
"browser-sync-webpack-plugin": "^2.3.0",
|
|
77
65
|
"css-loader": "^6.8.1",
|
|
78
66
|
"dotenv": "^16.3.1",
|
|
67
|
+
"esbuild": "^0.20.2",
|
|
68
|
+
"esbuild-sass-plugin": "^3.2.0",
|
|
79
69
|
"esbuild-scss-modules-plugin": "^1.1.1",
|
|
80
70
|
"express": "^4.18.2",
|
|
81
|
-
"
|
|
71
|
+
"glob": "^10.3.12",
|
|
82
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",
|
|
83
77
|
"react": "^18.3.1",
|
|
84
78
|
"react-dom": "^18.3.1",
|
|
85
79
|
"react-router-dom": "^6.23.0",
|
|
86
80
|
"sass": "^1.69.5",
|
|
87
81
|
"sass-loader": "^13.3.2",
|
|
88
82
|
"terser-webpack-plugin": "^5.3.9",
|
|
83
|
+
"ts-loader": "^9.5.1",
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"typescript": "^5.4.5",
|
|
89
86
|
"webpack": "^5.89.0",
|
|
90
87
|
"webpack-bundle-analyzer": "^4.10.1",
|
|
91
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
|
-
"@
|
|
16
|
-
"src/@
|
|
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
|
+
// }
|