@pnkx-lib/ui 1.9.207 → 1.9.209
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/es/ui/index.js +247 -61
- package/package.json +1 -1
- package/types/components/fields/CascaderField.d.ts +14 -0
- package/types/components/fields/Checkbox.d.ts +12 -0
- package/types/components/fields/DatePicker.d.ts +21 -0
- package/types/{DateRangePicker.d.ts → components/fields/DateRangePicker.d.ts} +13 -19
- package/types/components/fields/Input.d.ts +33 -0
- package/types/components/fields/PnkxField.d.ts +11 -0
- package/types/components/fields/Radio.d.ts +19 -0
- package/types/components/fields/Select.d.ts +13 -0
- package/types/{SliderRanger.d.ts → components/fields/SliderRanger.d.ts} +12 -18
- package/types/components/fields/SliderSingle.d.ts +12 -0
- package/types/components/fields/Switch.d.ts +12 -0
- package/types/components/fields/Textarea.d.ts +12 -0
- package/types/components/fields/TimePicker.d.ts +12 -0
- package/types/components/fields/TimeRangePicker.d.ts +12 -0
- package/types/{TinyMCE.d.ts → components/fields/TinyMCE.d.ts} +16 -22
- package/types/components/fields/Upload.d.ts +15 -0
- package/types/components/fields/index.d.ts +15 -0
- package/types/components/hooks/index.d.ts +2 -0
- package/types/components/hooks/useBreadcrumb.d.ts +6 -0
- package/types/components/hooks/useDebounce.d.ts +1 -0
- package/types/{useMessage.d.ts → components/hooks/useMessage.d.ts} +5 -9
- package/types/{useToast.d.ts → components/hooks/useToast.d.ts} +12 -16
- package/types/components/icons/ActivateIcon.d.ts +6 -0
- package/types/components/icons/AllowClearIcon.d.ts +2 -0
- package/types/components/icons/ApprovalIcon.d.ts +6 -0
- package/types/components/icons/CancelApprovalIcon.d.ts +6 -0
- package/types/components/icons/CancelSendApprovalIcon.d.ts +6 -0
- package/types/components/icons/DeleteIcon.d.ts +6 -0
- package/types/components/icons/Dollar.d.ts +3 -0
- package/types/components/icons/DragIcon.d.ts +6 -0
- package/types/components/icons/EditIcon.d.ts +6 -0
- package/types/components/icons/ErrorConfirmIcon.d.ts +3 -0
- package/types/components/icons/InActivateIcon.d.ts +6 -0
- package/types/components/icons/InfoConfirmIcon.d.ts +3 -0
- package/types/components/icons/MoreIcon.d.ts +6 -0
- package/types/components/icons/PlusIcon.d.ts +6 -0
- package/types/components/icons/RefuseApprovalIcon.d.ts +6 -0
- package/types/components/icons/RestoreIcon.d.ts +6 -0
- package/types/components/icons/SearchAdvanceIcon.d.ts +6 -0
- package/types/components/icons/SearchIcon.d.ts +2 -0
- package/types/components/icons/SendApprovalIcon.d.ts +6 -0
- package/types/components/icons/SettingIcon.d.ts +1 -0
- package/types/components/icons/SuccessIcon.d.ts +3 -0
- package/types/components/icons/TrashCanIcon.d.ts +2 -0
- package/types/components/icons/WaitingApprovalIcon.d.ts +6 -0
- package/types/components/icons/WarningConfirmIcon.d.ts +3 -0
- package/types/components/icons/index.d.ts +18 -0
- package/types/components/index.d.ts +3 -0
- package/types/components/ui/Alert.d.ts +3 -0
- package/types/components/ui/Anchor.d.ts +9 -0
- package/types/components/ui/Appfix.d.ts +6 -0
- package/types/components/ui/AutoComplete.d.ts +3 -0
- package/types/{Badge.d.ts → components/ui/Badge.d.ts} +8 -14
- package/types/{BottomPagination.d.ts → components/ui/BottomPagination.d.ts} +8 -12
- package/types/components/ui/Breadcrumb.d.ts +16 -0
- package/types/components/ui/BreadcrumbHeading.d.ts +8 -0
- package/types/components/ui/BulkActions/BulkAction.d.ts +10 -0
- package/types/components/ui/BulkActions/DropListActions.d.ts +9 -0
- package/types/components/ui/BulkActions/index.d.ts +22 -0
- package/types/components/ui/Button.d.ts +4 -0
- package/types/components/ui/Card.d.ts +3 -0
- package/types/components/ui/Cascader.d.ts +14 -0
- package/types/{CategoryStatus.d.ts → components/ui/CategoryStatus.d.ts} +20 -27
- package/types/components/ui/Col.d.ts +11 -0
- package/types/components/ui/Collapse.d.ts +3 -0
- package/types/components/ui/ColorPicker.d.ts +3 -0
- package/types/components/ui/ConfigProvider.d.ts +4 -0
- package/types/components/ui/ConfirmModal.d.ts +12 -0
- package/types/components/ui/Container.d.ts +8 -0
- package/types/components/ui/Divider.d.ts +6 -0
- package/types/components/ui/Drawer.d.ts +7 -0
- package/types/components/ui/Dropdown.d.ts +12 -0
- package/types/components/ui/Empty.d.ts +3 -0
- package/types/{ErrorBoundary.d.ts → components/ui/ErrorBoundary.d.ts} +18 -26
- package/types/components/ui/ErrorMessage.d.ts +7 -0
- package/types/components/ui/Flex.d.ts +9 -0
- package/types/components/ui/Footer.d.ts +2 -0
- package/types/components/ui/Heading.d.ts +10 -0
- package/types/components/ui/Image.d.ts +2 -0
- package/types/components/ui/Label.d.ts +5 -0
- package/types/components/ui/Layout.d.ts +14 -0
- package/types/components/ui/Menu.d.ts +22 -0
- package/types/components/ui/Modal.d.ts +6 -0
- package/types/components/ui/PageNotFound.d.ts +4 -0
- package/types/components/ui/Pagination.d.ts +12 -0
- package/types/components/ui/Popconfirm.d.ts +6 -0
- package/types/components/ui/Popover.d.ts +9 -0
- package/types/components/ui/QRCode.d.ts +3 -0
- package/types/components/ui/Rate.d.ts +2 -0
- package/types/components/ui/Result.d.ts +6 -0
- package/types/components/ui/Row.d.ts +7 -0
- package/types/{SearchFilterForm.d.ts → components/ui/SearchFilterForm.d.ts} +18 -29
- package/types/components/ui/Segmented.d.ts +3 -0
- package/types/components/ui/Sidebar.d.ts +22 -0
- package/types/components/ui/Skeleton.d.ts +6 -0
- package/types/components/ui/Space.d.ts +8 -0
- package/types/components/ui/Spin.d.ts +6 -0
- package/types/components/ui/Splitter.d.ts +8 -0
- package/types/components/ui/Statistic.d.ts +3 -0
- package/types/components/ui/Steps.d.ts +12 -0
- package/types/components/ui/Table/ActionRowTable/index.d.ts +10 -0
- package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
- package/types/components/ui/Table/HeadingTable/index.d.ts +16 -0
- package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
- package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
- package/types/components/ui/Table/SettingTable/SortableItem.d.ts +6 -0
- package/types/components/ui/Table/SettingTable/index.d.ts +11 -0
- package/types/components/ui/Table/index.d.ts +46 -0
- package/types/components/ui/Tabs.d.ts +14 -0
- package/types/{Tag.d.ts → components/ui/Tag.d.ts} +5 -9
- package/types/components/ui/Timeline.d.ts +3 -0
- package/types/components/ui/Tooltip.d.ts +4 -0
- package/types/components/ui/Tour.d.ts +3 -0
- package/types/components/ui/Tree.d.ts +3 -0
- package/types/components/ui/Typography.d.ts +8 -0
- package/types/components/ui/UploadImage.d.ts +6 -0
- package/types/{Watermark.d.ts → components/ui/Watermark.d.ts} +2 -6
- package/types/components/ui/index.d.ts +60 -0
- package/types/constants/common.d.ts +1 -0
- package/types/constants/table.d.ts +31 -0
- package/types/helpers/common.d.ts +1 -0
- package/types/index.d.ts +2 -42
- package/types/Alert.d.ts +0 -7
- package/types/Anchor.d.ts +0 -13
- package/types/Appfix.d.ts +0 -11
- package/types/AutoComplete.d.ts +0 -7
- package/types/Breadcrumb.d.ts +0 -27
- package/types/BreadcrumbHeading.d.ts +0 -26
- package/types/Button.d.ts +0 -8
- package/types/Card.d.ts +0 -7
- package/types/Cascader.d.ts +0 -22
- package/types/CascaderField.d.ts +0 -20
- package/types/Checkbox.d.ts +0 -18
- package/types/Col.d.ts +0 -19
- package/types/Collapse.d.ts +0 -7
- package/types/ColorPicker.d.ts +0 -7
- package/types/ConfigProvider.d.ts +0 -8
- package/types/ConfirmModal.d.ts +0 -23
- package/types/Container.d.ts +0 -13
- package/types/DatePicker.d.ts +0 -29
- package/types/Divider.d.ts +0 -11
- package/types/Drawer.d.ts +0 -12
- package/types/Dropdown.d.ts +0 -21
- package/types/Empty.d.ts +0 -7
- package/types/ErrorMessage.d.ts +0 -12
- package/types/Flex.d.ts +0 -15
- package/types/Footer.d.ts +0 -6
- package/types/Heading.d.ts +0 -27
- package/types/Image.d.ts +0 -6
- package/types/Input.d.ts +0 -42
- package/types/Label.d.ts +0 -10
- package/types/Layout.d.ts +0 -20
- package/types/Menu.d.ts +0 -40
- package/types/Modal.d.ts +0 -11
- package/types/PageNotFound.d.ts +0 -9
- package/types/Pagination.d.ts +0 -22
- package/types/PnkxField.d.ts +0 -17
- package/types/Popconfirm.d.ts +0 -11
- package/types/Popover.d.ts +0 -15
- package/types/QRCode.d.ts +0 -7
- package/types/Radio.d.ts +0 -26
- package/types/Rate.d.ts +0 -5
- package/types/Result.d.ts +0 -11
- package/types/Row.d.ts +0 -12
- package/types/Segmented.d.ts +0 -7
- package/types/Select.d.ts +0 -20
- package/types/Sidebar.d.ts +0 -29
- package/types/Skeleton.d.ts +0 -11
- package/types/SliderSingle.d.ts +0 -18
- package/types/Space.d.ts +0 -13
- package/types/Spin.d.ts +0 -11
- package/types/Splitter.d.ts +0 -13
- package/types/Statistic.d.ts +0 -7
- package/types/Steps.d.ts +0 -20
- package/types/Switch.d.ts +0 -18
- package/types/Tabs.d.ts +0 -18
- package/types/Textarea.d.ts +0 -17
- package/types/TimePicker.d.ts +0 -16
- package/types/TimeRangePicker.d.ts +0 -16
- package/types/Timeline.d.ts +0 -7
- package/types/Tooltip.d.ts +0 -8
- package/types/Tour.d.ts +0 -7
- package/types/Tree.d.ts +0 -7
- package/types/Typography.d.ts +0 -12
- package/types/Upload.d.ts +0 -23
- package/types/UploadImage.d.ts +0 -9
package/types/index.d.ts
CHANGED
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export declare const PAGE_SIZE = "size";
|
|
4
|
-
|
|
5
|
-
export declare const SORT = "sort";
|
|
6
|
-
|
|
7
|
-
export declare const START_PAGE = 1;
|
|
8
|
-
|
|
9
|
-
export declare const START_PAGE_SIZE = 10;
|
|
10
|
-
|
|
11
|
-
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
|
12
|
-
|
|
13
|
-
export declare enum TypeActionRowTable {
|
|
14
|
-
DELETE = "DELETE",
|
|
15
|
-
EDIT = "EDIT",
|
|
16
|
-
UNDO = "UNDO",
|
|
17
|
-
CANCELUNDO = "CANCELUNDO",
|
|
18
|
-
CHECKIN = "CHECKIN",
|
|
19
|
-
PRINT = "PRINT",
|
|
20
|
-
PAYMENT = "PAYMENT",
|
|
21
|
-
PLAY = "PLAY",
|
|
22
|
-
PAUSE = "PAUSE",
|
|
23
|
-
DOWNLOAD = "DOWNLOAD",
|
|
24
|
-
VIEW = "VIEW"
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare enum TypeBulkActions {
|
|
28
|
-
BULKACTION = "bulkaction",
|
|
29
|
-
DROPLIST = "droplist"
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export declare enum TypeStatusTable {
|
|
33
|
-
ALL = "ALL",// Tất cả
|
|
34
|
-
DRAFT = 0,// Tạo mới
|
|
35
|
-
WAITING_APPROVAL = 1,// Chờ duyệt
|
|
36
|
-
ACTIVE = 2,// Hoạt động
|
|
37
|
-
INACTIVE = 3,// Ngưng hoạt động
|
|
38
|
-
REJECTED = 4,// Từ chối duyệt
|
|
39
|
-
DELETED = 5
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { }
|
|
1
|
+
export * from './components/index'
|
|
2
|
+
export {}
|
package/types/Alert.d.ts
DELETED
package/types/Anchor.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AnchorProps } from 'antd';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
|
|
4
|
-
export declare const Anchor: FC<AnchorPropsUnion>;
|
|
5
|
-
|
|
6
|
-
export declare type AnchorPropsUnion = BaseProps & AnchorProps;
|
|
7
|
-
|
|
8
|
-
declare type BaseProps = {
|
|
9
|
-
containerClassName?: string;
|
|
10
|
-
anchorClassName?: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
export { }
|
package/types/Appfix.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AffixProps } from 'antd';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface AppfixProps extends AffixProps {
|
|
8
|
-
children: default_2.ReactNode;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { }
|
package/types/AutoComplete.d.ts
DELETED
package/types/Breadcrumb.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
|
2
|
-
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
|
|
3
|
-
import { BreadcrumbSeparatorType as BreadcrumbSeparatorType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
|
4
|
-
import { JSX } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
declare type BaseProps = {
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
breadcrumbClassName?: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
|
12
|
-
|
|
13
|
-
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
|
14
|
-
children?: Omit<BreadcrumbItemType, "children">[];
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export declare type BreadcrumbProps = BreadcrumbProps_2;
|
|
18
|
-
|
|
19
|
-
export declare type BreadcrumbPropsUnion = BaseProps & BreadcrumbProps;
|
|
20
|
-
|
|
21
|
-
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
|
22
|
-
|
|
23
|
-
export declare type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
24
|
-
|
|
25
|
-
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
26
|
-
|
|
27
|
-
export { }
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const BreadcrumbHeading: (props: BreadcrumbHeadingProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface BreadcrumbHeadingProps {
|
|
8
|
-
menu: Array<MenuType>;
|
|
9
|
-
customBreadcum?: Array<{
|
|
10
|
-
title: React.ReactNode;
|
|
11
|
-
}>;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
declare type MenuType = {
|
|
15
|
-
name: string;
|
|
16
|
-
path: string;
|
|
17
|
-
isShow?: boolean;
|
|
18
|
-
isPrivateRoute?: boolean;
|
|
19
|
-
icon?: ReactNode;
|
|
20
|
-
isShowLabel?: boolean;
|
|
21
|
-
component?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | ReactNode | default_2.FC;
|
|
22
|
-
componentProps?: Record<string, any>;
|
|
23
|
-
children?: MenuType[];
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export { }
|
package/types/Button.d.ts
DELETED
package/types/Card.d.ts
DELETED
package/types/Cascader.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CascaderProps } from 'antd/es/cascader';
|
|
2
|
-
import { DefaultOptionType } from 'antd/es/cascader';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
declare type BaseProps = {
|
|
6
|
-
customStyleContainer?: string;
|
|
7
|
-
customStyleCascader?: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
|
13
|
-
|
|
14
|
-
declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
|
15
|
-
multiple: true;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
19
|
-
multiple?: false;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export { }
|
package/types/CascaderField.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CascaderProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
import { UseFormSetValue } from 'react-hook-form';
|
|
5
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
|
6
|
-
|
|
7
|
-
export declare const Cascader: (props: CascaderFieldProps) => JSX.Element;
|
|
8
|
-
|
|
9
|
-
declare interface CascaderFieldProps extends CascaderProps {
|
|
10
|
-
field?: ControllerRenderProps<any, any>;
|
|
11
|
-
formState?: UseFormStateReturn<any>;
|
|
12
|
-
setValue?: UseFormSetValue<any>;
|
|
13
|
-
label?: string;
|
|
14
|
-
required?: boolean;
|
|
15
|
-
afterOnChange?: (value: any) => void;
|
|
16
|
-
classNameContainer?: string;
|
|
17
|
-
classNameCascader?: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { }
|
package/types/Checkbox.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps as CheckboxProps_2 } from 'antd';
|
|
2
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
-
|
|
6
|
-
export declare const Checkbox: (props: CheckboxProps) => JSX.Element;
|
|
7
|
-
|
|
8
|
-
export declare interface CheckboxProps extends Omit<CheckboxProps_2, "onChange" | "checked"> {
|
|
9
|
-
field?: ControllerRenderProps<any, any>;
|
|
10
|
-
formState?: UseFormStateReturn<any>;
|
|
11
|
-
label?: string;
|
|
12
|
-
required?: boolean;
|
|
13
|
-
afterOnChange?: (checked: boolean) => void;
|
|
14
|
-
customStyleContainer?: string;
|
|
15
|
-
customStyleCheckbox?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { }
|
package/types/Col.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from 'antd';
|
|
2
|
-
import { ColProps as ColProps_2 } from 'antd';
|
|
3
|
-
import { ColSize } from 'antd/es/grid';
|
|
4
|
-
import { JSX } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
declare type BaseProps = {
|
|
7
|
-
colClassName?: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export declare type ColPropsUnion = BaseProps & ColProps;
|
|
16
|
-
|
|
17
|
-
export declare type ColSpanType = number | string;
|
|
18
|
-
|
|
19
|
-
export { }
|
package/types/Collapse.d.ts
DELETED
package/types/ColorPicker.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ConfigProviderProps as ConfigProviderProps_2 } from 'antd';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
|
|
4
|
-
export declare const ConfigProvider: default_2.FC<ConfigProviderProps>;
|
|
5
|
-
|
|
6
|
-
export declare type ConfigProviderProps = ConfigProviderProps_2;
|
|
7
|
-
|
|
8
|
-
export { }
|
package/types/ConfirmModal.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { ModalProps as ModalProps_2 } from 'antd';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface ConfirmModalProps extends ModalProps {
|
|
8
|
-
title: string;
|
|
9
|
-
content: string;
|
|
10
|
-
titleCancelBtn?: string;
|
|
11
|
-
titleSubmitBtn?: string;
|
|
12
|
-
typeIcon: ConfirmModalType;
|
|
13
|
-
handleCancel?: () => void;
|
|
14
|
-
handleSubmit?: () => void;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
|
18
|
-
|
|
19
|
-
declare interface ModalProps extends ModalProps_2 {
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { }
|
package/types/Container.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const Container: default_2.FC<ContainerProps>;
|
|
4
|
-
|
|
5
|
-
export declare interface ContainerProps {
|
|
6
|
-
children: default_2.ReactNode;
|
|
7
|
-
size?: TailwindMaxWidth;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
|
|
12
|
-
|
|
13
|
-
export { }
|
package/types/DatePicker.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
4
|
-
import { ReactDatePickerProps } from 'react-datepicker';
|
|
5
|
-
import { UseFormSetValue } from 'react-hook-form';
|
|
6
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
|
7
|
-
|
|
8
|
-
export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
9
|
-
|
|
10
|
-
export declare interface DatePickerProps extends Omit<ReactDatePickerProps, "onChange"> {
|
|
11
|
-
field?: ControllerRenderProps<any, any>;
|
|
12
|
-
formState?: UseFormStateReturn<any>;
|
|
13
|
-
setValue?: UseFormSetValue<any>;
|
|
14
|
-
classNameDatepicker?: string;
|
|
15
|
-
disabledInputChange?: boolean;
|
|
16
|
-
required?: boolean;
|
|
17
|
-
dateFormat?: string | string[];
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
label?: string;
|
|
20
|
-
maxDate?: Date;
|
|
21
|
-
showTimeSelect?: boolean;
|
|
22
|
-
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
|
23
|
-
customValue?: Date | null;
|
|
24
|
-
size?: TSize;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export declare type TSize = "small" | "medium" | "large";
|
|
28
|
-
|
|
29
|
-
export { }
|
package/types/Divider.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DividerProps as DividerProps_2 } from 'antd';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface DividerProps extends DividerProps_2 {
|
|
8
|
-
children?: ReactNode | string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { }
|
package/types/Drawer.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DrawerProps as DrawerProps_2 } from 'antd';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface DrawerProps extends DrawerProps_2 {
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
onSubmit?: (values: any) => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { }
|
package/types/Dropdown.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
|
|
2
|
-
import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
|
|
3
|
-
import { DropdownProps as DropdownProps_2 } from 'antd';
|
|
4
|
-
import { JSX } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
declare type BaseProps = {
|
|
7
|
-
containerClassName?: string;
|
|
8
|
-
dropdownClassName?: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
|
12
|
-
|
|
13
|
-
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
|
14
|
-
|
|
15
|
-
export declare type DropdownButtonType = DropdownButtonType_2;
|
|
16
|
-
|
|
17
|
-
export declare type DropdownProps = DropdownProps_2;
|
|
18
|
-
|
|
19
|
-
export declare type DropdownPropsUnion = BaseProps & DropdownProps;
|
|
20
|
-
|
|
21
|
-
export { }
|
package/types/Empty.d.ts
DELETED
package/types/ErrorMessage.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
|
5
|
-
|
|
6
|
-
export declare interface ErrorMessageProps {
|
|
7
|
-
errorMessage?: string;
|
|
8
|
-
isTouched?: boolean;
|
|
9
|
-
isSubmitted?: boolean;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { }
|
package/types/Flex.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { FlexProps as FlexProps_2 } from 'antd';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
declare type BaseProps = {
|
|
5
|
-
containerClassName?: string;
|
|
6
|
-
flexClassName?: string;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
|
10
|
-
|
|
11
|
-
export declare type FlexProps = FlexProps_2;
|
|
12
|
-
|
|
13
|
-
export declare type FlexPropsUnion = BaseProps & FlexProps;
|
|
14
|
-
|
|
15
|
-
export { }
|
package/types/Footer.d.ts
DELETED
package/types/Heading.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { default as default_2 } from 'react';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface HeadingProps {
|
|
8
|
-
rightContent?: ReactNode;
|
|
9
|
-
children?: ReactNode;
|
|
10
|
-
noBreadcum?: boolean;
|
|
11
|
-
classNameWrapHeading?: string;
|
|
12
|
-
menu: Array<MenuType>;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
declare type MenuType = {
|
|
16
|
-
name: string;
|
|
17
|
-
path: string;
|
|
18
|
-
isShow?: boolean;
|
|
19
|
-
isPrivateRoute?: boolean;
|
|
20
|
-
icon?: ReactNode;
|
|
21
|
-
isShowLabel?: boolean;
|
|
22
|
-
component?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | ReactNode | default_2.FC;
|
|
23
|
-
componentProps?: Record<string, any>;
|
|
24
|
-
children?: MenuType[];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export { }
|
package/types/Image.d.ts
DELETED
package/types/Input.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
import { InputProps as InputProps_2 } from 'antd';
|
|
4
|
-
import { JSX } from 'react/jsx-runtime';
|
|
5
|
-
import { JSX as JSX_2 } from 'react';
|
|
6
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
|
7
|
-
|
|
8
|
-
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
|
9
|
-
|
|
10
|
-
export declare const Input: (props: InputProps) => JSX.Element;
|
|
11
|
-
|
|
12
|
-
export declare interface InputProps extends InputProps_2 {
|
|
13
|
-
field?: ControllerRenderProps<any, any>;
|
|
14
|
-
formState?: UseFormStateReturn<any>;
|
|
15
|
-
label?: string;
|
|
16
|
-
classNameInput?: string;
|
|
17
|
-
type?: CustomInputTypeAttribute;
|
|
18
|
-
afterOnChange?: (value: number | string | null) => void;
|
|
19
|
-
iconStartInput?: default_2.ReactNode;
|
|
20
|
-
iconEndInput?: default_2.ReactNode;
|
|
21
|
-
allowNegative?: boolean;
|
|
22
|
-
decimalScale?: number;
|
|
23
|
-
prefix?: string;
|
|
24
|
-
suffix?: string;
|
|
25
|
-
contentTooltip?: string;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
|
29
|
-
onChange?: (event: any) => void;
|
|
30
|
-
afterOnChange?: (value: string | number) => void;
|
|
31
|
-
value?: string;
|
|
32
|
-
name?: string;
|
|
33
|
-
ref: any;
|
|
34
|
-
type?: TInputNumberType;
|
|
35
|
-
prefix?: string;
|
|
36
|
-
suffix?: string;
|
|
37
|
-
helperText?: () => JSX_2.Element | null;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
declare type TInputNumberType = "number" | "money";
|
|
41
|
-
|
|
42
|
-
export { }
|
package/types/Label.d.ts
DELETED
package/types/Layout.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BasicProps } from 'antd/es/layout/layout';
|
|
2
|
-
import { default as default_2 } from 'react';
|
|
3
|
-
import { SiderContextProps } from 'antd/es/layout/Sider';
|
|
4
|
-
import { SiderProps } from 'antd/es/layout/Sider';
|
|
5
|
-
|
|
6
|
-
declare type BaseProps = {
|
|
7
|
-
layoutClassName?: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export declare const Layout: default_2.FC<LayoutProps> & {
|
|
11
|
-
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
|
12
|
-
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
|
13
|
-
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
|
14
|
-
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
15
|
-
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export declare type LayoutProps = BaseProps & BasicProps;
|
|
19
|
-
|
|
20
|
-
export { }
|
package/types/Menu.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
-
import { MenuDividerProps } from 'antd/es/menu';
|
|
4
|
-
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
|
5
|
-
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
|
6
|
-
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
|
7
|
-
import { RefAttributes } from 'react';
|
|
8
|
-
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
|
9
|
-
|
|
10
|
-
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
11
|
-
Item: typeof MenuItem;
|
|
12
|
-
SubMenu: typeof SubMenu;
|
|
13
|
-
Divider: typeof Divider;
|
|
14
|
-
ItemGroup: typeof ItemGroup;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
declare const Divider: FC<MenuDividerProps>;
|
|
18
|
-
|
|
19
|
-
declare type ExtraProps = {
|
|
20
|
-
containerClassName?: string;
|
|
21
|
-
menuClassName?: string;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref"> & RefAttributes<HTMLLIElement>>;
|
|
25
|
-
|
|
26
|
-
export declare const Menu: CompoundedMenu;
|
|
27
|
-
|
|
28
|
-
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
|
29
|
-
|
|
30
|
-
declare const MenuItem: FC<MenuItemProps>;
|
|
31
|
-
|
|
32
|
-
export declare type MenuItemProps = MenuItemProps_2;
|
|
33
|
-
|
|
34
|
-
export declare type MenuProps = MenuProps_2;
|
|
35
|
-
|
|
36
|
-
declare const SubMenu: FC<SubMenuProps>;
|
|
37
|
-
|
|
38
|
-
export declare type SubMenuProps = SubMenuProps_2;
|
|
39
|
-
|
|
40
|
-
export { }
|
package/types/Modal.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { JSX } from 'react/jsx-runtime';
|
|
2
|
-
import { ModalProps as ModalProps_2 } from 'antd';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
|
6
|
-
|
|
7
|
-
export declare interface ModalProps extends ModalProps_2 {
|
|
8
|
-
children?: ReactNode;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export { }
|
package/types/PageNotFound.d.ts
DELETED
package/types/Pagination.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Pagination as Pagination_2 } from 'antd';
|
|
2
|
-
import { PaginationLocale } from 'rc-pagination';
|
|
3
|
-
import { PaginationProps as PaginationProps_2 } from 'antd';
|
|
4
|
-
|
|
5
|
-
declare type BaseProps = {
|
|
6
|
-
containerClassName?: string;
|
|
7
|
-
paginationClassName?: string;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export declare const Pagination: typeof Pagination_2;
|
|
11
|
-
|
|
12
|
-
export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> & {
|
|
13
|
-
position?: "top" | "bottom" | "both";
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { PaginationLocale }
|
|
17
|
-
|
|
18
|
-
export declare type PaginationProps = PaginationProps_2;
|
|
19
|
-
|
|
20
|
-
export declare type PaginationPropsUnion = BaseProps & PaginationProps;
|
|
21
|
-
|
|
22
|
-
export { }
|
package/types/PnkxField.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
-
import * as React_2 from 'react';
|
|
4
|
-
|
|
5
|
-
export declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
|
6
|
-
|
|
7
|
-
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
|
8
|
-
render(): JSX.Element;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
|
12
|
-
control: Control<any, any>;
|
|
13
|
-
name: string;
|
|
14
|
-
component: TComponent;
|
|
15
|
-
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
|
16
|
-
|
|
17
|
-
export { }
|