@pnkx-lib/ui 1.9.86 → 1.9.88
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/{AntdIcon-CfjDMPv2.js → AntdIcon-sydRpDMU.js} +1 -1
- package/es/chunks/{Switch-BRvdbb0u.js → Switch-Ch-t7bqG.js} +1 -1
- package/es/chunks/{index-C9TMk2WQ.js → index-Bfh7aRFs.js} +367 -330
- 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/index.d.ts +43 -36
- package/types/ui.d.ts +43 -36
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-sydRpDMU.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-Ch-t7bqG.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, 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-
|
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-Bfh7aRFs.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-sydRpDMU.js';
|
3
3
|
import 'react-router';
|
4
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-
|
4
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-Ch-t7bqG.js';
|
5
5
|
export { u as useToast } from './chunks/useToast-DL7nQTK1.js';
|
6
6
|
export { u as useMessage } from './chunks/useMessage-CADDGtSx.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-
|
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-Bfh7aRFs.js';
|
2
|
+
export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-sydRpDMU.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.88",
|
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,38 @@ 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
|
+
layout?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | typeof default_2.Component;
|
474
|
+
modules: {
|
482
475
|
name: string;
|
483
|
-
|
484
|
-
icon
|
485
|
-
|
476
|
+
path: string;
|
477
|
+
icon?: ReactNode;
|
478
|
+
component: typeof default_2.Component | default_2.FC;
|
479
|
+
subMenu?: Array<{
|
486
480
|
name: string;
|
487
|
-
|
488
|
-
icon
|
481
|
+
path: string;
|
482
|
+
icon: ReactNode;
|
483
|
+
component: typeof default_2.Component | default_2.FC;
|
484
|
+
children?: Array<{
|
485
|
+
name: string;
|
486
|
+
path: string;
|
487
|
+
icon: ReactNode;
|
488
|
+
component: typeof default_2.Component | default_2.FC;
|
489
|
+
}>;
|
489
490
|
}>;
|
490
|
-
}
|
491
|
+
}[];
|
491
492
|
};
|
492
493
|
|
493
494
|
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
@@ -649,11 +650,16 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
649
650
|
classNameSelect?: string;
|
650
651
|
}
|
651
652
|
|
652
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
653
|
+
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX.Element;
|
653
654
|
|
654
655
|
export declare interface SidebarProps {
|
655
|
-
children?:
|
656
|
-
menu: Array<
|
656
|
+
children?: default_2.ReactNode;
|
657
|
+
menu: Array<MenuType>;
|
658
|
+
userInfo?: {
|
659
|
+
avatar: string;
|
660
|
+
name: string;
|
661
|
+
email: string;
|
662
|
+
};
|
657
663
|
}
|
658
664
|
|
659
665
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
@@ -748,7 +754,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
748
754
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
749
755
|
renderHeadingSearch: () => ReactNode;
|
750
756
|
rightHeadingContent: ReactNode;
|
751
|
-
menu: Array<
|
757
|
+
menu: Array<MenuType>;
|
758
|
+
renderGroupHeadingButton: ReactNode;
|
752
759
|
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
753
760
|
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
754
761
|
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,38 @@ 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
|
+
layout?: default_2.LazyExoticComponent<default_2.MemoExoticComponent<any>> | default_2.ExoticComponent<any> | typeof default_2.Component;
|
403
|
+
modules: {
|
411
404
|
name: string;
|
412
|
-
|
413
|
-
icon
|
414
|
-
|
405
|
+
path: string;
|
406
|
+
icon?: ReactNode;
|
407
|
+
component: typeof default_2.Component | default_2.FC;
|
408
|
+
subMenu?: Array<{
|
415
409
|
name: string;
|
416
|
-
|
417
|
-
icon
|
410
|
+
path: string;
|
411
|
+
icon: ReactNode;
|
412
|
+
component: typeof default_2.Component | default_2.FC;
|
413
|
+
children?: Array<{
|
414
|
+
name: string;
|
415
|
+
path: string;
|
416
|
+
icon: ReactNode;
|
417
|
+
component: typeof default_2.Component | default_2.FC;
|
418
|
+
}>;
|
418
419
|
}>;
|
419
|
-
}
|
420
|
+
}[];
|
420
421
|
};
|
421
422
|
|
422
423
|
export declare const Modal: ({ children, ...rest }: ModalProps) => JSX.Element;
|
@@ -509,11 +510,16 @@ export declare const Segmented: React.FC<SegmentedProps>;
|
|
509
510
|
|
510
511
|
export declare type SegmentedProps = SegmentedProps_2;
|
511
512
|
|
512
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
513
|
+
export declare const Sidebar: ({ children, menu, userInfo }: SidebarProps) => JSX.Element;
|
513
514
|
|
514
515
|
export declare interface SidebarProps {
|
515
|
-
children?:
|
516
|
-
menu: Array<
|
516
|
+
children?: default_2.ReactNode;
|
517
|
+
menu: Array<MenuType>;
|
518
|
+
userInfo?: {
|
519
|
+
avatar: string;
|
520
|
+
name: string;
|
521
|
+
email: string;
|
522
|
+
};
|
517
523
|
}
|
518
524
|
|
519
525
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
@@ -596,7 +602,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
596
602
|
setColumns?: (newColumns: TableColumnsType<T>) => void;
|
597
603
|
renderHeadingSearch: () => ReactNode;
|
598
604
|
rightHeadingContent: ReactNode;
|
599
|
-
menu: Array<
|
605
|
+
menu: Array<MenuType>;
|
606
|
+
renderGroupHeadingButton: ReactNode;
|
600
607
|
groupHeadingButtonItems: GroupHeadingButtonItem[];
|
601
608
|
handleClickGroupHeadingButtonItem?: (value?: GroupHeadingButtonItem, e?: default_2.MouseEvent<HTMLElement, MouseEvent>) => void;
|
602
609
|
showIndexColumn?: boolean;
|