@pnkx-lib/ui 1.9.204 → 1.9.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/es/ui/Heading.js +1 -1
- package/es/ui/Sidebar.js +6 -5
- package/es/ui/index.js +46 -37
- package/package.json +3 -3
- package/types/Alert.d.ts +7 -0
- package/types/Anchor.d.ts +13 -0
- package/types/Appfix.d.ts +11 -0
- package/types/AutoComplete.d.ts +7 -0
- package/types/{components/ui/Badge.d.ts → Badge.d.ts} +14 -8
- package/types/{components/ui/BottomPagination.d.ts → BottomPagination.d.ts} +12 -8
- package/types/Breadcrumb.d.ts +27 -0
- package/types/BreadcrumbHeading.d.ts +26 -0
- package/types/Button.d.ts +8 -0
- package/types/Card.d.ts +7 -0
- package/types/Cascader.d.ts +22 -0
- package/types/CascaderField.d.ts +20 -0
- package/types/{components/ui/CategoryStatus.d.ts → CategoryStatus.d.ts} +27 -20
- package/types/Checkbox.d.ts +18 -0
- package/types/Col.d.ts +19 -0
- package/types/Collapse.d.ts +7 -0
- package/types/ColorPicker.d.ts +7 -0
- package/types/ConfigProvider.d.ts +8 -0
- package/types/ConfirmModal.d.ts +23 -0
- package/types/Container.d.ts +13 -0
- package/types/DatePicker.d.ts +29 -0
- package/types/{components/fields/DateRangePicker.d.ts → DateRangePicker.d.ts} +19 -13
- package/types/Divider.d.ts +11 -0
- package/types/Drawer.d.ts +12 -0
- package/types/Dropdown.d.ts +21 -0
- package/types/Empty.d.ts +7 -0
- package/types/{components/ui/ErrorBoundary.d.ts → ErrorBoundary.d.ts} +26 -18
- package/types/ErrorMessage.d.ts +12 -0
- package/types/Flex.d.ts +15 -0
- package/types/Footer.d.ts +6 -0
- package/types/Heading.d.ts +27 -0
- package/types/Image.d.ts +6 -0
- package/types/Input.d.ts +42 -0
- package/types/Label.d.ts +10 -0
- package/types/Layout.d.ts +20 -0
- package/types/Menu.d.ts +40 -0
- package/types/Modal.d.ts +11 -0
- package/types/PageNotFound.d.ts +9 -0
- package/types/Pagination.d.ts +22 -0
- package/types/PnkxField.d.ts +17 -0
- package/types/Popconfirm.d.ts +11 -0
- package/types/Popover.d.ts +15 -0
- package/types/QRCode.d.ts +7 -0
- package/types/Radio.d.ts +26 -0
- package/types/Rate.d.ts +5 -0
- package/types/Result.d.ts +11 -0
- package/types/Row.d.ts +12 -0
- package/types/{components/ui/SearchFilterForm.d.ts → SearchFilterForm.d.ts} +29 -18
- package/types/Segmented.d.ts +7 -0
- package/types/Select.d.ts +20 -0
- package/types/Sidebar.d.ts +29 -0
- package/types/Skeleton.d.ts +11 -0
- package/types/{components/fields/SliderRanger.d.ts → SliderRanger.d.ts} +18 -12
- package/types/SliderSingle.d.ts +18 -0
- package/types/Space.d.ts +13 -0
- package/types/Spin.d.ts +11 -0
- package/types/Splitter.d.ts +13 -0
- package/types/Statistic.d.ts +7 -0
- package/types/Steps.d.ts +20 -0
- package/types/Switch.d.ts +18 -0
- package/types/Tabs.d.ts +18 -0
- package/types/{components/ui/Tag.d.ts → Tag.d.ts} +9 -5
- package/types/Textarea.d.ts +17 -0
- package/types/TimePicker.d.ts +16 -0
- package/types/TimeRangePicker.d.ts +16 -0
- package/types/Timeline.d.ts +7 -0
- package/types/{components/fields/TinyMCE.d.ts → TinyMCE.d.ts} +22 -16
- package/types/Tooltip.d.ts +8 -0
- package/types/Tour.d.ts +7 -0
- package/types/Tree.d.ts +7 -0
- package/types/Typography.d.ts +12 -0
- package/types/Upload.d.ts +23 -0
- package/types/UploadImage.d.ts +9 -0
- package/types/{components/ui/Watermark.d.ts → Watermark.d.ts} +6 -2
- package/types/index.d.ts +42 -2
- package/types/{components/hooks/useMessage.d.ts → useMessage.d.ts} +9 -5
- package/types/{components/hooks/useToast.d.ts → useToast.d.ts} +16 -12
- package/types/components/fields/CascaderField.d.ts +0 -14
- package/types/components/fields/Checkbox.d.ts +0 -12
- package/types/components/fields/DatePicker.d.ts +0 -21
- package/types/components/fields/Input.d.ts +0 -33
- package/types/components/fields/PnkxField.d.ts +0 -11
- package/types/components/fields/Radio.d.ts +0 -19
- package/types/components/fields/Select.d.ts +0 -13
- package/types/components/fields/SliderSingle.d.ts +0 -12
- package/types/components/fields/Switch.d.ts +0 -12
- package/types/components/fields/Textarea.d.ts +0 -12
- package/types/components/fields/TimePicker.d.ts +0 -12
- package/types/components/fields/TimeRangePicker.d.ts +0 -12
- package/types/components/fields/Upload.d.ts +0 -15
- package/types/components/fields/index.d.ts +0 -15
- package/types/components/hooks/index.d.ts +0 -2
- package/types/components/hooks/useBreadcrumb.d.ts +0 -6
- package/types/components/hooks/useDebounce.d.ts +0 -1
- package/types/components/icons/ActivateIcon.d.ts +0 -6
- package/types/components/icons/AllowClearIcon.d.ts +0 -2
- package/types/components/icons/ApprovalIcon.d.ts +0 -6
- package/types/components/icons/CancelApprovalIcon.d.ts +0 -6
- package/types/components/icons/CancelSendApprovalIcon.d.ts +0 -6
- package/types/components/icons/DeleteIcon.d.ts +0 -6
- package/types/components/icons/Dollar.d.ts +0 -3
- package/types/components/icons/DragIcon.d.ts +0 -6
- package/types/components/icons/EditIcon.d.ts +0 -6
- package/types/components/icons/ErrorConfirmIcon.d.ts +0 -3
- package/types/components/icons/InActivateIcon.d.ts +0 -6
- package/types/components/icons/InfoConfirmIcon.d.ts +0 -3
- package/types/components/icons/MoreIcon.d.ts +0 -6
- package/types/components/icons/PlusIcon.d.ts +0 -6
- package/types/components/icons/RefuseApprovalIcon.d.ts +0 -6
- package/types/components/icons/RestoreIcon.d.ts +0 -6
- package/types/components/icons/SearchAdvanceIcon.d.ts +0 -6
- package/types/components/icons/SearchIcon.d.ts +0 -2
- package/types/components/icons/SendApprovalIcon.d.ts +0 -6
- package/types/components/icons/SettingIcon.d.ts +0 -1
- package/types/components/icons/SuccessIcon.d.ts +0 -3
- package/types/components/icons/TrashCanIcon.d.ts +0 -2
- package/types/components/icons/WaitingApprovalIcon.d.ts +0 -6
- package/types/components/icons/WarningConfirmIcon.d.ts +0 -3
- package/types/components/icons/index.d.ts +0 -18
- package/types/components/index.d.ts +0 -3
- package/types/components/ui/Alert.d.ts +0 -3
- package/types/components/ui/Anchor.d.ts +0 -9
- package/types/components/ui/Appfix.d.ts +0 -6
- package/types/components/ui/AutoComplete.d.ts +0 -3
- package/types/components/ui/Breadcrumb.d.ts +0 -16
- package/types/components/ui/BreadcrumbHeading.d.ts +0 -8
- package/types/components/ui/BulkActions/BulkAction.d.ts +0 -11
- package/types/components/ui/BulkActions/DropListActions.d.ts +0 -9
- package/types/components/ui/BulkActions/index.d.ts +0 -22
- package/types/components/ui/Button.d.ts +0 -4
- package/types/components/ui/Card.d.ts +0 -3
- package/types/components/ui/Cascader.d.ts +0 -14
- package/types/components/ui/Col.d.ts +0 -11
- package/types/components/ui/Collapse.d.ts +0 -3
- package/types/components/ui/ColorPicker.d.ts +0 -3
- package/types/components/ui/ConfigProvider.d.ts +0 -4
- package/types/components/ui/ConfirmModal.d.ts +0 -12
- package/types/components/ui/Container.d.ts +0 -8
- package/types/components/ui/Divider.d.ts +0 -6
- package/types/components/ui/Drawer.d.ts +0 -7
- package/types/components/ui/Dropdown.d.ts +0 -12
- package/types/components/ui/Empty.d.ts +0 -3
- package/types/components/ui/ErrorMessage.d.ts +0 -7
- package/types/components/ui/Flex.d.ts +0 -9
- package/types/components/ui/Footer.d.ts +0 -2
- package/types/components/ui/Heading.d.ts +0 -10
- package/types/components/ui/Image.d.ts +0 -2
- package/types/components/ui/Label.d.ts +0 -5
- package/types/components/ui/Layout.d.ts +0 -14
- package/types/components/ui/Menu.d.ts +0 -22
- package/types/components/ui/Modal.d.ts +0 -6
- package/types/components/ui/PageNotFound.d.ts +0 -4
- package/types/components/ui/Pagination.d.ts +0 -12
- package/types/components/ui/Popconfirm.d.ts +0 -6
- package/types/components/ui/Popover.d.ts +0 -9
- package/types/components/ui/QRCode.d.ts +0 -3
- package/types/components/ui/Rate.d.ts +0 -2
- package/types/components/ui/Result.d.ts +0 -6
- package/types/components/ui/Row.d.ts +0 -7
- package/types/components/ui/Segmented.d.ts +0 -3
- package/types/components/ui/Sidebar.d.ts +0 -22
- package/types/components/ui/Skeleton.d.ts +0 -6
- package/types/components/ui/Space.d.ts +0 -8
- package/types/components/ui/Spin.d.ts +0 -6
- package/types/components/ui/Splitter.d.ts +0 -8
- package/types/components/ui/Statistic.d.ts +0 -3
- package/types/components/ui/Steps.d.ts +0 -12
- package/types/components/ui/Table/ActionRowTable/index.d.ts +0 -10
- package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +0 -13
- package/types/components/ui/Table/HeadingTable/index.d.ts +0 -16
- package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +0 -6
- package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +0 -7
- package/types/components/ui/Table/SettingTable/SortableItem.d.ts +0 -6
- package/types/components/ui/Table/SettingTable/index.d.ts +0 -11
- package/types/components/ui/Table/index.d.ts +0 -47
- package/types/components/ui/Tabs.d.ts +0 -14
- package/types/components/ui/Timeline.d.ts +0 -3
- package/types/components/ui/Tooltip.d.ts +0 -4
- package/types/components/ui/Tour.d.ts +0 -3
- package/types/components/ui/Tree.d.ts +0 -3
- package/types/components/ui/Typography.d.ts +0 -8
- package/types/components/ui/UploadImage.d.ts +0 -6
- package/types/components/ui/index.d.ts +0 -60
- package/types/constants/common.d.ts +0 -1
- package/types/constants/table.d.ts +0 -31
- package/types/helpers/common.d.ts +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SwitchProps as SwitchAntdProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
export interface SwitchProps extends Omit<SwitchAntdProps, "onChange"> {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
label?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
afterOnChange?: (checked: boolean) => void;
|
|
9
|
-
customStyleContainer?: string;
|
|
10
|
-
customStyleSwitch?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const Switch: (props: SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
import { TextAreaProps as TextAreaPropsAntd } from 'antd/es/input';
|
|
4
|
-
export interface TextAreaProps extends TextAreaPropsAntd {
|
|
5
|
-
field?: ControllerRenderProps<any, any>;
|
|
6
|
-
formState?: UseFormStateReturn<any>;
|
|
7
|
-
label?: string;
|
|
8
|
-
customStyleTextarea?: string;
|
|
9
|
-
afterOnChange?: (value: string) => void;
|
|
10
|
-
required?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare const Textarea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TimePickerProps } from 'antd/es/time-picker';
|
|
3
|
-
import { Dayjs } from 'dayjs';
|
|
4
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
5
|
-
interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "onChange"> {
|
|
6
|
-
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null) => void;
|
|
7
|
-
field?: ControllerRenderProps<any, any>;
|
|
8
|
-
formState?: UseFormStateReturn<any>;
|
|
9
|
-
label?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const TimePicker: React.FC<TimeRangePickerProps>;
|
|
12
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TimeRangePickerProps as AntdTimeRangePickerProps } from 'antd/es/time-picker';
|
|
3
|
-
import { Dayjs } from 'dayjs';
|
|
4
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
5
|
-
interface TimeRangePickerProps extends AntdTimeRangePickerProps {
|
|
6
|
-
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
|
7
|
-
field?: ControllerRenderProps<any, any>;
|
|
8
|
-
formState?: UseFormStateReturn<any>;
|
|
9
|
-
label?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const TimeRangePicker: React.FC<TimeRangePickerProps>;
|
|
12
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { UploadProps, UploadFile } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn, ControllerFieldState } from 'react-hook-form';
|
|
3
|
-
export interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
fieldState?: ControllerFieldState;
|
|
7
|
-
label?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
maxFiles?: number;
|
|
10
|
-
uploadButtonText?: string;
|
|
11
|
-
customStyleContainer?: string;
|
|
12
|
-
customStyleUpload?: string;
|
|
13
|
-
afterOnChange?: (fileList: UploadFile[]) => void;
|
|
14
|
-
}
|
|
15
|
-
export declare const UploadField: (props: UploadFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
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';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function useDebounce<T>(value: T, delay: number): T;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SettingIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
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';
|
|
@@ -1,9 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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,16 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
-
import { TListIcon } from '.';
|
|
3
|
-
import { TypeStatusTable } from '../../../constants';
|
|
4
|
-
export interface BulkActionProps {
|
|
5
|
-
quantity?: number;
|
|
6
|
-
listIcon?: TListIcon[];
|
|
7
|
-
status?: TypeStatusTable;
|
|
8
|
-
setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
|
|
9
|
-
toggle: () => void;
|
|
10
|
-
}
|
|
11
|
-
export declare const BulkAction: ({ quantity, listIcon, status, setNotifyContent, toggle, }: BulkActionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ConfirmModalProps } from '../ConfirmModal';
|
|
2
|
-
import { BulkActionHandlers } from '@pnkx-lib/core';
|
|
3
|
-
import { TypeBulkActions, TypeStatusTable } from '../../../constants';
|
|
4
|
-
import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
|
|
5
|
-
interface IBulkActionsProps extends Partial<BulkActionHandlers> {
|
|
6
|
-
quantity?: number;
|
|
7
|
-
status?: TypeStatusTable;
|
|
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 {};
|
|
@@ -1,14 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,12 +0,0 @@
|
|
|
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,7 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
export interface ErrorMessageProps {
|
|
3
|
-
errorMessage?: string;
|
|
4
|
-
isTouched?: boolean;
|
|
5
|
-
isSubmitted?: boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare const ErrorMessage: React.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FlexProps as FlexPropsAntd } from 'antd';
|
|
2
|
-
type BaseProps = {
|
|
3
|
-
containerClassName?: string;
|
|
4
|
-
flexClassName?: string;
|
|
5
|
-
};
|
|
6
|
-
export type FlexProps = FlexPropsAntd;
|
|
7
|
-
export type FlexPropsUnion = BaseProps & FlexProps;
|
|
8
|
-
export declare const Flex: (props: FlexPropsUnion) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { MenuType } from './Sidebar';
|
|
3
|
-
export interface HeadingProps {
|
|
4
|
-
rightContent?: ReactNode;
|
|
5
|
-
children?: ReactNode;
|
|
6
|
-
noBreadcum?: boolean;
|
|
7
|
-
classNameWrapHeading?: string;
|
|
8
|
-
menu: Array<MenuType>;
|
|
9
|
-
}
|
|
10
|
-
export declare const Heading: (props: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { BasicProps as AntdBasicProps } from 'antd/es/layout/layout';
|
|
3
|
-
type BaseProps = {
|
|
4
|
-
layoutClassName?: string;
|
|
5
|
-
};
|
|
6
|
-
export type LayoutProps = BaseProps & AntdBasicProps;
|
|
7
|
-
export declare const Layout: React.FC<LayoutProps> & {
|
|
8
|
-
Header: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
|
|
9
|
-
Footer: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
-
Content: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
|
|
11
|
-
Sider: React.ForwardRefExoticComponent<import('antd/es/layout/Sider').SiderProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
_InternalSiderContext: React.Context<import('antd/es/layout/Sider').SiderContextProps>;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { MenuProps as AntdMenuProps, MenuItemProps as AntdMenuItemProps, SubMenuProps as AntdSubMenuProps } from 'antd/es/menu';
|
|
3
|
-
type ExtraProps = {
|
|
4
|
-
containerClassName?: string;
|
|
5
|
-
menuClassName?: string;
|
|
6
|
-
};
|
|
7
|
-
export type MenuProps = AntdMenuProps;
|
|
8
|
-
export type MenuItemProps = AntdMenuItemProps;
|
|
9
|
-
export type SubMenuProps = AntdSubMenuProps;
|
|
10
|
-
export type MenuComponentProps = ExtraProps & MenuProps;
|
|
11
|
-
declare const MenuItem: FC<MenuItemProps>;
|
|
12
|
-
declare const SubMenu: FC<SubMenuProps>;
|
|
13
|
-
declare const Divider: FC<import('antd/es/menu').MenuDividerProps>;
|
|
14
|
-
declare const ItemGroup: import('react').ForwardRefExoticComponent<Omit<import('rc-menu/lib/MenuItemGroup').MenuItemGroupProps, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
15
|
-
type CompoundedMenu = FC<MenuComponentProps> & {
|
|
16
|
-
Item: typeof MenuItem;
|
|
17
|
-
SubMenu: typeof SubMenu;
|
|
18
|
-
Divider: typeof Divider;
|
|
19
|
-
ItemGroup: typeof ItemGroup;
|
|
20
|
-
};
|
|
21
|
-
export declare const Menu: CompoundedMenu;
|
|
22
|
-
export {};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ModalProps as ModalPropsAntd } from 'antd';
|
|
3
|
-
export interface ModalProps extends ModalPropsAntd {
|
|
4
|
-
children?: ReactNode;
|
|
5
|
-
}
|
|
6
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) => import("react/jsx-runtime").JSX.Element;
|