@pnkx-lib/ui 1.9.96 → 1.9.98
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/es/chunks/{AntdIcon-sydRpDMU.js → AntdIcon-CwSrIOy0.js} +1 -1
- package/es/chunks/{Switch-Ch-t7bqG.js → Switch-CCKfNjFl.js} +1 -1
- package/es/chunks/{index-BMH0bSgU.js → index-PFVUhcTr.js} +162 -97
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +1 -1
- package/types/fields.d.ts +13 -13
- package/types/index.d.ts +88 -59
- package/types/ui.d.ts +76 -47
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-CwSrIOy0.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-CCKfNjFl.js';
|
package/es/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export {
|
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-PFVUhcTr.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-CwSrIOy0.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-CCKfNjFl.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 {
|
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-PFVUhcTr.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-CwSrIOy0.js';
|
3
3
|
import 'react-router';
|
package/package.json
CHANGED
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 } from 'react/jsx-runtime';
|
10
|
-
import { JSX as
|
9
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
10
|
+
import { JSX as JSX_3 } 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_2.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_2.Element;
|
57
57
|
|
58
|
-
export declare const Input: (props: InputProps) =>
|
58
|
+
export declare const Input: (props: InputProps) => JSX_2.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_2.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_3.Element | null;
|
95
95
|
}
|
96
96
|
|
97
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
97
|
+
export declare const RadioGroup: (props: RadioProps) => JSX_2.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_2.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_2.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_2.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_2.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_2.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 } from 'react/jsx-runtime';
|
47
|
-
import { JSX as
|
46
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
47
|
+
import { JSX as JSX_3 } 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';
|
@@ -94,6 +94,7 @@ 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
96
|
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../src/constants/table';
|
97
|
+
import { TypeBulkActions as TypeBulkActions_2 } from '../../../../../../../../../../../src/constants';
|
97
98
|
import { UploadFile } from 'antd';
|
98
99
|
import { UploadProps } from 'antd';
|
99
100
|
import { UseFormReset } from 'react-hook-form';
|
@@ -102,7 +103,7 @@ import { UseFormSetValue } from 'react-hook-form';
|
|
102
103
|
import { UseFormStateReturn } from 'react-hook-form';
|
103
104
|
import { WatermarkProps } from 'antd';
|
104
105
|
|
105
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) =>
|
106
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
|
106
107
|
|
107
108
|
export declare interface ActionRowTableProps {
|
108
109
|
type: TypeActionRowTable_2;
|
@@ -122,7 +123,7 @@ export declare const Anchor: typeof Anchor_2 & {
|
|
122
123
|
|
123
124
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
124
125
|
|
125
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
126
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
|
126
127
|
|
127
128
|
export declare interface AppfixProps extends AffixProps {
|
128
129
|
children: default_2.ReactNode;
|
@@ -132,7 +133,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
132
133
|
|
133
134
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
134
135
|
|
135
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
136
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
|
136
137
|
|
137
138
|
export declare interface BadgeProps extends BadgeProps_2 {
|
138
139
|
type?: "error" | "info" | "success" | "warning";
|
@@ -202,7 +203,7 @@ declare type BaseProps_9 = {
|
|
202
203
|
spaceClassName?: string;
|
203
204
|
};
|
204
205
|
|
205
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
206
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
|
206
207
|
|
207
208
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
208
209
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -223,37 +224,32 @@ export declare type BreadcrumbType = {
|
|
223
224
|
};
|
224
225
|
};
|
225
226
|
|
226
|
-
export declare const
|
227
|
-
|
228
|
-
export declare interface BulkActionProps {
|
229
|
-
quantity?: number;
|
230
|
-
handleRestore?: () => void;
|
231
|
-
handleSendApproval?: () => void;
|
232
|
-
handleCancelSendApproval?: () => void;
|
233
|
-
handleRefuseApproval?: () => void;
|
234
|
-
handleApproval?: () => void;
|
235
|
-
handleCancelApproval?: () => void;
|
236
|
-
handleDelete?: () => void;
|
237
|
-
handleActivate?: () => void;
|
238
|
-
handleInActivate?: () => void;
|
239
|
-
status?: number;
|
240
|
-
}
|
227
|
+
export declare const BulkActions: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, type, }: IBulkActionsProps) => JSX_2.Element;
|
241
228
|
|
242
229
|
export declare const Button: default_2.FC<ButtonProps>;
|
243
230
|
|
244
231
|
export declare type ButtonProps = ButtonProps_2;
|
245
232
|
|
246
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
233
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
|
247
234
|
|
248
235
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
249
236
|
|
250
|
-
|
237
|
+
declare enum CATEGORY_LIST_ENUM {
|
238
|
+
DRAFT = 0, // tạo mới
|
239
|
+
WATING_APPROVAL = 1, // đang chờ duyệt
|
240
|
+
ACTIVE = 2, // hoạt động
|
241
|
+
INACTIVE = 3, // dừng hoạt động
|
242
|
+
REJECT = 4, // từ chối duyệt
|
243
|
+
DELETE = 5, // đã xóa
|
244
|
+
}
|
245
|
+
|
246
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
|
251
247
|
|
252
248
|
export declare interface CategoryStatusProps {
|
253
249
|
status: number;
|
254
250
|
}
|
255
251
|
|
256
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
252
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
|
257
253
|
|
258
254
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
259
255
|
field?: ControllerRenderProps<any, any>;
|
@@ -265,7 +261,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
265
261
|
customStyleCheckbox?: string;
|
266
262
|
}
|
267
263
|
|
268
|
-
export declare const Col: (props: ColPropsUnion) =>
|
264
|
+
export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
|
269
265
|
|
270
266
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
271
267
|
}
|
@@ -285,7 +281,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
285
281
|
ItemGroup: typeof ItemGroup;
|
286
282
|
};
|
287
283
|
|
288
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
284
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
|
289
285
|
|
290
286
|
export declare interface ConfirmModalProps extends ModalProps {
|
291
287
|
title: string;
|
@@ -326,9 +322,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
326
322
|
size?: TSize;
|
327
323
|
}
|
328
324
|
|
329
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
325
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
|
330
326
|
|
331
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
327
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
|
332
328
|
|
333
329
|
declare const Divider_2: FC<MenuDividerProps>;
|
334
330
|
|
@@ -336,14 +332,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
336
332
|
children?: ReactNode | string;
|
337
333
|
}
|
338
334
|
|
339
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
335
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
|
340
336
|
|
341
337
|
export declare interface DrawerProps extends DrawerProps_2 {
|
342
338
|
children?: ReactNode;
|
343
339
|
onSubmit?: (values: any) => void;
|
344
340
|
}
|
345
341
|
|
346
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
342
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
|
347
343
|
|
348
344
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
349
345
|
|
@@ -377,7 +373,7 @@ export declare interface ErrorBoundaryState {
|
|
377
373
|
errorInfo: ErrorInfo | null;
|
378
374
|
}
|
379
375
|
|
380
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) =>
|
376
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
|
381
377
|
|
382
378
|
export declare interface ErrorMessageProps {
|
383
379
|
errorMessage?: string;
|
@@ -390,7 +386,7 @@ declare type ExtraProps = {
|
|
390
386
|
menuClassName?: string;
|
391
387
|
};
|
392
388
|
|
393
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
389
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
|
394
390
|
|
395
391
|
export declare type FlexProps = FlexProps_2;
|
396
392
|
|
@@ -399,10 +395,10 @@ export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
|
399
395
|
declare interface GroupHeadingButtonItem {
|
400
396
|
label: string;
|
401
397
|
quantity: number;
|
402
|
-
|
398
|
+
isStatus: number;
|
403
399
|
}
|
404
400
|
|
405
|
-
export declare const Heading: (props: HeadingProps) =>
|
401
|
+
export declare const Heading: (props: HeadingProps) => JSX_2.Element;
|
406
402
|
|
407
403
|
export declare interface HeadingProps {
|
408
404
|
rightContent?: ReactNode;
|
@@ -412,10 +408,25 @@ export declare interface HeadingProps {
|
|
412
408
|
menu: Array<MenuType>;
|
413
409
|
}
|
414
410
|
|
411
|
+
declare interface IBulkActionsProps {
|
412
|
+
quantity?: number;
|
413
|
+
handleRestore?: () => void;
|
414
|
+
handleSendApproval?: () => void;
|
415
|
+
handleCancelSendApproval?: () => void;
|
416
|
+
handleRefuseApproval?: () => void;
|
417
|
+
handleApproval?: () => void;
|
418
|
+
handleCancelApproval?: () => void;
|
419
|
+
handleDelete?: () => void;
|
420
|
+
handleActivate?: () => void;
|
421
|
+
handleInActivate?: () => void;
|
422
|
+
status?: number;
|
423
|
+
type: TypeBulkActions_2;
|
424
|
+
}
|
425
|
+
|
415
426
|
declare const Image_2: React.FC<ImageProps>;
|
416
427
|
export { Image_2 as Image }
|
417
428
|
|
418
|
-
export declare const Input: (props: InputProps) =>
|
429
|
+
export declare const Input: (props: InputProps) => JSX_2.Element;
|
419
430
|
|
420
431
|
export declare interface InputProps extends InputProps_2 {
|
421
432
|
field?: ControllerRenderProps<any, any>;
|
@@ -438,7 +449,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
438
449
|
|
439
450
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
440
451
|
|
441
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
452
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
|
442
453
|
|
443
454
|
export declare interface LabelProps {
|
444
455
|
label: string;
|
@@ -491,7 +502,7 @@ export declare type MenuType = {
|
|
491
502
|
}[];
|
492
503
|
};
|
493
504
|
|
494
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) =>
|
505
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
|
495
506
|
|
496
507
|
export declare interface ModalProps extends ModalProps_2 {
|
497
508
|
children?: ReactNode;
|
@@ -533,7 +544,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
533
544
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
534
545
|
|
535
546
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
536
|
-
render():
|
547
|
+
render(): JSX_2.Element;
|
537
548
|
}
|
538
549
|
|
539
550
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -546,13 +557,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
546
557
|
children?: ReactNode;
|
547
558
|
}
|
548
559
|
|
549
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
560
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
|
550
561
|
|
551
562
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
552
563
|
children?: ReactNode;
|
553
564
|
}
|
554
565
|
|
555
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
566
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
|
556
567
|
|
557
568
|
export declare type PopoverProps = PopoverProps_2;
|
558
569
|
|
@@ -567,14 +578,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
567
578
|
type?: TInputNumberType;
|
568
579
|
prefix?: string;
|
569
580
|
suffix?: string;
|
570
|
-
helperText?: () =>
|
581
|
+
helperText?: () => JSX_3.Element | null;
|
571
582
|
}
|
572
583
|
|
573
584
|
export declare const QRCode: React.FC<QRCodeProps>;
|
574
585
|
|
575
586
|
export declare type QRCodeProps = QRCodeProps_2;
|
576
587
|
|
577
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
588
|
+
export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
|
578
589
|
|
579
590
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
580
591
|
field?: ControllerRenderProps<any, any>;
|
@@ -587,7 +598,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
587
598
|
position?: TPositionRadio;
|
588
599
|
}
|
589
600
|
|
590
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
601
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
|
591
602
|
|
592
603
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
593
604
|
field?: ControllerRenderProps<any, any>;
|
@@ -601,13 +612,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
601
612
|
|
602
613
|
export declare const Rate: React.FC<RateProps>;
|
603
614
|
|
604
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
615
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
|
605
616
|
|
606
617
|
export declare interface ResultProps extends ResultProps_2 {
|
607
618
|
children?: ReactNode | string;
|
608
619
|
}
|
609
620
|
|
610
|
-
export declare const Row: (props: RowPropsUnion) =>
|
621
|
+
export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
|
611
622
|
|
612
623
|
declare interface RowCommon {
|
613
624
|
[x: string]: any;
|
@@ -615,7 +626,7 @@ declare interface RowCommon {
|
|
615
626
|
|
616
627
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
617
628
|
|
618
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
629
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
|
619
630
|
|
620
631
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
621
632
|
renderFilterFields?: (options: {
|
@@ -637,7 +648,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
637
648
|
|
638
649
|
export declare type SegmentedProps = SegmentedProps_2;
|
639
650
|
|
640
|
-
export declare const Select: (props: SelectFieldProps) =>
|
651
|
+
export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
|
641
652
|
|
642
653
|
export declare interface SelectFieldProps extends SelectProps {
|
643
654
|
field?: ControllerRenderProps<any, any>;
|
@@ -650,7 +661,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
650
661
|
classNameSelect?: string;
|
651
662
|
}
|
652
663
|
|
653
|
-
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) =>
|
664
|
+
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX_2.Element;
|
654
665
|
|
655
666
|
export declare interface SidebarProps {
|
656
667
|
children?: default_2.ReactNode;
|
@@ -666,7 +677,7 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
666
677
|
multiple?: false;
|
667
678
|
};
|
668
679
|
|
669
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
680
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
|
670
681
|
|
671
682
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
672
683
|
type?: "table" | "form";
|
@@ -681,7 +692,7 @@ export declare const Space: typeof Space_2;
|
|
681
692
|
|
682
693
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
683
694
|
|
684
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
695
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
|
685
696
|
|
686
697
|
export declare const Splitter: typeof Splitter_2;
|
687
698
|
|
@@ -709,7 +720,7 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
709
720
|
|
710
721
|
export declare type SubMenuProps = SubMenuProps_2;
|
711
722
|
|
712
|
-
export declare const Switch: (props: SwitchProps) =>
|
723
|
+
export declare const Switch: (props: SwitchProps) => JSX_2.Element;
|
713
724
|
|
714
725
|
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
715
726
|
field?: ControllerRenderProps<any, any>;
|
@@ -728,7 +739,7 @@ declare type TabItem = {
|
|
728
739
|
disabled?: boolean;
|
729
740
|
};
|
730
741
|
|
731
|
-
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>) =>
|
742
|
+
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_2.Element;
|
732
743
|
|
733
744
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
734
745
|
|
@@ -783,7 +794,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
783
794
|
}
|
784
795
|
|
785
796
|
export declare type TFilters = {
|
786
|
-
|
797
|
+
isStatus?: number;
|
787
798
|
};
|
788
799
|
|
789
800
|
export declare const Timeline: React.FC<TimelineProps>;
|
@@ -795,7 +806,7 @@ declare type TInputNumberType = "number" | "money";
|
|
795
806
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
796
807
|
|
797
808
|
export declare const TinyMCE: {
|
798
|
-
(props: TinyProps):
|
809
|
+
(props: TinyProps): JSX_2.Element;
|
799
810
|
displayName: string;
|
800
811
|
};
|
801
812
|
|
@@ -810,6 +821,19 @@ export declare interface TinyProps extends IAllProps {
|
|
810
821
|
text_patterns?: any;
|
811
822
|
}
|
812
823
|
|
824
|
+
export declare type TListIcon = {
|
825
|
+
icon: React.ReactNode;
|
826
|
+
iconDisable: React.ReactNode;
|
827
|
+
iconDropList: React.ReactNode;
|
828
|
+
action?: () => void;
|
829
|
+
showConfirmModal: boolean;
|
830
|
+
title: string;
|
831
|
+
arrShow: CATEGORY_LIST_ENUM[];
|
832
|
+
content?: string;
|
833
|
+
typeIcon?: ConfirmModalProps["typeIcon"];
|
834
|
+
name?: string;
|
835
|
+
};
|
836
|
+
|
813
837
|
export declare const Tooltip: default_2.FC<TooltipProps>;
|
814
838
|
|
815
839
|
export declare type TooltipProps = TooltipProps_2;
|
@@ -845,15 +869,20 @@ export declare enum TypeActionRowTable {
|
|
845
869
|
VIEW = "VIEW"
|
846
870
|
}
|
847
871
|
|
872
|
+
export declare enum TypeBulkActions {
|
873
|
+
BULKACTION = "bulkaction",
|
874
|
+
DROPLIST = "droplist"
|
875
|
+
}
|
876
|
+
|
848
877
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
849
878
|
|
850
879
|
export declare const Typography: {
|
851
|
-
Title: (props: TitleProps) =>
|
852
|
-
Paragraph: (props: ParagraphProps) =>
|
853
|
-
Text: (props: TextProps) =>
|
880
|
+
Title: (props: TitleProps) => JSX_2.Element;
|
881
|
+
Paragraph: (props: ParagraphProps) => JSX_2.Element;
|
882
|
+
Text: (props: TextProps) => JSX_2.Element;
|
854
883
|
};
|
855
884
|
|
856
|
-
export declare const UploadField: (props: UploadFieldProps) =>
|
885
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX_2.Element;
|
857
886
|
|
858
887
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
859
888
|
field?: ControllerRenderProps<any, any>;
|
@@ -878,6 +907,6 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
878
907
|
warning(props?: OptionalArgsToast): void;
|
879
908
|
};
|
880
909
|
|
881
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
910
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
|
882
911
|
|
883
912
|
export { }
|