@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.
Files changed (191) hide show
  1. package/dist/style.css +1 -1
  2. package/es/ui/Heading.js +1 -1
  3. package/es/ui/Sidebar.js +6 -5
  4. package/es/ui/index.js +46 -37
  5. package/package.json +3 -3
  6. package/types/Alert.d.ts +7 -0
  7. package/types/Anchor.d.ts +13 -0
  8. package/types/Appfix.d.ts +11 -0
  9. package/types/AutoComplete.d.ts +7 -0
  10. package/types/{components/ui/Badge.d.ts → Badge.d.ts} +14 -8
  11. package/types/{components/ui/BottomPagination.d.ts → BottomPagination.d.ts} +12 -8
  12. package/types/Breadcrumb.d.ts +27 -0
  13. package/types/BreadcrumbHeading.d.ts +26 -0
  14. package/types/Button.d.ts +8 -0
  15. package/types/Card.d.ts +7 -0
  16. package/types/Cascader.d.ts +22 -0
  17. package/types/CascaderField.d.ts +20 -0
  18. package/types/{components/ui/CategoryStatus.d.ts → CategoryStatus.d.ts} +27 -20
  19. package/types/Checkbox.d.ts +18 -0
  20. package/types/Col.d.ts +19 -0
  21. package/types/Collapse.d.ts +7 -0
  22. package/types/ColorPicker.d.ts +7 -0
  23. package/types/ConfigProvider.d.ts +8 -0
  24. package/types/ConfirmModal.d.ts +23 -0
  25. package/types/Container.d.ts +13 -0
  26. package/types/DatePicker.d.ts +29 -0
  27. package/types/{components/fields/DateRangePicker.d.ts → DateRangePicker.d.ts} +19 -13
  28. package/types/Divider.d.ts +11 -0
  29. package/types/Drawer.d.ts +12 -0
  30. package/types/Dropdown.d.ts +21 -0
  31. package/types/Empty.d.ts +7 -0
  32. package/types/{components/ui/ErrorBoundary.d.ts → ErrorBoundary.d.ts} +26 -18
  33. package/types/ErrorMessage.d.ts +12 -0
  34. package/types/Flex.d.ts +15 -0
  35. package/types/Footer.d.ts +6 -0
  36. package/types/Heading.d.ts +27 -0
  37. package/types/Image.d.ts +6 -0
  38. package/types/Input.d.ts +42 -0
  39. package/types/Label.d.ts +10 -0
  40. package/types/Layout.d.ts +20 -0
  41. package/types/Menu.d.ts +40 -0
  42. package/types/Modal.d.ts +11 -0
  43. package/types/PageNotFound.d.ts +9 -0
  44. package/types/Pagination.d.ts +22 -0
  45. package/types/PnkxField.d.ts +17 -0
  46. package/types/Popconfirm.d.ts +11 -0
  47. package/types/Popover.d.ts +15 -0
  48. package/types/QRCode.d.ts +7 -0
  49. package/types/Radio.d.ts +26 -0
  50. package/types/Rate.d.ts +5 -0
  51. package/types/Result.d.ts +11 -0
  52. package/types/Row.d.ts +12 -0
  53. package/types/{components/ui/SearchFilterForm.d.ts → SearchFilterForm.d.ts} +29 -18
  54. package/types/Segmented.d.ts +7 -0
  55. package/types/Select.d.ts +20 -0
  56. package/types/Sidebar.d.ts +29 -0
  57. package/types/Skeleton.d.ts +11 -0
  58. package/types/{components/fields/SliderRanger.d.ts → SliderRanger.d.ts} +18 -12
  59. package/types/SliderSingle.d.ts +18 -0
  60. package/types/Space.d.ts +13 -0
  61. package/types/Spin.d.ts +11 -0
  62. package/types/Splitter.d.ts +13 -0
  63. package/types/Statistic.d.ts +7 -0
  64. package/types/Steps.d.ts +20 -0
  65. package/types/Switch.d.ts +18 -0
  66. package/types/Tabs.d.ts +18 -0
  67. package/types/{components/ui/Tag.d.ts → Tag.d.ts} +9 -5
  68. package/types/Textarea.d.ts +17 -0
  69. package/types/TimePicker.d.ts +16 -0
  70. package/types/TimeRangePicker.d.ts +16 -0
  71. package/types/Timeline.d.ts +7 -0
  72. package/types/{components/fields/TinyMCE.d.ts → TinyMCE.d.ts} +22 -16
  73. package/types/Tooltip.d.ts +8 -0
  74. package/types/Tour.d.ts +7 -0
  75. package/types/Tree.d.ts +7 -0
  76. package/types/Typography.d.ts +12 -0
  77. package/types/Upload.d.ts +23 -0
  78. package/types/UploadImage.d.ts +9 -0
  79. package/types/{components/ui/Watermark.d.ts → Watermark.d.ts} +6 -2
  80. package/types/index.d.ts +42 -2
  81. package/types/{components/hooks/useMessage.d.ts → useMessage.d.ts} +9 -5
  82. package/types/{components/hooks/useToast.d.ts → useToast.d.ts} +16 -12
  83. package/types/components/fields/CascaderField.d.ts +0 -14
  84. package/types/components/fields/Checkbox.d.ts +0 -12
  85. package/types/components/fields/DatePicker.d.ts +0 -21
  86. package/types/components/fields/Input.d.ts +0 -33
  87. package/types/components/fields/PnkxField.d.ts +0 -11
  88. package/types/components/fields/Radio.d.ts +0 -19
  89. package/types/components/fields/Select.d.ts +0 -13
  90. package/types/components/fields/SliderSingle.d.ts +0 -12
  91. package/types/components/fields/Switch.d.ts +0 -12
  92. package/types/components/fields/Textarea.d.ts +0 -12
  93. package/types/components/fields/TimePicker.d.ts +0 -12
  94. package/types/components/fields/TimeRangePicker.d.ts +0 -12
  95. package/types/components/fields/Upload.d.ts +0 -15
  96. package/types/components/fields/index.d.ts +0 -15
  97. package/types/components/hooks/index.d.ts +0 -2
  98. package/types/components/hooks/useBreadcrumb.d.ts +0 -6
  99. package/types/components/hooks/useDebounce.d.ts +0 -1
  100. package/types/components/icons/ActivateIcon.d.ts +0 -6
  101. package/types/components/icons/AllowClearIcon.d.ts +0 -2
  102. package/types/components/icons/ApprovalIcon.d.ts +0 -6
  103. package/types/components/icons/CancelApprovalIcon.d.ts +0 -6
  104. package/types/components/icons/CancelSendApprovalIcon.d.ts +0 -6
  105. package/types/components/icons/DeleteIcon.d.ts +0 -6
  106. package/types/components/icons/Dollar.d.ts +0 -3
  107. package/types/components/icons/DragIcon.d.ts +0 -6
  108. package/types/components/icons/EditIcon.d.ts +0 -6
  109. package/types/components/icons/ErrorConfirmIcon.d.ts +0 -3
  110. package/types/components/icons/InActivateIcon.d.ts +0 -6
  111. package/types/components/icons/InfoConfirmIcon.d.ts +0 -3
  112. package/types/components/icons/MoreIcon.d.ts +0 -6
  113. package/types/components/icons/PlusIcon.d.ts +0 -6
  114. package/types/components/icons/RefuseApprovalIcon.d.ts +0 -6
  115. package/types/components/icons/RestoreIcon.d.ts +0 -6
  116. package/types/components/icons/SearchAdvanceIcon.d.ts +0 -6
  117. package/types/components/icons/SearchIcon.d.ts +0 -2
  118. package/types/components/icons/SendApprovalIcon.d.ts +0 -6
  119. package/types/components/icons/SettingIcon.d.ts +0 -1
  120. package/types/components/icons/SuccessIcon.d.ts +0 -3
  121. package/types/components/icons/TrashCanIcon.d.ts +0 -2
  122. package/types/components/icons/WaitingApprovalIcon.d.ts +0 -6
  123. package/types/components/icons/WarningConfirmIcon.d.ts +0 -3
  124. package/types/components/icons/index.d.ts +0 -18
  125. package/types/components/index.d.ts +0 -3
  126. package/types/components/ui/Alert.d.ts +0 -3
  127. package/types/components/ui/Anchor.d.ts +0 -9
  128. package/types/components/ui/Appfix.d.ts +0 -6
  129. package/types/components/ui/AutoComplete.d.ts +0 -3
  130. package/types/components/ui/Breadcrumb.d.ts +0 -16
  131. package/types/components/ui/BreadcrumbHeading.d.ts +0 -8
  132. package/types/components/ui/BulkActions/BulkAction.d.ts +0 -11
  133. package/types/components/ui/BulkActions/DropListActions.d.ts +0 -9
  134. package/types/components/ui/BulkActions/index.d.ts +0 -22
  135. package/types/components/ui/Button.d.ts +0 -4
  136. package/types/components/ui/Card.d.ts +0 -3
  137. package/types/components/ui/Cascader.d.ts +0 -14
  138. package/types/components/ui/Col.d.ts +0 -11
  139. package/types/components/ui/Collapse.d.ts +0 -3
  140. package/types/components/ui/ColorPicker.d.ts +0 -3
  141. package/types/components/ui/ConfigProvider.d.ts +0 -4
  142. package/types/components/ui/ConfirmModal.d.ts +0 -12
  143. package/types/components/ui/Container.d.ts +0 -8
  144. package/types/components/ui/Divider.d.ts +0 -6
  145. package/types/components/ui/Drawer.d.ts +0 -7
  146. package/types/components/ui/Dropdown.d.ts +0 -12
  147. package/types/components/ui/Empty.d.ts +0 -3
  148. package/types/components/ui/ErrorMessage.d.ts +0 -7
  149. package/types/components/ui/Flex.d.ts +0 -9
  150. package/types/components/ui/Footer.d.ts +0 -2
  151. package/types/components/ui/Heading.d.ts +0 -10
  152. package/types/components/ui/Image.d.ts +0 -2
  153. package/types/components/ui/Label.d.ts +0 -5
  154. package/types/components/ui/Layout.d.ts +0 -14
  155. package/types/components/ui/Menu.d.ts +0 -22
  156. package/types/components/ui/Modal.d.ts +0 -6
  157. package/types/components/ui/PageNotFound.d.ts +0 -4
  158. package/types/components/ui/Pagination.d.ts +0 -12
  159. package/types/components/ui/Popconfirm.d.ts +0 -6
  160. package/types/components/ui/Popover.d.ts +0 -9
  161. package/types/components/ui/QRCode.d.ts +0 -3
  162. package/types/components/ui/Rate.d.ts +0 -2
  163. package/types/components/ui/Result.d.ts +0 -6
  164. package/types/components/ui/Row.d.ts +0 -7
  165. package/types/components/ui/Segmented.d.ts +0 -3
  166. package/types/components/ui/Sidebar.d.ts +0 -22
  167. package/types/components/ui/Skeleton.d.ts +0 -6
  168. package/types/components/ui/Space.d.ts +0 -8
  169. package/types/components/ui/Spin.d.ts +0 -6
  170. package/types/components/ui/Splitter.d.ts +0 -8
  171. package/types/components/ui/Statistic.d.ts +0 -3
  172. package/types/components/ui/Steps.d.ts +0 -12
  173. package/types/components/ui/Table/ActionRowTable/index.d.ts +0 -10
  174. package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +0 -13
  175. package/types/components/ui/Table/HeadingTable/index.d.ts +0 -16
  176. package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +0 -6
  177. package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +0 -7
  178. package/types/components/ui/Table/SettingTable/SortableItem.d.ts +0 -6
  179. package/types/components/ui/Table/SettingTable/index.d.ts +0 -11
  180. package/types/components/ui/Table/index.d.ts +0 -47
  181. package/types/components/ui/Tabs.d.ts +0 -14
  182. package/types/components/ui/Timeline.d.ts +0 -3
  183. package/types/components/ui/Tooltip.d.ts +0 -4
  184. package/types/components/ui/Tour.d.ts +0 -3
  185. package/types/components/ui/Tree.d.ts +0 -3
  186. package/types/components/ui/Typography.d.ts +0 -8
  187. package/types/components/ui/UploadImage.d.ts +0 -6
  188. package/types/components/ui/index.d.ts +0 -60
  189. package/types/constants/common.d.ts +0 -1
  190. package/types/constants/table.d.ts +0 -31
  191. package/types/helpers/common.d.ts +0 -1
