@pnkx-lib/ui 1.9.85 → 1.9.87
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/{AntdIcon-OdNt_XE3.js → AntdIcon-CfjDMPv2.js} +9 -16
- package/es/chunks/{Switch-BpQVmWXF.js → Switch-BRvdbb0u.js} +1 -1
- package/es/chunks/{index-BmfEnmGs.js → index-3YgUpR-Y.js} +219 -228
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +5 -3
- package/types/fields.d.ts +13 -13
- package/types/index.d.ts +81 -80
- package/types/ui.d.ts +69 -68
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-CfjDMPv2.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-BRvdbb0u.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, a0 as PAGE_NUMBER, a1 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, a2 as SORT_BY, a3 as SORT_DESC, _ 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, a4 as TypeActionRowTable, 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/AntdIcon-
|
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, a0 as PAGE_NUMBER, a1 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, a2 as SORT_BY, a3 as SORT_DESC, _ 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, a4 as TypeActionRowTable, W as Watermark, t as typeColorMap } from './chunks/index-3YgUpR-Y.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-CfjDMPv2.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-BRvdbb0u.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 { 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, a0 as PAGE_NUMBER, a1 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, a2 as SORT_BY, a3 as SORT_DESC, _ 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, a4 as TypeActionRowTable, 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/AntdIcon-
|
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, a0 as PAGE_NUMBER, a1 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, a2 as SORT_BY, a3 as SORT_DESC, _ 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, a4 as TypeActionRowTable, W as Watermark, t as typeColorMap } from '../chunks/index-3YgUpR-Y.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-CfjDMPv2.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.87",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./es/index.js",
|
7
7
|
"module": "./es/index.js",
|
@@ -73,7 +73,8 @@
|
|
73
73
|
"globals": "^15.15.0",
|
74
74
|
"rollup-plugin-visualizer": "^5.14.0",
|
75
75
|
"storybook": "^8.6.7",
|
76
|
-
"
|
76
|
+
"ts-node": "^10.9.2",
|
77
|
+
"typescript": "^5.8.3",
|
77
78
|
"typescript-eslint": "^8.24.1",
|
78
79
|
"vite": "^6.2.6",
|
79
80
|
"vite-plugin-dts": "^4.5.3",
|
@@ -102,6 +103,7 @@
|
|
102
103
|
"@headlessui/react": "^2.2.2",
|
103
104
|
"@heroicons/react": "^2.2.0",
|
104
105
|
"@hookform/resolvers": "^5.0.1",
|
106
|
+
"@pnkx-lib/core": "^1.1.7",
|
105
107
|
"@tailwindcss/cli": "^4.1.6",
|
106
108
|
"@tinymce/tinymce-react": "^6.0.0",
|
107
109
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
@@ -110,7 +112,7 @@
|
|
110
112
|
"lodash": "^4.17.21",
|
111
113
|
"react-datepicker": "^4.16.0",
|
112
114
|
"react-hook-form": "^7.54.2",
|
113
|
-
"react-i18next": "^15.5.
|
115
|
+
"react-i18next": "^15.5.2",
|
114
116
|
"react-number-format": "^5.4.3",
|
115
117
|
"tailwind-merge": "^3.3.0",
|
116
118
|
"yup": "^1.6.1",
|
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
@@ -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
|
46
|
-
import { JSX as
|
45
|
+
import { JSX } from 'react/jsx-runtime';
|
46
|
+
import { JSX as JSX_2 } 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
|
-
import { MenuProps as
|
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 } from '
|
53
|
+
import { PaginationFilters } from '../../../../../../../../../../../src/interface/common';
|
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';
|
@@ -102,7 +102,7 @@ import { UseFormSetValue } from 'react-hook-form';
|
|
102
102
|
import { UseFormStateReturn } from 'react-hook-form';
|
103
103
|
import { WatermarkProps } from 'antd';
|
104
104
|
|
105
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) =>
|
105
|
+
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
|
106
106
|
|
107
107
|
export declare interface ActionRowTableProps {
|
108
108
|
type: TypeActionRowTable_2;
|
@@ -122,7 +122,7 @@ export declare const Anchor: typeof Anchor_2 & {
|
|
122
122
|
|
123
123
|
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
124
124
|
|
125
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) =>
|
125
|
+
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
126
126
|
|
127
127
|
export declare interface AppfixProps extends AffixProps {
|
128
128
|
children: default_2.ReactNode;
|
@@ -132,7 +132,7 @@ export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
|
132
132
|
|
133
133
|
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
134
134
|
|
135
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) =>
|
135
|
+
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
136
136
|
|
137
137
|
export declare interface BadgeProps extends BadgeProps_2 {
|
138
138
|
type?: "error" | "info" | "success" | "warning";
|
@@ -202,7 +202,7 @@ declare type BaseProps_9 = {
|
|
202
202
|
spaceClassName?: string;
|
203
203
|
};
|
204
204
|
|
205
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) =>
|
205
|
+
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
206
206
|
|
207
207
|
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
208
208
|
children?: Omit<BreadcrumbItemType, "children">[];
|
@@ -214,7 +214,16 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
214
214
|
|
215
215
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
216
216
|
|
217
|
-
export declare
|
217
|
+
export declare type BreadcrumbType = {
|
218
|
+
name: string;
|
219
|
+
href: string;
|
220
|
+
submenu: {
|
221
|
+
name: string;
|
222
|
+
href: string;
|
223
|
+
};
|
224
|
+
};
|
225
|
+
|
226
|
+
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
218
227
|
|
219
228
|
export declare interface BulkActionProps {
|
220
229
|
quantity?: number;
|
@@ -234,17 +243,17 @@ export declare const Button: default_2.FC<ButtonProps>;
|
|
234
243
|
|
235
244
|
export declare type ButtonProps = ButtonProps_2;
|
236
245
|
|
237
|
-
export declare const CascaderField: (props: CascaderFieldProps) =>
|
246
|
+
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
238
247
|
|
239
248
|
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
240
249
|
|
241
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) =>
|
250
|
+
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
|
242
251
|
|
243
252
|
export declare interface CategoryStatusProps {
|
244
253
|
status: number;
|
245
254
|
}
|
246
255
|
|
247
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) =>
|
256
|
+
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
248
257
|
|
249
258
|
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
250
259
|
field?: ControllerRenderProps<any, any>;
|
@@ -256,7 +265,7 @@ export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChang
|
|
256
265
|
customStyleCheckbox?: string;
|
257
266
|
}
|
258
267
|
|
259
|
-
export declare const Col: (props: ColPropsUnion) =>
|
268
|
+
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
260
269
|
|
261
270
|
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
262
271
|
}
|
@@ -276,7 +285,7 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
276
285
|
ItemGroup: typeof ItemGroup;
|
277
286
|
};
|
278
287
|
|
279
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) =>
|
288
|
+
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
|
280
289
|
|
281
290
|
export declare interface ConfirmModalProps extends ModalProps {
|
282
291
|
title: string;
|
@@ -317,9 +326,9 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
317
326
|
size?: TSize;
|
318
327
|
}
|
319
328
|
|
320
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) =>
|
329
|
+
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
321
330
|
|
322
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) =>
|
331
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
323
332
|
|
324
333
|
declare const Divider_2: FC<MenuDividerProps>;
|
325
334
|
|
@@ -327,14 +336,14 @@ export declare interface DividerProps extends DividerProps_2 {
|
|
327
336
|
children?: ReactNode | string;
|
328
337
|
}
|
329
338
|
|
330
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) =>
|
339
|
+
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
|
331
340
|
|
332
341
|
export declare interface DrawerProps extends DrawerProps_2 {
|
333
342
|
children?: ReactNode;
|
334
343
|
onSubmit?: (values: any) => void;
|
335
344
|
}
|
336
345
|
|
337
|
-
export declare const Dropdown: (props: DropdownPropsUnion) =>
|
346
|
+
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
338
347
|
|
339
348
|
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
340
349
|
|
@@ -368,7 +377,7 @@ export declare interface ErrorBoundaryState {
|
|
368
377
|
errorInfo: ErrorInfo | null;
|
369
378
|
}
|
370
379
|
|
371
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) =>
|
380
|
+
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
372
381
|
|
373
382
|
export declare interface ErrorMessageProps {
|
374
383
|
errorMessage?: string;
|
@@ -381,7 +390,7 @@ declare type ExtraProps = {
|
|
381
390
|
menuClassName?: string;
|
382
391
|
};
|
383
392
|
|
384
|
-
export declare const Flex: (props: FlexPropsUnion) =>
|
393
|
+
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
385
394
|
|
386
395
|
export declare type FlexProps = FlexProps_2;
|
387
396
|
|
@@ -393,20 +402,20 @@ declare interface GroupHeadingButtonItem {
|
|
393
402
|
keyActive: number;
|
394
403
|
}
|
395
404
|
|
396
|
-
export declare const Heading: (props: HeadingProps) =>
|
405
|
+
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
397
406
|
|
398
407
|
export declare interface HeadingProps {
|
399
408
|
rightContent?: ReactNode;
|
400
409
|
children?: ReactNode;
|
401
410
|
noBreadcum?: boolean;
|
402
411
|
classNameWrapHeading?: string;
|
403
|
-
|
412
|
+
menu: Array<MenuType>;
|
404
413
|
}
|
405
414
|
|
406
415
|
declare const Image_2: React.FC<ImageProps>;
|
407
416
|
export { Image_2 as Image }
|
408
417
|
|
409
|
-
export declare const Input: (props: InputProps) =>
|
418
|
+
export declare const Input: (props: InputProps) => JSX.Element;
|
410
419
|
|
411
420
|
export declare interface InputProps extends InputProps_2 {
|
412
421
|
field?: ControllerRenderProps<any, any>;
|
@@ -429,7 +438,7 @@ declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref
|
|
429
438
|
|
430
439
|
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
431
440
|
|
432
|
-
export declare const Label: ({ label, required }: LabelProps) =>
|
441
|
+
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
433
442
|
|
434
443
|
export declare interface LabelProps {
|
435
444
|
label: string;
|
@@ -448,49 +457,40 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
|
|
448
457
|
|
449
458
|
export declare const Menu: CompoundedMenu;
|
450
459
|
|
451
|
-
export declare type MenuComponentProps = ExtraProps &
|
460
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
452
461
|
|
453
462
|
declare const MenuItem: FC<MenuItemProps>;
|
454
463
|
|
455
464
|
export declare type MenuItemProps = MenuItemProps_2;
|
456
465
|
|
457
|
-
export declare type MenuProps =
|
458
|
-
name: string;
|
459
|
-
href: string;
|
460
|
-
icon: default_2.ReactNode;
|
461
|
-
current: boolean;
|
462
|
-
subMenu?: Array<{
|
463
|
-
name: string;
|
464
|
-
href: string;
|
465
|
-
icon: default_2.ReactNode;
|
466
|
-
children?: Array<{
|
467
|
-
name: string;
|
468
|
-
href: string;
|
469
|
-
icon?: default_2.ReactNode;
|
470
|
-
}>;
|
471
|
-
}>;
|
472
|
-
};
|
473
|
-
|
474
|
-
declare type MenuProps_2 = MenuProps_3;
|
466
|
+
export declare type MenuProps = MenuProps_2;
|
475
467
|
|
476
|
-
declare type
|
468
|
+
export declare type MenuType = {
|
477
469
|
name: string;
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
470
|
+
path: string;
|
471
|
+
isShow: boolean;
|
472
|
+
isPrivateRoute?: boolean;
|
473
|
+
modules: {
|
482
474
|
name: string;
|
483
|
-
|
484
|
-
icon
|
485
|
-
|
475
|
+
path: string;
|
476
|
+
icon?: ReactNode;
|
477
|
+
component: typeof default_2.Component | default_2.FC;
|
478
|
+
subMenu?: Array<{
|
486
479
|
name: string;
|
487
|
-
|
488
|
-
icon
|
480
|
+
path: string;
|
481
|
+
icon: ReactNode;
|
482
|
+
component: typeof default_2.Component | default_2.FC;
|
483
|
+
children?: Array<{
|
484
|
+
name: string;
|
485
|
+
path: string;
|
486
|
+
icon: ReactNode;
|
487
|
+
component: typeof default_2.Component | default_2.FC;
|
488
|
+
}>;
|
489
489
|
}>;
|
490
|
-
}
|
490
|
+
}[];
|
491
491
|
};
|
492
492
|
|
493
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) =>
|
493
|
+
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
494
494
|
|
495
495
|
export declare interface ModalProps extends ModalProps_2 {
|
496
496
|
children?: ReactNode;
|
@@ -532,7 +532,7 @@ export declare type PnkxCollapseProps = CollapseProps;
|
|
532
532
|
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
533
533
|
|
534
534
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
535
|
-
render():
|
535
|
+
render(): JSX.Element;
|
536
536
|
}
|
537
537
|
|
538
538
|
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
@@ -545,13 +545,13 @@ export declare interface PnkxSpinProps extends SpinProps {
|
|
545
545
|
children?: ReactNode;
|
546
546
|
}
|
547
547
|
|
548
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) =>
|
548
|
+
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
|
549
549
|
|
550
550
|
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
551
551
|
children?: ReactNode;
|
552
552
|
}
|
553
553
|
|
554
|
-
export declare const Popover: (props: PopoverPropsUnion) =>
|
554
|
+
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
555
555
|
|
556
556
|
export declare type PopoverProps = PopoverProps_2;
|
557
557
|
|
@@ -566,14 +566,14 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
|
|
566
566
|
type?: TInputNumberType;
|
567
567
|
prefix?: string;
|
568
568
|
suffix?: string;
|
569
|
-
helperText?: () =>
|
569
|
+
helperText?: () => JSX_2.Element | null;
|
570
570
|
}
|
571
571
|
|
572
572
|
export declare const QRCode: React.FC<QRCodeProps>;
|
573
573
|
|
574
574
|
export declare type QRCodeProps = QRCodeProps_2;
|
575
575
|
|
576
|
-
export declare const RadioGroup: (props: RadioProps) =>
|
576
|
+
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
577
577
|
|
578
578
|
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
579
579
|
field?: ControllerRenderProps<any, any>;
|
@@ -586,7 +586,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
|
|
586
586
|
position?: TPositionRadio;
|
587
587
|
}
|
588
588
|
|
589
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) =>
|
589
|
+
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
590
590
|
|
591
591
|
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
592
592
|
field?: ControllerRenderProps<any, any>;
|
@@ -600,13 +600,13 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
|
|
600
600
|
|
601
601
|
export declare const Rate: React.FC<RateProps>;
|
602
602
|
|
603
|
-
export declare const Result: ({ children, ...rest }: ResultProps) =>
|
603
|
+
export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
|
604
604
|
|
605
605
|
export declare interface ResultProps extends ResultProps_2 {
|
606
606
|
children?: ReactNode | string;
|
607
607
|
}
|
608
608
|
|
609
|
-
export declare const Row: (props: RowPropsUnion) =>
|
609
|
+
export declare const Row: (props: RowPropsUnion) => JSX.Element;
|
610
610
|
|
611
611
|
declare interface RowCommon {
|
612
612
|
[x: string]: any;
|
@@ -614,7 +614,7 @@ declare interface RowCommon {
|
|
614
614
|
|
615
615
|
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
616
616
|
|
617
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) =>
|
617
|
+
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
618
618
|
|
619
619
|
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
620
620
|
renderFilterFields?: (options: {
|
@@ -636,7 +636,7 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
636
636
|
|
637
637
|
export declare type SegmentedProps = SegmentedProps_2;
|
638
638
|
|
639
|
-
export declare const Select: (props: SelectFieldProps) =>
|
639
|
+
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
640
640
|
|
641
641
|
export declare interface SelectFieldProps extends SelectProps {
|
642
642
|
field?: ControllerRenderProps<any, any>;
|
@@ -649,18 +649,18 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
649
649
|
classNameSelect?: string;
|
650
650
|
}
|
651
651
|
|
652
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) =>
|
652
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
653
653
|
|
654
654
|
export declare interface SidebarProps {
|
655
|
-
children?:
|
656
|
-
menu: Array<
|
655
|
+
children?: default_2.ReactNode;
|
656
|
+
menu: Array<MenuType>;
|
657
657
|
}
|
658
658
|
|
659
659
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
660
660
|
multiple?: false;
|
661
661
|
};
|
662
662
|
|
663
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) =>
|
663
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
664
664
|
|
665
665
|
export declare interface SkeletonProps extends SkeletonProps_2 {
|
666
666
|
type?: "table" | "form";
|
@@ -675,7 +675,7 @@ export declare const Space: typeof Space_2;
|
|
675
675
|
|
676
676
|
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
677
677
|
|
678
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) =>
|
678
|
+
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
|
679
679
|
|
680
680
|
export declare const Splitter: typeof Splitter_2;
|
681
681
|
|
@@ -703,7 +703,7 @@ declare const SubMenu: FC<SubMenuProps>;
|
|
703
703
|
|
704
704
|
export declare type SubMenuProps = SubMenuProps_2;
|
705
705
|
|
706
|
-
export declare const Switch: (props: SwitchProps) =>
|
706
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
707
707
|
|
708
708
|
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
709
709
|
field?: ControllerRenderProps<any, any>;
|
@@ -722,7 +722,7 @@ declare type TabItem = {
|
|
722
722
|
disabled?: boolean;
|
723
723
|
};
|
724
724
|
|
725
|
-
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, handleClickGroupHeadingButtonItem, showIndexColumn, ...rest }: TableCommonProps<T>) =>
|
725
|
+
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, handleClickGroupHeadingButtonItem, showIndexColumn, ...rest }: TableCommonProps<T>) => JSX.Element;
|
726
726
|
|
727
727
|
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
728
728
|
|
@@ -748,7 +748,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
748
748
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
749
749
|
renderHeadingSearch: () => ReactNode;
|
750
750
|
rightHeadingContent: ReactNode;
|
751
|
-
menu: Array<
|
751
|
+
menu: Array<MenuType>;
|
752
|
+
renderGroupHeadingButton: ReactNode;
|
752
753
|
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
753
754
|
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
754
755
|
showIndexColumn?: boolean;
|
@@ -787,7 +788,7 @@ declare type TInputNumberType = "number" | "money";
|
|
787
788
|
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
788
789
|
|
789
790
|
export declare const TinyMCE: {
|
790
|
-
(props: TinyProps):
|
791
|
+
(props: TinyProps): JSX.Element;
|
791
792
|
displayName: string;
|
792
793
|
};
|
793
794
|
|
@@ -840,12 +841,12 @@ export declare enum TypeActionRowTable {
|
|
840
841
|
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
841
842
|
|
842
843
|
export declare const Typography: {
|
843
|
-
Title: (props: TitleProps) =>
|
844
|
-
Paragraph: (props: ParagraphProps) =>
|
845
|
-
Text: (props: TextProps) =>
|
844
|
+
Title: (props: TitleProps) => JSX.Element;
|
845
|
+
Paragraph: (props: ParagraphProps) => JSX.Element;
|
846
|
+
Text: (props: TextProps) => JSX.Element;
|
846
847
|
};
|
847
848
|
|
848
|
-
export declare const UploadField: (props: UploadFieldProps) =>
|
849
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
849
850
|
|
850
851
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
851
852
|
field?: ControllerRenderProps<any, any>;
|
@@ -870,6 +871,6 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
870
871
|
warning(props?: OptionalArgsToast): void;
|
871
872
|
};
|
872
873
|
|
873
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) =>
|
874
|
+
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
|
874
875
|
|
875
876
|
export { }
|