@pnkx-lib/ui 1.5.7 → 1.5.9

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,4 +1,4 @@
1
- export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from './chunks/ConfirmModal-fbJXEktP.js';
1
+ export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from './chunks/ConfirmModal-DOXemsDy.js';
2
2
  export { D as DatePickerField, E as ErrorMessage, I as Input, L as Label, P as PnkxField, R as RangePickerField, a as TinyMCE, T as Typography } from './chunks/Switch-eMq9KkOy.js';
3
3
  export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-CJ_M7IzZ.js';
4
4
  export { u as useToast } from './chunks/cloneDeep-BLYi2V0G.js';
package/es/ui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from '../chunks/ConfirmModal-fbJXEktP.js';
1
+ export { A as Alert, E as Anchor, G as Appfix, I as AutoComplete, e as Badge, g as Breadcrumb, U as BulkAction, B as Button, C as CascaderField, f as Col, V as ConfirmModal, d as Container, o as Divider, q as Drawer, D as Dropdown, N as Empty, F as Flex, H as Heading, O as Image, L as Layout, j as Menu, M as Modal, 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, 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, W as Watermark, t as typeColorMap } from '../chunks/ConfirmModal-DOXemsDy.js';
2
2
  export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-eMq9KkOy.js';
3
3
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.5.7",
4
+ "version": "1.5.9",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/hooks.d.ts CHANGED
@@ -1,14 +1,14 @@
1
- import { ArgsProps } from 'antd/es/notification';
2
- import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
1
+ import { ArgsProps } from 'antd/lib/message';
2
+ import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
3
3
  import { default as default_2 } from 'react';
4
4
 
5
5
  export declare type InitialFiltersSearch<T> = T & PaginationFilters;
6
6
 
7
- export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
8
- type?: ArgsProps_2["type"];
7
+ export declare type OptionalArgsMessage = Partial<ArgsProps> & {
8
+ type?: ArgsProps["type"];
9
9
  };
10
10
 
11
- export declare type OptionalArgsToast = Partial<ArgsProps> & {
11
+ export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
12
12
  message?: React.ReactNode;
13
13
  };
14
14
 
package/types/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import { AffixProps } from 'antd';
2
2
  import { AlertProps as AlertProps_2 } from 'antd';
3
3
  import { Anchor as Anchor_2 } from 'antd';
4
4
  import { AnchorProps as AnchorProps_2 } from 'antd';
5
- import { ArgsProps } from 'antd/es/notification';
6
- import { ArgsProps as ArgsProps_2 } from 'antd/lib/message';
5
+ import { ArgsProps } from 'antd/lib/message';
6
+ import { ArgsProps as ArgsProps_2 } from 'antd/es/notification';
7
7
  import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
8
8
  import { BadgeProps as BadgeProps_2 } from 'antd';
9
9
  import { BasicProps } from 'antd/es/layout/layout';
@@ -22,8 +22,8 @@ import { Control } from 'react-hook-form';
22
22
  import { ControllerFieldState } from 'react-hook-form';
23
23
  import { ControllerRenderProps } from 'react-hook-form';
24
24
  import { Dayjs } from 'dayjs';
25
- import { default as default_2 } from 'react';
26
- import { default as default_3 } from 'antd/es/anchor/AnchorLink';
25
+ import { default as default_2 } from 'antd/es/anchor/AnchorLink';
26
+ import { default as default_3 } from 'react';
27
27
  import { DefaultOptionType } from 'antd/es/cascader';
28
28
  import { DefaultValues } from 'react-hook-form';
29
29
  import { DividerProps as DividerProps_2 } from 'antd';
@@ -103,7 +103,7 @@ export declare const Alert: React.FC<AlertProps>;
103
103
  export declare type AlertProps = AlertProps_2;
104
104
 
105
105
  export declare const Anchor: typeof Anchor_2 & {
106
- Link: typeof default_3;
106
+ Link: typeof default_2;
107
107
  };
108
108
 
