@pnkx-lib/ui 1.9.164 → 1.9.167

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, k as PnkxField, R as RangePicker, m as Textarea, l as TinyMCE } from '../chunks/UploadImage-CRfo12AI.js';
2
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from '../chunks/Switch-DHCiuIa0.js';
1
+ export { C as Checkbox, D as DatePicker, I as Input, P as PnkxField, R as RangePicker, h as Textarea, g as TinyMCE } from '../chunks/UploadImage-BRBnjq5U.js';
2
+ export { R as RadioGroup, S as Select, c as SliderRange, b as SliderSingle, a as Switch, U as UploadField } from '../chunks/SliderRanger-DD_Z5ULj.js';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { N as ActionRowTable, A as Alert, u as Anchor, v as Appfix, w as AutoComplete, d as Badge, f as Breadcrumb, Y as BreadcrumbHeading, X as BulkActions, B as Button, J as CATEGORY_LIST_ENUM, Z as Card, C as CascaderField, L as CategoryStatus, e as Col, x as Collapse, y as ColorPicker, _ as ConfigProvider, z as ConfirmModal, c as Container, j as Divider, k as Drawer, D as Dropdown, E as Empty, G as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, $ as PageNotFound, g as Pagination, l as Popconfirm, P as Popover, Q as QRCode, n as Rate, m as Result, R as Row, b as SearchFiltersForm, o as Segmented, h as Sidebar, S as Skeleton, p as Statistic, T as Table, a as Tabs, i as Tag, q as Timeline, r as Tour, s as Tree, O as TypeActionRowTable, U as TypeBulkActions, V as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-V2cS-pzy.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 PAGE_NUMBER, i as PAGE_SIZE, k as PnkxField, R as RangePicker, j as SORT, g as START_PAGE, h as START_PAGE_SIZE, S as Space, e as Spin, c as Splitter, d as Steps, f as TINY_API, m as Textarea, l as TinyMCE, a as Tooltip, T as Typography, U as UploadImage } from './chunks/UploadImage-CRfo12AI.js';
3
- export { R as RadioGroup, S as Select, a as Switch, U as UploadField } from './chunks/Switch-DHCiuIa0.js';
1
+ export { N as ActionRowTable, A as Alert, u as Anchor, v as Appfix, w as AutoComplete, d as Badge, f as Breadcrumb, Y as BreadcrumbHeading, X as BulkActions, B as Button, J as CATEGORY_LIST_ENUM, Z as Card, C as CascaderField, L as CategoryStatus, e as Col, x as Collapse, y as ColorPicker, _ as ConfigProvider, z as ConfirmModal, c as Container, j as Divider, k as Drawer, D as Dropdown, E as Empty, G as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, $ as PageNotFound, g as Pagination, l as Popconfirm, P as Popover, Q as QRCode, n as Rate, m as Result, R as Row, b as SearchFiltersForm, o as Segmented, h as Sidebar, S as Skeleton, p as Statistic, T as Table, a as Tabs, i as Tag, q as Timeline, r as Tour, s as Tree, O as TypeActionRowTable, U as TypeBulkActions, V as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from './chunks/PageNotFound-D5g7S_k0.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, e as Spin, c as Splitter, d as Steps, f as TINY_API, h as Textarea, g as TinyMCE, a as Tooltip, T as Typography, U as UploadImage } from './chunks/UploadImage-BRBnjq5U.js';
3
+ export { R as RadioGroup, S as Select, c as SliderRange, b as SliderSingle, a as Switch, U as UploadField } from './chunks/SliderRanger-DD_Z5ULj.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 { N as ActionRowTable, A as Alert, u as Anchor, v as Appfix, w as AutoComplete, d as Badge, f as Breadcrumb, Y as BreadcrumbHeading, X as BulkActions, B as Button, J as CATEGORY_LIST_ENUM, Z as Card, C as CascaderField, L as CategoryStatus, e as Col, x as Collapse, y as ColorPicker, _ as ConfigProvider, z as ConfirmModal, c as Container, j as Divider, k as Drawer, D as Dropdown, E as Empty, G as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, $ as PageNotFound, g as Pagination, l as Popconfirm, P as Popover, Q as QRCode, n as Rate, m as Result, R as Row, b as SearchFiltersForm, o as Segmented, h as Sidebar, S as Skeleton, p as Statistic, T as Table, a as Tabs, i as Tag, q as Timeline, r as Tour, s as Tree, O as TypeActionRowTable, U as TypeBulkActions, V as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-V2cS-pzy.js';
2
- export { E as ErrorMessage, L as Label, b as Layout, M as Menu, P as PAGE_NUMBER, i as PAGE_SIZE, j as SORT, g as START_PAGE, h as START_PAGE_SIZE, S as Space, e as Spin, c as Splitter, d as Steps, f as TINY_API, a as Tooltip, T as Typography, U as UploadImage } from '../chunks/UploadImage-CRfo12AI.js';
1
+ export { N as ActionRowTable, A as Alert, u as Anchor, v as Appfix, w as AutoComplete, d as Badge, f as Breadcrumb, Y as BreadcrumbHeading, X as BulkActions, B as Button, J as CATEGORY_LIST_ENUM, Z as Card, C as CascaderField, L as CategoryStatus, e as Col, x as Collapse, y as ColorPicker, _ as ConfigProvider, z as ConfirmModal, c as Container, j as Divider, k as Drawer, D as Dropdown, E as Empty, G as ErrorBoundary, F as Flex, H as Heading, I as Image, M as Modal, $ as PageNotFound, g as Pagination, l as Popconfirm, P as Popover, Q as QRCode, n as Rate, m as Result, R as Row, b as SearchFiltersForm, o as Segmented, h as Sidebar, S as Skeleton, p as Statistic, T as Table, a as Tabs, i as Tag, q as Timeline, r as Tour, s as Tree, O as TypeActionRowTable, U as TypeBulkActions, V as TypeStatusTable, W as Watermark, K as badgeStatusCategoryConfig, t as typeColorMap } from '../chunks/PageNotFound-D5g7S_k0.js';
2
+ export { E as ErrorMessage, L as Label, b as Layout, M as Menu, S as Space, e as Spin, c as Splitter, d as Steps, f as TINY_API, a as Tooltip, T as Typography, U as UploadImage } from '../chunks/UploadImage-BRBnjq5U.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.164",
4
+ "version": "1.9.167",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
@@ -1,5 +1,5 @@
1
1
  import { Control, UseFormReset } from 'node_modules/react-hook-form/dist/types';
2
- import { IValueSearch } from '../../../../../../../../../../src/components/ui/Table/HeadingTable';
2
+ import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
3
3
  interface RenderFilterFieldsProps {
4
4
  control: Control<IValueSearch>;
5
5
  handleSubmit?: React.FormEventHandler<IValueSearch>;
@@ -1,6 +1,6 @@
1
1
  import { UseFormReset } from 'node_modules/react-hook-form/dist/types';
2
- import { IValueSearch } from '../../../../../../../../../../src/components/ui/Table/HeadingTable';
3
- import { InitialFiltersSearch } from '../../../../../../../../../../src/components';
2
+ import { IValueSearch } from '../../../../../../../../../../../src/components/ui/Table/HeadingTable';
3
+ import { InitialFiltersSearch } from '../../../../../../../../../../../src/components';
4
4
  interface TagsFilterProps {
5
5
  advanceSearch: any;
6
6
  resetToInitialFilters: () => void;
@@ -1,4 +1,4 @@
1
- import { GroupHeadingButtonItem } from '../../../../../../../../../src/components/ui/Table/HeadingTable/components/GroupHeadingButton';
1
+ import { GroupHeadingButtonItem } from '../../../../../../../../../../src/components/ui/Table/HeadingTable/components/GroupHeadingButton';
2
2
  export interface LabelGroupHeadingButtonItem {
3
3
  label: string;
4
4
  is_status: number;
@@ -1,6 +1,6 @@
1
1
  import { ControllerRenderProps, UseFormStateReturn } from 'react-hook-form';
2
2
  import { SliderRangeProps } from 'antd/es/slider';
3
- export interface SliderProps extends Omit<SliderRangeProps, "onChange"> {
3
+ export interface SliderRangesProps extends Omit<SliderRangeProps, "onChange"> {
4
4
  field?: ControllerRenderProps<any, any>;
5
5
  formState?: UseFormStateReturn<any>;
6
6
  label?: string;
@@ -9,4 +9,4 @@ export interface SliderProps extends Omit<SliderRangeProps, "onChange"> {
9
9
  customStyleContainer?: string;
10
10
  customStyleSlider?: string;
11
11
  }
12
- export declare const SliderRange: (props: SliderProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const SliderRange: (props: SliderRangesProps) => import("react/jsx-runtime").JSX.Element;
@@ -9,3 +9,5 @@ export * from './DatePicker';
9
9
  export * from './DateRangePicker';
10
10
  export * from './Upload';
11
11
  export * from './Switch';
12
+ export * from './SliderSingle';
13
+ export * from './SliderRanger';
@@ -1,6 +1,6 @@
1
1
  import { ConfirmModalProps } from '../ConfirmModal';
2
2
  import { TListIcon } from '.';
3
- import { TypeStatusTable } from '../../../../../../../../../../src/constants';
3
+ import { TypeStatusTable } from '../../../../../../../../../../../src/constants';
4
4
  export interface BulkActionProps {
5
5
  quantity?: number;
6
6
  listIcon?: TListIcon[];
@@ -1,5 +1,5 @@
1
1
  import { ConfirmModalProps } from '../ConfirmModal';
2
- import { TypeBulkActions, TypeStatusTable } from '../../../../../../../../../../src/constants';
2
+ import { TypeBulkActions, TypeStatusTable } from '../../../../../../../../../../../src/constants';
3
3
  import { CATEGORY_LIST_ENUM } from '../CategoryStatus';
4
4
  interface IBulkActionsProps {
5
5
  quantity?: number;
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { TypeActionRowTable } from '../../../../../../../../../../../src/constants/table';
2
+ import { TypeActionRowTable } from '../../../../../../../../../../../../src/constants/table';
3
3
  export interface ActionRowTableProps {
4
4
  type: TypeActionRowTable;
5
5
  handleClick?: () => void;
@@ -1,5 +1,5 @@
1
1
  import { InitialFiltersSearch } from '@pnkx-lib/core';
2
- import { TFilters, TypeStatusTable } from '../../../../../../../../../../../../src/components/ui';
2
+ import { TFilters, TypeStatusTable } from '../../../../../../../../../../../../../src/components/ui';
3
3
  export interface GroupHeadingButtonItem {
4
4
  label: string;
5
5
  quantity: number;
@@ -5,7 +5,7 @@ import { SorterResult } from 'antd/es/table/interface';
5
5
  import { InitialFiltersSearch } from '@pnkx-lib/core';
6
6
  import { MenuType } from '../Sidebar';
7
7
  import { GroupHeadingButtonItem } from './HeadingTable/components/GroupHeadingButton';
8
- import { TypeStatusTable } from '../../../../../../../../../../src/constants';
8
+ import { TypeStatusTable } from '../../../../../../../../../../../src/constants';
9
9
  interface RowCommon {
10
10
  [x: string]: any;
11
11
  }
@@ -1,9 +1,6 @@
1
1
  import { default as React } from 'react';
2
2
  interface UploadImageProps {
3
- handleUpload?: (e: any) => void;
4
- loading?: boolean;
5
- imageUpload?: string;
6
- handleRemoveImage: any;
3
+ onUploadSuccess?: (url: string) => void;
7
4
  }
8
5
  export declare const UploadImage: React.FC<UploadImageProps>;
9
6
  export {};
@@ -1,6 +1 @@
1
1
  export declare const TINY_API = "miai0qn3c79adm555yoxd9kz6j6a323ek760nf7qd81nv1p5";
2
- export declare const START_PAGE = 1;
3
- export declare const START_PAGE_SIZE = 10;
4
- export declare const PAGE_NUMBER = "page";
5
- export declare const PAGE_SIZE = "size";
6
- export declare const SORT = "sort";
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SorterResult } from '../../../../../../../../../src/interface/common';
3
- export interface PaginationFilters {
4
- size: number;
5
- page: number;
6
- sort?: string[];
7
- }
8
- export type InitialFiltersSearch<T> = T & PaginationFilters;
9
- export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
10
- filters: InitialFiltersSearch<T>;
11
- rowsSelected: React.Key[];
12
- setRowsSelected: React.Dispatch<React.SetStateAction<React.Key[]>>;
13
- setFilters: React.Dispatch<React.SetStateAction<InitialFiltersSearch<T>>>;
14
- goToPage: (page: number) => void;
15
- changeRowlimit: (value: number) => void;
16
- resetToInitialFilters: () => void;
17
- handleCheckBox: (newSelectedRowKeys: React.Key[]) => void;
18
- handleChangePage: (nextPage: number) => void;
19
- handleRequestSort: (sorter: SorterResult | SorterResult[]) => void;
20
- handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
21
- };