@@ -1,12 +0,0 @@
1
- import { SwitchProps as SwitchAntdProps } from 'antd';
2
- import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
- export interface SwitchProps extends Omit<SwitchAntdProps, "onChange"> {
4
- field?: ControllerRenderProps<any, any>;
5
- formState?: UseFormStateReturn<any>;
6
- label?: string;
7
- required?: boolean;
8
- afterOnChange?: (checked: boolean) => void;
9
- customStyleContainer?: string;
10
- customStyleSwitch?: string;
11
- }
12
- export declare const Switch: (props: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
- import { TextAreaProps as TextAreaPropsAntd } from 'antd/es/input';
4
- export interface TextAreaProps extends TextAreaPropsAntd {
5
- field?: ControllerRenderProps<any, any>;
6
- formState?: UseFormStateReturn<any>;
7
- label?: string;
8
- customStyleTextarea?: string;
9
- afterOnChange?: (value: string) => void;
10
- required?: boolean;
11
- }
12
- export declare const Textarea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TimePickerProps } from 'antd/es/time-picker';
3
- import { Dayjs } from 'dayjs';
4
- import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
5
- interface TimeRangePickerProps extends Omit<TimePickerProps, "value" | "onChange"> {
6
- afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null) => void;
7
- field?: ControllerRenderProps<any, any>;
8
- formState?: UseFormStateReturn<any>;
9
- label?: string;
10
- }
11
- export declare const TimePicker: React.FC<TimeRangePickerProps>;
12
- export {};
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TimeRangePickerProps as AntdTimeRangePickerProps } from 'antd/es/time-picker';
3
- import { Dayjs } from 'dayjs';
4
- import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
5
- interface TimeRangePickerProps extends AntdTimeRangePickerProps {
6
- afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
7
- field?: ControllerRenderProps<any, any>;
8
- formState?: UseFormStateReturn<any>;
9
- label?: string;
10
- }
11
- export declare const TimeRangePicker: React.FC<TimeRangePickerProps>;
12
- export {};
@@ -1,15 +0,0 @@
1
- import { UploadProps, UploadFile } from 'antd';
2
- import { ControllerRenderProps, UseFormStateReturn, ControllerFieldState } from 'react-hook-form';
3
- export interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
4
- field?: ControllerRenderProps<any, any>;
5
- formState?: UseFormStateReturn<any>;
6
- fieldState?: ControllerFieldState;
7
- label?: string;
8
- required?: boolean;
9
- maxFiles?: number;
10
- uploadButtonText?: string;
11
- customStyleContainer?: string;
12
- customStyleUpload?: string;
13
- afterOnChange?: (fileList: UploadFile[]) => void;
14
- }
15
- export declare const UploadField: (props: UploadFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- export * from './Input';
2
- export * from './PnkxField';
3
- export * from './Select';
4
- export * from './TinyMCE';
5
- export * from './Textarea';
6
- export * from './Radio';
7
- export * from './Checkbox';
8
- export * from './DatePicker';
9
- export * from './DateRangePicker';
10
- export * from './Upload';
11
- export * from './Switch';
12
- export * from './SliderSingle';
13
- export * from './SliderRanger';
14
- export * from './TimeRangePicker';
15
- export * from './TimePicker';
@@ -1,2 +0,0 @@
1
- export * from './useToast';
2
- export * from './useMessage';
@@ -1,6 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export default function useDebounce<T>(value: T, delay: number): T;
@@ -1,6 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare const AllowClearIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const SvgDollar: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default SvgDollar;
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const ErrorConfirmIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default ErrorConfirmIcon;
@@ -1,6 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const InfoConfirmIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default InfoConfirmIcon;
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
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;
@@ -1,2 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare const SearchIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
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 {};
@@ -1 +0,0 @@
1
- export declare const SettingIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const SuccessIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default SuccessIcon;
@@ -1,2 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare const TrashCanIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- declare const WarningConfrimIcon: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
- export default WarningConfrimIcon;
@@ -1,18 +0,0 @@
1
- export * from './RestoreIcon';
2
- export * from './DragIcon';
3
- export * from './SettingIcon';
4
- export * from './SendApprovalIcon';
5
- export * from './CancelSendApprovalIcon';
6
- export * from './ApprovalIcon';
7
- export * from './CancelApprovalIcon';
8
- export * from './RefuseApprovalIcon';
9
- export * from './RestoreIcon';
10
- export * from './ActivateIcon';
11
- export * from './DeleteIcon';
12
- export * from './InActivateIcon';
13
- export * from './PlusIcon';
14
- export * from './SearchIcon';
15
- export * from './AllowClearIcon';
16
- export * from './EditIcon';
17
- export * from './SearchAdvanceIcon';
18
- export * from './MoreIcon';
@@ -1,3 +0,0 @@
1
- export * from './ui';
2
- export * from './fields';
3
- export * from './hooks';
@@ -1,3 +0,0 @@
1
- import { AlertProps as AntdAlertProps } from 'antd';
2
- export type AlertProps = AntdAlertProps;
3
- export declare const Alert: React.FC<AlertProps>;
@@ -1,9 +0,0 @@
1
- import { AnchorProps as AnchorPropsAntd } from 'antd';
2
- import { FC } from 'react';
3
- type BaseProps = {
4
- containerClassName?: string;
5
- anchorClassName?: string;
6
- };
7
- export type AnchorPropsUnion = BaseProps & AnchorPropsAntd;
8
- export declare const Anchor: FC<AnchorPropsUnion>;
9
- export {};
@@ -1,6 +0,0 @@
1
- import { default as React } from 'react';
2
- import { AffixProps as AntdAffixProps } from 'antd';
3
- export interface AppfixProps extends AntdAffixProps {
4
- children: React.ReactNode;
5
- }
6
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { AutoCompleteProps as AntdAutoCompleteProps } from 'antd';
2
- export type AutoCompleteProps = AntdAutoCompleteProps;
3
- export declare const AutoComplete: React.FC<AutoCompleteProps>;
@@ -1,16 +0,0 @@
1
- import { BreadcrumbProps as BreadcrumbPropsAntd } from 'antd';
2
- import { BreadcrumbItemType as BreadcrumbItemTypeAntd, BreadcrumbSeparatorType as BreadcrumbSeparatorTypeAntd } from 'antd/es/breadcrumb/Breadcrumb';
3
- type BaseProps = {
4
- containerClassName?: string;
5
- breadcrumbClassName?: string;
6
- };
7
- export interface BreadcrumbItemType extends BreadcrumbItemTypeAntd {
8
- children?: Omit<BreadcrumbItemType, "children">[];
9
- }
10
- export type BreadcrumbSeparatorType = BreadcrumbSeparatorTypeAntd;
11
- export type BreadcrumbProps = BreadcrumbPropsAntd;
12
- export type BreadcrumbPropsUnion = BaseProps & BreadcrumbProps;
13
- export type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
14
- export type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
15
- export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,8 +0,0 @@
1
- import { MenuType } from './Sidebar';
2
- export interface BreadcrumbHeadingProps {
3
- menu: Array<MenuType>;
4
- customBreadcum?: Array<{
5
- title: React.ReactNode;
6
- }>;
7
- }
8
- export declare const BreadcrumbHeading: (props: BreadcrumbHeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +0,0 @@
1
- import { ConfirmModalProps } from '../ConfirmModal';
2
- import { TListIcon } from '.';
3
- import { TypeStatusTable } from '../../../constants';
4
- export interface BulkActionProps {
5
- quantity?: number;
6
- listIcon?: TListIcon[];
7
- status?: TypeStatusTable;
8
- setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
9
- toggle: () => void;
10
- }
11
- export declare const BulkAction: ({ quantity, listIcon, status, setNotifyContent, toggle, }: BulkActionProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { ConfirmModalProps } from '../ConfirmModal';
2
- import { TListIcon } from '.';
3
- export interface DropListActionsProps {
4
- listIcon?: TListIcon[];
5
- status?: number;
6
- setNotifyContent: React.Dispatch<React.SetStateAction<ConfirmModalProps>>;
7
- toggle: () => void;
8
- }
9
- export declare const DropListActions: ({ listIcon, status, setNotifyContent, toggle, }: DropListActionsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,22 +0,0 @@
1
- import { ConfirmModalProps } from '../ConfirmModal';
2
- import { BulkActionHandlers } from '@pnkx-lib/core';
3
- import { TypeBulkActions, TypeStatusTable } from '../../../constants';
4
- import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
5
- interface IBulkActionsProps extends Partial<BulkActionHandlers> {
6
- quantity?: number;
7
- status?: TypeStatusTable;
8
- type?: TypeBulkActions;
9
- }
10
- export type TListIcon = {
11
- icon: React.ReactNode;
12
- iconDisable: React.ReactNode;
13
- iconDropList: React.ReactNode;
14
- action?: () => void;
15
- title: string;
16
- arrShow: CATEGORY_LIST_ENUM[];
17
- content?: string;
18
- typeIcon?: ConfirmModalProps["typeIcon"];
19
- name?: string;
20
- };
21
- export declare const BulkActions: ({ quantity, handleDelete, handleSubmitForApproval, handleCancelSubmission, handleApprove, handleCancelApproval, handleReject, handleDeActivate, handleActivate, handleRestore, status, }: IBulkActionsProps) => import("react/jsx-runtime").JSX.Element;
22
- export {};
@@ -1,4 +0,0 @@
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>;
@@ -1,3 +0,0 @@
1
- import { CardProps as AntdCardProps } from 'antd';
2
- export type CardProps = AntdCardProps;
3
- export declare const Card: React.FC<CardProps>;
@@ -1,14 +0,0 @@
1
- import { CascaderProps, DefaultOptionType } from 'antd/es/cascader';
2
- type BaseProps = {
3
- customStyleContainer?: string;
4
- customStyleCascader?: string;
5
- };
6
- type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
7
- multiple?: false;
8
- };
9
- type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
10
- multiple: true;
11
- };
12
- export type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
13
- export declare const CascaderField: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -1,11 +0,0 @@
1
- import { Breakpoint, ColProps as ColPropsAntd } from 'antd';
2
- import { ColSize as ColSizeAntd } from 'antd/es/grid';
3
- type BaseProps = {
4
- colClassName?: string;
5
- };
6
- export type ColSpanType = number | string;
7
- export interface ColProps extends ColPropsAntd, Partial<Record<Breakpoint, ColSpanType | ColSizeAntd>> {
8
- }
9
- export type ColPropsUnion = BaseProps & ColProps;
10
- export declare const Col: (props: ColPropsUnion) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,3 +0,0 @@
1
- import { CollapseProps as CollapseAntdProps } from 'antd';
2
- export type CollapseProps = CollapseAntdProps;
3
- export declare const Collapse: React.FC<CollapseProps>;
@@ -1,3 +0,0 @@
1
- import { ColorPickerProps as ColorPickerPropsAntd } from 'antd';
2
- export type ColorPickerProps = ColorPickerPropsAntd;
3
- export declare const ColorPicker: React.FC<ColorPickerProps>;
@@ -1,4 +0,0 @@
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>;
@@ -1,12 +0,0 @@
1
- import { ModalProps } from './Modal';
2
- export type ConfirmModalType = "success" | "error" | "warning" | "info";
3
- export interface ConfirmModalProps extends ModalProps {
4
- title: string;
5
- content: string;
6
- titleCancelBtn?: string;
7
- titleSubmitBtn?: string;
8
- typeIcon: ConfirmModalType;
9
- handleCancel?: () => void;
10
- handleSubmit?: () => void;
11
- }
12
- export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- export type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
3
- export interface ContainerProps {
4
- children: React.ReactNode;
5
- size?: TailwindMaxWidth;
6
- className?: string;
7
- }
8
- export declare const Container: React.FC<ContainerProps>;
@@ -1,6 +0,0 @@
1
- import { DividerProps as AntdDividerProps } from 'antd';
2
- import { ReactNode } from 'react';
3
- export interface DividerProps extends AntdDividerProps {
4
- children?: ReactNode | string;
5
- }
6
- export declare const Divider: ({ children, ...rest }: DividerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { DrawerProps as AntdDrawerProps } from 'antd';
3
- export interface DrawerProps extends AntdDrawerProps {
4
- children?: ReactNode;
5
- onSubmit?: (values: any) => void;
6
- }
7
- export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +0,0 @@
1
- import { DropdownProps as DropdownPropsAntd } from 'antd';
2
- import { DropdownButtonType as DropdownButtonTypeAntd, DropdownButtonProps as DropdownButtonPropsAntd } from 'antd/es/dropdown';
3
- type BaseProps = {
4
- containerClassName?: string;
5
- dropdownClassName?: string;
6
- };
7
- export type DropdownButtonType = DropdownButtonTypeAntd;
8
- export type DropdownButtonProps = DropdownButtonPropsAntd;
9
- export type DropdownProps = DropdownPropsAntd;
10
- export type DropdownPropsUnion = BaseProps & DropdownProps;
11
- export declare const Dropdown: (props: DropdownPropsUnion) => import("react/jsx-runtime").JSX.Element;
12
- export {};
@@ -1,3 +0,0 @@
1
- import { EmptyProps as AntdEmptyProps } from 'antd';
2
- export type EmptyProps = AntdEmptyProps;
3
- export declare const Empty: React.FC<EmptyProps>;
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface ErrorMessageProps {
3
- errorMessage?: string;
4
- isTouched?: boolean;
5
- isSubmitted?: boolean;
6
- }
7
- export declare const ErrorMessage: React.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => import("react/jsx-runtime").JSX.Element | null>;
@@ -1,9 +0,0 @@
1
- import { FlexProps as FlexPropsAntd } from 'antd';
2
- type BaseProps = {
3
- containerClassName?: string;
4
- flexClassName?: string;
5
- };
6
- export type FlexProps = FlexPropsAntd;
7
- export type FlexPropsUnion = BaseProps & FlexProps;
8
- export declare const Flex: (props: FlexPropsUnion) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,2 +0,0 @@
1
- declare const Footer: () => import("react/jsx-runtime").JSX.Element;
2
- export default Footer;
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { MenuType } from './Sidebar';
3
- export interface HeadingProps {
4
- rightContent?: ReactNode;
5
- children?: ReactNode;
6
- noBreadcum?: boolean;
7
- classNameWrapHeading?: string;
8
- menu: Array<MenuType>;
9
- }
10
- export declare const Heading: (props: HeadingProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { ImageProps } from 'antd';
2
- export declare const Image: React.FC<ImageProps>;
@@ -1,5 +0,0 @@
1
- export interface LabelProps {
2
- label: string;
3
- required?: boolean;
4
- }
5
- export declare const Label: ({ label, required }: LabelProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { default as React } from 'react';
2
- import { BasicProps as AntdBasicProps } from 'antd/es/layout/layout';
3
- type BaseProps = {
4
- layoutClassName?: string;
5
- };
6
- export type LayoutProps = BaseProps & AntdBasicProps;
7
- export declare const Layout: React.FC<LayoutProps> & {
8
- Header: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
9
- Footer: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
10
- Content: React.ForwardRefExoticComponent<AntdBasicProps & React.RefAttributes<HTMLElement>>;
11
- Sider: React.ForwardRefExoticComponent<import('antd/es/layout/Sider').SiderProps & React.RefAttributes<HTMLDivElement>>;
12
- _InternalSiderContext: React.Context<import('antd/es/layout/Sider').SiderContextProps>;
13
- };
14
- export {};
@@ -1,22 +0,0 @@
1
- import { FC } from 'react';
2
- import { MenuProps as AntdMenuProps, MenuItemProps as AntdMenuItemProps, SubMenuProps as AntdSubMenuProps } from 'antd/es/menu';
3
- type ExtraProps = {
4
- containerClassName?: string;
5
- menuClassName?: string;
6
- };
7
- export type MenuProps = AntdMenuProps;
8
- export type MenuItemProps = AntdMenuItemProps;
9
- export type SubMenuProps = AntdSubMenuProps;
10
- export type MenuComponentProps = ExtraProps & MenuProps;
11
- declare const MenuItem: FC<MenuItemProps>;
12
- declare const SubMenu: FC<SubMenuProps>;
13
- declare const Divider: FC<import('antd/es/menu').MenuDividerProps>;
14
- declare const ItemGroup: import('react').ForwardRefExoticComponent<Omit<import('rc-menu/lib/MenuItemGroup').MenuItemGroupProps, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
15
- type CompoundedMenu = FC<MenuComponentProps> & {
16
- Item: typeof MenuItem;
17
- SubMenu: typeof SubMenu;
18
- Divider: typeof Divider;
19
- ItemGroup: typeof ItemGroup;
20
- };
21
- export declare const Menu: CompoundedMenu;
22
- export {};
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { ModalProps as ModalPropsAntd } from 'antd';
3
- export interface ModalProps extends ModalPropsAntd {
4
- children?: ReactNode;
5
- }
6
- export declare const Modal: ({ children, ...rest }: ModalProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export interface PageNotFoundProps {
2
- path?: string;
3
- }
4
- export declare const PageNotFound: ({ path }: PageNotFoundProps) => import("react/jsx-runtime").JSX.Element;