@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/fields.d.ts
CHANGED
@@ -1,198 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
import { ControllerFieldState } from 'react-hook-form';
|
4
|
-
import { ControllerRenderProps } from 'react-hook-form';
|
5
|
-
import { Dayjs } from 'dayjs';
|
6
|
-
import { default as default_2 } from 'react';
|
7
|
-
import { IAllProps } from '@tinymce/tinymce-react';
|
8
|
-
import { InputProps as InputProps_2 } from 'antd';
|
9
|
-
import { JSX } from 'react/jsx-runtime';
|
10
|
-
import { JSX as JSX_2 } from 'react';
|
11
|
-
import { RadioGroupProps } from 'antd';
|
12
|
-
import { RangePickerProps } from 'antd/es/date-picker';
|
13
|
-
import * as React_2 from 'react';
|
14
|
-
import { ReactDatePickerProps } from 'react-datepicker';
|
15
|
-
import { SelectProps } from 'antd';
|
16
|
-
import { SwitchProps as SwitchProps_2 } from 'antd';
|
17
|
-
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
18
|
-
import { UploadFile } from 'antd';
|
19
|
-
import { UploadProps } from 'antd';
|
20
|
-
import { UseFormSetValue } from 'react-hook-form';
|
21
|
-
import { UseFormStateReturn } from 'react-hook-form';
|
22
|
-
|
23
|
-
export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
|
24
|
-
|
25
|
-
export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
|
26
|
-
field?: ControllerRenderProps<any, any>;
|
27
|
-
formState?: UseFormStateReturn<any>;
|
28
|
-
label?: string;
|
29
|
-
required?: boolean;
|
30
|
-
afterOnChange?: (checked: boolean) => void;
|
31
|
-
customStyleContainer?: string;
|
32
|
-
customStyleCheckbox?: string;
|
33
|
-
}
|
34
|
-
|
35
|
-
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
36
|
-
|
37
|
-
declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
|
38
|
-
|
39
|
-
export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
|
40
|
-
field?: ControllerRenderProps<any, any>;
|
41
|
-
formState?: UseFormStateReturn<any>;
|
42
|
-
setValue?: UseFormSetValue<any>;
|
43
|
-
customStyleDatepicker?: string;
|
44
|
-
disabledInputChange?: boolean;
|
45
|
-
required?: boolean;
|
46
|
-
dateFormat?: string | string[];
|
47
|
-
placeholder?: string;
|
48
|
-
label?: string;
|
49
|
-
maxDate?: Date;
|
50
|
-
showTimeSelect?: boolean;
|
51
|
-
customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
|
52
|
-
customValue?: Date | null;
|
53
|
-
size?: TSize;
|
54
|
-
}
|
55
|
-
|
56
|
-
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
57
|
-
|
58
|
-
export declare const Input: (props: InputProps) => JSX.Element;
|
59
|
-
|
60
|
-
export declare interface InputProps extends InputProps_2 {
|
61
|
-
field?: ControllerRenderProps<any, any>;
|
62
|
-
formState?: UseFormStateReturn<any>;
|
63
|
-
label?: string;
|
64
|
-
customStyleInput?: string;
|
65
|
-
type?: CustomInputTypeAttribute;
|
66
|
-
afterOnChange?: (value: number | string | null) => void;
|
67
|
-
iconStartInput?: default_2.ReactNode;
|
68
|
-
iconEndInput?: default_2.ReactNode;
|
69
|
-
allowNegative?: boolean;
|
70
|
-
decimalScale?: number;
|
71
|
-
prefix?: string;
|
72
|
-
suffix?: string;
|
73
|
-
}
|
74
|
-
|
75
|
-
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
76
|
-
render(): JSX.Element;
|
77
|
-
}
|
78
|
-
|
79
|
-
export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
|
80
|
-
control: Control<any, any>;
|
81
|
-
name: string;
|
82
|
-
component: TComponent;
|
83
|
-
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
84
|
-
|
85
|
-
export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
86
|
-
onChange?: (event: any) => void;
|
87
|
-
afterOnChange?: (value: string | number) => void;
|
88
|
-
value?: string;
|
89
|
-
name?: string;
|
90
|
-
ref: any;
|
91
|
-
type?: TInputNumberType;
|
92
|
-
prefix?: string;
|
93
|
-
suffix?: string;
|
94
|
-
helperText?: () => JSX_2.Element | null;
|
95
|
-
}
|
96
|
-
|
97
|
-
export declare const RadioGroup: (props: RadioProps) => JSX.Element;
|
98
|
-
|
99
|
-
export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
|
100
|
-
field?: ControllerRenderProps<any, any>;
|
101
|
-
formState?: UseFormStateReturn<any>;
|
102
|
-
customStyleRadioGroup?: string;
|
103
|
-
customStyleRadio?: string;
|
104
|
-
customStyleWrap?: string;
|
105
|
-
afterOnChange?: (value: any) => void;
|
106
|
-
options: TOptionGRadio[];
|
107
|
-
position?: TPositionRadio;
|
108
|
-
}
|
109
|
-
|
110
|
-
export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
|
111
|
-
|
112
|
-
export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
|
113
|
-
field?: ControllerRenderProps<any, any>;
|
114
|
-
formState?: UseFormStateReturn<any>;
|
115
|
-
label?: string;
|
116
|
-
required?: boolean;
|
117
|
-
afterOnChange?: (dates: [Dayjs | null, Dayjs | null] | null, dateStrings: [string, string]) => void;
|
118
|
-
customStyleContainer?: string;
|
119
|
-
customStyleDatePicker?: string;
|
120
|
-
}
|
121
|
-
|
122
|
-
export declare const Select: (props: SelectFieldProps) => JSX.Element;
|
123
|
-
|
124
|
-
export declare interface SelectFieldProps extends SelectProps {
|
125
|
-
field?: ControllerRenderProps<any, any>;
|
126
|
-
formState?: UseFormStateReturn<any>;
|
127
|
-
setValue?: UseFormSetValue<any>;
|
128
|
-
label?: string;
|
129
|
-
required?: boolean;
|
130
|
-
afterOnChange?: (value: any) => void;
|
131
|
-
classNameContainer?: string;
|
132
|
-
classNameSelect?: string;
|
133
|
-
}
|
134
|
-
|
135
|
-
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
136
|
-
|
137
|
-
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
138
|
-
field?: ControllerRenderProps<any, any>;
|
139
|
-
formState?: UseFormStateReturn<any>;
|
140
|
-
label?: string;
|
141
|
-
required?: boolean;
|
142
|
-
afterOnChange?: (checked: boolean) => void;
|
143
|
-
customStyleContainer?: string;
|
144
|
-
customStyleSwitch?: string;
|
145
|
-
}
|
146
|
-
|
147
|
-
export declare interface TextAreaProps extends TextAreaProps_2 {
|
148
|
-
field?: ControllerRenderProps<any, any>;
|
149
|
-
formState?: UseFormStateReturn<any>;
|
150
|
-
label?: string;
|
151
|
-
customStyleTextarea?: string;
|
152
|
-
afterOnChange?: (value: string) => void;
|
153
|
-
required?: boolean;
|
154
|
-
}
|
155
|
-
|
156
|
-
declare type TInputNumberType = "number" | "money";
|
157
|
-
|
158
|
-
export declare const TinyMCE: {
|
159
|
-
(props: TinyProps): JSX.Element;
|
160
|
-
displayName: string;
|
161
|
-
};
|
162
|
-
|
163
|
-
export declare interface TinyProps extends IAllProps {
|
164
|
-
height?: number | string;
|
165
|
-
openHidenMenubar?: boolean;
|
166
|
-
required?: boolean;
|
167
|
-
field?: ControllerRenderProps<any, any>;
|
168
|
-
formState?: UseFormStateReturn<any>;
|
169
|
-
label?: string;
|
170
|
-
customStyleLabel?: string;
|
171
|
-
text_patterns?: any;
|
172
|
-
}
|
173
|
-
|
174
|
-
declare type TOptionGRadio = {
|
175
|
-
label: string;
|
176
|
-
value: string | number;
|
177
|
-
};
|
178
|
-
|
179
|
-
declare type TPositionRadio = "before" | "after";
|
180
|
-
|
181
|
-
declare type TSize = "small" | "medium" | "large";
|
182
|
-
|
183
|
-
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
184
|
-
|
185
|
-
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
186
|
-
field?: ControllerRenderProps<any, any>;
|
187
|
-
formState?: UseFormStateReturn<any>;
|
188
|
-
fieldState?: ControllerFieldState;
|
189
|
-
label?: string;
|
190
|
-
required?: boolean;
|
191
|
-
maxFiles?: number;
|
192
|
-
uploadButtonText?: string;
|
193
|
-
customStyleContainer?: string;
|
194
|
-
customStyleUpload?: string;
|
195
|
-
afterOnChange?: (fileList: UploadFile[]) => void;
|
196
|
-
}
|
197
|
-
|
198
|
-
export { }
|
1
|
+
export * from './fields/index'
|
2
|
+
export {}
|
@@ -0,0 +1 @@
|
|
1
|
+
export default function useDebounce<T>(value: T, delay: number): T;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { ArgsProps } from 'antd/es/notification';
|
2
|
+
export type OptionalArgsToast = Partial<ArgsProps> & {
|
3
|
+
message?: React.ReactNode;
|
4
|
+
type?: "success" | "error" | "info" | "warning";
|
5
|
+
};
|
6
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
7
|
+
(overrideProps?: OptionalArgsToast): void;
|
8
|
+
success(props?: OptionalArgsToast): void;
|
9
|
+
error(props?: OptionalArgsToast): void;
|
10
|
+
info(props?: OptionalArgsToast): void;
|
11
|
+
warning(props?: OptionalArgsToast): void;
|
12
|
+
};
|
package/types/hooks.d.ts
CHANGED
@@ -1,23 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
5
|
-
type?: ArgsProps_2["type"];
|
6
|
-
};
|
7
|
-
|
8
|
-
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
9
|
-
message?: React.ReactNode;
|
10
|
-
type?: "success" | "error" | "info" | "warning";
|
11
|
-
};
|
12
|
-
|
13
|
-
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
14
|
-
|
15
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
16
|
-
(overrideProps?: OptionalArgsToast): void;
|
17
|
-
success(props?: OptionalArgsToast): void;
|
18
|
-
error(props?: OptionalArgsToast): void;
|
19
|
-
info(props?: OptionalArgsToast): void;
|
20
|
-
warning(props?: OptionalArgsToast): void;
|
21
|
-
};
|
22
|
-
|
23
|
-
export { }
|
1
|
+
export * from './hooks/index'
|
2
|
+
export {}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const SettingIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
export * from './RestoreIcon';
|
2
|
+
export * from './DragIcon';
|
3
|
+
export * from './SettingIcon';
|
4
|
+
export * from './SendApprovalIcon';
|
5
|
+
export * from './CancelSendApprovalIcon';
|
6
|
+
export * from './ApprovalIcon';
|
7
|
+
export * from './CancelApprovalIcon';
|
8
|
+
export * from './RefuseApprovalIcon';
|
9
|
+
export * from './RestoreIcon';
|
10
|
+
export * from './ActivateIcon';
|
11
|
+
export * from './DeleteIcon';
|
12
|
+
export * from './InActivateIcon';
|
13
|
+
export * from './PlusIcon';
|
14
|
+
export * from './SearchIcon';
|
15
|
+
export * from './AllowClearIcon';
|
16
|
+
export * from './EditIcon';
|
17
|
+
export * from './SearchAdvanceIcon';
|
18
|
+
export * from './MoreIcon';
|