enwawa-ui 1.11.2 → 1.13.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/lib/index.d.ts +1221 -1196
- package/lib/index.d.ts.map +1 -1
- package/lib/index.es.js +654 -566
- package/lib/index.es.js.map +1 -1
- package/lib/index.js +651 -563
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode, ChangeEvent, JSXElementConstructor, ReactElement } from "react";
|
|
2
2
|
import { ButtonShape, ButtonSize, ButtonType } from "antd/es/button";
|
|
3
|
-
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps,
|
|
3
|
+
import { CheckboxProps, CountdownProps, DatePickerProps, ImageProps, AlertProps, BreadcrumbProps, InputNumberProps, DropdownProps, MenuProps, ColProps, PaginationProps, RadioChangeEvent, TooltipProps, RowProps, LayoutProps, SiderProps, SpaceProps, FormProps, UploadProps, TableProps, ModalFuncProps, ModalProps as _ModalProps1, StepsProps, FormInstance, SelectProps, TagProps } from "antd";
|
|
4
4
|
import { Dayjs } from "dayjs";
|
|
5
5
|
import { IconComponentProps } from "@ant-design/icons/lib/components/Icon";
|
|
6
6
|
import * as Icons from "@ant-design/icons";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { SwitchProps } from "antd/lib";
|
|
11
|
-
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
7
|
+
import { TabsProps } from "antd/es/tabs";
|
|
8
|
+
import { CardTabListType } from "antd/es/card";
|
|
9
|
+
import { CardType } from "antd/es/card/Card";
|
|
12
10
|
import { DotPosition } from "antd/es/carousel";
|
|
13
11
|
import { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
12
|
+
import { ValueType } from "@rc-component/mini-decimal";
|
|
14
13
|
import { NamePath, Store, StoreValue } from "antd/es/form/interface";
|
|
15
14
|
import { Rule } from "antd/es/form";
|
|
16
15
|
import { LabelTooltipType } from "antd/es/form/FormItemLabel";
|
|
17
|
-
import { TabsProps } from "antd/es/tabs";
|
|
18
|
-
import { CardTabListType } from "antd/es/card";
|
|
19
|
-
import { CardType } from "antd/es/card/Card";
|
|
20
16
|
import { Gutter } from "antd/es/grid/row";
|
|
17
|
+
import { BlockProps, EllipsisConfig, BaseType } from "antd/es/typography/Base";
|
|
21
18
|
import { DrawerProps } from "antd/es/drawer";
|
|
19
|
+
import { DefaultOptionType, LabeledValue } from "antd/es/select";
|
|
22
20
|
import { AnyObject } from "antd/es/_util/type";
|
|
23
21
|
import { ColumnsType } from "antd/es/table";
|
|
24
22
|
import { TableRowSelection } from "antd/es/table/interface";
|
|
25
23
|
import { GoogleMap, GoogleMapProps } from "@react-google-maps/api";
|
|
26
24
|
import { WatchOptions } from "rc-field-form/es/interface";
|
|
27
25
|
import { CheckboxChangeEvent } from "antd/es/checkbox";
|
|
26
|
+
import { RadioChangeEvent as _RadioChangeEvent1 } from "antd/es/radio";
|
|
27
|
+
import { SwitchProps } from "antd/lib";
|
|
28
28
|
export interface AtAvatarProps {
|
|
29
29
|
/**
|
|
30
30
|
* This attribute defines the alternative text describing the image
|
|
@@ -516,885 +516,694 @@ export interface AtImageProps {
|
|
|
516
516
|
preview?: ImageProps['preview'];
|
|
517
517
|
}
|
|
518
518
|
export const AtImage: React.FC<AtImageProps>;
|
|
519
|
-
export interface
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
color?: 'violet' | 'gold' | 'white';
|
|
523
|
-
type?:
|
|
519
|
+
export interface MlPlanCardProps {
|
|
520
|
+
title: string;
|
|
521
|
+
description: string;
|
|
522
|
+
$color?: 'violet' | 'gold' | 'white';
|
|
523
|
+
$type?: "secondary" | "success" | "warning" | "danger" | undefined;
|
|
524
|
+
$fontSize?: number;
|
|
524
525
|
}
|
|
525
|
-
export const
|
|
526
|
-
export interface
|
|
526
|
+
export const MlPlanCard: React.FC<MlPlanCardProps>;
|
|
527
|
+
export interface OrActiveCardsProps {
|
|
528
|
+
items: Array<{
|
|
529
|
+
title: string;
|
|
530
|
+
description: string;
|
|
531
|
+
}> | undefined;
|
|
532
|
+
type?: MlPlanCardProps['$type'];
|
|
533
|
+
fontSize?: number;
|
|
534
|
+
}
|
|
535
|
+
export const OrActiveCards: React.FC<OrActiveCardsProps>;
|
|
536
|
+
export interface OrAlertProps {
|
|
527
537
|
/**
|
|
528
|
-
* The
|
|
538
|
+
* The action of Alert
|
|
529
539
|
*/
|
|
530
|
-
|
|
540
|
+
action?: AlertProps['action'];
|
|
531
541
|
/**
|
|
532
|
-
*
|
|
542
|
+
* Called when close animation is finished
|
|
533
543
|
*/
|
|
534
|
-
|
|
544
|
+
afterClose?: AlertProps['afterClose'];
|
|
535
545
|
/**
|
|
536
|
-
*
|
|
546
|
+
* Whether to show as banner
|
|
537
547
|
*/
|
|
538
|
-
|
|
548
|
+
banner?: boolean;
|
|
539
549
|
/**
|
|
540
|
-
*
|
|
550
|
+
* Custom close icon, >=5.7.0: close button will be hidden when setting to null or false
|
|
541
551
|
*/
|
|
542
|
-
|
|
552
|
+
closeIcon?: boolean | React.ReactNode;
|
|
543
553
|
/**
|
|
544
|
-
*
|
|
554
|
+
* Closable text to show
|
|
545
555
|
*/
|
|
546
|
-
|
|
556
|
+
closable?: AlertProps['closable'];
|
|
547
557
|
/**
|
|
548
|
-
*
|
|
558
|
+
* Additional content of Alert
|
|
549
559
|
*/
|
|
550
|
-
|
|
551
|
-
upIcon?: React.ReactNode;
|
|
552
|
-
downIcon?: React.ReactNode;
|
|
553
|
-
};
|
|
560
|
+
description?: AlertProps['description'];
|
|
554
561
|
/**
|
|
555
|
-
*
|
|
562
|
+
* Custom icon, effective when showIcon is true
|
|
556
563
|
*/
|
|
557
|
-
|
|
564
|
+
icon?: AlertProps['icon'];
|
|
558
565
|
/**
|
|
559
|
-
*
|
|
566
|
+
* Content of Alert
|
|
560
567
|
*/
|
|
561
|
-
|
|
568
|
+
message?: AlertProps['message'];
|
|
562
569
|
/**
|
|
563
|
-
*
|
|
570
|
+
* Whether to show icon
|
|
564
571
|
*/
|
|
565
|
-
|
|
572
|
+
showIcon?: boolean;
|
|
566
573
|
/**
|
|
567
|
-
*
|
|
574
|
+
* Type of Alert styles, options: success, info, warning, error
|
|
568
575
|
*/
|
|
569
|
-
|
|
576
|
+
type?: AlertProps['type'];
|
|
570
577
|
/**
|
|
571
|
-
*
|
|
578
|
+
* Callback when Alert is closed
|
|
572
579
|
*/
|
|
573
|
-
|
|
580
|
+
onClose?: AlertProps['onClose'];
|
|
574
581
|
/**
|
|
575
|
-
*
|
|
582
|
+
* Children of Alert
|
|
576
583
|
*/
|
|
577
|
-
|
|
584
|
+
children?: React.ReactNode;
|
|
585
|
+
}
|
|
586
|
+
export const OrAlert: React.FC<OrAlertProps>;
|
|
587
|
+
export interface OrTabsProps {
|
|
578
588
|
/**
|
|
579
|
-
* The
|
|
589
|
+
* The ID for input
|
|
580
590
|
*/
|
|
581
|
-
|
|
591
|
+
id?: string;
|
|
582
592
|
/**
|
|
583
|
-
*
|
|
593
|
+
* Current TabPane's key
|
|
584
594
|
*/
|
|
585
|
-
|
|
595
|
+
activeKey?: string;
|
|
586
596
|
/**
|
|
587
|
-
*
|
|
597
|
+
* Customize add icon
|
|
588
598
|
*/
|
|
589
|
-
|
|
599
|
+
addIcon?: React.ReactNode;
|
|
590
600
|
/**
|
|
591
|
-
*
|
|
601
|
+
* Whether to change tabs with animation. Only works while tabPosition="top"
|
|
592
602
|
*/
|
|
593
|
-
|
|
603
|
+
animated?: boolean | {
|
|
604
|
+
inkBar: boolean;
|
|
605
|
+
tabPane: boolean;
|
|
606
|
+
};
|
|
594
607
|
/**
|
|
595
|
-
*
|
|
608
|
+
* Centers tabs
|
|
596
609
|
*/
|
|
597
|
-
|
|
610
|
+
centered?: boolean;
|
|
598
611
|
/**
|
|
599
|
-
*
|
|
612
|
+
* Initial active TabPane's key, if activeKey is not set
|
|
600
613
|
*/
|
|
601
|
-
|
|
614
|
+
defaultActiveKey?: string;
|
|
602
615
|
/**
|
|
603
|
-
*
|
|
616
|
+
* Hide plus icon or not. Only works while type="editable-card"
|
|
604
617
|
*/
|
|
605
|
-
|
|
618
|
+
hideAdd?: boolean;
|
|
606
619
|
/**
|
|
607
|
-
*
|
|
620
|
+
* Configure tab content
|
|
608
621
|
*/
|
|
609
|
-
|
|
622
|
+
items?: TabsProps['items'];
|
|
610
623
|
/**
|
|
611
|
-
*
|
|
624
|
+
* The custom icon of ellipsis
|
|
612
625
|
*/
|
|
613
|
-
|
|
626
|
+
moreIcon?: React.ReactNode;
|
|
614
627
|
/**
|
|
615
|
-
*
|
|
628
|
+
* className for more dropdown.
|
|
616
629
|
*/
|
|
617
|
-
|
|
630
|
+
popupClassName?: string;
|
|
618
631
|
/**
|
|
619
|
-
*
|
|
632
|
+
* Preset tab bar size
|
|
620
633
|
*/
|
|
621
|
-
|
|
634
|
+
size?: 'large' | 'middle' | 'small';
|
|
622
635
|
/**
|
|
623
|
-
*
|
|
636
|
+
* Extra content in tab bar
|
|
624
637
|
*/
|
|
625
|
-
|
|
638
|
+
tabBarExtraContent?: React.ReactNode | {
|
|
639
|
+
left?: React.ReactNode;
|
|
640
|
+
right?: React.ReactNode;
|
|
641
|
+
};
|
|
626
642
|
/**
|
|
627
|
-
* The
|
|
643
|
+
* The gap between tabs
|
|
628
644
|
*/
|
|
629
|
-
|
|
630
|
-
offset: ValueType;
|
|
631
|
-
type: 'up' | 'down';
|
|
632
|
-
}) => void;
|
|
645
|
+
tabBarGutter?: number;
|
|
633
646
|
/**
|
|
634
|
-
*
|
|
647
|
+
* Position of tabs
|
|
635
648
|
*/
|
|
636
|
-
|
|
649
|
+
tabPosition?: 'top' | 'right' | 'bottom' | 'left';
|
|
637
650
|
/**
|
|
638
|
-
*
|
|
651
|
+
* Whether destroy inactive TabPane when change tab
|
|
639
652
|
*/
|
|
640
|
-
|
|
653
|
+
destroyInactiveTabPane?: boolean;
|
|
641
654
|
/**
|
|
642
|
-
*
|
|
655
|
+
* Basic style of tabs
|
|
643
656
|
*/
|
|
644
|
-
|
|
657
|
+
type?: 'line' | 'card' | 'editable-card';
|
|
645
658
|
/**
|
|
646
|
-
*
|
|
659
|
+
* Callback executed when active tab is changed
|
|
647
660
|
*/
|
|
648
|
-
|
|
661
|
+
onChange?: (activeKey: string) => void;
|
|
649
662
|
/**
|
|
650
|
-
*
|
|
663
|
+
* Callback executed when tab is added or removed. Only works while type="editable-card"
|
|
651
664
|
*/
|
|
652
|
-
|
|
665
|
+
onEdit?: ((e: string | React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>, action: 'add' | 'remove') => void) | undefined;
|
|
653
666
|
/**
|
|
654
|
-
*
|
|
667
|
+
* Callback executed when tab is clicked
|
|
655
668
|
*/
|
|
656
|
-
|
|
669
|
+
onTabClick?: ((activeKey: string, e: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element>) => void) | undefined;
|
|
657
670
|
/**
|
|
658
|
-
*
|
|
671
|
+
* Trigger when tab scroll
|
|
659
672
|
*/
|
|
660
|
-
|
|
673
|
+
onTabScroll?: (info: {
|
|
674
|
+
direction: 'left' | 'right' | 'top' | 'bottom';
|
|
675
|
+
}) => void;
|
|
661
676
|
/**
|
|
662
|
-
*
|
|
677
|
+
* Children of the tabs
|
|
663
678
|
*/
|
|
664
|
-
|
|
679
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
665
680
|
/**
|
|
666
|
-
*
|
|
681
|
+
* hide extra content in tab bar
|
|
667
682
|
*/
|
|
668
|
-
|
|
683
|
+
hideExtra?: boolean;
|
|
669
684
|
}
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
685
|
+
export const OrTabs: React.FC<OrTabsProps>;
|
|
686
|
+
declare const colorMap: {
|
|
687
|
+
violet: string;
|
|
688
|
+
gold: string;
|
|
689
|
+
white: string;
|
|
690
|
+
gray: string;
|
|
691
|
+
lightGray: string;
|
|
692
|
+
black: string;
|
|
693
|
+
};
|
|
694
|
+
export interface MlCardProps {
|
|
675
695
|
/**
|
|
676
|
-
* The
|
|
696
|
+
* The ID for input
|
|
677
697
|
*/
|
|
678
|
-
|
|
698
|
+
id?: string;
|
|
679
699
|
/**
|
|
680
|
-
* The
|
|
700
|
+
* The action list, shows at the bottom of the Card
|
|
681
701
|
*/
|
|
682
|
-
|
|
702
|
+
actions?: Array<ReactNode>;
|
|
683
703
|
/**
|
|
684
|
-
*
|
|
704
|
+
* Current TabPane's key
|
|
685
705
|
*/
|
|
686
|
-
|
|
687
|
-
clearIcon?: ReactNode;
|
|
688
|
-
};
|
|
706
|
+
activeTabKey?: string;
|
|
689
707
|
/**
|
|
690
|
-
*
|
|
708
|
+
* Inline style to apply to the card content CSSProperties
|
|
691
709
|
*/
|
|
692
|
-
|
|
710
|
+
bodyStyle?: CSSProperties;
|
|
693
711
|
/**
|
|
694
|
-
*
|
|
712
|
+
* Toggles rendering of the border around the card
|
|
695
713
|
*/
|
|
696
|
-
|
|
714
|
+
bordered?: boolean;
|
|
697
715
|
/**
|
|
698
|
-
*
|
|
716
|
+
* Card cover
|
|
699
717
|
*/
|
|
700
|
-
|
|
718
|
+
cover?: ReactNode;
|
|
701
719
|
/**
|
|
702
|
-
*
|
|
720
|
+
* Initial active TabPane's key, if activeTabKey is not set
|
|
703
721
|
*/
|
|
704
|
-
|
|
722
|
+
defaultActiveTabKey?: string;
|
|
705
723
|
/**
|
|
706
|
-
*
|
|
724
|
+
* Content to render in the top-right corner of the card
|
|
707
725
|
*/
|
|
708
|
-
|
|
726
|
+
extra?: ReactNode;
|
|
709
727
|
/**
|
|
710
|
-
*
|
|
728
|
+
* Lift up when hovering card
|
|
711
729
|
*/
|
|
712
|
-
|
|
730
|
+
hoverable?: boolean;
|
|
713
731
|
/**
|
|
714
|
-
*
|
|
732
|
+
* Shows a loading indicator while the contents of the card are being fetched
|
|
715
733
|
*/
|
|
716
|
-
|
|
734
|
+
loading?: boolean;
|
|
717
735
|
/**
|
|
718
|
-
*
|
|
736
|
+
* Mark item as selected
|
|
719
737
|
*/
|
|
720
|
-
|
|
738
|
+
selected?: boolean;
|
|
721
739
|
/**
|
|
722
|
-
*
|
|
740
|
+
* Size of card
|
|
723
741
|
*/
|
|
724
|
-
|
|
742
|
+
size?: 'default' | 'small';
|
|
725
743
|
/**
|
|
726
|
-
*
|
|
744
|
+
* Extra content in tab bar
|
|
727
745
|
*/
|
|
728
|
-
|
|
746
|
+
tabBarExtraContent?: ReactNode;
|
|
729
747
|
/**
|
|
730
|
-
*
|
|
748
|
+
* List of TabPane's head
|
|
731
749
|
*/
|
|
732
|
-
|
|
750
|
+
tabList?: CardTabListType[];
|
|
733
751
|
/**
|
|
734
|
-
*
|
|
752
|
+
* Tabs
|
|
735
753
|
*/
|
|
736
|
-
|
|
754
|
+
tabProps?: TabsProps;
|
|
737
755
|
/**
|
|
738
|
-
*
|
|
756
|
+
* Card title
|
|
739
757
|
*/
|
|
740
|
-
|
|
741
|
-
}
|
|
742
|
-
/**
|
|
743
|
-
* Primary input UI component for user interaction
|
|
744
|
-
*/
|
|
745
|
-
export const AtTextInput: React.FC<AtTextInputProps>;
|
|
746
|
-
type AtPasswordInputProp = AtTextInputProps & {
|
|
747
|
-
iconRender?: (visible: boolean) => React.ReactNode;
|
|
748
|
-
};
|
|
749
|
-
export const AtPasswordInput: React.FC<AtPasswordInputProp>;
|
|
750
|
-
export interface AtRadioProps {
|
|
758
|
+
title?: ReactNode;
|
|
751
759
|
/**
|
|
752
|
-
*
|
|
760
|
+
* Card style type, can be set to inner or not set
|
|
753
761
|
*/
|
|
754
|
-
|
|
762
|
+
type?: CardType;
|
|
755
763
|
/**
|
|
756
|
-
* Specifies whether the radio is selected
|
|
757
|
-
*/
|
|
758
|
-
checked?: boolean;
|
|
759
764
|
/**
|
|
760
|
-
*
|
|
765
|
+
* Callback when card is clicked
|
|
761
766
|
*/
|
|
762
|
-
|
|
767
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
763
768
|
/**
|
|
764
|
-
*
|
|
769
|
+
* Callback when tab is switched
|
|
765
770
|
*/
|
|
766
|
-
|
|
771
|
+
onTabChange?: (key: string) => void;
|
|
772
|
+
children?: React.ReactNode;
|
|
767
773
|
/**
|
|
768
|
-
*
|
|
774
|
+
* Card width
|
|
769
775
|
*/
|
|
770
|
-
|
|
776
|
+
$width?: number;
|
|
771
777
|
/**
|
|
772
|
-
*
|
|
778
|
+
* border color for the card
|
|
773
779
|
*/
|
|
774
|
-
|
|
780
|
+
$borderColor?: 'violet' | 'gold' | 'white' | 'gray';
|
|
775
781
|
/**
|
|
776
|
-
*
|
|
782
|
+
* margin bottom for the card
|
|
777
783
|
*/
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
export const AtRadio: React.FC<AtRadioProps>;
|
|
781
|
-
export interface AtRadioButtonsProps {
|
|
784
|
+
$marginBottom?: number;
|
|
782
785
|
/**
|
|
783
|
-
*
|
|
786
|
+
* padding for the card
|
|
784
787
|
*/
|
|
785
|
-
|
|
788
|
+
$padding?: number;
|
|
786
789
|
/**
|
|
787
|
-
*
|
|
790
|
+
* background color for the card
|
|
788
791
|
*/
|
|
789
|
-
|
|
792
|
+
$backgroundColor?: string;
|
|
790
793
|
}
|
|
791
|
-
|
|
792
|
-
|
|
794
|
+
/**
|
|
795
|
+
* Primary input UI component for user interaction
|
|
796
|
+
*/
|
|
797
|
+
export const OrCard: React.FC<MlCardProps>;
|
|
798
|
+
export interface OrTicketCardProps {
|
|
793
799
|
/**
|
|
794
|
-
*
|
|
800
|
+
* Image source
|
|
795
801
|
*/
|
|
796
|
-
|
|
802
|
+
src?: string;
|
|
797
803
|
/**
|
|
798
|
-
* Title
|
|
804
|
+
* Title children
|
|
799
805
|
*/
|
|
800
806
|
title?: React.ReactNode;
|
|
801
807
|
/**
|
|
802
|
-
*
|
|
808
|
+
* Text children
|
|
803
809
|
*/
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
export const AtResult: React.FC<AtResultProps>;
|
|
807
|
-
export interface AtSelectProps {
|
|
810
|
+
description?: React.ReactNode;
|
|
808
811
|
/**
|
|
809
|
-
*
|
|
812
|
+
* input value
|
|
810
813
|
*/
|
|
811
|
-
|
|
814
|
+
value?: number;
|
|
812
815
|
/**
|
|
813
|
-
*
|
|
816
|
+
* Button Value
|
|
814
817
|
*/
|
|
815
|
-
|
|
818
|
+
buttonText?: string;
|
|
816
819
|
/**
|
|
817
|
-
*
|
|
820
|
+
* display input
|
|
818
821
|
*/
|
|
819
|
-
|
|
822
|
+
type?: 'custom' | 'static';
|
|
820
823
|
/**
|
|
821
|
-
*
|
|
824
|
+
* border color for the card
|
|
822
825
|
*/
|
|
823
|
-
|
|
826
|
+
$borderColor?: 'violet' | 'gold' | 'white' | 'gray';
|
|
824
827
|
/**
|
|
825
|
-
*
|
|
828
|
+
* On change callback
|
|
826
829
|
*/
|
|
827
|
-
|
|
830
|
+
onChange?: (e: string | React.MouseEvent<HTMLAnchorElement, MouseEvent> | React.MouseEvent<HTMLButtonElement, MouseEvent> | number | null) => void;
|
|
831
|
+
}
|
|
832
|
+
export const OrTicketCard: React.FC<OrTicketCardProps>;
|
|
833
|
+
export interface MlSubscriptionCardProps {
|
|
834
|
+
title: string;
|
|
835
|
+
description: string;
|
|
836
|
+
price: number;
|
|
837
|
+
value: string;
|
|
838
|
+
disabled?: boolean;
|
|
839
|
+
}
|
|
840
|
+
export const MlSubscriptionCard: React.FC<MlSubscriptionCardProps>;
|
|
841
|
+
export interface MlBreadcrumbProps {
|
|
828
842
|
/**
|
|
829
|
-
*
|
|
843
|
+
* Custom item renderer
|
|
830
844
|
*/
|
|
831
|
-
|
|
845
|
+
itemRender?: BreadcrumbProps['itemRender'];
|
|
832
846
|
/**
|
|
833
|
-
*
|
|
847
|
+
* Routing parameters
|
|
834
848
|
*/
|
|
835
|
-
|
|
849
|
+
params?: Record<string, string>;
|
|
836
850
|
/**
|
|
837
|
-
*
|
|
851
|
+
* The routing stack information of router
|
|
838
852
|
*/
|
|
839
|
-
|
|
853
|
+
items: BreadcrumbProps['items'];
|
|
840
854
|
/**
|
|
841
|
-
*
|
|
855
|
+
* Separator character
|
|
842
856
|
*/
|
|
843
|
-
|
|
857
|
+
separator?: BreadcrumbProps['separator'];
|
|
858
|
+
}
|
|
859
|
+
export const MlBreadcrumb: React.FC<MlBreadcrumbProps>;
|
|
860
|
+
export interface MlCarouselProps {
|
|
844
861
|
/**
|
|
845
|
-
*
|
|
846
|
-
* min-width same as input. Will ignore when value less than select width. false
|
|
847
|
-
* will disable virtual scroll
|
|
862
|
+
* The ID for input
|
|
848
863
|
*/
|
|
849
|
-
|
|
864
|
+
id?: string;
|
|
850
865
|
/**
|
|
851
|
-
*
|
|
866
|
+
* Whether to scroll automatically
|
|
852
867
|
*/
|
|
853
|
-
|
|
868
|
+
autoplay?: boolean;
|
|
854
869
|
/**
|
|
855
|
-
*
|
|
870
|
+
* Delay between each auto scroll (in milliseconds)
|
|
856
871
|
*/
|
|
857
|
-
|
|
872
|
+
autoplaySpeed?: number;
|
|
858
873
|
/**
|
|
859
|
-
*
|
|
874
|
+
* Center elements into carousel
|
|
860
875
|
*/
|
|
861
|
-
|
|
876
|
+
centerMode?: boolean;
|
|
862
877
|
/**
|
|
863
|
-
*
|
|
878
|
+
* The position of the dots, which can be one of top bottom left right
|
|
864
879
|
*/
|
|
865
|
-
|
|
880
|
+
dotPosition?: DotPosition;
|
|
866
881
|
/**
|
|
867
|
-
*
|
|
868
|
-
* compareFunction
|
|
882
|
+
* Whether to show the dots at the bottom of the gallery, object for dotsClass and any others
|
|
869
883
|
*/
|
|
870
|
-
|
|
884
|
+
dots?: boolean;
|
|
871
885
|
/**
|
|
872
|
-
* Whether to
|
|
873
|
-
* label: ReactNode }
|
|
886
|
+
* Whether to wait for the animation when switching
|
|
874
887
|
*/
|
|
875
|
-
|
|
888
|
+
waitForAnimate?: boolean;
|
|
876
889
|
/**
|
|
877
|
-
*
|
|
890
|
+
* Transition interpolation function name
|
|
878
891
|
*/
|
|
879
|
-
|
|
892
|
+
easing?: string;
|
|
880
893
|
/**
|
|
881
|
-
*
|
|
894
|
+
* Transition effect
|
|
882
895
|
*/
|
|
883
|
-
|
|
896
|
+
effect?: 'scrollx' | 'fade';
|
|
884
897
|
/**
|
|
885
|
-
*
|
|
898
|
+
* Callback function called after the current index changes
|
|
886
899
|
*/
|
|
887
|
-
|
|
900
|
+
afterChange?: (current: number) => void;
|
|
888
901
|
/**
|
|
889
|
-
*
|
|
902
|
+
* Callback function called before the current index changes
|
|
890
903
|
*/
|
|
891
|
-
|
|
904
|
+
beforeChange?: (current: number, next: number) => void;
|
|
905
|
+
children?: React.ReactNode;
|
|
906
|
+
}
|
|
907
|
+
export const MlCarousel: React.FC<MlCarouselProps>;
|
|
908
|
+
export interface MlCheckboxGroup {
|
|
892
909
|
/**
|
|
893
|
-
*
|
|
894
|
-
*/
|
|
895
|
-
|
|
910
|
+
* Default selected value
|
|
911
|
+
* */
|
|
912
|
+
defaultValue?: (string | number)[];
|
|
896
913
|
/**
|
|
897
|
-
*
|
|
914
|
+
* If disable all checkboxes
|
|
898
915
|
*/
|
|
899
|
-
|
|
916
|
+
disabled?: boolean;
|
|
900
917
|
/**
|
|
901
|
-
*
|
|
918
|
+
* The name property of all input[type="checkbox"] children
|
|
902
919
|
*/
|
|
903
|
-
|
|
920
|
+
name?: string;
|
|
904
921
|
/**
|
|
905
|
-
*
|
|
922
|
+
* Specifies options
|
|
906
923
|
*/
|
|
907
|
-
|
|
924
|
+
options?: CheckboxGroupProps['options'];
|
|
908
925
|
/**
|
|
909
|
-
*
|
|
910
|
-
set, it should be set to label
|
|
926
|
+
* Used for setting the currently selected value
|
|
911
927
|
*/
|
|
912
|
-
|
|
928
|
+
value?: (string | number | boolean)[];
|
|
913
929
|
/**
|
|
914
|
-
*
|
|
930
|
+
* The callback function that is triggered when the state changes
|
|
915
931
|
*/
|
|
916
|
-
|
|
932
|
+
onChange?: CheckboxGroupProps['onChange'];
|
|
933
|
+
}
|
|
934
|
+
export const MlCheckboxGroup: React.FC<MlCheckboxGroup>;
|
|
935
|
+
export interface AtNumberInputProps {
|
|
917
936
|
/**
|
|
918
|
-
*
|
|
937
|
+
* The ID for input
|
|
919
938
|
*/
|
|
920
|
-
|
|
939
|
+
id?: string;
|
|
921
940
|
/**
|
|
922
|
-
*
|
|
941
|
+
* The label text displayed after (on the right side of) the input field
|
|
923
942
|
*/
|
|
924
|
-
|
|
943
|
+
addonAfter?: ReactNode;
|
|
925
944
|
/**
|
|
926
|
-
* The
|
|
945
|
+
* The label text displayed before (on the left side of) the input field
|
|
927
946
|
*/
|
|
928
|
-
|
|
947
|
+
addonBefore?: ReactNode;
|
|
929
948
|
/**
|
|
930
|
-
*
|
|
949
|
+
* If get focus when component mounted
|
|
931
950
|
*/
|
|
932
|
-
|
|
951
|
+
autoFocus?: boolean;
|
|
933
952
|
/**
|
|
934
|
-
*
|
|
953
|
+
* Whether has border style
|
|
935
954
|
*/
|
|
936
|
-
|
|
955
|
+
bordered?: boolean;
|
|
937
956
|
/**
|
|
938
|
-
*
|
|
957
|
+
* Whether to show +- controls, or set custom arrows icon
|
|
939
958
|
*/
|
|
940
|
-
|
|
959
|
+
controls?: boolean | {
|
|
960
|
+
upIcon?: React.ReactNode;
|
|
961
|
+
downIcon?: React.ReactNode;
|
|
962
|
+
};
|
|
941
963
|
/**
|
|
942
|
-
*
|
|
964
|
+
* Decimal separator
|
|
943
965
|
*/
|
|
944
|
-
|
|
966
|
+
decimalSeparator?: string;
|
|
945
967
|
/**
|
|
946
|
-
*
|
|
968
|
+
* The initial value
|
|
947
969
|
*/
|
|
948
|
-
|
|
970
|
+
defaultValue?: number;
|
|
949
971
|
/**
|
|
950
|
-
*
|
|
972
|
+
* If disable the input
|
|
951
973
|
*/
|
|
952
|
-
|
|
974
|
+
disabled?: boolean;
|
|
953
975
|
/**
|
|
954
|
-
*
|
|
976
|
+
* Specifies the format of the value presented
|
|
955
977
|
*/
|
|
956
|
-
|
|
978
|
+
formatter?: InputNumberProps['formatter'];
|
|
957
979
|
/**
|
|
958
|
-
*
|
|
980
|
+
* If enable keyboard behavior
|
|
959
981
|
*/
|
|
960
|
-
|
|
982
|
+
keyboard?: boolean;
|
|
961
983
|
/**
|
|
962
|
-
*
|
|
963
|
-
* multiple or tags, effective in multiple or tags mode only
|
|
984
|
+
* The max value
|
|
964
985
|
*/
|
|
965
|
-
|
|
986
|
+
max?: number;
|
|
966
987
|
/**
|
|
967
|
-
*
|
|
988
|
+
* The min value
|
|
968
989
|
*/
|
|
969
|
-
|
|
990
|
+
min?: number;
|
|
970
991
|
/**
|
|
971
|
-
*
|
|
992
|
+
* Specifies the value extracted from formatter
|
|
972
993
|
*/
|
|
973
|
-
|
|
994
|
+
parser?: InputNumberProps['parser'];
|
|
974
995
|
/**
|
|
975
|
-
*
|
|
996
|
+
* The precision of input value. Will use formatter when config of formatter
|
|
976
997
|
*/
|
|
977
|
-
|
|
998
|
+
precision?: number;
|
|
978
999
|
/**
|
|
979
|
-
*
|
|
1000
|
+
* If readonly the input
|
|
980
1001
|
*/
|
|
981
|
-
|
|
1002
|
+
readOnly?: boolean;
|
|
982
1003
|
/**
|
|
983
|
-
*
|
|
1004
|
+
* Set validation status
|
|
984
1005
|
*/
|
|
985
|
-
|
|
1006
|
+
status?: 'error' | 'warning';
|
|
986
1007
|
/**
|
|
987
|
-
*
|
|
1008
|
+
* The prefix icon for the Input
|
|
988
1009
|
*/
|
|
989
|
-
|
|
1010
|
+
prefix?: ReactNode;
|
|
990
1011
|
/**
|
|
991
|
-
*
|
|
1012
|
+
* The height of input box
|
|
992
1013
|
*/
|
|
993
|
-
|
|
1014
|
+
size?: 'large' | 'middle' | 'small';
|
|
994
1015
|
/**
|
|
995
|
-
*
|
|
1016
|
+
* The number to which the current value is increased or decreased. It can be an integer or decimal
|
|
996
1017
|
*/
|
|
997
|
-
|
|
998
|
-
}
|
|
999
|
-
export const AtSelect: React.FC<AtSelectProps>;
|
|
1000
|
-
export interface AtSwitchProps extends SwitchProps {
|
|
1018
|
+
step?: number | string;
|
|
1001
1019
|
/**
|
|
1002
|
-
*
|
|
1020
|
+
* Set value as string to support high precision decimals. Will return string value by onChange
|
|
1003
1021
|
*/
|
|
1004
|
-
|
|
1022
|
+
stringMode?: boolean;
|
|
1005
1023
|
/**
|
|
1006
|
-
*
|
|
1024
|
+
* The current value
|
|
1007
1025
|
*/
|
|
1008
|
-
|
|
1026
|
+
value?: number;
|
|
1009
1027
|
/**
|
|
1010
|
-
*
|
|
1028
|
+
* The callback triggered when the value is changed
|
|
1011
1029
|
*/
|
|
1012
|
-
|
|
1030
|
+
onChange?: (value: number | string | null) => void;
|
|
1013
1031
|
/**
|
|
1014
|
-
*
|
|
1032
|
+
* The callback function that is triggered when Enter key is pressed
|
|
1015
1033
|
*/
|
|
1016
|
-
|
|
1017
|
-
}
|
|
1018
|
-
export const AtSwitch: React.FC<AtSwitchProps>;
|
|
1019
|
-
export interface AtTagProps {
|
|
1034
|
+
onPressEnter?: (e: ChangeEvent<EventTarget>) => void;
|
|
1020
1035
|
/**
|
|
1021
|
-
*
|
|
1036
|
+
* The callback function that is triggered when click up or down buttons
|
|
1022
1037
|
*/
|
|
1023
|
-
|
|
1038
|
+
onStep?: (value: number, info: {
|
|
1039
|
+
offset: ValueType;
|
|
1040
|
+
type: 'up' | 'down';
|
|
1041
|
+
}) => void;
|
|
1024
1042
|
/**
|
|
1025
|
-
*
|
|
1043
|
+
* Element width
|
|
1026
1044
|
*/
|
|
1027
|
-
|
|
1045
|
+
$width?: string;
|
|
1028
1046
|
/**
|
|
1029
|
-
*
|
|
1047
|
+
* Element height
|
|
1030
1048
|
*/
|
|
1031
|
-
|
|
1049
|
+
$height?: string;
|
|
1032
1050
|
/**
|
|
1033
|
-
*
|
|
1051
|
+
* Text align
|
|
1034
1052
|
*/
|
|
1035
|
-
|
|
1053
|
+
$textAlign?: 'left' | 'center' | 'right';
|
|
1036
1054
|
/**
|
|
1037
|
-
*
|
|
1055
|
+
* Font size
|
|
1038
1056
|
*/
|
|
1039
|
-
|
|
1057
|
+
$fontSize?: string;
|
|
1040
1058
|
/**
|
|
1041
|
-
*
|
|
1059
|
+
* on Input
|
|
1042
1060
|
*/
|
|
1043
|
-
|
|
1044
|
-
}
|
|
1045
|
-
export const AtTag: React.FC<AtTagProps>;
|
|
1046
|
-
declare const colorMap: {
|
|
1047
|
-
violet: string;
|
|
1048
|
-
gold: string;
|
|
1049
|
-
white: string;
|
|
1050
|
-
gray: string;
|
|
1051
|
-
lightGray: string;
|
|
1052
|
-
black: string;
|
|
1053
|
-
};
|
|
1054
|
-
export interface AtTextProps {
|
|
1061
|
+
onInput?: InputNumberProps['onInput'];
|
|
1055
1062
|
/**
|
|
1056
|
-
*
|
|
1063
|
+
* max length
|
|
1057
1064
|
*/
|
|
1058
|
-
|
|
1065
|
+
maxLength?: number;
|
|
1059
1066
|
/**
|
|
1060
|
-
*
|
|
1067
|
+
* key down
|
|
1061
1068
|
*/
|
|
1062
|
-
|
|
1069
|
+
onKeyDown?: InputNumberProps['onKeyDown'];
|
|
1063
1070
|
/**
|
|
1064
|
-
*
|
|
1071
|
+
* On focus
|
|
1065
1072
|
*/
|
|
1066
|
-
|
|
1073
|
+
onFocus?: InputNumberProps['onFocus'];
|
|
1067
1074
|
/**
|
|
1068
|
-
*
|
|
1075
|
+
* placeholder
|
|
1069
1076
|
*/
|
|
1070
|
-
|
|
1077
|
+
placeholder?: string;
|
|
1078
|
+
}
|
|
1079
|
+
/**
|
|
1080
|
+
* Primary input UI component for user interaction
|
|
1081
|
+
*/
|
|
1082
|
+
export const AtNumberInput: React.FC<AtNumberInputProps>;
|
|
1083
|
+
interface UseInputOTPProps {
|
|
1084
|
+
onChange?: (value: Array<string | undefined>) => void;
|
|
1085
|
+
}
|
|
1086
|
+
export const useCodeInput: ({ onChange, }: UseInputOTPProps) => {
|
|
1087
|
+
handleChange: (index: number) => void;
|
|
1088
|
+
handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
1089
|
+
handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>, index: number) => void;
|
|
1090
|
+
otpValue: (string | undefined)[];
|
|
1091
|
+
};
|
|
1092
|
+
export interface CodeInputProps {
|
|
1071
1093
|
/**
|
|
1072
|
-
*
|
|
1094
|
+
* number of digits (input) to show
|
|
1073
1095
|
*/
|
|
1074
|
-
|
|
1096
|
+
digits?: number;
|
|
1075
1097
|
/**
|
|
1076
|
-
*
|
|
1098
|
+
* The input content value
|
|
1077
1099
|
*/
|
|
1078
|
-
|
|
1100
|
+
value?: number;
|
|
1079
1101
|
/**
|
|
1080
|
-
*
|
|
1102
|
+
* Callback when user input
|
|
1081
1103
|
*/
|
|
1082
|
-
|
|
1104
|
+
onChange?: (value: Array<string | undefined>) => void;
|
|
1083
1105
|
/**
|
|
1084
|
-
*
|
|
1106
|
+
* font size of the input
|
|
1085
1107
|
*/
|
|
1086
|
-
|
|
1108
|
+
fontSize?: string;
|
|
1087
1109
|
/**
|
|
1088
|
-
*
|
|
1110
|
+
* height of the input
|
|
1089
1111
|
*/
|
|
1090
|
-
|
|
1112
|
+
height?: string;
|
|
1113
|
+
}
|
|
1114
|
+
export const MlCodeInput: React.FC<CodeInputProps>;
|
|
1115
|
+
export interface AtDropdownProps extends DropdownProps {
|
|
1091
1116
|
/**
|
|
1092
|
-
*
|
|
1117
|
+
* If true, an arrow will be shown
|
|
1093
1118
|
*/
|
|
1094
|
-
|
|
1119
|
+
arrow?: boolean;
|
|
1095
1120
|
/**
|
|
1096
|
-
*
|
|
1121
|
+
* Whether to adjust popup placement automatically in case of overflow
|
|
1097
1122
|
*/
|
|
1098
|
-
|
|
1123
|
+
autoAdjustOverflow?: boolean;
|
|
1099
1124
|
/**
|
|
1100
|
-
*
|
|
1125
|
+
* If true, the dropdown will be disabled
|
|
1101
1126
|
*/
|
|
1102
|
-
|
|
1127
|
+
disabled?: boolean;
|
|
1103
1128
|
/**
|
|
1104
|
-
*
|
|
1129
|
+
* A function used to render the dropdown menu
|
|
1105
1130
|
*/
|
|
1106
|
-
|
|
1131
|
+
dropdownRender?: (menu: ReactNode) => ReactNode;
|
|
1107
1132
|
/**
|
|
1108
|
-
*
|
|
1133
|
+
* Style of the dropdown menu
|
|
1109
1134
|
*/
|
|
1110
|
-
|
|
1111
|
-
}
|
|
1112
|
-
export const AtText: React.FC<AtTextProps>;
|
|
1113
|
-
export interface AtTitleProps {
|
|
1135
|
+
overlayStyle?: React.CSSProperties;
|
|
1114
1136
|
/**
|
|
1115
|
-
*
|
|
1137
|
+
* Placement of the dropdown menu. Possible values: 'topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'
|
|
1116
1138
|
*/
|
|
1117
|
-
|
|
1139
|
+
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
1118
1140
|
/**
|
|
1119
|
-
*
|
|
1141
|
+
* Triggers for showing the overlay. Possible values: 'click', 'hover', 'contextMenu'
|
|
1120
1142
|
*/
|
|
1121
|
-
|
|
1143
|
+
trigger?: ('click' | 'hover' | 'contextMenu')[];
|
|
1122
1144
|
/**
|
|
1123
|
-
*
|
|
1145
|
+
* If true, the dropdown is opened
|
|
1124
1146
|
*/
|
|
1125
|
-
|
|
1147
|
+
open?: boolean;
|
|
1126
1148
|
/**
|
|
1127
|
-
*
|
|
1149
|
+
* A function to be called when visible changes
|
|
1128
1150
|
*/
|
|
1129
|
-
|
|
1151
|
+
onOpenChange?: (visible: boolean) => void;
|
|
1130
1152
|
/**
|
|
1131
|
-
*
|
|
1153
|
+
* Child elements of the Dropdown component
|
|
1132
1154
|
*/
|
|
1133
|
-
|
|
1155
|
+
children?: ReactNode;
|
|
1134
1156
|
/**
|
|
1135
|
-
*
|
|
1157
|
+
* Menu items
|
|
1136
1158
|
*/
|
|
1137
|
-
|
|
1159
|
+
menu?: MenuProps;
|
|
1138
1160
|
/**
|
|
1139
|
-
*
|
|
1161
|
+
* If true, the loading icon will be shown
|
|
1140
1162
|
*/
|
|
1141
|
-
|
|
1163
|
+
loading?: boolean;
|
|
1142
1164
|
/**
|
|
1143
|
-
*
|
|
1165
|
+
* If true, the dropdown will be shown as a button
|
|
1144
1166
|
*/
|
|
1145
|
-
|
|
1167
|
+
button?: boolean;
|
|
1146
1168
|
/**
|
|
1147
|
-
*
|
|
1169
|
+
* when button is true, the onClick function will be called
|
|
1148
1170
|
*/
|
|
1149
|
-
onClick?:
|
|
1171
|
+
onClick?: () => void;
|
|
1172
|
+
}
|
|
1173
|
+
export const MIDropdown: React.FC<AtDropdownProps>;
|
|
1174
|
+
export interface MlFromItemProps {
|
|
1150
1175
|
/**
|
|
1151
|
-
*
|
|
1176
|
+
* Set the dependencies field by names
|
|
1152
1177
|
*/
|
|
1153
|
-
|
|
1178
|
+
dependencies?: string[];
|
|
1154
1179
|
/**
|
|
1155
|
-
*
|
|
1180
|
+
* The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time
|
|
1156
1181
|
*/
|
|
1157
|
-
|
|
1182
|
+
extra?: string;
|
|
1158
1183
|
/**
|
|
1159
|
-
*
|
|
1184
|
+
* Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input
|
|
1160
1185
|
*/
|
|
1161
|
-
|
|
1186
|
+
hasFeedback?: boolean;
|
|
1162
1187
|
/**
|
|
1163
|
-
*
|
|
1188
|
+
* The prompt message. If not provided, the prompt message will be generated by the validation rule.
|
|
1164
1189
|
*/
|
|
1165
|
-
|
|
1190
|
+
help?: string;
|
|
1166
1191
|
/**
|
|
1167
|
-
*
|
|
1192
|
+
* Whether to hide Form.Item (still collect and validate value)
|
|
1168
1193
|
*/
|
|
1169
|
-
|
|
1194
|
+
hidden?: boolean;
|
|
1170
1195
|
/**
|
|
1171
|
-
*
|
|
1196
|
+
* Config sub default value. Form initialValues get higher priority when conflict
|
|
1172
1197
|
*/
|
|
1173
|
-
|
|
1198
|
+
initialValue?: string;
|
|
1174
1199
|
/**
|
|
1175
|
-
*
|
|
1200
|
+
* Label text
|
|
1176
1201
|
*/
|
|
1177
|
-
|
|
1178
|
-
}
|
|
1179
|
-
export const AtTitle: React.FC<AtTitleProps>;
|
|
1180
|
-
export interface MlBreadcrumbProps {
|
|
1202
|
+
label?: string;
|
|
1181
1203
|
/**
|
|
1182
|
-
*
|
|
1204
|
+
* The layout of label. You can set span offset to something like {span: 3, offset: 12} or sm: {span: 3, offset: 12} same as with <Col>. You can set labelCol on Form which will not affect nest Item. If both exists, use Item first
|
|
1183
1205
|
*/
|
|
1184
|
-
|
|
1185
|
-
/**
|
|
1186
|
-
* Routing parameters
|
|
1187
|
-
*/
|
|
1188
|
-
params?: Record<string, string>;
|
|
1189
|
-
/**
|
|
1190
|
-
* The routing stack information of router
|
|
1191
|
-
*/
|
|
1192
|
-
items: BreadcrumbProps['items'];
|
|
1193
|
-
/**
|
|
1194
|
-
* Separator character
|
|
1195
|
-
*/
|
|
1196
|
-
separator?: BreadcrumbProps['separator'];
|
|
1197
|
-
}
|
|
1198
|
-
export const MlBreadcrumb: React.FC<MlBreadcrumbProps>;
|
|
1199
|
-
export interface MlCarouselProps {
|
|
1200
|
-
/**
|
|
1201
|
-
* The ID for input
|
|
1202
|
-
*/
|
|
1203
|
-
id?: string;
|
|
1204
|
-
/**
|
|
1205
|
-
* Whether to scroll automatically
|
|
1206
|
-
*/
|
|
1207
|
-
autoplay?: boolean;
|
|
1208
|
-
/**
|
|
1209
|
-
* Delay between each auto scroll (in milliseconds)
|
|
1210
|
-
*/
|
|
1211
|
-
autoplaySpeed?: number;
|
|
1212
|
-
/**
|
|
1213
|
-
* Center elements into carousel
|
|
1214
|
-
*/
|
|
1215
|
-
centerMode?: boolean;
|
|
1216
|
-
/**
|
|
1217
|
-
* The position of the dots, which can be one of top bottom left right
|
|
1218
|
-
*/
|
|
1219
|
-
dotPosition?: DotPosition;
|
|
1220
|
-
/**
|
|
1221
|
-
* Whether to show the dots at the bottom of the gallery, object for dotsClass and any others
|
|
1222
|
-
*/
|
|
1223
|
-
dots?: boolean;
|
|
1224
|
-
/**
|
|
1225
|
-
* Whether to wait for the animation when switching
|
|
1226
|
-
*/
|
|
1227
|
-
waitForAnimate?: boolean;
|
|
1228
|
-
/**
|
|
1229
|
-
* Transition interpolation function name
|
|
1230
|
-
*/
|
|
1231
|
-
easing?: string;
|
|
1232
|
-
/**
|
|
1233
|
-
* Transition effect
|
|
1234
|
-
*/
|
|
1235
|
-
effect?: 'scrollx' | 'fade';
|
|
1236
|
-
/**
|
|
1237
|
-
* Callback function called after the current index changes
|
|
1238
|
-
*/
|
|
1239
|
-
afterChange?: (current: number) => void;
|
|
1240
|
-
/**
|
|
1241
|
-
* Callback function called before the current index changes
|
|
1242
|
-
*/
|
|
1243
|
-
beforeChange?: (current: number, next: number) => void;
|
|
1244
|
-
children?: React.ReactNode;
|
|
1245
|
-
}
|
|
1246
|
-
export const MlCarousel: React.FC<MlCarouselProps>;
|
|
1247
|
-
export interface MlCheckboxGroup {
|
|
1248
|
-
/**
|
|
1249
|
-
* Default selected value
|
|
1250
|
-
* */
|
|
1251
|
-
defaultValue?: (string | number)[];
|
|
1252
|
-
/**
|
|
1253
|
-
* If disable all checkboxes
|
|
1254
|
-
*/
|
|
1255
|
-
disabled?: boolean;
|
|
1256
|
-
/**
|
|
1257
|
-
* The name property of all input[type="checkbox"] children
|
|
1258
|
-
*/
|
|
1259
|
-
name?: string;
|
|
1260
|
-
/**
|
|
1261
|
-
* Specifies options
|
|
1262
|
-
*/
|
|
1263
|
-
options?: CheckboxGroupProps['options'];
|
|
1264
|
-
/**
|
|
1265
|
-
* Used for setting the currently selected value
|
|
1266
|
-
*/
|
|
1267
|
-
value?: (string | number | boolean)[];
|
|
1268
|
-
/**
|
|
1269
|
-
* The callback function that is triggered when the state changes
|
|
1270
|
-
*/
|
|
1271
|
-
onChange?: CheckboxGroupProps['onChange'];
|
|
1272
|
-
}
|
|
1273
|
-
export const MlCheckboxGroup: React.FC<MlCheckboxGroup>;
|
|
1274
|
-
interface UseInputOTPProps {
|
|
1275
|
-
onChange?: (value: Array<string | undefined>) => void;
|
|
1276
|
-
}
|
|
1277
|
-
export const useCodeInput: ({ onChange, }: UseInputOTPProps) => {
|
|
1278
|
-
handleChange: (index: number) => void;
|
|
1279
|
-
handleFocus: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
1280
|
-
handleKeyDown: (e: React.KeyboardEvent<HTMLInputElement>, index: number) => void;
|
|
1281
|
-
otpValue: (string | undefined)[];
|
|
1282
|
-
};
|
|
1283
|
-
export interface CodeInputProps {
|
|
1284
|
-
/**
|
|
1285
|
-
* number of digits (input) to show
|
|
1286
|
-
*/
|
|
1287
|
-
digits?: number;
|
|
1288
|
-
/**
|
|
1289
|
-
* The input content value
|
|
1290
|
-
*/
|
|
1291
|
-
value?: number;
|
|
1292
|
-
/**
|
|
1293
|
-
* Callback when user input
|
|
1294
|
-
*/
|
|
1295
|
-
onChange?: (value: Array<string | undefined>) => void;
|
|
1296
|
-
/**
|
|
1297
|
-
* font size of the input
|
|
1298
|
-
*/
|
|
1299
|
-
fontSize?: string;
|
|
1300
|
-
/**
|
|
1301
|
-
* height of the input
|
|
1302
|
-
*/
|
|
1303
|
-
height?: string;
|
|
1304
|
-
}
|
|
1305
|
-
export const MlCodeInput: React.FC<CodeInputProps>;
|
|
1306
|
-
export interface AtDropdownProps extends DropdownProps {
|
|
1307
|
-
/**
|
|
1308
|
-
* If true, an arrow will be shown
|
|
1309
|
-
*/
|
|
1310
|
-
arrow?: boolean;
|
|
1311
|
-
/**
|
|
1312
|
-
* Whether to adjust popup placement automatically in case of overflow
|
|
1313
|
-
*/
|
|
1314
|
-
autoAdjustOverflow?: boolean;
|
|
1315
|
-
/**
|
|
1316
|
-
* If true, the dropdown will be disabled
|
|
1317
|
-
*/
|
|
1318
|
-
disabled?: boolean;
|
|
1319
|
-
/**
|
|
1320
|
-
* A function used to render the dropdown menu
|
|
1321
|
-
*/
|
|
1322
|
-
dropdownRender?: (menu: ReactNode) => ReactNode;
|
|
1323
|
-
/**
|
|
1324
|
-
* Style of the dropdown menu
|
|
1325
|
-
*/
|
|
1326
|
-
overlayStyle?: React.CSSProperties;
|
|
1327
|
-
/**
|
|
1328
|
-
* Placement of the dropdown menu. Possible values: 'topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight'
|
|
1329
|
-
*/
|
|
1330
|
-
placement?: 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
1331
|
-
/**
|
|
1332
|
-
* Triggers for showing the overlay. Possible values: 'click', 'hover', 'contextMenu'
|
|
1333
|
-
*/
|
|
1334
|
-
trigger?: ('click' | 'hover' | 'contextMenu')[];
|
|
1335
|
-
/**
|
|
1336
|
-
* If true, the dropdown is opened
|
|
1337
|
-
*/
|
|
1338
|
-
open?: boolean;
|
|
1339
|
-
/**
|
|
1340
|
-
* A function to be called when visible changes
|
|
1341
|
-
*/
|
|
1342
|
-
onOpenChange?: (visible: boolean) => void;
|
|
1343
|
-
/**
|
|
1344
|
-
* Child elements of the Dropdown component
|
|
1345
|
-
*/
|
|
1346
|
-
children?: ReactNode;
|
|
1347
|
-
/**
|
|
1348
|
-
* Menu items
|
|
1349
|
-
*/
|
|
1350
|
-
menu?: MenuProps;
|
|
1351
|
-
/**
|
|
1352
|
-
* If true, the loading icon will be shown
|
|
1353
|
-
*/
|
|
1354
|
-
loading?: boolean;
|
|
1355
|
-
/**
|
|
1356
|
-
* If true, the dropdown will be shown as a button
|
|
1357
|
-
*/
|
|
1358
|
-
button?: boolean;
|
|
1359
|
-
/**
|
|
1360
|
-
* when button is true, the onClick function will be called
|
|
1361
|
-
*/
|
|
1362
|
-
onClick?: () => void;
|
|
1363
|
-
}
|
|
1364
|
-
export const MIDropdown: React.FC<AtDropdownProps>;
|
|
1365
|
-
export interface MlFromItemProps {
|
|
1366
|
-
/**
|
|
1367
|
-
* Set the dependencies field by names
|
|
1368
|
-
*/
|
|
1369
|
-
dependencies?: string[];
|
|
1370
|
-
/**
|
|
1371
|
-
* The extra prompt message. It is similar to help. Usage example: to display error message and prompt message at the same time
|
|
1372
|
-
*/
|
|
1373
|
-
extra?: string;
|
|
1374
|
-
/**
|
|
1375
|
-
* Used with validateStatus, this option specifies the validation status icon. Recommended to be used only with Input
|
|
1376
|
-
*/
|
|
1377
|
-
hasFeedback?: boolean;
|
|
1378
|
-
/**
|
|
1379
|
-
* The prompt message. If not provided, the prompt message will be generated by the validation rule.
|
|
1380
|
-
*/
|
|
1381
|
-
help?: string;
|
|
1382
|
-
/**
|
|
1383
|
-
* Whether to hide Form.Item (still collect and validate value)
|
|
1384
|
-
*/
|
|
1385
|
-
hidden?: boolean;
|
|
1386
|
-
/**
|
|
1387
|
-
* Config sub default value. Form initialValues get higher priority when conflict
|
|
1388
|
-
*/
|
|
1389
|
-
initialValue?: string;
|
|
1390
|
-
/**
|
|
1391
|
-
* Label text
|
|
1392
|
-
*/
|
|
1393
|
-
label?: string;
|
|
1394
|
-
/**
|
|
1395
|
-
* The layout of label. You can set span offset to something like {span: 3, offset: 12} or sm: {span: 3, offset: 12} same as with <Col>. You can set labelCol on Form which will not affect nest Item. If both exists, use Item first
|
|
1396
|
-
*/
|
|
1397
|
-
labelCol?: ColProps;
|
|
1206
|
+
labelCol?: ColProps;
|
|
1398
1207
|
/**
|
|
1399
1208
|
* The default validate field info
|
|
1400
1209
|
*/
|
|
@@ -1557,14 +1366,6 @@ export interface MlPaginationProps {
|
|
|
1557
1366
|
onShowSizeChange?: (current: number, size: number) => void;
|
|
1558
1367
|
}
|
|
1559
1368
|
export const MlPagination: React.FC<MlPaginationProps>;
|
|
1560
|
-
export interface MlPlanCardProps {
|
|
1561
|
-
title: string;
|
|
1562
|
-
description: string;
|
|
1563
|
-
$color?: 'violet' | 'gold' | 'white';
|
|
1564
|
-
$type?: "secondary" | "success" | "warning" | "danger" | undefined;
|
|
1565
|
-
$fontSize?: number;
|
|
1566
|
-
}
|
|
1567
|
-
export const MlPlanCard: React.FC<MlPlanCardProps>;
|
|
1568
1369
|
export interface MlRadioGroupProps {
|
|
1569
1370
|
/**
|
|
1570
1371
|
* The ID for input
|
|
@@ -1609,7 +1410,7 @@ export interface MlRadioGroupProps {
|
|
|
1609
1410
|
/**
|
|
1610
1411
|
* The callback function that is triggered when the state changes
|
|
1611
1412
|
*/
|
|
1612
|
-
onChange?: (e:
|
|
1413
|
+
onChange?: (e: RadioChangeEvent) => void;
|
|
1613
1414
|
/**
|
|
1614
1415
|
* border box
|
|
1615
1416
|
*/
|
|
@@ -1620,497 +1421,263 @@ export interface MlRadioGroupProps {
|
|
|
1620
1421
|
padding?: string;
|
|
1621
1422
|
}
|
|
1622
1423
|
export const MlRadioGroup: React.FC<MlRadioGroupProps>;
|
|
1623
|
-
export interface
|
|
1424
|
+
export interface AtTextInputProps {
|
|
1624
1425
|
/**
|
|
1625
|
-
*
|
|
1426
|
+
* The label text displayed after (on the right side of) the input field
|
|
1626
1427
|
*/
|
|
1627
|
-
|
|
1428
|
+
addonAfter?: ReactNode;
|
|
1628
1429
|
/**
|
|
1629
|
-
*
|
|
1430
|
+
* The label text displayed before (on the left side of) the input field
|
|
1630
1431
|
*/
|
|
1631
|
-
|
|
1432
|
+
addonBefore?: ReactNode;
|
|
1632
1433
|
/**
|
|
1633
|
-
*
|
|
1434
|
+
* If allow to remove input content with clear icon
|
|
1634
1435
|
*/
|
|
1635
|
-
|
|
1436
|
+
allowClear?: boolean | {
|
|
1437
|
+
clearIcon?: ReactNode;
|
|
1438
|
+
};
|
|
1636
1439
|
/**
|
|
1637
|
-
*
|
|
1440
|
+
* Whether has border style
|
|
1638
1441
|
*/
|
|
1639
|
-
|
|
1640
|
-
}
|
|
1641
|
-
export const MlSearchBox: React.FC<MlSearchBoxProps>;
|
|
1642
|
-
export interface MlSubscriptionCardProps {
|
|
1643
|
-
title: string;
|
|
1644
|
-
description: string;
|
|
1645
|
-
price: number;
|
|
1646
|
-
value: string;
|
|
1647
|
-
disabled?: boolean;
|
|
1648
|
-
}
|
|
1649
|
-
export const MlSubscriptionCard: React.FC<MlSubscriptionCardProps>;
|
|
1650
|
-
export interface MlTooltipProps {
|
|
1442
|
+
bordered?: boolean;
|
|
1651
1443
|
/**
|
|
1652
|
-
*
|
|
1444
|
+
* The initial input content
|
|
1653
1445
|
*/
|
|
1654
|
-
|
|
1446
|
+
defaultValue?: string;
|
|
1655
1447
|
/**
|
|
1656
|
-
*
|
|
1448
|
+
* Whether the input is disabled
|
|
1657
1449
|
*/
|
|
1658
|
-
|
|
1450
|
+
disabled?: boolean;
|
|
1659
1451
|
/**
|
|
1660
|
-
*
|
|
1452
|
+
* The ID for input
|
|
1661
1453
|
*/
|
|
1662
|
-
|
|
1454
|
+
id?: string;
|
|
1663
1455
|
/**
|
|
1664
|
-
* The
|
|
1456
|
+
* The maximum number of characters in Input
|
|
1665
1457
|
*/
|
|
1666
|
-
|
|
1667
|
-
}
|
|
1668
|
-
export const MlTooltip: React.FC<MlTooltipProps>;
|
|
1669
|
-
export interface OrActiveCardsProps {
|
|
1670
|
-
items: Array<{
|
|
1671
|
-
title: string;
|
|
1672
|
-
description: string;
|
|
1673
|
-
}> | undefined;
|
|
1674
|
-
type?: MlPlanCardProps['$type'];
|
|
1675
|
-
fontSize?: number;
|
|
1676
|
-
}
|
|
1677
|
-
export const OrActiveCards: React.FC<OrActiveCardsProps>;
|
|
1678
|
-
export interface OrAlertProps {
|
|
1458
|
+
maxLength?: number;
|
|
1679
1459
|
/**
|
|
1680
|
-
*
|
|
1460
|
+
* Set validation status
|
|
1681
1461
|
*/
|
|
1682
|
-
|
|
1462
|
+
status?: 'error' | 'warning' | undefined;
|
|
1683
1463
|
/**
|
|
1684
|
-
*
|
|
1464
|
+
* Whether to show character count
|
|
1685
1465
|
*/
|
|
1686
|
-
|
|
1466
|
+
showCount?: boolean;
|
|
1687
1467
|
/**
|
|
1688
|
-
*
|
|
1468
|
+
* Placeholder text to display into the input
|
|
1689
1469
|
*/
|
|
1690
|
-
|
|
1470
|
+
placeholder?: string;
|
|
1691
1471
|
/**
|
|
1692
|
-
*
|
|
1472
|
+
* The prefix icon for the Input
|
|
1693
1473
|
*/
|
|
1694
|
-
|
|
1474
|
+
prefix?: ReactNode;
|
|
1695
1475
|
/**
|
|
1696
|
-
*
|
|
1476
|
+
* The size of the input box. Note: in the context of a form, the middle size is used
|
|
1697
1477
|
*/
|
|
1698
|
-
|
|
1478
|
+
size?: 'large' | 'middle' | 'small';
|
|
1699
1479
|
/**
|
|
1700
|
-
*
|
|
1480
|
+
* The suffix icon for the Input
|
|
1701
1481
|
*/
|
|
1702
|
-
|
|
1482
|
+
suffix?: ReactNode;
|
|
1703
1483
|
/**
|
|
1704
|
-
*
|
|
1484
|
+
* The input content value
|
|
1705
1485
|
*/
|
|
1706
|
-
|
|
1486
|
+
value?: string;
|
|
1707
1487
|
/**
|
|
1708
|
-
*
|
|
1488
|
+
* Callback when user input
|
|
1709
1489
|
*/
|
|
1710
|
-
|
|
1490
|
+
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
1491
|
+
}
|
|
1492
|
+
/**
|
|
1493
|
+
* Primary input UI component for user interaction
|
|
1494
|
+
*/
|
|
1495
|
+
export const AtTextInput: React.FC<AtTextInputProps>;
|
|
1496
|
+
export interface MlSearchBoxProps extends AtTextInputProps {
|
|
1711
1497
|
/**
|
|
1712
|
-
*
|
|
1498
|
+
* Prefix on search Input
|
|
1713
1499
|
*/
|
|
1714
|
-
|
|
1500
|
+
inputPrefixCls?: string;
|
|
1715
1501
|
/**
|
|
1716
|
-
*
|
|
1502
|
+
* On search function
|
|
1717
1503
|
*/
|
|
1718
|
-
|
|
1504
|
+
onSearch?: (value: string, event?: React.ChangeEvent<HTMLInputElement> | React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLInputElement>) => void;
|
|
1719
1505
|
/**
|
|
1720
|
-
*
|
|
1506
|
+
* Input loading on search
|
|
1721
1507
|
*/
|
|
1722
|
-
|
|
1508
|
+
loading?: boolean;
|
|
1723
1509
|
/**
|
|
1724
|
-
*
|
|
1510
|
+
* Element for enter button
|
|
1725
1511
|
*/
|
|
1726
|
-
|
|
1512
|
+
enterButton?: React.ReactNode;
|
|
1727
1513
|
}
|
|
1728
|
-
export const
|
|
1729
|
-
export interface
|
|
1514
|
+
export const MlSearchBox: React.FC<MlSearchBoxProps>;
|
|
1515
|
+
export interface MlTooltipProps {
|
|
1730
1516
|
/**
|
|
1731
|
-
*
|
|
1517
|
+
* Children component
|
|
1732
1518
|
*/
|
|
1733
|
-
|
|
1519
|
+
children?: React.ReactNode;
|
|
1734
1520
|
/**
|
|
1735
|
-
*
|
|
1521
|
+
* Tooltip text
|
|
1736
1522
|
*/
|
|
1737
|
-
|
|
1523
|
+
title?: string;
|
|
1738
1524
|
/**
|
|
1739
|
-
*
|
|
1525
|
+
* Tooltip trigger mode. Could be multiple by passing an array
|
|
1740
1526
|
*/
|
|
1741
|
-
|
|
1527
|
+
trigger?: TooltipProps['trigger'];
|
|
1742
1528
|
/**
|
|
1743
|
-
*
|
|
1529
|
+
* The position of the tooltip relative to the target, which can be one of top left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom
|
|
1744
1530
|
*/
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1531
|
+
placement?: TooltipProps['placement'];
|
|
1532
|
+
}
|
|
1533
|
+
export const MlTooltip: React.FC<MlTooltipProps>;
|
|
1534
|
+
export interface OrPlanCardsProps {
|
|
1749
1535
|
/**
|
|
1750
|
-
*
|
|
1536
|
+
* Active subscriptions
|
|
1751
1537
|
*/
|
|
1752
|
-
|
|
1538
|
+
activeSubscriptions?: Array<{
|
|
1539
|
+
title: string;
|
|
1540
|
+
description: string;
|
|
1541
|
+
}>;
|
|
1753
1542
|
/**
|
|
1754
|
-
*
|
|
1543
|
+
* subscriptions onChange event
|
|
1755
1544
|
*/
|
|
1756
|
-
|
|
1545
|
+
subscriptionOnChange?: (e: RadioChangeEvent) => void;
|
|
1757
1546
|
/**
|
|
1758
|
-
*
|
|
1547
|
+
* Plans and Subscriptions
|
|
1759
1548
|
*/
|
|
1760
|
-
|
|
1549
|
+
subscriptions: Array<MlSubscriptionCardProps>;
|
|
1550
|
+
}
|
|
1551
|
+
export const OrPlanCards: React.FC<OrPlanCardsProps>;
|
|
1552
|
+
export interface OrCoinTableProps {
|
|
1761
1553
|
/**
|
|
1762
|
-
*
|
|
1554
|
+
* List of coins available
|
|
1763
1555
|
*/
|
|
1764
|
-
|
|
1556
|
+
coinsAvailable: Array<OrTicketCardProps>;
|
|
1765
1557
|
/**
|
|
1766
|
-
*
|
|
1558
|
+
* coins onClick | onChange event
|
|
1767
1559
|
*/
|
|
1768
|
-
|
|
1560
|
+
coinsOnChange?: OrTicketCardProps['onChange'];
|
|
1769
1561
|
/**
|
|
1770
|
-
*
|
|
1562
|
+
* item selected
|
|
1771
1563
|
*/
|
|
1772
|
-
|
|
1564
|
+
itemSelected?: number;
|
|
1565
|
+
}
|
|
1566
|
+
export const OrCoinTable: React.FC<OrCoinTableProps>;
|
|
1567
|
+
export interface OrTicketsProps {
|
|
1773
1568
|
/**
|
|
1774
|
-
*
|
|
1569
|
+
* Tickets Title
|
|
1775
1570
|
*/
|
|
1776
|
-
|
|
1571
|
+
title?: string;
|
|
1777
1572
|
/**
|
|
1778
|
-
*
|
|
1573
|
+
* Active Tickets
|
|
1779
1574
|
*/
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
}
|
|
1575
|
+
activeTickets?: Array<{
|
|
1576
|
+
title: string;
|
|
1577
|
+
description: string;
|
|
1578
|
+
}>;
|
|
1784
1579
|
/**
|
|
1785
|
-
*
|
|
1580
|
+
* Coins available
|
|
1786
1581
|
*/
|
|
1787
|
-
|
|
1582
|
+
coinsAvailable: Array<OrTicketCardProps>;
|
|
1788
1583
|
/**
|
|
1789
|
-
*
|
|
1584
|
+
* coins onClick | onChange event
|
|
1790
1585
|
*/
|
|
1791
|
-
|
|
1586
|
+
onChange?: OrTicketCardProps['onChange'];
|
|
1792
1587
|
/**
|
|
1793
|
-
*
|
|
1588
|
+
* item selected
|
|
1794
1589
|
*/
|
|
1795
|
-
|
|
1590
|
+
itemSelected?: number;
|
|
1591
|
+
}
|
|
1592
|
+
export const OrTickets: React.FC<OrTicketsProps>;
|
|
1593
|
+
export interface OrRowProps {
|
|
1796
1594
|
/**
|
|
1797
|
-
*
|
|
1595
|
+
* The ID for input
|
|
1798
1596
|
*/
|
|
1799
|
-
|
|
1597
|
+
id?: string;
|
|
1800
1598
|
/**
|
|
1801
|
-
*
|
|
1599
|
+
* Vertical alignment
|
|
1802
1600
|
*/
|
|
1803
|
-
|
|
1601
|
+
align?: RowProps['align'];
|
|
1804
1602
|
/**
|
|
1805
|
-
*
|
|
1603
|
+
* Container background source
|
|
1806
1604
|
*/
|
|
1807
|
-
|
|
1605
|
+
$backgroundSrc?: string;
|
|
1808
1606
|
/**
|
|
1809
|
-
*
|
|
1607
|
+
* Spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24}. Or you can use array to make horizontal and vertical spacing work at the same time [horizontal, vertical]
|
|
1810
1608
|
*/
|
|
1811
|
-
|
|
1609
|
+
gutter?: Gutter | object | [Gutter, Gutter];
|
|
1812
1610
|
/**
|
|
1813
|
-
*
|
|
1611
|
+
* Horizontal arrangement
|
|
1814
1612
|
*/
|
|
1815
|
-
|
|
1816
|
-
direction: 'left' | 'right' | 'top' | 'bottom';
|
|
1817
|
-
}) => void;
|
|
1613
|
+
justify?: RowProps['justify'];
|
|
1818
1614
|
/**
|
|
1819
|
-
*
|
|
1615
|
+
* Auto wrap line
|
|
1820
1616
|
*/
|
|
1821
|
-
|
|
1617
|
+
wrap?: boolean;
|
|
1822
1618
|
/**
|
|
1823
|
-
*
|
|
1619
|
+
* Children of OrRow
|
|
1824
1620
|
*/
|
|
1825
|
-
|
|
1826
|
-
}
|
|
1827
|
-
export const OrTabs: React.FC<OrTabsProps>;
|
|
1828
|
-
export interface MlCardProps {
|
|
1621
|
+
children?: React.ReactNode;
|
|
1829
1622
|
/**
|
|
1830
|
-
*
|
|
1623
|
+
* Container padding top in px
|
|
1831
1624
|
*/
|
|
1832
|
-
|
|
1625
|
+
$paddingTop?: number;
|
|
1833
1626
|
/**
|
|
1834
|
-
*
|
|
1627
|
+
* Container padding Bottom in px
|
|
1835
1628
|
*/
|
|
1836
|
-
|
|
1629
|
+
$paddingBottom?: number;
|
|
1837
1630
|
/**
|
|
1838
|
-
*
|
|
1631
|
+
* Container padding Right in px
|
|
1839
1632
|
*/
|
|
1840
|
-
|
|
1633
|
+
$paddingRight?: number;
|
|
1841
1634
|
/**
|
|
1842
|
-
*
|
|
1635
|
+
* Container padding Left in px
|
|
1843
1636
|
*/
|
|
1844
|
-
|
|
1637
|
+
$paddingLeft?: number;
|
|
1845
1638
|
/**
|
|
1846
|
-
*
|
|
1639
|
+
* Container padding Vertical in px
|
|
1847
1640
|
*/
|
|
1848
|
-
|
|
1641
|
+
$paddingVertical?: number;
|
|
1849
1642
|
/**
|
|
1850
|
-
*
|
|
1643
|
+
* Container padding Horizontal in px
|
|
1851
1644
|
*/
|
|
1852
|
-
|
|
1645
|
+
$paddingHorizontal?: number;
|
|
1853
1646
|
/**
|
|
1854
|
-
*
|
|
1647
|
+
* gap
|
|
1855
1648
|
*/
|
|
1856
|
-
|
|
1649
|
+
$gap?: number;
|
|
1857
1650
|
/**
|
|
1858
|
-
*
|
|
1651
|
+
* Custom styles properties
|
|
1859
1652
|
*/
|
|
1860
|
-
|
|
1653
|
+
style?: React.CSSProperties;
|
|
1861
1654
|
/**
|
|
1862
|
-
*
|
|
1655
|
+
* On click event
|
|
1863
1656
|
*/
|
|
1864
|
-
|
|
1657
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
1865
1658
|
/**
|
|
1866
|
-
*
|
|
1659
|
+
* Background color
|
|
1867
1660
|
*/
|
|
1868
|
-
|
|
1661
|
+
$backgroundColor?: string;
|
|
1662
|
+
}
|
|
1663
|
+
export const OrRow: React.FC<OrRowProps>;
|
|
1664
|
+
export interface OrTwoButtons {
|
|
1869
1665
|
/**
|
|
1870
|
-
*
|
|
1666
|
+
* Cancel button title
|
|
1871
1667
|
*/
|
|
1872
|
-
|
|
1668
|
+
leftButtonTitle: string;
|
|
1873
1669
|
/**
|
|
1874
|
-
*
|
|
1670
|
+
* Confirm button title
|
|
1875
1671
|
*/
|
|
1876
|
-
|
|
1672
|
+
rightButtonTitle: string;
|
|
1877
1673
|
/**
|
|
1878
|
-
*
|
|
1674
|
+
* Cancel onClick Event
|
|
1879
1675
|
*/
|
|
1880
|
-
|
|
1676
|
+
leftButtonOnClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
1881
1677
|
/**
|
|
1882
|
-
*
|
|
1678
|
+
* Confirm onClick Event
|
|
1883
1679
|
*/
|
|
1884
|
-
|
|
1885
|
-
/**
|
|
1886
|
-
* Tabs
|
|
1887
|
-
*/
|
|
1888
|
-
tabProps?: TabsProps;
|
|
1889
|
-
/**
|
|
1890
|
-
* Card title
|
|
1891
|
-
*/
|
|
1892
|
-
title?: ReactNode;
|
|
1893
|
-
/**
|
|
1894
|
-
* Card style type, can be set to inner or not set
|
|
1895
|
-
*/
|
|
1896
|
-
type?: CardType;
|
|
1897
|
-
/**
|
|
1898
|
-
/**
|
|
1899
|
-
* Callback when card is clicked
|
|
1900
|
-
*/
|
|
1901
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
1902
|
-
/**
|
|
1903
|
-
* Callback when tab is switched
|
|
1904
|
-
*/
|
|
1905
|
-
onTabChange?: (key: string) => void;
|
|
1906
|
-
children?: React.ReactNode;
|
|
1907
|
-
/**
|
|
1908
|
-
* Card width
|
|
1909
|
-
*/
|
|
1910
|
-
$width?: number;
|
|
1911
|
-
/**
|
|
1912
|
-
* border color for the card
|
|
1913
|
-
*/
|
|
1914
|
-
$borderColor?: 'violet' | 'gold' | 'white' | 'gray';
|
|
1915
|
-
/**
|
|
1916
|
-
* margin bottom for the card
|
|
1917
|
-
*/
|
|
1918
|
-
$marginBottom?: number;
|
|
1919
|
-
/**
|
|
1920
|
-
* padding for the card
|
|
1921
|
-
*/
|
|
1922
|
-
$padding?: number;
|
|
1923
|
-
/**
|
|
1924
|
-
* background color for the card
|
|
1925
|
-
*/
|
|
1926
|
-
$backgroundColor?: string;
|
|
1927
|
-
}
|
|
1928
|
-
/**
|
|
1929
|
-
* Primary input UI component for user interaction
|
|
1930
|
-
*/
|
|
1931
|
-
export const OrCard: React.FC<MlCardProps>;
|
|
1932
|
-
export interface OrTicketCardProps {
|
|
1933
|
-
/**
|
|
1934
|
-
* Image source
|
|
1935
|
-
*/
|
|
1936
|
-
src?: string;
|
|
1937
|
-
/**
|
|
1938
|
-
* Title children
|
|
1939
|
-
*/
|
|
1940
|
-
title?: React.ReactNode;
|
|
1941
|
-
/**
|
|
1942
|
-
* Text children
|
|
1943
|
-
*/
|
|
1944
|
-
description?: React.ReactNode;
|
|
1945
|
-
/**
|
|
1946
|
-
* input value
|
|
1947
|
-
*/
|
|
1948
|
-
value?: number;
|
|
1949
|
-
/**
|
|
1950
|
-
* Button Value
|
|
1951
|
-
*/
|
|
1952
|
-
buttonText?: string;
|
|
1953
|
-
/**
|
|
1954
|
-
* display input
|
|
1955
|
-
*/
|
|
1956
|
-
type?: 'custom' | 'static';
|
|
1957
|
-
/**
|
|
1958
|
-
* border color for the card
|
|
1959
|
-
*/
|
|
1960
|
-
$borderColor?: 'violet' | 'gold' | 'white' | 'gray';
|
|
1961
|
-
/**
|
|
1962
|
-
* On change callback
|
|
1963
|
-
*/
|
|
1964
|
-
onChange?: (e: string | React.MouseEvent<HTMLAnchorElement, MouseEvent> | React.MouseEvent<HTMLButtonElement, MouseEvent> | number | null) => void;
|
|
1965
|
-
}
|
|
1966
|
-
export const OrTicketCard: React.FC<OrTicketCardProps>;
|
|
1967
|
-
export interface OrPlanCardsProps {
|
|
1968
|
-
/**
|
|
1969
|
-
* Active subscriptions
|
|
1970
|
-
*/
|
|
1971
|
-
activeSubscriptions?: Array<{
|
|
1972
|
-
title: string;
|
|
1973
|
-
description: string;
|
|
1974
|
-
}>;
|
|
1975
|
-
/**
|
|
1976
|
-
* subscriptions onChange event
|
|
1977
|
-
*/
|
|
1978
|
-
subscriptionOnChange?: (e: _RadioChangeEvent1) => void;
|
|
1979
|
-
/**
|
|
1980
|
-
* Plans and Subscriptions
|
|
1981
|
-
*/
|
|
1982
|
-
subscriptions: Array<MlSubscriptionCardProps>;
|
|
1983
|
-
}
|
|
1984
|
-
export const OrPlanCards: React.FC<OrPlanCardsProps>;
|
|
1985
|
-
export interface OrCoinTableProps {
|
|
1986
|
-
/**
|
|
1987
|
-
* List of coins available
|
|
1988
|
-
*/
|
|
1989
|
-
coinsAvailable: Array<OrTicketCardProps>;
|
|
1990
|
-
/**
|
|
1991
|
-
* coins onClick | onChange event
|
|
1992
|
-
*/
|
|
1993
|
-
coinsOnChange?: OrTicketCardProps['onChange'];
|
|
1994
|
-
/**
|
|
1995
|
-
* item selected
|
|
1996
|
-
*/
|
|
1997
|
-
itemSelected?: number;
|
|
1998
|
-
}
|
|
1999
|
-
export const OrCoinTable: React.FC<OrCoinTableProps>;
|
|
2000
|
-
export interface OrTicketsProps {
|
|
2001
|
-
/**
|
|
2002
|
-
* Tickets Title
|
|
2003
|
-
*/
|
|
2004
|
-
title?: string;
|
|
2005
|
-
/**
|
|
2006
|
-
* Active Tickets
|
|
2007
|
-
*/
|
|
2008
|
-
activeTickets?: Array<{
|
|
2009
|
-
title: string;
|
|
2010
|
-
description: string;
|
|
2011
|
-
}>;
|
|
2012
|
-
/**
|
|
2013
|
-
* Coins available
|
|
2014
|
-
*/
|
|
2015
|
-
coinsAvailable: Array<OrTicketCardProps>;
|
|
2016
|
-
/**
|
|
2017
|
-
* coins onClick | onChange event
|
|
2018
|
-
*/
|
|
2019
|
-
onChange?: OrTicketCardProps['onChange'];
|
|
2020
|
-
/**
|
|
2021
|
-
* item selected
|
|
2022
|
-
*/
|
|
2023
|
-
itemSelected?: number;
|
|
2024
|
-
}
|
|
2025
|
-
export const OrTickets: React.FC<OrTicketsProps>;
|
|
2026
|
-
export interface OrRowProps {
|
|
2027
|
-
/**
|
|
2028
|
-
* The ID for input
|
|
2029
|
-
*/
|
|
2030
|
-
id?: string;
|
|
2031
|
-
/**
|
|
2032
|
-
* Vertical alignment
|
|
2033
|
-
*/
|
|
2034
|
-
align?: RowProps['align'];
|
|
2035
|
-
/**
|
|
2036
|
-
* Container background source
|
|
2037
|
-
*/
|
|
2038
|
-
$backgroundSrc?: string;
|
|
2039
|
-
/**
|
|
2040
|
-
* Spacing between grids, could be a number or a object like { xs: 8, sm: 16, md: 24}. Or you can use array to make horizontal and vertical spacing work at the same time [horizontal, vertical]
|
|
2041
|
-
*/
|
|
2042
|
-
gutter?: Gutter | object | [Gutter, Gutter];
|
|
2043
|
-
/**
|
|
2044
|
-
* Horizontal arrangement
|
|
2045
|
-
*/
|
|
2046
|
-
justify?: RowProps['justify'];
|
|
2047
|
-
/**
|
|
2048
|
-
* Auto wrap line
|
|
2049
|
-
*/
|
|
2050
|
-
wrap?: boolean;
|
|
2051
|
-
/**
|
|
2052
|
-
* Children of OrRow
|
|
2053
|
-
*/
|
|
2054
|
-
children?: React.ReactNode;
|
|
2055
|
-
/**
|
|
2056
|
-
* Container padding top in px
|
|
2057
|
-
*/
|
|
2058
|
-
$paddingTop?: number;
|
|
2059
|
-
/**
|
|
2060
|
-
* Container padding Bottom in px
|
|
2061
|
-
*/
|
|
2062
|
-
$paddingBottom?: number;
|
|
2063
|
-
/**
|
|
2064
|
-
* Container padding Right in px
|
|
2065
|
-
*/
|
|
2066
|
-
$paddingRight?: number;
|
|
2067
|
-
/**
|
|
2068
|
-
* Container padding Left in px
|
|
2069
|
-
*/
|
|
2070
|
-
$paddingLeft?: number;
|
|
2071
|
-
/**
|
|
2072
|
-
* Container padding Vertical in px
|
|
2073
|
-
*/
|
|
2074
|
-
$paddingVertical?: number;
|
|
2075
|
-
/**
|
|
2076
|
-
* Container padding Horizontal in px
|
|
2077
|
-
*/
|
|
2078
|
-
$paddingHorizontal?: number;
|
|
2079
|
-
/**
|
|
2080
|
-
* gap
|
|
2081
|
-
*/
|
|
2082
|
-
$gap?: number;
|
|
2083
|
-
/**
|
|
2084
|
-
* Custom styles properties
|
|
2085
|
-
*/
|
|
2086
|
-
style?: React.CSSProperties;
|
|
2087
|
-
/**
|
|
2088
|
-
* On click event
|
|
2089
|
-
*/
|
|
2090
|
-
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
2091
|
-
/**
|
|
2092
|
-
* Background color
|
|
2093
|
-
*/
|
|
2094
|
-
$backgroundColor?: string;
|
|
2095
|
-
}
|
|
2096
|
-
export const OrRow: React.FC<OrRowProps>;
|
|
2097
|
-
export interface OrTwoButtons {
|
|
2098
|
-
/**
|
|
2099
|
-
* Cancel button title
|
|
2100
|
-
*/
|
|
2101
|
-
leftButtonTitle: string;
|
|
2102
|
-
/**
|
|
2103
|
-
* Confirm button title
|
|
2104
|
-
*/
|
|
2105
|
-
rightButtonTitle: string;
|
|
2106
|
-
/**
|
|
2107
|
-
* Cancel onClick Event
|
|
2108
|
-
*/
|
|
2109
|
-
leftButtonOnClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
2110
|
-
/**
|
|
2111
|
-
* Confirm onClick Event
|
|
2112
|
-
*/
|
|
2113
|
-
rightButtonOnClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
1680
|
+
rightButtonOnClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
2114
1681
|
/**
|
|
2115
1682
|
* gap between buttons
|
|
2116
1683
|
*/
|
|
@@ -2183,7 +1750,7 @@ export interface OrAssignBalanceProps {
|
|
|
2183
1750
|
/**
|
|
2184
1751
|
* subscriptions onChange event
|
|
2185
1752
|
*/
|
|
2186
|
-
subscriptionOnChange?: ((e:
|
|
1753
|
+
subscriptionOnChange?: ((e: RadioChangeEvent) => void);
|
|
2187
1754
|
/**
|
|
2188
1755
|
* coins onClick | onChange event
|
|
2189
1756
|
*/
|
|
@@ -2308,31 +1875,90 @@ export interface OrContentProps extends LayoutProps {
|
|
|
2308
1875
|
$main?: boolean;
|
|
2309
1876
|
}
|
|
2310
1877
|
export const OrContent: React.FC<OrContentProps>;
|
|
2311
|
-
export
|
|
2312
|
-
declare const sizes: {
|
|
2313
|
-
[key in Size]: {
|
|
2314
|
-
fontSize: number;
|
|
2315
|
-
height: number;
|
|
2316
|
-
};
|
|
2317
|
-
};
|
|
2318
|
-
export interface OrCopyInfoProps {
|
|
2319
|
-
text?: string;
|
|
2320
|
-
copyable?: boolean;
|
|
2321
|
-
size?: keyof typeof sizes;
|
|
2322
|
-
id?: string;
|
|
2323
|
-
onCopy?: () => {};
|
|
2324
|
-
textProps?: AtTextProps;
|
|
2325
|
-
}
|
|
2326
|
-
export const OrCopyInfo: React.FC<OrCopyInfoProps>;
|
|
2327
|
-
export interface OrCountryCardProps {
|
|
1878
|
+
export interface AtTextProps {
|
|
2328
1879
|
/**
|
|
2329
|
-
*
|
|
1880
|
+
* Content type
|
|
2330
1881
|
*/
|
|
2331
|
-
|
|
1882
|
+
type?: 'secondary' | 'success' | 'warning' | 'danger';
|
|
2332
1883
|
/**
|
|
2333
|
-
*
|
|
2334
|
-
|
|
2335
|
-
|
|
1884
|
+
* Whether the text is strong or not
|
|
1885
|
+
*/
|
|
1886
|
+
strong?: boolean;
|
|
1887
|
+
/**
|
|
1888
|
+
* Whether the text is italic or not
|
|
1889
|
+
*/
|
|
1890
|
+
italic?: boolean;
|
|
1891
|
+
/**
|
|
1892
|
+
* Whether the text is underline or not
|
|
1893
|
+
*/
|
|
1894
|
+
underline?: boolean;
|
|
1895
|
+
/**
|
|
1896
|
+
* Whether the text is mark or not
|
|
1897
|
+
*/
|
|
1898
|
+
mark?: boolean;
|
|
1899
|
+
/**
|
|
1900
|
+
* If editable. Can control edit state when is object
|
|
1901
|
+
*/
|
|
1902
|
+
editable?: boolean | BlockProps['editable'];
|
|
1903
|
+
/**
|
|
1904
|
+
* Whether to be copyable, customize it via setting an object
|
|
1905
|
+
*/
|
|
1906
|
+
copyable?: boolean | BlockProps['copyable'];
|
|
1907
|
+
/**
|
|
1908
|
+
* Keyboard style
|
|
1909
|
+
*/
|
|
1910
|
+
keyboard?: boolean;
|
|
1911
|
+
/**
|
|
1912
|
+
* Code style
|
|
1913
|
+
*/
|
|
1914
|
+
code?: boolean;
|
|
1915
|
+
/**
|
|
1916
|
+
* children
|
|
1917
|
+
*/
|
|
1918
|
+
children?: React.ReactNode;
|
|
1919
|
+
/**
|
|
1920
|
+
* Color of the text
|
|
1921
|
+
*/
|
|
1922
|
+
color?: keyof typeof colorMap;
|
|
1923
|
+
/**
|
|
1924
|
+
* Element width
|
|
1925
|
+
*/
|
|
1926
|
+
$width?: number | string;
|
|
1927
|
+
/**
|
|
1928
|
+
* font size
|
|
1929
|
+
*/
|
|
1930
|
+
$fontSize?: number;
|
|
1931
|
+
/**
|
|
1932
|
+
* textAlign
|
|
1933
|
+
*/
|
|
1934
|
+
$textAlign?: "center" | "left" | "right" | "justify" | "initial" | "inherit" | "unset";
|
|
1935
|
+
}
|
|
1936
|
+
export const AtText: React.FC<AtTextProps>;
|
|
1937
|
+
export type Size = 'large' | 'middle' | 'small';
|
|
1938
|
+
declare const sizes: {
|
|
1939
|
+
[key in Size]: {
|
|
1940
|
+
fontSize: number;
|
|
1941
|
+
height: number;
|
|
1942
|
+
};
|
|
1943
|
+
};
|
|
1944
|
+
export interface OrCopyInfoProps {
|
|
1945
|
+
text?: string;
|
|
1946
|
+
copyable?: boolean;
|
|
1947
|
+
size?: keyof typeof sizes;
|
|
1948
|
+
id?: string;
|
|
1949
|
+
onCopy?: () => {};
|
|
1950
|
+
textProps?: AtTextProps;
|
|
1951
|
+
}
|
|
1952
|
+
export const OrCopyInfo: React.FC<OrCopyInfoProps>;
|
|
1953
|
+
export interface OrCountryCardProps {
|
|
1954
|
+
/**
|
|
1955
|
+
* The ID for card
|
|
1956
|
+
*/
|
|
1957
|
+
id?: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* Country name
|
|
1960
|
+
**/
|
|
1961
|
+
name: string;
|
|
2336
1962
|
/**
|
|
2337
1963
|
* Country flag url
|
|
2338
1964
|
**/
|
|
@@ -2846,7 +2472,7 @@ export interface OrFormInLineItem {
|
|
|
2846
2472
|
/**
|
|
2847
2473
|
* Type of components available for the form
|
|
2848
2474
|
*/
|
|
2849
|
-
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | '
|
|
2475
|
+
component: 'radio' | 'number-input' | 'checkbox' | 'select' | 'select-multiple' | 'text' | 'phone' | 'date-picker' | 'date-range-picker' | 'cvc' | 'name' | 'select-input' | 'info' | 'status-info' | 'file-input' | 'copy-info';
|
|
2850
2476
|
/**
|
|
2851
2477
|
* Label of the field
|
|
2852
2478
|
*/
|
|
@@ -2912,6 +2538,7 @@ export interface OrFormInLineItem {
|
|
|
2912
2538
|
* Whether the button is full width or not
|
|
2913
2539
|
*/
|
|
2914
2540
|
fullWidth?: boolean;
|
|
2541
|
+
type?: 'success' | 'warning' | 'danger' | 'info';
|
|
2915
2542
|
}
|
|
2916
2543
|
export interface OrFormItemsInlineProps {
|
|
2917
2544
|
inputs?: Array<OrFormInLineItem | OrFormInLineItem[]>;
|
|
@@ -3669,69 +3296,310 @@ export interface TmLoginPhoneCodeProps {
|
|
|
3669
3296
|
/**
|
|
3670
3297
|
* Countdown value
|
|
3671
3298
|
*/
|
|
3672
|
-
countdownValue?: number;
|
|
3299
|
+
countdownValue?: number;
|
|
3300
|
+
/**
|
|
3301
|
+
* Countdown format
|
|
3302
|
+
*/
|
|
3303
|
+
countdownFormat?: string;
|
|
3304
|
+
/**
|
|
3305
|
+
* Indicate if the count down ended
|
|
3306
|
+
*/
|
|
3307
|
+
countdownEnded?: boolean;
|
|
3308
|
+
/**
|
|
3309
|
+
* Callback triggered when countdown ends
|
|
3310
|
+
*/
|
|
3311
|
+
onFinishCountdown?: () => void;
|
|
3312
|
+
/**
|
|
3313
|
+
* Countdown text part
|
|
3314
|
+
*/
|
|
3315
|
+
countdownText?: [string, string];
|
|
3316
|
+
/**
|
|
3317
|
+
* Send again text
|
|
3318
|
+
*/
|
|
3319
|
+
sendAgainText?: string;
|
|
3320
|
+
/**
|
|
3321
|
+
* Function to call when resend is press it
|
|
3322
|
+
*/
|
|
3323
|
+
onResendPress?: () => void;
|
|
3324
|
+
}
|
|
3325
|
+
export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
|
|
3326
|
+
export interface MarkersGroup {
|
|
3327
|
+
color?: OrMarkProps['color'];
|
|
3328
|
+
backgroundColor?: string;
|
|
3329
|
+
size?: OrMarkProps['size'];
|
|
3330
|
+
marks: OrMarkProps[];
|
|
3331
|
+
polyLine: boolean;
|
|
3332
|
+
}
|
|
3333
|
+
export interface TmMapPageProps {
|
|
3334
|
+
rightDrawer?: OrDrawerProps;
|
|
3335
|
+
topLeftSelect: AtSelectProps;
|
|
3336
|
+
topLeftButton?: AtButtonProps;
|
|
3337
|
+
map: GoogleMapProps & {
|
|
3338
|
+
GOOGLE_MAPS_API_KEY: string;
|
|
3339
|
+
ref?: React.RefObject<GoogleMap>;
|
|
3340
|
+
};
|
|
3341
|
+
staticMarkers?: MarkersGroup[];
|
|
3342
|
+
realtimeMarkers?: MarkersGroup[];
|
|
3343
|
+
}
|
|
3344
|
+
export const TmMapPage: React.FC<TmMapPageProps>;
|
|
3345
|
+
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
3346
|
+
export interface ModalProps extends ModalFuncProps {
|
|
3347
|
+
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
3348
|
+
}
|
|
3349
|
+
export const useModal: () => {
|
|
3350
|
+
show: (config: ModalFuncProps) => {
|
|
3351
|
+
destroy: () => void;
|
|
3352
|
+
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
3353
|
+
} & {
|
|
3354
|
+
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
3355
|
+
};
|
|
3356
|
+
setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "error" | "info" | "confirm">>;
|
|
3357
|
+
contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3358
|
+
};
|
|
3359
|
+
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
3360
|
+
export const useFormWatch: <T = any>(name: string, form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
3361
|
+
export interface TmRechargePageProps<FormType = any> {
|
|
3362
|
+
/**
|
|
3363
|
+
* Page title
|
|
3364
|
+
*/
|
|
3365
|
+
title?: string;
|
|
3366
|
+
/**
|
|
3367
|
+
* page subtitle
|
|
3368
|
+
*/
|
|
3369
|
+
subtitle?: string;
|
|
3370
|
+
/**
|
|
3371
|
+
* page subtitle content
|
|
3372
|
+
*/
|
|
3373
|
+
balance?: string;
|
|
3374
|
+
/**
|
|
3375
|
+
* The title of the card
|
|
3376
|
+
*/
|
|
3377
|
+
cardTitle: string;
|
|
3378
|
+
/**
|
|
3379
|
+
* number of digits (input) to show
|
|
3380
|
+
*/
|
|
3381
|
+
digits?: number;
|
|
3382
|
+
/**
|
|
3383
|
+
* The input content value
|
|
3384
|
+
*/
|
|
3385
|
+
value?: number;
|
|
3386
|
+
/**
|
|
3387
|
+
* font size of the input
|
|
3388
|
+
*/
|
|
3389
|
+
fontSize?: string;
|
|
3390
|
+
/**
|
|
3391
|
+
* height of the input
|
|
3392
|
+
*/
|
|
3393
|
+
height?: string;
|
|
3394
|
+
/**
|
|
3395
|
+
* rule for the amount input
|
|
3396
|
+
*/
|
|
3397
|
+
ruleAmount?: MlFromItemProps['rules'];
|
|
3398
|
+
/**
|
|
3399
|
+
* rule for the coupon input
|
|
3400
|
+
*/
|
|
3401
|
+
ruleCoupon?: MlFromItemProps['rules'];
|
|
3402
|
+
/**
|
|
3403
|
+
* Form ref
|
|
3404
|
+
*/
|
|
3405
|
+
form?: FormProps['form'];
|
|
3406
|
+
/**
|
|
3407
|
+
* Form init values
|
|
3408
|
+
*/
|
|
3409
|
+
initialValues?: IFormData;
|
|
3410
|
+
/**
|
|
3411
|
+
* On submit function
|
|
3412
|
+
*/
|
|
3413
|
+
onFinish?: FormProps['onFinish'];
|
|
3414
|
+
/**
|
|
3415
|
+
* Coupon button text
|
|
3416
|
+
*/
|
|
3417
|
+
couponBtn?: string;
|
|
3418
|
+
/**
|
|
3419
|
+
* Amount placeholder
|
|
3420
|
+
*/
|
|
3421
|
+
amountPlaceholder?: string;
|
|
3422
|
+
/**
|
|
3423
|
+
* Coupon placeholder
|
|
3424
|
+
*/
|
|
3425
|
+
couponPlaceholder?: string;
|
|
3426
|
+
/**
|
|
3427
|
+
* Radio group items
|
|
3428
|
+
*/
|
|
3429
|
+
currenciesOptions?: Array<{
|
|
3430
|
+
label: ReactNode;
|
|
3431
|
+
value: string;
|
|
3432
|
+
disabled?: boolean;
|
|
3433
|
+
symbol?: string;
|
|
3434
|
+
}>;
|
|
3435
|
+
/**
|
|
3436
|
+
* Radio group default value
|
|
3437
|
+
*/
|
|
3438
|
+
defaultCurrency?: number;
|
|
3439
|
+
/**
|
|
3440
|
+
* Amount to pay text
|
|
3441
|
+
*/
|
|
3442
|
+
amountToPayText?: string;
|
|
3443
|
+
/**
|
|
3444
|
+
* Amount to pay
|
|
3445
|
+
*/
|
|
3446
|
+
amountToPay?: number;
|
|
3447
|
+
/**
|
|
3448
|
+
* Coupon text
|
|
3449
|
+
*/
|
|
3450
|
+
couponText?: string;
|
|
3451
|
+
/**
|
|
3452
|
+
* Discount
|
|
3453
|
+
*/
|
|
3454
|
+
discount?: number;
|
|
3455
|
+
/**
|
|
3456
|
+
* Total text
|
|
3457
|
+
*/
|
|
3458
|
+
totalText?: string;
|
|
3459
|
+
/**
|
|
3460
|
+
* Total
|
|
3461
|
+
*/
|
|
3462
|
+
total?: number;
|
|
3463
|
+
/**
|
|
3464
|
+
* Tax text
|
|
3465
|
+
*/
|
|
3466
|
+
taxText?: string;
|
|
3467
|
+
/**
|
|
3468
|
+
* Tax
|
|
3469
|
+
*/
|
|
3470
|
+
tax?: number;
|
|
3471
|
+
/**
|
|
3472
|
+
* Pay button text
|
|
3473
|
+
*/
|
|
3474
|
+
payBtn?: string;
|
|
3475
|
+
/**
|
|
3476
|
+
* Apply coupon click
|
|
3477
|
+
*/
|
|
3478
|
+
applyCouponClick?: () => void;
|
|
3479
|
+
/**
|
|
3480
|
+
* The title of the drawer
|
|
3481
|
+
*/
|
|
3482
|
+
drawerTitle?: string;
|
|
3483
|
+
/**
|
|
3484
|
+
* Whether the Drawer dialog is visible or not
|
|
3485
|
+
*/
|
|
3486
|
+
open?: boolean;
|
|
3487
|
+
/**
|
|
3488
|
+
* payment Methods
|
|
3489
|
+
*/
|
|
3490
|
+
paymentMethods: PaymentMethod[];
|
|
3491
|
+
/**
|
|
3492
|
+
* Form Steps info
|
|
3493
|
+
*/
|
|
3494
|
+
currentPaymentSelectedFields: IFormStep<FormType>;
|
|
3495
|
+
/**
|
|
3496
|
+
* Disable continue button drawer
|
|
3497
|
+
*/
|
|
3498
|
+
disabledButton?: boolean;
|
|
3499
|
+
/**
|
|
3500
|
+
* Show payment methods
|
|
3501
|
+
*/
|
|
3502
|
+
showPaymentMethods?: boolean;
|
|
3503
|
+
/**
|
|
3504
|
+
* terms and conditions disclaimer
|
|
3505
|
+
*/
|
|
3506
|
+
termsDisclaimer?: string;
|
|
3507
|
+
/**
|
|
3508
|
+
* terms and conditions change
|
|
3509
|
+
*/
|
|
3510
|
+
termsChange?: ((e: CheckboxChangeEvent) => void) | undefined;
|
|
3511
|
+
/**
|
|
3512
|
+
* onCloseDrawer function
|
|
3513
|
+
*/
|
|
3514
|
+
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
3515
|
+
/**
|
|
3516
|
+
* whether to show left arrow
|
|
3517
|
+
*/
|
|
3518
|
+
showLeftArrow?: boolean;
|
|
3519
|
+
/**
|
|
3520
|
+
* left arrow click event
|
|
3521
|
+
*/
|
|
3522
|
+
onClickLeftArrow?: () => void;
|
|
3523
|
+
editable?: boolean;
|
|
3524
|
+
rate?: number;
|
|
3525
|
+
}
|
|
3526
|
+
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3527
|
+
export interface PaymentMethod {
|
|
3528
|
+
value: string;
|
|
3529
|
+
icon?: React.ReactNode;
|
|
3530
|
+
onClick: (value: string) => void;
|
|
3531
|
+
}
|
|
3532
|
+
export interface OrPaymentMethodsProps<FormType = any> {
|
|
3533
|
+
/**
|
|
3534
|
+
* The title of the drawer
|
|
3535
|
+
*/
|
|
3536
|
+
drawerTitle?: string;
|
|
3537
|
+
/**
|
|
3538
|
+
* Whether the Drawer dialog is visible or not
|
|
3539
|
+
*/
|
|
3540
|
+
open?: boolean;
|
|
3541
|
+
/**
|
|
3542
|
+
* payment Methods
|
|
3543
|
+
*/
|
|
3544
|
+
paymentMethods: PaymentMethod[];
|
|
3545
|
+
/**
|
|
3546
|
+
* Form Steps info
|
|
3547
|
+
*/
|
|
3548
|
+
currentPaymentSelectedFields?: IFormStep<FormType>;
|
|
3549
|
+
/**
|
|
3550
|
+
* Disable continue button drawer
|
|
3551
|
+
*/
|
|
3552
|
+
disabledButton?: boolean;
|
|
3553
|
+
/**
|
|
3554
|
+
* Show payment methods
|
|
3555
|
+
*/
|
|
3556
|
+
showPaymentMethods?: boolean;
|
|
3557
|
+
/**
|
|
3558
|
+
* terms and conditions disclaimer
|
|
3559
|
+
*/
|
|
3560
|
+
termsDisclaimer?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* onCloseDrawer function
|
|
3563
|
+
*/
|
|
3564
|
+
onCloseDrawer?: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
|
3565
|
+
}
|
|
3566
|
+
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3567
|
+
export interface OrTableModuleLayoutProps {
|
|
3568
|
+
/**
|
|
3569
|
+
* Page title
|
|
3570
|
+
*/
|
|
3571
|
+
title?: string;
|
|
3572
|
+
/**
|
|
3573
|
+
* page subtitle
|
|
3574
|
+
*/
|
|
3575
|
+
subtitle?: string;
|
|
3673
3576
|
/**
|
|
3674
|
-
*
|
|
3577
|
+
* subtitle Content
|
|
3675
3578
|
*/
|
|
3676
|
-
|
|
3579
|
+
subtitleContent?: string;
|
|
3677
3580
|
/**
|
|
3678
|
-
*
|
|
3581
|
+
* Children component
|
|
3679
3582
|
*/
|
|
3680
|
-
|
|
3583
|
+
children?: React.ReactNode;
|
|
3681
3584
|
/**
|
|
3682
|
-
*
|
|
3585
|
+
* margin
|
|
3683
3586
|
*/
|
|
3684
|
-
|
|
3587
|
+
$margin?: string;
|
|
3685
3588
|
/**
|
|
3686
|
-
*
|
|
3589
|
+
* padding
|
|
3687
3590
|
*/
|
|
3688
|
-
|
|
3591
|
+
padding?: string;
|
|
3689
3592
|
/**
|
|
3690
|
-
*
|
|
3593
|
+
* whether to show left arrow
|
|
3691
3594
|
*/
|
|
3692
|
-
|
|
3595
|
+
leftArrow?: boolean;
|
|
3693
3596
|
/**
|
|
3694
|
-
*
|
|
3597
|
+
* left arrow click event
|
|
3695
3598
|
*/
|
|
3696
|
-
|
|
3697
|
-
}
|
|
3698
|
-
export const TmLoginPhoneCode: React.FC<TmLoginPhoneCodeProps>;
|
|
3699
|
-
export interface MarkersGroup {
|
|
3700
|
-
color?: OrMarkProps['color'];
|
|
3701
|
-
backgroundColor?: string;
|
|
3702
|
-
size?: OrMarkProps['size'];
|
|
3703
|
-
marks: OrMarkProps[];
|
|
3704
|
-
polyLine: boolean;
|
|
3705
|
-
}
|
|
3706
|
-
export interface TmMapPageProps {
|
|
3707
|
-
rightDrawer?: OrDrawerProps;
|
|
3708
|
-
topLeftSelect: AtSelectProps;
|
|
3709
|
-
topLeftButton?: AtButtonProps;
|
|
3710
|
-
map: GoogleMapProps & {
|
|
3711
|
-
GOOGLE_MAPS_API_KEY: string;
|
|
3712
|
-
ref?: React.RefObject<GoogleMap>;
|
|
3713
|
-
};
|
|
3714
|
-
staticMarkers?: MarkersGroup[];
|
|
3715
|
-
realtimeMarkers?: MarkersGroup[];
|
|
3716
|
-
}
|
|
3717
|
-
export const TmMapPage: React.FC<TmMapPageProps>;
|
|
3718
|
-
export const useMessage: () => readonly [import("antd/es/message/interface").MessageInstance, import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>];
|
|
3719
|
-
export interface ModalProps extends ModalFuncProps {
|
|
3720
|
-
variant: 'confirm' | 'warning' | 'info' | 'error';
|
|
3599
|
+
onClickLeftArrow?: () => void;
|
|
3721
3600
|
}
|
|
3722
|
-
export const
|
|
3723
|
-
|
|
3724
|
-
destroy: () => void;
|
|
3725
|
-
update: (configUpdate: ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps)) => void;
|
|
3726
|
-
} & {
|
|
3727
|
-
then<T>(resolve: (confirmed: boolean) => T, reject: VoidFunction): Promise<T>;
|
|
3728
|
-
};
|
|
3729
|
-
setVariant: import("react").Dispatch<import("react").SetStateAction<"warning" | "error" | "info" | "confirm">>;
|
|
3730
|
-
contextHolder: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
3731
|
-
};
|
|
3732
|
-
export const useForm: <T = any>() => [import("antd").FormInstance<T>];
|
|
3733
|
-
export const useFormWatch: <T = any>(name: string, form?: FormInstance | WatchOptions<FormInstance>) => T;
|
|
3734
|
-
export interface TmRechargePageProps<FormType = any> {
|
|
3601
|
+
export const OrTableModuleLayout: React.FC<OrTableModuleLayoutProps>;
|
|
3602
|
+
export interface OrRechargeProps {
|
|
3735
3603
|
/**
|
|
3736
3604
|
* Page title
|
|
3737
3605
|
*/
|
|
@@ -3756,6 +3624,14 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3756
3624
|
* The input content value
|
|
3757
3625
|
*/
|
|
3758
3626
|
value?: number;
|
|
3627
|
+
/**
|
|
3628
|
+
* Callback when user input amount
|
|
3629
|
+
*/
|
|
3630
|
+
onChangeAmount?: ((value: string | number | null) => void) | undefined;
|
|
3631
|
+
/**
|
|
3632
|
+
* Callback when user input coupon
|
|
3633
|
+
*/
|
|
3634
|
+
couponOnChange?: ((e: React.ChangeEvent<HTMLInputElement>) => void) | undefined;
|
|
3759
3635
|
/**
|
|
3760
3636
|
* font size of the input
|
|
3761
3637
|
*/
|
|
@@ -3799,16 +3675,11 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3799
3675
|
/**
|
|
3800
3676
|
* Radio group items
|
|
3801
3677
|
*/
|
|
3802
|
-
|
|
3803
|
-
label: ReactNode;
|
|
3804
|
-
value: string;
|
|
3805
|
-
disabled?: boolean;
|
|
3806
|
-
symbol?: string;
|
|
3807
|
-
}>;
|
|
3678
|
+
radioGroupItems?: MlRadioGroupProps['options'];
|
|
3808
3679
|
/**
|
|
3809
3680
|
* Radio group default value
|
|
3810
3681
|
*/
|
|
3811
|
-
|
|
3682
|
+
radioDefaultValue?: string;
|
|
3812
3683
|
/**
|
|
3813
3684
|
* Amount to pay text
|
|
3814
3685
|
*/
|
|
@@ -3816,7 +3687,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3816
3687
|
/**
|
|
3817
3688
|
* Amount to pay
|
|
3818
3689
|
*/
|
|
3819
|
-
amountToPay?:
|
|
3690
|
+
amountToPay?: string;
|
|
3820
3691
|
/**
|
|
3821
3692
|
* Coupon text
|
|
3822
3693
|
*/
|
|
@@ -3824,7 +3695,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3824
3695
|
/**
|
|
3825
3696
|
* Discount
|
|
3826
3697
|
*/
|
|
3827
|
-
discount?:
|
|
3698
|
+
discount?: string;
|
|
3828
3699
|
/**
|
|
3829
3700
|
* Total text
|
|
3830
3701
|
*/
|
|
@@ -3832,7 +3703,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3832
3703
|
/**
|
|
3833
3704
|
* Total
|
|
3834
3705
|
*/
|
|
3835
|
-
total?:
|
|
3706
|
+
total?: string;
|
|
3836
3707
|
/**
|
|
3837
3708
|
* Tax text
|
|
3838
3709
|
*/
|
|
@@ -3840,7 +3711,7 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3840
3711
|
/**
|
|
3841
3712
|
* Tax
|
|
3842
3713
|
*/
|
|
3843
|
-
tax?:
|
|
3714
|
+
tax?: string;
|
|
3844
3715
|
/**
|
|
3845
3716
|
* Pay button text
|
|
3846
3717
|
*/
|
|
@@ -3850,258 +3721,412 @@ export interface TmRechargePageProps<FormType = any> {
|
|
|
3850
3721
|
*/
|
|
3851
3722
|
applyCouponClick?: () => void;
|
|
3852
3723
|
/**
|
|
3853
|
-
*
|
|
3724
|
+
* Pay click
|
|
3854
3725
|
*/
|
|
3855
|
-
|
|
3726
|
+
payClick?: () => void;
|
|
3856
3727
|
/**
|
|
3857
|
-
*
|
|
3728
|
+
* onChange radio group
|
|
3858
3729
|
*/
|
|
3859
|
-
|
|
3730
|
+
onChangeRadio?: MlRadioGroupProps['onChange'];
|
|
3731
|
+
}
|
|
3732
|
+
export const OrRecharge: React.FC<OrRechargeProps>;
|
|
3733
|
+
export interface AtInputStatusProps {
|
|
3860
3734
|
/**
|
|
3861
|
-
*
|
|
3735
|
+
* Custom close icon. 5.7.0: close button will be hidden when setting to null or false
|
|
3862
3736
|
*/
|
|
3863
|
-
|
|
3737
|
+
closeIcon?: React.ReactNode;
|
|
3738
|
+
/**
|
|
3739
|
+
* Set the icon of tag
|
|
3740
|
+
*/
|
|
3741
|
+
icon?: React.ReactNode;
|
|
3742
|
+
/**
|
|
3743
|
+
* Callback executed when tag is closed
|
|
3744
|
+
*/
|
|
3745
|
+
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
3746
|
+
/**
|
|
3747
|
+
* Tag text
|
|
3748
|
+
*/
|
|
3749
|
+
children?: React.ReactNode;
|
|
3750
|
+
/**
|
|
3751
|
+
* Status type
|
|
3752
|
+
*/
|
|
3753
|
+
type?: 'success' | 'warning' | 'danger' | 'info';
|
|
3754
|
+
visible?: boolean;
|
|
3755
|
+
}
|
|
3756
|
+
export const AtInputStatus: React.FC<AtInputStatusProps>;
|
|
3757
|
+
export interface AtLogoProps {
|
|
3758
|
+
width?: number;
|
|
3759
|
+
height?: number;
|
|
3760
|
+
color?: 'violet' | 'gold' | 'white';
|
|
3761
|
+
type?: 'logo' | 'isotype';
|
|
3762
|
+
}
|
|
3763
|
+
export const AtLogo: React.FC<AtLogoProps>;
|
|
3764
|
+
type AtPasswordInputProp = AtTextInputProps & {
|
|
3765
|
+
iconRender?: (visible: boolean) => React.ReactNode;
|
|
3766
|
+
};
|
|
3767
|
+
export const AtPasswordInput: React.FC<AtPasswordInputProp>;
|
|
3768
|
+
export interface AtRadioProps {
|
|
3769
|
+
/**
|
|
3770
|
+
* The ID for input
|
|
3771
|
+
*/
|
|
3772
|
+
id?: string;
|
|
3773
|
+
/**
|
|
3774
|
+
* Specifies whether the radio is selected
|
|
3775
|
+
*/
|
|
3776
|
+
checked?: boolean;
|
|
3777
|
+
/**
|
|
3778
|
+
* Specifies the initial state: whether or not the radio is selected
|
|
3779
|
+
*/
|
|
3780
|
+
defaultChecked?: boolean;
|
|
3781
|
+
/**
|
|
3782
|
+
* Disable radio
|
|
3783
|
+
*/
|
|
3784
|
+
disabled?: boolean;
|
|
3785
|
+
/**
|
|
3786
|
+
* According to value for comparison, to determine whether the selected
|
|
3787
|
+
*/
|
|
3788
|
+
value?: any;
|
|
3789
|
+
/**
|
|
3790
|
+
* Children of the AtRadio
|
|
3791
|
+
*/
|
|
3792
|
+
children?: React.ReactNode;
|
|
3793
|
+
/**
|
|
3794
|
+
* On select option callback
|
|
3795
|
+
*/
|
|
3796
|
+
onChange?: ((e: _RadioChangeEvent1) => void) | undefined;
|
|
3797
|
+
}
|
|
3798
|
+
export const AtRadio: React.FC<AtRadioProps>;
|
|
3799
|
+
export interface AtRadioButtonsProps {
|
|
3800
|
+
/**
|
|
3801
|
+
* The title of the button
|
|
3802
|
+
*/
|
|
3803
|
+
title: string;
|
|
3804
|
+
/**
|
|
3805
|
+
* The value of the button
|
|
3806
|
+
*/
|
|
3807
|
+
value: string;
|
|
3808
|
+
}
|
|
3809
|
+
export const AtRadioButtons: React.FC<AtRadioButtonsProps>;
|
|
3810
|
+
export interface AtResultProps {
|
|
3811
|
+
/**
|
|
3812
|
+
* Icon to show in result
|
|
3813
|
+
*/
|
|
3814
|
+
icon?: React.ReactNode;
|
|
3815
|
+
/**
|
|
3816
|
+
* Title to show in result
|
|
3817
|
+
*/
|
|
3818
|
+
title?: React.ReactNode;
|
|
3819
|
+
/**
|
|
3820
|
+
* Extra content to show in result
|
|
3821
|
+
*/
|
|
3822
|
+
extra?: React.ReactNode;
|
|
3823
|
+
}
|
|
3824
|
+
export const AtResult: React.FC<AtResultProps>;
|
|
3825
|
+
export interface AtSelectProps {
|
|
3826
|
+
/**
|
|
3827
|
+
* The ID for input
|
|
3828
|
+
*/
|
|
3829
|
+
id?: string;
|
|
3830
|
+
/**
|
|
3831
|
+
* Show clear button
|
|
3832
|
+
*/
|
|
3833
|
+
allowClear?: boolean;
|
|
3834
|
+
/**
|
|
3835
|
+
* Whether the current search will be cleared on selecting an item. Only applies when mode is set to multiple or tags
|
|
3836
|
+
*/
|
|
3837
|
+
autoClearSearchValue?: boolean;
|
|
3838
|
+
/**
|
|
3839
|
+
* Get focus by default
|
|
3840
|
+
*/
|
|
3841
|
+
autoFocus?: boolean;
|
|
3842
|
+
/**
|
|
3843
|
+
* Whether has border style
|
|
3844
|
+
*/
|
|
3845
|
+
bordered?: boolean;
|
|
3846
|
+
/**
|
|
3847
|
+
* The custom clear icon
|
|
3848
|
+
*/
|
|
3849
|
+
clearIcon?: ReactNode;
|
|
3850
|
+
/**
|
|
3851
|
+
* Whether active first option by default
|
|
3852
|
+
*/
|
|
3853
|
+
defaultActiveFirstOption?: boolean;
|
|
3854
|
+
/**
|
|
3855
|
+
* Initial selected option
|
|
3856
|
+
*/
|
|
3857
|
+
defaultValue?: string | string[] | number | number[] | LabeledValue | LabeledValue[];
|
|
3858
|
+
/**
|
|
3859
|
+
* Whether disabled select
|
|
3860
|
+
*/
|
|
3861
|
+
disabled?: boolean;
|
|
3862
|
+
/**
|
|
3863
|
+
* Determine whether the popup menu and the select input are the same width. Default set
|
|
3864
|
+
* min-width same as input. Will ignore when value less than select width. false
|
|
3865
|
+
* will disable virtual scroll
|
|
3866
|
+
*/
|
|
3867
|
+
popupMatchSelectWidth?: boolean | number;
|
|
3868
|
+
/**
|
|
3869
|
+
* Customize dropdown content
|
|
3870
|
+
*/
|
|
3871
|
+
dropdownRender?: (originNode: ReactNode) => ReactElement<any, string | JSXElementConstructor<any>>;
|
|
3872
|
+
/**
|
|
3873
|
+
* The style of dropdown menu
|
|
3874
|
+
*/
|
|
3875
|
+
dropdownStyle?: CSSProperties;
|
|
3876
|
+
/**
|
|
3877
|
+
* Customize node label, value, options,groupLabel field name
|
|
3878
|
+
*/
|
|
3879
|
+
fieldNames?: object;
|
|
3880
|
+
/**
|
|
3881
|
+
* If true, filter options by input, if function, filter options against it. The function will receive two arguments, inputValue and option, if the function returns true, the option will be included in the filtered set; Otherwise, it will be excluded
|
|
3882
|
+
*/
|
|
3883
|
+
filterOption?: SelectProps['filterOption'];
|
|
3884
|
+
/**
|
|
3885
|
+
* Sort function for search options sorting, see Array.sort's
|
|
3886
|
+
* compareFunction
|
|
3887
|
+
*/
|
|
3888
|
+
filterSort?: (optionA: DefaultOptionType, optionB: DefaultOptionType) => number;
|
|
3889
|
+
/**
|
|
3890
|
+
* Whether to embed label in value, turn the format of value from string to { value: string,
|
|
3891
|
+
* label: ReactNode }
|
|
3892
|
+
*/
|
|
3893
|
+
labelInValue?: boolean;
|
|
3864
3894
|
/**
|
|
3865
|
-
*
|
|
3895
|
+
* Config popup height
|
|
3866
3896
|
*/
|
|
3867
|
-
|
|
3897
|
+
listHeight?: number;
|
|
3868
3898
|
/**
|
|
3869
|
-
*
|
|
3899
|
+
* Indicate loading state
|
|
3870
3900
|
*/
|
|
3871
|
-
|
|
3901
|
+
loading?: boolean;
|
|
3872
3902
|
/**
|
|
3873
|
-
*
|
|
3903
|
+
* Select height
|
|
3874
3904
|
*/
|
|
3875
|
-
|
|
3905
|
+
$height?: string;
|
|
3876
3906
|
/**
|
|
3877
|
-
*
|
|
3907
|
+
* Max tag count to show. responsive will cost render performance
|
|
3878
3908
|
*/
|
|
3879
|
-
|
|
3909
|
+
maxTagCount?: number | 'responsive';
|
|
3880
3910
|
/**
|
|
3881
|
-
*
|
|
3911
|
+
* The custom menuItemSelected icon with multiple options
|
|
3882
3912
|
*/
|
|
3883
|
-
|
|
3913
|
+
menuItemSelectedIcon?: ReactNode;
|
|
3884
3914
|
/**
|
|
3885
|
-
*
|
|
3915
|
+
* Set mode of Select
|
|
3886
3916
|
*/
|
|
3887
|
-
|
|
3917
|
+
mode?: 'multiple' | 'tags';
|
|
3888
3918
|
/**
|
|
3889
|
-
*
|
|
3919
|
+
* Specify content to show when no result matches
|
|
3890
3920
|
*/
|
|
3891
|
-
|
|
3921
|
+
notFoundContent?: ReactNode;
|
|
3892
3922
|
/**
|
|
3893
|
-
*
|
|
3923
|
+
* Controlled open state of dropdown
|
|
3894
3924
|
*/
|
|
3895
|
-
|
|
3896
|
-
editable?: boolean;
|
|
3897
|
-
rate?: number;
|
|
3898
|
-
}
|
|
3899
|
-
export const TmRechargePage: <FormType extends Store>({ title, subtitle, balance, cardTitle, fontSize, height, ruleAmount, form, initialValues, onFinish, amountPlaceholder, currenciesOptions, defaultCurrency, amountToPayText, amountToPay, couponText, discount, totalText, taxText, tax, payBtn, drawerTitle, open, paymentMethods, currentPaymentSelectedFields, disabledButton, showPaymentMethods, termsDisclaimer, onCloseDrawer, showLeftArrow, onClickLeftArrow, editable, rate, }: TmRechargePageProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3900
|
-
export interface PaymentMethod {
|
|
3901
|
-
value: string;
|
|
3902
|
-
icon?: React.ReactNode;
|
|
3903
|
-
onClick: (value: string) => void;
|
|
3904
|
-
}
|
|
3905
|
-
export interface OrPaymentMethodsProps<FormType = any> {
|
|
3925
|
+
open?: boolean;
|
|
3906
3926
|
/**
|
|
3907
|
-
*
|
|
3927
|
+
* Which prop value of option will be used for filter if filterOption is true. If options is
|
|
3928
|
+
set, it should be set to label
|
|
3908
3929
|
*/
|
|
3909
|
-
|
|
3930
|
+
optionFilterProp?: string;
|
|
3910
3931
|
/**
|
|
3911
|
-
*
|
|
3932
|
+
* Which prop value of option will render as content of select. Example
|
|
3912
3933
|
*/
|
|
3913
|
-
|
|
3934
|
+
optionLabelProp?: string;
|
|
3914
3935
|
/**
|
|
3915
|
-
*
|
|
3936
|
+
* Select options. Will get better perf than jsx definition
|
|
3916
3937
|
*/
|
|
3917
|
-
|
|
3938
|
+
options?: SelectProps['options'];
|
|
3918
3939
|
/**
|
|
3919
|
-
*
|
|
3940
|
+
* Placeholder of select
|
|
3920
3941
|
*/
|
|
3921
|
-
|
|
3942
|
+
placeholder?: ReactNode;
|
|
3922
3943
|
/**
|
|
3923
|
-
*
|
|
3944
|
+
* The current input "search" text
|
|
3924
3945
|
*/
|
|
3925
|
-
|
|
3946
|
+
searchValue?: string;
|
|
3926
3947
|
/**
|
|
3927
|
-
*
|
|
3948
|
+
* Whether select is searchable
|
|
3928
3949
|
*/
|
|
3929
|
-
|
|
3950
|
+
showSearch?: boolean;
|
|
3930
3951
|
/**
|
|
3931
|
-
*
|
|
3952
|
+
* Size of Select input
|
|
3932
3953
|
*/
|
|
3933
|
-
|
|
3954
|
+
size?: 'large' | 'middle' | 'small';
|
|
3934
3955
|
/**
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
}
|
|
3939
|
-
export const OrPaymentMethods: <FormType extends Store>({ drawerTitle, open, paymentMethods, currentPaymentSelectedFields, showPaymentMethods, termsDisclaimer, onCloseDrawer, disabledButton, }: OrPaymentMethodsProps<FormType>) => import("react/jsx-runtime").JSX.Element;
|
|
3940
|
-
export interface OrTableModuleLayoutProps {
|
|
3956
|
+
* Set validation status
|
|
3957
|
+
*/
|
|
3958
|
+
status?: 'error' | 'warning';
|
|
3941
3959
|
/**
|
|
3942
|
-
*
|
|
3960
|
+
* Styles
|
|
3943
3961
|
*/
|
|
3944
|
-
|
|
3962
|
+
style?: React.CSSProperties;
|
|
3945
3963
|
/**
|
|
3946
|
-
*
|
|
3964
|
+
* Current selected option (considered as a immutable array)
|
|
3947
3965
|
*/
|
|
3948
|
-
|
|
3966
|
+
value?: string | string[] | number | number[] | LabeledValue | LabeledValue[];
|
|
3949
3967
|
/**
|
|
3950
|
-
*
|
|
3968
|
+
* Called when blur
|
|
3951
3969
|
*/
|
|
3952
|
-
|
|
3970
|
+
onBlur?: () => any;
|
|
3953
3971
|
/**
|
|
3954
|
-
*
|
|
3972
|
+
* Called when select an option or input value change
|
|
3955
3973
|
*/
|
|
3956
|
-
|
|
3974
|
+
onChange?: (value: any, option: DefaultOptionType | Array<DefaultOptionType>) => any;
|
|
3957
3975
|
/**
|
|
3958
|
-
*
|
|
3976
|
+
* Called when clear
|
|
3959
3977
|
*/
|
|
3960
|
-
|
|
3978
|
+
onClear?: () => any;
|
|
3961
3979
|
/**
|
|
3962
|
-
*
|
|
3980
|
+
* Called when an option is deselected, param is the selected option's value. Only called for
|
|
3981
|
+
* multiple or tags, effective in multiple or tags mode only
|
|
3963
3982
|
*/
|
|
3964
|
-
|
|
3983
|
+
onDeselect?: (value: string | number | LabeledValue) => any;
|
|
3965
3984
|
/**
|
|
3966
|
-
*
|
|
3985
|
+
* Called when dropdown open
|
|
3967
3986
|
*/
|
|
3968
|
-
|
|
3987
|
+
onDropdownVisibleChange?: (open: boolean) => any;
|
|
3969
3988
|
/**
|
|
3970
|
-
*
|
|
3989
|
+
* Called when focus
|
|
3971
3990
|
*/
|
|
3972
|
-
|
|
3973
|
-
}
|
|
3974
|
-
export const OrTableModuleLayout: React.FC<OrTableModuleLayoutProps>;
|
|
3975
|
-
export interface OrRechargeProps {
|
|
3991
|
+
onFocus?: () => any;
|
|
3976
3992
|
/**
|
|
3977
|
-
*
|
|
3993
|
+
* Callback function that is fired when input changed
|
|
3978
3994
|
*/
|
|
3979
|
-
|
|
3995
|
+
onSearch?: (value: string) => any;
|
|
3980
3996
|
/**
|
|
3981
|
-
*
|
|
3997
|
+
* Called when an option is selected, the params are option's value (or key) and option instance
|
|
3982
3998
|
*/
|
|
3983
|
-
|
|
3999
|
+
onSelect?: (value: string | number | LabeledValue, option: DefaultOptionType) => any;
|
|
3984
4000
|
/**
|
|
3985
|
-
*
|
|
4001
|
+
* Select width
|
|
3986
4002
|
*/
|
|
3987
|
-
|
|
4003
|
+
$width?: string;
|
|
3988
4004
|
/**
|
|
3989
|
-
*
|
|
4005
|
+
* Children
|
|
3990
4006
|
*/
|
|
3991
|
-
|
|
4007
|
+
children?: ReactNode;
|
|
3992
4008
|
/**
|
|
3993
|
-
*
|
|
4009
|
+
* background color
|
|
3994
4010
|
*/
|
|
3995
|
-
|
|
4011
|
+
backgroundColor?: 'violet' | 'white';
|
|
3996
4012
|
/**
|
|
3997
|
-
*
|
|
4013
|
+
* text color
|
|
3998
4014
|
*/
|
|
3999
|
-
|
|
4015
|
+
$textColor?: 'white' | 'violet';
|
|
4016
|
+
}
|
|
4017
|
+
export const AtSelect: React.FC<AtSelectProps>;
|
|
4018
|
+
export interface AtSwitchProps extends SwitchProps {
|
|
4000
4019
|
/**
|
|
4001
|
-
*
|
|
4020
|
+
* Whether get focus when component mounted
|
|
4002
4021
|
*/
|
|
4003
|
-
|
|
4022
|
+
autoFocus?: boolean;
|
|
4004
4023
|
/**
|
|
4005
|
-
*
|
|
4024
|
+
* Determine whether the Switch is checked
|
|
4006
4025
|
*/
|
|
4007
|
-
|
|
4026
|
+
checked?: boolean;
|
|
4008
4027
|
/**
|
|
4009
|
-
*
|
|
4028
|
+
* Determine whether the Switch is checked
|
|
4010
4029
|
*/
|
|
4011
|
-
|
|
4030
|
+
disabled?: boolean;
|
|
4012
4031
|
/**
|
|
4013
|
-
*
|
|
4032
|
+
* Trigger when the checked state is changing
|
|
4014
4033
|
*/
|
|
4015
|
-
|
|
4034
|
+
onChange?: SwitchProps['onChange'];
|
|
4035
|
+
}
|
|
4036
|
+
export const AtSwitch: React.FC<AtSwitchProps>;
|
|
4037
|
+
export interface AtTagProps {
|
|
4016
4038
|
/**
|
|
4017
|
-
*
|
|
4039
|
+
* Custom close icon. 5.7.0: close button will be hidden when setting to null or false
|
|
4018
4040
|
*/
|
|
4019
|
-
|
|
4041
|
+
closeIcon?: React.ReactNode;
|
|
4020
4042
|
/**
|
|
4021
|
-
*
|
|
4043
|
+
* Tag color
|
|
4022
4044
|
*/
|
|
4023
|
-
|
|
4045
|
+
color?: TagProps['color'];
|
|
4024
4046
|
/**
|
|
4025
|
-
*
|
|
4047
|
+
* Set the icon of tag
|
|
4026
4048
|
*/
|
|
4027
|
-
|
|
4049
|
+
icon?: React.ReactNode;
|
|
4028
4050
|
/**
|
|
4029
|
-
*
|
|
4051
|
+
* Whether has border style
|
|
4030
4052
|
*/
|
|
4031
|
-
|
|
4053
|
+
bordered?: boolean;
|
|
4032
4054
|
/**
|
|
4033
|
-
*
|
|
4055
|
+
* Callback executed when tag is closed
|
|
4034
4056
|
*/
|
|
4035
|
-
|
|
4057
|
+
onClose?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
4036
4058
|
/**
|
|
4037
|
-
*
|
|
4059
|
+
* Tag text
|
|
4038
4060
|
*/
|
|
4039
|
-
|
|
4061
|
+
children?: React.ReactNode;
|
|
4062
|
+
}
|
|
4063
|
+
export const AtTag: React.FC<AtTagProps>;
|
|
4064
|
+
export interface AtTitleProps {
|
|
4040
4065
|
/**
|
|
4041
|
-
*
|
|
4066
|
+
* Code style
|
|
4042
4067
|
*/
|
|
4043
|
-
|
|
4068
|
+
code?: boolean;
|
|
4044
4069
|
/**
|
|
4045
|
-
*
|
|
4070
|
+
* Whether to be copyable, customize it via setting an object
|
|
4046
4071
|
*/
|
|
4047
|
-
|
|
4072
|
+
copyable?: boolean | BlockProps['copyable'];
|
|
4048
4073
|
/**
|
|
4049
|
-
*
|
|
4074
|
+
* Deleted line style
|
|
4050
4075
|
*/
|
|
4051
|
-
|
|
4076
|
+
delete?: boolean;
|
|
4052
4077
|
/**
|
|
4053
|
-
*
|
|
4078
|
+
* Disabled content
|
|
4054
4079
|
*/
|
|
4055
|
-
|
|
4080
|
+
disabled?: boolean;
|
|
4056
4081
|
/**
|
|
4057
|
-
*
|
|
4082
|
+
* If editable. Can control edit state when is object
|
|
4058
4083
|
*/
|
|
4059
|
-
|
|
4084
|
+
editable?: boolean | BlockProps['editable'];
|
|
4060
4085
|
/**
|
|
4061
|
-
*
|
|
4086
|
+
* Display ellipsis when text overflows, can configure rows and expandable by using object
|
|
4062
4087
|
*/
|
|
4063
|
-
|
|
4088
|
+
ellipsis?: boolean | EllipsisConfig;
|
|
4064
4089
|
/**
|
|
4065
|
-
*
|
|
4090
|
+
* Set content importance. Match with h1, h2, h3, h4, h5
|
|
4066
4091
|
*/
|
|
4067
|
-
|
|
4092
|
+
level?: 1 | 2 | 3 | 4 | 5;
|
|
4068
4093
|
/**
|
|
4069
|
-
*
|
|
4094
|
+
* Whether the text is mark or not
|
|
4070
4095
|
*/
|
|
4071
|
-
|
|
4096
|
+
mark?: boolean;
|
|
4072
4097
|
/**
|
|
4073
|
-
*
|
|
4098
|
+
* Set the handler to handle click event
|
|
4074
4099
|
*/
|
|
4075
|
-
|
|
4100
|
+
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
4076
4101
|
/**
|
|
4077
|
-
*
|
|
4102
|
+
* Whether the text is italic or not
|
|
4078
4103
|
*/
|
|
4079
|
-
|
|
4104
|
+
italic?: boolean;
|
|
4080
4105
|
/**
|
|
4081
|
-
*
|
|
4106
|
+
* Content type
|
|
4082
4107
|
*/
|
|
4083
|
-
|
|
4108
|
+
type?: BaseType;
|
|
4084
4109
|
/**
|
|
4085
|
-
*
|
|
4110
|
+
* Whether the text is underline or not
|
|
4086
4111
|
*/
|
|
4087
|
-
|
|
4112
|
+
underline?: boolean;
|
|
4088
4113
|
/**
|
|
4089
|
-
*
|
|
4114
|
+
* Additional content to include
|
|
4090
4115
|
*/
|
|
4091
|
-
|
|
4116
|
+
children?: ReactNode;
|
|
4092
4117
|
/**
|
|
4093
|
-
*
|
|
4118
|
+
* Color of the title
|
|
4094
4119
|
*/
|
|
4095
|
-
|
|
4120
|
+
color?: 'violet' | 'gold' | 'white';
|
|
4096
4121
|
/**
|
|
4097
|
-
*
|
|
4122
|
+
* Margin
|
|
4098
4123
|
*/
|
|
4099
|
-
|
|
4124
|
+
$margin?: string;
|
|
4100
4125
|
/**
|
|
4101
|
-
*
|
|
4126
|
+
* Text Align
|
|
4102
4127
|
*/
|
|
4103
|
-
|
|
4128
|
+
$textAlign?: string;
|
|
4104
4129
|
}
|
|
4105
|
-
export const
|
|
4130
|
+
export const AtTitle: React.FC<AtTitleProps>;
|
|
4106
4131
|
|
|
4107
4132
|
//# sourceMappingURL=index.d.ts.map
|