@pnkx-lib/ui 1.9.137 → 1.9.140

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/index.js CHANGED
@@ -1,5 +1,4 @@
1
- export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a7 as BreadcrumbHeading, a6 as BulkActions, B as Button, a8 as Card, C as CascaderField, X as CategoryStatus, f as Col, a9 as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 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, a1 as SORT_BY, a2 as SORT_DESC, Z 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, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from './chunks/ConfigProvider-DjDjQ5Fj.js';
1
+ export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a8 as BreadcrumbHeading, a7 as BulkActions, B as Button, a9 as Card, C as CascaderField, Y as CategoryStatus, f as Col, aa as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V 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, ab as PageNotFound, 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, a5 as TypeBulkActions, a6 as TypeStatusTable, W as Watermark, X as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-BT1mkXgK.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-BS99Z6_t.js';
3
- import 'react-router';
4
3
  export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DHAoXDmV.js';
5
4
  export { a as useMessage, u as useToast } from './chunks/useMessage-CUPcOtIS.js';
package/es/ui/index.js CHANGED
@@ -1,3 +1,2 @@
1
- export { Y as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a7 as BreadcrumbHeading, a6 as BulkActions, B as Button, a8 as Card, C as CascaderField, X as CategoryStatus, f as Col, a9 as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V as ErrorBoundary, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, $ as PAGE_NUMBER, a0 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, a1 as SORT_BY, a2 as SORT_DESC, Z 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, a3 as TypeActionRowTable, a4 as TypeBulkActions, a5 as TypeStatusTable, W as Watermark, t as typeColorMap } from '../chunks/ConfigProvider-DjDjQ5Fj.js';
1
+ export { Z as ActionRowTable, A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, a8 as BreadcrumbHeading, a7 as BulkActions, B as Button, a9 as Card, C as CascaderField, Y as CategoryStatus, f as Col, aa as ConfigProvider, U as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, V 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, ab as PageNotFound, 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, a5 as TypeBulkActions, a6 as TypeStatusTable, W as Watermark, X as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-BT1mkXgK.js';
2
2
  export { E as ErrorMessage, L as Label, a as TINY_API, T as Typography } from '../chunks/AntdIcon-BS99Z6_t.js';
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.137",
4
+ "version": "1.9.140",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -43,6 +43,7 @@
43
43
  "serve": "vite preview",
44
44
  "lint": "eslint .",
45
45
  "build-storybook": "storybook build",
46
+ "deploy": "vercel --prod",
46
47
  "clean": "rm -rf types es dist",
47
48
  "release:patch": "npm run clean && npm version patch -m \"chore(release): bump version to %s\" && npm run build && npm publish",
48
49
  "release:minor": "npm run clean && npm version minor && npm run build && npm publish",
@@ -104,7 +105,7 @@
104
105
  "@heroicons/react": "^2.2.0",
105
106
  "@hookform/resolvers": "^5.0.1",
106
107
  "@pnkx-lib/core": "^1.1.8",
107
- "@pnkx-lib/icon": "^0.0.27",
108
+ "@pnkx-lib/icon": "^0.0.33",
108
109
  "@tailwindcss/cli": "^4.1.6",
109
110
  "@tinymce/miniature": "^6.0.0",
110
111
  "@tinymce/tinymce-react": "^6.0.0",
package/types/App.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ import { MenuType } from './components/ui/Sidebar';
2
+ export declare const menuRouter: MenuType[];
1
3
  declare function App(): import("react/jsx-runtime").JSX.Element;
2
4
  export default App;
@@ -1,6 +1,13 @@
1
- import { CATEGORY_LIST_ENUM } from '../../../../../core/src/constants/enum';
2
1
  import { ConfirmModalProps } from '../ConfirmModal';
3
2
  import { TypeBulkActions, TypeStatusTable } from '../../../../../../../../../../../src/constants';
3
+ export declare enum CATEGORY_LIST_ENUM {
4
+ DRAFT = 0,// tạo mới
5
+ WATING_APPROVAL = 1,// đang chờ duyệt
6
+ ACTIVE = 2,// hoạt động
7
+ INACTIVE = 3,// dừng hoạt động
8
+ REJECT = 4,// từ chối duyệt
9
+ DELETE = 5
10
+ }
4
11
  interface IBulkActionsProps {
5
12
  quantity?: number;
6
13
  handleRestore?: () => void;
@@ -1,4 +1,20 @@
1
+ export declare enum CATEGORY_LIST_ENUM {
2
+ DRAFT = 0,// tạo mới
3
+ WATING_APPROVAL = 1,// đang chờ duyệt
4
+ ACTIVE = 2,// hoạt động
5
+ INACTIVE = 3,// dừng hoạt động
6
+ REJECT = 4,// từ chối duyệt
7
+ DELETE = 5
8
+ }
9
+ type BadgeConfig = {
10
+ [key: number]: {
11
+ color: string;
12
+ text: string;
13
+ };
14
+ };
15
+ export declare const badgeStatusCategoryConfig: BadgeConfig;
1
16
  export interface CategoryStatusProps {
2
17
  status: number;
3
18
  }
4
19
  export declare const CategoryStatus: ({ status }: CategoryStatusProps) => import("react/jsx-runtime").JSX.Element;
20
+ export {};
@@ -0,0 +1,4 @@
1
+ export interface PageNotFoundProps {
2
+ path?: string;
3
+ }
4
+ export declare const PageNotFound: ({ path }: PageNotFoundProps) => import("react/jsx-runtime").JSX.Element;
@@ -2,33 +2,12 @@ import { ReactNode, default as React } from 'react';
2
2
  export type MenuType = {
3
3
  name: string;
4
4
  path: string;
5
- isShowModules?: boolean;
5
+ isShow?: boolean;
6
6
  isPrivateRoute?: boolean;
7
- layout?: React.LazyExoticComponent<React.MemoExoticComponent<any>> | React.ExoticComponent<any> | typeof React.Component;
8
- children: {
9
- name: string;
10
- path: string;
11
- icon?: ReactNode;
12
- isShowChildren?: boolean;
13
- isPrivateRoute?: boolean;
14
- component: typeof React.Component | React.FC | ReactNode;
15
- children?: Array<{
16
- name: string;
17
- path: string;
18
- icon: ReactNode;
19
- isShowChildren?: boolean;
20
- isPrivateRoute?: boolean;
21
- component: typeof React.Component | React.FC | ReactNode;
22
- children?: Array<{
23
- name: string;
24
- path: string;
25
- icon: ReactNode;
26
- isPrivateRoute?: boolean;
27
- isShowChildren?: boolean;
28
- component: typeof React.Component | React.FC | ReactNode;
29
- }>;
30
- }>;
31
- }[];
7
+ icon?: ReactNode;
8
+ component?: React.LazyExoticComponent<React.MemoExoticComponent<any>> | React.ExoticComponent<any> | ReactNode | React.FC;
9
+ componentProps?: Record<string, any>;
10
+ children?: MenuType[];
32
11
  };
33
12
  export interface SidebarProps {
34
13
  children?: React.ReactNode;
@@ -49,7 +49,6 @@ export * from './Empty';
49
49
  export * from './Image';
50
50
  export * from './ConfirmModal';
51
51
  export * from './ErrorBoundary';
52
- export * from './Page404';
53
52
  export * from './CategoryStatus';
54
53
  export * from '../ui/Table/ActionRowTable';
55
54
  export * from '../../constants/index';
@@ -57,3 +56,4 @@ export * from './BulkActions';
57
56
  export * from './BreadcrumbHeading';
58
57
  export * from './Card';
59
58
  export * from './ConfigProvider';
59
+ export * from './PageNotFound';
@@ -1,2 +0,0 @@
1
- declare const Page404: () => import("react/jsx-runtime").JSX.Element;
2
- export default Page404;