@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.
Files changed (188) hide show
  1. package/es/ui/index.js +247 -61
  2. package/package.json +1 -1
  3. package/types/components/fields/CascaderField.d.ts +14 -0
  4. package/types/components/fields/Checkbox.d.ts +12 -0
  5. package/types/components/fields/DatePicker.d.ts +21 -0
  6. package/types/{DateRangePicker.d.ts → components/fields/DateRangePicker.d.ts} +13 -19
  7. package/types/components/fields/Input.d.ts +33 -0
  8. package/types/components/fields/PnkxField.d.ts +11 -0
  9. package/types/components/fields/Radio.d.ts +19 -0
  10. package/types/components/fields/Select.d.ts +13 -0
  11. package/types/{SliderRanger.d.ts → components/fields/SliderRanger.d.ts} +12 -18
  12. package/types/components/fields/SliderSingle.d.ts +12 -0
  13. package/types/components/fields/Switch.d.ts +12 -0
  14. package/types/components/fields/Textarea.d.ts +12 -0
  15. package/types/components/fields/TimePicker.d.ts +12 -0
  16. package/types/components/fields/TimeRangePicker.d.ts +12 -0
  17. package/types/{TinyMCE.d.ts → components/fields/TinyMCE.d.ts} +16 -22
  18. package/types/components/fields/Upload.d.ts +15 -0
  19. package/types/components/fields/index.d.ts +15 -0
  20. package/types/components/hooks/index.d.ts +2 -0
  21. package/types/components/hooks/useBreadcrumb.d.ts +6 -0
  22. package/types/components/hooks/useDebounce.d.ts +1 -0
  23. package/types/{useMessage.d.ts → components/hooks/useMessage.d.ts} +5 -9
  24. package/types/{useToast.d.ts → components/hooks/useToast.d.ts} +12 -16
  25. package/types/components/icons/ActivateIcon.d.ts +6 -0
  26. package/types/components/icons/AllowClearIcon.d.ts +2 -0
  27. package/types/components/icons/ApprovalIcon.d.ts +6 -0
  28. package/types/components/icons/CancelApprovalIcon.d.ts +6 -0
  29. package/types/components/icons/CancelSendApprovalIcon.d.ts +6 -0
  30. package/types/components/icons/DeleteIcon.d.ts +6 -0
  31. package/types/components/icons/Dollar.d.ts +3 -0
  32. package/types/components/icons/DragIcon.d.ts +6 -0
  33. package/types/components/icons/EditIcon.d.ts +6 -0
  34. package/types/components/icons/ErrorConfirmIcon.d.ts +3 -0
  35. package/types/components/icons/InActivateIcon.d.ts +6 -0
  36. package/types/components/icons/InfoConfirmIcon.d.ts +3 -0
  37. package/types/components/icons/MoreIcon.d.ts +6 -0
  38. package/types/components/icons/PlusIcon.d.ts +6 -0
  39. package/types/components/icons/RefuseApprovalIcon.d.ts +6 -0
  40. package/types/components/icons/RestoreIcon.d.ts +6 -0
  41. package/types/components/icons/SearchAdvanceIcon.d.ts +6 -0
  42. package/types/components/icons/SearchIcon.d.ts +2 -0
  43. package/types/components/icons/SendApprovalIcon.d.ts +6 -0
  44. package/types/components/icons/SettingIcon.d.ts +1 -0
  45. package/types/components/icons/SuccessIcon.d.ts +3 -0
  46. package/types/components/icons/TrashCanIcon.d.ts +2 -0
  47. package/types/components/icons/WaitingApprovalIcon.d.ts +6 -0
  48. package/types/components/icons/WarningConfirmIcon.d.ts +3 -0
  49. package/types/components/icons/index.d.ts +18 -0
  50. package/types/components/index.d.ts +3 -0
  51. package/types/components/ui/Alert.d.ts +3 -0
  52. package/types/components/ui/Anchor.d.ts +9 -0
  53. package/types/components/ui/Appfix.d.ts +6 -0
  54. package/types/components/ui/AutoComplete.d.ts +3 -0
  55. package/types/{Badge.d.ts → components/ui/Badge.d.ts} +8 -14
  56. package/types/{BottomPagination.d.ts → components/ui/BottomPagination.d.ts} +8 -12
  57. package/types/components/ui/Breadcrumb.d.ts +16 -0
  58. package/types/components/ui/BreadcrumbHeading.d.ts +8 -0
  59. package/types/components/ui/BulkActions/BulkAction.d.ts +10 -0
  60. package/types/components/ui/BulkActions/DropListActions.d.ts +9 -0
  61. package/types/components/ui/BulkActions/index.d.ts +22 -0
  62. package/types/components/ui/Button.d.ts +4 -0
  63. package/types/components/ui/Card.d.ts +3 -0
  64. package/types/components/ui/Cascader.d.ts +14 -0
  65. package/types/{CategoryStatus.d.ts → components/ui/CategoryStatus.d.ts} +20 -27
  66. package/types/components/ui/Col.d.ts +11 -0
  67. package/types/components/ui/Collapse.d.ts +3 -0
  68. package/types/components/ui/ColorPicker.d.ts +3 -0
  69. package/types/components/ui/ConfigProvider.d.ts +4 -0
  70. package/types/components/ui/ConfirmModal.d.ts +12 -0
  71. package/types/components/ui/Container.d.ts +8 -0
  72. package/types/components/ui/Divider.d.ts +6 -0
  73. package/types/components/ui/Drawer.d.ts +7 -0
  74. package/types/components/ui/Dropdown.d.ts +12 -0
  75. package/types/components/ui/Empty.d.ts +3 -0
  76. package/types/{ErrorBoundary.d.ts → components/ui/ErrorBoundary.d.ts} +18 -26
  77. package/types/components/ui/ErrorMessage.d.ts +7 -0
  78. package/types/components/ui/Flex.d.ts +9 -0
  79. package/types/components/ui/Footer.d.ts +2 -0
  80. package/types/components/ui/Heading.d.ts +10 -0
  81. package/types/components/ui/Image.d.ts +2 -0
  82. package/types/components/ui/Label.d.ts +5 -0
  83. package/types/components/ui/Layout.d.ts +14 -0
  84. package/types/components/ui/Menu.d.ts +22 -0
  85. package/types/components/ui/Modal.d.ts +6 -0
  86. package/types/components/ui/PageNotFound.d.ts +4 -0
  87. package/types/components/ui/Pagination.d.ts +12 -0
  88. package/types/components/ui/Popconfirm.d.ts +6 -0
  89. package/types/components/ui/Popover.d.ts +9 -0
  90. package/types/components/ui/QRCode.d.ts +3 -0
  91. package/types/components/ui/Rate.d.ts +2 -0
  92. package/types/components/ui/Result.d.ts +6 -0
  93. package/types/components/ui/Row.d.ts +7 -0
  94. package/types/{SearchFilterForm.d.ts → components/ui/SearchFilterForm.d.ts} +18 -29
  95. package/types/components/ui/Segmented.d.ts +3 -0
  96. package/types/components/ui/Sidebar.d.ts +22 -0
  97. package/types/components/ui/Skeleton.d.ts +6 -0
  98. package/types/components/ui/Space.d.ts +8 -0
  99. package/types/components/ui/Spin.d.ts +6 -0
  100. package/types/components/ui/Splitter.d.ts +8 -0
  101. package/types/components/ui/Statistic.d.ts +3 -0
  102. package/types/components/ui/Steps.d.ts +12 -0
  103. package/types/components/ui/Table/ActionRowTable/index.d.ts +10 -0
  104. package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
  105. package/types/components/ui/Table/HeadingTable/index.d.ts +16 -0
  106. package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
  107. package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
  108. package/types/components/ui/Table/SettingTable/SortableItem.d.ts +6 -0
  109. package/types/components/ui/Table/SettingTable/index.d.ts +11 -0
  110. package/types/components/ui/Table/index.d.ts +46 -0
  111. package/types/components/ui/Tabs.d.ts +14 -0
  112. package/types/{Tag.d.ts → components/ui/Tag.d.ts} +5 -9
  113. package/types/components/ui/Timeline.d.ts +3 -0
  114. package/types/components/ui/Tooltip.d.ts +4 -0
  115. package/types/components/ui/Tour.d.ts +3 -0
  116. package/types/components/ui/Tree.d.ts +3 -0
  117. package/types/components/ui/Typography.d.ts +8 -0
  118. package/types/components/ui/UploadImage.d.ts +6 -0
  119. package/types/{Watermark.d.ts → components/ui/Watermark.d.ts} +2 -6
  120. package/types/components/ui/index.d.ts +60 -0
  121. package/types/constants/common.d.ts +1 -0
  122. package/types/constants/table.d.ts +31 -0
  123. package/types/helpers/common.d.ts +1 -0
  124. package/types/index.d.ts +2 -42
  125. package/types/Alert.d.ts +0 -7
  126. package/types/Anchor.d.ts +0 -13
  127. package/types/Appfix.d.ts +0 -11
  128. package/types/AutoComplete.d.ts +0 -7
  129. package/types/Breadcrumb.d.ts +0 -27
  130. package/types/BreadcrumbHeading.d.ts +0 -26
  131. package/types/Button.d.ts +0 -8
  132. package/types/Card.d.ts +0 -7
  133. package/types/Cascader.d.ts +0 -22
  134. package/types/CascaderField.d.ts +0 -20
  135. package/types/Checkbox.d.ts +0 -18
  136. package/types/Col.d.ts +0 -19
  137. package/types/Collapse.d.ts +0 -7
  138. package/types/ColorPicker.d.ts +0 -7
  139. package/types/ConfigProvider.d.ts +0 -8
  140. package/types/ConfirmModal.d.ts +0 -23
  141. package/types/Container.d.ts +0 -13
  142. package/types/DatePicker.d.ts +0 -29
  143. package/types/Divider.d.ts +0 -11
  144. package/types/Drawer.d.ts +0 -12
  145. package/types/Dropdown.d.ts +0 -21
  146. package/types/Empty.d.ts +0 -7
  147. package/types/ErrorMessage.d.ts +0 -12
  148. package/types/Flex.d.ts +0 -15
  149. package/types/Footer.d.ts +0 -6
  150. package/types/Heading.d.ts +0 -27
  151. package/types/Image.d.ts +0 -6
  152. package/types/Input.d.ts +0 -42
  153. package/types/Label.d.ts +0 -10
  154. package/types/Layout.d.ts +0 -20
  155. package/types/Menu.d.ts +0 -40
  156. package/types/Modal.d.ts +0 -11
  157. package/types/PageNotFound.d.ts +0 -9
  158. package/types/Pagination.d.ts +0 -22
  159. package/types/PnkxField.d.ts +0 -17
  160. package/types/Popconfirm.d.ts +0 -11
  161. package/types/Popover.d.ts +0 -15
  162. package/types/QRCode.d.ts +0 -7
  163. package/types/Radio.d.ts +0 -26
  164. package/types/Rate.d.ts +0 -5
  165. package/types/Result.d.ts +0 -11
  166. package/types/Row.d.ts +0 -12
  167. package/types/Segmented.d.ts +0 -7
  168. package/types/Select.d.ts +0 -20
  169. package/types/Sidebar.d.ts +0 -29
  170. package/types/Skeleton.d.ts +0 -11
  171. package/types/SliderSingle.d.ts +0 -18
  172. package/types/Space.d.ts +0 -13
  173. package/types/Spin.d.ts +0 -11
  174. package/types/Splitter.d.ts +0 -13
  175. package/types/Statistic.d.ts +0 -7
  176. package/types/Steps.d.ts +0 -20
  177. package/types/Switch.d.ts +0 -18
  178. package/types/Tabs.d.ts +0 -18
  179. package/types/Textarea.d.ts +0 -17
  180. package/types/TimePicker.d.ts +0 -16
  181. package/types/TimeRangePicker.d.ts +0 -16
  182. package/types/Timeline.d.ts +0 -7
  183. package/types/Tooltip.d.ts +0 -8
  184. package/types/Tour.d.ts +0 -7
  185. package/types/Tree.d.ts +0 -7
  186. package/types/Typography.d.ts +0 -12
  187. package/types/Upload.d.ts +0 -23
  188. 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,2 @@