109
109
  export declare interface AnchorProps extends AnchorProps_2 {
@@ -114,7 +114,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
114
114
  export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
115
115
 
116
116
  export declare interface AppfixProps extends AffixProps {
117
- children: default_2.ReactNode;
117
+ children: default_3.ReactNode;
118
118
  }
119
119
 
120
120
  export declare const AutoComplete: React.FC<AutoCompleteProps>;
@@ -217,7 +217,7 @@ export declare interface BulkActionProps {
217
217
  handleLock?: () => void;
218
218
  }
219
219
 
220
- export declare const Button: default_2.FC<ButtonProps>;
220
+ export declare const Button: default_3.FC<ButtonProps>;
221
221
 
222
222
  export declare type ButtonProps = ButtonProps_2;
223
223
 
@@ -272,15 +272,15 @@ export declare interface ConfirmModalProps extends ModalProps {
272
272
  handleSubmit?: () => void;
273
273
  }
274
274
 
275
- export declare const Container: default_2.FC<ContainerProps>;
275
+ export declare const Container: default_3.FC<ContainerProps>;
276
276
 
277
277
  export declare interface ContainerProps {
278
- children: default_2.ReactNode;
278
+ children: default_3.ReactNode;
279
279
  size?: TailwindMaxWidth;
280
280
  className?: string;
281
281
  }
282
282
 
283
- declare type CustomInputTypeAttribute = default_2.HTMLInputTypeAttribute | "money";
283
+ declare type CustomInputTypeAttribute = default_3.HTMLInputTypeAttribute | "money";
284
284
 
285
285
  export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "onChange"> {
286
286
  field?: ControllerRenderProps<any, any>;
@@ -294,7 +294,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
294
294
  label?: string;
295
295
  maxDate?: Date;
296
296
  showTimeSelect?: boolean;
297
- customOnChange?: (date: any, event: default_2.SyntheticEvent<any>) => void;
297
+ customOnChange?: (date: any, event: default_3.SyntheticEvent<any>) => void;
298
298
  customValue?: Date | null;
299
299
  size?: TSize;
300
300
  }
@@ -330,7 +330,7 @@ export declare const Empty: React.FC<EmptyProps>;
330
330
 
331
331
  export declare type EmptyProps = EmptyProps_2;
332
332
 
333
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
333
+ export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
334
334
 
335
335
  export declare interface ErrorMessageProps {
336
336
  errorMessage?: string;
@@ -373,8 +373,8 @@ export declare interface InputProps extends InputProps_2 {
373
373
  customStyleInput?: string;
374
374
  type?: CustomInputTypeAttribute;
375
375
  afterOnChange?: (value: number | string | null) => void;
376
- iconStartInput?: default_2.ReactNode;
377
- iconEndInput?: default_2.ReactNode;
376
+ iconStartInput?: default_3.ReactNode;
377
+ iconEndInput?: default_3.ReactNode;
378
378
  allowNegative?: boolean;
379
379
  decimalScale?: number;
380
380
  prefix?: string;
@@ -394,12 +394,12 @@ export declare interface LabelProps {
394
394
  required?: boolean;
395
395
  }
396
396
 
397
- export declare const Layout: default_2.FC<LayoutProps> & {
398
- Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
399
- Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
400
- Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
401
- Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
402
- _InternalSiderContext: default_2.Context<SiderContextProps>;
397
+ export declare const Layout: default_3.FC<LayoutProps> & {
398
+ Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
399
+ Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
400
+ Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
401
+ Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
402
+ _InternalSiderContext: default_3.Context<SiderContextProps>;
403
403
  };
404
404
 
405
405
  export declare type LayoutProps = BaseProps_8 & BasicProps;
@@ -427,11 +427,11 @@ declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, tr
427
427
  multiple: true;
428
428
  };
429
429
 
430
- export declare type OptionalArgsMessage = Partial<ArgsProps_2> & {
431
- type?: ArgsProps_2["type"];
430
+ export declare type OptionalArgsMessage = Partial<ArgsProps> & {
431
+ type?: ArgsProps["type"];
432
432
  };
433
433
 
434
- export declare type OptionalArgsToast = Partial<ArgsProps> & {
434
+ export declare type OptionalArgsToast = Partial<ArgsProps_2> & {
435
435
  message?: React.ReactNode;
436
436
  };
437
437
 
@@ -553,7 +553,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
553
553
  setValue?: UseFormSetValue<T>;
554
554
  handleSubmit?: FormEventHandler<any>;
555
555
  reset?: UseFormReset<T>;
556
- }) => default_2.ReactNode;
556
+ }) => default_3.ReactNode;
557
557
  onReset?: () => void;
558
558
  classNamesContainer?: string;
559
559
  classNameWrapperForm?: string;
@@ -655,8 +655,8 @@ export declare interface SwitchFieldProps extends Omit<SwitchProps, "onChange" |
655
655
 
656
656
  declare type TabItem = {
657
657
  key: string;
658
- label: default_2.ReactNode;
659
- children: default_2.ReactNode;
658
+ label: default_3.ReactNode;
659
+ children: default_3.ReactNode;
660
660
  disabled?: boolean;
661
661
  };
662
662
 
@@ -677,8 +677,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
677
677
  onChangePage: (page: number) => void;
678
678
  onChangePageSize: (size: number) => void;
679
679
  onSort?: (sortField: string | number | symbol) => void;
680
- rowsSelected?: default_2.Key[];
681
- onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
680
+ rowsSelected?: default_3.Key[];
681
+ onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
682
682
  onRowClick?: (record: T) => void;
683
683
  rowKey?: string | ((record: T) => string);
684
684
  className?: string;
@@ -686,7 +686,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
686
686
  onSave?: (data: T) => void;
687
687
  }
