@pnkx-lib/ui 1.9.206 → 1.9.208

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 +1 -1
  2. package/types/components/fields/CascaderField.d.ts +14 -0
  3. package/types/components/fields/Checkbox.d.ts +12 -0
  4. package/types/components/fields/DatePicker.d.ts +21 -0
  5. package/types/{DateRangePicker.d.ts → components/fields/DateRangePicker.d.ts} +13 -19
  6. package/types/components/fields/Input.d.ts +33 -0
  7. package/types/components/fields/PnkxField.d.ts +11 -0
  8. package/types/components/fields/Radio.d.ts +19 -0
  9. package/types/components/fields/Select.d.ts +13 -0
  10. package/types/{SliderRanger.d.ts → components/fields/SliderRanger.d.ts} +12 -18
  11. package/types/components/fields/SliderSingle.d.ts +12 -0
  12. package/types/components/fields/Switch.d.ts +12 -0
  13. package/types/components/fields/Textarea.d.ts +12 -0
  14. package/types/components/fields/TimePicker.d.ts +12 -0
  15. package/types/components/fields/TimeRangePicker.d.ts +12 -0
  16. package/types/{TinyMCE.d.ts → components/fields/TinyMCE.d.ts} +16 -22
  17. package/types/components/fields/Upload.d.ts +15 -0
  18. package/types/components/fields/index.d.ts +15 -0
  19. package/types/components/hooks/index.d.ts +2 -0
  20. package/types/components/hooks/useBreadcrumb.d.ts +6 -0
  21. package/types/components/hooks/useDebounce.d.ts +1 -0
  22. package/types/{useMessage.d.ts → components/hooks/useMessage.d.ts} +5 -9
  23. package/types/{useToast.d.ts → components/hooks/useToast.d.ts} +12 -16
  24. package/types/components/icons/ActivateIcon.d.ts +6 -0
  25. package/types/components/icons/AllowClearIcon.d.ts +2 -0
  26. package/types/components/icons/ApprovalIcon.d.ts +6 -0
  27. package/types/components/icons/CancelApprovalIcon.d.ts +6 -0
  28. package/types/components/icons/CancelSendApprovalIcon.d.ts +6 -0
  29. package/types/components/icons/DeleteIcon.d.ts +6 -0
  30. package/types/components/icons/Dollar.d.ts +3 -0
  31. package/types/components/icons/DragIcon.d.ts +6 -0
  32. package/types/components/icons/EditIcon.d.ts +6 -0
  33. package/types/components/icons/ErrorConfirmIcon.d.ts +3 -0
  34. package/types/components/icons/InActivateIcon.d.ts +6 -0
  35. package/types/components/icons/InfoConfirmIcon.d.ts +3 -0
  36. package/types/components/icons/MoreIcon.d.ts +6 -0
  37. package/types/components/icons/PlusIcon.d.ts +6 -0
  38. package/types/components/icons/RefuseApprovalIcon.d.ts +6 -0
  39. package/types/components/icons/RestoreIcon.d.ts +6 -0
  40. package/types/components/icons/SearchAdvanceIcon.d.ts +6 -0
  41. package/types/components/icons/SearchIcon.d.ts +2 -0
  42. package/types/components/icons/SendApprovalIcon.d.ts +6 -0
  43. package/types/components/icons/SettingIcon.d.ts +1 -0
  44. package/types/components/icons/SuccessIcon.d.ts +3 -0
  45. package/types/components/icons/TrashCanIcon.d.ts +2 -0
  46. package/types/components/icons/WaitingApprovalIcon.d.ts +6 -0
  47. package/types/components/icons/WarningConfirmIcon.d.ts +3 -0
  48. package/types/components/icons/index.d.ts +18 -0
  49. package/types/components/index.d.ts +3 -0
  50. package/types/components/ui/Alert.d.ts +3 -0
  51. package/types/components/ui/Anchor.d.ts +9 -0
  52. package/types/components/ui/Appfix.d.ts +6 -0
  53. package/types/components/ui/AutoComplete.d.ts +3 -0
  54. package/types/{Badge.d.ts → components/ui/Badge.d.ts} +8 -14
  55. package/types/{BottomPagination.d.ts → components/ui/BottomPagination.d.ts} +8 -12
  56. package/types/components/ui/Breadcrumb.d.ts +16 -0
  57. package/types/components/ui/BreadcrumbHeading.d.ts +8 -0
  58. package/types/components/ui/BulkActions/BulkAction.d.ts +11 -0
  59. package/types/components/ui/BulkActions/DropListActions.d.ts +9 -0
  60. package/types/components/ui/BulkActions/index.d.ts +22 -0
  61. package/types/components/ui/Button.d.ts +4 -0
  62. package/types/components/ui/Card.d.ts +3 -0
  63. package/types/components/ui/Cascader.d.ts +14 -0
  64. package/types/{CategoryStatus.d.ts → components/ui/CategoryStatus.d.ts} +20 -27
  65. package/types/components/ui/Col.d.ts +11 -0
  66. package/types/components/ui/Collapse.d.ts +3 -0
  67. package/types/components/ui/ColorPicker.d.ts +3 -0
  68. package/types/components/ui/ConfigProvider.d.ts +4 -0
  69. package/types/components/ui/ConfirmModal.d.ts +12 -0
  70. package/types/components/ui/Container.d.ts +8 -0
  71. package/types/components/ui/Divider.d.ts +6 -0
  72. package/types/components/ui/Drawer.d.ts +7 -0
  73. package/types/components/ui/Dropdown.d.ts +12 -0
  74. package/types/components/ui/Empty.d.ts +3 -0
  75. package/types/{ErrorBoundary.d.ts → components/ui/ErrorBoundary.d.ts} +18 -26
  76. package/types/components/ui/ErrorMessage.d.ts +7 -0
  77. package/types/components/ui/Flex.d.ts +9 -0
  78. package/types/components/ui/Footer.d.ts +2 -0
  79. package/types/components/ui/Heading.d.ts +10 -0
  80. package/types/components/ui/Image.d.ts +2 -0
  81. package/types/components/ui/Label.d.ts +5 -0
  82. package/types/components/ui/Layout.d.ts +14 -0
  83. package/types/components/ui/Menu.d.ts +22 -0
  84. package/types/components/ui/Modal.d.ts +6 -0
  85. package/types/components/ui/PageNotFound.d.ts +4 -0
  86. package/types/components/ui/Pagination.d.ts +12 -0
  87. package/types/components/ui/Popconfirm.d.ts +6 -0
  88. package/types/components/ui/Popover.d.ts +9 -0
  89. package/types/components/ui/QRCode.d.ts +3 -0
  90. package/types/components/ui/Rate.d.ts +2 -0
  91. package/types/components/ui/Result.d.ts +6 -0
  92. package/types/components/ui/Row.d.ts +7 -0
  93. package/types/{SearchFilterForm.d.ts → components/ui/SearchFilterForm.d.ts} +18 -29
  94. package/types/components/ui/Segmented.d.ts +3 -0
  95. package/types/components/ui/Sidebar.d.ts +22 -0
  96. package/types/components/ui/Skeleton.d.ts +6 -0
  97. package/types/components/ui/Space.d.ts +8 -0
  98. package/types/components/ui/Spin.d.ts +6 -0
  99. package/types/components/ui/Splitter.d.ts +8 -0
  100. package/types/components/ui/Statistic.d.ts +3 -0
  101. package/types/components/ui/Steps.d.ts +12 -0
  102. package/types/components/ui/Table/ActionRowTable/index.d.ts +10 -0
  103. package/types/components/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
  104. package/types/components/ui/Table/HeadingTable/index.d.ts +16 -0
  105. package/types/components/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
  106. package/types/components/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
  107. package/types/components/ui/Table/SettingTable/SortableItem.d.ts +6 -0
  108. package/types/components/ui/Table/SettingTable/index.d.ts +11 -0
  109. package/types/components/ui/Table/index.d.ts +47 -0
  110. package/types/components/ui/Tabs.d.ts +14 -0
  111. package/types/{Tag.d.ts → components/ui/Tag.d.ts} +5 -9
  112. package/types/components/ui/Timeline.d.ts +3 -0
  113. package/types/components/ui/Tooltip.d.ts +4 -0
  114. package/types/components/ui/Tour.d.ts +3 -0
  115. package/types/components/ui/Tree.d.ts +3 -0
  116. package/types/components/ui/Typography.d.ts +8 -0
  117. package/types/components/ui/UploadImage.d.ts +6 -0
  118. package/types/{Watermark.d.ts → components/ui/Watermark.d.ts} +2 -6
  119. package/types/components/ui/index.d.ts +60 -0
  120. package/types/constants/common.d.ts +1 -0
  121. package/types/constants/table.d.ts +31 -0
  122. package/types/helpers/common.d.ts +1 -0
  123. package/types/index.d.ts +2 -42
  124. package/types/Alert.d.ts +0 -7
  125. package/types/Anchor.d.ts +0 -13
  126. package/types/Appfix.d.ts +0 -11
  127. package/types/AutoComplete.d.ts +0 -7
  128. package/types/Breadcrumb.d.ts +0 -27
  129. package/types/BreadcrumbHeading.d.ts +0 -26
  130. package/types/Button.d.ts +0 -8
  131. package/types/Card.d.ts +0 -7
  132. package/types/Cascader.d.ts +0 -22
  133. package/types/CascaderField.d.ts +0 -20
  134. package/types/Checkbox.d.ts +0 -18
  135. package/types/Col.d.ts +0 -19
  136. package/types/Collapse.d.ts +0 -7
  137. package/types/ColorPicker.d.ts +0 -7
  138. package/types/ConfigProvider.d.ts +0 -8
  139. package/types/ConfirmModal.d.ts +0 -23
  140. package/types/Container.d.ts +0 -13
  141. package/types/DatePicker.d.ts +0 -29
  142. package/types/Divider.d.ts +0 -11
  143. package/types/Drawer.d.ts +0 -12
  144. package/types/Dropdown.d.ts +0 -21
  145. package/types/Empty.d.ts +0 -7
  146. package/types/ErrorMessage.d.ts +0 -12
  147. package/types/Flex.d.ts +0 -15
  148. package/types/Footer.d.ts +0 -6
  149. package/types/Heading.d.ts +0 -27
  150. package/types/Image.d.ts +0 -6
  151. package/types/Input.d.ts +0 -42
  152. package/types/Label.d.ts +0 -10
  153. package/types/Layout.d.ts +0 -20
  154. package/types/Menu.d.ts +0 -40
  155. package/types/Modal.d.ts +0 -11
  156. package/types/PageNotFound.d.ts +0 -9
  157. package/types/Pagination.d.ts +0 -22
  158. package/types/PnkxField.d.ts +0 -17
  159. package/types/Popconfirm.d.ts +0 -11
  160. package/types/Popover.d.ts +0 -15
  161. package/types/QRCode.d.ts +0 -7
  162. package/types/Radio.d.ts +0 -26
  163. package/types/Rate.d.ts +0 -5
  164. package/types/Result.d.ts +0 -11
  165. package/types/Row.d.ts +0 -12
  166. package/types/Segmented.d.ts +0 -7
  167. package/types/Select.d.ts +0 -20
  168. package/types/Sidebar.d.ts +0 -29
  169. package/types/Skeleton.d.ts +0 -11
  170. package/types/SliderSingle.d.ts +0 -18
  171. package/types/Space.d.ts +0 -13
  172. package/types/Spin.d.ts +0 -11
  173. package/types/Splitter.d.ts +0 -13
  174. package/types/Statistic.d.ts +0 -7
  175. package/types/Steps.d.ts +0 -20
  176. package/types/Switch.d.ts +0 -18
  177. package/types/Tabs.d.ts +0 -18
  178. package/types/Textarea.d.ts +0 -17
  179. package/types/TimePicker.d.ts +0 -16
  180. package/types/TimeRangePicker.d.ts +0 -16
  181. package/types/Timeline.d.ts +0 -7
  182. package/types/Tooltip.d.ts +0 -8
  183. package/types/Tour.d.ts +0 -7
  184. package/types/Tree.d.ts +0 -7
  185. package/types/Typography.d.ts +0 -12
  186. package/types/Upload.d.ts +0 -23
  187. package/types/UploadImage.d.ts +0 -9
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.9.206",
4
+ "version": "1.9.208",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -0,0 +1,14 @@
1
+ import { CascaderProps as CascaderPropsAntd } from 'antd';
2
+ import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
3
+ interface CascaderFieldProps extends CascaderPropsAntd {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ setValue?: UseFormSetValue<any>;
7
+ label?: string;
8
+ required?: boolean;
9
+ afterOnChange?: (value: any) => void;
10
+ classNameContainer?: string;
11
+ classNameCascader?: string;
12
+ }
13
+ export declare const Cascader: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
14
+ export {};
@@ -0,0 +1,12 @@
1
+ import { CheckboxProps as CheckboxAntdProps } from 'antd';
2
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
+ export interface CheckboxProps extends Omit<CheckboxAntdProps, "onChange" | "checked"> {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ label?: string;
7
+ required?: boolean;
8
+ afterOnChange?: (checked: boolean) => void;
9
+ customStyleContainer?: string;
10
+ customStyleCheckbox?: string;
11
+ }
12
+ export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { ReactDatePickerProps } from 'react-datepicker';
3
+ import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
4
+ export type TSize = "small" | "medium" | "large";
5
+ export interface DatePickerProps extends Omit<ReactDatePickerProps, "onChange"> {
6
+ field?: ControllerRenderProps<any, any>;
7
+ formState?: UseFormStateReturn<any>;
8
+ setValue?: UseFormSetValue<any>;
9
+ classNameDatepicker?: string;
10
+ disabledInputChange?: boolean;
11
+ required?: boolean;
12
+ dateFormat?: string | string[];
13
+ placeholder?: string;
14
+ label?: string;
15
+ maxDate?: Date;
16
+ showTimeSelect?: boolean;
17
+ customOnChange?: (date: any, event: React.SyntheticEvent<any>) => void;
18
+ customValue?: Date | null;
19
+ size?: TSize;
20
+ }
21
+ export declare const DatePicker: (props: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,13 @@
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 { }
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;
@@ -0,0 +1,33 @@
1
+ import { default as React, JSX } from 'react';
2
+ import { InputProps as InputPropsAntd } from 'antd';
3
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
4
+ type CustomInputTypeAttribute = React.HTMLInputTypeAttribute | "money";
5
+ type TInputNumberType = "number" | "money";
6
+ export interface InputProps extends InputPropsAntd {
7
+ field?: ControllerRenderProps<any, any>;
8
+ formState?: UseFormStateReturn<any>;
9
+ label?: string;
10
+ classNameInput?: string;
11
+ type?: CustomInputTypeAttribute;
12
+ afterOnChange?: (value: number | string | null) => void;
13
+ iconStartInput?: React.ReactNode;
14
+ iconEndInput?: React.ReactNode;
15
+ allowNegative?: boolean;
16
+ decimalScale?: number;
17
+ prefix?: string;
18
+ suffix?: string;
19
+ contentTooltip?: string;
20
+ }
21
+ export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
22
+ export interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
23
+ onChange?: (event: any) => void;
24
+ afterOnChange?: (value: string | number) => void;
25
+ value?: string;
26
+ name?: string;
27
+ ref: any;
28
+ type?: TInputNumberType;
29
+ prefix?: string;
30
+ suffix?: string;
31
+ helperText?: () => JSX.Element | null;
32
+ }
33
+ export {};
@@ -0,0 +1,11 @@
1
+ import { Control } from 'react-hook-form';
2
+ import * as React from "react";
3
+ export type ComponentPropsType<TComponent> = TComponent extends React.ComponentType<infer P> ? P : never;
4
+ export type PnkxFieldProps<TComponent extends React.ComponentType<any>> = {
5
+ control: Control<any, any>;
6
+ name: string;
7
+ component: TComponent;
8
+ } & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
9
+ export declare class PnkxField<TComponent extends React.ComponentType<any>> extends React.PureComponent<PnkxFieldProps<TComponent>> {
10
+ render(): import("react/jsx-runtime").JSX.Element;
11
+ }
@@ -0,0 +1,19 @@
1
+ import { RadioGroupProps } from 'antd';
2
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
+ type TOptionGRadio = {
4
+ label: string;
5
+ value: string | number;
6
+ };
7
+ type TPositionRadio = "before" | "after";
8
+ export interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
9
+ field?: ControllerRenderProps<any, any>;
10
+ formState?: UseFormStateReturn<any>;
11
+ customStyleRadioGroup?: string;
12
+ customStyleRadio?: string;
13
+ customStyleWrap?: string;
14
+ afterOnChange?: (value: any) => void;
15
+ options: TOptionGRadio[];
16
+ position?: TPositionRadio;
17
+ }
18
+ export declare const RadioGroup: (props: RadioProps) => import("react/jsx-runtime").JSX.Element;
19
+ export {};
@@ -0,0 +1,13 @@
1
+ import { SelectProps } from 'antd';
2
+ import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
3
+ export interface SelectFieldProps extends SelectProps {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ setValue?: UseFormSetValue<any>;
7
+ label?: string;
8
+ required?: boolean;
9
+ afterOnChange?: (value: any) => void;
10
+ classNameContainer?: string;
11
+ classNameSelect?: string;
12
+ }
13
+ export declare const Select: (props: SelectFieldProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,12 @@
1
- import { ControllerRenderProps } from 'react-hook-form';
2
- import { JSX } from 'react/jsx-runtime';
3
- import { SliderRangeProps } from 'antd/es/slider';
4
- import { UseFormStateReturn } from 'react-hook-form';
5
-
6
- export declare const SliderRange: (props: SliderRangesProps) => JSX.Element;
7
-
8
- export declare interface SliderRangesProps extends Omit<SliderRangeProps, "onChange"> {
9
- field?: ControllerRenderProps<any, any>;
10
- formState?: UseFormStateReturn<any>;
11
- label?: string;
12
- required?: boolean;
13
- afterOnChange?: (data: number[]) => void;
14
- customStyleContainer?: string;
15
- customStyleSlider?: string;
16
- }
17
-
18
- export { }
1
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
2
+ import { SliderRangeProps } from 'antd/es/slider';
3
+ export interface SliderRangesProps extends Omit<SliderRangeProps, "onChange"> {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ label?: string;
7
+ required?: boolean;
8
+ afterOnChange?: (data: number[]) => void;
9
+ customStyleContainer?: string;
10
+ customStyleSlider?: string;
11
+ }
12
+ export declare const SliderRange: (props: SliderRangesProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { SliderSingleProps as SliderSingleAntdProps } from 'antd';
2
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
+ export interface SliderProps extends Omit<SliderSingleAntdProps, "onChange"> {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ label?: string;
7
+ required?: boolean;
8
+ afterOnChange?: (data: number) => void;
9
+ customStyleContainer?: string;
10
+ customStyleSlider?: string;
11
+ }
12
+ export declare const SliderSingle: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
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;
@@ -0,0 +1,12 @@
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>>;
@@ -0,0 +1,12 @@
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 {};
@@ -0,0 +1,12 @@
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,22 +1,16 @@
1
- import { ControllerRenderProps } from 'react-hook-form';
2
- import { IAllProps } from '@tinymce/tinymce-react';
3
- import { JSX } from 'react/jsx-runtime';
4
- import { UseFormStateReturn } from 'react-hook-form';
5
-
6
- export declare const TinyMCE: {
7
- (props: TinyProps): JSX.Element;
8
- displayName: string;
9
- };
10
-
11
- export declare interface TinyProps extends IAllProps {
12
- height?: number | string;
13
- openHidenMenubar?: boolean;
14
- required?: boolean;
15
- field?: ControllerRenderProps<any, any>;
16
- formState?: UseFormStateReturn<any>;
17
- label?: string;
18
- customStyleLabel?: string;
19
- text_patterns?: any;
20
- }
21
-
22
- export { }
1
+ import { IAllProps } from '@tinymce/tinymce-react';
2
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
+ export interface TinyProps extends IAllProps {
4
+ height?: number | string;
5
+ openHidenMenubar?: boolean;
6
+ required?: boolean;
7
+ field?: ControllerRenderProps<any, any>;
8
+ formState?: UseFormStateReturn<any>;
9
+ label?: string;
10
+ customStyleLabel?: string;
11
+ text_patterns?: any;
12
+ }
13
+ export declare const TinyMCE: {
14
+ (props: TinyProps): import("react/jsx-runtime").JSX.Element;
15
+ displayName: string;
16
+ };
@@ -0,0 +1,15 @@
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;
@@ -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;