@pnkx-lib/ui 1.9.150 → 1.9.153

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.
@@ -1,2 +1,2 @@
1
- export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, f as TinyMCE } from '../chunks/index-B1VMBXXn.js';
2
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-CoXlGnh-.js';
1
+ export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, f as TinyMCE } from '../chunks/index-BjVRPMWe.js';
2
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-BkRv1Mr8.js';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 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, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V 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, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-NL2Inqtu.js';
2
- export { C as Checkbox, D as DatePicker, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, 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-B1VMBXXn.js';
3
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-CoXlGnh-.js';
1
+ export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 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, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V 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, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-B_1h-yos.js';
2
+ export { C as Checkbox, D as DatePicker, E as ErrorMessage, I as Input, L as Label, b as Layout, M as Menu, P as PnkxField, R as RangePicker, 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-BjVRPMWe.js';
3
+ export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-BkRv1Mr8.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 { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 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, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V 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, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-NL2Inqtu.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-B1VMBXXn.js';
1
+ export { O as ActionRowTable, A as Alert, v as Anchor, w as Appfix, x as AutoComplete, d as Badge, f as Breadcrumb, a3 as BreadcrumbHeading, a2 as BulkActions, B as Button, K as CATEGORY_LIST_ENUM, a4 as Card, C as CascaderField, N as CategoryStatus, e as Col, y as Collapse, z as ColorPicker, a5 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, X as PAGE_NUMBER, Y as PAGE_SIZE, a6 as PageNotFound, g as Pagination, m as Popconfirm, P as Popover, Q as QRCode, o as Rate, n as Result, R as Row, Z as SORT_BY, _ as SORT_DESC, U as START_PAGE, V 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, a0 as TypeBulkActions, a1 as TypeStatusTable, W as Watermark, L as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-B_1h-yos.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-BjVRPMWe.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.150",
4
+ "version": "1.9.153",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/App.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { MenuType } from './components/ui/Sidebar';
2
+ export declare const CATEGORY_PATH = "/danh-muc";
2
3
  export declare const menuRouter: MenuType[];
3
4
  declare function App(): import("react/jsx-runtime").JSX.Element;
4
5
  export default App;
@@ -0,0 +1,12 @@
1
+ import { SliderSingleProps as SliderSingleAntdProps } from 'antd';
2
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
3
+ export interface SliderProps extends Omit<SliderSingleAntdProps, "onChange"> {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ label?: string;
7
+ required?: boolean;
8
+ afterOnChange?: (data: number) => void;
9
+ customStyleContainer?: string;
10
+ customStyleSlider?: string;
11
+ }
12
+ export declare const SliderSingle: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
2
+ import { SliderRangeProps } from 'antd/es/slider';
3
+ export interface SliderProps extends Omit<SliderRangeProps, "onChange"> {
4
+ field?: ControllerRenderProps<any, any>;
5
+ formState?: UseFormStateReturn<any>;
6
+ label?: string;
7
+ required?: boolean;
8
+ afterOnChange?: (data: number[]) => void;
9
+ customStyleContainer?: string;
10
+ customStyleSlider?: string;
11
+ }
12
+ export declare const SliderRange: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ interface PaginationProps {
2
+ total: number;
3
+ pageSize: number;
4
+ current: number;
5
+ onChange?: (page: number, pageSize: number) => void;
6
+ }
7
+ export declare const BottomPagination: (props: PaginationProps) => import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -5,6 +5,7 @@ export type MenuType = {
5
5
  isShow?: boolean;
6
6
  isPrivateRoute?: boolean;
7
7
  icon?: ReactNode;
8
+ isShowLabel?: boolean;
8
9
  component?: React.LazyExoticComponent<React.MemoExoticComponent<any>> | React.ExoticComponent<any> | ReactNode | React.FC;
9
10
  componentProps?: Record<string, any>;
10
11
  children?: MenuType[];
@@ -3,7 +3,7 @@ import { TFilters, TypeStatusTable } from '../../../../../../../../../../../../.
3
3
  export interface GroupHeadingButtonItem {
4
4
  label: string;
5
5
  quantity: number;
6
- isStatus: TypeStatusTable;
6
+ status: TypeStatusTable;
7
7
  }
8
8
  export interface GroupHeadingButtonProps {
9
9
  groupHeadingButtonItems?: GroupHeadingButtonItem[];
@@ -12,7 +12,7 @@ type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
12
12
  export type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {})[];
13
13
  export type TableColumnsType<T> = TableColumnsTypeAntd<T> & TableColumnsTypeEditable<T>;
14
14
  export type TFilters = {
15
- isStatus?: TypeStatusTable;
15
+ status?: TypeStatusTable;
16
16
  };
17
17
  export interface BulkActionHandlers {
18
18
  handleRestore?: () => void;