@antscorp/ama-ui 0.1.2 → 0.1.3-beta.1
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.d.ts +21 -128
- package/dist/ama-ui.es.js +5315 -9633
- package/dist/ama-ui.es.js.map +1 -1
- package/package.json +9 -6
package/dist/ama-ui.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ import { Collapse as Collapse_2 } from 'antd-mobile';
|
|
|
29
29
|
import { CollapseProps as CollapseProps_2 } from 'antd-mobile';
|
|
30
30
|
import { ConfigProviderProps as ConfigProviderProps_2 } from 'antd-mobile';
|
|
31
31
|
import { confirm as confirm_2 } from 'antd-mobile/es/components/modal/confirm';
|
|
32
|
-
import { CSSProperties } from 'react';
|
|
33
32
|
import { DatePickerProps as DatePickerProps_2 } from 'antd-mobile';
|
|
34
33
|
import { default as default_2 } from 'react';
|
|
35
34
|
import { Dialog } from 'antd-mobile';
|
|
@@ -40,6 +39,8 @@ import { DotLoadingProps as DotLoadingProps_2 } from 'antd-mobile';
|
|
|
40
39
|
import { EllipsisProps as EllipsisProps_2 } from 'antd-mobile';
|
|
41
40
|
import { ErrorBlockProps as ErrorBlockProps_2 } from 'antd-mobile';
|
|
42
41
|
import { FC } from 'react';
|
|
42
|
+
import { FloatingBubble } from 'antd-mobile';
|
|
43
|
+
import { FloatingBubbleProps } from 'antd-mobile';
|
|
43
44
|
import { FloatingPanelProps as FloatingPanelProps_2 } from 'antd-mobile';
|
|
44
45
|
import { FooterProps as FooterProps_2 } from 'antd-mobile';
|
|
45
46
|
import { FormItemProps } from 'antd-mobile';
|
|
@@ -48,6 +49,9 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
48
49
|
import { Grid as Grid_2 } from 'antd-mobile';
|
|
49
50
|
import { GridProps as GridProps_2 } from 'antd-mobile';
|
|
50
51
|
import { ImageProps as ImageProps_2 } from 'antd-mobile';
|
|
52
|
+
import { ImageUploaderProps as ImageUploaderProps_2 } from 'antd-mobile';
|
|
53
|
+
import { ImageUploaderRef } from 'antd-mobile';
|
|
54
|
+
import { ImageUploadItem } from 'antd-mobile';
|
|
51
55
|
import { ImageViewer as ImageViewer_2 } from 'antd-mobile';
|
|
52
56
|
import { ImageViewerProps as ImageViewerProps_2 } from 'antd-mobile';
|
|
53
57
|
import { IndexBar as IndexBar_2 } from 'antd-mobile';
|
|
@@ -114,28 +118,12 @@ import { TextAreaProps as TextAreaProps_2 } from 'antd-mobile';
|
|
|
114
118
|
import { Toast } from 'antd-mobile';
|
|
115
119
|
import { ToastHandler } from 'antd-mobile/es/components/toast';
|
|
116
120
|
import { ToastShowProps } from 'antd-mobile';
|
|
117
|
-
import { Transition } from 'motion/react';
|
|
118
121
|
import { useForm } from 'rc-field-form';
|
|
119
122
|
import { useWatch } from 'rc-field-form';
|
|
120
123
|
import { WaterMarkProps as WaterMarkProps_2 } from 'antd-mobile';
|
|
121
124
|
|
|
122
125
|
export { Action }
|
|
123
126
|
|
|
124
|
-
export declare interface ActionButton {
|
|
125
|
-
/** Text hiển thị trên action button */
|
|
126
|
-
text: string;
|
|
127
|
-
/** Nếu giá trị là true action sẽ có kiểu highlight */
|
|
128
|
-
highLight?: boolean;
|
|
129
|
-
/** Nếu giá trị là true action sẽ có kiểu danger */
|
|
130
|
-
danger?: boolean;
|
|
131
|
-
/** Function sẽ được gọi khi click action */
|
|
132
|
-
onClick?: () => void;
|
|
133
|
-
/** Action sau khi click sẽ close modal */
|
|
134
|
-
close?: boolean;
|
|
135
|
-
/** Disable action */
|
|
136
|
-
disabled?: boolean;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
127
|
export declare const ActionSheet: ActionSheetType;
|
|
140
128
|
|
|
141
129
|
export declare interface ActionSheetProps extends ActionSheetProps_2 {
|
|
@@ -260,6 +248,8 @@ export declare const ConfigProvider: default_2.FC<ConfigProviderProps>;
|
|
|
260
248
|
declare interface ConfigProviderProps extends ConfigProviderProps_2 {
|
|
261
249
|
/** An optional prop */
|
|
262
250
|
optional?: string;
|
|
251
|
+
/** An optional prop */
|
|
252
|
+
language?: "en" | "vi";
|
|
263
253
|
}
|
|
264
254
|
|
|
265
255
|
export declare const DatePicker: default_2.FC<DatePickerProps>;
|
|
@@ -306,6 +296,10 @@ export declare interface ErrorBlockProps extends ErrorBlockProps_2 {
|
|
|
306
296
|
optional?: string;
|
|
307
297
|
}
|
|
308
298
|
|
|
299
|
+
export { FloatingBubble }
|
|
300
|
+
|
|
301
|
+
export { FloatingBubbleProps }
|
|
302
|
+
|
|
309
303
|
export declare const FloatingPanel: default_2.FC<FloatingPanelProps>;
|
|
310
304
|
|
|
311
305
|
export declare interface FloatingPanelProps extends FloatingPanelProps_2 {
|
|
@@ -348,6 +342,15 @@ export declare interface ImageProps extends ImageProps_2 {
|
|
|
348
342
|
optional?: string;
|
|
349
343
|
}
|
|
350
344
|
|
|
345
|
+
export declare const ImageUploader: FC<ImageUploaderProps>;
|
|
346
|
+
|
|
347
|
+
export declare interface ImageUploaderProps extends ImageUploaderProps_2 {
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export { ImageUploaderRef }
|
|
351
|
+
|
|
352
|
+
export { ImageUploadItem }
|
|
353
|
+
|
|
351
354
|
export declare const ImageViewer: default_2.FC<ImageViewerProps> & {
|
|
352
355
|
Multi: typeof ImageViewer_2.Multi;
|
|
353
356
|
};
|
|
@@ -450,7 +453,7 @@ export declare interface PickerProps extends PickerProps_2 {
|
|
|
450
453
|
|
|
451
454
|
export declare const PickerView: (props: PickerViewProps) => JSX_2.Element;
|
|
452
455
|
|
|
453
|
-
export declare type PickerViewProps = Pick<PickerViewProps_2,
|
|
456
|
+
export declare type PickerViewProps = Pick<PickerViewProps_2, 'className' | 'columns' | 'defaultValue' | 'mouseWheel' | 'onChange' | 'renderLabel' | 'value' | 'loading' | 'loadingContent'>;
|
|
454
457
|
|
|
455
458
|
export declare const Popover: default_2.FC<PopoverProps> & {
|
|
456
459
|
Menu: typeof Popover_2.Menu;
|
|
@@ -547,116 +550,6 @@ declare interface SelectorProps_2<V extends SelectorValue> extends SelectorProps
|
|
|
547
550
|
|
|
548
551
|
declare type SelectorValue = string | number;
|
|
549
552
|
|
|
550
|
-
export declare const Sheet: SheetType;
|
|
551
|
-
|
|
552
|
-
export declare const SheetAction: default_2.FC<SheetActionProps>;
|
|
553
|
-
|
|
554
|
-
export declare interface SheetActionProps {
|
|
555
|
-
/** Có divider giữa các action */
|
|
556
|
-
divider?: boolean;
|
|
557
|
-
/** Danh sách các action */
|
|
558
|
-
actions: ActionButton[];
|
|
559
|
-
/** Có divider giữa các group action */
|
|
560
|
-
groupDivider?: boolean;
|
|
561
|
-
/** Callback để close sheet khi action có close=true */
|
|
562
|
-
onClose?: () => void;
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
declare const SheetComponent: default_2.ForwardRefExoticComponent<SheetProps & default_2.RefAttributes<SheetRef>>;
|
|
566
|
-
|
|
567
|
-
export declare interface SheetProps extends Omit<PopupProps_2, "position" | "bodyStyle"> {
|
|
568
|
-
/** Hiển thị mask khi show sheet */
|
|
569
|
-
mask?: boolean;
|
|
570
|
-
/** Function gọi sau khi close sheet */
|
|
571
|
-
afterClose?: () => void;
|
|
572
|
-
/** Function gọi khi close sheet */
|
|
573
|
-
onClose?: () => void;
|
|
574
|
-
/** Đóng sheet khi click vào mask */
|
|
575
|
-
maskClosable?: boolean;
|
|
576
|
-
/** Hiển thị sheet modal */
|
|
577
|
-
visible?: boolean;
|
|
578
|
-
/** Unmount sau khi đóng sheet modal */
|
|
579
|
-
unmountOnClose?: boolean;
|
|
580
|
-
/** Title của sheet modal */
|
|
581
|
-
title?: string;
|
|
582
|
-
/** Sheet width */
|
|
583
|
-
width?: string | number;
|
|
584
|
-
/** Sheet height */
|
|
585
|
-
height?: string | number;
|
|
586
|
-
/** Sheet description */
|
|
587
|
-
description?: string;
|
|
588
|
-
/** Nội dung sheet */
|
|
589
|
-
children?: default_2.ReactNode;
|
|
590
|
-
/** Giá trị z-index của modal */
|
|
591
|
-
zIndex?: number;
|
|
592
|
-
/** Sheet handler */
|
|
593
|
-
handler?: boolean;
|
|
594
|
-
/** Chiều cao của sheet ôm theo content */
|
|
595
|
-
autoHeight?: boolean;
|
|
596
|
-
/** Vuốt xuống để đóng sheet modal */
|
|
597
|
-
swipeToClose?: boolean;
|
|
598
|
-
/** Các snap points */
|
|
599
|
-
snapPoints?: number[] | ((args: {
|
|
600
|
-
sheetModalHeight: number;
|
|
601
|
-
}) => number[]);
|
|
602
|
-
/** Index của snapPoints mặc định khi mở sheet modal */
|
|
603
|
-
defaultSnapPoint?: number;
|
|
604
|
-
/** Callback function khi expand/collapse đến một snap point mới */
|
|
605
|
-
onSnap?: (snapPoint: number) => void;
|
|
606
|
-
/** Cấu hình transition animation cho sheet (default: spring với damping: 30, stiffness: 300) */
|
|
607
|
-
transition?: Transition;
|
|
608
|
-
/** Semantic class names cho các parts của Sheet */
|
|
609
|
-
classNames?: {
|
|
610
|
-
/** Class name cho AntdPopup root wrapper */
|
|
611
|
-
popup?: string;
|
|
612
|
-
/** Class name cho AntdPopup body */
|
|
613
|
-
popupBody?: string;
|
|
614
|
-
/** Class name cho Sheet container (SheetContainer) */
|
|
615
|
-
sheet?: string;
|
|
616
|
-
/** Class name cho mask overlay */
|
|
617
|
-
mask?: string;
|
|
618
|
-
/** Class name cho handler bar */
|
|
619
|
-
handler?: string;
|
|
620
|
-
/** Class name cho header wrapper */
|
|
621
|
-
header?: string;
|
|
622
|
-
/** Class name cho title */
|
|
623
|
-
title?: string;
|
|
624
|
-
/** Class name cho description */
|
|
625
|
-
description?: string;
|
|
626
|
-
/** Class name cho content wrapper */
|
|
627
|
-
content?: string;
|
|
628
|
-
};
|
|
629
|
-
/** Semantic styles cho các parts của Sheet */
|
|
630
|
-
styles?: {
|
|
631
|
-
/** Style cho AntdPopup root wrapper */
|
|
632
|
-
popup?: CSSProperties;
|
|
633
|
-
/** Style cho Sheet container (SheetContainer) */
|
|
634
|
-
sheet?: CSSProperties;
|
|
635
|
-
/** Style cho mask overlay */
|
|
636
|
-
mask?: CSSProperties;
|
|
637
|
-
/** Style cho handler bar */
|
|
638
|
-
handler?: CSSProperties;
|
|
639
|
-
/** Style cho header wrapper */
|
|
640
|
-
header?: CSSProperties;
|
|
641
|
-
/** Style cho title */
|
|
642
|
-
title?: CSSProperties;
|
|
643
|
-
/** Style cho description */
|
|
644
|
-
description?: CSSProperties;
|
|
645
|
-
/** Style cho content wrapper */
|
|
646
|
-
content?: CSSProperties;
|
|
647
|
-
};
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
export declare interface SheetRef {
|
|
651
|
-
sheet: HTMLDivElement | null;
|
|
652
|
-
snapTo: (index: number) => void;
|
|
653
|
-
getCurrentSnapIndex: () => number;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
declare type SheetType = typeof SheetComponent & {
|
|
657
|
-
Action: typeof SheetAction;
|
|
658
|
-
};
|
|
659
|
-
|
|
660
553
|
export declare const SideBar: default_2.FC<SideBarProps> & {
|
|
661
554
|
Item: typeof SideBar_2.Item;
|
|
662
555
|
};
|