@pnkx-lib/ui 1.0.0 → 1.0.1

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,4 +1,3 @@
1
- import { ArgsProps } from 'antd/es/notification';
2
1
  import { BadgeProps as BadgeProps_2 } from 'antd';
3
2
  import { ButtonProps as ButtonProps_2 } from 'antd';
4
3
  import { CascaderProps } from 'antd/es/cascader';
@@ -16,7 +15,6 @@ import { IAllProps } from '@tinymce/tinymce-react';
16
15
  import { InputProps } from 'antd';
17
16
  import { JSX } from 'react/jsx-runtime';
18
17
  import { ModalProps } from 'antd';
19
- import { PaginationFilters } from '../../../../../../../../../../src/interface/common';
20
18
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
21
19
  import { PopoverProps as PopoverProps_2 } from 'antd';
22
20
  import { RadioGroupProps } from 'antd';
@@ -117,8 +115,6 @@ export declare interface ErrorMessageProps {
117
115
  isSubmitted?: boolean;
118
116
  }
119
117
 
120
- export declare type InitialFiltersSearch<T> = T & PaginationFilters;
121
-
122
118
  export declare const Input: (props: Props) => JSX.Element;
123
119
 
124
120
  export declare const Label: ({ label, required }: LabelProps) => JSX.Element;
@@ -134,10 +130,6 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
134
130
  multiple: true;
135
131
  };
136
132
 
137
- export declare type OptionalArgs = Partial<ArgsProps> & {
138
- message?: React.ReactNode;
139
- };
140
-
141
133
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
142
134
  render(): JSX.Element;
143
135
  }
@@ -328,20 +320,4 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
328
320
  afterOnChange?: (fileList: UploadFile[]) => void;
329
321
  }
330
322
 
331
- export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
332
- filters: InitialFiltersSearch<T>;
333
- rowsSelected: default_2.Key[];
334
- setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
335
- setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
336
- goToPage: (PageIndex: number) => void;
337
- changeRowlimit: (value: number) => void;
338
- resetToInitialFilters: () => void;
339
- handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
340
- handleChangePage: (nextPage: number) => void;
341
- handleRequestSort: (sortField: string | number | symbol) => void;
342
- handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
343
- };
344
-
345
- export declare const useToast: (defaultProps?: OptionalArgs) => () => void;
346
-
347
323
  export { }
package/dist/ui/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-D0BZUAPX.js";
2
- import { E as c, L as g, T as m } from "../chunks/AntdIcon-BppsuyXF.js";
1
+ import { e, B as o, C as r, d as t, M as l, P as p, c as T, S as d, T as b, b as i, a as n, t as C } from "../chunks/Badge-CGi9ydkd.js";
2
+ import { E as c, L as g, T as m } from "../chunks/AntdIcon-DV7aA2xc.js";
3
3
  export {
4
4
  e as Badge,
5
5
  o as Button,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {