@pnkx-lib/ui 1.9.205 → 1.9.207

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.
Files changed (187) hide show
  1. package/package.json +3 -3
  2. package/types/Alert.d.ts +7 -0
  3. package/types/Anchor.d.ts +13 -0
  4. package/types/Appfix.d.ts +11 -0
  5. package/types/AutoComplete.d.ts +7 -0
  6. package/types/{components/ui/Badge.d.ts → Badge.d.ts} +14 -8
  7. package/types/{components/ui/BottomPagination.d.ts → BottomPagination.d.ts} +12 -8
  8. package/types/Breadcrumb.d.ts +27 -0
  9. package/types/BreadcrumbHeading.d.ts +26 -0
  10. package/types/Button.d.ts +8 -0
  11. package/types/Card.d.ts +7 -0
  12. package/types/Cascader.d.ts +22 -0
  13. package/types/CascaderField.d.ts +20 -0
  14. package/types/{components/ui/CategoryStatus.d.ts → CategoryStatus.d.ts} +27 -20
  15. package/types/Checkbox.d.ts +18 -0
  16. package/types/Col.d.ts +19 -0
  17. package/types/Collapse.d.ts +7 -0
  18. package/types/ColorPicker.d.ts +7 -0
  19. package/types/ConfigProvider.d.ts +8 -0
  20. package/types/ConfirmModal.d.ts +23 -0
  21. package/types/Container.d.ts +13 -0
  22. package/types/DatePicker.d.ts +29 -0
  23. package/types/{components/fields/DateRangePicker.d.ts → DateRangePicker.d.ts} +19 -13
  24. package/types/Divider.d.ts +11 -0
  25. package/types/Drawer.d.ts +12 -0
  26. package/types/Dropdown.d.ts +21 -0
  27. package/types/Empty.d.ts +7 -0
  28. package/types/{components/ui/ErrorBoundary.d.ts → ErrorBoundary.d.ts} +26 -18
  29. package/types/ErrorMessage.d.ts +12 -0
  30. package/types/Flex.d.ts +15 -0
  31. package/types/Footer.d.ts +6 -0
  32. package/types/Heading.d.ts +27 -0
  33. package/types/Image.d.ts +6 -0
  34. package/types/Input.d.ts +42 -0
  35. package/types/Label.d.ts +10 -0
  36. package/types/Layout.d.ts +20 -0
  37. package/types/Menu.d.ts +40 -0
  38. package/types/Modal.d.ts +11 -0
  39. package/types/PageNotFound.d.ts +9 -0
  40. package/types/Pagination.d.ts +22 -0
  41. package/types/PnkxField.d.ts +17 -0
  42. package/types/Popconfirm.d.ts +11 -0
  43. package/types/Popover.d.ts +15 -0
  44. package/types/QRCode.d.ts +7 -0
  45. package/types/Radio.d.ts +26 -0
  46. package/types/Rate.d.ts +5 -0
  47. package/types/Result.d.ts +11 -0
  48. package/types/Row.d.ts +12 -0
  49. package/types/{components/ui/SearchFilterForm.d.ts → SearchFilterForm.d.ts} +29 -18
  50. package/types/Segmented.d.ts +7 -0
  51. package/types/Select.d.ts +20 -0
  52. package/types/Sidebar.d.ts +29 -0
  53. package/types/Skeleton.d.ts +11 -0
  54. package/types/{components/fields/SliderRanger.d.ts → SliderRanger.d.ts} +18 -12
  55. package/types/SliderSingle.d.ts +18 -0
  56. package/types/Space.d.ts +13 -0
  57. package/types/Spin.d.ts +11 -0
  58. package/types/Splitter.d.ts +13 -0
  59. package/types/Statistic.d.ts +7 -0
  60. package/types/Steps.d.ts +20 -0
  61. package/types/Switch.d.ts +18 -0
  62. package/types/Tabs.d.ts +18 -0
  63. package/types/{components/ui/Tag.d.ts → Tag.d.ts} +9 -5
  64. package/types/Textarea.d.ts +17 -0
  65. package/types/TimePicker.d.ts +16 -0
  66. package/types/TimeRangePicker.d.ts +16 -0
  67. package/types/Timeline.d.ts +7 -0
  68. package/types/{components/fields/TinyMCE.d.ts → TinyMCE.d.ts} +22 -16
  69. package/types/Tooltip.d.ts +8 -0
  70. package/types/Tour.d.ts +7 -0
  71. package/types/Tree.d.ts +7 -0
  72. package/types/Typography.d.ts +12 -0
  73. package/types/Upload.d.ts +23 -0
  74. package/types/UploadImage.d.ts +9 -0
  75. package/types/{components/ui/Watermark.d.ts → Watermark.d.ts} +6 -2
  76. package/types/index.d.ts +42 -2
  77. package/types/{components/hooks/useMessage.d.ts → useMessage.d.ts} +9 -5
  78. package/types/{components/hooks/useToast.d.ts → useToast.d.ts} +16 -12
  79. package/types/components/fields/CascaderField.d.ts +0 -14
  80. package/types/components/fields/Checkbox.d.ts +0 -12
  81. package/types/components/fields/DatePicker.d.ts +0 -21
  82. package/types/components/fields/Input.d.ts +0 -33
  83. package/types/components/fields/PnkxField.d.ts +0 -11
  84. package/types/components/fields/Radio.d.ts +0 -19
  85. package/types/components/fields/Select.d.ts +0 -13
  86. package/types/components/fields/SliderSingle.d.ts +0 -12
  87. package/types/components/fields/Switch.d.ts +0 -12
  88. package/types/components/fields/Textarea.d.ts +0 -12
  89. package/types/components/fields/TimePicker.d.ts +0 -12
  90. package/types/components/fields/TimeRangePicker.d.ts +0 -12
  91. package/types/components/fields/Upload.d.ts +0 -15
  92. package/types/components/fields/index.d.ts +0 -15
  93. package/types/components/hooks/index.d.ts +0 -2
  94. package/types/components/hooks/useBreadcrumb.d.ts +0 -6
  95. package/types/components/hooks/useDebounce.d.ts +0 -1
  96. package/types/components/icons/ActivateIcon.d.ts +0 -6
  97. package/types/components/icons/AllowClearIcon.d.ts +0 -2
  98. package/types/components/icons/ApprovalIcon.d.ts +0 -6
  99. package/types/components/icons/CancelApprovalIcon.d.ts +0 -6
  100. package/types/components/icons/CancelSendApprovalIcon.d.ts +0 -6
  101. package/types/components/icons/DeleteIcon.d.ts +0 -6
  102. package/types/components/icons/Dollar.d.ts +0 -3
  103. package/types/components/icons/DragIcon.d.ts +0 -6
  104. package/types/components/icons/EditIcon.d.ts +0 -6
  105. package/types/components/icons/ErrorConfirmIcon.d.ts +0 -3
  106. package/types/components/icons/InActivateIcon.d.ts +0 -6
  107. package/types/components/icons/InfoConfirmIcon.d.ts +0 -3
  108. package/types/components/icons/MoreIcon.d.ts +0 -6
  109. package/types/components/icons/PlusIcon.d.ts +0 -6
  110. package/types/components/icons/RefuseApprovalIcon.d.ts +0 -6
  111. package/types/components/icons/RestoreIcon.d.ts +0 -6
  112. package/types/components/icons/SearchAdvanceIcon.d.ts +0 -6
  113. package/types/components/icons/SearchIcon.d.ts +0 -2
  114. package/types/components/icons/SendApprovalIcon.d.ts +0 -6
  115. package/types/components/icons/SettingIcon.d.ts +0 -1
  116. package/types/components/icons/SuccessIcon.d.ts +0 -3
  117. package/types/components/icons/TrashCanIcon.d.ts +0 -2
  118. package/types/components/icons/WaitingApprovalIcon.d.ts +0 -6
  119. package/types/components/icons/WarningConfirmIcon.d.ts +0 -3
  120. package/types/components/icons/index.d.ts +0 -18
  121. package/types/components/index.d.ts +0 -3
  122. package/types/components/ui/Alert.d.ts +0 -3
  123. package/types/components/ui/Anchor.d.ts +0 -9
  124. package/types/components/ui/Appfix.d.ts +0 -6
  125. package/types/components/ui/AutoComplete.d.ts +0 -3
  126. package/types/components/ui/Breadcrumb.d.ts +0 -16
  127. package/types/components/ui/BreadcrumbHeading.d.ts +0 -8
  128. package/types/components/ui/BulkActions/BulkAction.d.ts +0 -11
  129. package/types/components/ui/BulkActions/DropListActions.d.ts +0 -9
  130. package/types/components/ui/BulkActions/index.d.ts +0 -22
  131. package/types/components/ui/Button.d.ts +0 -4
  132. package/types/components/ui/Card.d.ts +0 -3
  133. package/types/components/ui/Cascader.d.ts +0 -14
  134. package/types/components/ui/Col.d.ts +0 -11
  135. package/types/components/ui/Collapse.d.ts +0 -3
  136. package/types/components/ui/ColorPicker.d.ts +0 -3
  137. package/types/components/ui/ConfigProvider.d.ts +0 -4
  138. package/types/components/ui/ConfirmModal.d.ts +0 -12
  139. package/types/components/ui/Container.d.ts +0 -8
  140. package/types/components/ui/Divider.d.ts +0 -6
  141. package/types/components/ui/Drawer.d.ts +0 -7
  142. package/types/components/ui/Dropdown.d.ts +0 -12
  143. package/types/components/ui/Empty.d.ts +0 -3
  144. package/types/components/ui/ErrorMessage.d.ts +0 -7
  145. package/types/components/ui/Flex.d.ts +0 -9
  146. package/types/components/ui/Footer.d.ts +0 -2
  147. package/types/components/ui/Heading.d.ts +0 -10
  148. package/types/components/ui/Image.d.ts +0 -2
  149. package/types/components/ui/Label.d.ts +0 -5
  150. package/types/components/ui/Layout.d.ts +0 -14
  151. package/types/components/ui/Menu.d.ts +0 -22
  152. package/types/components/ui/Modal.d.ts +0 -6
  153. package/types/components/ui/PageNotFound.d.ts +0 -4
  154. package/types/components/ui/Pagination.d.ts +0 -12
  155. package/types/components/ui/Popconfirm.d.ts +0 -6
  156. package/types/components/ui/Popover.d.ts +0 -9
  157. package/types/components/ui/QRCode.d.ts +0 -3
  158. package/types/components/ui/Rate.d.ts +0 -2
  159. package/types/components/ui/Result.d.ts +0 -6
  160. package/types/components/ui/Row.d.ts +0 -7
  161. package/types/components/ui/Segmented.d.ts +0 -3
  162. package/types/components/ui/Sidebar.d.ts +0 -22
  163. package/types/components/ui/Skeleton.d.ts +0 -6
  164. package/types/components/ui/Space.d.ts +0 -8
  165. package/types/components/ui/Spin.d.ts +0 -6
  166. package/types/components/ui/Splitter.d.ts +0 -8
  167. package/types/components/ui/Statistic.d.ts +0 -3
  168. package/types/components/ui/Steps.d.ts +0 -12
  169. package/types/components/ui/Table/ActionRowTable/index.d.ts +0 -10
  170. package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +0 -13
  171. package/types/components/ui/Table/HeadingTable/index.d.ts +0 -16
  172. package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +0 -6
  173. package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +0 -7
  174. package/types/components/ui/Table/SettingTable/SortableItem.d.ts +0 -6
  175. package/types/components/ui/Table/SettingTable/index.d.ts +0 -11
  176. package/types/components/ui/Table/index.d.ts +0 -47
  177. package/types/components/ui/Tabs.d.ts +0 -14
  178. package/types/components/ui/Timeline.d.ts +0 -3
  179. package/types/components/ui/Tooltip.d.ts +0 -4
  180. package/types/components/ui/Tour.d.ts +0 -3
  181. package/types/components/ui/Tree.d.ts +0 -3
  182. package/types/components/ui/Typography.d.ts +0 -8
  183. package/types/components/ui/UploadImage.d.ts +0 -6
  184. package/types/components/ui/index.d.ts +0 -60
  185. package/types/constants/common.d.ts +0 -1
  186. package/types/constants/table.d.ts +0 -31
  187. package/types/helpers/common.d.ts +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.205",
4
+ "version": "1.9.207",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -122,7 +122,8 @@
122
122
  "react": "^18.3.1",
123
123
  "react-dom": "^18.3.1",
124
124
  "react-router": "^7.6.0",
125
- "tailwindcss": "^4.0.17"
125
+ "tailwindcss": "^4.0.17",
126
+ "@pnkx-lib/core": "^1.1.66"
126
127
  },
127
128
  "dependencies": {
128
129
  "@ant-design/icons": "^5.6.1",
@@ -134,7 +135,6 @@
134
135
  "@headlessui/react": "^2.2.2",
135
136
  "@heroicons/react": "^2.2.0",
136
137
  "@hookform/resolvers": "^5.0.1",
137
- "@pnkx-lib/core": "^1.1.66",
138
138
  "@pnkx-lib/icon": "^0.0.35",
139
139
  "@tailwindcss/cli": "^4.1.6",
140
140
  "@tanstack/react-query": "^5.80.7",
@@ -0,0 +1,7 @@
1
+ import { AlertProps as AlertProps_2 } from 'antd';
2
+
3
+ export declare const Alert: React.FC<AlertProps>;
4
+
5
+ export declare type AlertProps = AlertProps_2;
6
+
7
+ export { }
@@ -0,0 +1,13 @@
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 { }
@@ -0,0 +1,11 @@
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 { }
@@ -0,0 +1,7 @@
1
+ import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
2
+
3
+ export declare const AutoComplete: React.FC<AutoCompleteProps>;
4
+
5
+ export declare type AutoCompleteProps = AutoCompleteProps_2;
6
+
7
+ export { }
@@ -1,8 +1,14 @@
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
+ import { BadgeProps as BadgeProps_2 } from 'antd';
2
+ import { JSX } from 'react/jsx-runtime';
3
+
4
+ export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
5
+
6
+ export declare interface BadgeProps extends BadgeProps_2 {
7
+ type?: "error" | "info" | "success" | "warning";
8
+ children?: React.ReactNode;
9
+ customColor?: string;
10
+ }
11
+
12
+ export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
13
+
14
+ export { }
@@ -1,8 +1,12 @@
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 {};
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ export declare const BottomPagination: (props: PaginationProps) => JSX.Element;
4
+
5
+ declare interface PaginationProps {
6
+ total: number;
7
+ pageSize: number;
8
+ current: number;
9
+ onChange?: (page: number, pageSize: number) => void;
10
+ }
11
+
12
+ export { }
@@ -0,0 +1,27 @@
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 { }
@@ -0,0 +1,26 @@
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 { }
@@ -0,0 +1,8 @@
1
+ import { ButtonProps as ButtonProps_2 } from 'antd';
2
+ import { default as default_2 } from 'react';
3
+
4
+ export declare const Button: default_2.FC<ButtonProps>;
5
+
6
+ export declare type ButtonProps = ButtonProps_2;
7
+
8
+ export { }
@@ -0,0 +1,7 @@
1
+ import { CardProps as CardProps_2 } from 'antd';
2
+
3
+ export declare const Card: React.FC<CardProps>;
4
+
5
+ export declare type CardProps = CardProps_2;
6
+
7
+ export { }
@@ -0,0 +1,22 @@
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 { }
@@ -0,0 +1,20 @@
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 { }
@@ -1,20 +1,27 @@
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 {};
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare type BadgeConfig = {
4
+ [key: number]: {
5
+ color: string;
6
+ text: string;
7
+ };
8
+ };
9
+
10
+ export declare const badgeStatusCategoryConfig: BadgeConfig;
11
+
12
+ export declare enum CATEGORY_LIST_ENUM {
13
+ DRAFT = 0,// tạo mới
14
+ WATING_APPROVAL = 1,// đang chờ duyệt
15
+ ACTIVE = 2,// hoạt động
16
+ INACTIVE = 3,// dừng hoạt động
17
+ REJECT = 4,// từ chối duyệt
18
+ DELETE = 5
19
+ }
20
+
21
+ export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
22
+
23
+ export declare interface CategoryStatusProps {
24
+ status: number;
25
+ }
26
+
27
+ export { }
@@ -0,0 +1,18 @@
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 ADDED
@@ -0,0 +1,19 @@
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 { }
@@ -0,0 +1,7 @@
1
+ import { CollapseProps as CollapseProps_2 } from 'antd';
2
+
3
+ export declare const Collapse: React.FC<CollapseProps>;
4
+
5
+ export declare type CollapseProps = CollapseProps_2;
6
+
7
+ export { }
@@ -0,0 +1,7 @@
1
+ import { ColorPickerProps as ColorPickerProps_2 } from 'antd';
2
+
3
+ export declare const ColorPicker: React.FC<ColorPickerProps>;
4
+
5
+ export declare type ColorPickerProps = ColorPickerProps_2;
6
+
7
+ export { }
@@ -0,0 +1,8 @@
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 { }
@@ -0,0 +1,23 @@
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 { }
@@ -0,0 +1,13 @@
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 { }
@@ -0,0 +1,29 @@
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 { }
@@ -1,13 +1,19 @@
1
- import { RangePickerProps } from 'antd/es/date-picker';
2
- import { Dayjs } from 'dayjs';
3
- import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
4
- export interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
5
- field?: ControllerRenderProps<any, any>;
6
- formState?: UseFormStateReturn<any>;
7
- label?: string;
8
- required?: boolean;
9
- afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
10
- customStyleContainer?: string;
11
- customStyleDatePicker?: string;
12
- }
13
- export declare const RangePicker: (props: RangePickerFieldProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { ControllerRenderProps } from 'react-hook-form';
2
+ import { Dayjs } from 'dayjs';
3
+ import { JSX } from 'react/jsx-runtime';
4
+ import { RangePickerProps } from 'antd/es/date-picker';
5
+ import { UseFormStateReturn } from 'react-hook-form';
6
+
7
+ export declare const RangePicker: (props: RangePickerFieldProps) => JSX.Element;
8
+
9
+ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
10
+ field?: ControllerRenderProps<any, any>;
11
+ formState?: UseFormStateReturn<any>;
12
+ label?: string;
13
+ required?: boolean;
14
+ afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
15
+ customStyleContainer?: string;
16
+ customStyleDatePicker?: string;
17
+ }
18
+
19
+ export { }
@@ -0,0 +1,11 @@
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 { }
@@ -0,0 +1,12 @@
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 { }
@@ -0,0 +1,21 @@
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 { }
@@ -0,0 +1,7 @@
1
+ import { EmptyProps as EmptyProps_2 } from 'antd';
2
+
3
+ export declare const Empty: React.FC<EmptyProps>;
4
+
5
+ export declare type EmptyProps = EmptyProps_2;
6
+
7
+ export { }
@@ -1,18 +1,26 @@
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 {};
1
+ import { Component } from 'react';
2
+ import { default as default_2 } from 'react';
3
+ import { ErrorInfo } from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ export declare const ErrorBoundary: typeof ErrorBoundaryClass;
7
+
8
+ declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
9
+ constructor(props: ErrorBoundaryProps);
10
+ static getDerivedStateFromError(error: Error): ErrorBoundaryState;
11
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
12
+ handleReload: () => void;
13
+ render(): default_2.ReactNode;
14
+ }
15
+
16
+ export declare interface ErrorBoundaryProps {
17
+ children: ReactNode;
18
+ }
19
+
20
+ export declare interface ErrorBoundaryState {
21
+ hasError: boolean;
22
+ error: Error | null;
23
+ errorInfo: ErrorInfo | null;
24
+ }
25
+
26
+ export { }
@@ -0,0 +1,12 @@
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 { }
@@ -0,0 +1,15 @@
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 { }
@@ -0,0 +1,6 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ declare const Footer: () => JSX.Element;
4
+ export default Footer;
5
+
6
+ export { }
@@ -0,0 +1,27 @@
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 { }
@@ -0,0 +1,6 @@
1
+ import { ImageProps } from 'antd';
2
+
3
+ declare const Image_2: React.FC<ImageProps>;
4
+ export { Image_2 as Image }
5
+
6
+ export { }