amotify 0.1.7 → 0.1.9
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_style.ts +55 -0
- package/dist/@declaration/_.d.ts +5 -109
- package/dist/@declaration/_.js +1 -3
- package/dist/@declaration/module.d.ts +1 -1
- package/dist/@declaration/module.js +0 -1
- package/dist/@declaration/property.d.ts +133 -137
- package/dist/@declaration/property.js +0 -2
- package/dist/@styles/componentClasses/_.css +1499 -0
- package/dist/@styles/componentClasses/_.d.ts +22 -0
- package/dist/@styles/componentClasses/_.js +392 -0
- package/dist/@utils/GenerateClassName.d.ts +11 -0
- package/dist/@utils/GenerateClassName.js +1 -0
- package/dist/@utils/LaunchReactApp.d.ts +19 -0
- package/dist/@utils/LaunchReactApp.js +1 -0
- package/dist/@utils/_.d.ts +11 -0
- package/dist/@utils/_.js +1 -0
- package/dist/@utils/collectForm.d.ts +11 -0
- package/dist/@utils/collectForm.js +1 -0
- package/dist/{@middleware → @utils}/color.d.ts +3 -3
- package/dist/@utils/color.js +1 -0
- package/dist/@utils/config.d.ts +43 -0
- package/dist/@utils/config.js +1 -0
- package/dist/@utils/fin.d.ts +1 -0
- package/dist/@utils/fin.js +1 -0
- package/dist/@utils/jsminEx.d.ts +56 -0
- package/dist/@utils/jsminEx.js +1 -0
- package/dist/@utils/pageTransit.d.ts +11 -0
- package/dist/@utils/pageTransit.js +1 -0
- package/dist/@utils/useRecycle.d.ts +8 -0
- package/dist/@utils/useRecycle.js +1 -0
- package/dist/@utils/useStore.d.ts +18 -0
- package/dist/@utils/useStore.js +1 -0
- package/dist/atoms/Box.d.ts +9 -0
- package/dist/atoms/Box.js +1 -0
- package/dist/atoms/FAI.d.ts +18 -0
- package/dist/atoms/FAI.js +1 -0
- package/dist/atoms/Flex.d.ts +11 -0
- package/dist/atoms/Flex.js +1 -0
- package/dist/atoms/Grid.d.ts +4 -0
- package/dist/atoms/Grid.js +1 -0
- package/dist/atoms/Img.d.ts +11 -0
- package/dist/atoms/Img.js +1 -0
- package/dist/atoms/Logo.d.ts +40 -0
- package/dist/atoms/Logo.js +51 -0
- package/dist/atoms/P.d.ts +9 -0
- package/dist/atoms/P.js +1 -0
- package/dist/atoms/Placeholder.d.ts +9 -0
- package/dist/atoms/Placeholder.js +1 -0
- package/dist/atoms/Span.d.ts +9 -0
- package/dist/atoms/Span.js +1 -0
- package/dist/atoms/_.d.ts +9 -0
- package/dist/atoms/_.js +1 -0
- package/dist/chunk-VY3566IV.js +1 -0
- package/dist/fn/Button.d.ts +82 -0
- package/dist/fn/Button.js +1 -0
- package/dist/fn/Cropper.d.ts +26 -0
- package/dist/fn/Cropper.js +1 -0
- package/dist/fn/Effect/Fade.d.ts +17 -0
- package/dist/fn/Effect/Fade.js +1 -0
- package/dist/fn/Effect/Pudding.d.ts +1 -0
- package/dist/fn/Effect/Pudding.js +1 -0
- package/dist/fn/Effect/Ripple.d.ts +1 -0
- package/dist/fn/Effect/Ripple.js +3 -0
- package/dist/fn/Effect/_.d.ts +9 -0
- package/dist/fn/Effect/_.js +1 -0
- package/dist/fn/Input/Checker.d.ts +17 -0
- package/dist/fn/Input/Checker.js +1 -0
- package/dist/fn/Input/Chips/Selector.d.ts +44 -0
- package/dist/fn/Input/Chips/Selector.js +1 -0
- package/dist/fn/Input/Chips/_.d.ts +60 -0
- package/dist/fn/Input/Chips/_.js +1 -0
- package/dist/fn/Input/Contenteditable.d.ts +17 -0
- package/dist/fn/Input/Contenteditable.js +1 -0
- package/dist/fn/Input/DigitCharacters.d.ts +17 -0
- package/dist/fn/Input/DigitCharacters.js +1 -0
- package/dist/fn/Input/Filer.d.ts +47 -0
- package/dist/fn/Input/Filer.js +1 -0
- package/dist/fn/Input/Hidden.d.ts +13 -0
- package/dist/fn/Input/Hidden.js +1 -0
- package/dist/fn/Input/List.d.ts +50 -0
- package/dist/fn/Input/List.js +1 -0
- package/dist/fn/Input/Parts.d.ts +22 -0
- package/dist/fn/Input/Parts.js +1 -0
- package/dist/fn/Input/Plain.d.ts +7 -0
- package/dist/fn/Input/Plain.js +1 -0
- package/dist/fn/Input/RichSelect.d.ts +32 -0
- package/dist/fn/Input/RichSelect.js +1 -0
- package/dist/fn/Input/Search.d.ts +6 -0
- package/dist/fn/Input/Search.js +1 -0
- package/dist/fn/Input/Segmented.d.ts +22 -0
- package/dist/fn/Input/Segmented.js +1 -0
- package/dist/fn/Input/Select.d.ts +28 -0
- package/dist/fn/Input/Select.js +1 -0
- package/dist/fn/Input/Slider.d.ts +31 -0
- package/dist/fn/Input/Slider.js +1 -0
- package/dist/fn/Input/Switch.d.ts +17 -0
- package/dist/fn/Input/Switch.js +1 -0
- package/dist/fn/Input/Text.d.ts +50 -0
- package/dist/fn/Input/Text.js +1 -0
- package/dist/fn/Input/TextArea.d.ts +19 -0
- package/dist/fn/Input/TextArea.js +1 -0
- package/dist/fn/Input/Time/Picker.d.ts +37 -0
- package/dist/fn/Input/Time/Picker.js +1 -0
- package/dist/fn/Input/Time/_.d.ts +78 -0
- package/dist/fn/Input/Time/_.js +1 -0
- package/dist/fn/Input/_.d.ts +142 -0
- package/dist/fn/Input/_.js +1 -0
- package/dist/fn/Input/core.d.ts +54 -0
- package/dist/fn/Input/core.js +1 -0
- package/dist/fn/Layout/PageNotFound.d.ts +6 -0
- package/dist/fn/Layout/PageNotFound.js +1 -0
- package/dist/fn/Layout/PageRouter.d.ts +27 -0
- package/dist/fn/Layout/PageRouter.js +1 -0
- package/dist/fn/Layout/PageViewController.d.ts +13 -0
- package/dist/fn/Layout/PageViewController.js +1 -0
- package/dist/fn/Layout/Plate.d.ts +9 -0
- package/dist/fn/Layout/Plate.js +1 -0
- package/dist/fn/Layout/RootViewController.d.ts +41 -0
- package/dist/fn/Layout/RootViewController.js +1 -0
- package/dist/fn/Layout/SwipeView.d.ts +40 -0
- package/dist/fn/Layout/SwipeView.js +1 -0
- package/dist/fn/Layout/TabBar.d.ts +16 -0
- package/dist/fn/Layout/TabBar.js +1 -0
- package/dist/fn/Layout/_.d.ts +27 -0
- package/dist/fn/Layout/_.js +1 -0
- package/dist/fn/Loader/_.d.ts +47 -0
- package/dist/fn/Loader/_.js +1 -0
- package/dist/fn/Loader/corner.d.ts +1 -0
- package/dist/fn/Loader/corner.js +1 -0
- package/dist/fn/Loader/mini.d.ts +6 -0
- package/dist/fn/Loader/mini.js +1 -0
- package/dist/fn/Loader/top.d.ts +2 -0
- package/dist/fn/Loader/top.js +1 -0
- package/dist/fn/Sheet.d.ts +75 -0
- package/dist/fn/Sheet.js +1 -0
- package/dist/fn/Snackbar.d.ts +24 -0
- package/dist/fn/Snackbar.js +1 -0
- package/dist/fn/Table/Data.d.ts +128 -0
- package/dist/fn/Table/Data.js +1 -0
- package/dist/fn/Table/Drag.d.ts +18 -0
- package/dist/fn/Table/Drag.js +1 -0
- package/dist/fn/Table/Normal.d.ts +16 -0
- package/dist/fn/Table/Normal.js +1 -0
- package/dist/fn/Table/Parts.d.ts +24 -0
- package/dist/fn/Table/Parts.js +1 -0
- package/dist/fn/Table/Wrapper.d.ts +10 -0
- package/dist/fn/Table/Wrapper.js +1 -0
- package/dist/fn/Table/_.d.ts +42 -0
- package/dist/fn/Table/_.js +1 -0
- package/dist/fn/Table/cellStyling.d.ts +9 -0
- package/dist/fn/Table/cellStyling.js +1 -0
- package/dist/fn/Tooltips.d.ts +31 -0
- package/dist/fn/Tooltips.js +1 -0
- package/dist/fn/_.d.ts +10 -0
- package/dist/fn/_.js +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +1 -17
- package/dist/mols/Accordion.d.ts +25 -0
- package/dist/mols/Accordion.js +1 -0
- package/dist/mols/Column.d.ts +7 -0
- package/dist/mols/Column.js +1 -0
- package/dist/mols/LinkifyText.d.ts +10 -0
- package/dist/mols/LinkifyText.js +1 -0
- package/dist/mols/List.d.ts +11 -0
- package/dist/mols/List.js +1 -0
- package/dist/mols/Row.d.ts +16 -0
- package/dist/mols/Row.js +1 -0
- package/dist/mols/Text.d.ts +21 -0
- package/dist/mols/Text.js +1 -0
- package/dist/mols/_.d.ts +6 -0
- package/dist/mols/_.js +1 -0
- package/dist/orgs/_.d.ts +1 -0
- package/dist/orgs/_.js +0 -0
- package/dist/style.css +7290 -0
- package/dist/style.d.ts +4 -0
- package/dist/style.js +392 -0
- package/dist/temps/_.d.ts +1 -0
- package/dist/temps/_.js +0 -0
- package/package.json +63 -51
- package/dist/@declaration/amotify.d.ts +0 -1353
- package/dist/@declaration/amotify.js +0 -2
- package/dist/@middleware/GenerateClassName.d.ts +0 -3
- package/dist/@middleware/GenerateClassName.js +0 -282
- package/dist/@middleware/_.d.ts +0 -23
- package/dist/@middleware/_.js +0 -131
- package/dist/@middleware/color.js +0 -99
- package/dist/@middleware/pageTransit.d.ts +0 -2
- package/dist/@middleware/pageTransit.js +0 -31
- package/dist/@middleware/useRecycle.d.ts +0 -2
- package/dist/@middleware/useRecycle.js +0 -43
- package/dist/@middleware/useStore.d.ts +0 -2
- package/dist/@middleware/useStore.js +0 -39
- package/dist/@middleware/userAgent.d.ts +0 -14
- package/dist/@middleware/userAgent.js +0 -36
- package/dist/atoms/Box/index.d.ts +0 -9
- package/dist/atoms/Box/index.js +0 -19
- package/dist/atoms/index.d.ts +0 -4
- package/dist/atoms/index.js +0 -25
package/bundler_style.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import esbuild from 'esbuild'
|
|
2
|
+
import { sassPlugin,postcssModules } from 'esbuild-sass-plugin'
|
|
3
|
+
|
|
4
|
+
let packageJson = require( './package.json' )
|
|
5
|
+
let name = packageJson.name
|
|
6
|
+
let version = packageJson.version
|
|
7
|
+
let author = 'mingoo, LLC.'
|
|
8
|
+
let closing = 'https://mingoo.co.jp/'
|
|
9
|
+
|
|
10
|
+
let Banner = `/**
|
|
11
|
+
* @license amotify
|
|
12
|
+
* ${ name } ${ version }
|
|
13
|
+
* ${ closing }
|
|
14
|
+
|
|
15
|
+
* Copyright (c) ${ author }
|
|
16
|
+
* Released under the MIT license
|
|
17
|
+
|
|
18
|
+
* Latest updated at: ${ new Date().toLocaleDateString() }
|
|
19
|
+
*/
|
|
20
|
+
`
|
|
21
|
+
|
|
22
|
+
esbuild.build( {
|
|
23
|
+
format: 'esm',
|
|
24
|
+
bundle: true,
|
|
25
|
+
// minify: true,
|
|
26
|
+
target: [ "ES6" ],
|
|
27
|
+
platform: 'node',
|
|
28
|
+
entryPoints: [
|
|
29
|
+
'./src/@styles/componentClasses/_.tsx',
|
|
30
|
+
'./src/style.tsx'
|
|
31
|
+
],
|
|
32
|
+
outbase: './src',
|
|
33
|
+
outdir: './dist',
|
|
34
|
+
plugins: [
|
|
35
|
+
sassPlugin( {
|
|
36
|
+
type: 'css',
|
|
37
|
+
filter: /\.module\.scss$/,
|
|
38
|
+
importMapper: ( path ) => {
|
|
39
|
+
let resolvedPath = path
|
|
40
|
+
.replace( /@props/,__dirname + '/src/@styles/props.scss' )
|
|
41
|
+
.replace( /@mixin/,__dirname + '/src/@styles/mixin.scss' )
|
|
42
|
+
return resolvedPath
|
|
43
|
+
},
|
|
44
|
+
transform: postcssModules( {
|
|
45
|
+
|
|
46
|
+
} )
|
|
47
|
+
} ),
|
|
48
|
+
sassPlugin( {
|
|
49
|
+
type: 'css'
|
|
50
|
+
} )
|
|
51
|
+
],
|
|
52
|
+
banner: {
|
|
53
|
+
css: Banner
|
|
54
|
+
},
|
|
55
|
+
} )
|
package/dist/@declaration/_.d.ts
CHANGED
|
@@ -1,114 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import './module';
|
|
3
|
-
declare global {
|
|
4
|
-
interface JsminExtension {
|
|
5
|
-
spreadSheet: {
|
|
6
|
-
readFromFile(file: fn.Input.Filer.CustomFile): Promise<JsminExtension.SpreadSheet.Method>;
|
|
7
|
-
readFromJson(v: JsminExtension.SpreadSheet.Json): Promise<JsminExtension.SpreadSheet.Method>;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
namespace JsminExtension {
|
|
11
|
-
namespace SpreadSheet {
|
|
12
|
-
interface Instance {
|
|
13
|
-
fn: Method;
|
|
14
|
-
prototype: Method;
|
|
15
|
-
(v: any, a: string): any;
|
|
16
|
-
}
|
|
17
|
-
interface Method {
|
|
18
|
-
isValid(): boolean;
|
|
19
|
-
getWorkbook(): any;
|
|
20
|
-
updateFileName(fileName: string): void;
|
|
21
|
-
updateMerges(merges: Merge[][]): void;
|
|
22
|
-
updateStyles(styles: Style[][]): void;
|
|
23
|
-
toJson(): {
|
|
24
|
-
fileName: string;
|
|
25
|
-
sheets: {
|
|
26
|
-
sheetName: string;
|
|
27
|
-
rows: any[];
|
|
28
|
-
}[];
|
|
29
|
-
};
|
|
30
|
-
export(type?: 'xlsx' | 'csv'): void;
|
|
31
|
-
}
|
|
32
|
-
type Json = {
|
|
33
|
-
fileName: string;
|
|
34
|
-
sheets: SheetParams[];
|
|
35
|
-
};
|
|
36
|
-
type SheetParams = {
|
|
37
|
-
sheetName: string;
|
|
38
|
-
rows: RowParams[];
|
|
39
|
-
merges?: Merge[];
|
|
40
|
-
styles?: Style[];
|
|
41
|
-
};
|
|
42
|
-
type RowParams = (string | number)[];
|
|
43
|
-
type Merge = [string, string] | [null, null];
|
|
44
|
-
type Style = {
|
|
45
|
-
type: 'cell' | 'row' | 'column';
|
|
46
|
-
target: string | number | (string | number)[];
|
|
47
|
-
values: {
|
|
48
|
-
[key: string]: any;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
interface JsminExtension {
|
|
54
|
-
formCollect(form: string): Promise<{
|
|
55
|
-
valid: boolean;
|
|
56
|
-
data: plainObject;
|
|
57
|
-
}>;
|
|
58
|
-
NoticeHttpStatus(params: {
|
|
59
|
-
status: number;
|
|
60
|
-
statusText: string;
|
|
61
|
-
label: ReactElement;
|
|
62
|
-
} & fn.SnackBar.AddParams): void;
|
|
63
|
-
copyToClipboard(data: any, notice?: boolean): Promise<{
|
|
64
|
-
ok: boolean;
|
|
65
|
-
body: any;
|
|
66
|
-
}>;
|
|
67
|
-
getCurrentLocation: {
|
|
68
|
-
(): Promise<JsminExtension.getCurrentLocationOutput>;
|
|
69
|
-
};
|
|
70
|
-
CDNReader: {
|
|
71
|
-
(url: string): void;
|
|
72
|
-
};
|
|
73
|
-
ImageLoader: {
|
|
74
|
-
(dataUrl: string, img?: HTMLImageElement): Promise<HTMLImageElement>;
|
|
75
|
-
};
|
|
76
|
-
isJSXElement(v: any): v is JSX.Element;
|
|
77
|
-
}
|
|
78
|
-
namespace JsminExtension {
|
|
79
|
-
type getCurrentLocationOutput = {
|
|
80
|
-
ok: false;
|
|
81
|
-
status: number;
|
|
82
|
-
body: {
|
|
83
|
-
reason: any;
|
|
84
|
-
};
|
|
85
|
-
} | {
|
|
86
|
-
ok: true;
|
|
87
|
-
status: 200;
|
|
88
|
-
body: {
|
|
89
|
-
lat: number;
|
|
90
|
-
lng: number;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
type base64ToBlobTypeProps = 'image/png' | 'image/jpeg' | string;
|
|
95
|
-
interface String {
|
|
96
|
-
zen2hanNumber(): string;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
3
|
export type Device = 'windows' | 'android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined';
|
|
100
4
|
export type Browser = 'chrome' | 'firefox' | 'safari' | 'opera' | 'ie' | 'edge' | 'undefined';
|
|
101
5
|
export type ReactElement = React.ReactNode | React.ReactNode[];
|
|
102
|
-
|
|
103
|
-
export type
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
export
|
|
107
|
-
config: config.Methods;
|
|
108
|
-
global: global.Methods;
|
|
109
|
-
atoms: atoms.Methods;
|
|
110
|
-
mols: mols.Methods;
|
|
111
|
-
orgs: orgs.Methods;
|
|
112
|
-
temps: temps.Methods;
|
|
113
|
-
fn: fn.Methods;
|
|
114
|
-
}
|
|
6
|
+
export type DarkMode = 'light' | 'auto' | 'dark' | 'dim';
|
|
7
|
+
export type ThemeColor = 'comun' | 'leaf' | 'heart' | 'droplet' | 'brick' | 'flower' | 'lip' | 'wine' | 'theater' | 'bat' | 'poizon' | 'eggplant' | 'ufo' | 'alien' | 'tombstone' | 'ninja' | 'moon' | 'rain' | 'unicorn' | 'axe' | 'gem' | 'soap' | 'drizzle' | 'building' | 'fish' | 'icicles' | 'water' | 'tree1' | 'tree2' | 'tree3' | 'battery' | 'seedle' | 'greenTea' | 'oak' | 'salad' | 'cloudy' | 'lemon' | 'angel' | 'parasol' | 'pizza' | 'thunder' | 'latte' | 'island' | 'shovel' | 'coffee' | 'carrot' | 'cactus' | 'volcano' | 'choco' | 'industry' | 'gun' | 'galaxy' | 'line' | 'twitter' | 'amazon' | 'facebook' | 'android' | 'slackBlue' | 'slackGreen' | 'slackRed' | 'slackYellow' | 'slackBase' | 'googleBlue' | 'googleGreen' | 'googleYellow' | 'googleRed';
|
|
8
|
+
export type Roundness = 0 | 1 | 2 | 3 | 4 | 5;
|
|
9
|
+
import * as TagProperty from './property';
|
|
10
|
+
export type { TagProperty };
|
package/dist/@declaration/_.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
declare module "*.scss";
|
|
2
|
-
declare module "amotify/dist/
|
|
2
|
+
declare module "amotify/dist/style.css";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,142 +1,138 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { ThemeColor } from './_';
|
|
3
|
+
export type BasicElement = BasicTag & Params;
|
|
4
|
+
export type BasicTag = {
|
|
5
|
+
className?: string;
|
|
6
|
+
id?: string;
|
|
7
|
+
componentID?: string;
|
|
8
|
+
};
|
|
9
|
+
export type Params = Properties & {
|
|
10
|
+
freeCSS?: React.CSSProperties;
|
|
11
|
+
UnderBreakPointStyles?: Properties;
|
|
12
|
+
ssEffectsOnActive?: Others.EffectsOnActive | Others.EffectsOnActive[] | false;
|
|
13
|
+
ssPushable?: boolean;
|
|
14
|
+
ssLastChildLossBorder?: 'bottom' | 'right' | false;
|
|
15
|
+
};
|
|
16
|
+
export declare namespace Pargins {
|
|
17
|
+
type Params = {
|
|
18
|
+
margin?: Group;
|
|
19
|
+
marginTop?: Unit;
|
|
20
|
+
marginRight?: Unit;
|
|
21
|
+
marginBottom?: Unit;
|
|
22
|
+
marginLeft?: Unit;
|
|
23
|
+
padding?: Group;
|
|
24
|
+
paddingTop?: Unit;
|
|
25
|
+
paddingRight?: Unit;
|
|
26
|
+
paddingBottom?: Unit;
|
|
27
|
+
paddingLeft?: Unit;
|
|
13
28
|
};
|
|
14
|
-
type
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
type Unit = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4 | 'auto' | 'safeAreaTop' | 'safeAreaBottom';
|
|
30
|
+
type Group = Unit | [Unit, Unit] | [Unit, Unit, Unit, Unit];
|
|
31
|
+
}
|
|
32
|
+
export declare namespace Borders {
|
|
33
|
+
type Params = {
|
|
34
|
+
border?: Border;
|
|
35
|
+
borderTop?: Border;
|
|
36
|
+
borderRight?: Border;
|
|
37
|
+
borderBottom?: Border;
|
|
38
|
+
borderLeft?: Border;
|
|
39
|
+
borderWidth?: Width;
|
|
40
|
+
borderColor?: Color;
|
|
41
|
+
borderStyle?: Style;
|
|
42
|
+
borderRadius?: Radius;
|
|
43
|
+
borderTopLeftRadius?: Radius;
|
|
44
|
+
borderTopRightRadius?: Radius;
|
|
45
|
+
borderBottomLeftRadius?: Radius;
|
|
46
|
+
borderBottomRightRadius?: Radius;
|
|
47
|
+
};
|
|
48
|
+
type Border = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset';
|
|
49
|
+
type Width = 0 | 1 | 2 | 3 | 4;
|
|
50
|
+
type Color = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white';
|
|
51
|
+
type Style = 'solid' | 'dashed' | 'double' | 'dotted' | 'none';
|
|
52
|
+
type Radius = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' | '1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary';
|
|
53
|
+
}
|
|
54
|
+
export declare namespace FlexGrids {
|
|
55
|
+
type Params = {
|
|
56
|
+
flexSizing?: 'none' | 'auto' | 0;
|
|
57
|
+
flexWrap?: boolean;
|
|
58
|
+
flexCenter?: boolean;
|
|
59
|
+
flexType?: Type;
|
|
60
|
+
flexChilds?: 'even' | 'auto' | 'none' | 'unset';
|
|
61
|
+
flexGrid?: Grid;
|
|
62
|
+
flexNewLine?: boolean;
|
|
63
|
+
verticalAlign?: VerticalAlign;
|
|
64
|
+
horizontalAlign?: HorizontalAlign;
|
|
65
|
+
gridCenter?: boolean;
|
|
66
|
+
gridCols?: GridCols;
|
|
67
|
+
};
|
|
68
|
+
type Type = 'row' | 'row-r' | 'col' | 'col-r';
|
|
69
|
+
type VerticalAlign = 'center' | 'top' | 'bottom' | 'baseline' | 'unset';
|
|
70
|
+
type HorizontalAlign = 'center' | 'left' | 'right' | 'between' | 'around' | 'even' | 'unset';
|
|
71
|
+
type Grid = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'unset';
|
|
72
|
+
type GridCols = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace Fonts {
|
|
75
|
+
type Params = {
|
|
76
|
+
fontColor?: Color;
|
|
77
|
+
fontSize?: Size;
|
|
78
|
+
fontWeight?: Weight;
|
|
79
|
+
isLightFont?: boolean;
|
|
80
|
+
isSemiBoldFont?: boolean;
|
|
81
|
+
isBoldFont?: boolean;
|
|
82
|
+
isRounded?: boolean;
|
|
83
|
+
textAlign?: 'left' | 'center' | 'right';
|
|
18
84
|
};
|
|
19
|
-
type
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
85
|
+
type Weight = '0.thin' | '1.light' | '2.normal' | '3.semiBold' | '4.bold' | '5.extraBold' | 'inherit' | 'lighter' | 'bolder';
|
|
86
|
+
type Color = Others.UniColors | '1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' | 'mono' | 'monoSecond' | 'logo' | 'trans';
|
|
87
|
+
type Size = '0.xs' | '1.mini' | '2.normal' | '3.paragraph' | '4.thirdTitle' | '5.subTitle' | '6.title' | '7.landing' | '8.xl' | 'inherit';
|
|
88
|
+
}
|
|
89
|
+
export declare namespace Sizes {
|
|
90
|
+
type Params = {
|
|
91
|
+
maxHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
|
|
92
|
+
minHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
|
|
93
|
+
minWidth?: 0 | 1 | 'unset';
|
|
94
|
+
maxWidth?: 0 | 1 | 'unset';
|
|
95
|
+
unitWidth?: Size;
|
|
96
|
+
unitHeight?: Size;
|
|
97
|
+
width?: 0 | 1 | 'viewWidth' | 'auto';
|
|
98
|
+
height?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'auto';
|
|
99
|
+
};
|
|
100
|
+
type Size = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 6 | 8 | 12 | 'unset';
|
|
101
|
+
}
|
|
102
|
+
export declare namespace StyleSets {
|
|
103
|
+
type Params = {
|
|
104
|
+
ssCardBox?: boolean | 'border' | 'layer' | 'cloud' | 'shadow';
|
|
105
|
+
ssSphere?: Sizes.Size;
|
|
106
|
+
ssSquare?: Sizes.Size;
|
|
107
|
+
ssAbsoluteCovered?: boolean;
|
|
108
|
+
ssTextEllipsis?: boolean;
|
|
36
109
|
};
|
|
37
|
-
namespace Pargins {
|
|
38
|
-
type Params = {
|
|
39
|
-
margin?: Group;
|
|
40
|
-
marginTop?: Unit;
|
|
41
|
-
marginRight?: Unit;
|
|
42
|
-
marginBottom?: Unit;
|
|
43
|
-
marginLeft?: Unit;
|
|
44
|
-
padding?: Group;
|
|
45
|
-
paddingTop?: Unit;
|
|
46
|
-
paddingRight?: Unit;
|
|
47
|
-
paddingBottom?: Unit;
|
|
48
|
-
paddingLeft?: Unit;
|
|
49
|
-
};
|
|
50
|
-
type Unit = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4 | 'auto' | 'safeAreaTop' | 'safeAreaBottom';
|
|
51
|
-
type Group = Unit | [Unit, Unit] | [Unit, Unit, Unit, Unit];
|
|
52
|
-
}
|
|
53
|
-
namespace Borders {
|
|
54
|
-
type Params = {
|
|
55
|
-
border?: Border;
|
|
56
|
-
borderTop?: Border;
|
|
57
|
-
borderRight?: Border;
|
|
58
|
-
borderBottom?: Border;
|
|
59
|
-
borderLeft?: Border;
|
|
60
|
-
borderWidth?: Width;
|
|
61
|
-
borderColor?: Color;
|
|
62
|
-
borderStyle?: Style;
|
|
63
|
-
borderRadius?: Radius;
|
|
64
|
-
borderTopLeftRadius?: Radius;
|
|
65
|
-
borderTopRightRadius?: Radius;
|
|
66
|
-
borderBottomLeftRadius?: Radius;
|
|
67
|
-
borderBottomRightRadius?: Radius;
|
|
68
|
-
};
|
|
69
|
-
type Border = boolean | '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'unset';
|
|
70
|
-
type Width = 0 | 1 | 2 | 3 | 4;
|
|
71
|
-
type Color = '0.trans' | '1.thin' | '2.normal' | '3.strong' | 'theme' | 'posi' | 'nega' | 'warn' | 'white';
|
|
72
|
-
type Style = 'solid' | 'dashed' | 'double' | 'dotted' | 'none';
|
|
73
|
-
type Radius = 0 | '1/3' | '2/3' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 'sphere' | 'inherit' | '1.tone.primary' | '2.tone.secondary' | '3.tone.tertiary';
|
|
74
|
-
}
|
|
75
|
-
namespace FlexGrids {
|
|
76
|
-
type Params = {
|
|
77
|
-
flexSizing?: 'none' | 'auto' | 0;
|
|
78
|
-
flexWrap?: boolean;
|
|
79
|
-
flexCenter?: boolean;
|
|
80
|
-
flexType?: Type;
|
|
81
|
-
flexChilds?: 'even' | 'auto' | 'none' | 'unset';
|
|
82
|
-
flexGrid?: Grid;
|
|
83
|
-
flexNewLine?: boolean;
|
|
84
|
-
verticalAlign?: VerticalAlign;
|
|
85
|
-
horizontalAlign?: HorizontalAlign;
|
|
86
|
-
gridCenter?: boolean;
|
|
87
|
-
gridCols?: GridCols;
|
|
88
|
-
};
|
|
89
|
-
type Type = 'row' | 'row-r' | 'col' | 'col-r';
|
|
90
|
-
type VerticalAlign = 'center' | 'top' | 'bottom' | 'baseline' | 'unset';
|
|
91
|
-
type HorizontalAlign = 'center' | 'left' | 'right' | 'between' | 'around' | 'even' | 'unset';
|
|
92
|
-
type Grid = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'unset';
|
|
93
|
-
type GridCols = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
94
|
-
}
|
|
95
|
-
namespace Fonts {
|
|
96
|
-
type Params = {
|
|
97
|
-
fontColor?: Color;
|
|
98
|
-
fontSize?: Size;
|
|
99
|
-
fontWeight?: Weight;
|
|
100
|
-
isLightFont?: boolean;
|
|
101
|
-
isSemiBoldFont?: boolean;
|
|
102
|
-
isBoldFont?: boolean;
|
|
103
|
-
isRounded?: boolean;
|
|
104
|
-
textAlign?: 'left' | 'center' | 'right';
|
|
105
|
-
};
|
|
106
|
-
type Weight = '0.thin' | '1.light' | '2.normal' | '3.semiBold' | '4.bold' | '5.extraBold' | 'inherit' | 'lighter' | 'bolder';
|
|
107
|
-
type Color = Others.UniColors | '1.clear' | '2.normal' | '3.blur' | '4.thin' | '5.translucent' | '6.clear' | 'mono' | 'monoSecond' | 'logo' | 'trans';
|
|
108
|
-
type Size = '0.xs' | '1.mini' | '2.normal' | '3.paragraph' | '4.thirdTitle' | '5.subTitle' | '6.title' | '7.landing' | '8.xl' | 'inherit';
|
|
109
|
-
}
|
|
110
|
-
namespace Sizes {
|
|
111
|
-
type Params = {
|
|
112
|
-
maxHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
|
|
113
|
-
minHeight?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'unset';
|
|
114
|
-
minWidth?: 0 | 1 | 'unset';
|
|
115
|
-
maxWidth?: 0 | 1 | 'unset';
|
|
116
|
-
unitWidth?: Size;
|
|
117
|
-
unitHeight?: Size;
|
|
118
|
-
width?: 0 | 1 | 'viewWidth' | 'auto';
|
|
119
|
-
height?: 0 | 1 | 'viewHeight' | 'topNavigationHeight' | 'sideNavigationHeight' | 'contentHeight' | 'auto';
|
|
120
|
-
};
|
|
121
|
-
type Size = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4 | 6 | 8 | 12 | 'unset';
|
|
122
|
-
}
|
|
123
|
-
namespace StyleSets {
|
|
124
|
-
type Params = {
|
|
125
|
-
ssCardBox?: boolean | 'border' | 'layer' | 'cloud' | 'shadow';
|
|
126
|
-
ssSphere?: Sizes.Size;
|
|
127
|
-
ssSquare?: Sizes.Size;
|
|
128
|
-
ssAbsoluteCovered?: boolean;
|
|
129
|
-
ssTextEllipsis?: boolean;
|
|
130
|
-
};
|
|
131
|
-
}
|
|
132
|
-
namespace Others {
|
|
133
|
-
type gapUnit = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4;
|
|
134
|
-
type gap = gapUnit | [gapUnit, gapUnit];
|
|
135
|
-
type overflowUnit = 'auto' | 'hidden' | 'scroll' | 'visible' | 'unset';
|
|
136
|
-
type overflow = overflowUnit | [overflowUnit, overflowUnit];
|
|
137
|
-
type UniColors = 'inherit' | 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'black' | ThemeColor;
|
|
138
|
-
type BackgroundColor = UniColors | '1.layer.base' | '2.layer.cloud' | '3.layer.canvas' | '4.layer.darken' | '5.layer.darker' | '6.layer.darkest' | 'cloud' | 'lcOpFew' | 'lcOpLow' | 'lcOpMiddle' | 'lcOpHigh' | 'tcOpFew' | 'tcOpLow' | 'tcOpMiddle' | 'tcOpHigh' | 'tcLighten' | 'tcLighter' | 'tcLightest' | 'tcDarken' | 'tcDarker' | 'tcDarkest' | 'negaOpLow' | 'negaOpMiddle' | 'posiOpLow' | 'posiOpMiddle' | 'trans' | 'dark' | 'monoPrime' | 'monoSecond' | 'none';
|
|
139
|
-
type TRBL = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 2 | 3 | 4 | '50%' | '100%';
|
|
140
|
-
type EffectsOnActive = 'ripple.white' | 'ripple.cloud' | 'ripple.theme' | 'push' | 'expand' | 'shrink' | 'pudding' | 'fade' | 'none';
|
|
141
|
-
}
|
|
142
110
|
}
|
|
111
|
+
export declare namespace Others {
|
|
112
|
+
type gapUnit = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 1.5 | 2 | 2.5 | 3 | 4;
|
|
113
|
+
type gap = gapUnit | [gapUnit, gapUnit];
|
|
114
|
+
type overflowUnit = 'auto' | 'hidden' | 'scroll' | 'visible' | 'unset';
|
|
115
|
+
type overflow = overflowUnit | [overflowUnit, overflowUnit];
|
|
116
|
+
type UniColors = 'inherit' | 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'black' | ThemeColor;
|
|
117
|
+
type BackgroundColor = UniColors | '1.layer.base' | '2.layer.cloud' | '3.layer.canvas' | '4.layer.darken' | '5.layer.darker' | '6.layer.darkest' | 'cloud' | 'lcOpFew' | 'lcOpLow' | 'lcOpMiddle' | 'lcOpHigh' | 'tcOpFew' | 'tcOpLow' | 'tcOpMiddle' | 'tcOpHigh' | 'tcLighten' | 'tcLighter' | 'tcLightest' | 'tcDarken' | 'tcDarker' | 'tcDarkest' | 'negaOpLow' | 'negaOpMiddle' | 'posiOpLow' | 'posiOpMiddle' | 'trans' | 'dark' | 'monoPrime' | 'monoSecond' | 'none';
|
|
118
|
+
type TRBL = 0 | '1/12' | '1/6' | '1/4' | '1/3' | '1/2' | '2/3' | '3/4' | 1 | 2 | 3 | 4 | '50%' | '100%';
|
|
119
|
+
type EffectsOnActive = 'ripple.white' | 'ripple.cloud' | 'ripple.theme' | 'push' | 'expand' | 'shrink' | 'pudding' | 'fade' | 'none';
|
|
120
|
+
}
|
|
121
|
+
export type Properties = Pargins.Params & Fonts.Params & Borders.Params & FlexGrids.Params & Sizes.Params & StyleSets.Params & {
|
|
122
|
+
backgroundColor?: Others.BackgroundColor;
|
|
123
|
+
gradients?: {
|
|
124
|
+
deg: number;
|
|
125
|
+
colors: string[];
|
|
126
|
+
};
|
|
127
|
+
boxShadow?: '3.thin.inset' | '3.normal.inset' | '3.remark.inset' | '3.thick.inset' | '3.most.inset' | '2.thin.inset' | '2.normal.inset' | '2.remark.inset' | '2.thick.inset' | '2.most.inset' | '1.thin.inset' | '1.normal.inset' | '1.remark.inset' | '1.thick.inset' | '1.most.inset' | '0.thin.inset' | '0.normal.inset' | '0.remark.inset' | '0.thick.inset' | '0.most.inset' | '0.thin' | '0.normal' | '0.remark' | '0.thick' | '0.most' | '1.thin' | '1.normal' | '1.remark' | '1.thick' | '1.most' | '2.thin' | '2.normal' | '2.remark' | '2.thick' | '2.most' | '3.thin' | '3.normal' | '3.remark' | '3.thick' | '3.most' | '4.thin' | '4.normal' | '4.remark' | '4.thick' | '4.most' | '5.thin' | '5.normal' | '5.remark' | '5.thick' | '5.most' | 'none';
|
|
128
|
+
display?: 'block' | 'none' | 'flex' | 'grid' | 'inlineBlock' | 'inlineFlex';
|
|
129
|
+
gap?: Others.gap;
|
|
130
|
+
overflow?: Others.overflow;
|
|
131
|
+
position?: 'relative' | 'absolute' | 'fixed' | 'sticky' | 'static';
|
|
132
|
+
top?: Others.TRBL | 'topBase' | 'topNavigationHeight';
|
|
133
|
+
right?: Others.TRBL;
|
|
134
|
+
bottom?: Others.TRBL;
|
|
135
|
+
left?: Others.TRBL;
|
|
136
|
+
opacity?: 'trans' | 'few' | 'low' | 'middle' | 'high' | 'most';
|
|
137
|
+
transition?: 'none' | 'short' | 'middle' | 'long';
|
|
138
|
+
};
|