amotify 0.0.71 → 0.1.0
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 +60 -0
- package/dist/{src/@declations → @declaration}/_.d.ts +4 -11
- package/dist/{src/@declations → @declaration}/amotify.d.ts +64 -68
- package/dist/@declaration/module.d.ts +2 -0
- package/dist/{src/@declations/styles.d.ts → @declaration/property.d.ts} +1 -4
- package/dist/{src/@global.d.ts → @global.d.ts} +1 -1
- package/dist/@globalJsmin.d.ts +4 -0
- package/dist/{src/@molecules.d.ts → @molecules.d.ts} +1 -1
- package/dist/{src/@variables.d.ts → @variables.d.ts} +2 -2
- package/dist/amotify.d.ts +12 -0
- package/dist/amotify.min.css +1 -36
- package/dist/amotify.min.js +65 -0
- package/dist/{src/atoms → atoms}/FAI/parts.d.ts +1 -1
- package/dist/{src/atoms → atoms}/Logo/parts.d.ts +1 -1
- package/dist/{src/atoms → atoms}/Various/parts.d.ts +2 -2
- package/dist/{src/config.d.ts → config.d.ts} +1 -1
- package/dist/fin.d.ts +1 -0
- package/dist/{src/functions → functions}/Button/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Cropper/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Effects/Fade.d.ts +1 -1
- package/dist/functions/Effects/Ripple.d.ts +1 -0
- package/dist/{src/functions → functions}/Effects/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Chips/Selector.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Chips/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Contenteditable.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/DigitCharacters.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/File/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Hidden.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/List/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/RichSelect/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Segmented/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Select/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Slider/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Switch/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Text.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/TextArea.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Time/Picker.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/Time/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/_.d.ts +1 -1
- package/dist/{src/functions → functions}/Input/core.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/PageRouter.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/PageViewController/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/Plate.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/RootViewController/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/SwipeView/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/TabBar.d.ts +1 -1
- package/dist/{src/functions → functions}/Layout/_.d.ts +1 -1
- package/dist/functions/Loader/mini.d.ts +7 -0
- package/dist/{src/functions → functions}/Loader/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Sheet/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/SnackBar/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Table/Data/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Table/Drag/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Table/Normal/parts.d.ts +1 -1
- package/dist/{src/functions → functions}/Table/_.d.ts +3 -3
- package/dist/{src/functions → functions}/Tooltips/parts.d.ts +1 -1
- package/dist/{src/global → global}/LaunchReactApplication.d.ts +1 -1
- package/dist/{src/global → global}/styleConverter.d.ts +1 -1
- package/dist/{src/molecules → molecules}/Accordion/parts.d.ts +1 -1
- package/dist/{src/molecules → molecules}/LinkifyText/parts.d.ts +1 -1
- package/dist/{src/molecules → molecules}/List.d.ts +1 -1
- package/package.json +42 -15
- package/tsconfig.json +6 -31
- package/dist/amotify.js +0 -13
- package/dist/coreVender.js +0 -25
- package/dist/src/@declations/module.d.ts +0 -1
- package/dist/src/@templates.d.ts +0 -2
- package/dist/src/functions/Loader/mini.d.ts +0 -36
- package/dist/src/launch.d.ts +0 -12
- package/dist/src/templates/PlayGround/parts.d.ts +0 -2
- package/dist/{src/@atoms.d.ts → @atoms.d.ts} +0 -0
- package/dist/{src/@functions.d.ts → @functions.d.ts} +0 -0
- package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/_.d.ts +0 -0
- package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/formCollect.d.ts +0 -0
- package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/spreadSheet.d.ts +1 -1
- /package/dist/{src/@jsminAmotifyExtension → @jsminAmotifyExtension}/variables.d.ts +0 -0
- /package/dist/{src/@organisms.d.ts → @organisms.d.ts} +0 -0
- /package/dist/{src/functions/Effects/Ripple.d.ts → @templates.d.ts} +0 -0
- /package/dist/{src/functions → functions}/Inputs/_.d.ts +0 -0
- /package/dist/{src/functions → functions}/Inputs/text.d.ts +0 -0
- /package/dist/{src/functions → functions}/Layout/PageNotFound.d.ts +0 -0
- /package/dist/{src/functions → functions}/Loader/corner.d.ts +0 -0
- /package/dist/{src/functions → functions}/Loader/top.d.ts +0 -0
package/bundler.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import path from 'path'
|
|
2
|
+
import esbuild from 'esbuild'
|
|
3
|
+
import { sassPlugin,postcssModules } from 'esbuild-sass-plugin'
|
|
4
|
+
|
|
5
|
+
let project = {
|
|
6
|
+
name: 'amotify',
|
|
7
|
+
ver: 'v0.0.1',
|
|
8
|
+
author: 'mingoo, LLC.',
|
|
9
|
+
details: 'https://mingoo.co.jp/'
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let jsBanner = `/**
|
|
13
|
+
* @license amotify
|
|
14
|
+
* ${ project.name } ${ project.ver }
|
|
15
|
+
* ${ project.details }
|
|
16
|
+
|
|
17
|
+
* Copyright (c) ${ project.author }
|
|
18
|
+
* Released under the MIT license
|
|
19
|
+
* ${ project.details }
|
|
20
|
+
|
|
21
|
+
* Latest updated at: ${ new Date().toLocaleDateString() }
|
|
22
|
+
*/
|
|
23
|
+
`
|
|
24
|
+
|
|
25
|
+
esbuild.build( {
|
|
26
|
+
bundle: true,
|
|
27
|
+
minify: true,
|
|
28
|
+
target: [ "ES6" ],
|
|
29
|
+
platform: 'node',
|
|
30
|
+
format: 'esm',
|
|
31
|
+
entryPoints: [
|
|
32
|
+
'./src/amotify.tsx'
|
|
33
|
+
],
|
|
34
|
+
outbase: './src',
|
|
35
|
+
outfile: './dist/amotify.min.js',
|
|
36
|
+
external: [
|
|
37
|
+
"./node_modules/*"
|
|
38
|
+
],
|
|
39
|
+
plugins: [
|
|
40
|
+
sassPlugin( {
|
|
41
|
+
type: 'css',
|
|
42
|
+
filter: /\.module\.scss$/,
|
|
43
|
+
importMapper: ( path ) => {
|
|
44
|
+
let resolvedPath = path
|
|
45
|
+
.replace( /@props/,__dirname + '/src/@styles/props.scss' )
|
|
46
|
+
.replace( /@mixin/,__dirname + '/src/@styles/mixin.scss' )
|
|
47
|
+
return resolvedPath
|
|
48
|
+
},
|
|
49
|
+
transform: postcssModules( {
|
|
50
|
+
|
|
51
|
+
} )
|
|
52
|
+
} ),
|
|
53
|
+
sassPlugin( {
|
|
54
|
+
type: 'css'
|
|
55
|
+
} )
|
|
56
|
+
],
|
|
57
|
+
banner: {
|
|
58
|
+
js: jsBanner
|
|
59
|
+
},
|
|
60
|
+
} )
|
|
@@ -1,13 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import './module';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import ReactDOM from 'react-dom';
|
|
4
|
-
import * as ReactRouterDOM from 'react-router-dom';
|
|
5
3
|
declare global {
|
|
6
|
-
namespace customGlobal {
|
|
7
|
-
type React = typeof React;
|
|
8
|
-
type ReactDOM = typeof ReactDOM;
|
|
9
|
-
type ReactRouterDOM = typeof ReactRouterDOM;
|
|
10
|
-
}
|
|
11
4
|
interface JsminExtension {
|
|
12
5
|
spreadSheet: {
|
|
13
6
|
readFromFile(file: fn.Input.Filer.CustomFile): Promise<JsminExtension.SpreadSheet.Method>;
|
|
@@ -106,10 +99,10 @@ declare global {
|
|
|
106
99
|
export type Device = 'windows' | 'android' | 'iPhone' | 'iPad' | 'macOSX' | 'undefined';
|
|
107
100
|
export type Browser = 'chrome' | 'firefox' | 'safari' | 'opera' | 'ie' | 'edge' | 'undefined';
|
|
108
101
|
export type ReactElement = React.ReactNode | React.ReactNode[];
|
|
109
|
-
import {
|
|
110
|
-
export {
|
|
102
|
+
import { TagProps } from './property';
|
|
103
|
+
export type { TagProps };
|
|
111
104
|
import { config, global, atoms, mols, orgs, temps, fn } from './amotify';
|
|
112
|
-
export { config, global, atoms, mols, orgs, temps, fn };
|
|
105
|
+
export type { config, global, atoms, mols, orgs, temps, fn };
|
|
113
106
|
export interface amotify {
|
|
114
107
|
config: config.Methods;
|
|
115
108
|
global: global.Methods;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jsmin } from 'jsmin
|
|
1
|
+
import { Jsmin } from 'mingoo.jsmin';
|
|
2
2
|
import { FontAwesomeIconProps } from '@fortawesome/react-fontawesome';
|
|
3
3
|
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
|
|
4
4
|
import * as FontawesomeCore from '@fortawesome/fontawesome-svg-core';
|
|
@@ -6,16 +6,16 @@ import React from 'react';
|
|
|
6
6
|
import ReactDOM from 'react-dom';
|
|
7
7
|
import * as ReactRouterDOM from 'react-router-dom';
|
|
8
8
|
import { ReactElement, Device, Browser } from './_';
|
|
9
|
-
import {
|
|
9
|
+
import { TagProps } from './property';
|
|
10
10
|
export declare namespace config {
|
|
11
11
|
interface Methods {
|
|
12
12
|
version: string;
|
|
13
13
|
launchID: string;
|
|
14
14
|
appRootID: string;
|
|
15
15
|
appRoot: HTMLElement;
|
|
16
|
-
themeColor:
|
|
17
|
-
darkMode:
|
|
18
|
-
roundness:
|
|
16
|
+
themeColor: TagProps.ThemeColor;
|
|
17
|
+
darkMode: TagProps.DarkMode;
|
|
18
|
+
roundness: TagProps.Roundness;
|
|
19
19
|
device: {
|
|
20
20
|
deviceIs: Device;
|
|
21
21
|
browserIs: Browser;
|
|
@@ -27,9 +27,9 @@ export declare namespace config {
|
|
|
27
27
|
isIOS: boolean;
|
|
28
28
|
};
|
|
29
29
|
update: {
|
|
30
|
-
themeColor(value:
|
|
31
|
-
darkMode(value:
|
|
32
|
-
roundness(value:
|
|
30
|
+
themeColor(value: TagProps.ThemeColor): void;
|
|
31
|
+
darkMode(value: TagProps.DarkMode): void;
|
|
32
|
+
roundness(value: TagProps.Roundness): void;
|
|
33
33
|
};
|
|
34
34
|
variables: {
|
|
35
35
|
darkmodeColors: {
|
|
@@ -39,7 +39,7 @@ export declare namespace config {
|
|
|
39
39
|
auto(): string;
|
|
40
40
|
};
|
|
41
41
|
themeColors: {
|
|
42
|
-
[key in
|
|
42
|
+
[key in TagProps.ThemeColor]: {
|
|
43
43
|
alfa(alfa?: number): string;
|
|
44
44
|
isBrand: boolean;
|
|
45
45
|
isAvocado: boolean;
|
|
@@ -59,9 +59,9 @@ export declare namespace global {
|
|
|
59
59
|
nonRouter?: boolean;
|
|
60
60
|
isRoot?: boolean;
|
|
61
61
|
appearances?: {
|
|
62
|
-
roundness?:
|
|
63
|
-
themeColor?:
|
|
64
|
-
darkMode?:
|
|
62
|
+
roundness?: TagProps.Roundness;
|
|
63
|
+
themeColor?: TagProps.ThemeColor;
|
|
64
|
+
darkMode?: TagProps.DarkMode;
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
type useStoreParams = {
|
|
@@ -113,19 +113,19 @@ export declare namespace global {
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
export declare namespace atoms {
|
|
116
|
-
type BoxInput =
|
|
116
|
+
type BoxInput = TagProps.BasicElement & {
|
|
117
117
|
children?: ReactElement;
|
|
118
118
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
119
|
-
type SpanProps =
|
|
119
|
+
type SpanProps = TagProps.BasicElement & {
|
|
120
120
|
children?: ReactElement;
|
|
121
121
|
} & React.HTMLAttributes<HTMLSpanElement>;
|
|
122
|
-
type ParagraphProps =
|
|
122
|
+
type ParagraphProps = TagProps.BasicElement & {
|
|
123
123
|
children?: ReactElement;
|
|
124
124
|
} & React.HTMLAttributes<HTMLParagraphElement>;
|
|
125
|
-
type FlexProps =
|
|
125
|
+
type FlexProps = TagProps.BasicElement & {
|
|
126
126
|
children?: ReactElement;
|
|
127
127
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
128
|
-
type GridProps =
|
|
128
|
+
type GridProps = TagProps.BasicElement & {
|
|
129
129
|
children: ReactElement;
|
|
130
130
|
onClick?: {
|
|
131
131
|
(event: React.MouseEvent<HTMLDivElement, MouseEvent>): void;
|
|
@@ -133,7 +133,7 @@ export declare namespace atoms {
|
|
|
133
133
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
134
134
|
namespace FAI {
|
|
135
135
|
type Method = React.FC<FAIParams> & Shortcuts;
|
|
136
|
-
type FAIParams =
|
|
136
|
+
type FAIParams = TagProps.BasicElement & {
|
|
137
137
|
icon: FontawesomeCore.IconProp | IconDefinition;
|
|
138
138
|
iconParams?: Omit<FontAwesomeIconProps, 'icon'>;
|
|
139
139
|
};
|
|
@@ -144,7 +144,7 @@ export declare namespace atoms {
|
|
|
144
144
|
}
|
|
145
145
|
namespace Image {
|
|
146
146
|
type Methods = React.FC<CompInput> & DefaultImages;
|
|
147
|
-
type CompInput =
|
|
147
|
+
type CompInput = TagProps.BasicElement & {
|
|
148
148
|
src: string;
|
|
149
149
|
alt?: string;
|
|
150
150
|
showExpand?: boolean | string;
|
|
@@ -177,12 +177,12 @@ export declare namespace atoms {
|
|
|
177
177
|
LINE: (params: DefaultLogo) => JSX.Element;
|
|
178
178
|
};
|
|
179
179
|
};
|
|
180
|
-
type Params =
|
|
180
|
+
type Params = TagProps.BasicElement & {
|
|
181
181
|
size?: 'S' | 'R' | 'L' | '2L' | '3L';
|
|
182
182
|
color?: 'normal' | 'white';
|
|
183
183
|
children?: ReactElement | React.FC<any>;
|
|
184
184
|
};
|
|
185
|
-
type DefaultLogo =
|
|
185
|
+
type DefaultLogo = TagProps.BasicElement & {
|
|
186
186
|
size?: 'S' | 'R' | 'L' | '2L' | '3L';
|
|
187
187
|
color?: 'normal' | 'white';
|
|
188
188
|
};
|
|
@@ -193,7 +193,7 @@ export declare namespace atoms {
|
|
|
193
193
|
type Methods = {
|
|
194
194
|
Box: React.FC<atoms.BoxInput>;
|
|
195
195
|
Flex: React.FC<atoms.FlexProps>;
|
|
196
|
-
FlexBr: React.FC<
|
|
196
|
+
FlexBr: React.FC<TagProps.Params>;
|
|
197
197
|
Placeholder: React.FC<PlaceholderParams>;
|
|
198
198
|
Grid: React.FC<atoms.GridProps>;
|
|
199
199
|
FAI: FAI.Method;
|
|
@@ -225,13 +225,13 @@ export declare namespace mols {
|
|
|
225
225
|
type SetParams = React.FC<Params> & FNParams;
|
|
226
226
|
}
|
|
227
227
|
namespace List {
|
|
228
|
-
type Params =
|
|
229
|
-
rowStyles?:
|
|
228
|
+
type Params = TagProps.BasicElement & {
|
|
229
|
+
rowStyles?: TagProps.Params;
|
|
230
230
|
rows: RowsParams[];
|
|
231
231
|
};
|
|
232
232
|
type RowsParams = {
|
|
233
233
|
children: ReactElement;
|
|
234
|
-
} &
|
|
234
|
+
} & TagProps.BasicElement;
|
|
235
235
|
}
|
|
236
236
|
type LinkifyTextProps = {
|
|
237
237
|
text: string;
|
|
@@ -264,9 +264,7 @@ export declare namespace orgs {
|
|
|
264
264
|
type Methods = {};
|
|
265
265
|
}
|
|
266
266
|
export declare namespace temps {
|
|
267
|
-
type Methods = {
|
|
268
|
-
PlayGround: React.FC<{}>;
|
|
269
|
-
};
|
|
267
|
+
type Methods = {};
|
|
270
268
|
}
|
|
271
269
|
export declare namespace fn {
|
|
272
270
|
namespace Layout {
|
|
@@ -298,7 +296,7 @@ export declare namespace fn {
|
|
|
298
296
|
componentDidMount?: {
|
|
299
297
|
(): void;
|
|
300
298
|
};
|
|
301
|
-
} &
|
|
299
|
+
} & TagProps.BasicElement;
|
|
302
300
|
}
|
|
303
301
|
namespace Plate {
|
|
304
302
|
type Params = {
|
|
@@ -306,7 +304,7 @@ export declare namespace fn {
|
|
|
306
304
|
} & atoms.BoxInput;
|
|
307
305
|
}
|
|
308
306
|
namespace SwipeView {
|
|
309
|
-
type Params =
|
|
307
|
+
type Params = TagProps.BasicElement & {
|
|
310
308
|
slideIndex?: number;
|
|
311
309
|
slides: ReactElement[];
|
|
312
310
|
wrapper?: {
|
|
@@ -352,10 +350,10 @@ export declare namespace fn {
|
|
|
352
350
|
Base: React.FC<RootViewController.BaseParams>;
|
|
353
351
|
TopNavigation: React.FC<atoms.FlexProps>;
|
|
354
352
|
SideNavigation: React.FC<atoms.FlexProps & {
|
|
355
|
-
baseStyles?:
|
|
353
|
+
baseStyles?: TagProps.Params;
|
|
356
354
|
}>;
|
|
357
355
|
FooterNavigation: React.FC<atoms.FlexProps & {
|
|
358
|
-
baseStyles?:
|
|
356
|
+
baseStyles?: TagProps.Params;
|
|
359
357
|
}>;
|
|
360
358
|
Comps: {
|
|
361
359
|
Button: React.FC<ButtonParams>;
|
|
@@ -405,11 +403,11 @@ export declare namespace fn {
|
|
|
405
403
|
Paging: any;
|
|
406
404
|
};
|
|
407
405
|
type customTableHTMLAttributes<T> = Omit<React.TableHTMLAttributes<T>, 'border'>;
|
|
408
|
-
type TableParams =
|
|
409
|
-
type TableHeadParams =
|
|
410
|
-
type TableBodyParams =
|
|
411
|
-
type TRParams =
|
|
412
|
-
type TableCellParams =
|
|
406
|
+
type TableParams = TagProps.BasicElement & customTableHTMLAttributes<HTMLTableElement>;
|
|
407
|
+
type TableHeadParams = TagProps.BasicElement & customTableHTMLAttributes<HTMLTableSectionElement>;
|
|
408
|
+
type TableBodyParams = TagProps.BasicElement & customTableHTMLAttributes<HTMLTableSectionElement>;
|
|
409
|
+
type TRParams = TagProps.BasicElement & React.HTMLAttributes<HTMLTableRowElement>;
|
|
410
|
+
type TableCellParams = TagProps.BasicElement & React.ThHTMLAttributes<HTMLTableCellElement>;
|
|
413
411
|
type Types = 'normal' | 'data' | 'drag' | 'spread';
|
|
414
412
|
type Tones = 'border' | 'cellBorder' | 'rowBorder' | 'plain' | 'auto';
|
|
415
413
|
type OnRowClick = {
|
|
@@ -433,13 +431,13 @@ export declare namespace fn {
|
|
|
433
431
|
tableID?: string;
|
|
434
432
|
tone?: Tones;
|
|
435
433
|
colLength: number;
|
|
436
|
-
cellStyles?:
|
|
434
|
+
cellStyles?: TagProps.Params;
|
|
437
435
|
cellClassName?: string;
|
|
438
436
|
cellStylesCallback?: {
|
|
439
|
-
(params: StylesCallbackInput):
|
|
437
|
+
(params: StylesCallbackInput): TagProps.Params;
|
|
440
438
|
};
|
|
441
439
|
className?: string;
|
|
442
|
-
} &
|
|
440
|
+
} & TagProps.Params;
|
|
443
441
|
}
|
|
444
442
|
namespace Normal {
|
|
445
443
|
type CellParams = Uni.CellParams;
|
|
@@ -560,7 +558,7 @@ export declare namespace fn {
|
|
|
560
558
|
}
|
|
561
559
|
namespace Input {
|
|
562
560
|
type Methods = {
|
|
563
|
-
Plain: React.FC<
|
|
561
|
+
Plain: React.FC<TagProps.Params & React.InputHTMLAttributes<HTMLInputElement>>;
|
|
564
562
|
Hidden: (params: Hidden.PlainParams) => JSX.Element;
|
|
565
563
|
Text: Text.Methods;
|
|
566
564
|
TextArea: (params: TextArea.PlainParams) => JSX.Element;
|
|
@@ -590,7 +588,7 @@ export declare namespace fn {
|
|
|
590
588
|
};
|
|
591
589
|
type WrapperParams = atoms.BoxInput & {
|
|
592
590
|
label?: ReactElement;
|
|
593
|
-
labelStyles?:
|
|
591
|
+
labelStyles?: TagProps.Params;
|
|
594
592
|
required?: boolean | 'plain' | 'omit';
|
|
595
593
|
};
|
|
596
594
|
type UniParams = {
|
|
@@ -608,8 +606,8 @@ export declare namespace fn {
|
|
|
608
606
|
};
|
|
609
607
|
type CoreParams = UniParams & {
|
|
610
608
|
className?: string;
|
|
611
|
-
wrapStyles?:
|
|
612
|
-
} &
|
|
609
|
+
wrapStyles?: TagProps.Params;
|
|
610
|
+
} & TagProps.Params;
|
|
613
611
|
type OnUpdateValue = {
|
|
614
612
|
(data: {
|
|
615
613
|
value: any;
|
|
@@ -708,7 +706,7 @@ export declare namespace fn {
|
|
|
708
706
|
tabIndex?: number;
|
|
709
707
|
id?: string;
|
|
710
708
|
value?: string | number;
|
|
711
|
-
listStyles?:
|
|
709
|
+
listStyles?: TagProps.Params;
|
|
712
710
|
};
|
|
713
711
|
}
|
|
714
712
|
namespace Time {
|
|
@@ -785,7 +783,7 @@ export declare namespace fn {
|
|
|
785
783
|
leftIcon?: ReactElement | false;
|
|
786
784
|
rightIcon?: ReactElement | false;
|
|
787
785
|
enableUnSelected?: boolean;
|
|
788
|
-
rightIconStyles?:
|
|
786
|
+
rightIconStyles?: TagProps.Params;
|
|
789
787
|
};
|
|
790
788
|
type ValueProps = string | number | boolean | plainObject | void | null;
|
|
791
789
|
type OptionProps = {
|
|
@@ -808,9 +806,9 @@ export declare namespace fn {
|
|
|
808
806
|
leftIcon?: ReactElement | false;
|
|
809
807
|
rightIcon?: ReactElement | false;
|
|
810
808
|
enableUnSelected?: boolean;
|
|
811
|
-
rightIconStyles?:
|
|
812
|
-
cellStyles?:
|
|
813
|
-
sheetStyles?:
|
|
809
|
+
rightIconStyles?: TagProps.Params;
|
|
810
|
+
cellStyles?: TagProps.Params;
|
|
811
|
+
sheetStyles?: TagProps.Params;
|
|
814
812
|
gravityPoint?: number;
|
|
815
813
|
};
|
|
816
814
|
type ValueProps = string | number | boolean | plainObject | void | null;
|
|
@@ -840,9 +838,9 @@ export declare namespace fn {
|
|
|
840
838
|
hideInput?: boolean;
|
|
841
839
|
leftIndicator?: ReactElement | false;
|
|
842
840
|
rightIndicator?: ReactElement | false;
|
|
843
|
-
cellStyles?:
|
|
841
|
+
cellStyles?: TagProps.Params;
|
|
844
842
|
cellClassName?: string;
|
|
845
|
-
cellCheckedStyles?:
|
|
843
|
+
cellCheckedStyles?: TagProps.Params;
|
|
846
844
|
cellCheckedClassName?: string;
|
|
847
845
|
defaultActiveStyling?: boolean;
|
|
848
846
|
};
|
|
@@ -855,9 +853,9 @@ export declare namespace fn {
|
|
|
855
853
|
label: ReactElement;
|
|
856
854
|
disabled?: boolean;
|
|
857
855
|
className?: string;
|
|
858
|
-
checkedStyles?:
|
|
856
|
+
checkedStyles?: TagProps.Params;
|
|
859
857
|
checkedClassName?: string;
|
|
860
|
-
} &
|
|
858
|
+
} & TagProps.Params;
|
|
861
859
|
}
|
|
862
860
|
namespace Chips {
|
|
863
861
|
type Methods = React.FC<PlainParams> & {
|
|
@@ -947,7 +945,7 @@ export declare namespace fn {
|
|
|
947
945
|
fileNameEdit?: boolean;
|
|
948
946
|
systemOnly?: boolean;
|
|
949
947
|
accept?: Accept;
|
|
950
|
-
cellStyles?:
|
|
948
|
+
cellStyles?: TagProps.Params;
|
|
951
949
|
cellClassName?: string;
|
|
952
950
|
};
|
|
953
951
|
type CustomFile = File & {
|
|
@@ -979,7 +977,7 @@ export declare namespace fn {
|
|
|
979
977
|
showAlways?: boolean;
|
|
980
978
|
};
|
|
981
979
|
};
|
|
982
|
-
type Color =
|
|
980
|
+
type Color = TagProps.ThemeColor | 'theme' | 'posi' | 'nega' | 'warn';
|
|
983
981
|
type LegendsCallback = {
|
|
984
982
|
(value: number): ReactElement;
|
|
985
983
|
};
|
|
@@ -994,7 +992,7 @@ export declare namespace fn {
|
|
|
994
992
|
value?: boolean;
|
|
995
993
|
icon?: ReactElement;
|
|
996
994
|
};
|
|
997
|
-
type Color =
|
|
995
|
+
type Color = TagProps.ThemeColor | 'theme' | 'posi' | 'nega' | 'warn';
|
|
998
996
|
}
|
|
999
997
|
namespace Segmented {
|
|
1000
998
|
type Tones = 'Border' | 'ThemeBorder' | 'BottomLine' | 'Cloud' | 'ThemeCloud' | 'WhiteCloud';
|
|
@@ -1018,9 +1016,9 @@ export declare namespace fn {
|
|
|
1018
1016
|
tabIndex?: number;
|
|
1019
1017
|
disabled?: boolean;
|
|
1020
1018
|
value?: boolean;
|
|
1021
|
-
cellStyles?:
|
|
1019
|
+
cellStyles?: TagProps.Params;
|
|
1022
1020
|
cellClassName?: string;
|
|
1023
|
-
cellCheckedStyles?:
|
|
1021
|
+
cellCheckedStyles?: TagProps.Params;
|
|
1024
1022
|
cellCheckedClassName?: string;
|
|
1025
1023
|
};
|
|
1026
1024
|
}
|
|
@@ -1074,7 +1072,7 @@ export declare namespace fn {
|
|
|
1074
1072
|
}): Promise<Result>;
|
|
1075
1073
|
};
|
|
1076
1074
|
}
|
|
1077
|
-
type IndicatorParams =
|
|
1075
|
+
type IndicatorParams = TagProps.Params & {
|
|
1078
1076
|
tone?: BoxTone;
|
|
1079
1077
|
className?: string;
|
|
1080
1078
|
children: ReactElement;
|
|
@@ -1114,7 +1112,7 @@ export declare namespace fn {
|
|
|
1114
1112
|
type Normal = {};
|
|
1115
1113
|
type Border = {};
|
|
1116
1114
|
type Prime = {
|
|
1117
|
-
color?: Colors |
|
|
1115
|
+
color?: Colors | TagProps.ThemeColor;
|
|
1118
1116
|
};
|
|
1119
1117
|
type Sub = {
|
|
1120
1118
|
color?: Colors | 'layer';
|
|
@@ -1129,16 +1127,14 @@ export declare namespace fn {
|
|
|
1129
1127
|
color?: Colors;
|
|
1130
1128
|
};
|
|
1131
1129
|
}
|
|
1132
|
-
type UniParams =
|
|
1130
|
+
type UniParams = TagProps.BasicElement & {
|
|
1133
1131
|
tabIndex?: number;
|
|
1134
1132
|
children?: ReactElement;
|
|
1135
1133
|
'aria-label'?: string;
|
|
1136
1134
|
isLocked?: boolean;
|
|
1137
1135
|
isActive?: boolean;
|
|
1138
|
-
isActiveStyles?:
|
|
1136
|
+
isActiveStyles?: TagProps.Params;
|
|
1139
1137
|
isActiveClassName?: string;
|
|
1140
|
-
activeStyles?: Styles.Params;
|
|
1141
|
-
activeClassName?: string;
|
|
1142
1138
|
};
|
|
1143
1139
|
type delegateClickEventProps = 'auxEnter' | 'enter' | 'space';
|
|
1144
1140
|
type ButtonInput = UniParams & {
|
|
@@ -1189,7 +1185,7 @@ export declare namespace fn {
|
|
|
1189
1185
|
hold_state?: boolean;
|
|
1190
1186
|
openAfter?(): void;
|
|
1191
1187
|
closeAfter?(): void;
|
|
1192
|
-
} &
|
|
1188
|
+
} & TagProps.BasicElement;
|
|
1193
1189
|
type SizeParams = 'S' | 'R' | 'L' | '2L' | '3L' | 'MAX';
|
|
1194
1190
|
type CloseOptions = {
|
|
1195
1191
|
pageTransit?: boolean;
|
|
@@ -1221,7 +1217,7 @@ export declare namespace fn {
|
|
|
1221
1217
|
type: 'drawer.bottom';
|
|
1222
1218
|
size: Sizes;
|
|
1223
1219
|
sizeChanged?(size: Sizes): void;
|
|
1224
|
-
baseStyles?:
|
|
1220
|
+
baseStyles?: TagProps.Params;
|
|
1225
1221
|
close_option?: CloseOptions & {
|
|
1226
1222
|
swipeDown?: boolean;
|
|
1227
1223
|
};
|
|
@@ -1250,7 +1246,7 @@ export declare namespace fn {
|
|
|
1250
1246
|
};
|
|
1251
1247
|
openAfter?(): void;
|
|
1252
1248
|
closeAfter?(): void;
|
|
1253
|
-
} &
|
|
1249
|
+
} & TagProps.BasicElement;
|
|
1254
1250
|
}
|
|
1255
1251
|
namespace SnackBar {
|
|
1256
1252
|
type Methods = {
|
|
@@ -1291,7 +1287,7 @@ export declare namespace fn {
|
|
|
1291
1287
|
};
|
|
1292
1288
|
type Sizes = 'S' | 'R' | 'L' | 'XL' | 'MAX';
|
|
1293
1289
|
type Colors = 'theme' | 'posi' | 'nega' | 'warn' | 'white' | 'cloud';
|
|
1294
|
-
type CompInput =
|
|
1290
|
+
type CompInput = TagProps.Params & {
|
|
1295
1291
|
showInitial?: boolean;
|
|
1296
1292
|
loaderID?: string;
|
|
1297
1293
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace TagProps {
|
|
3
3
|
type DarkMode = 'light' | 'auto' | 'dark' | 'dim';
|
|
4
4
|
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';
|
|
5
5
|
type Roundness = 0 | 1 | 2 | 3 | 4 | 5;
|
|
@@ -7,9 +7,6 @@ export declare namespace Styles {
|
|
|
7
7
|
type Params = Properties & {
|
|
8
8
|
freeCSS?: React.CSSProperties;
|
|
9
9
|
UnderBreakPointStyles?: Properties;
|
|
10
|
-
hoverStyles?: Properties;
|
|
11
|
-
focusStyles?: Properties;
|
|
12
|
-
activeStyles?: Properties;
|
|
13
10
|
ssEffectsOnActive?: Others.EffectsOnActive | Others.EffectsOnActive[] | false;
|
|
14
11
|
ssPushable?: boolean;
|
|
15
12
|
ssLastChildLossBorder?: 'bottom' | 'right' | false;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TagProps } from './@declaration/property';
|
|
2
2
|
export declare let publicURI: string;
|
|
3
3
|
export declare const launchID: string;
|
|
4
4
|
export declare let appRootID: string;
|
|
5
5
|
export declare const ColorObjects: {
|
|
6
|
-
key:
|
|
6
|
+
key: TagProps.ThemeColor;
|
|
7
7
|
isBrand: boolean;
|
|
8
8
|
isAvocado: boolean;
|
|
9
9
|
}[];
|
|
@@ -0,0 +1,12 @@
|
|
|
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;
|