@pnkx-lib/ui 1.9.33 → 1.9.35

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.
@@ -4,7 +4,7 @@ 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, T as TypeActionRowTable } from './table-CkR9wuFb.js';
7
+ import { u as useToast, T as TypeActionRowTable } from './table-B28OPA57.js';
8
8
 
9
9
  const Button = (props) => {
10
10
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { ...props });
@@ -2190,8 +2190,8 @@ const styles$1 = {
2190
2190
  }
2191
2191
  };
2192
2192
 
2193
- const Modal = ({ children, onOk, onSubmit, ...rest }) => {
2194
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1, { onOk: onSubmit ? onSubmit : onOk, ...rest, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "", children: onSubmit ? /* @__PURE__ */ jsxRuntimeExports.jsx("form", { onSubmit, children }) : children }) });
2193
+ const Modal = ({ children, ...rest }) => {
2194
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Modal$1, { ...rest, children });
2195
2195
  };
2196
2196
 
2197
2197
  const SettingColumnItem = ({ lable, name, control }) => {
@@ -6,6 +6,8 @@ const useToast = (defaultProps) => {
6
6
  const { type = "info", ...rest } = { ...defaultProps, ...overrideProps };
7
7
  const mergedProps = {
8
8
  message: defaultProps?.message,
9
+ showProgress: true,
10
+ pauseOnHover: false,
9
11
  ...defaultProps,
10
12
  ...rest
11
13
  };
@@ -1,5 +1,5 @@
1
1
  import { useState, useCallback } from 'react';
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';
2
+ import { e as cloneDeep, P as PAGE_INDEX, S as START_PAGE, d as SORT_DESC, c as SORT_BY } from './table-B28OPA57.js';
3
3
  import { message } from 'antd';
4
4
 
5
5
  const useFiltersHandler = (initialFilters) => {
package/es/hooks/index.js CHANGED
@@ -1,2 +1,2 @@
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';
1
+ export { u as useToast } from '../chunks/table-B28OPA57.js';
2
+ export { u as useFiltersHandler, a as useMessage, b as useToggle } from '../chunks/useToggle-C5Y4aFUQ.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--Nu4exC1.js';
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-DqaASOI_.js';
2
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 TypeActionRowTable, u as useToast } from './chunks/table-CkR9wuFb.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-B28OPA57.js';
5
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';
6
+ export { u as useFiltersHandler, a as useMessage, b as useToggle } from './chunks/useToggle-C5Y4aFUQ.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, W as Watermark, t as typeColorMap } from '../chunks/index--Nu4exC1.js';
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-DqaASOI_.js';
2
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 TypeActionRowTable } from '../chunks/table-CkR9wuFb.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 } from '../chunks/table-B28OPA57.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.33",
4
+ "version": "1.9.35",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/index.d.ts CHANGED
@@ -451,11 +451,10 @@ export declare type MenuItemProps = MenuItemProps_2;
451
451
 
452
452
  export declare type MenuProps = MenuProps_2;
453
453
 
454
- export declare const Modal: ({ children, onOk, onSubmit, ...rest }: ModalProps) => JSX.Element;
454
+ export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
455
455
 
456
456
  export declare interface ModalProps extends ModalProps_2 {
457
457
  children?: ReactNode;
458
- onSubmit?: () => void;
459
458
  }
460
459
 
461
460
  declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
package/types/ui.d.ts CHANGED
@@ -378,11 +378,10 @@ export declare type MenuItemProps = MenuItemProps_2;
378
378
 
379
379
  export declare type MenuProps = MenuProps_2;
380
380
 
381
- export declare const Modal: ({ children, onOk, onSubmit, ...rest }: ModalProps) => JSX.Element;
381
+ export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
382
382
 
383
383
  export declare interface ModalProps extends ModalProps_2 {
384
384
  children?: ReactNode;
385
- onSubmit?: () => void;
386
385
  }
387
386
 
388
387
  declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {