@pnkx-lib/ui 1.9.30 → 1.9.33
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/es/chunks/{Radio-BE-sL0ho.js → Radio-5j1KNRlx.js} +1 -1
- package/es/chunks/{Switch-H8GzjkR9.js → Switch-Ck9WdQgt.js} +4 -2
- package/es/chunks/{common-4_3NhSHz.js → _MapCache-hm6_DB7i.js} +1 -9
- package/es/chunks/{index-Ss1suTQv.js → index--Nu4exC1.js} +3 -18
- package/es/chunks/{cloneDeep-xYGaHZ-t.js → table-CkR9wuFb.js} +32 -7
- package/es/chunks/{useToggle-BIw2Mg29.js → useToggle-DBELKqXr.js} +1 -2
- package/es/fields/index.js +2 -2
- package/es/hooks/index.js +2 -2
- package/es/index.js +5 -6
- package/es/ui/index.js +3 -3
- package/package.json +6 -2
- package/types/hooks.d.ts +8 -1
- package/types/index.d.ts +8 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-
|
1
|
+
import { g as get, j as jsxRuntimeExports, L as Label, E as ErrorMessage, T as Typography } from './Switch-Ck9WdQgt.js';
|
2
2
|
import { Select as Select$1, Radio } from 'antd';
|
3
3
|
|
4
4
|
const Select = (props) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import React__default, { useRef, useState, useEffect, useLayoutEffect, useMemo, forwardRef, useCallback, createElement, Component, createRef, createContext, useContext } from 'react';
|
3
3
|
import { Typography as Typography$1, Input as Input$1, Checkbox, DatePicker, Upload, Image, Switch } from 'antd';
|
4
|
-
import {
|
4
|
+
import { e as require_baseGetTag, f as requireIsObjectLike, i as requireIsArray, b as require_MapCache, m as require_Symbol, n as getDefaultExportFromCjs, o as commonjsGlobal } from './_MapCache-hm6_DB7i.js';
|
5
5
|
import * as ReactDOM from 'react-dom';
|
6
6
|
import ReactDOM__default, { findDOMNode } from 'react-dom';
|
7
7
|
|
@@ -7462,6 +7462,8 @@ var Editor = /** @class */ (function (_super) {
|
|
7462
7462
|
return Editor;
|
7463
7463
|
}(React.Component));
|
7464
7464
|
|
7465
|
+
const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
|
7466
|
+
|
7465
7467
|
var lodash$1 = {exports: {}};
|
7466
7468
|
|
7467
7469
|
/**
|
@@ -39384,4 +39386,4 @@ const SwitchField = (props) => {
|
|
39384
39386
|
};
|
39385
39387
|
React__default.memo(SwitchField);
|
39386
39388
|
|
39387
|
-
export {
|
39389
|
+
export { _inherits as A, _createSuper as B, CheckboxField as C, DatePickerField as D, ErrorMessage as E, FastColor as F, _assertThisInitialized$1 as G, _objectWithoutProperties as H, Input as I, IconContext as J, Label as L, PnkxField as P, RangePickerField as R, Typography as T, _extends as _, TINY_API as a, TinyMCE as b, Icon as c, _typeof as d, classNames as e, _arrayLikeToArray as f, get$1 as g, _unsupportedIterableToArray as h, _createClass as i, jsxRuntimeExports as j, _classCallCheck as k, _defineProperty as l, _slicedToArray as m, warning$1 as n, canUseDom as o, _objectSpread2 as p, updateCSS as q, removeCSS as r, _arrayWithHoles as s, _nonIterableRest as t, useForm as u, resetWarned as v, warningOnce as w, generate$1 as x, presetPrimaryColors as y, presetPalettes as z };
|
@@ -1252,12 +1252,4 @@ function require_MapCache () {
|
|
1252
1252
|
return _MapCache;
|
1253
1253
|
}
|
1254
1254
|
|
1255
|
-
|
1256
|
-
const START_PAGE = 1;
|
1257
|
-
const START_PAGE_SIZE = 10;
|
1258
|
-
const PAGE_INDEX = "PageIndex";
|
1259
|
-
const PAGE_SIZE = "PageSize";
|
1260
|
-
const SORT_BY = "SortBy";
|
1261
|
-
const SORT_DESC = "SortDesc";
|
1262
|
-
|
1263
|
-
export { PAGE_INDEX as P, START_PAGE as S, TINY_API as T, START_PAGE_SIZE as a, PAGE_SIZE as b, SORT_BY as c, SORT_DESC as d, require_Map as e, require_MapCache as f, require_getNative as g, requireEq as h, require_baseGetTag as i, requireIsObjectLike as j, require_root as k, require_freeGlobal as l, requireIsArray as m, requireIsFunction as n, requireIsObject as o, require_toSource as p, require_Symbol as q, require_ListCache as r, getDefaultExportFromCjs as s, commonjsGlobal as t };
|
1255
|
+
export { require_Map as a, require_MapCache as b, require_getNative as c, requireEq as d, require_baseGetTag as e, requireIsObjectLike as f, require_root as g, require_freeGlobal as h, requireIsArray as i, requireIsFunction as j, requireIsObject as k, require_toSource as l, require_Symbol as m, getDefaultExportFromCjs as n, commonjsGlobal as o, require_ListCache as r };
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { j as jsxRuntimeExports,
|
1
|
+
import { j as jsxRuntimeExports, c as Icon, _ as _extends, d as _typeof, P as PnkxField, C as CheckboxField, u as useForm, I as Input, e as classNames, f as _arrayLikeToArray, h as _unsupportedIterableToArray, w as warningOnce, i as _createClass, k as _classCallCheck, l as _defineProperty, m as _slicedToArray, n as warning$1, o as canUseDom, p as _objectSpread2, q as updateCSS, r as removeCSS, s as _arrayWithHoles, t as _nonIterableRest, v as resetWarned$1, F as FastColor, x as generate, y as presetPrimaryColors, z as presetPalettes, A as _inherits, B as _createSuper, G as _assertThisInitialized, H as _objectWithoutProperties, J as IconContext } from './Switch-Ck9WdQgt.js';
|
2
2
|
import { Button as Button$1, Cascader, Space as Space$1, Card, Skeleton as Skeleton$1, Modal as Modal$1, Tooltip as Tooltip$1, Popconfirm as Popconfirm$1, Typography, Table as Table$1, Tabs as Tabs$1, Popover as Popover$1, Badge as Badge$1, Col as Col$1, Row as Row$1, Dropdown as Dropdown$1, Breadcrumb as Breadcrumb$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, Divider as Divider$2, Alert as Alert$1, Spin as Spin$1, Drawer as Drawer$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, 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 { useNavigate, useLocation } from 'react-router';
|
7
|
-
import { u as useToast } from './
|
7
|
+
import { u as useToast, T as TypeActionRowTable } from './table-CkR9wuFb.js';
|
8
8
|
|
9
9
|
const Button = (props) => {
|
10
10
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props });
|
@@ -17273,21 +17273,6 @@ const CategoryStatus = ({ status }) => {
|
|
17273
17273
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemStatus, { color: bagde.color, statusName: bagde.text }) });
|
17274
17274
|
};
|
17275
17275
|
|
17276
|
-
var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
|
17277
|
-
TypeActionRowTable2["DELETE"] = "DELETE";
|
17278
|
-
TypeActionRowTable2["EDIT"] = "EDIT";
|
17279
|
-
TypeActionRowTable2["UNDO"] = "UNDO";
|
17280
|
-
TypeActionRowTable2["CANCELUNDO"] = "CANCELUNDO";
|
17281
|
-
TypeActionRowTable2["CHECKIN"] = "CHECKIN";
|
17282
|
-
TypeActionRowTable2["PRINT"] = "PRINT";
|
17283
|
-
TypeActionRowTable2["PAYMENT"] = "PAYMENT";
|
17284
|
-
TypeActionRowTable2["PLAY"] = "PLAY";
|
17285
|
-
TypeActionRowTable2["PAUSE"] = "PAUSE";
|
17286
|
-
TypeActionRowTable2["DOWNLOAD"] = "DOWNLOAD";
|
17287
|
-
TypeActionRowTable2["VIEW"] = "VIEW";
|
17288
|
-
return TypeActionRowTable2;
|
17289
|
-
})(TypeActionRowTable || {});
|
17290
|
-
|
17291
17276
|
const ActionRowTable = ({
|
17292
17277
|
type,
|
17293
17278
|
contentTooltip,
|
@@ -17357,4 +17342,4 @@ const ActionRowTable = ({
|
|
17357
17342
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: renderAction() });
|
17358
17343
|
};
|
17359
17344
|
|
17360
|
-
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,
|
17345
|
+
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 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 };
|
@@ -1,17 +1,21 @@
|
|
1
1
|
import { notification } from 'antd';
|
2
|
-
import { r as require_ListCache,
|
2
|
+
import { r as require_ListCache, a as require_Map, b as require_MapCache, c as require_getNative, d as requireEq, e as require_baseGetTag, f as requireIsObjectLike, g as require_root, h as require_freeGlobal, i as requireIsArray, j as requireIsFunction, k as requireIsObject, l as require_toSource, m as require_Symbol, n as getDefaultExportFromCjs } from './_MapCache-hm6_DB7i.js';
|
3
3
|
|
4
4
|
const useToast = (defaultProps) => {
|
5
|
-
|
5
|
+
const toast = (overrideProps) => {
|
6
|
+
const { type = "info", ...rest } = { ...defaultProps, ...overrideProps };
|
6
7
|
const mergedProps = {
|
7
8
|
message: defaultProps?.message,
|
8
|
-
showProgress: true,
|
9
|
-
pauseOnHover: false,
|
10
9
|
...defaultProps,
|
11
|
-
...
|
10
|
+
...rest
|
12
11
|
};
|
13
|
-
notification
|
12
|
+
notification[type](mergedProps);
|
14
13
|
};
|
14
|
+
toast.success = (props) => toast({ ...props, type: "success" });
|
15
|
+
toast.error = (props) => toast({ ...props, type: "error" });
|
16
|
+
toast.info = (props) => toast({ ...props, type: "info" });
|
17
|
+
toast.warning = (props) => toast({ ...props, type: "warning" });
|
18
|
+
return toast;
|
15
19
|
};
|
16
20
|
|
17
21
|
var _stackClear;
|
@@ -2418,4 +2422,25 @@ function requireCloneDeep () {
|
|
2418
2422
|
var cloneDeepExports = requireCloneDeep();
|
2419
2423
|
const cloneDeep = /*@__PURE__*/getDefaultExportFromCjs(cloneDeepExports);
|
2420
2424
|
|
2421
|
-
|
2425
|
+
const START_PAGE = 1;
|
2426
|
+
const START_PAGE_SIZE = 10;
|
2427
|
+
const PAGE_INDEX = "PageIndex";
|
2428
|
+
const PAGE_SIZE = "PageSize";
|
2429
|
+
const SORT_BY = "SortBy";
|
2430
|
+
const SORT_DESC = "SortDesc";
|
2431
|
+
var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
|
2432
|
+
TypeActionRowTable2["DELETE"] = "DELETE";
|
2433
|
+
TypeActionRowTable2["EDIT"] = "EDIT";
|
2434
|
+
TypeActionRowTable2["UNDO"] = "UNDO";
|
2435
|
+
TypeActionRowTable2["CANCELUNDO"] = "CANCELUNDO";
|
2436
|
+
TypeActionRowTable2["CHECKIN"] = "CHECKIN";
|
2437
|
+
TypeActionRowTable2["PRINT"] = "PRINT";
|
2438
|
+
TypeActionRowTable2["PAYMENT"] = "PAYMENT";
|
2439
|
+
TypeActionRowTable2["PLAY"] = "PLAY";
|
2440
|
+
TypeActionRowTable2["PAUSE"] = "PAUSE";
|
2441
|
+
TypeActionRowTable2["DOWNLOAD"] = "DOWNLOAD";
|
2442
|
+
TypeActionRowTable2["VIEW"] = "VIEW";
|
2443
|
+
return TypeActionRowTable2;
|
2444
|
+
})(TypeActionRowTable || {});
|
2445
|
+
|
2446
|
+
export { PAGE_INDEX as P, START_PAGE as S, TypeActionRowTable as T, START_PAGE_SIZE as a, PAGE_SIZE as b, SORT_BY as c, SORT_DESC as d, cloneDeep as e, useToast as u };
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { useState, useCallback } from 'react';
|
2
|
-
import {
|
3
|
-
import { P as PAGE_INDEX, S as START_PAGE, d as SORT_DESC, c as SORT_BY } from './common-4_3NhSHz.js';
|
2
|
+
import { e as cloneDeep, P as PAGE_INDEX, S as START_PAGE, d as SORT_DESC, c as SORT_BY } from './table-CkR9wuFb.js';
|
4
3
|
import { message } from 'antd';
|
5
4
|
|
6
5
|
const useFiltersHandler = (initialFilters) => {
|
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,
|
2
|
-
export { R as RadioGroup, S as Select } from '../chunks/Radio-
|
1
|
+
export { C as CheckboxField, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, b as TinyMCE } from '../chunks/Switch-Ck9WdQgt.js';
|
2
|
+
export { R as RadioGroup, S as Select } from '../chunks/Radio-5j1KNRlx.js';
|
package/es/hooks/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { u as useToast } from '../chunks/
|
2
|
-
export { u as useFiltersHandler, a as useMessage, b as useToggle } from '../chunks/useToggle-
|
1
|
+
export { u as useToast } from '../chunks/table-CkR9wuFb.js';
|
2
|
+
export { u as useFiltersHandler, a as useMessage, b as useToggle } from '../chunks/useToggle-DBELKqXr.js';
|
package/es/index.js
CHANGED
@@ -1,7 +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,
|
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 TinyMCE, T as Typography } from './chunks/Switch-
|
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--Nu4exC1.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/Switch-Ck9WdQgt.js';
|
3
3
|
import 'react-router';
|
4
|
-
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as
|
5
|
-
export { R as RadioGroup, S as Select } from './chunks/Radio-
|
6
|
-
export { u as
|
7
|
-
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-BIw2Mg29.js';
|
4
|
+
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable, u as useToast } from './chunks/table-CkR9wuFb.js';
|
5
|
+
export { R as RadioGroup, S as Select } from './chunks/Radio-5j1KNRlx.js';
|
6
|
+
export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-DBELKqXr.js';
|
package/es/ui/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, Y as CategoryStatus, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, X as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, k as Pagination, J as PnkxCollapse, K as PnkxColorPicker, r as Popconfirm, P as Popover, Q as QRCode, u as Rate, s as Result, R as Row, c as SearchFiltersForm, v as Segmented, m as Sidebar, S as Skeleton, h as Space, p as Spin, i as Splitter, w as Statistic, l as Steps, T as Table, b as Tabs, n as Tag, x as Timeline, a as Tooltip, y as Tour, z as Tree,
|
2
|
-
export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-
|
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--Nu4exC1.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/Switch-Ck9WdQgt.js';
|
3
3
|
import 'react-router';
|
4
|
-
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as
|
4
|
+
export { P as PAGE_INDEX, b as PAGE_SIZE, c as SORT_BY, d as SORT_DESC, S as START_PAGE, a as START_PAGE_SIZE, T as TypeActionRowTable } from '../chunks/table-CkR9wuFb.js';
|
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.33",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./es/index.js",
|
7
7
|
"module": "./es/index.js",
|
@@ -42,7 +42,11 @@
|
|
42
42
|
"build": "npm run build:css && vite build",
|
43
43
|
"serve": "vite preview",
|
44
44
|
"lint": "eslint .",
|
45
|
-
"build-storybook": "storybook build"
|
45
|
+
"build-storybook": "storybook build",
|
46
|
+
"clean": "rm -rf types es dist",
|
47
|
+
"release:patch": "npm run clean && npm version patch && npm run build && npm publish",
|
48
|
+
"release:minor": "npm run clean && npm version minor && npm run build && npm publish",
|
49
|
+
"release:major": "npm run clean && npm version major && npm run build && npm publish"
|
46
50
|
},
|
47
51
|
"devDependencies": {
|
48
52
|
"@chromatic-com/storybook": "^3.2.6",
|
package/types/hooks.d.ts
CHANGED
@@ -10,6 +10,7 @@ export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
|
10
10
|
|
11
11
|
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
12
12
|
message?: React.ReactNode;
|
13
|
+
type?: "success" | "error" | "info" | "warning";
|
13
14
|
};
|
14
15
|
|
15
16
|
export declare interface PaginationFilters {
|
@@ -33,7 +34,13 @@ export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch
|
|
33
34
|
|
34
35
|
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
35
36
|
|
36
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) =>
|
37
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
38
|
+
(overrideProps?: OptionalArgsToast): void;
|
39
|
+
success(props?: OptionalArgsToast): void;
|
40
|
+
error(props?: OptionalArgsToast): void;
|
41
|
+
info(props?: OptionalArgsToast): void;
|
42
|
+
warning(props?: OptionalArgsToast): void;
|
43
|
+
};
|
37
44
|
|
38
45
|
export declare const useToggle: () => {
|
39
46
|
open: boolean;
|
package/types/index.d.ts
CHANGED
@@ -468,6 +468,7 @@ export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
|
|
468
468
|
|
469
469
|
export declare type OptionalArgsToast = Partial<ArgsProps> & {
|
470
470
|
message?: React.ReactNode;
|
471
|
+
type?: "success" | "error" | "info" | "warning";
|
471
472
|
};
|
472
473
|
|
473
474
|
export declare const PAGE_INDEX = "PageIndex";
|
@@ -844,7 +845,13 @@ export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch
|
|
844
845
|
|
845
846
|
export declare const useMessage: (defaultProps?: OptionalArgsMessage) => (overrideProps?: OptionalArgsMessage) => void;
|
846
847
|
|
847
|
-
export declare const useToast: (defaultProps?: OptionalArgsToast) =>
|
848
|
+
export declare const useToast: (defaultProps?: OptionalArgsToast) => {
|
849
|
+
(overrideProps?: OptionalArgsToast): void;
|
850
|
+
success(props?: OptionalArgsToast): void;
|
851
|
+
error(props?: OptionalArgsToast): void;
|
852
|
+
info(props?: OptionalArgsToast): void;
|
853
|
+
warning(props?: OptionalArgsToast): void;
|
854
|
+
};
|
848
855
|
|
849
856
|
export declare const useToggle: () => {
|
850
857
|
open: boolean;
|