@pnkx-lib/ui 1.6.5 → 1.6.6

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,17 +1,2 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const Switch = require('../chunks/Switch-03DUOS9f.js');
6
- const Checkbox = require('../chunks/Checkbox-D7JJEnsk.js');
7
-
8
-
9
-
10
- exports.DatePickerField = Switch.DatePickerField;
11
- exports.Input = Switch.Input;
12
- exports.PnkxField = Switch.PnkxField;
13
- exports.RangePickerField = Switch.RangePickerField;
14
- exports.TinyMCE = Switch.TinyMCE;
15
- exports.CheckboxField = Checkbox.CheckboxField;
16
- exports.RadioGroup = Checkbox.RadioGroup;
17
- exports.Select = Checkbox.Select;
1
+ export { D as DatePickerField, I as Input, P as PnkxField, R as RangePickerField, a as TinyMCE } from '../chunks/Switch-eMq9KkOy.js';
2
+ export { C as CheckboxField, R as RadioGroup, S as Select } from '../chunks/Checkbox-CJ_M7IzZ.js';
package/es/hooks/index.js CHANGED
@@ -1,12 +1,2 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const cloneDeep = require('../chunks/cloneDeep-DWe9CKmh.js');
6
- const useMessage = require('../chunks/useMessage-DtM7Izkl.js');
7
-
8
-
9
-
10
- exports.useToast = cloneDeep.useToast;
11
- exports.useFiltersHandler = useMessage.useFiltersHandler;
12
- exports.useMessage = useMessage.useMessage;
1
+ export { u as useToast } from '../chunks/cloneDeep-BLYi2V0G.js';
2
+ export { u as useFiltersHandler, a as useMessage } from '../chunks/useMessage-D_-VT5B4.js';
package/es/index.js CHANGED
@@ -1,75 +1,5 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const ConfirmModal = require('./chunks/ConfirmModal-B7zTPvH9.js');
6
- const Switch = require('./chunks/Switch-03DUOS9f.js');
7
- const Checkbox = require('./chunks/Checkbox-D7JJEnsk.js');
8
- const cloneDeep = require('./chunks/cloneDeep-DWe9CKmh.js');
9
- const useMessage = require('./chunks/useMessage-DtM7Izkl.js');
10
-
11
-
12
-
13
- exports.Alert = ConfirmModal.Alert;
14
- exports.Anchor = ConfirmModal.Anchor;
15
- exports.Appfix = ConfirmModal.Appfix;
16
- exports.AutoComplete = ConfirmModal.AutoComplete;
17
- exports.Badge = ConfirmModal.Badge;
18
- exports.Breadcrumb = ConfirmModal.Breadcrumb;
19
- exports.BulkAction = ConfirmModal.BulkAction;
20
- exports.Button = ConfirmModal.Button;
21
- exports.CascaderField = ConfirmModal.CascaderField;
22
- exports.Col = ConfirmModal.Col;
23
- exports.ConfirmModal = ConfirmModal.ConfirmModal;
24
- exports.Container = ConfirmModal.Container;
25
- exports.Divider = ConfirmModal.Divider;
26
- exports.Drawer = ConfirmModal.Drawer;
27
- exports.Dropdown = ConfirmModal.Dropdown;
28
- exports.Empty = ConfirmModal.Empty;
29
- exports.Flex = ConfirmModal.Flex;
30
- exports.Heading = ConfirmModal.Heading;
31
- exports.Image = ConfirmModal.Image;
32
- exports.Layout = ConfirmModal.Layout;
33
- exports.Menu = ConfirmModal.Menu;
34
- exports.Modal = ConfirmModal.Modal;
35
- exports.Pagination = ConfirmModal.Pagination;
36
- exports.PnkxCollapse = ConfirmModal.PnkxCollapse;
37
- exports.PnkxColorPicker = ConfirmModal.PnkxColorPicker;
38
- exports.Popconfirm = ConfirmModal.Popconfirm;
39
- exports.Popover = ConfirmModal.Popover;
40
- exports.QRCode = ConfirmModal.QRCode;
41
- exports.Rate = ConfirmModal.Rate;
42
- exports.Result = ConfirmModal.Result;
43
- exports.Row = ConfirmModal.Row;
44
- exports.SearchFiltersForm = ConfirmModal.SearchFiltersForm;
45
- exports.Segmented = ConfirmModal.Segmented;
46
- exports.Sidebar = ConfirmModal.Sidebar;
47
- exports.Skeleton = ConfirmModal.Skeleton;
48
- exports.Space = ConfirmModal.Space;
49
- exports.Spin = ConfirmModal.Spin;
50
- exports.Splitter = ConfirmModal.Splitter;
51
- exports.Statistic = ConfirmModal.Statistic;
52
- exports.Steps = ConfirmModal.Steps;
53
- exports.Table = ConfirmModal.Table;
54
- exports.Tabs = ConfirmModal.Tabs;
55
- exports.Tag = ConfirmModal.Tag;
56
- exports.Timeline = ConfirmModal.Timeline;
57
- exports.Tooltip = ConfirmModal.Tooltip;
58
- exports.Tour = ConfirmModal.Tour;
59
- exports.Tree = ConfirmModal.Tree;
60
- exports.Watermark = ConfirmModal.Watermark;
61
- exports.typeColorMap = ConfirmModal.typeColorMap;
62
- exports.DatePickerField = Switch.DatePickerField;
63
- exports.ErrorMessage = Switch.ErrorMessage;
64
- exports.Input = Switch.Input;
65
- exports.Label = Switch.Label;
66
- exports.PnkxField = Switch.PnkxField;
67
- exports.RangePickerField = Switch.RangePickerField;
68
- exports.TinyMCE = Switch.TinyMCE;
69
- exports.Typography = Switch.Typography;
70
- exports.CheckboxField = Checkbox.CheckboxField;
71
- exports.RadioGroup = Checkbox.RadioGroup;
72
- exports.Select = Checkbox.Select;
73
- exports.useToast = cloneDeep.useToast;
74
- exports.useFiltersHandler = useMessage.useFiltersHandler;
75
- exports.useMessage = useMessage.useMessage;
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-Bt_bPSWr.js';
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
+ export { C as CheckboxField, R as RadioGroup, S as Select } from './chunks/Checkbox-CJ_M7IzZ.js';
4
+ export { u as useToast } from './chunks/cloneDeep-BLYi2V0G.js';
5
+ export { u as useFiltersHandler, a as useMessage } from './chunks/useMessage-D_-VT5B4.js';
package/es/ui/index.js CHANGED
@@ -1,61 +1,2 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
-
5
- const ConfirmModal = require('../chunks/ConfirmModal-B7zTPvH9.js');
6
- const Switch = require('../chunks/Switch-03DUOS9f.js');
7
-
8
-
9
-
10
- exports.Alert = ConfirmModal.Alert;
11
- exports.Anchor = ConfirmModal.Anchor;
12
- exports.Appfix = ConfirmModal.Appfix;
13
- exports.AutoComplete = ConfirmModal.AutoComplete;
14
- exports.Badge = ConfirmModal.Badge;
15
- exports.Breadcrumb = ConfirmModal.Breadcrumb;
16
- exports.BulkAction = ConfirmModal.BulkAction;
17
- exports.Button = ConfirmModal.Button;
18
- exports.CascaderField = ConfirmModal.CascaderField;
19
- exports.Col = ConfirmModal.Col;
20
- exports.ConfirmModal = ConfirmModal.ConfirmModal;
21
- exports.Container = ConfirmModal.Container;
22
- exports.Divider = ConfirmModal.Divider;
23
- exports.Drawer = ConfirmModal.Drawer;
24
- exports.Dropdown = ConfirmModal.Dropdown;
25
- exports.Empty = ConfirmModal.Empty;
26
- exports.Flex = ConfirmModal.Flex;
27
- exports.Heading = ConfirmModal.Heading;
28
- exports.Image = ConfirmModal.Image;
29
- exports.Layout = ConfirmModal.Layout;
30
- exports.Menu = ConfirmModal.Menu;
31
- exports.Modal = ConfirmModal.Modal;
32
- exports.Pagination = ConfirmModal.Pagination;
33
- exports.PnkxCollapse = ConfirmModal.PnkxCollapse;
34
- exports.PnkxColorPicker = ConfirmModal.PnkxColorPicker;
35
- exports.Popconfirm = ConfirmModal.Popconfirm;
36
- exports.Popover = ConfirmModal.Popover;
37
- exports.QRCode = ConfirmModal.QRCode;
38
- exports.Rate = ConfirmModal.Rate;
39
- exports.Result = ConfirmModal.Result;
40
- exports.Row = ConfirmModal.Row;
41
- exports.SearchFiltersForm = ConfirmModal.SearchFiltersForm;
42
- exports.Segmented = ConfirmModal.Segmented;
43
- exports.Sidebar = ConfirmModal.Sidebar;
44
- exports.Skeleton = ConfirmModal.Skeleton;
45
- exports.Space = ConfirmModal.Space;
46
- exports.Spin = ConfirmModal.Spin;
47
- exports.Splitter = ConfirmModal.Splitter;
48
- exports.Statistic = ConfirmModal.Statistic;
49
- exports.Steps = ConfirmModal.Steps;
50
- exports.Table = ConfirmModal.Table;
51
- exports.Tabs = ConfirmModal.Tabs;
52
- exports.Tag = ConfirmModal.Tag;
53
- exports.Timeline = ConfirmModal.Timeline;
54
- exports.Tooltip = ConfirmModal.Tooltip;
55
- exports.Tour = ConfirmModal.Tour;
56
- exports.Tree = ConfirmModal.Tree;
57
- exports.Watermark = ConfirmModal.Watermark;
58
- exports.typeColorMap = ConfirmModal.typeColorMap;
59
- exports.ErrorMessage = Switch.ErrorMessage;
60
- exports.Label = Switch.Label;
61
- exports.Typography = Switch.Typography;
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-Bt_bPSWr.js';
2
+ export { E as ErrorMessage, L as Label, T as Typography } from '../chunks/Switch-eMq9KkOy.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pnkx-lib/ui",
3
3
  "private": false,
