@pnkx-lib/ui 1.9.113 → 1.9.119
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-CtaI55qk.js → AntdIcon-BS99Z6_t.js} +7203 -460
- package/es/chunks/{BreadcrumbHeading-CSKdtCYe.js → Card-CCVU-3bH.js} +73 -59
- package/es/chunks/{Switch-CigYj8FF.js → Switch-vaUhKEAu.js} +1 -1
- package/es/fields/index.js +2 -2
- package/es/index.js +3 -3
- package/es/ui/index.js +2 -2
- package/package.json +3 -2
- package/types/fields/CascaderField.d.ts +13 -0
- package/types/fields/Checkbox.d.ts +12 -0
- package/types/fields/DatePicker.d.ts +22 -0
- package/types/fields/DateRangePicker.d.ts +13 -0
- package/types/fields/Input.d.ts +32 -0
- package/types/fields/PnkxField.d.ts +12 -0
- package/types/fields/Radio.d.ts +19 -0
- package/types/fields/Select.d.ts +13 -0
- package/types/fields/Switch.d.ts +12 -0
- package/types/fields/Textarea.d.ts +13 -0
- package/types/fields/TinyMCE.d.ts +16 -0
- package/types/fields/Upload.d.ts +15 -0
- package/types/fields/index.d.ts +11 -0
- package/types/fields.d.ts +2 -198
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useDebounce.d.ts +1 -0
- package/types/hooks/useMessage.d.ts +5 -0
- package/types/hooks/useToast.d.ts +12 -0
- package/types/hooks.d.ts +2 -23
- package/types/icons/ActivateIcon.d.ts +6 -0
- package/types/icons/AllowClearIcon.d.ts +2 -0
- package/types/icons/ApprovalIcon.d.ts +6 -0
- package/types/icons/CancelApprovalIcon.d.ts +6 -0
- package/types/icons/CancelSendApprovalIcon.d.ts +6 -0
- package/types/icons/DeleteIcon.d.ts +6 -0
- package/types/icons/DragIcon.d.ts +6 -0
- package/types/icons/EditIcon.d.ts +6 -0
- package/types/icons/ErrorConfirmIcon.d.ts +3 -0
- package/types/icons/InActivateIcon.d.ts +6 -0
- package/types/icons/InfoConfirmIcon.d.ts +3 -0
- package/types/icons/MoreIcon.d.ts +6 -0
- package/types/icons/PlusIcon.d.ts +6 -0
- package/types/icons/RefuseApprovalIcon.d.ts +6 -0
- package/types/icons/RestoreIcon.d.ts +6 -0
- package/types/icons/SearchAdvanceIcon.d.ts +6 -0
- package/types/icons/SearchIcon.d.ts +2 -0
- package/types/icons/SendApprovalIcon.d.ts +6 -0
- package/types/icons/SettingIcon.d.ts +1 -0
- package/types/icons/SuccessIcon.d.ts +3 -0
- package/types/icons/TrashCanIcon.d.ts +2 -0
- package/types/icons/WaitingApprovalIcon.d.ts +6 -0
- package/types/icons/WarningConfirmIcon.d.ts +3 -0
- package/types/icons/index.d.ts +18 -0
- package/types/index.d.ts +3 -922
- package/types/ui/Alert.d.ts +3 -0
- package/types/ui/Anchor.d.ts +11 -0
- package/types/ui/Appfix.d.ts +6 -0
- package/types/ui/AutoComplete.d.ts +3 -0
- package/types/ui/Badge.d.ts +8 -0
- package/types/ui/Breadcrumb.d.ts +16 -0
- package/types/ui/BreadcrumbHeading.d.ts +5 -0
- package/types/ui/BulkActions/BulkAction.d.ts +11 -0
- package/types/ui/BulkActions/DropListActions.d.ts +9 -0
- package/types/ui/BulkActions/index.d.ts +31 -0
- package/types/ui/Button.d.ts +4 -0
- package/types/ui/Card.d.ts +3 -0
- package/types/ui/Cascader.d.ts +14 -0
- package/types/ui/CategoryStatus.d.ts +4 -0
- package/types/ui/Col.d.ts +11 -0
- package/types/ui/Collapse.d.ts +3 -0
- package/types/ui/ColorPicker.d.ts +2 -0
- package/types/ui/ConfirmModal.d.ts +12 -0
- package/types/ui/Container.d.ts +8 -0
- package/types/ui/Divider.d.ts +6 -0
- package/types/ui/Drawer.d.ts +7 -0
- package/types/ui/Dropdown.d.ts +12 -0
- package/types/ui/Empty.d.ts +3 -0
- package/types/ui/ErrorBoundary.d.ts +18 -0
- package/types/ui/ErrorMessage.d.ts +7 -0
- package/types/ui/Flex.d.ts +9 -0
- package/types/ui/Footer.d.ts +2 -0
- package/types/ui/Heading.d.ts +10 -0
- package/types/ui/Image.d.ts +2 -0
- package/types/ui/Label.d.ts +5 -0
- package/types/ui/Layout.d.ts +14 -0
- package/types/ui/Menu.d.ts +22 -0
- package/types/ui/Modal.d.ts +6 -0
- package/types/ui/Page404.d.ts +2 -0
- package/types/ui/Pagination.d.ts +12 -0
- package/types/ui/Popconfirm.d.ts +6 -0
- package/types/ui/Popover.d.ts +9 -0
- package/types/ui/QRCode.d.ts +3 -0
- package/types/ui/Rate.d.ts +2 -0
- package/types/ui/Result.d.ts +6 -0
- package/types/ui/Row.d.ts +7 -0
- package/types/ui/SearchFilterForm.d.ts +18 -0
- package/types/ui/Segmented.d.ts +3 -0
- package/types/ui/Sidebar.d.ts +36 -0
- package/types/ui/Skeleton.d.ts +6 -0
- package/types/ui/Space.d.ts +8 -0
- package/types/ui/Spin.d.ts +6 -0
- package/types/ui/Splitter.d.ts +8 -0
- package/types/ui/Statistic.d.ts +3 -0
- package/types/ui/Steps.d.ts +12 -0
- package/types/ui/Table/ActionRowTable/index.d.ts +10 -0
- package/types/ui/Table/HeadingTable/components/GroupHeadingButton.d.ts +13 -0
- package/types/ui/Table/HeadingTable/index.d.ts +16 -0
- package/types/ui/Table/SettingTable/IconSettingTable.d.ts +6 -0
- package/types/ui/Table/SettingTable/SettingColumnItem.d.ts +7 -0
- package/types/ui/Table/SettingTable/SortableItem.d.ts +6 -0
- package/types/ui/Table/SettingTable/index.d.ts +11 -0
- package/types/ui/Table/index.d.ts +42 -0
- package/types/ui/Tabs.d.ts +14 -0
- package/types/ui/Tag.d.ts +5 -0
- package/types/ui/Timeline.d.ts +3 -0
- package/types/ui/Tooltip.d.ts +4 -0
- package/types/ui/Tour.d.ts +3 -0
- package/types/ui/Tree.d.ts +3 -0
- package/types/ui/Typography.d.ts +8 -0
- package/types/ui/Watermark.d.ts +2 -0
- package/types/ui/index.d.ts +58 -0
- package/types/ui.d.ts +2 -709
package/types/index.d.ts
CHANGED
@@ -1,922 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import { AnchorProps } from 'antd';
|
5
|
-
import { ArgsProps } from 'antd/es/notification';
|
6
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
|
7
|
-
import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
|
8
|
-
import { BadgeProps as BadgeProps_2 } from 'antd';
|
9
|
-
import { BasicProps } from 'antd/es/layout/layout';
|
10
|
-
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
11
|
-
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
|
12
|
-
import { BreadcrumbSeparatorType as BreadcrumbSeparatorType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
13
|
-
import { Breakpoint } from 'antd';
|
14
|
-
import { ButtonProps as ButtonProps_2 } from 'antd';
|
15
|
-
import { CascaderProps } from 'antd/es/cascader';
|
16
|
-
import { CheckboxProps } from 'antd';
|
17
|
-
import { CollapseProps } from 'antd';
|
18
|
-
import { ColorPickerProps } from 'antd';
|
19
|
-
import { ColProps as ColProps_2 } from 'antd';
|
20
|
-
import { ColSize } from 'antd/es/grid';
|
21
|
-
import { Component } from 'react';
|
22
|
-
import { Control } from 'react-hook-form';
|
23
|
-
import { ControllerFieldState } from 'react-hook-form';
|
24
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
25
|
-
import { Dayjs } from 'dayjs';
|
26
|
-
import { default as default_2 } from 'react';
|
27
|
-
import { default as default_3 } from 'antd/es/anchor/AnchorLink';
|
28
|
-
import { DefaultOptionType } from 'antd/es/cascader';
|
29
|
-
import { DefaultValues } from 'react-hook-form';
|
30
|
-
import { DividerProps as DividerProps_2 } from 'antd';
|
31
|
-
import { DrawerProps as DrawerProps_2 } from 'antd';
|
32
|
-
import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
|
33
|
-
import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
|
34
|
-
import { DropdownProps as DropdownProps_2 } from 'antd';
|
35
|
-
import { EmptyProps as EmptyProps_2 } from 'antd';
|
36
|
-
import { ErrorInfo } from 'react';
|
37
|
-
import { FC } from 'react';
|
38
|
-
import { FieldValues } from 'react-hook-form';
|
39
|
-
import { FlexProps as FlexProps_2 } from 'antd';
|
40
|
-
import { FormEventHandler } from 'react';
|
41
|
-
import { ForwardRefExoticComponent } from 'react';
|
42
|
-
import { IAllProps } from '@tinymce/tinymce-react';
|
43
|
-
import { ImageProps } from 'antd';
|
44
|
-
import { InitialFiltersSearch } from '@pnkx-lib/core';
|
45
|
-
import { InputProps as InputProps_2 } from 'antd';
|
46
|
-
import { JSX } from 'react/jsx-runtime';
|
47
|
-
import { JSX as JSX_2 } from 'react';
|
48
|
-
import { MenuDividerProps } from 'antd/es/menu';
|
49
|
-
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
50
|
-
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
51
|
-
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
52
|
-
import { ModalProps as ModalProps_2 } from 'antd';
|
53
|
-
import { Pagination as Pagination_2 } from 'antd';
|
54
|
-
import { PaginationLocale } from 'rc-pagination';
|
55
|
-
import { PaginationProps as PaginationProps_2 } from 'antd';
|
56
|
-
import { ParagraphProps } from 'antd/es/typography/Paragraph';
|
57
|
-
import { PopconfirmProps as PopconfirmProps_2 } from 'antd';
|
58
|
-
import { PopoverProps as PopoverProps_2 } from 'antd';
|
59
|
-
import { QRCodeProps as QRCodeProps_2 } from 'antd';
|
60
|
-
import { RadioGroupProps } from 'antd';
|
61
|
-
import { RangePickerProps } from 'antd/es/date-picker';
|
62
|
-
import { RateProps } from 'antd';
|
63
|
-
import * as React_2 from 'react';
|
64
|
-
import { ReactDatePickerProps } from 'react-datepicker';
|
65
|
-
import { ReactNode } from 'react';
|
66
|
-
import { RefAttributes } from 'react';
|
67
|
-
import { ResultProps as ResultProps_2 } from 'antd';
|
68
|
-
import { RowProps } from 'antd';
|
69
|
-
import { SegmentedProps as SegmentedProps_2 } from 'antd';
|
70
|
-
import { SelectProps } from 'antd';
|
71
|
-
import { SiderContextProps } from 'antd/es/layout/Sider';
|
72
|
-
import { SiderProps } from 'antd/es/layout/Sider';
|
73
|
-
import { SkeletonProps as SkeletonProps_2 } from 'antd';
|
74
|
-
import { Space as Space_2 } from 'antd';
|
75
|
-
import { SpaceProps } from 'antd';
|
76
|
-
import { SpinProps } from 'antd';
|
77
|
-
import { Splitter as Splitter_2 } from 'antd';
|
78
|
-
import { SplitterProps } from 'antd';
|
79
|
-
import { StatisticProps as StatisticProps_2 } from 'antd';
|
80
|
-
import { StepProps as StepProps_2 } from 'antd';
|
81
|
-
import { Steps as Steps_2 } from 'antd';
|
82
|
-
import { StepsProps as StepsProps_2 } from 'antd';
|
83
|
-
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
84
|
-
import { SwitchProps as SwitchProps_2 } from 'antd';
|
85
|
-
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
86
|
-
import { TableProps } from 'antd/lib/table';
|
87
|
-
import { TabsProps as TabsProps_2 } from 'antd';
|
88
|
-
import { TagProps } from 'antd';
|
89
|
-
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
90
|
-
import { TextProps } from 'antd/es/typography/Text';
|
91
|
-
import { TimelineProps as TimelineProps_2 } from 'antd';
|
92
|
-
import { TitleProps } from 'antd/es/typography/Title';
|
93
|
-
import { TooltipProps as TooltipProps_2 } from 'antd';
|
94
|
-
import { TourProps as TourProps_2 } from 'antd';
|
95
|
-
import { TreeProps as TreeProps_2 } from 'antd';
|
96
|
-
import { TypeActionRowTable as TypeActionRowTable_2 } from '../../../../../../../../../../../../../src/constants/table';
|
97
|
-
import { TypeBulkActions as TypeBulkActions_2 } from '../../../../../../../../../../../../src/constants';
|
98
|
-
import { TypeStatusTable as TypeStatusTable_2 } from '../../../../../../../../../../../../src/constants';
|
99
|
-
import { TypeStatusTable as TypeStatusTable_3 } from '../../../../../../../../../../../../../../src/components/ui';
|
100
|
-
import { UploadFile } from 'antd';
|
101
|
-
import { UploadProps } from 'antd';
|
102
|
-
import { UseFormReset } from 'react-hook-form';
|
103
|
-
import { UseFormReturn } from 'react-hook-form';
|
104
|
-
import { UseFormSetValue } from 'react-hook-form';
|
105
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
106
|
-
import { WatermarkProps } from 'antd';
|
107
|
-
|
108
|
-
export declare const ActionRowTable: ({ type, contentTooltip, handleClick, }: ActionRowTableProps) => JSX.Element;
|
109
|
-
|
110
|
-
export declare interface ActionRowTableProps {
|
111
|
-
type: TypeActionRowTable_2;
|
112
|
-
handleClick?: () => void;
|
113
|
-
contentTooltip?: default_2.ReactNode;
|
114
|
-
content?: default_2.ReactNode;
|
115
|
-
diabled?: boolean;
|
116
|
-
}
|
117
|
-
|
118
|
-
export declare const Alert: React.FC<AlertProps>;
|
119
|
-
|
120
|
-
export declare type AlertProps = AlertProps_2;
|
121
|
-
|
122
|
-
export declare const Anchor: typeof Anchor_2 & {
|
123
|
-
Link: typeof default_3;
|
124
|
-
};
|
125
|
-
|
126
|
-
export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
|
127
|
-
|
128
|
-
export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
|
129
|
-
|
130
|
-
export declare interface AppfixProps extends AffixProps {
|
131
|
-
children: default_2.ReactNode;
|
132
|
-
}
|
133
|
-
|
134
|
-
export declare const AutoComplete: React.FC<AutoCompleteProps>;
|
135
|
-
|
136
|
-
export declare type AutoCompleteProps = AutoCompleteProps_2;
|
137
|
-
|
138
|
-
export declare const Badge: ({ type, children, customColor, ...rest }: BadgeProps) => JSX.Element;
|
139
|
-
|
140
|
-
export declare interface BadgeProps extends BadgeProps_2 {
|
141
|
-
type?: "error" | "info" | "success" | "warning";
|
142
|
-
children?: React.ReactNode;
|
143
|
-
customColor?: string;
|
144
|
-
}
|
145
|
-
|
146
|
-
declare type BaseProps = {
|
147
|
-
customStyleContainer?: string;
|
148
|
-
customStyleCascader?: string;
|
149
|
-
};
|
150
|
-
|
151
|
-
declare type BaseProps_10 = {
|
152
|
-
containerClassName?: string;
|
153
|
-
spaceClassName?: string;
|
154
|
-
};
|
155
|
-
|
156
|
-
declare type BaseProps_11 = {
|
157
|
-
containerClassName?: string;
|
158
|
-
paginationClassName?: string;
|
159
|
-
};
|
160
|
-
|
161
|
-
declare type BaseProps_12 = {
|
162
|
-
containerClassName?: string;
|
163
|
-
stepsClassName?: string;
|
164
|
-
};
|
165
|
-
|
166
|
-
declare type BaseProps_13 = {
|
167
|
-
containerClassName?: string;
|
168
|
-
spaceClassName?: string;
|
169
|
-
};
|
170
|
-
|
171
|
-
declare type BaseProps_2 = {
|
172
|
-
containerClassName?: string;
|
173
|
-
popoverClassName?: string;
|
174
|
-
};
|
175
|
-
|
176
|
-
declare type BaseProps_3 = {
|
177
|
-
colClassName?: string;
|
178
|
-
};
|
179
|
-
|
180
|
-
declare type BaseProps_4 = {
|
181
|
-
rowClassName?: string;
|
182
|
-
};
|
183
|
-
|
184
|
-
declare type BaseProps_5 = {
|
185
|
-
containerClassName?: string;
|
186
|
-
dropdownClassName?: string;
|
187
|
-
};
|
188
|
-
|
189
|
-
declare type BaseProps_6 = {
|
190
|
-
containerClassName?: string;
|
191
|
-
breadcrumbClassName?: string;
|
192
|
-
};
|
193
|
-
|
194
|
-
declare type BaseProps_7 = {
|
195
|
-
containerClassName?: string;
|
196
|
-
flexClassName?: string;
|
197
|
-
};
|
198
|
-
|
199
|
-
declare type BaseProps_8 = {
|
200
|
-
layoutClassName?: string;
|
201
|
-
};
|
202
|
-
|
203
|
-
declare type BaseProps_9 = {
|
204
|
-
containerClassName?: string;
|
205
|
-
spaceClassName?: string;
|
206
|
-
};
|
207
|
-
|
208
|
-
export declare const Breadcrumb: (props: BreadcrumbPropsUnion) => JSX.Element;
|
209
|
-
|
210
|
-
export declare const BreadcrumbHeading: (props: BreadcrumbHeadingProps) => JSX.Element;
|
211
|
-
|
212
|
-
export declare interface BreadcrumbHeadingProps {
|
213
|
-
menu: Array<MenuType>;
|
214
|
-
}
|
215
|
-
|
216
|
-
export declare interface BreadcrumbItemType extends BreadcrumbItemType_2 {
|
217
|
-
children?: Omit<BreadcrumbItemType, "children">[];
|
218
|
-
}
|
219
|
-
|
220
|
-
export declare type BreadcrumbProps = BreadcrumbProps_2;
|
221
|
-
|
222
|
-
export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
223
|
-
|
224
|
-
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
225
|
-
|
226
|
-
export declare const BulkActions: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: IBulkActionsProps) => JSX.Element;
|
227
|
-
|
228
|
-
export declare const Button: default_2.FC<ButtonProps>;
|
229
|
-
|
230
|
-
export declare type ButtonProps = ButtonProps_2;
|
231
|
-
|
232
|
-
export declare const CascaderField: (props: CascaderFieldProps) => JSX.Element;
|
233
|
-
|
234
|
-
export declare type CascaderFieldProps = BaseProps & (SingleCascaderProps | MultipleCascaderProps);
|
235
|
-
|
236
|
-
declare enum CATEGORY_LIST_ENUM {
|
237
|
-
DRAFT = 0, // tạo mới
|
238
|
-
WATING_APPROVAL = 1, // đang chờ duyệt
|
239
|
-
ACTIVE = 2, // hoạt động
|
240
|
-
INACTIVE = 3, // dừng hoạt động
|
241
|
-
REJECT = 4, // từ chối duyệt
|
242
|
-
DELETE = 5, // đã xóa
|
243
|
-
}
|
244
|
-
|
245
|
-
export declare const CategoryStatus: ({ status }: CategoryStatusProps) => JSX.Element;
|
246
|
-
|
247
|
-
export declare interface CategoryStatusProps {
|
248
|
-
status: number;
|
249
|
-
}
|
250
|
-
|
251
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
252
|
-
|
253
|
-
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
254
|
-
field?: ControllerRenderProps<any, any>;
|
255
|
-
formState?: UseFormStateReturn<any>;
|
256
|
-
label?: string;
|
257
|
-
required?: boolean;
|
258
|
-
afterOnChange?: (checked: boolean) => void;
|
259
|
-
customStyleContainer?: string;
|
260
|
-
customStyleCheckbox?: string;
|
261
|
-
}
|
262
|
-
|
263
|
-
export declare const Col: (props: ColPropsUnion) => JSX.Element;
|
264
|
-
|
265
|
-
export declare interface ColProps extends ColProps_2, Partial<Record<Breakpoint, ColSpanType | ColSize>> {
|
266
|
-
}
|
267
|
-
|
268
|
-
export declare type ColPropsUnion = BaseProps_3 & ColProps;
|
269
|
-
|
270
|
-
export declare type ColSpanType = number | string;
|
271
|
-
|
272
|
-
declare type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
|
273
|
-
|
274
|
-
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
275
|
-
|
276
|
-
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
277
|
-
Item: typeof MenuItem;
|
278
|
-
SubMenu: typeof SubMenu;
|
279
|
-
Divider: typeof Divider_2;
|
280
|
-
ItemGroup: typeof ItemGroup;
|
281
|
-
};
|
282
|
-
|
283
|
-
export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
|
284
|
-
|
285
|
-
export declare interface ConfirmModalProps extends ModalProps {
|
286
|
-
title: string;
|
287
|
-
content: string;
|
288
|
-
titleCancelBtn?: string;
|
289
|
-
titleSubmitBtn?: string;
|
290
|
-
typeIcon: ConfirmModalType;
|
291
|
-
handleCancel?: () => void;
|
292
|
-
handleSubmit?: () => void;
|
293
|
-
}
|
294
|
-
|
295
|
-
export declare type ConfirmModalType = "success" | "error" | "warning" | "info";
|
296
|
-
|
297
|
-
export declare const Container: default_2.FC<ContainerProps>;
|
298
|
-
|
299
|
-
export declare interface ContainerProps {
|
300
|
-
children: default_2.ReactNode;
|
301
|
-
size?: TailwindMaxWidth;
|
302
|
-
className?: string;
|
303
|
-
}
|
304
|
-
|
305
|
-
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
306
|
-
|
307
|
-
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
308
|
-
field?: ControllerRenderProps<any, any>;
|
309
|
-
formState?: UseFormStateReturn<any>;
|
310
|
-
setValue?: UseFormSetValue<any>;
|
311
|
-
customStyleDatepicker?: string;
|
312
|
-
disabledInputChange?: boolean;
|
313
|
-
required?: boolean;
|
314
|
-
dateFormat?: string | string[];
|
315
|
-
placeholder?: string;
|
316
|
-
label?: string;
|
317
|
-
maxDate?: Date;
|
318
|
-
showTimeSelect?: boolean;
|
319
|
-
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
320
|
-
customValue?: Date | null;
|
321
|
-
size?: TSize;
|
322
|
-
}
|
323
|
-
|
324
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
325
|
-
|
326
|
-
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
327
|
-
|
328
|
-
declare const Divider_2: FC<MenuDividerProps>;
|
329
|
-
|
330
|
-
export declare interface DividerProps extends DividerProps_2 {
|
331
|
-
children?: ReactNode | string;
|
332
|
-
}
|
333
|
-
|
334
|
-
export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
|
335
|
-
|
336
|
-
export declare interface DrawerProps extends DrawerProps_2 {
|
337
|
-
children?: ReactNode;
|
338
|
-
onSubmit?: (values: any) => void;
|
339
|
-
}
|
340
|
-
|
341
|
-
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
342
|
-
|
343
|
-
export declare type DropdownButtonProps = DropdownButtonProps_2;
|
344
|
-
|
345
|
-
export declare type DropdownButtonType = DropdownButtonType_2;
|
346
|
-
|
347
|
-
export declare type DropdownProps = DropdownProps_2;
|
348
|
-
|
349
|
-
export declare type DropdownPropsUnion = BaseProps_5 & DropdownProps;
|
350
|
-
|
351
|
-
export declare const Empty: React.FC<EmptyProps>;
|
352
|
-
|
353
|
-
export declare type EmptyProps = EmptyProps_2;
|
354
|
-
|
355
|
-
export declare const ErrorBoundary: typeof ErrorBoundaryClass;
|
356
|
-
|
357
|
-
declare class ErrorBoundaryClass extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
358
|
-
constructor(props: ErrorBoundaryProps);
|
359
|
-
static getDerivedStateFromError(error: Error): ErrorBoundaryState;
|
360
|
-
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
361
|
-
handleReload: () => void;
|
362
|
-
render(): default_2.ReactNode;
|
363
|
-
}
|
364
|
-
|
365
|
-
export declare interface ErrorBoundaryProps {
|
366
|
-
children: ReactNode;
|
367
|
-
}
|
368
|
-
|
369
|
-
export declare interface ErrorBoundaryState {
|
370
|
-
hasError: boolean;
|
371
|
-
error: Error | null;
|
372
|
-
errorInfo: ErrorInfo | null;
|
373
|
-
}
|
374
|
-
|
375
|
-
export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
|
376
|
-
|
377
|
-
export declare interface ErrorMessageProps {
|
378
|
-
errorMessage?: string;
|
379
|
-
isTouched?: boolean;
|
380
|
-
isSubmitted?: boolean;
|
381
|
-
}
|
382
|
-
|
383
|
-
declare type ExtraProps = {
|
384
|
-
containerClassName?: string;
|
385
|
-
menuClassName?: string;
|
386
|
-
};
|
387
|
-
|
388
|
-
export declare const Flex: (props: FlexPropsUnion) => JSX.Element;
|
389
|
-
|
390
|
-
export declare type FlexProps = FlexProps_2;
|
391
|
-
|
392
|
-
export declare type FlexPropsUnion = BaseProps_7 & FlexProps;
|
393
|
-
|
394
|
-
declare interface GroupHeadingButtonItem {
|
395
|
-
label: string;
|
396
|
-
quantity: number;
|
397
|
-
isStatus: TypeStatusTable_3;
|
398
|
-
}
|
399
|
-
|
400
|
-
export declare const Heading: (props: HeadingProps) => JSX.Element;
|
401
|
-
|
402
|
-
export declare interface HeadingProps {
|
403
|
-
rightContent?: ReactNode;
|
404
|
-
children?: ReactNode;
|
405
|
-
noBreadcum?: boolean;
|
406
|
-
classNameWrapHeading?: string;
|
407
|
-
menu: Array<MenuType>;
|
408
|
-
}
|
409
|
-
|
410
|
-
declare interface IBulkActionsProps {
|
411
|
-
quantity?: number;
|
412
|
-
handleRestore?: () => void;
|
413
|
-
handleSendApproval?: () => void;
|
414
|
-
handleCancelSendApproval?: () => void;
|
415
|
-
handleRefuseApproval?: () => void;
|
416
|
-
handleApproval?: () => void;
|
417
|
-
handleCancelApproval?: () => void;
|
418
|
-
handleDelete?: () => void;
|
419
|
-
handleActivate?: () => void;
|
420
|
-
handleInActivate?: () => void;
|
421
|
-
status?: TypeStatusTable_2;
|
422
|
-
type: TypeBulkActions_2;
|
423
|
-
}
|
424
|
-
|
425
|
-
declare const Image_2: React.FC<ImageProps>;
|
426
|
-
export { Image_2 as Image }
|
427
|
-
|
428
|
-
export declare const Input: (props: InputProps) => JSX.Element;
|
429
|
-
|
430
|
-
export declare interface InputProps extends InputProps_2 {
|
431
|
-
field?: ControllerRenderProps<any, any>;
|
432
|
-
formState?: UseFormStateReturn<any>;
|
433
|
-
label?: string;
|
434
|
-
customStyleInput?: string;
|
435
|
-
type?: CustomInputTypeAttribute;
|
436
|
-
afterOnChange?: (value: number | string | null) => void;
|
437
|
-
iconStartInput?: default_2.ReactNode;
|
438
|
-
iconEndInput?: default_2.ReactNode;
|
439
|
-
allowNegative?: boolean;
|
440
|
-
decimalScale?: number;
|
441
|
-
prefix?: string;
|
442
|
-
suffix?: string;
|
443
|
-
}
|
444
|
-
|
445
|
-
export declare type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
446
|
-
|
447
|
-
declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref"> & RefAttributes<HTMLLIElement>>;
|
448
|
-
|
449
|
-
export declare type ItemType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
|
450
|
-
|
451
|
-
export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
|
452
|
-
|
453
|
-
export declare interface LabelProps {
|
454
|
-
label: string;
|
455
|
-
required?: boolean;
|
456
|
-
}
|
457
|
-
|
458
|
-
export declare const Layout: default_2.FC<LayoutProps> & {
|
459
|
-
Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
460
|
-
Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
461
|
-
Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
|
462
|
-
Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
|
463
|
-
_InternalSiderContext: default_2.Context<SiderContextProps>;
|
464
|
-
};
|
465
|
-
|
466
|
-
export declare type LayoutProps = BaseProps_8 & BasicProps;
|
467
|
-
|
468
|
-
export declare const Menu: CompoundedMenu;
|
469
|
-
|
470
|
-
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
471
|
-
|
472
|
-
declare const MenuItem: FC<MenuItemProps>;
|
473
|
-
|
474
|
-
export declare type MenuItemProps = MenuItemProps_2;
|
475
|
-
|
476
|
-
export declare type MenuProps = MenuProps_2;
|
477
|
-
|
478
|
-
export declare type MenuType = {
|
479
|
-
name: string;
|
480
|
-
path: string;
|
481
|
-
isShow: boolean;
|
482
|
-
isPrivateRoute?: boolean;
|
483
|
-
layout?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | typeof default_2.Component;
|
484
|
-
modules: {
|
485
|
-
name: string;
|
486
|
-
path: string;
|
487
|
-
icon?: ReactNode;
|
488
|
-
component: typeof default_2.Component | default_2.FC;
|
489
|
-
subMenu?: Array<{
|
490
|
-
name: string;
|
491
|
-
path: string;
|
492
|
-
icon: ReactNode;
|
493
|
-
component: typeof default_2.Component | default_2.FC;
|
494
|
-
children?: Array<{
|
495
|
-
name: string;
|
496
|
-
path: string;
|
497
|
-
icon: ReactNode;
|
498
|
-
component: typeof default_2.Component | default_2.FC;
|
499
|
-
}>;
|
500
|
-
}>;
|
501
|
-
}[];
|
502
|
-
};
|
503
|
-
|
504
|
-
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
505
|
-
|
506
|
-
export declare interface ModalProps extends ModalProps_2 {
|
507
|
-
children?: ReactNode;
|
508
|
-
}
|
509
|
-
|
510
|
-
declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
|
511
|
-
multiple: true;
|
512
|
-
};
|
513
|
-
|
514
|
-
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
515
|
-
type?: ArgsProps_2["type"];
|
516
|
-
};
|
517
|
-
|
518
|
-
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
519
|
-
message?: React.ReactNode;
|
520
|
-
type?: "success" | "error" | "info" | "warning";
|
521
|
-
};
|
522
|
-
|
523
|
-
export declare const PAGE_NUMBER = "page";
|
524
|
-
|
525
|
-
export declare const PAGE_SIZE = "size";
|
526
|
-
|
527
|
-
export declare const Pagination: typeof Pagination_2;
|
528
|
-
|
529
|
-
export declare type PaginationConfig = Omit<PaginationProps, "rootClassName"> & {
|
530
|
-
position?: "top" | "bottom" | "both";
|
531
|
-
};
|
532
|
-
|
533
|
-
export { PaginationLocale }
|
534
|
-
|
535
|
-
export declare type PaginationProps = PaginationProps_2;
|
536
|
-
|
537
|
-
export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
|
538
|
-
|
539
|
-
export declare const PnkxCollapse: React.FC<PnkxCollapseProps>;
|
540
|
-
|
541
|
-
export declare type PnkxCollapseProps = CollapseProps;
|
542
|
-
|
543
|
-
export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
|
544
|
-
|
545
|
-
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
546
|
-
render(): JSX.Element;
|
547
|
-
}
|
548
|
-
|
549
|
-
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
550
|
-
control: Control<any, any>;
|
551
|
-
name: string;
|
552
|
-
component: TComponent;
|
553
|
-
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
554
|
-
|
555
|
-
export declare interface PnkxSpinProps extends SpinProps {
|
556
|
-
children?: ReactNode;
|
557
|
-
}
|
558
|
-
|
559
|
-
export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
|
560
|
-
|
561
|
-
export declare interface PopconfirmProps extends PopconfirmProps_2 {
|
562
|
-
children?: ReactNode;
|
563
|
-
}
|
564
|
-
|
565
|
-
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
566
|
-
|
567
|
-
export declare type PopoverProps = PopoverProps_2;
|
568
|
-
|
569
|
-
export declare type PopoverPropsUnion = BaseProps_2 & PopoverProps;
|
570
|
-
|
571
|
-
export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
572
|
-
onChange?: (event: any) => void;
|
573
|
-
afterOnChange?: (value: string | number) => void;
|
574
|
-
value?: string;
|
575
|
-
name?: string;
|
576
|
-
ref: any;
|
577
|
-
type?: TInputNumberType;
|
578
|
-
prefix?: string;
|
579
|
-
suffix?: string;
|
580
|
-
helperText?: () => JSX_2.Element | null;
|
581
|
-
}
|
582
|
-
|
583
|
-
export declare const QRCode: React.FC<QRCodeProps>;
|
584
|
-
|
585
|
-
export declare type QRCodeProps = QRCodeProps_2;
|
586
|
-
|
587
|
-
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
588
|
-
|
589
|
-
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
590
|
-
field?: ControllerRenderProps<any, any>;
|
591
|
-
formState?: UseFormStateReturn<any>;
|
592
|
-
customStyleRadioGroup?: string;
|
593
|
-
customStyleRadio?: string;
|
594
|
-
customStyleWrap?: string;
|
595
|
-
afterOnChange?: (value: any) => void;
|
596
|
-
options: TOptionGRadio[];
|
597
|
-
position?: TPositionRadio;
|
598
|
-
}
|
599
|
-
|
600
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
601
|
-
|
602
|
-
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
603
|
-
field?: ControllerRenderProps<any, any>;
|
604
|
-
formState?: UseFormStateReturn<any>;
|
605
|
-
label?: string;
|
606
|
-
required?: boolean;
|
607
|
-
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
608
|
-
customStyleContainer?: string;
|
609
|
-
customStyleDatePicker?: string;
|
610
|
-
}
|
611
|
-
|
612
|
-
export declare const Rate: React.FC<RateProps>;
|
613
|
-
|
614
|
-
export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
|
615
|
-
|
616
|
-
export declare interface ResultProps extends ResultProps_2 {
|
617
|
-
children?: ReactNode | string;
|
618
|
-
}
|
619
|
-
|
620
|
-
export declare const Row: (props: RowPropsUnion) => JSX.Element;
|
621
|
-
|
622
|
-
declare interface RowCommon {
|
623
|
-
[x: string]: any;
|
624
|
-
}
|
625
|
-
|
626
|
-
export declare type RowPropsUnion = BaseProps_4 & RowProps;
|
627
|
-
|
628
|
-
export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
|
629
|
-
|
630
|
-
export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
631
|
-
renderFilterFields?: (options: {
|
632
|
-
control: Control<T, any, T>;
|
633
|
-
setValue?: UseFormSetValue<T>;
|
634
|
-
handleSubmit?: FormEventHandler<any>;
|
635
|
-
reset?: UseFormReset<T>;
|
636
|
-
}) => default_2.ReactNode;
|
637
|
-
onReset?: () => void;
|
638
|
-
classNamesContainer?: string;
|
639
|
-
classNameWrapperForm?: string;
|
640
|
-
hideDefaultSubmit?: boolean;
|
641
|
-
hideResetButton?: boolean;
|
642
|
-
initialValues?: DefaultValues<T>;
|
643
|
-
onSubmit: (data: T) => void;
|
644
|
-
}
|
645
|
-
|
646
|
-
export declare const Segmented: React.FC<SegmentedProps>;
|
647
|
-
|
648
|
-
export declare type SegmentedProps = SegmentedProps_2;
|
649
|
-
|
650
|
-
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
651
|
-
|
652
|
-
export declare interface SelectFieldProps extends SelectProps {
|
653
|
-
field?: ControllerRenderProps<any, any>;
|
654
|
-
formState?: UseFormStateReturn<any>;
|
655
|
-
setValue?: UseFormSetValue<any>;
|
656
|
-
label?: string;
|
657
|
-
required?: boolean;
|
658
|
-
afterOnChange?: (value: any) => void;
|
659
|
-
classNameContainer?: string;
|
660
|
-
classNameSelect?: string;
|
661
|
-
}
|
662
|
-
|
663
|
-
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX.Element;
|
664
|
-
|
665
|
-
export declare interface SidebarProps {
|
666
|
-
children?: default_2.ReactNode;
|
667
|
-
menu: Array<MenuType>;
|
668
|
-
userInfo?: {
|
669
|
-
avatar: string;
|
670
|
-
name: string;
|
671
|
-
email: string;
|
672
|
-
};
|
673
|
-
}
|
674
|
-
|
675
|
-
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
676
|
-
multiple?: false;
|
677
|
-
};
|
678
|
-
|
679
|
-
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
680
|
-
|
681
|
-
export declare interface SkeletonProps extends SkeletonProps_2 {
|
682
|
-
type?: "table" | "form";
|
683
|
-
skeletonButtonCount?: number;
|
684
|
-
}
|
685
|
-
|
686
|
-
export declare const SORT_BY = "SortBy";
|
687
|
-
|
688
|
-
export declare const SORT_DESC = "SortDesc";
|
689
|
-
|
690
|
-
export declare const Space: typeof Space_2;
|
691
|
-
|
692
|
-
export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
|
693
|
-
|
694
|
-
export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
|
695
|
-
|
696
|
-
export declare const Splitter: typeof Splitter_2;
|
697
|
-
|
698
|
-
export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
|
699
|
-
|
700
|
-
export declare const START_PAGE = 1;
|
701
|
-
|
702
|
-
export declare const START_PAGE_SIZE = 10;
|
703
|
-
|
704
|
-
export declare const Statistic: React.FC<StatisticProps>;
|
705
|
-
|
706
|
-
export declare type StatisticProps = StatisticProps_2;
|
707
|
-
|
708
|
-
export declare type StepProps = StepProps_2;
|
709
|
-
|
710
|
-
export declare const Steps: typeof Steps_2;
|
711
|
-
|
712
|
-
export declare interface StepsProps extends StepsProps_2 {
|
713
|
-
items?: StepProps[];
|
714
|
-
}
|
715
|
-
|
716
|
-
export declare type StepsPropsUnion = BaseProps_12 & StepsProps;
|
717
|
-
|
718
|
-
declare const SubMenu: FC<SubMenuProps>;
|
719
|
-
|
720
|
-
export declare type SubMenuProps = SubMenuProps_2;
|
721
|
-
|
722
|
-
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
723
|
-
|
724
|
-
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
725
|
-
field?: ControllerRenderProps<any, any>;
|
726
|
-
formState?: UseFormStateReturn<any>;
|
727
|
-
label?: string;
|
728
|
-
required?: boolean;
|
729
|
-
afterOnChange?: (checked: boolean) => void;
|
730
|
-
customStyleContainer?: string;
|
731
|
-
customStyleSwitch?: string;
|
732
|
-
}
|
733
|
-
|
734
|
-
declare type TabItem = {
|
735
|
-
key: string;
|
736
|
-
label: default_2.ReactNode;
|
737
|
-
children: default_2.ReactNode;
|
738
|
-
disabled?: boolean;
|
739
|
-
};
|
740
|
-
|
741
|
-
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, noBreadcum, ...rest }: TableCommonProps<T>) => JSX.Element;
|
742
|
-
|
743
|
-
export declare type TableColumnsType<T> = TableColumnsType_2<T> & TableColumnsTypeEditable<T>;
|
744
|
-
|
745
|
-
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
|
746
|
-
|
747
|
-
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
748
|
-
dataSource?: T[];
|
749
|
-
columns: TableColumnsType<T>;
|
750
|
-
loading?: boolean;
|
751
|
-
totalItems?: number;
|
752
|
-
filters: InitialFiltersSearch<TFilters>;
|
753
|
-
onChangePage: (page: number) => void;
|
754
|
-
onChangePageSize: (size: number) => void;
|
755
|
-
onSort?: (sortField: string | number | symbol) => void;
|
756
|
-
rowsSelected?: default_2.Key[];
|
757
|
-
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
758
|
-
onRowClick?: (record: T) => void;
|
759
|
-
rowKey?: string | ((record: T) => string);
|
760
|
-
titleSettingTableModal?: string;
|
761
|
-
showSetting?: boolean;
|
762
|
-
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
763
|
-
renderHeadingSearch: () => ReactNode;
|
764
|
-
rightHeadingContent: ReactNode;
|
765
|
-
menu: Array<MenuType>;
|
766
|
-
groupHeadingButtonItems?: GroupHeadingButtonItem[];
|
767
|
-
showIndexColumn?: boolean;
|
768
|
-
setFilters: (nextFilter: InitialFiltersSearch<TFilters>) => void;
|
769
|
-
noBreadcum?: boolean;
|
770
|
-
}
|
771
|
-
|
772
|
-
export declare const Tabs: default_2.FC<TabsProps>;
|
773
|
-
|
774
|
-
export declare type TabsProps = TabsProps_2 & {
|
775
|
-
items: TabItem[];
|
776
|
-
lazyRender?: boolean;
|
777
|
-
};
|
778
|
-
|
779
|
-
export declare const Tag: React.FC<TaglineProps>;
|
780
|
-
|
781
|
-
export declare interface TaglineProps extends TagProps {
|
782
|
-
children: React.ReactNode | string;
|
783
|
-
}
|
784
|
-
|
785
|
-
export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
|
786
|
-
|
787
|
-
export declare interface TextAreaProps extends TextAreaProps_2 {
|
788
|
-
field?: ControllerRenderProps<any, any>;
|
789
|
-
formState?: UseFormStateReturn<any>;
|
790
|
-
label?: string;
|
791
|
-
customStyleTextarea?: string;
|
792
|
-
afterOnChange?: (value: string) => void;
|
793
|
-
required?: boolean;
|
794
|
-
}
|
795
|
-
|
796
|
-
export declare type TFilters = {
|
797
|
-
isStatus?: TypeStatusTable_2;
|
798
|
-
};
|
799
|
-
|
800
|
-
export declare const Timeline: React.FC<TimelineProps>;
|
801
|
-
|
802
|
-
export declare type TimelineProps = TimelineProps_2;
|
803
|
-
|
804
|
-
declare type TInputNumberType = "number" | "money";
|
805
|
-
|
806
|
-
export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
807
|
-
|
808
|
-
export declare const TinyMCE: {
|
809
|
-
(props: TinyProps): JSX.Element;
|
810
|
-
displayName: string;
|
811
|
-
};
|
812
|
-
|
813
|
-
export declare interface TinyProps extends IAllProps {
|
814
|
-
height?: number | string;
|
815
|
-
openHidenMenubar?: boolean;
|
816
|
-
required?: boolean;
|
817
|
-
field?: ControllerRenderProps<any, any>;
|
818
|
-
formState?: UseFormStateReturn<any>;
|
819
|
-
label?: string;
|
820
|
-
customStyleLabel?: string;
|
821
|
-
text_patterns?: any;
|
822
|
-
}
|
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
|
-
|
837
|
-
export declare const Tooltip: default_2.FC<TooltipProps>;
|
838
|
-
|
839
|
-
export declare type TooltipProps = TooltipProps_2;
|
840
|
-
|
841
|
-
declare type TOptionGRadio = {
|
842
|
-
label: string;
|
843
|
-
value: string | number;
|
844
|
-
};
|
845
|
-
|
846
|
-
export declare const Tour: React.FC<TourProps>;
|
847
|
-
|
848
|
-
export declare type TourProps = TourProps_2;
|
849
|
-
|
850
|
-
declare type TPositionRadio = "before" | "after";
|
851
|
-
|
852
|
-
export declare const Tree: React.FC<TreeProps>;
|
853
|
-
|
854
|
-
export declare type TreeProps = TreeProps_2;
|
855
|
-
|
856
|
-
declare type TSize = "small" | "medium" | "large";
|
857
|
-
|
858
|
-
export declare enum TypeActionRowTable {
|
859
|
-
DELETE = "DELETE",
|
860
|
-
EDIT = "EDIT",
|
861
|
-
UNDO = "UNDO",
|
862
|
-
CANCELUNDO = "CANCELUNDO",
|
863
|
-
CHECKIN = "CHECKIN",
|
864
|
-
PRINT = "PRINT",
|
865
|
-
PAYMENT = "PAYMENT",
|
866
|
-
PLAY = "PLAY",
|
867
|
-
PAUSE = "PAUSE",
|
868
|
-
DOWNLOAD = "DOWNLOAD",
|
869
|
-
VIEW = "VIEW"
|
870
|
-
}
|
871
|
-
|
872
|
-
export declare enum TypeBulkActions {
|
873
|
-
BULKACTION = "bulkaction",
|
874
|
-
DROPLIST = "droplist"
|
875
|
-
}
|
876
|
-
|
877
|
-
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
878
|
-
|
879
|
-
export declare enum TypeStatusTable {
|
880
|
-
ALL = "ALL",// Tất cả
|
881
|
-
DRAFT = 0,// Tạo mới
|
882
|
-
WAITING_APPROVAL = 1,// Chờ duyệt
|
883
|
-
ACTIVE = 2,// Hoạt động
|
884
|
-
INACTIVE = 3,// Ngưng hoạt động
|
885
|
-
REJECTED = 4,// Từ chối duyệt
|
886
|
-
DELETED = 5
|
887
|
-
}
|
888
|
-
|
889
|
-
export declare const Typography: {
|
890
|
-
Title: (props: TitleProps) => JSX.Element;
|
891
|
-
Paragraph: (props: ParagraphProps) => JSX.Element;
|
892
|
-
Text: (props: TextProps) => JSX.Element;
|
893
|
-
};
|
894
|
-
|
895
|
-
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
896
|
-
|
897
|
-
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
898
|
-
field?: ControllerRenderProps<any, any>;
|
899
|
-
formState?: UseFormStateReturn<any>;
|
900
|
-
fieldState?: ControllerFieldState;
|
901
|
-
label?: string;
|
902
|
-
required?: boolean;
|
903
|
-
maxFiles?: number;
|
904
|
-
uploadButtonText?: string;
|
905
|
-
customStyleContainer?: string;
|
906
|
-
customStyleUpload?: string;
|
907
|
-
afterOnChange?: (fileList: UploadFile[]) => void;
|
908
|
-
}
|
909
|
-
|
910
|
-
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
911
|
-
|
912
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
913
|
-
(overrideProps?: OptionalArgsToast): void;
|
914
|
-
success(props?: OptionalArgsToast): void;
|
915
|
-
error(props?: OptionalArgsToast): void;
|
916
|
-
info(props?: OptionalArgsToast): void;
|
917
|
-
warning(props?: OptionalArgsToast): void;
|
918
|
-
};
|
919
|
-
|
920
|
-
export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
|
921
|
-
|
922
|
-
export { }
|
1
|
+
export * from './ui';
|
2
|
+
export * from './fields';
|
3
|
+
export * from './hooks';
|