@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { ReactNode } from 'react';
|
|
4
|
+
|
|
5
|
+
export declare type MenuType = {
|
|
6
|
+
name: string;
|
|
7
|
+
path: string;
|
|
8
|
+
isShow?: boolean;
|
|
9
|
+
isPrivateRoute?: boolean;
|
|
10
|
+
icon?: ReactNode;
|
|
11
|
+
isShowLabel?: boolean;
|
|
12
|
+
component?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | ReactNode | default_2.FC;
|
|
13
|
+
componentProps?: Record<string, any>;
|
|
14
|
+
children?: MenuType[];
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX.Element;
|
|
18
|
+
|
|
19
|
+
export declare interface SidebarProps {
|
|
20
|
+
children?: default_2.ReactNode;
|
|
21
|
+
menu: Array<MenuType>;
|
|
22
|
+
userInfo?: {
|
|
23
|
+
avatar: string;
|
|
24
|
+
name: string;
|
|
25
|
+
email: string;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { SkeletonProps as SkeletonProps_2 } from 'antd';
|
|
3
|
+
|
|
4
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
export declare interface SkeletonProps extends SkeletonProps_2 {
|
|
7
|
+
type?: "table" | "form";
|
|
8
|
+
skeletonButtonCount?: number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { ControllerRenderProps
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { SliderRangeProps } from 'antd/es/slider';
|
|
4
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
export declare const SliderRange: (props: SliderRangesProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
export declare interface SliderRangesProps extends Omit<SliderRangeProps, "onChange"> {
|
|
9
|
+
field?: ControllerRenderProps<any, any>;
|
|
10
|
+
formState?: UseFormStateReturn<any>;
|
|
11
|
+
label?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
afterOnChange?: (data: number[]) => void;
|
|
14
|
+
customStyleContainer?: string;
|
|
15
|
+
customStyleSlider?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { SliderSingleProps } from 'antd';
|
|
4
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
export declare interface SliderProps extends Omit<SliderSingleProps, "onChange"> {
|
|
7
|
+
field?: ControllerRenderProps<any, any>;
|
|
8
|
+
formState?: UseFormStateReturn<any>;
|
|
9
|
+
label?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
afterOnChange?: (data: number) => void;
|
|
12
|
+
customStyleContainer?: string;
|
|
13
|
+
customStyleSlider?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const SliderSingle: (props: SliderProps) => JSX.Element;
|
|
17
|
+
|
|
18
|
+
export { }
|
package/types/Space.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Space as Space_2 } from 'antd';
|
|
2
|
+
import { SpaceProps } from 'antd';
|
|
3
|
+
|
|
4
|
+
declare type BaseProps = {
|
|
5
|
+
containerClassName?: string;
|
|
6
|
+
spaceClassName?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare const Space: typeof Space_2;
|
|
10
|
+
|
|
11
|
+
export declare type SpacePropsUnion = BaseProps & SpaceProps;
|
|
12
|
+
|
|
13
|
+
export { }
|
package/types/Spin.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { SpinProps } from 'antd';
|
|
4
|
+
|
|
5
|
+
export declare interface PnkxSpinProps extends SpinProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Splitter as Splitter_2 } from 'antd';
|
|
2
|
+
import { SplitterProps } from 'antd';
|
|
3
|
+
|
|
4
|
+
declare type BaseProps = {
|
|
5
|
+
containerClassName?: string;
|
|
6
|
+
spaceClassName?: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export declare const Splitter: typeof Splitter_2;
|
|
10
|
+
|
|
11
|
+
export declare type SplitterPropsUnion = BaseProps & SplitterProps;
|
|
12
|
+
|
|
13
|
+
export { }
|
package/types/Steps.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StepProps as StepProps_2 } from 'antd';
|
|
2
|
+
import { Steps as Steps_2 } from 'antd';
|
|
3
|
+
import { StepsProps as StepsProps_2 } from 'antd';
|
|
4
|
+
|
|
5
|
+
declare type BaseProps = {
|
|
6
|
+
containerClassName?: string;
|
|
7
|
+
stepsClassName?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export declare type StepProps = StepProps_2;
|
|
11
|
+
|
|
12
|
+
export declare const Steps: typeof Steps_2;
|
|
13
|
+
|
|
14
|
+
export declare interface StepsProps extends StepsProps_2 {
|
|
15
|
+
items?: StepProps[];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare type StepsPropsUnion = BaseProps & StepsProps;
|
|
19
|
+
|
|
20
|
+
export { }
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { SwitchProps as SwitchProps_2 } from 'antd';
|
|
4
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
7
|
+
|
|
8
|
+
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
|
9
|
+
field?: ControllerRenderProps<any, any>;
|
|
10
|
+
formState?: UseFormStateReturn<any>;
|
|
11
|
+
label?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
afterOnChange?: (checked: boolean) => void;
|
|
14
|
+
customStyleContainer?: string;
|
|
15
|
+
customStyleSwitch?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { }
|
package/types/Tabs.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
import { TabsProps as TabsProps_2 } from 'antd';
|
|
3
|
+
|
|
4
|
+
declare type TabItem = {
|
|
5
|
+
key: string;
|
|
6
|
+
label: default_2.ReactNode;
|
|
7
|
+
children: default_2.ReactNode;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare const Tabs: default_2.FC<TabsProps>;
|
|
12
|
+
|
|
13
|
+
export declare type TabsProps = TabsProps_2 & {
|
|
14
|
+
items: TabItem[];
|
|
15
|
+
lazyRender?: boolean;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { }
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import { TagProps } from 'antd';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export declare
|
|
1
|
+
import { TagProps } from 'antd';
|
|
2
|
+
|
|
3
|
+
export declare const Tag: React.FC<TaglineProps>;
|
|
4
|
+
|
|
5
|
+
export declare interface TaglineProps extends TagProps {
|
|
6
|
+
children: React.ReactNode | string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
|
4
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
export declare const Textarea: default_2.ForwardRefExoticComponent<TextAreaProps & default_2.RefAttributes<HTMLTextAreaElement>>;
|
|
7
|
+
|
|
8
|
+
export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
9
|
+
field?: ControllerRenderProps<any, any>;
|
|
10
|
+
formState?: UseFormStateReturn<any>;
|
|
11
|
+
label?: string;
|
|
12
|
+
customStyleTextarea?: string;
|
|
13
|
+
afterOnChange?: (value: string) => void;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { TimePickerProps } from 'antd/es/time-picker';
|
|
5
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
6
|
+
|
|
7
|
+
export declare const TimePicker: default_2.FC<TimeRangePickerProps>;
|
|
8
|
+
|
|
9
|
+
declare interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "onChange"> {
|
|
10
|
+
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null) => void;
|
|
11
|
+
field?: ControllerRenderProps<any, any>;
|
|
12
|
+
formState?: UseFormStateReturn<any>;
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { TimeRangePickerProps as TimeRangePickerProps_2 } from 'antd/es/time-picker';
|
|
5
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
6
|
+
|
|
7
|
+
export declare const TimeRangePicker: default_2.FC<TimeRangePickerProps>;
|
|
8
|
+
|
|
9
|
+
declare interface TimeRangePickerProps extends TimeRangePickerProps_2 {
|
|
10
|
+
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
|
11
|
+
field?: ControllerRenderProps<any, any>;
|
|
12
|
+
formState?: UseFormStateReturn<any>;
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
2
|
+
import { IAllProps } from '@tinymce/tinymce-react';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
5
|
+
|
|
6
|
+
export declare const TinyMCE: {
|
|
7
|
+
(props: TinyProps): JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export declare interface TinyProps extends IAllProps {
|
|
12
|
+
height?: number | string;
|
|
13
|
+
openHidenMenubar?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
field?: ControllerRenderProps<any, any>;
|
|
16
|
+
formState?: UseFormStateReturn<any>;
|
|
17
|
+
label?: string;
|
|
18
|
+
customStyleLabel?: string;
|
|
19
|
+
text_patterns?: any;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { }
|
package/types/Tour.d.ts
ADDED
package/types/Tree.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
|
3
|
+
import { TextProps } from 'antd/es/typography/Text';
|
|
4
|
+
import { TitleProps } from 'antd/es/typography/Title';
|
|
5
|
+
|
|
6
|
+
export declare const Typography: {
|
|
7
|
+
Title: (props: TitleProps) => JSX.Element;
|
|
8
|
+
Paragraph: (props: ParagraphProps) => JSX.Element;
|
|
9
|
+
Text: (props: TextProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export { }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ControllerFieldState } from 'react-hook-form';
|
|
2
|
+
import { ControllerRenderProps } from 'react-hook-form';
|
|
3
|
+
import { JSX } from 'react/jsx-runtime';
|
|
4
|
+
import { UploadFile } from 'antd';
|
|
5
|
+
import { UploadProps } from 'antd';
|
|
6
|
+
import { UseFormStateReturn } from 'react-hook-form';
|
|
7
|
+
|
|
8
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
|
9
|
+
|
|
10
|
+
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
|
11
|
+
field?: ControllerRenderProps<any, any>;
|
|
12
|
+
formState?: UseFormStateReturn<any>;
|
|
13
|
+
fieldState?: ControllerFieldState;
|
|
14
|
+
label?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
maxFiles?: number;
|
|
17
|
+
uploadButtonText?: string;
|
|
18
|
+
customStyleContainer?: string;
|
|
19
|
+
customStyleUpload?: string;
|
|
20
|
+
afterOnChange?: (fileList: UploadFile[]) => void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { }
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
import { WatermarkProps } from 'antd';
|
|
3
|
+
|
|
4
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
|
|
5
|
+
|
|
6
|
+
export { }
|
package/types/index.d.ts
CHANGED
|
@@ -1,2 +1,42 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export declare const PAGE_NUMBER = "page";
|
|
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,5 +1,9 @@
|
|
|
1
|
-
import { ArgsProps } from 'antd/lib/message';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ArgsProps } from 'antd/lib/message';
|
|
2
|
+
|
|
3
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
|
4
|
+
type?: ArgsProps["type"];
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
|
8
|
+
|
|
9
|
+
export { }
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
import { ArgsProps } from 'antd/es/notification';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { ArgsProps } from 'antd/es/notification';
|
|
2
|
+
|
|
3
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
|
4
|
+
message?: React.ReactNode;
|
|
5
|
+
type?: "success" | "error" | "info" | "warning";
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
9
|
+
(overrideProps?: OptionalArgsToast): void;
|
|
10
|
+
success(props?: OptionalArgsToast): void;
|
|
11
|
+
error(props?: OptionalArgsToast): void;
|
|
12
|
+
info(props?: OptionalArgsToast): void;
|
|
13
|
+
warning(props?: OptionalArgsToast): void;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { CascaderProps as CascaderPropsAntd } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
interface CascaderFieldProps extends CascaderPropsAntd {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
setValue?: UseFormSetValue<any>;
|
|
7
|
-
label?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
afterOnChange?: (value: any) => void;
|
|
10
|
-
classNameContainer?: string;
|
|
11
|
-
classNameCascader?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const Cascader: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { CheckboxProps as CheckboxAntdProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
export interface CheckboxProps extends Omit<CheckboxAntdProps, "onChange" | "checked"> {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
label?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
afterOnChange?: (checked: boolean) => void;
|
|
9
|
-
customStyleContainer?: string;
|
|
10
|
-
customStyleCheckbox?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
-
import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
|
|
4
|
-
export type TSize = "small" | "medium" | "large";
|
|
5
|
-
export interface DatePickerProps extends Omit<ReactDatePickerProps, "onChange"> {
|
|
6
|
-
field?: ControllerRenderProps<any, any>;
|
|
7
|
-
formState?: UseFormStateReturn<any>;
|
|
8
|
-
setValue?: UseFormSetValue<any>;
|
|
9
|
-
classNameDatepicker?: string;
|
|
10
|
-
disabledInputChange?: boolean;
|
|
11
|
-
required?: boolean;
|
|
12
|
-
dateFormat?: string | string[];
|
|
13
|
-
placeholder?: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
maxDate?: Date;
|
|
16
|
-
showTimeSelect?: boolean;
|
|
17
|
-
customOnChange?: (date: any, event: React.SyntheticEvent<any>) => void;
|
|
18
|
-
customValue?: Date | null;
|
|
19
|
-
size?: TSize;
|
|
20
|
-
}
|
|
21
|
-
export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { default as React, JSX } from 'react';
|
|
2
|
-
import { InputProps as InputPropsAntd } from 'antd';
|
|
3
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
4
|
-
type CustomInputTypeAttribute = React.HTMLInputTypeAttribute | "money";
|
|
5
|
-
type TInputNumberType = "number" | "money";
|
|
6
|
-
export interface InputProps extends InputPropsAntd {
|
|
7
|
-
field?: ControllerRenderProps<any, any>;
|
|
8
|
-
formState?: UseFormStateReturn<any>;
|
|
9
|
-
label?: string;
|
|
10
|
-
classNameInput?: string;
|
|
11
|
-
type?: CustomInputTypeAttribute;
|
|
12
|
-
afterOnChange?: (value: number | string | null) => void;
|
|
13
|
-
iconStartInput?: React.ReactNode;
|
|
14
|
-
iconEndInput?: React.ReactNode;
|
|
15
|
-
allowNegative?: boolean;
|
|
16
|
-
decimalScale?: number;
|
|
17
|
-
prefix?: string;
|
|
18
|
-
suffix?: string;
|
|
19
|
-
contentTooltip?: string;
|
|
20
|
-
}
|
|
21
|
-
export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
|
23
|
-
onChange?: (event: any) => void;
|
|
24
|
-
afterOnChange?: (value: string | number) => void;
|
|
25
|
-
value?: string;
|
|
26
|
-
name?: string;
|
|
27
|
-
ref: any;
|
|
28
|
-
type?: TInputNumberType;
|
|
29
|
-
prefix?: string;
|
|
30
|
-
suffix?: string;
|
|
31
|
-
helperText?: () => JSX.Element | null;
|
|
32
|
-
}
|
|
33
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Control } from 'react-hook-form';
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export type ComponentPropsType<TComponent> = TComponent extends React.ComponentType<infer P> ? P : never;
|
|
4
|
-
export type PnkxFieldProps<TComponent extends React.ComponentType<any>> = {
|
|
5
|
-
control: Control<any, any>;
|
|
6
|
-
name: string;
|
|
7
|
-
component: TComponent;
|
|
8
|
-
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
|
9
|
-
export declare class PnkxField<TComponent extends React.ComponentType<any>> extends React.PureComponent<PnkxFieldProps<TComponent>> {
|
|
10
|
-
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RadioGroupProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
type TOptionGRadio = {
|
|
4
|
-
label: string;
|
|
5
|
-
value: string | number;
|
|
6
|
-
};
|
|
7
|
-
type TPositionRadio = "before" | "after";
|
|
8
|
-
export interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
|
9
|
-
field?: ControllerRenderProps<any, any>;
|
|
10
|
-
formState?: UseFormStateReturn<any>;
|
|
11
|
-
customStyleRadioGroup?: string;
|
|
12
|
-
customStyleRadio?: string;
|
|
13
|
-
customStyleWrap?: string;
|
|
14
|
-
afterOnChange?: (value: any) => void;
|
|
15
|
-
options: TOptionGRadio[];
|
|
16
|
-
position?: TPositionRadio;
|
|
17
|
-
}
|
|
18
|
-
export declare const RadioGroup: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { SelectProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
export interface SelectFieldProps extends SelectProps {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
setValue?: UseFormSetValue<any>;
|
|
7
|
-
label?: string;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
afterOnChange?: (value: any) => void;
|
|
10
|
-
classNameContainer?: string;
|
|
11
|
-
classNameSelect?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const Select: (props: SelectFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { SliderSingleProps as SliderSingleAntdProps } from 'antd';
|
|
2
|
-
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
|
3
|
-
export interface SliderProps extends Omit<SliderSingleAntdProps, "onChange"> {
|
|
4
|
-
field?: ControllerRenderProps<any, any>;
|
|
5
|
-
formState?: UseFormStateReturn<any>;
|
|
6
|
-
label?: string;
|
|
7
|
-
required?: boolean;
|
|
8
|
-
afterOnChange?: (data: number) => void;
|
|
9
|
-
customStyleContainer?: string;
|
|
10
|
-
customStyleSlider?: string;
|
|
11
|
-
}
|
|
12
|
-
export declare const SliderSingle: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
|