@pnkx-lib/ui 1.9.83 → 1.9.84
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-bLE_HmL-.js → AntdIcon-CfjDMPv2.js} +1263 -17
- package/es/chunks/{Switch-Dbw7Aemy.js → Switch-BRvdbb0u.js} +1 -1
- package/es/chunks/{index-Bp_HTq2H.js → index-D_iOcbs8.js} +25 -4
- package/es/chunks/useMessage-CADDGtSx.js +15 -0
- package/es/chunks/useToast-DL7nQTK1.js +22 -0
- package/es/fields/index.js +2 -2
- package/es/hooks/index.js +2 -2
- package/es/index.js +5 -5
- package/es/ui/index.js +2 -3
- package/package.json +1 -1
- package/types/fields.d.ts +18 -15
- package/types/hooks.d.ts +5 -33
- package/types/index.d.ts +102 -108
- package/types/ui.d.ts +79 -61
- package/es/chunks/_MapCache-hm6_DB7i.js +0 -1255
- package/es/chunks/table-CrhlYiL4.js +0 -2448
- package/es/chunks/useMessage-B2e_06XS.js +0 -93
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, c as Icon, _ as _extends, d as classNames } from './AntdIcon-
|
1
|
+
import { g as get, j as jsxRuntimeExports, L as Label, t as twMerge, E as ErrorMessage, T as Typography, c as Icon, _ as _extends, d as classNames } from './AntdIcon-CfjDMPv2.js';
|
2
2
|
import { Select as Select$1, Radio, Upload, Image, Switch as Switch$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import { useState } from 'react';
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { j as jsxRuntimeExports, c as Icon, _ as _extends, e as _typeof, P as PnkxField, C as CheckboxField, t as twMerge, u as useForm, d as classNames, l as lodashExports, f as _arrayLikeToArray, h as _unsupportedIterableToArray, w as warningOnce, i as _createClass, k as _classCallCheck, m as _defineProperty, n as _slicedToArray, o as warning$1, p as canUseDom, q as _objectSpread2, r as updateCSS, s as removeCSS, v as _arrayWithHoles, x as _nonIterableRest, y as resetWarned$1, F as FastColor, z as generate, A as presetPrimaryColors, B as presetPalettes, G as _inherits, H as _createSuper, J as _assertThisInitialized, K as _objectWithoutProperties, M as IconContext, I as Input } from './AntdIcon-
|
1
|
+
import { j as jsxRuntimeExports, c as Icon, _ as _extends, e as _typeof, P as PnkxField, C as CheckboxField, t as twMerge, u as useForm, d as classNames, l as lodashExports, f as _arrayLikeToArray, h as _unsupportedIterableToArray, w as warningOnce, i as _createClass, k as _classCallCheck, m as _defineProperty, n as _slicedToArray, o as warning$1, p as canUseDom, q as _objectSpread2, r as updateCSS, s as removeCSS, v as _arrayWithHoles, x as _nonIterableRest, y as resetWarned$1, F as FastColor, z as generate, A as presetPrimaryColors, B as presetPalettes, G as _inherits, H as _createSuper, J as _assertThisInitialized, K as _objectWithoutProperties, M as IconContext, I as Input } from './AntdIcon-CfjDMPv2.js';
|
2
2
|
import { Button as Button$1, Cascader, Modal as Modal$1, Breadcrumb as Breadcrumb$1, Tooltip as Tooltip$1, Divider as Divider$2, Table as Table$1, Tabs as Tabs$1, Space as Space$1, Card, Skeleton as Skeleton$1, Popover as Popover$1, Badge as Badge$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Flex as Flex$1, Splitter as Splitter$1, Menu as Menu$1, Pagination as Pagination$1, Steps as Steps$1, Tag as Tag$1, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$1, Popconfirm as Popconfirm$1, QRCode as QRCode$1, Result as Result$1, Rate as Rate$1, Segmented as Segmented$1, Statistic as Statistic$1, Timeline as Timeline$1, Tour as Tour$1, Tree as Tree$1, Typography, Watermark as Watermark$1, Anchor as Anchor$1, Affix, AutoComplete as AutoComplete$1, Input as Input$1, Collapse, ColorPicker, Empty as Empty$2, Image as Image$1 } from 'antd';
|
3
3
|
import * as React from 'react';
|
4
4
|
import React__default, { version as version$1, isValidElement, useLayoutEffect as useLayoutEffect$1, useEffect, useRef, useMemo as useMemo$1, useCallback, useState, createContext, memo, useReducer, useContext, Component } from 'react';
|
5
5
|
import ReactDOM__default, { unstable_batchedUpdates, createPortal } from 'react-dom';
|
6
6
|
import { useLocation, useNavigate } from 'react-router';
|
7
|
-
import { u as useToast
|
7
|
+
import { u as useToast } from './useToast-DL7nQTK1.js';
|
8
8
|
|
9
9
|
const Button = (props) => {
|
10
10
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props });
|
@@ -9516,7 +9516,7 @@ function genStyleUtils(config) {
|
|
9516
9516
|
};
|
9517
9517
|
}
|
9518
9518
|
|
9519
|
-
const version = '5.25.
|
9519
|
+
const version = '5.25.0';
|
9520
9520
|
|
9521
9521
|
function isStableColor(color) {
|
9522
9522
|
return color >= 0 && color <= 255;
|
@@ -12720,6 +12720,27 @@ const CategoryStatus = ({ status }) => {
|
|
12720
12720
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde?.color, statusName: bagde?.text });
|
12721
12721
|
};
|
12722
12722
|
|
12723
|
+
const START_PAGE = 1;
|
12724
|
+
const START_PAGE_SIZE = 10;
|
12725
|
+
const PAGE_NUMBER = "page_number";
|
12726
|
+
const PAGE_SIZE = "page_size";
|
12727
|
+
const SORT_BY = "SortBy";
|
12728
|
+
const SORT_DESC = "SortDesc";
|
12729
|
+
var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
|
12730
|
+
TypeActionRowTable2["DELETE"] = "DELETE";
|
12731
|
+
TypeActionRowTable2["EDIT"] = "EDIT";
|
12732
|
+
TypeActionRowTable2["UNDO"] = "UNDO";
|
12733
|
+
TypeActionRowTable2["CANCELUNDO"] = "CANCELUNDO";
|
12734
|
+
TypeActionRowTable2["CHECKIN"] = "CHECKIN";
|
12735
|
+
TypeActionRowTable2["PRINT"] = "PRINT";
|
12736
|
+
TypeActionRowTable2["PAYMENT"] = "PAYMENT";
|
12737
|
+
TypeActionRowTable2["PLAY"] = "PLAY";
|
12738
|
+
TypeActionRowTable2["PAUSE"] = "PAUSE";
|
12739
|
+
TypeActionRowTable2["DOWNLOAD"] = "DOWNLOAD";
|
12740
|
+
TypeActionRowTable2["VIEW"] = "VIEW";
|
12741
|
+
return TypeActionRowTable2;
|
12742
|
+
})(TypeActionRowTable || {});
|
12743
|
+
|
12723
12744
|
const ActionRowTable = ({
|
12724
12745
|
type,
|
12725
12746
|
contentTooltip,
|
@@ -12757,4 +12778,4 @@ const ActionRowTable = ({
|
|
12757
12778
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderAction() });
|
12758
12779
|
};
|
12759
12780
|
|
12760
|
-
export { Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, ErrorBoundary as X, CategoryStatus as Y, ActionRowTable as Z, Tooltip as a, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider$1 as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
|
12781
|
+
export { START_PAGE_SIZE as $, Alert as A, Button as B, CascaderField as C, Dropdown as D, Anchor as E, Flex as F, Appfix as G, Heading as H, AutoComplete as I, PnkxCollapse as J, PnkxColorPicker as K, Layout as L, Modal as M, Empty as N, Image as O, Popover as P, QRCode as Q, Row as R, Skeleton as S, Table as T, BulkAction as U, ConfirmModal as V, Watermark as W, ErrorBoundary as X, CategoryStatus as Y, ActionRowTable as Z, START_PAGE as _, Tooltip as a, PAGE_NUMBER as a0, PAGE_SIZE as a1, SORT_BY as a2, SORT_DESC as a3, TypeActionRowTable as a4, Tabs as b, SearchFiltersForm as c, Container as d, Badge as e, Col as f, Breadcrumb as g, Space as h, Splitter as i, Menu as j, Pagination as k, Steps as l, Sidebar as m, Tag as n, Divider$1 as o, Spin as p, Drawer as q, Popconfirm as r, Result as s, typeColorMap as t, Rate as u, Segmented as v, Statistic as w, Timeline as x, Tour as y, Tree as z };
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { message } from 'antd';
|
2
|
+
|
3
|
+
const useMessage = (defaultProps) => {
|
4
|
+
return (overrideProps) => {
|
5
|
+
const mergedProps = {
|
6
|
+
type: defaultProps?.type,
|
7
|
+
content: defaultProps?.content,
|
8
|
+
...defaultProps,
|
9
|
+
...overrideProps
|
10
|
+
};
|
11
|
+
message.open(mergedProps);
|
12
|
+
};
|
13
|
+
};
|
14
|
+
|
15
|
+
export { useMessage as u };
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { notification } from 'antd';
|
2
|
+
|
3
|
+
const useToast = (defaultProps) => {
|
4
|
+
const toast = (overrideProps) => {
|
5
|
+
const { type = "info", ...rest } = { ...defaultProps, ...overrideProps };
|
6
|
+
const mergedProps = {
|
7
|
+
message: defaultProps?.message,
|
8
|
+
showProgress: true,
|
9
|
+
pauseOnHover: false,
|
10
|
+
...defaultProps,
|
11
|
+
...rest
|
12
|
+
};
|
13
|
+
notification[type](mergedProps);
|
14
|
+
};
|
15
|
+
toast.success = (props) => toast({ ...props, type: "success" });
|
16
|
+
toast.error = (props) => toast({ ...props, type: "error" });
|
17
|
+
toast.info = (props) => toast({ ...props, type: "info" });
|
18
|
+
toast.warning = (props) => toast({ ...props, type: "warning" });
|
19
|
+
return toast;
|
20
|
+
};
|
21
|
+
|
22
|
+
export { useToast as u };
|
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/hooks/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { u as useToast } from '../chunks/
|
2
|
-
export { u as
|
1
|
+
export { u as useToast } from '../chunks/useToast-DL7nQTK1.js';
|
2
|
+
export { u as useMessage } from '../chunks/useMessage-CADDGtSx.js';
|
package/es/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from './chunks/index-
|
2
|
-
export { C as CheckboxField, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TINY_API, b as TinyMCE, T as Typography } from './chunks/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-D_iOcbs8.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 {
|
5
|
-
export {
|
6
|
-
export { u as
|
4
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-BRvdbb0u.js';
|
5
|
+
export { u as useToast } from './chunks/useToast-DL7nQTK1.js';
|
6
|
+
export { u as useMessage } from './chunks/useMessage-CADDGtSx.js';
|
package/es/ui/index.js
CHANGED
@@ -1,4 +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, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree, W as Watermark, t as typeColorMap } from '../chunks/index-
|
2
|
-
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/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-D_iOcbs8.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';
|
4
|
-
export { P as PAGE_NUMBER, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable } from '../chunks/table-CrhlYiL4.js';
|
package/package.json
CHANGED
package/types/fields.d.ts
CHANGED
@@ -6,21 +6,21 @@ 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';
|
14
14
|
import { ReactDatePickerProps } from 'react-datepicker';
|
15
15
|
import { SelectProps } from 'antd';
|
16
|
-
import { SwitchProps } from 'antd';
|
16
|
+
import { SwitchProps as SwitchProps_2 } from 'antd';
|
17
17
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
18
18
|
import { UploadFile } from 'antd';
|
19
19
|
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>;
|
@@ -128,12 +128,13 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
128
128
|
label?: string;
|
129
129
|
required?: boolean;
|
130
130
|
afterOnChange?: (value: any) => void;
|
131
|
-
|
131
|
+
classNameContainer?: string;
|
132
|
+
classNameSelect?: string;
|
132
133
|
}
|
133
134
|
|
134
|
-
export declare const
|
135
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
135
136
|
|
136
|
-
export declare interface
|
137
|
+
export declare interface SwitchProps extends Omit<SwitchProps_2, "onChange"> {
|
137
138
|
field?: ControllerRenderProps<any, any>;
|
138
139
|
formState?: UseFormStateReturn<any>;
|
139
140
|
label?: string;
|
@@ -155,7 +156,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
|
|
155
156
|
declare type TInputNumberType = "number" | "money";
|
156
157
|
|
157
158
|
export declare const TinyMCE: {
|
158
|
-
(props: TinyProps):
|
159
|
+
(props: TinyProps): JSX.Element;
|
159
160
|
displayName: string;
|
160
161
|
};
|
161
162
|
|
@@ -179,6 +180,8 @@ declare type TPositionRadio = "before" | "after";
|
|
179
180
|
|
180
181
|
declare type TSize = "small" | "medium" | "large";
|
181
182
|
|
183
|
+
export declare const UploadField: (props: UploadFieldProps) => JSX.Element;
|
184
|
+
|
182
185
|
export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "onChange" | "fileList"> {
|
183
186
|
field?: ControllerRenderProps<any, any>;
|
184
187
|
formState?: UseFormStateReturn<any>;
|
package/types/hooks.d.ts
CHANGED
@@ -1,37 +1,15 @@
|
|
1
|
-
import { ArgsProps } from 'antd/
|
2
|
-
import { ArgsProps as ArgsProps_2 } from 'antd/
|
3
|
-
import { default as default_2 } from 'react';
|
1
|
+
import { ArgsProps } from 'antd/es/notification';
|
2
|
+
import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
|
4
3
|
|
5
|
-
export declare type
|
6
|
-
|
7
|
-
export declare type OptionalArgsMessage = Partial<ArgsProps> & {
|
8
|
-
type?: ArgsProps["type"];
|
4
|
+
export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
5
|
+
type?: ArgsProps_2["type"];
|
9
6
|
};
|
10
7
|
|
11
|
-
export declare type OptionalArgsToast = Partial<
|
8
|
+
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
12
9
|
message?: React.ReactNode;
|
13
10
|
type?: "success" | "error" | "info" | "warning";
|
14
11
|
};
|
15
12
|
|
16
|
-
export declare interface PaginationFilters {
|
17
|
-
PageSize: number;
|
18
|
-
PageIndex: number;
|
19
|
-
}
|
20
|
-
|
21
|
-
export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
|
22
|
-
filters: InitialFiltersSearch<T>;
|
23
|
-
rowsSelected: default_2.Key[];
|
24
|
-
setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
|
25
|
-
setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
|
26
|
-
goToPage: (PageIndex: number) => void;
|
27
|
-
changeRowlimit: (value: number) => void;
|
28
|
-
resetToInitialFilters: () => void;
|
29
|
-
handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
|
30
|
-
handleChangePage: (nextPage: number) => void;
|
31
|
-
handleRequestSort: (sortField: string | number | symbol) => void;
|
32
|
-
handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
|
33
|
-
};
|
34
|
-
|
35
13
|
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
36
14
|
|
37
15
|
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
@@ -42,10 +20,4 @@ export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
|
42
20
|
warning(props?: OptionalArgsToast): void;
|
43
21
|
};
|
44
22
|
|
45
|
-
export declare const useToggle: () => {
|
46
|
-
open: boolean;
|
47
|
-
toggle: () => void;
|
48
|
-
shouldRender: boolean;
|
49
|
-
};
|
50
|
-
|
51
23
|
export { }
|