@antscorp/ama-ui 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ama-ui.es.js +3255 -12200
- package/dist/ama-ui.es.js.map +1 -1
- package/dist/index.d.ts +57 -43
- package/package.json +29 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,63 +1,77 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ConfigProviderProps } from 'antd';
|
|
5
|
-
import {
|
|
6
|
-
import { DatePickerProps } from 'antd';
|
|
1
|
+
import { AutoCenter } from 'antd-mobile';
|
|
2
|
+
import { AutoCenterProps } from 'antd-mobile';
|
|
3
|
+
import { ButtonProps as ButtonProps_2 } from 'antd-mobile';
|
|
4
|
+
import { ConfigProviderProps as ConfigProviderProps_2 } from 'antd-mobile';
|
|
5
|
+
import { DatePickerProps as DatePickerProps_2 } from 'antd-mobile';
|
|
7
6
|
import { default as default_2 } from 'react';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { InputNumberProps } from 'antd';
|
|
14
|
-
import { InputProps } from 'antd';
|
|
15
|
-
import { Modal } from 'antd';
|
|
16
|
-
import { ModalProps } from 'antd';
|
|
17
|
-
import { Select } from 'antd';
|
|
18
|
-
import { SelectProps } from 'antd';
|
|
19
|
-
import { Spin } from 'antd';
|
|
20
|
-
import { SpinProps } from 'antd';
|
|
21
|
-
import { ThemeConfig as ThemeConfig_2 } from 'antd';
|
|
22
|
-
|
|
23
|
-
export { App }
|
|
24
|
-
|
|
25
|
-
export { AppProps }
|
|
26
|
-
|
|
27
|
-
export { Button }
|
|
7
|
+
import { DividerProps as DividerProps_2 } from 'antd-mobile';
|
|
8
|
+
import { InputProps as InputProps_2 } from 'antd-mobile';
|
|
9
|
+
import { List as List_2 } from 'antd-mobile';
|
|
10
|
+
import { ListProps as ListProps_2 } from 'antd-mobile';
|
|
11
|
+
import { SpaceProps as SpaceProps_2 } from 'antd-mobile';
|
|
28
12
|
|
|
29
|
-
export
|
|
13
|
+
export { AutoCenter }
|
|
30
14
|
|
|
31
|
-
export {
|
|
15
|
+
export { AutoCenterProps }
|
|
32
16
|
|
|
33
|
-
export
|
|
17
|
+
export declare const Button: React.FC<ButtonProps>;
|
|
34
18
|
|
|
35
|
-
export
|
|
19
|
+
export declare interface ButtonProps extends ButtonProps_2 {
|
|
20
|
+
/** An optional icon */
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
/** An optional icon position */
|
|
23
|
+
iconPosition?: "left" | "right";
|
|
24
|
+
}
|
|
36
25
|
|
|
37
|
-
export
|
|
26
|
+
export declare const ConfigProvider: default_2.FC<ConfigProviderProps>;
|
|
38
27
|
|
|
39
|
-
|
|
28
|
+
declare interface ConfigProviderProps extends ConfigProviderProps_2 {
|
|
29
|
+
/** An optional prop */
|
|
30
|
+
optional?: string;
|
|
31
|
+
}
|
|
40
32
|
|
|
41
|
-
export
|
|
33
|
+
export declare const DatePicker: React.FC<DatePickerProps>;
|
|
42
34
|
|
|
43
|
-
export
|
|
35
|
+
export declare interface DatePickerProps extends DatePickerProps_2 {
|
|
36
|
+
/** An optional prop */
|
|
37
|
+
optional?: string;
|
|
38
|
+
}
|
|
44
39
|
|
|
45
|
-
export
|
|
40
|
+
export declare const Divider: default_2.FC<DividerProps>;
|
|
46
41
|
|
|
47
|
-
export
|
|
42
|
+
export declare interface DividerProps extends DividerProps_2 {
|
|
43
|
+
/** An optional prop */
|
|
44
|
+
optional?: string;
|
|
45
|
+
}
|
|
48
46
|
|
|
49
|
-
export
|
|
47
|
+
export declare const Input: default_2.FC<InputProps>;
|
|
50
48
|
|
|
51
|
-
|
|
49
|
+
declare interface InputProps extends InputProps_2 {
|
|
50
|
+
}
|
|
52
51
|
|
|
53
|
-
export
|
|
52
|
+
export declare const List: React.FC<ListProps> & {
|
|
53
|
+
Item: typeof List_2.Item;
|
|
54
|
+
};
|
|
54
55
|
|
|
55
|
-
|
|
56
|
+
declare interface ListProps extends ListProps_2 {
|
|
57
|
+
/** Optional */
|
|
58
|
+
optional?: boolean;
|
|
59
|
+
}
|
|
56
60
|
|
|
57
|
-
export
|
|
61
|
+
export declare const Space: React.FC<SpaceProps>;
|
|
58
62
|
|
|
59
|
-
|
|
63
|
+
declare interface SpaceProps extends SpaceProps_2 {
|
|
64
|
+
/** An optional prop */
|
|
65
|
+
optional?: string;
|
|
66
|
+
}
|
|
60
67
|
|
|
61
|
-
export declare type ThemeConfig =
|
|
68
|
+
export declare type ThemeConfig = {
|
|
69
|
+
token: {
|
|
70
|
+
colorPrimary: string;
|
|
71
|
+
borderRadius: number;
|
|
72
|
+
fontFamily: string;
|
|
73
|
+
};
|
|
74
|
+
cssVar: boolean;
|
|
75
|
+
};
|
|
62
76
|
|
|
63
77
|
export { }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antscorp/ama-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "dist/ama-ui.es.js",
|
|
5
5
|
"module": "dist/ama-ui.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,25 +10,39 @@
|
|
|
10
10
|
"dist"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
+
"prepublishOnly": "yarn && yarn build",
|
|
13
14
|
"dev": "vite",
|
|
14
15
|
"build": "yarn clean && tsc -b && vite build --config vite.config.build.ts",
|
|
15
16
|
"clean": "rm -rf dist",
|
|
16
17
|
"lint": "eslint .",
|
|
17
18
|
"preview": "vite preview",
|
|
18
|
-
"test": "vitest"
|
|
19
|
+
"test": "vitest",
|
|
20
|
+
"storybook": "storybook dev -p 6006",
|
|
21
|
+
"build-storybook": "storybook build"
|
|
19
22
|
},
|
|
20
23
|
"dependencies": {
|
|
21
|
-
"antd": "^5.
|
|
24
|
+
"antd-mobile": "^5.38.1",
|
|
22
25
|
"clsx": "^2.1.1",
|
|
23
|
-
"lucide-react": "^0.
|
|
26
|
+
"lucide-react": "^0.475.0",
|
|
24
27
|
"react": "^18.3.1",
|
|
25
28
|
"react-dom": "^18.3.1",
|
|
26
29
|
"styled-components": "^6.1.14",
|
|
27
30
|
"tailwindcss-animate": "^1.0.7"
|
|
28
31
|
},
|
|
29
32
|
"devDependencies": {
|
|
33
|
+
"@chromatic-com/storybook": "^3.2.4",
|
|
30
34
|
"@eslint/js": "^9.17.0",
|
|
31
35
|
"@rollup/plugin-terser": "^0.4.4",
|
|
36
|
+
"@storybook/addon-docs": "^8.5.6",
|
|
37
|
+
"@storybook/addon-essentials": "^8.5.8",
|
|
38
|
+
"@storybook/addon-interactions": "^8.5.6",
|
|
39
|
+
"@storybook/addon-onboarding": "^8.5.6",
|
|
40
|
+
"@storybook/blocks": "^8.5.6",
|
|
41
|
+
"@storybook/manager-api": "^8.5.7",
|
|
42
|
+
"@storybook/react": "^8.5.6",
|
|
43
|
+
"@storybook/react-vite": "^8.5.6",
|
|
44
|
+
"@storybook/test": "^8.5.6",
|
|
45
|
+
"@storybook/theming": "^8.5.7",
|
|
32
46
|
"@tailwindcss/cli": "^4.0.0",
|
|
33
47
|
"@tailwindcss/vite": "^4.0.0",
|
|
34
48
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -42,13 +56,19 @@
|
|
|
42
56
|
"eslint": "^9.17.0",
|
|
43
57
|
"eslint-plugin-react-hooks": "^5.0.0",
|
|
44
58
|
"eslint-plugin-react-refresh": "^0.4.16",
|
|
59
|
+
"eslint-plugin-storybook": "^0.11.3",
|
|
45
60
|
"globals": "^15.14.0",
|
|
46
61
|
"jest": "^29.7.0",
|
|
62
|
+
"js-beautify": "^1.15.3",
|
|
47
63
|
"postcss": "^8.5.1",
|
|
64
|
+
"react-docgen-typescript": "^2.2.2",
|
|
65
|
+
"react-docgen-typescript-plugin": "^1.0.8",
|
|
48
66
|
"rollup-plugin-terser": "^7.0.2",
|
|
49
67
|
"rollup-plugin-visualizer": "^5.14.0",
|
|
50
68
|
"sass-embedded": "^1.83.4",
|
|
69
|
+
"storybook": "^8.5.6",
|
|
51
70
|
"tailwindcss": "3.4.17",
|
|
71
|
+
"ts-dedent": "^2.2.0",
|
|
52
72
|
"typescript": "~5.6.2",
|
|
53
73
|
"typescript-eslint": "^8.18.2",
|
|
54
74
|
"vite": "^6.0.5",
|
|
@@ -59,5 +79,10 @@
|
|
|
59
79
|
"peerDependencies": {
|
|
60
80
|
"react": ">=16.9.0",
|
|
61
81
|
"react-dom": ">=16.9.0"
|
|
82
|
+
},
|
|
83
|
+
"eslintConfig": {
|
|
84
|
+
"extends": [
|
|
85
|
+
"plugin:storybook/recommended"
|
|
86
|
+
]
|
|
62
87
|
}
|
|
63
88
|
}
|