@pnkx-lib/ui 1.9.86 → 1.9.87
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 +1 -1
- package/es/chunks/{index-C9TMk2WQ.js → index-3YgUpR-Y.js} +238 -247
- package/es/index.js +1 -1
- package/es/ui/index.js +1 -1
- package/package.json +3 -2
- package/types/index.d.ts +36 -35
- package/types/ui.d.ts +36 -35
package/es/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, 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-
|
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-3YgUpR-Y.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/AntdIcon-CfjDMPv2.js';
|
3
3
|
import 'react-router';
|
4
4
|
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-BRvdbb0u.js';
|
package/es/ui/index.js
CHANGED
@@ -1,3 +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, 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-
|
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-3YgUpR-Y.js';
|
2
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';
|
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.87",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./es/index.js",
|
7
7
|
"module": "./es/index.js",
|
@@ -103,6 +103,7 @@
|
|
103
103
|
"@headlessui/react": "^2.2.2",
|
104
104
|
"@heroicons/react": "^2.2.0",
|
105
105
|
"@hookform/resolvers": "^5.0.1",
|
106
|
+
"@pnkx-lib/core": "^1.1.7",
|
106
107
|
"@tailwindcss/cli": "^4.1.6",
|
107
108
|
"@tinymce/tinymce-react": "^6.0.0",
|
108
109
|
"@vitejs/plugin-react-swc": "^3.9.0",
|
@@ -111,7 +112,7 @@
|
|
111
112
|
"lodash": "^4.17.21",
|
112
113
|
"react-datepicker": "^4.16.0",
|
113
114
|
"react-hook-form": "^7.54.2",
|
114
|
-
"react-i18next": "^15.5.
|
115
|
+
"react-i18next": "^15.5.2",
|
115
116
|
"react-number-format": "^5.4.3",
|
116
117
|
"tailwind-merge": "^3.3.0",
|
117
118
|
"yup": "^1.6.1",
|
package/types/index.d.ts
CHANGED
@@ -47,7 +47,7 @@ import { JSX as JSX_2 } from 'react';
|
|
47
47
|
import { MenuDividerProps } from 'antd/es/menu';
|
48
48
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
49
49
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
50
|
-
import { MenuProps as
|
50
|
+
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
51
51
|
import { ModalProps as ModalProps_2 } from 'antd';
|
52
52
|
import { Pagination as Pagination_2 } from 'antd';
|
53
53
|
import { PaginationFilters } from '../../../../../../../../../../../src/interface/common';
|
@@ -214,6 +214,15 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
214
214
|
|
215
215
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
216
216
|
|
217
|
+
export declare type BreadcrumbType = {
|
218
|
+
name: string;
|
219
|
+
href: string;
|
220
|
+
submenu: {
|
221
|
+
name: string;
|
222
|
+
href: string;
|
223
|
+
};
|
224
|
+
};
|
225
|
+
|
217
226
|
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
218
227
|
|
219
228
|
export declare interface BulkActionProps {
|
@@ -400,7 +409,7 @@ export declare interface HeadingProps {
|
|
400
409
|
children?: ReactNode;
|
401
410
|
noBreadcum?: boolean;
|
402
411
|
classNameWrapHeading?: string;
|
403
|
-
|
412
|
+
menu: Array<MenuType>;
|
404
413
|
}
|
405
414
|
|
406
415
|
declare const Image_2: React.FC<ImageProps>;
|
@@ -448,46 +457,37 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
|
|
448
457
|
|
449
458
|
export declare const Menu: CompoundedMenu;
|
450
459
|
|
451
|
-
export declare type MenuComponentProps = ExtraProps &
|
460
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
452
461
|
|
453
462
|
declare const MenuItem: FC<MenuItemProps>;
|
454
463
|
|
455
464
|
export declare type MenuItemProps = MenuItemProps_2;
|
456
465
|
|
457
|
-
export declare type MenuProps =
|
458
|
-
name: string;
|
459
|
-
href: string;
|
460
|
-
icon: default_2.ReactNode;
|
461
|
-
current: boolean;
|
462
|
-
subMenu?: Array<{
|
463
|
-
name: string;
|
464
|
-
href: string;
|
465
|
-
icon: default_2.ReactNode;
|
466
|
-
children?: Array<{
|
467
|
-
name: string;
|
468
|
-
href: string;
|
469
|
-
icon?: default_2.ReactNode;
|
470
|
-
}>;
|
471
|
-
}>;
|
472
|
-
};
|
473
|
-
|
474
|
-
declare type MenuProps_2 = MenuProps_3;
|
466
|
+
export declare type MenuProps = MenuProps_2;
|
475
467
|
|
476
|
-
declare type
|
468
|
+
export declare type MenuType = {
|
477
469
|
name: string;
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
470
|
+
path: string;
|
471
|
+
isShow: boolean;
|
472
|
+
isPrivateRoute?: boolean;
|
473
|
+
modules: {
|
482
474
|
name: string;
|
483
|
-
|
484
|
-
icon
|
485
|
-
|
475
|
+
path: string;
|
476
|
+
icon?: ReactNode;
|
477
|
+
component: typeof default_2.Component | default_2.FC;
|
478
|
+
subMenu?: Array<{
|
486
479
|
name: string;
|
487
|
-
|
488
|
-
icon
|
480
|
+
path: string;
|
481
|
+
icon: ReactNode;
|
482
|
+
component: typeof default_2.Component | default_2.FC;
|
483
|
+
children?: Array<{
|
484
|
+
name: string;
|
485
|
+
path: string;
|
486
|
+
icon: ReactNode;
|
487
|
+
component: typeof default_2.Component | default_2.FC;
|
488
|
+
}>;
|
489
489
|
}>;
|
490
|
-
}
|
490
|
+
}[];
|
491
491
|
};
|
492
492
|
|
493
493
|
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
@@ -652,8 +652,8 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
652
652
|
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
653
653
|
|
654
654
|
export declare interface SidebarProps {
|
655
|
-
children?:
|
656
|
-
menu: Array<
|
655
|
+
children?: default_2.ReactNode;
|
656
|
+
menu: Array<MenuType>;
|
657
657
|
}
|
658
658
|
|
659
659
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
@@ -748,7 +748,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
748
748
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
749
749
|
renderHeadingSearch: () => ReactNode;
|
750
750
|
rightHeadingContent: ReactNode;
|
751
|
-
menu: Array<
|
751
|
+
menu: Array<MenuType>;
|
752
|
+
renderGroupHeadingButton: ReactNode;
|
752
753
|
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
753
754
|
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
754
755
|
showIndexColumn?: boolean;
|
package/types/ui.d.ts
CHANGED
@@ -38,7 +38,7 @@ import { JSX } from 'react/jsx-runtime';
|
|
38
38
|
import { MenuDividerProps } from 'antd/es/menu';
|
39
39
|
import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
|
40
40
|
import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
|
41
|
-
import { MenuProps as
|
41
|
+
import { MenuProps as MenuProps_2 } from 'antd/es/menu';
|
42
42
|
import { ModalProps as ModalProps_2 } from 'antd';
|
43
43
|
import { Pagination as Pagination_2 } from 'antd';
|
44
44
|
import { PaginationFilters } from '../../../../../../../../../../../src/interface/common';
|
@@ -195,6 +195,15 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
|
|
195
195
|
|
196
196
|
export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
|
197
197
|
|
198
|
+
export declare type BreadcrumbType = {
|
199
|
+
name: string;
|
200
|
+
href: string;
|
201
|
+
submenu: {
|
202
|
+
name: string;
|
203
|
+
href: string;
|
204
|
+
};
|
205
|
+
};
|
206
|
+
|
198
207
|
export declare const BulkAction: ({ quantity, handleRestore, handleSendApproval, handleCancelSendApproval, handleRefuseApproval, handleApproval, handleCancelApproval, handleDelete, handleActivate, handleInActivate, status, }: BulkActionProps) => JSX.Element;
|
199
208
|
|
200
209
|
export declare interface BulkActionProps {
|
@@ -346,7 +355,7 @@ export declare interface HeadingProps {
|
|
346
355
|
children?: ReactNode;
|
347
356
|
noBreadcum?: boolean;
|
348
357
|
classNameWrapHeading?: string;
|
349
|
-
|
358
|
+
menu: Array<MenuType>;
|
350
359
|
}
|
351
360
|
|
352
361
|
declare const Image_2: React.FC<ImageProps>;
|
@@ -377,46 +386,37 @@ export declare type LayoutProps = BaseProps_8 & BasicProps;
|
|
377
386
|
|
378
387
|
export declare const Menu: CompoundedMenu;
|
379
388
|
|
380
|
-
export declare type MenuComponentProps = ExtraProps &
|
389
|
+
export declare type MenuComponentProps = ExtraProps & MenuProps;
|
381
390
|
|
382
391
|
declare const MenuItem: FC<MenuItemProps>;
|
383
392
|
|
384
393
|
export declare type MenuItemProps = MenuItemProps_2;
|
385
394
|
|
386
|
-
export declare type MenuProps =
|
387
|
-
name: string;
|
388
|
-
href: string;
|
389
|
-
icon: default_2.ReactNode;
|
390
|
-
current: boolean;
|
391
|
-
subMenu?: Array<{
|
392
|
-
name: string;
|
393
|
-
href: string;
|
394
|
-
icon: default_2.ReactNode;
|
395
|
-
children?: Array<{
|
396
|
-
name: string;
|
397
|
-
href: string;
|
398
|
-
icon?: default_2.ReactNode;
|
399
|
-
}>;
|
400
|
-
}>;
|
401
|
-
};
|
402
|
-
|
403
|
-
declare type MenuProps_2 = MenuProps_3;
|
395
|
+
export declare type MenuProps = MenuProps_2;
|
404
396
|
|
405
|
-
declare type
|
397
|
+
export declare type MenuType = {
|
406
398
|
name: string;
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
399
|
+
path: string;
|
400
|
+
isShow: boolean;
|
401
|
+
isPrivateRoute?: boolean;
|
402
|
+
modules: {
|
411
403
|
name: string;
|
412
|
-
|
413
|
-
icon
|
414
|
-
|
404
|
+
path: string;
|
405
|
+
icon?: ReactNode;
|
406
|
+
component: typeof default_2.Component | default_2.FC;
|
407
|
+
subMenu?: Array<{
|
415
408
|
name: string;
|
416
|
-
|
417
|
-
icon
|
409
|
+
path: string;
|
410
|
+
icon: ReactNode;
|
411
|
+
component: typeof default_2.Component | default_2.FC;
|
412
|
+
children?: Array<{
|
413
|
+
name: string;
|
414
|
+
path: string;
|
415
|
+
icon: ReactNode;
|
416
|
+
component: typeof default_2.Component | default_2.FC;
|
417
|
+
}>;
|
418
418
|
}>;
|
419
|
-
}
|
419
|
+
}[];
|
420
420
|
};
|
421
421
|
|
422
422
|
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
@@ -512,8 +512,8 @@ export declare type SegmentedProps = SegmentedProps_2;
|
|
512
512
|
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
513
513
|
|
514
514
|
export declare interface SidebarProps {
|
515
|
-
children?:
|
516
|
-
menu: Array<
|
515
|
+
children?: default_2.ReactNode;
|
516
|
+
menu: Array<MenuType>;
|
517
517
|
}
|
518
518
|
|
519
519
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
@@ -596,7 +596,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
596
596
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
597
597
|
renderHeadingSearch: () => ReactNode;
|
598
598
|
rightHeadingContent: ReactNode;
|
599
|
-
menu: Array<
|
599
|
+
menu: Array<MenuType>;
|
600
|
+
renderGroupHeadingButton: ReactNode;
|
600
601
|
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
601
602
|
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
602
603
|
showIndexColumn?: boolean;
|