@pnkx-lib/ui 1.9.105 → 1.9.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/es/chunks/{AntdIcon-CwSrIOy0.js → AntdIcon-z4k2QiG_.js} +30 -44
- package/es/chunks/{Switch-CCKfNjFl.js → Switch-DCc6-8ks.js} +1 -1
- package/es/chunks/{index-DKHfddsx.js → index-B65Odp7H.js} +103 -250
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +2 -2
- package/types/fields.d.ts +13 -13
- package/types/index.d.ts +51 -72
- package/types/ui.d.ts +39 -60
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/AntdIcon-
|
2
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-
|
1
|
+
export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/AntdIcon-z4k2QiG_.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-DCc6-8ks.js';
|
package/es/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb,
|
2
|
-
export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/AntdIcon-
|
1
|
+
export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a5 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, W as Watermark, t as typeColorMap } from './chunks/index-B65Odp7H.js';
|
2
|
+
export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/AntdIcon-z4k2QiG_.js';
|
3
3
|
import 'react-router';
|
4
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-
|
4
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DCc6-8ks.js';
|
5
5
|
export { u as useToast } from './chunks/useToast-DL7nQTK1.js';
|
6
6
|
export { u as useMessage } from './chunks/useMessage-CADDGtSx.js';
|
package/es/ui/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb,
|
2
|
-
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-
|
1
|
+
export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a5 as BulkActions, B as Button, C as CascaderField, X as CategoryStatus, f as Col, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 as PAGE_SIZE, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, a1 as SORT_BY, a2 as SORT_DESC, Z as START_PAGE, _ as START_PAGE_SIZE, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, a3 as TypeActionRowTable, a4 as TypeBulkActions, W as Watermark, t as typeColorMap } from '../chunks/index-B65Odp7H.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-z4k2QiG_.js';
|
3
3
|
import 'react-router';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pnkx-lib/ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.9.
|
4
|
+
"version": "1.9.106",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./es/index.js",
|
7
7
|
"module": "./es/index.js",
|
@@ -103,7 +103,7 @@
|
|
103
103
|
"@headlessui/react": "^2.2.2",
|
104
104
|
"@heroicons/react": "^2.2.0",
|
105
105
|
"@hookform/resolvers": "^5.0.1",
|
106
|
-
"@pnkx-lib/core": "^1.1.
|
106
|
+
"@pnkx-lib/core": "^1.1.7",
|
107
107
|
"@tailwindcss/cli": "^4.1.6",
|
108
108
|
"@tinymce/tinymce-react": "^6.0.0",
|
109
109
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
package/types/fields.d.ts
CHANGED
@@ -6,8 +6,8 @@ import { Dayjs } from 'dayjs';
|
|
6
6
|
import { default as default_2 } from 'react';
|
7
7
|
import { IAllProps } from '@tinymce/tinymce-react';
|
8
8
|
import { InputProps as InputProps_2 } from 'antd';
|
9
|
-
import { JSX
|
10
|
-
import { JSX as
|
9
|
+
import { JSX } from 'react/jsx-runtime';
|
10
|
+
import { JSX as JSX_2 } from 'react';
|
11
11
|
import { RadioGroupProps } from 'antd';
|
12
12
|
import { RangePickerProps } from 'antd/es/date-picker';
|
13
13
|
import * as React_2 from 'react';
|
@@ -20,7 +20,7 @@ import { UploadProps } from 'antd';
|
|
20
20
|
import { UseFormSetValue } from 'react-hook-form';
|
21
21
|
import { UseFormStateReturn } from 'react-hook-form';
|
22
22
|
|
23
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
23
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
24
24
|
|
25
25
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
26
26
|
field?: ControllerRenderProps<any, any>;
|
@@ -53,9 +53,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
53
53
|
size?: TSize;
|
54
54
|
}
|
55
55
|
|
56
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
56
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
57
57
|
|
58
|
-
export declare const Input: (props: InputProps) =>
|
58
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
59
59
|
|
60
60
|
export declare interface InputProps extends InputProps_2 {
|
61
61
|
field?: ControllerRenderProps<any, any>;
|
@@ -73,7 +73,7 @@ export declare interface InputProps extends InputProps_2 {
|
|
73
73
|
}
|
74
74
|
|
75
75
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
76
|
-
render():
|
76
|
+
render(): JSX.Element;
|
77
77
|
}
|
78
78
|
|
79
79
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -91,10 +91,10 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
91
91
|
type?: TInputNumberType;
|
92
92
|
prefix?: string;
|
93
93
|
suffix?: string;
|
94
|
-
helperText?: () =>
|
94
|
+
helperText?: () => JSX_2.Element | null;
|
95
95
|
}
|
96
96
|
|
97
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
97
|
+
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
98
98
|
|
99
99
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
100
100
|
field?: ControllerRenderProps<any, any>;
|
@@ -107,7 +107,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
107
107
|
position?: TPositionRadio;
|
108
108
|
}
|
109
109
|
|
110
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
110
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
111
111
|
|
112
112
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
113
113
|
field?: ControllerRenderProps<any, any>;
|
@@ -119,7 +119,7 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
119
119
|
customStyleDatePicker?: string;
|
120
120
|
}
|
121
121
|
|
122
|
-
export declare const Select: (props: SelectFieldProps) =>
|
122
|
+
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
123
123
|
|
124
124
|
export declare interface SelectFieldProps extends SelectProps {
|
125
125
|
field?: ControllerRenderProps<any, any>;
|
@@ -132,7 +132,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
132
132
|
classNameSelect?: string;
|
133
133
|
}
|
134
134
|
|
135
|
-
export declare const Switch: (props: SwitchProps) =>
|
135
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
136
136
|
|
137
137
|
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
138
138
|
field?: ControllerRenderProps<any, any>;
|
@@ -156,7 +156,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
156
156
|
declare type TInputNumberType = "number" | "money";
|
157
157
|
|
158
158
|
export declare const TinyMCE: {
|
159
|
-
(props: TinyProps):
|
159
|
+
(props: TinyProps): JSX.Element;
|
160
160
|
displayName: string;
|
161
161
|
};
|
162
162
|
|
@@ -180,7 +180,7 @@ declare type TPositionRadio = "before" | "after";
|
|
180
180
|
|
181
181
|
declare type TSize = "small" | "medium" | "large";
|
182
182
|
|
183
|
-
export declare const UploadField: (props: UploadFieldProps) =>
|
183
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
184
184
|
|
185
185
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
186
186
|
field?: ControllerRenderProps<any, any>;
|
package/types/index.d.ts
CHANGED
@@ -43,8 +43,8 @@ import { IAllProps } from '@tinymce/tinymce-react';
|
|
43
43
|
import { ImageProps } from 'antd';
|
44
44
|
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
45
45
|
import { InputProps as InputProps_2 } from 'antd';
|
46
|
-
import { JSX
|
47
|
-
import { JSX as
|
46
|
+
import { JSX } from 'react/jsx-runtime';
|
47
|
+
import { JSX as JSX_2 } from 'react';
|
48
48
|
import { MenuDividerProps } from 'antd/es/menu';
|
49
49
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
50
50
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
@@ -93,10 +93,8 @@ import { TitleProps } from 'antd/es/typography/Title';
|
|
93
93
|
import { TooltipProps as TooltipProps_2 } from 'antd';
|
94
94
|
import { TourProps as TourProps_2 } from 'antd';
|
95
95
|
import { TreeProps as TreeProps_2 } from 'antd';
|
96
|
-
import { TypeActionRowTable as TypeActionRowTable_2 } from '
|
97
|
-
import { TypeBulkActions as TypeBulkActions_2 } from '
|
98
|
-
import { TypeStatusTable as TypeStatusTable_2 } from '../../../../../../../../../../../src/constants';
|
99
|
-
import { TypeStatusTable as TypeStatusTable_3 } from '../../../../../../../../../../../../../src/components/ui';
|
96
|
+
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../../src/constants/table';
|
97
|
+
import { TypeBulkActions as TypeBulkActions_2 } from '../../../../../../../../../../../../src/constants';
|
100
98
|
import { UploadFile } from 'antd';
|
101
99
|
import { UploadProps } from 'antd';
|
102
100
|
import { UseFormReset } from 'react-hook-form';
|
@@ -105,7 +103,7 @@ import { UseFormSetValue } from 'react-hook-form';
|
|
105
103
|
import { UseFormStateReturn } from 'react-hook-form';
|
106
104
|
import { WatermarkProps } from 'antd';
|
107
105
|
|
108
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) =>
|
106
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
|
109
107
|
|
110
108
|
export declare interface ActionRowTableProps {
|
111
109
|
type: TypeActionRowTable_2;
|
@@ -125,7 +123,7 @@ export declare const Anchor: typeof Anchor_2 & {
|
|
125
123
|
|
126
124
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
127
125
|
|
128
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
126
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
129
127
|
|
130
128
|
export declare interface AppfixProps extends AffixProps {
|
131
129
|
children: default_2.ReactNode;
|
@@ -135,7 +133,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
135
133
|
|
136
134
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
137
135
|
|
138
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
136
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
139
137
|
|
140
138
|
export declare interface BadgeProps extends BadgeProps_2 {
|
141
139
|
type?: "error" | "info" | "success" | "warning";
|
@@ -205,7 +203,7 @@ declare type BaseProps_9 = {
|
|
205
203
|
spaceClassName?: string;
|
206
204
|
};
|
207
205
|
|
208
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
206
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
209
207
|
|
210
208
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
211
209
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -217,22 +215,13 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
217
215
|
|
218
216
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
219
217
|
|
220
|
-
export declare
|
221
|
-
name: string;
|
222
|
-
href: string;
|
223
|
-
submenu: {
|
224
|
-
name: string;
|
225
|
-
href: string;
|
226
|
-
};
|
227
|
-
};
|
228
|
-
|
229
|
-
export declare const BulkActions: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: IBulkActionsProps) => JSX_2.Element;
|
218
|
+
export declare const BulkActions: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: IBulkActionsProps) => JSX.Element;
|
230
219
|
|
231
220
|
export declare const Button: default_2.FC<ButtonProps>;
|
232
221
|
|
233
222
|
export declare type ButtonProps = ButtonProps_2;
|
234
223
|
|
235
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
224
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
236
225
|
|
237
226
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
238
227
|
|
@@ -245,13 +234,13 @@ declare enum CATEGORY_LIST_ENUM {
|
|
245
234
|
DELETE = 5, // đã xóa
|
246
235
|
}
|
247
236
|
|
248
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) =>
|
237
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
|
249
238
|
|
250
239
|
export declare interface CategoryStatusProps {
|
251
240
|
status: number;
|
252
241
|
}
|
253
242
|
|
254
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
243
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
255
244
|
|
256
245
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
257
246
|
field?: ControllerRenderProps<any, any>;
|
@@ -263,7 +252,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
263
252
|
customStyleCheckbox?: string;
|
264
253
|
}
|
265
254
|
|
266
|
-
export declare const Col: (props: ColPropsUnion) =>
|
255
|
+
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
267
256
|
|
268
257
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
269
258
|
}
|
@@ -283,7 +272,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
283
272
|
ItemGroup: typeof ItemGroup;
|
284
273
|
};
|
285
274
|
|
286
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
275
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
|
287
276
|
|
288
277
|
export declare interface ConfirmModalProps extends ModalProps {
|
289
278
|
title: string;
|
@@ -324,9 +313,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
324
313
|
size?: TSize;
|
325
314
|
}
|
326
315
|
|
327
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
316
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
328
317
|
|
329
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
318
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
330
319
|
|
331
320
|
declare const Divider_2: FC<MenuDividerProps>;
|
332
321
|
|
@@ -334,14 +323,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
334
323
|
children?: ReactNode | string;
|
335
324
|
}
|
336
325
|
|
337
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
326
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
|
338
327
|
|
339
328
|
export declare interface DrawerProps extends DrawerProps_2 {
|
340
329
|
children?: ReactNode;
|
341
330
|
onSubmit?: (values: any) => void;
|
342
331
|
}
|
343
332
|
|
344
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
333
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
345
334
|
|
346
335
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
347
336
|
|
@@ -375,7 +364,7 @@ export declare interface ErrorBoundaryState {
|
|
375
364
|
errorInfo: ErrorInfo | null;
|
376
365
|
}
|
377
366
|
|
378
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) =>
|
367
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
379
368
|
|
380
369
|
export declare interface ErrorMessageProps {
|
381
370
|
errorMessage?: string;
|
@@ -388,7 +377,7 @@ declare type ExtraProps = {
|
|
388
377
|
menuClassName?: string;
|
389
378
|
};
|
390
379
|
|
391
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
380
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
392
381
|
|
393
382
|
export declare type FlexProps = FlexProps_2;
|
394
383
|
|
@@ -397,10 +386,10 @@ export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
|
397
386
|
declare interface GroupHeadingButtonItem {
|
398
387
|
label: string;
|
399
388
|
quantity: number;
|
400
|
-
isStatus:
|
389
|
+
isStatus: number;
|
401
390
|
}
|
402
391
|
|
403
|
-
export declare const Heading: (props: HeadingProps) =>
|
392
|
+
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
404
393
|
|
405
394
|
export declare interface HeadingProps {
|
406
395
|
rightContent?: ReactNode;
|
@@ -421,14 +410,14 @@ declare interface IBulkActionsProps {
|
|
421
410
|
handleDelete?: () => void;
|
422
411
|
handleActivate?: () => void;
|
423
412
|
handleInActivate?: () => void;
|
424
|
-
status?:
|
425
|
-
type
|
413
|
+
status?: number;
|
414
|
+
type?: TypeBulkActions_2;
|
426
415
|
}
|
427
416
|
|
428
417
|
declare const Image_2: React.FC<ImageProps>;
|
429
418
|
export { Image_2 as Image }
|
430
419
|
|
431
|
-
export declare const Input: (props: InputProps) =>
|
420
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
432
421
|
|
433
422
|
export declare interface InputProps extends InputProps_2 {
|
434
423
|
field?: ControllerRenderProps<any, any>;
|
@@ -451,7 +440,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
451
440
|
|
452
441
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
453
442
|
|
454
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
443
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
455
444
|
|
456
445
|
export declare interface LabelProps {
|
457
446
|
label: string;
|
@@ -504,7 +493,7 @@ export declare type MenuType = {
|
|
504
493
|
}[];
|
505
494
|
};
|
506
495
|
|
507
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) =>
|
496
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
508
497
|
|
509
498
|
export declare interface ModalProps extends ModalProps_2 {
|
510
499
|
children?: ReactNode;
|
@@ -523,9 +512,9 @@ export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
|
523
512
|
type?: "success" | "error" | "info" | "warning";
|
524
513
|
};
|
525
514
|
|
526
|
-
export declare const PAGE_NUMBER = "
|
515
|
+
export declare const PAGE_NUMBER = "page_number";
|
527
516
|
|
528
|
-
export declare const PAGE_SIZE = "
|
517
|
+
export declare const PAGE_SIZE = "page_size";
|
529
518
|
|
530
519
|
export declare const Pagination: typeof Pagination_2;
|
531
520
|
|
@@ -546,7 +535,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
546
535
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
547
536
|
|
548
537
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
549
|
-
render():
|
538
|
+
render(): JSX.Element;
|
550
539
|
}
|
551
540
|
|
552
541
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -559,13 +548,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
559
548
|
children?: ReactNode;
|
560
549
|
}
|
561
550
|
|
562
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
551
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
|
563
552
|
|
564
553
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
565
554
|
children?: ReactNode;
|
566
555
|
}
|
567
556
|
|
568
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
557
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
569
558
|
|
570
559
|
export declare type PopoverProps = PopoverProps_2;
|
571
560
|
|
@@ -580,14 +569,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
580
569
|
type?: TInputNumberType;
|
581
570
|
prefix?: string;
|
582
571
|
suffix?: string;
|
583
|
-
helperText?: () =>
|
572
|
+
helperText?: () => JSX_2.Element | null;
|
584
573
|
}
|
585
574
|
|
586
575
|
export declare const QRCode: React.FC<QRCodeProps>;
|
587
576
|
|
588
577
|
export declare type QRCodeProps = QRCodeProps_2;
|
589
578
|
|
590
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
579
|
+
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
591
580
|
|
592
581
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
593
582
|
field?: ControllerRenderProps<any, any>;
|
@@ -600,7 +589,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
600
589
|
position?: TPositionRadio;
|
601
590
|
}
|
602
591
|
|
603
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
592
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
604
593
|
|
605
594
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
606
595
|
field?: ControllerRenderProps<any, any>;
|
@@ -614,13 +603,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
614
603
|
|
615
604
|
export declare const Rate: React.FC<RateProps>;
|
616
605
|
|
617
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
606
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
|
618
607
|
|
619
608
|
export declare interface ResultProps extends ResultProps_2 {
|
620
609
|
children?: ReactNode | string;
|
621
610
|
}
|
622
611
|
|
623
|
-
export declare const Row: (props: RowPropsUnion) =>
|
612
|
+
export declare const Row: (props: RowPropsUnion) => JSX.Element;
|
624
613
|
|
625
614
|
declare interface RowCommon {
|
626
615
|
[x: string]: any;
|
@@ -628,7 +617,7 @@ declare interface RowCommon {
|
|
628
617
|
|
629
618
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
630
619
|
|
631
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
620
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
632
621
|
|
633
622
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
634
623
|
renderFilterFields?: (options: {
|
@@ -650,7 +639,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
650
639
|
|
651
640
|
export declare type SegmentedProps = SegmentedProps_2;
|
652
641
|
|
653
|
-
export declare const Select: (props: SelectFieldProps) =>
|
642
|
+
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
654
643
|
|
655
644
|
export declare interface SelectFieldProps extends SelectProps {
|
656
645
|
field?: ControllerRenderProps<any, any>;
|
@@ -663,7 +652,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
663
652
|
classNameSelect?: string;
|
664
653
|
}
|
665
654
|
|
666
|
-
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) =>
|
655
|
+
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX.Element;
|
667
656
|
|
668
657
|
export declare interface SidebarProps {
|
669
658
|
children?: default_2.ReactNode;
|
@@ -679,7 +668,7 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
679
668
|
multiple?: false;
|
680
669
|
};
|
681
670
|
|
682
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
671
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
683
672
|
|
684
673
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
685
674
|
type?: "table" | "form";
|
@@ -694,7 +683,7 @@ export declare const Space: typeof Space_2;
|
|
694
683
|
|
695
684
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
696
685
|
|
697
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
686
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
|
698
687
|
|
699
688
|
export declare const Splitter: typeof Splitter_2;
|
700
689
|
|
@@ -722,7 +711,7 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
722
711
|
|
723
712
|
export declare type SubMenuProps = SubMenuProps_2;
|
724
713
|
|
725
|
-
export declare const Switch: (props: SwitchProps) =>
|
714
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
726
715
|
|
727
716
|
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
728
717
|
field?: ControllerRenderProps<any, any>;
|
@@ -741,7 +730,7 @@ declare type TabItem = {
|
|
741
730
|
disabled?: boolean;
|
742
731
|
};
|
743
732
|
|
744
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, ...rest }: TableCommonProps<T>) =>
|
733
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, menu, groupHeadingButtonItems, showIndexColumn, setFilters, ...rest }: TableCommonProps<T>) => JSX.Element;
|
745
734
|
|
746
735
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
747
736
|
|
@@ -796,7 +785,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
796
785
|
}
|
797
786
|
|
798
787
|
export declare type TFilters = {
|
799
|
-
isStatus?:
|
788
|
+
isStatus?: number;
|
800
789
|
};
|
801
790
|
|
802
791
|
export declare const Timeline: React.FC<TimelineProps>;
|
@@ -808,7 +797,7 @@ declare type TInputNumberType = "number" | "money";
|
|
808
797
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
809
798
|
|
810
799
|
export declare const TinyMCE: {
|
811
|
-
(props: TinyProps):
|
800
|
+
(props: TinyProps): JSX.Element;
|
812
801
|
displayName: string;
|
813
802
|
};
|
814
803
|
|
@@ -878,23 +867,13 @@ export declare enum TypeBulkActions {
|
|
878
867
|
|
879
868
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
880
869
|
|
881
|
-
export declare enum TypeStatusTable {
|
882
|
-
ALL = "ALL",// Tất cả
|
883
|
-
DRAFT = 0,// Tạo mới
|
884
|
-
WAITING_APPROVAL = 1,// Chờ duyệt
|
885
|
-
ACTIVE = 2,// Hoạt động
|
886
|
-
INACTIVE = 3,// Ngưng hoạt động
|
887
|
-
REJECTED = 4,// Từ chối duyệt
|
888
|
-
DELETED = 5
|
889
|
-
}
|
890
|
-
|
891
870
|
export declare const Typography: {
|
892
|
-
Title: (props: TitleProps) =>
|
893
|
-
Paragraph: (props: ParagraphProps) =>
|
894
|
-
Text: (props: TextProps) =>
|
871
|
+
Title: (props: TitleProps) => JSX.Element;
|
872
|
+
Paragraph: (props: ParagraphProps) => JSX.Element;
|
873
|
+
Text: (props: TextProps) => JSX.Element;
|
895
874
|
};
|
896
875
|
|
897
|
-
export declare const UploadField: (props: UploadFieldProps) =>
|
876
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
898
877
|
|
899
878
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
900
879
|
field?: ControllerRenderProps<any, any>;
|
@@ -919,6 +898,6 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
919
898
|
warning(props?: OptionalArgsToast): void;
|
920
899
|
};
|
921
900
|
|
922
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
901
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
|
923
902
|
|
924
903
|
export { }
|