@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './Input';
|
|
2
|
+
export * from './PnkxField';
|
|
3
|
+
export * from './Select';
|
|
4
|
+
export * from './TinyMCE';
|
|
5
|
+
export * from './Textarea';
|
|
6
|
+
export * from './Radio';
|
|
7
|
+
export * from './Checkbox';
|
|
8
|
+
export * from './DatePicker';
|
|
9
|
+
export * from './DateRangePicker';
|
|
10
|
+
export * from './Upload';
|
|
11
|
+
export * from './Switch';
|
|
12
|
+
export * from './SliderSingle';
|
|
13
|
+
export * from './SliderRanger';
|
|
14
|
+
export * from './TimeRangePicker';
|
|
15
|
+
export * from './TimePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useDebounce<T>(value: T, delay: number): T;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { ArgsProps } from 'antd/lib/message';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
|
8
|
-
|
|
9
|
-
export { }
|
|
1
|
+
import { ArgsProps } from 'antd/lib/message';
|
|
2
|
+
export type OptionalArgsMessage = Partial<ArgsProps> & {
|
|
3
|
+
type?: ArgsProps["type"];
|
|
4
|
+
};
|
|
5
|
+
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { ArgsProps } from 'antd/es/notification';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
(
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
warning(props?: OptionalArgsToast): void;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export { }
|
|
1
|
+
import { ArgsProps } from 'antd/es/notification';
|
|
2
|
+
export type OptionalArgsToast = Partial<ArgsProps> & {
|
|
3
|
+
message?: React.ReactNode;
|
|
4
|
+
type?: "success" | "error" | "info" | "warning";
|
|
5
|
+
};
|
|
6
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
7
|
+
(overrideProps?: OptionalArgsToast): void;
|
|
8
|
+
success(props?: OptionalArgsToast): void;
|
|
9
|
+
error(props?: OptionalArgsToast): void;
|
|
10
|
+
info(props?: OptionalArgsToast): void;
|
|
11
|
+
warning(props?: OptionalArgsToast): void;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SettingIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './RestoreIcon';
|
|
2
|
+
export * from './DragIcon';
|
|
3
|
+
export * from './SettingIcon';
|
|
4
|
+
export * from './SendApprovalIcon';
|
|
5
|
+
export * from './CancelSendApprovalIcon';
|
|
6
|
+
export * from './ApprovalIcon';
|
|
7
|
+
export * from './CancelApprovalIcon';
|
|
8
|
+
export * from './RefuseApprovalIcon';
|
|
9
|
+
export * from './RestoreIcon';
|
|
10
|
+
export * from './ActivateIcon';
|
|
11
|
+
export * from './DeleteIcon';
|
|
12
|
+
export * from './InActivateIcon';
|
|
13
|
+
export * from './PlusIcon';
|
|
14
|
+
export * from './SearchIcon';
|
|
15
|
+
export * from './AllowClearIcon';
|
|
16
|
+
export * from './EditIcon';
|
|
17
|
+
export * from './SearchAdvanceIcon';
|
|
18
|
+
export * from './MoreIcon';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AnchorProps as AnchorPropsAntd } from 'antd';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
anchorClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export type AnchorPropsUnion = BaseProps & AnchorPropsAntd;
|
|
8
|
+
export declare const Anchor: FC<AnchorPropsUnion>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AffixProps as AntdAffixProps } from 'antd';
|
|
3
|
+
export interface AppfixProps extends AntdAffixProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
import { BadgeProps as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
customColor?: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
|
13
|
-
|
|
14
|
-
export { }
|
|
1
|
+
import { BadgeProps as AntdBadgeProps } from 'antd';
|
|
2
|
+
export interface BadgeProps extends AntdBadgeProps {
|
|
3
|
+
type?: "error" | "info" | "success" | "warning";
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
customColor?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
|
8
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
onChange?: (page: number, pageSize: number) => void;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { }
|
|
1
|
+
interface PaginationProps {
|
|
2
|
+
total: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
current: number;
|
|
5
|
+
onChange?: (page: number, pageSize: number) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const BottomPagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BreadcrumbProps as BreadcrumbPropsAntd } from 'antd';
|
|
2
|
+
import { BreadcrumbItemType as BreadcrumbItemTypeAntd, BreadcrumbSeparatorType as BreadcrumbSeparatorTypeAntd } from 'antd/es/breadcrumb/Breadcrumb';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
breadcrumbClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export interface BreadcrumbItemType extends BreadcrumbItemTypeAntd {
|
|
8
|
+
children?: Omit<BreadcrumbItemType, "children">[];
|
|
9
|
+
}
|
|
10
|
+
export type BreadcrumbSeparatorType = BreadcrumbSeparatorTypeAntd;
|
|
11
|
+
export type BreadcrumbProps = BreadcrumbPropsAntd;
|
|
12
|
+
export type BreadcrumbPropsUnion = BaseProps & BreadcrumbProps;
|
|
13
|
+
export type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
14
|
+
export type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
|
15
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuType } from './Sidebar';
|
|
2
|
+
export interface BreadcrumbHeadingProps {
|
|
3
|
+
menu: Array<MenuType>;
|
|
4
|
+
customBreadcum?: Array<{
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
}>;
|
|
7
|
+
}
|
|
8
|
+
export declare const BreadcrumbHeading: (props: BreadcrumbHeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
+
import { TListIcon } from '.';
|
|
3
|
+
export interface BulkActionProps {
|
|
4
|
+
quantity?: number;
|
|
5
|
+
listIcon?: TListIcon[];
|
|
6
|
+
status?: unknown;
|
|
7
|
+
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
8
|
+
toggle: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const BulkAction: ({ quantity, listIcon, status, setNotifyContent, toggle, }: BulkActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
+
import { TListIcon } from '.';
|
|
3
|
+
export interface DropListActionsProps {
|
|
4
|
+
listIcon?: TListIcon[];
|
|
5
|
+
status?: number;
|
|
6
|
+
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
7
|
+
toggle: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const DropListActions: ({ listIcon, status, setNotifyContent, toggle, }: DropListActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
+
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
3
|
+
import { TypeBulkActions } from '../../../constants';
|
|
4
|
+
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
|
5
|
+
interface IBulkActionsProps extends Partial<BulkActionHandlers> {
|
|
6
|
+
quantity?: number;
|
|
7
|
+
status?: unknown;
|
|
8
|
+
type?: TypeBulkActions;
|
|
9
|
+
}
|
|
10
|
+
export type TListIcon = {
|
|
11
|
+
icon: React.ReactNode;
|
|
12
|
+
iconDisable: React.ReactNode;
|
|
13
|
+
iconDropList: React.ReactNode;
|
|
14
|
+
action?: () => void;
|
|
15
|
+
title: string;
|
|
16
|
+
arrShow: CATEGORY_LIST_ENUM[];
|
|
17
|
+
content?: string;
|
|
18
|
+
typeIcon?: ConfirmModalProps["typeIcon"];
|
|
19
|
+
name?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeActivate, handleActivate, handleRestore, status, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CascaderProps, DefaultOptionType } from 'antd/es/cascader';
|
|
2
|
+
type BaseProps = {
|
|
3
|
+
customStyleContainer?: string;
|
|
4
|
+
customStyleCascader?: string;
|
|
5
|
+
};
|
|
6
|
+
type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
7
|
+
multiple?: false;
|
|
8
|
+
};
|
|
9
|
+
type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
|
10
|
+
multiple: true;
|
|
11
|
+
};
|
|
12
|
+
export type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
|
13
|
+
export declare const CascaderField: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
@@ -1,27 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
|
|
22
|
-
|
|
23
|
-
export declare interface CategoryStatusProps {
|
|
24
|
-
status: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { }
|
|
1
|
+
export declare enum CATEGORY_LIST_ENUM {
|
|
2
|
+
DRAFT = 0,// tạo mới
|
|
3
|
+
WATING_APPROVAL = 1,// đang chờ duyệt
|
|
4
|
+
ACTIVE = 2,// hoạt động
|
|
5
|
+
INACTIVE = 3,// dừng hoạt động
|
|
6
|
+
REJECT = 4,// từ chối duyệt
|
|
7
|
+
DELETE = 5
|
|
8
|
+
}
|
|
9
|
+
type BadgeConfig = {
|
|
10
|
+
[key: number]: {
|
|
11
|
+
color: string;
|
|
12
|
+
text: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const badgeStatusCategoryConfig: BadgeConfig;
|
|
16
|
+
export interface CategoryStatusProps {
|
|
17
|
+
status: number;
|
|
18
|
+
}
|
|
19
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Breakpoint, ColProps as ColPropsAntd } from 'antd';
|
|
2
|
+
import { ColSize as ColSizeAntd } from 'antd/es/grid';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
colClassName?: string;
|
|
5
|
+
};
|
|
6
|
+
export type ColSpanType = number | string;
|
|
7
|
+
export interface ColProps extends ColPropsAntd, Partial<Record<Breakpoint, ColSpanType | ColSizeAntd>> {
|
|
8
|
+
}
|
|
9
|
+
export type ColPropsUnion = BaseProps & ColProps;
|
|
10
|
+
export declare const Col: (props: ColPropsUnion) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ModalProps } from './Modal';
|
|
2
|
+
export type ConfirmModalType = "success" | "error" | "warning" | "info";
|
|
3
|
+
export interface ConfirmModalProps extends ModalProps {
|
|
4
|
+
title: string;
|
|
5
|
+
content: string;
|
|
6
|
+
titleCancelBtn?: string;
|
|
7
|
+
titleSubmitBtn?: string;
|
|
8
|
+
typeIcon: ConfirmModalType;
|
|
9
|
+
handleCancel?: () => void;
|
|
10
|
+
handleSubmit?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export 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";
|
|
3
|
+
export interface ContainerProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
size?: TailwindMaxWidth;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Container: React.FC<ContainerProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DividerProps as AntdDividerProps } from 'antd';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface DividerProps extends AntdDividerProps {
|
|
4
|
+
children?: ReactNode | string;
|
|
5
|
+
}
|
|
6
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { DrawerProps as AntdDrawerProps } from 'antd';
|
|
3
|
+
export interface DrawerProps extends AntdDrawerProps {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
onSubmit?: (values: any) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DropdownProps as DropdownPropsAntd } from 'antd';
|
|
2
|
+
import { DropdownButtonType as DropdownButtonTypeAntd, DropdownButtonProps as DropdownButtonPropsAntd } from 'antd/es/dropdown';
|
|
3
|
+
type BaseProps = {
|
|
4
|
+
containerClassName?: string;
|
|
5
|
+
dropdownClassName?: string;
|
|
6
|
+
};
|
|
7
|
+
export type DropdownButtonType = DropdownButtonTypeAntd;
|
|
8
|
+
export type DropdownButtonProps = DropdownButtonPropsAntd;
|
|
9
|
+
export type DropdownProps = DropdownPropsAntd;
|
|
10
|
+
export type DropdownPropsUnion = BaseProps & DropdownProps;
|
|
11
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,26 +1,18 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export declare interface ErrorBoundaryState {
|
|
21
|
-
hasError: boolean;
|
|
22
|
-
error: Error | null;
|
|
23
|
-
errorInfo: ErrorInfo | null;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export { }
|
|
1
|
+
import { default as React, Component, ErrorInfo, ReactNode } from 'react';
|
|
2
|
+
export interface ErrorBoundaryProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
export interface ErrorBoundaryState {
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
error: Error | null;
|
|
8
|
+
errorInfo: ErrorInfo | null;
|
|
9
|
+
}
|
|
10
|
+
declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
11
|
+
constructor(props: ErrorBoundaryProps);
|
|
12
|
+
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
|
13
|
+
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
14
|
+
handleReload: () => void;
|
|
15
|
+
render(): React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare const ErrorBoundary: typeof ErrorBoundaryClass;
|
|
18
|
+
export {};
|