4
- "version": "1.6.5",
4
+ "version": "1.6.6",
5
5
  "type": "module",
6
6
  "main": "./es/index.js",
7
7
  "module": "./es/index.js",
package/types/fields.d.ts CHANGED
@@ -6,7 +6,8 @@ import { Dayjs } from 'dayjs';
6
6
  import { default as default_2 } from 'react';
7
7
  import { IAllProps } from '@tinymce/tinymce-react';
8
8
  import { InputProps as InputProps_2 } from 'antd';
9
- import { JSX } from 'react';
9
+ import { JSX } from 'react/jsx-runtime';
10
+ import { JSX as JSX_2 } from 'react';
10
11
  import { RadioGroupProps } from 'antd';
11
12
  import { RangePickerProps } from 'antd/es/date-picker';
12
13
  import * as React_2 from 'react';
@@ -19,7 +20,7 @@ import { UploadProps } from 'antd';
19
20
  import { UseFormSetValue } from 'react-hook-form';
20
21
  import { UseFormStateReturn } from 'react-hook-form';
21
22
 
22
- export declare const CheckboxField: (props: CheckboxFieldProps) => JSX;
23
+ export declare const CheckboxField: (props: CheckboxFieldProps) => JSX.Element;
23
24
 
24
25
  export declare interface CheckboxFieldProps extends Omit<CheckboxProps, "onChange" | "checked"> {
25
26
  field?: ControllerRenderProps<any, any>;
@@ -52,7 +53,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
52
53
  size?: TSize;
53
54
  }