1
+ export * from './useToast';
2
+ export * from './useMessage';
@@ -0,0 +1,6 @@
1
+ import { MenuType, BreadcrumbItemType } from '../ui';
2
+ type CustomBreadcrumbItem = {
3
+ title: React.ReactNode;
4
+ };
5
+ export declare const useBreadcrumb: (menuRouter: MenuType[], customBreadcrumb?: CustomBreadcrumbItem[]) => BreadcrumbItemType[];
6
+ export {};
@@ -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
- 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
+ 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
- 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
+ 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,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const ActivateIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const AllowClearIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const ApprovalIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const CancelApprovalIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const CancelSendApprovalIcon: ({ fill, stroke }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const DeleteIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const SvgDollar: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SvgDollar;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const DragIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const EditIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const ErrorConfirmIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default ErrorConfirmIcon;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const InActiveIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const InfoConfirmIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default InfoConfirmIcon;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const MoreIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const PlusIcon: ({ fill, stroke }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const RefuseApprovalIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const RestoreIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ declare const SearchAdvanceIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default SearchAdvanceIcon;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const SearchIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const SendApprovalIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export declare const SettingIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const SuccessIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SuccessIcon;
@@ -0,0 +1,2 @@
1
+ import { SVGProps } from 'react';
2
+ export declare const TrashCanIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface SVGRProps {
2
+ fill?: string;
3
+ stroke?: string;
4
+ }
5
+ export declare const WaitingApprovalIcon: ({ stroke, fill }: SVGRProps) => import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const WarningConfrimIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default WarningConfrimIcon;
@@ -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,3 @@
1
+ export * from './ui';
2
+ export * from './fields';
3
+ export * from './hooks';
@@ -0,0 +1,3 @@
1
+ import { AlertProps as AntdAlertProps } from 'antd';
2
+ export type AlertProps = AntdAlertProps;
3
+ export declare const Alert: React.FC<AlertProps>;
@@ -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;
@@ -0,0 +1,3 @@
1
+ import { AutoCompleteProps as AntdAutoCompleteProps } from 'antd';
2
+ export type AutoCompleteProps = AntdAutoCompleteProps;
3
+ export declare const AutoComplete: React.FC<AutoCompleteProps>;
@@ -1,14 +1,8 @@
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
+ 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
- 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 { }
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,4 @@
1
+ import { default as React } from 'react';
2
+ import { ButtonProps as AntButtonProps } from 'antd';
3
+ export type ButtonProps = AntButtonProps;
4
+ export declare const Button: React.FC<ButtonProps>;
@@ -0,0 +1,3 @@
1
+ import { CardProps as AntdCardProps } from 'antd';
2
+ export type CardProps = AntdCardProps;
3
+ export declare const Card: React.FC<CardProps>;
@@ -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
- 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 { }
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,3 @@
1
+ import { CollapseProps as CollapseAntdProps } from 'antd';
2
+ export type CollapseProps = CollapseAntdProps;
3
+ export declare const Collapse: React.FC<CollapseProps>;
@@ -0,0 +1,3 @@
1
+ import { ColorPickerProps as ColorPickerPropsAntd } from 'antd';
2
+ export type ColorPickerProps = ColorPickerPropsAntd;
3
+ export declare const ColorPicker: React.FC<ColorPickerProps>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { ConfigProviderProps as AntdConfigProviderProps } from 'antd';
3
+ export type ConfigProviderProps = AntdConfigProviderProps;
4
+ export declare const ConfigProvider: React.FC<ConfigProviderProps>;
@@ -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 {};
@@ -0,0 +1,3 @@
1
+ import { EmptyProps as AntdEmptyProps } from 'antd';
2
+ export type EmptyProps = AntdEmptyProps;
3
+ export declare const Empty: React.FC<EmptyProps>;
@@ -1,26 +1,18 @@
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 { }
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 {};