@antscorp/ama-ui 0.0.12 → 0.0.14
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 +3696 -2273
- package/dist/ama-ui.es.js.map +1 -1
- package/dist/index.d.ts +184 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,70 @@
|
|
|
1
1
|
import { AutoCenter } from 'antd-mobile';
|
|
2
2
|
import { AutoCenterProps } from 'antd-mobile';
|
|
3
|
+
import { AvatarProps as AvatarProps_2 } from 'antd-mobile';
|
|
4
|
+
import { Badge as Badge_2 } from 'antd-mobile';
|
|
5
|
+
import { BadgeProps as BadgeProps_2 } from 'antd-mobile';
|
|
3
6
|
import { ButtonProps as ButtonProps_2 } from 'antd-mobile';
|
|
7
|
+
import { CapsuleTabs as CapsuleTabs_2 } from 'antd-mobile';
|
|
8
|
+
import { CapsuleTabsProps as CapsuleTabsProps_2 } from 'antd-mobile';
|
|
9
|
+
import { CardProps as CardProps_2 } from 'antd-mobile';
|
|
10
|
+
import { Collapse as Collapse_2 } from 'antd-mobile';
|
|
11
|
+
import { CollapseProps as CollapseProps_2 } from 'antd-mobile';
|
|
4
12
|
import { ConfigProviderProps as ConfigProviderProps_2 } from 'antd-mobile';
|
|
5
13
|
import { DatePickerProps as DatePickerProps_2 } from 'antd-mobile';
|
|
6
14
|
import { default as default_2 } from 'react';
|
|
7
15
|
import { DividerProps as DividerProps_2 } from 'antd-mobile';
|
|
16
|
+
import { EllipsisProps as EllipsisProps_2 } from 'antd-mobile';
|
|
17
|
+
import { FloatingPanelProps as FloatingPanelProps_2 } from 'antd-mobile';
|
|
18
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
19
|
+
import { Grid as Grid_2 } from 'antd-mobile';
|
|
20
|
+
import { GridProps as GridProps_2 } from 'antd-mobile';
|
|
21
|
+
import { ImageProps as ImageProps_2 } from 'antd-mobile';
|
|
22
|
+
import { ImageViewer as ImageViewer_2 } from 'antd-mobile';
|
|
23
|
+
import { ImageViewerProps as ImageViewerProps_2 } from 'antd-mobile';
|
|
24
|
+
import { IndexBar as IndexBar_2 } from 'antd-mobile';
|
|
25
|
+
import { IndexBarProps as IndexBarProps_2 } from 'antd-mobile';
|
|
26
|
+
import { IndexBarRef as IndexBarRef_2 } from 'antd-mobile';
|
|
8
27
|
import { InputProps as InputProps_2 } from 'antd-mobile';
|
|
28
|
+
import { JumboTabs as JumboTabs_2 } from 'antd-mobile';
|
|
29
|
+
import { JumboTabsProps as JumboTabsProps_2 } from 'antd-mobile';
|
|
9
30
|
import { List as List_2 } from 'antd-mobile';
|
|
10
31
|
import { ListProps as ListProps_2 } from 'antd-mobile';
|
|
32
|
+
import { NavBarProps as NavBarProps_2 } from 'antd-mobile';
|
|
33
|
+
import { RefAttributes } from 'react';
|
|
34
|
+
import { SafeAreaProps as SafeAreaProps_2 } from 'antd-mobile';
|
|
35
|
+
import { SideBar as SideBar_2 } from 'antd-mobile';
|
|
36
|
+
import { SideBarProps as SideBarProps_2 } from 'antd-mobile';
|
|
11
37
|
import { SpaceProps as SpaceProps_2 } from 'antd-mobile';
|
|
38
|
+
import { TabBar as TabBar_2 } from 'antd-mobile';
|
|
39
|
+
import { TabBarProps as TabBarProps_2 } from 'antd-mobile';
|
|
40
|
+
import { Tabs as Tabs_2 } from 'antd-mobile';
|
|
41
|
+
import { TabsProps as TabsProps_2 } from 'antd-mobile';
|
|
42
|
+
import { Toast } from 'antd-mobile';
|
|
43
|
+
import { ToastHandler } from 'antd-mobile/es/components/toast';
|
|
44
|
+
import { ToastShowProps } from 'antd-mobile';
|
|
12
45
|
|
|
13
46
|
export { AutoCenter }
|
|
14
47
|
|
|
15
48
|
export { AutoCenterProps }
|
|
16
49
|
|
|
50
|
+
export declare const Avatar: React.FC<AvatarProps>;
|
|
51
|
+
|
|
52
|
+
declare interface AvatarProps extends AvatarProps_2 {
|
|
53
|
+
/** An optional prop */
|
|
54
|
+
optional?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export declare const Badge: default_2.FC<BadgeProps> & {
|
|
58
|
+
dot: typeof Badge_2.dot;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export declare interface BadgeProps extends BadgeProps_2 {
|
|
62
|
+
/** An optional prop */
|
|
63
|
+
optional?: string;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare const BaseIndexBar: ForwardRefExoticComponent<IndexBarProps & RefAttributes<IndexBarRef_2>>;
|
|
67
|
+
|
|
17
68
|
export declare const Button: default_2.FC<ButtonProps>;
|
|
18
69
|
|
|
19
70
|
export declare interface ButtonProps extends ButtonProps_2 {
|
|
@@ -23,6 +74,29 @@ export declare interface ButtonProps extends ButtonProps_2 {
|
|
|
23
74
|
iconPosition?: "left" | "right";
|
|
24
75
|
}
|
|
25
76
|
|
|
77
|
+
export declare const CapsuleTabs: default_2.FC<CapsuleTabsProps> & {
|
|
78
|
+
Tab: typeof CapsuleTabs_2.Tab;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
declare interface CapsuleTabsProps extends CapsuleTabsProps_2 {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export declare const Card: React.FC<CardProps>;
|
|
85
|
+
|
|
86
|
+
declare interface CardProps extends CardProps_2 {
|
|
87
|
+
/** An optional prop */
|
|
88
|
+
optional?: string;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export declare const Collapse: React.FC<CollapseProps> & {
|
|
92
|
+
Panel: typeof Collapse_2.Panel;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
declare type CollapseProps = CollapseProps_2 & {
|
|
96
|
+
/** Optional */
|
|
97
|
+
optional?: boolean;
|
|
98
|
+
};
|
|
99
|
+
|
|
26
100
|
export declare const ConfigProvider: default_2.FC<ConfigProviderProps>;
|
|
27
101
|
|
|
28
102
|
declare interface ConfigProviderProps extends ConfigProviderProps_2 {
|
|
@@ -44,11 +118,71 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
|
44
118
|
optional?: string;
|
|
45
119
|
}
|
|
46
120
|
|
|
121
|
+
export declare const Ellipsis: React.FC<EllipsisProps>;
|
|
122
|
+
|
|
123
|
+
declare interface EllipsisProps extends EllipsisProps_2 {
|
|
124
|
+
/** An optional prop */
|
|
125
|
+
optional?: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export declare const FloatingPanel: React.FC<FloatingPanelProps>;
|
|
129
|
+
|
|
130
|
+
declare interface FloatingPanelProps extends FloatingPanelProps_2 {
|
|
131
|
+
/** An optional prop */
|
|
132
|
+
optional?: string;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export declare const Grid: default_2.FC<GridProps> & {
|
|
136
|
+
Item: typeof Grid_2.Item;
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export declare interface GridProps extends GridProps_2 {
|
|
140
|
+
/** An optional prop */
|
|
141
|
+
optional?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare const Image_2: React.FC<ImageProps>;
|
|
145
|
+
export { Image_2 as Image }
|
|
146
|
+
|
|
147
|
+
declare interface ImageProps extends ImageProps_2 {
|
|
148
|
+
/** An optional prop */
|
|
149
|
+
optional?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare const ImageViewer: React.FC<ImageViewerProps> & {
|
|
153
|
+
Multi: typeof ImageViewer_2.Multi;
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
declare interface ImageViewerProps extends ImageViewerProps_2 {
|
|
157
|
+
/** An optional prop */
|
|
158
|
+
optional?: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export declare const IndexBar: typeof BaseIndexBar & {
|
|
162
|
+
Panel: typeof IndexBar_2.Panel;
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export declare interface IndexBarProps extends IndexBarProps_2 {
|
|
166
|
+
/** An optional prop */
|
|
167
|
+
optional?: string;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export declare type IndexBarRef = IndexBarRef_2;
|
|
171
|
+
|
|
47
172
|
export declare const Input: default_2.FC<InputProps>;
|
|
48
173
|
|
|
49
174
|
declare interface InputProps extends InputProps_2 {
|
|
50
175
|
}
|
|
51
176
|
|
|
177
|
+
export declare const JumboTabs: React.FC<JumboTabsProps> & {
|
|
178
|
+
Tab: typeof JumboTabs_2.Tab;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
declare interface JumboTabsProps extends JumboTabsProps_2 {
|
|
182
|
+
/** Optional */
|
|
183
|
+
optional?: boolean;
|
|
184
|
+
}
|
|
185
|
+
|
|
52
186
|
export declare const List: React.FC<ListProps> & {
|
|
53
187
|
Item: typeof List_2.Item;
|
|
54
188
|
};
|
|
@@ -58,6 +192,29 @@ declare interface ListProps extends ListProps_2 {
|
|
|
58
192
|
optional?: boolean;
|
|
59
193
|
}
|
|
60
194
|
|
|
195
|
+
export declare const NavBar: default_2.FC<NavBarProps>;
|
|
196
|
+
|
|
197
|
+
export declare interface NavBarProps extends NavBarProps_2 {
|
|
198
|
+
/** An optional prop */
|
|
199
|
+
optional?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export declare const SafeArea: default_2.FC<SafeAreaProps>;
|
|
203
|
+
|
|
204
|
+
export declare interface SafeAreaProps extends SafeAreaProps_2 {
|
|
205
|
+
/** An optional prop */
|
|
206
|
+
optional?: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export declare const SideBar: React.FC<SideBarProps> & {
|
|
210
|
+
Item: typeof SideBar_2.Item;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
declare interface SideBarProps extends SideBarProps_2 {
|
|
214
|
+
/** Optional */
|
|
215
|
+
optional?: boolean;
|
|
216
|
+
}
|
|
217
|
+
|
|
61
218
|
export declare const Space: React.FC<SpaceProps>;
|
|
62
219
|
|
|
63
220
|
declare interface SpaceProps extends SpaceProps_2 {
|
|
@@ -65,6 +222,24 @@ declare interface SpaceProps extends SpaceProps_2 {
|
|
|
65
222
|
optional?: string;
|
|
66
223
|
}
|
|
67
224
|
|
|
225
|
+
export declare const TabBar: React.FC<TabBarProps> & {
|
|
226
|
+
Item: typeof TabBar_2.Item;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
declare interface TabBarProps extends TabBarProps_2 {
|
|
230
|
+
/** Optional */
|
|
231
|
+
optional?: boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export declare const Tabs: React.FC<TabsProps> & {
|
|
235
|
+
Tab: typeof Tabs_2.Tab;
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
declare interface TabsProps extends TabsProps_2 {
|
|
239
|
+
/** Optional */
|
|
240
|
+
optional?: boolean;
|
|
241
|
+
}
|
|
242
|
+
|
|
68
243
|
export declare type ThemeConfig = {
|
|
69
244
|
token: {
|
|
70
245
|
colorPrimary: string;
|
|
@@ -74,4 +249,13 @@ export declare type ThemeConfig = {
|
|
|
74
249
|
cssVar: boolean;
|
|
75
250
|
};
|
|
76
251
|
|
|
252
|
+
export { Toast }
|
|
253
|
+
|
|
254
|
+
export { ToastHandler }
|
|
255
|
+
|
|
256
|
+
export declare interface ToastProps extends ToastShowProps {
|
|
257
|
+
/** An optional prop */
|
|
258
|
+
optional?: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
77
261
|
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.14",
|
|
4
4
|
"main": "dist/ama-ui.es.js",
|
|
5
5
|
"module": "dist/ama-ui.es.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"scripts": {
|
|
13
13
|
"prepublishOnly": "yarn && yarn build",
|
|
14
14
|
"dev": "vite",
|
|
15
|
-
"build": "yarn clean &&
|
|
15
|
+
"build": "yarn clean && vite build --config vite.config.build.ts",
|
|
16
16
|
"clean": "rm -rf dist",
|
|
17
17
|
"lint": "eslint .",
|
|
18
18
|
"preview": "vite preview",
|