54
55
 
55
- export declare const DatePickerField: (props: DatePickerDMYProps) => default_2.JSX.Element;
56
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
56
57
 
57
58
  export declare const Input: (props: InputProps) => JSX.Element;
58
59
 
@@ -72,7 +73,7 @@ export declare interface InputProps extends InputProps_2 {
72
73
  }
73
74
 
74
75
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
75
- render(): React_2.JSX.Element;
76
+ render(): JSX.Element;
76
77
  }
77
78
 
78
79
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -90,10 +91,10 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
90
91
  type?: TInputNumberType;
91
92
  prefix?: string;
92
93
  suffix?: string;
93
- helperText?: () => JSX.Element | null;
94
+ helperText?: () => JSX_2.Element | null;
94
95
  }
95
96
 
96
- export declare const RadioGroup: (props: RadioProps) => JSX;
97
+ export declare const RadioGroup: (props: RadioProps) => JSX.Element;
97
98
 
98
99
  export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "onChange"> {
99
100
  field?: ControllerRenderProps<any, any>;
@@ -106,7 +107,7 @@ export declare interface RadioProps extends Omit<RadioGroupProps, "options" | "o
106
107
  position?: TPositionRadio;
107
108
  }
108
109
 
109
- export declare const RangePickerField: (props: RangePickerFieldProps) => JSX;
110
+ export declare const RangePickerField: (props: RangePickerFieldProps) => JSX.Element;
110
111
 