688
688
 
689
- export declare const Tabs: default_2.FC<TabsProps>;
689
+ export declare const Tabs: default_3.FC<TabsProps>;
690
690
 
691
691
  export declare type TabsProps = TabsProps_2 & {
692
692
  items: TabItem[];
@@ -732,7 +732,7 @@ export declare interface TinyProps extends IAllProps {
732
732
  text_patterns?: any;
733
733
  }
734
734
 
735
- export declare const Tooltip: default_2.FC<TooltipProps>;
735
+ export declare const Tooltip: default_3.FC<TooltipProps>;
736
736
 
737
737
  export declare type TooltipProps = TooltipProps_2;
738
738
 
@@ -776,13 +776,13 @@ export declare interface UploadFieldProps extends Omit<UploadProps, "value" | "o
776
776
 
777
777
  export declare const useFiltersHandler: <T>(initialFilters: InitialFiltersSearch<T>) => {
778
778
  filters: InitialFiltersSearch<T>;
779
- rowsSelected: default_2.Key[];
780
- setRowsSelected: default_2.Dispatch<default_2.SetStateAction<default_2.Key[]>>;
781
- setFilters: default_2.Dispatch<default_2.SetStateAction<InitialFiltersSearch<T>>>;
779
+ rowsSelected: default_3.Key[];
780
+ setRowsSelected: default_3.Dispatch<default_3.SetStateAction<default_3.Key[]>>;
781
+ setFilters: default_3.Dispatch<default_3.SetStateAction<InitialFiltersSearch<T>>>;
782
782
  goToPage: (PageIndex: number) => void;
783
783
  changeRowlimit: (value: number) => void;
784
784
  resetToInitialFilters: () => void;
785
- handleCheckBox: (newSelectedRowKeys: default_2.Key[]) => void;
785
+ handleCheckBox: (newSelectedRowKeys: default_3.Key[]) => void;
786
786
  handleChangePage: (nextPage: number) => void;
787
787
  handleRequestSort: (sortField: string | number | symbol) => void;
788
788
  handleSearch: (nextFilters: InitialFiltersSearch<T>) => void;
package/types/ui.d.ts CHANGED
@@ -16,8 +16,8 @@ import { ColorPickerProps } from 'antd';
16
16
  import { ColProps as ColProps_2 } from 'antd';
17
17
  import { ColSize as ColSize_2 } from 'antd/es/grid';
18
18
  import { Control } from 'react-hook-form';
19
- import { default as default_2 } from 'react';
20
- import { default as default_3 } from 'antd/es/anchor/AnchorLink';
19
+ import { default as default_2 } from 'antd/es/anchor/AnchorLink';
20
+ import { default as default_3 } from 'react';
21
21
  import { DefaultOptionType } from 'antd/es/cascader';
22
22
  import { DefaultValues } from 'react-hook-form';
23
23
  import { DividerProps as DividerProps_2 } from 'antd';
@@ -84,7 +84,7 @@ export declare const Alert: React.FC<AlertProps>;
84
84
  export declare type AlertProps = AlertProps_2;
85
85
 
86
86
  export declare const Anchor: typeof Anchor_2 & {
87
- Link: typeof default_3;
87
+ Link: typeof default_2;
88
88
  };
89
89
 
90
90
  export declare interface AnchorProps extends AnchorProps_2 {
@@ -95,7 +95,7 @@ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
95
95
  export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
96
96
 
97
97
  export declare interface AppfixProps extends AffixProps {
98
- children: default_2.ReactNode;
98
+ children: default_3.ReactNode;
99
99
  }
100
100
 
101
101
  export declare const AutoComplete: React.FC<AutoCompleteProps>;
@@ -198,7 +198,7 @@ export declare interface BulkActionProps {
198
198
  handleLock?: () => void;
199
199
  }
200
200
 
201
- export declare const Button: default_2.FC<ButtonProps>;
201
+ export declare const Button: default_3.FC<ButtonProps>;
202
202
 
203
203
  export declare type ButtonProps = ButtonProps_2;
204
204
 
@@ -239,10 +239,10 @@ export declare interface ConfirmModalProps extends ModalProps {
239
239
  handleSubmit?: () => void;
240
240
  }
241
241
 
242
- export declare const Container: default_2.FC<ContainerProps>;
242
+ export declare const Container: default_3.FC<ContainerProps>;
243
243
 
244
244
  export declare interface ContainerProps {
245
- children: default_2.ReactNode;
245
+ children: default_3.ReactNode;
246
246
  size?: TailwindMaxWidth;
247
247
  className?: string;
248
248
  }
@@ -276,7 +276,7 @@ export declare const Empty: React.FC<EmptyProps>;
276
276
 
277
277
  export declare type EmptyProps = EmptyProps_2;
278
278
 
279
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
279
+ export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
280
280
 
281
281
  export declare interface ErrorMessageProps {
282
282
  errorMessage?: string;
@@ -321,12 +321,12 @@ export declare interface LabelProps {
321
321
  required?: boolean;
322
322
  }
323
323
 
324
- export declare const Layout: default_2.FC<LayoutProps> & {
325
- Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
326
- Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
327
- Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
328
- Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
329
- _InternalSiderContext: default_2.Context<SiderContextProps>;
324
+ export declare const Layout: default_3.FC<LayoutProps> & {
325
+ Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
326
+ Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
327
+ Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
328
+ Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
329
+ _InternalSiderContext: default_3.Context<SiderContextProps>;
330
330
  };
331
331
 
332
332
  export declare type LayoutProps = BaseProps_8 & BasicProps;
@@ -420,7 +420,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
420
420
  setValue?: UseFormSetValue<T>;
421
421
  handleSubmit?: FormEventHandler<any>;
422
422
  reset?: UseFormReset<T>;
423
- }) => default_2.ReactNode;
423
+ }) => default_3.ReactNode;
424
424
  onReset?: () => void;
425
425
  classNamesContainer?: string;
426
426
  classNameWrapperForm?: string;
@@ -500,8 +500,8 @@ export declare interface SubMenuProps extends SubMenuProps_2 {
500
500
 
501
501
  declare type TabItem = {
502
502
  key: string;
503
- label: default_2.ReactNode;
504
- children: default_2.ReactNode;
503
+ label: default_3.ReactNode;
504
+ children: default_3.ReactNode;
505
505
  disabled?: boolean;
506
506
  };
507
507
 
@@ -522,8 +522,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
522
522
  onChangePage: (page: number) => void;
523
523
  onChangePageSize: (size: number) => void;
524
524
  onSort?: (sortField: string | number | symbol) => void;
525
- rowsSelected?: default_2.Key[];
526
- onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
525
+ rowsSelected?: default_3.Key[];
526
+ onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
527
527
  onRowClick?: (record: T) => void;
528
528
  rowKey?: string | ((record: T) => string);
529
529
  className?: string;
@@ -531,7 +531,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
531
531
  onSave?: (data: T) => void;
532
532
  }
533
533
 
534
- export declare const Tabs: default_2.FC<TabsProps>;
534
+ export declare const Tabs: default_3.FC<TabsProps>;
535
535
 
536
536
  export declare type TabsProps = TabsProps_2 & {
537
537
  items: TabItem[];
@@ -550,7 +550,7 @@ export declare const Timeline: React.FC<TimelineProps>;
550
550
 
551
551
  export declare type TimelineProps = TimelineProps_2;
552
552
 
553
- export declare const Tooltip: default_2.FC<TooltipProps>;
553
+ export declare const Tooltip: default_3.FC<TooltipProps>;
554
554
 
555
555
  export declare type TooltipProps = TooltipProps_2;
556
556