@pnkx-lib/ui 1.9.138 → 1.9.141
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/{ConfigProvider-BFt0Xocp.js → PageNotFound-BtCmLe_F.js} +1297 -12272
- package/es/chunks/{Switch-DHAoXDmV.js → Switch-DzlrxqZF.js} +1 -1
- package/es/chunks/{AntdIcon-BS99Z6_t.js → index-C4SA6TOQ.js} +11183 -332
- 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/App.d.ts +2 -0
- package/types/components/fields/CascaderField.d.ts +4 -3
- package/types/components/fields/Checkbox.d.ts +3 -3
- package/types/components/fields/Input.d.ts +1 -0
- package/types/components/ui/Anchor.d.ts +4 -6
- package/types/components/ui/BulkActions/index.d.ts +9 -2
- package/types/components/ui/CategoryStatus.d.ts +16 -0
- package/types/components/ui/Collapse.d.ts +3 -3
- package/types/components/ui/ColorPicker.d.ts +3 -2
- package/types/components/ui/PageNotFound.d.ts +4 -0
- package/types/components/ui/Sidebar.d.ts +5 -26
- package/types/components/ui/index.d.ts +1 -1
- package/types/components/ui/Page404.d.ts +0 -1
package/es/fields/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export { C as
|
2
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-
|
1
|
+
export { C as Checkbox, D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, f as TinyMCE } from '../chunks/index-C4SA6TOQ.js';
|
2
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-DzlrxqZF.js';
|
package/es/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
2
|
-
export { C as
|
3
|
-
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-
|
1
|
+
export { N as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a2 as BreadcrumbHeading, a1 as BulkActions, B as Button, a3 as Card, C as CascaderField, L as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a4 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, V as PAGE_NUMBER, X as PAGE_SIZE, a5 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Y as SORT_BY, Z as SORT_DESC, O as START_PAGE, U as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, _ as TypeActionRowTable, $ as TypeBulkActions, a0 as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-BtCmLe_F.js';
|
2
|
+
export { C as Checkbox, D as DatePickerField, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePickerField, S as Space, c as Splitter, d as Steps, e as TINY_API, f as TinyMCE, a as Tooltip, T as Typography } from './chunks/index-C4SA6TOQ.js';
|
3
|
+
export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DzlrxqZF.js';
|
4
4
|
export { a as useMessage, u as useToast } from './chunks/useMessage-CUPcOtIS.js';
|
package/es/ui/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export {
|
2
|
-
export { E as ErrorMessage, L as Label,
|
1
|
+
export { N as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a2 as BreadcrumbHeading, a1 as BulkActions, B as Button, a3 as Card, C as CascaderField, L as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a4 as ConfigProvider, G as ConfirmModal, c as Container, j as Divider, l as Drawer, D as Dropdown, E as Empty, J as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, V as PAGE_NUMBER, X as PAGE_SIZE, a5 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Y as SORT_BY, Z as SORT_DESC, O as START_PAGE, U as START_PAGE_SIZE, b as SearchFiltersForm, p as Segmented, h as Sidebar, S as Skeleton, k as Spin, q as Statistic, T as Table, a as Tabs, i as Tag, r as Timeline, s as Tour, u as Tree, _ as TypeActionRowTable, $ as TypeBulkActions, a0 as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-BtCmLe_F.js';
|
2
|
+
export { E as ErrorMessage, L as Label, b as Layout, M as Menu, S as Space, c as Splitter, d as Steps, e as TINY_API, a as Tooltip, T as Typography } from '../chunks/index-C4SA6TOQ.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.141",
|
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.
|
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,5 +1,6 @@
|
|
1
|
+
import { CascaderProps as CascaderPropsAntd } from 'antd';
|
1
2
|
import { ControllerRenderProps, UseFormSetValue, UseFormStateReturn } from 'react-hook-form';
|
2
|
-
interface CascaderFieldProps {
|
3
|
+
interface CascaderFieldProps extends CascaderPropsAntd {
|
3
4
|
field?: ControllerRenderProps<any, any>;
|
4
5
|
formState?: UseFormStateReturn<any>;
|
5
6
|
setValue?: UseFormSetValue<any>;
|
@@ -7,7 +8,7 @@ interface CascaderFieldProps {
|
|
7
8
|
required?: boolean;
|
8
9
|
afterOnChange?: (value: any) => void;
|
9
10
|
classNameContainer?: string;
|
10
|
-
|
11
|
+
classNameCascader?: string;
|
11
12
|
}
|
12
|
-
export declare const
|
13
|
+
export declare const Cascader: (props: CascaderFieldProps) => import("react/jsx-runtime").JSX.Element;
|
13
14
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { CheckboxProps } from 'antd';
|
1
|
+
import { CheckboxProps as CheckboxAntdProps } from 'antd';
|
2
2
|
import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
|
3
|
-
export interface
|
3
|
+
export interface CheckboxProps extends Omit<CheckboxAntdProps, "onChange" | "checked"> {
|
4
4
|
field?: ControllerRenderProps<any, any>;
|
5
5
|
formState?: UseFormStateReturn<any>;
|
6
6
|
label?: string;
|
@@ -9,4 +9,4 @@ export interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "ch
|
|
9
9
|
customStyleContainer?: string;
|
10
10
|
customStyleCheckbox?: string;
|
11
11
|
}
|
12
|
-
export declare const
|
12
|
+
export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -16,6 +16,7 @@ export interface InputProps extends InputPropsAntd {
|
|
16
16
|
decimalScale?: number;
|
17
17
|
prefix?: string;
|
18
18
|
suffix?: string;
|
19
|
+
contentTooltip?: string;
|
19
20
|
}
|
20
21
|
export declare const Input: (props: InputProps) => import("react/jsx-runtime").JSX.Element;
|
21
22
|
export interface PropsNumberFormat extends Omit<InputProps, "onChange" | "afterOnChange" | "value" | "defaultValue" | "iconStartInput" | "iconEndInput"> {
|
@@ -1,11 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { AnchorProps as AnchorPropsAntd } from 'antd';
|
2
|
+
import { FC } from 'react';
|
3
3
|
type BaseProps = {
|
4
4
|
containerClassName?: string;
|
5
|
-
|
5
|
+
anchorClassName?: string;
|
6
6
|
};
|
7
7
|
export type AnchorPropsUnion = BaseProps & AnchorPropsAntd;
|
8
|
-
export declare const Anchor:
|
9
|
-
Link: typeof AnchorLink;
|
10
|
-
};
|
8
|
+
export declare const Anchor: FC<AnchorPropsUnion>;
|
11
9
|
export {};
|
@@ -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;
|
@@ -13,7 +20,7 @@ interface IBulkActionsProps {
|
|
13
20
|
handleActivate?: () => void;
|
14
21
|
handleInActivate?: () => void;
|
15
22
|
status?: TypeStatusTable;
|
16
|
-
type
|
23
|
+
type?: TypeBulkActions;
|
17
24
|
}
|
18
25
|
export type TListIcon = {
|
19
26
|
icon: React.ReactNode;
|
@@ -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 {};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import { CollapseProps } from 'antd';
|
2
|
-
export type
|
3
|
-
export declare const
|
1
|
+
import { CollapseProps as CollapseAntdProps } from 'antd';
|
2
|
+
export type CollapseProps = CollapseAntdProps;
|
3
|
+
export declare const Collapse: React.FC<CollapseProps>;
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import { ColorPickerProps } from 'antd';
|
2
|
-
export
|
1
|
+
import { ColorPickerProps as ColorPickerPropsAntd } from 'antd';
|
2
|
+
export type ColorPickerProps = ColorPickerPropsAntd;
|
3
|
+
export declare const ColorPicker: React.FC<ColorPickerProps>;
|
@@ -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
|
-
|
5
|
+
isShow?: boolean;
|
6
6
|
isPrivateRoute?: boolean;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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 +0,0 @@
|
|
1
|
-
export declare const Page404: () => import("react/jsx-runtime").JSX.Element;
|