@pnkx-lib/ui 1.9.60 → 1.9.61
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 +2 -2
- package/es/chunks/{Switch-CDqr-O_3.js → Switch-C1uDuMv6.js} +1 -1
- package/es/chunks/{Upload-D0erjks6.js → Upload-T_yMWa7w.js} +16 -9
- package/es/chunks/{index-Ddlb_ICS.js → index-Cw-kPYS8.js} +229 -273
- 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 +12 -12
- package/types/index.d.ts +44 -45
- package/types/ui.d.ts +33 -34
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/Upload-
|
2
|
-
export { R as RadioGroup, S as Select, a as SwitchField } 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/Upload-T_yMWa7w.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as SwitchField } from '../chunks/Switch-C1uDuMv6.js';
|
package/es/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from './chunks/index-
|
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/Upload-
|
1
|
+
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from './chunks/index-Cw-kPYS8.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/Upload-T_yMWa7w.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable, u as useToast } from './chunks/table-B28OPA57.js';
|
5
|
-
export { R as RadioGroup, S as Select, a as SwitchField } from './chunks/Switch-
|
5
|
+
export { R as RadioGroup, S as Select, a as SwitchField } from './chunks/Switch-C1uDuMv6.js';
|
6
6
|
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-C5Y4aFUQ.js';
|
package/es/ui/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from '../chunks/index-
|
2
|
-
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Upload-
|
1
|
+
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from '../chunks/index-Cw-kPYS8.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Upload-T_yMWa7w.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable } from '../chunks/table-B28OPA57.js';
|
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>;
|
@@ -131,7 +131,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
131
131
|
customStyleContainer?: string;
|
132
132
|
}
|
133
133
|
|
134
|
-
export declare const SwitchField: (props: SwitchFieldProps) =>
|
134
|
+
export declare const SwitchField: (props: SwitchFieldProps) => JSX_2.Element;
|
135
135
|
|
136
136
|
export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange"> {
|
137
137
|
field?: ControllerRenderProps<any, any>;
|
@@ -155,7 +155,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
155
155
|
declare type TInputNumberType = "number" | "money";
|
156
156
|
|
157
157
|
export declare const TinyMCE: {
|
158
|
-
(props: TinyProps):
|
158
|
+
(props: TinyProps): JSX_2.Element;
|
159
159
|
displayName: string;
|
160
160
|
};
|
161
161
|
|
package/types/index.d.ts
CHANGED
@@ -42,15 +42,15 @@ import { ForwardRefExoticComponent } from 'react';
|
|
42
42
|
import { IAllProps } from '@tinymce/tinymce-react';
|
43
43
|
import { ImageProps } from 'antd';
|
44
44
|
import { InputProps as InputProps_2 } from 'antd';
|
45
|
-
import { JSX } from 'react/jsx-runtime';
|
46
|
-
import { JSX as
|
45
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
46
|
+
import { JSX as JSX_3 } from 'react';
|
47
47
|
import { MenuDividerProps } from 'antd/es/menu';
|
48
48
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
49
49
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
50
50
|
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
51
51
|
import { ModalProps as ModalProps_2 } from 'antd';
|
52
52
|
import { Pagination as Pagination_2 } from 'antd';
|
53
|
-
import { PaginationFilters as PaginationFilters_2 } from '
|
53
|
+
import { PaginationFilters as PaginationFilters_2 } from '../../../../../../../../../../src/components/hooks';
|
54
54
|
import { PaginationLocale } from 'rc-pagination';
|
55
55
|
import { PaginationProps as PaginationProps_2 } from 'antd';
|
56
56
|
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
@@ -93,7 +93,7 @@ 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 '
|
96
|
+
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../src/constants/table';
|
97
97
|
import { UploadFile } from 'antd';
|
98
98
|
import { UploadProps } from 'antd';
|
99
99
|
import { UseFormReset } from 'react-hook-form';
|
@@ -103,7 +103,7 @@ import { UseFormStateReturn } from 'react-hook-form';
|
|
103
103
|
import { WatermarkProps } from 'antd';
|
104
104
|
import * as yup from 'yup';
|
105
105
|
|
106
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) =>
|
106
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX_2.Element;
|
107
107
|
|
108
108
|
export declare interface ActionRowTableProps {
|
109
109
|
type: TypeActionRowTable_2;
|
@@ -123,7 +123,7 @@ export declare const Anchor: typeof Anchor_2 & {
|
|
123
123
|
|
124
124
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
125
125
|
|
126
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
126
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX_2.Element;
|
127
127
|
|
128
128
|
export declare interface AppfixProps extends AffixProps {
|
129
129
|
children: default_2.ReactNode;
|
@@ -133,7 +133,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
133
133
|
|
134
134
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
135
135
|
|
136
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
136
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX_2.Element;
|
137
137
|
|
138
138
|
export declare interface BadgeProps extends BadgeProps_2 {
|
139
139
|
type?: "error" | "info" | "success" | "warning";
|
@@ -203,7 +203,7 @@ declare type BaseProps_9 = {
|
|
203
203
|
spaceClassName?: string;
|
204
204
|
};
|
205
205
|
|
206
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
206
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX_2.Element;
|
207
207
|
|
208
208
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
209
209
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -215,7 +215,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
215
215
|
|
216
216
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
217
217
|
|
218
|
-
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) =>
|
218
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX_2.Element;
|
219
219
|
|
220
220
|
export declare interface BulkActionProps {
|
221
221
|
quantity?: number;
|
@@ -235,17 +235,17 @@ export declare const Button: default_2.FC<ButtonProps>;
|
|
235
235
|
|
236
236
|
export declare type ButtonProps = ButtonProps_2;
|
237
237
|
|
238
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
238
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX_2.Element;
|
239
239
|
|
240
240
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
241
241
|
|
242
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) =>
|
242
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX_2.Element;
|
243
243
|
|
244
244
|
export declare interface CategoryStatusProps {
|
245
245
|
status: number;
|
246
246
|
}
|
247
247
|
|
248
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
248
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX_2.Element;
|
249
249
|
|
250
250
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
251
251
|
field?: ControllerRenderProps<any, any>;
|
@@ -257,7 +257,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
257
257
|
customStyleCheckbox?: string;
|
258
258
|
}
|
259
259
|
|
260
|
-
export declare const Col: (props: ColPropsUnion) =>
|
260
|
+
export declare const Col: (props: ColPropsUnion) => JSX_2.Element;
|
261
261
|
|
262
262
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
263
263
|
}
|
@@ -277,7 +277,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
277
277
|
ItemGroup: typeof ItemGroup;
|
278
278
|
};
|
279
279
|
|
280
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
280
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX_2.Element;
|
281
281
|
|
282
282
|
export declare interface ConfirmModalProps extends ModalProps {
|
283
283
|
title: string;
|
@@ -318,9 +318,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
318
318
|
size?: TSize;
|
319
319
|
}
|
320
320
|
|
321
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
321
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX_2.Element;
|
322
322
|
|
323
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
323
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX_2.Element;
|
324
324
|
|
325
325
|
declare const Divider_2: FC<MenuDividerProps>;
|
326
326
|
|
@@ -328,14 +328,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
328
328
|
children?: ReactNode | string;
|
329
329
|
}
|
330
330
|
|
331
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
331
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX_2.Element;
|
332
332
|
|
333
333
|
export declare interface DrawerProps extends DrawerProps_2 {
|
334
334
|
children?: ReactNode;
|
335
335
|
onSubmit?: (values: any) => void;
|
336
336
|
}
|
337
337
|
|
338
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
338
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX_2.Element;
|
339
339
|
|
340
340
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
341
341
|
|
@@ -369,7 +369,7 @@ export declare interface ErrorBoundaryState {
|
|
369
369
|
errorInfo: ErrorInfo | null;
|
370
370
|
}
|
371
371
|
|
372
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) =>
|
372
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX_2.Element | null>;
|
373
373
|
|
374
374
|
export declare interface ErrorMessageProps {
|
375
375
|
errorMessage?: string;
|
@@ -382,13 +382,13 @@ declare type ExtraProps = {
|
|
382
382
|
menuClassName?: string;
|
383
383
|
};
|
384
384
|
|
385
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
385
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX_2.Element;
|
386
386
|
|
387
387
|
export declare type FlexProps = FlexProps_2;
|
388
388
|
|
389
389
|
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
390
390
|
|
391
|
-
export declare const Heading: (props: HeadingProps) =>
|
391
|
+
export declare const Heading: (props: HeadingProps) => JSX_2.Element;
|
392
392
|
|
393
393
|
export declare interface HeadingProps {
|
394
394
|
rightContent?: ReactNode;
|
@@ -403,7 +403,7 @@ export { Image_2 as Image }
|
|
403
403
|
|
404
404
|
export declare type InitialFiltersSearch<T> = T & PaginationFilters;
|
405
405
|
|
406
|
-
export declare const Input: (props: InputProps) =>
|
406
|
+
export declare const Input: (props: InputProps) => JSX_2.Element;
|
407
407
|
|
408
408
|
export declare interface InputProps extends InputProps_2 {
|
409
409
|
field?: ControllerRenderProps<any, any>;
|
@@ -426,7 +426,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
426
426
|
|
427
427
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
428
428
|
|
429
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
429
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX_2.Element;
|
430
430
|
|
431
431
|
export declare interface LabelProps {
|
432
432
|
label: string;
|
@@ -453,7 +453,7 @@ export declare type MenuItemProps = MenuItemProps_2;
|
|
453
453
|
|
454
454
|
export declare type MenuProps = MenuProps_2;
|
455
455
|
|
456
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) =>
|
456
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX_2.Element;
|
457
457
|
|
458
458
|
export declare interface ModalProps extends ModalProps_2 {
|
459
459
|
children?: ReactNode;
|
@@ -500,7 +500,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
500
500
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
501
501
|
|
502
502
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
503
|
-
render():
|
503
|
+
render(): JSX_2.Element;
|
504
504
|
}
|
505
505
|
|
506
506
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -513,13 +513,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
513
513
|
children?: ReactNode;
|
514
514
|
}
|
515
515
|
|
516
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
516
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX_2.Element;
|
517
517
|
|
518
518
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
519
519
|
children?: ReactNode;
|
520
520
|
}
|
521
521
|
|
522
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
522
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX_2.Element;
|
523
523
|
|
524
524
|
export declare type PopoverProps = PopoverProps_2;
|
525
525
|
|
@@ -534,14 +534,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
534
534
|
type?: TInputNumberType;
|
535
535
|
prefix?: string;
|
536
536
|
suffix?: string;
|
537
|
-
helperText?: () =>
|
537
|
+
helperText?: () => JSX_3.Element | null;
|
538
538
|
}
|
539
539
|
|
540
540
|
export declare const QRCode: React.FC<QRCodeProps>;
|
541
541
|
|
542
542
|
export declare type QRCodeProps = QRCodeProps_2;
|
543
543
|
|
544
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
544
|
+
export declare const RadioGroup: (props: RadioProps) => JSX_2.Element;
|
545
545
|
|
546
546
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
547
547
|
field?: ControllerRenderProps<any, any>;
|
@@ -554,7 +554,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
554
554
|
position?: TPositionRadio;
|
555
555
|
}
|
556
556
|
|
557
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
557
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX_2.Element;
|
558
558
|
|
559
559
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
560
560
|
field?: ControllerRenderProps<any, any>;
|
@@ -568,13 +568,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
568
568
|
|
569
569
|
export declare const Rate: React.FC<RateProps>;
|
570
570
|
|
571
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
571
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX_2.Element;
|
572
572
|
|
573
573
|
export declare interface ResultProps extends ResultProps_2 {
|
574
574
|
children?: ReactNode | string;
|
575
575
|
}
|
576
576
|
|
577
|
-
export declare const Row: (props: RowPropsUnion) =>
|
577
|
+
export declare const Row: (props: RowPropsUnion) => JSX_2.Element;
|
578
578
|
|
579
579
|
declare interface RowCommon {
|
580
580
|
[x: string]: any;
|
@@ -582,7 +582,7 @@ declare interface RowCommon {
|
|
582
582
|
|
583
583
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
584
584
|
|
585
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
585
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX_2.Element;
|
586
586
|
|
587
587
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
588
588
|
renderFilterFields?: (options: {
|
@@ -604,7 +604,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
604
604
|
|
605
605
|
export declare type SegmentedProps = SegmentedProps_2;
|
606
606
|
|
607
|
-
export declare const Select: (props: SelectFieldProps) =>
|
607
|
+
export declare const Select: (props: SelectFieldProps) => JSX_2.Element;
|
608
608
|
|
609
609
|
export declare interface SelectFieldProps extends SelectProps {
|
610
610
|
field?: ControllerRenderProps<any, any>;
|
@@ -616,7 +616,7 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
616
616
|
customStyleContainer?: string;
|
617
617
|
}
|
618
618
|
|
619
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) =>
|
619
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX_2.Element;
|
620
620
|
|
621
621
|
export declare interface SidebarProps {
|
622
622
|
children?: React.ReactNode;
|
@@ -637,7 +637,7 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
|
637
637
|
multiple?: false;
|
638
638
|
};
|
639
639
|
|
640
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
640
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX_2.Element;
|
641
641
|
|
642
642
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
643
643
|
type?: "table" | "form";
|
@@ -652,7 +652,7 @@ export declare const Space: typeof Space_2;
|
|
652
652
|
|
653
653
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
654
654
|
|
655
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
655
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX_2.Element;
|
656
656
|
|
657
657
|
export declare const Splitter: typeof Splitter_2;
|
658
658
|
|
@@ -680,7 +680,7 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
680
680
|
|
681
681
|
export declare type SubMenuProps = SubMenuProps_2;
|
682
682
|
|
683
|
-
export declare const SwitchField: (props: SwitchFieldProps) =>
|
683
|
+
export declare const SwitchField: (props: SwitchFieldProps) => JSX_2.Element;
|
684
684
|
|
685
685
|
export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange"> {
|
686
686
|
field?: ControllerRenderProps<any, any>;
|
@@ -699,7 +699,7 @@ declare type TabItem = {
|
|
699
699
|
disabled?: boolean;
|
700
700
|
};
|
701
701
|
|
702
|
-
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb,
|
702
|
+
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, titleSettingTableModal, showSetting, setColumns, renderHeadingSearch, rightHeadingContent, status, schema, breadCrumb, ...rest }: TableCommonProps<T>) => JSX_2.Element;
|
703
703
|
|
704
704
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
705
705
|
|
@@ -733,7 +733,6 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
733
733
|
status?: number;
|
734
734
|
schema?: yup.AnyObjectSchema;
|
735
735
|
breadCrumb?: ItemType[];
|
736
|
-
initialValueForm?: T;
|
737
736
|
}
|
738
737
|
|
739
738
|
export declare const Tabs: default_2.FC<TabsProps>;
|
@@ -769,7 +768,7 @@ declare type TInputNumberType = "number" | "money";
|
|
769
768
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
770
769
|
|
771
770
|
export declare const TinyMCE: {
|
772
|
-
(props: TinyProps):
|
771
|
+
(props: TinyProps): JSX_2.Element;
|
773
772
|
displayName: string;
|
774
773
|
};
|
775
774
|
|
@@ -822,9 +821,9 @@ export declare enum TypeActionRowTable {
|
|
822
821
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
823
822
|
|
824
823
|
export declare const Typography: {
|
825
|
-
Title: (props: TitleProps) =>
|
826
|
-
Paragraph: (props: ParagraphProps) =>
|
827
|
-
Text: (props: TextProps) =>
|
824
|
+
Title: (props: TitleProps) => JSX_2.Element;
|
825
|
+
Paragraph: (props: ParagraphProps) => JSX_2.Element;
|
826
|
+
Text: (props: TextProps) => JSX_2.Element;
|
828
827
|
};
|
829
828
|
|
830
829
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
@@ -870,6 +869,6 @@ export declare const useToggle: () => {
|
|
870
869
|
shouldRender: boolean;
|
871
870
|
};
|
872
871
|
|
873
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
872
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX_2.Element;
|
874
873
|
|
875
874
|
export { }
|