111
112
  export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "value" | "onChange"> {
112
113
  field?: ControllerRenderProps<any, any>;
@@ -118,7 +119,7 @@ export declare interface RangePickerFieldProps extends Omit<RangePickerProps, "v
118
119
  customStyleDatePicker?: string;
119
120
  }
120
121
 
121
- export declare const Select: (props: SelectFieldProps) => JSX;
122
+ export declare const Select: (props: SelectFieldProps) => JSX.Element;
122
123
 
123
124
  export declare interface SelectFieldProps extends SelectProps {
124
125
  field?: ControllerRenderProps<any, any>;
@@ -152,7 +153,7 @@ export declare interface TextAreaProps extends TextAreaProps_2 {
152
153
  declare type TInputNumberType = "number" | "money";
153
154
 
154
155
  export declare const TinyMCE: {
155
- (props: TinyProps): JSX;
156
+ (props: TinyProps): JSX.Element;
156
157
  displayName: string;
157
158
  };
158
159
 
package/types/index.d.ts CHANGED
@@ -40,7 +40,8 @@ import { ForwardRefExoticComponent } from 'react';
40
40
  import { IAllProps } from '@tinymce/tinymce-react';
41
41
  import { ImageProps } from 'antd';
42
42
  import { InputProps as InputProps_2 } from 'antd';
43
- import { JSX } from 'react';
43
+ import { JSX } from 'react/jsx-runtime';
44
+ import { JSX as JSX_2 } from 'react';
44
45
  import { MenuDividerProps } from 'antd/es/menu';
45
46
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
46
47
  import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
@@ -110,7 +111,7 @@ export declare interface AnchorProps extends AnchorProps_2 {
110
111
 
111
112
  export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
112
113
 
113
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => default_2.JSX.Element;
114
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
114
115
 
115
116
  export declare interface AppfixProps extends AffixProps {
116
117
  children: default_2.ReactNode;
@@ -202,7 +203,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
202
203
 
203
204
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
204
205
 
205
- export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => default_2.JSX.Element;
206
+ export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
206
207
 
207
208
  export declare interface BulkActionProps {
208
209
  quantity: number;
@@ -299,7 +300,7 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
299
300
  size?: TSize;
300
301
  }
301
302
 
302
- export declare const DatePickerField: (props: DatePickerDMYProps) => default_2.JSX.Element;
303
+ export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
303
304
 
304
305
  export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
305
306
 
@@ -330,7 +331,7 @@ export declare const Empty: React.FC<EmptyProps>;
330
331
 
331
332
  export declare type EmptyProps = EmptyProps_2;
332
333
 
333
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => default_2.JSX.Element | null>;
334
+ export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
334
335
 
335
336
  export declare interface ErrorMessageProps {
336
337
  errorMessage?: string;
@@ -460,7 +461,7 @@ export declare type PnkxCollapseProps = CollapseProps;
460
461
  export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
461
462
 
462
463
  export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
463
- render(): React_2.JSX.Element;
464
+ render(): JSX.Element;
464
465
  }
465
466
 
466
467
  export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>> = {
@@ -494,7 +495,7 @@ export declare interface PropsNumberFormat extends Omit<InputProps, "onChange" |
494
495
  type?: TInputNumberType;
495
496
  prefix?: string;
496
497
  suffix?: string;
497
- helperText?: () => JSX.Element | null;
498
+ helperText?: () => JSX_2.Element | null;
498
499
  }
499
500
 
500
501
  export declare const QRCode: React.FC<QRCodeProps>;
@@ -545,7 +546,7 @@ export declare interface RowProps extends RowProps_2 {
545
546
 
546
547
  export declare type RowPropsUnion = BaseProps_4 & RowProps;
547
548
 
548
- export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => default_2.JSX.Element;
549
+ export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
549
550
 
550
551
  export declare interface SearchFiltersFormProps<T extends FieldValues> {
551
552
  renderFilterFields?: (options: {
@@ -660,7 +661,7 @@ declare type TabItem = {
660
661
  disabled?: boolean;
661
662
  };
662
663
 
663
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => default_2.JSX.Element;
664
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => JSX.Element;
664
665
 
665
666
  export declare type TableColumnsType<T> = TableColumnsType_2<T>;
666
667
 
package/types/ui.d.ts CHANGED
@@ -32,7 +32,7 @@ import { FlexProps as FlexProps_2 } from 'antd';
32
32
  import { FormEventHandler } from 'react';
33
33
  import { ForwardRefExoticComponent } from 'react';
34
34
  import { ImageProps } from 'antd';
35
- import { JSX } from 'react';
35
+ import { JSX } from 'react/jsx-runtime';
36
36
  import { MenuDividerProps } from 'antd/es/menu';
37
37
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
38
38
  import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
@@ -92,7 +92,7 @@ export declare interface AnchorProps extends AnchorProps_2 {
92
92
 
93
93
  export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
94
94
 
95
- export declare const Appfix: ({ children, ...rest }: AppfixProps) => default_2.JSX.Element;
95
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
96
96
 
97
97
  export declare interface AppfixProps extends AffixProps {
98
98
  children: default_2.ReactNode;
@@ -184,7 +184,7 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
184
184
 
185
185
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
186
186
 
187
- export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => default_2.JSX.Element;
187
+ export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
188
188
 
189
189
  export declare interface BulkActionProps {
190
190
  quantity: number;
@@ -277,7 +277,7 @@ export declare const Empty: React.FC<EmptyProps>;
277
277
 
278
278
  export declare type EmptyProps = EmptyProps_2;
279
279
 
280
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => default_2.JSX.Element | null>;
280
+ export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
281
281
 
282
282
  export declare interface ErrorMessageProps {
283
283
  errorMessage?: string;
@@ -413,7 +413,7 @@ export declare interface RowProps extends RowProps_2 {
413
413
 
414
414
  export declare type RowPropsUnion = BaseProps_4 & RowProps;
415
415
 
416
- export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => default_2.JSX.Element;
416
+ export declare const SearchFiltersForm: <T extends FieldValues = FieldValues>({ initialValues, renderFilterFields, onSubmit, onReset, classNamesContainer, classNameWrapperForm, hideDefaultSubmit, hideResetButton, }: SearchFiltersFormProps<T> & Partial<UseFormReturn<T>>) => JSX.Element;
417
417
 
418
418
  export declare interface SearchFiltersFormProps<T extends FieldValues> {
419
419
  renderFilterFields?: (options: {
@@ -506,7 +506,7 @@ declare type TabItem = {
506
506
  disabled?: boolean;
507
507
  };
508
508
 
509
- export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => default_2.JSX.Element;
509
+ export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, editable, onSave, ...rest }: TableCommonProps<T>) => JSX.Element;
510
510
 
511
511
  export declare type TableColumnsType<T> = TableColumnsType_2<T>;
512
512
 
@@ -1,156 +0,0 @@
1
- 'use strict';
2
-
3
- const Switch = require('./Switch-03DUOS9f.js');
4
- const antd = require('antd');
5
-
6
- const Select = (props) => {
7
- //! State
8
- const {
9
- field,
10
- formState,
11
- label,
12
- required,
13
- afterOnChange,
14
- customStyleContainer,
15
- ...restProps
16
- } = props;
17
- const { name, value, onChange, onBlur } = field || {};
18
- const { touchedFields, errors, isSubmitted } = formState || {};
19
- const isTouched = Switch.get(touchedFields, name);
20
- const errorMessage = Switch.get(errors, name)?.message;
21
- //! Function
22
- const handleChange = (val) => {
23
- onChange?.(val);
24
- afterOnChange?.(val);
25
- };
26
- const renderErrorMessage = () => {
27
- if (!errorMessage) return null;
28
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
29
- Switch.ErrorMessage,
30
- {
31
- errorMessage,
32
- isTouched,
33
- isSubmitted
34
- }
35
- );
36
- };
37
- //! Render
38
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsxs("div", { className: customStyleContainer, children: [
39
- label && /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(Switch.Label, { label, required }),
40
- /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
41
- antd.Select,
42
- {
43
- onChange: handleChange,
44
- onBlur,
45
- value,
46
- style: { width: "100%" },
47
- optionLabelProp: "label",
48
- status: (isTouched || isSubmitted) && Boolean(errorMessage) ? "error" : void 0,
49
- ...restProps
50
- }
51
- ),
52
- renderErrorMessage()
53
- ] });
54
- };
55
-
56
- const RadioGroup = (props) => {
57
- //! State
58
- const {
59
- field,
60
- formState,
61
- customStyleRadio,
62
- customStyleWrap = "",
63
- afterOnChange,
64
- options,
65
- ...restProps
66
- } = props;
67
- const { name, value, onChange } = field || {};
68
- const { touchedFields, errors, isSubmitted } = formState || {};
69
- const isTouched = Switch.get(touchedFields, name);
70
- const errorMessage = Switch.get(errors, name)?.message;
71
- //! Function
72
- const handleChange = (e) => {
73
- onChange?.(e);
74
- afterOnChange?.(e?.target?.value);
75
- };
76
- const renderErrorMessage = () => {
77
- if (!errorMessage) return null;
78
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
79
- Switch.ErrorMessage,
80
- {
81
- errorMessage,
82
- isTouched,
83
- isSubmitted
84
- }
85
- );
86
- };
87
- //! Render
88
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsxs("div", { className: customStyleWrap, children: [
89
- /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(antd.Radio.Group, { onChange: handleChange, value, ...restProps, children: options.map((item) => /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
90
- antd.Radio,
91
- {
92
- value: item.value,
93
- className: customStyleRadio,
94
- children: /* @__PURE__ */ Switch.jsxRuntimeExports.jsxs(Switch.Typography.Text, { children: [
95
- " ",
96
- item.label
97
- ] })
98
- },
99
- `${name}-${item.value}`
100
- )) }),
101
- renderErrorMessage()
102
- ] });
103
- };
104
-
105
- const CheckboxField = (props) => {
106
- //! State
107
- const {
108
- field,
109
- formState,
110
- label,
111
- afterOnChange,
112
- customStyleContainer,
113
- customStyleCheckbox,
114
- ...restProps
115
- } = props;
116
- const { name, value, onChange, onBlur } = field || {};
117
- const { touchedFields, errors, isSubmitted } = formState || {};
118
- const isTouched = Switch.get(touchedFields, name);
119
- const errorMessage = Switch.get(errors, name)?.message;
120
- //! Function
121
- const handleChange = (e) => {
122
- const checked = e.target.checked;
123
- onChange?.(checked);
124
- afterOnChange?.(checked);
125
- };
126
- const renderErrorMessage = () => {
127
- if (!errorMessage) return null;
128
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
129
- Switch.ErrorMessage,
130
- {
131
- errorMessage,
132
- isTouched,
133
- isSubmitted
134
- }
135
- );
136
- };
137
- //! Render
138
- return /* @__PURE__ */ Switch.jsxRuntimeExports.jsxs("div", { className: customStyleContainer, children: [
139
- /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(
140
- antd.Checkbox,
141
- {
142
- onBlur,
143
- checked: !!value,
144
- onChange: handleChange,
145
- className: customStyleCheckbox,
146
- ...restProps,
147
- children: /* @__PURE__ */ Switch.jsxRuntimeExports.jsx(Switch.Typography.Text, { children: label })
148
- }
149
- ),
150
- renderErrorMessage()
151
- ] });
152
- };
153
-
154
- exports.CheckboxField = CheckboxField;
155
- exports.RadioGroup = RadioGroup;
156
- exports.Select = Select;