@pnkx-lib/ui 1.1.16 → 1.1.17
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/dist/chunks/Checkbox-CXb4qF1Z.js +142 -0
- package/dist/chunks/{Steps-CQhCURd7.js → Steps-BpS9WTjP.js} +655 -670
- package/dist/chunks/Switch-DAZukdDR.js +17067 -0
- package/dist/fields/index.js +10 -9
- package/dist/index.js +18 -18
- package/dist/types/index.d.ts +9 -3
- package/dist/types/ui.d.ts +9 -3
- package/dist/ui/index.js +2 -2
- package/package.json +2 -1
- package/dist/chunks/AntdIcon-OM3ycq04.js +0 -2263
- package/dist/chunks/Switch-DKxIhHNw.js +0 -14946
package/dist/fields/index.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { D as i, I as s, R as o, a as r } from "../chunks/Switch-DAZukdDR.js";
|
2
|
+
import { C as l, P as t, R as F, S as c } from "../chunks/Checkbox-CXb4qF1Z.js";
|
2
3
|
export {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
l as CheckboxField,
|
5
|
+
i as DatePickerField,
|
6
|
+
s as Input,
|
7
|
+
t as PnkxField,
|
8
|
+
F as RadioGroup,
|
9
|
+
o as RangePickerField,
|
10
|
+
c as SelectField,
|
11
|
+
r as TinyMCE
|
11
12
|
};
|
package/dist/index.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f as l, d as i, D as p, F as d, L as n, j as F, M as c, k as C, P as S, R as
|
2
|
-
import {
|
3
|
-
import { C as
|
1
|
+
import { e, g as o, B as r, C as t, f as l, d as i, D as p, F as d, L as n, j as F, M as c, k as C, P as S, R as P, c as T, S as b, h as g, i as k, l as u, T as x, b as M, a as R, t as m } from "./chunks/Steps-BpS9WTjP.js";
|
2
|
+
import { D as f, E as h, I as B, L as D, R as L, a as E, T as w } from "./chunks/Switch-DAZukdDR.js";
|
3
|
+
import { C as j, P as v, R as G, S as q } from "./chunks/Checkbox-CXb4qF1Z.js";
|
4
4
|
export {
|
5
5
|
e as Badge,
|
6
6
|
o as Breadcrumb,
|
7
7
|
r as Button,
|
8
8
|
t as CascaderField,
|
9
|
-
|
9
|
+
j as CheckboxField,
|
10
10
|
l as Col,
|
11
11
|
i as Container,
|
12
|
-
|
12
|
+
f as DatePickerField,
|
13
13
|
p as Dropdown,
|
14
|
-
|
14
|
+
h as ErrorMessage,
|
15
15
|
d as Flex,
|
16
|
-
|
17
|
-
|
16
|
+
B as Input,
|
17
|
+
D as Label,
|
18
18
|
n as Layout,
|
19
19
|
F as Menu,
|
20
20
|
c as Modal,
|
21
21
|
C as Pagination,
|
22
|
-
|
22
|
+
v as PnkxField,
|
23
23
|
S as Popover,
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
24
|
+
G as RadioGroup,
|
25
|
+
L as RangePickerField,
|
26
|
+
P as Row,
|
27
|
+
T as SearchFiltersForm,
|
28
|
+
q as SelectField,
|
29
29
|
b as Skeleton,
|
30
30
|
g as Space,
|
31
31
|
k as Splitter,
|
32
32
|
u as Steps,
|
33
33
|
x as Table,
|
34
34
|
M as Tabs,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
35
|
+
E as TinyMCE,
|
36
|
+
R as Tooltip,
|
37
|
+
w as Typography,
|
38
|
+
m as typeColorMap
|
39
39
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -9,7 +9,6 @@ import { CascaderProps } from 'antd/es/cascader';
|
|
9
9
|
import { CheckboxProps } from 'antd';
|
10
10
|
import { ColProps as ColProps_2 } from 'antd';
|
11
11
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
12
|
-
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
13
12
|
import { Control } from 'react-hook-form';
|
14
13
|
import { ControllerFieldState } from 'react-hook-form';
|
15
14
|
import { ControllerRenderProps } from 'react-hook-form';
|
@@ -58,6 +57,7 @@ import { Steps as Steps_2 } from 'antd';
|
|
58
57
|
import { StepsProps as StepsProps_2 } from 'antd';
|
59
58
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
60
59
|
import { SwitchProps } from 'antd';
|
60
|
+
import { TableColumnsType } from 'antd';
|
61
61
|
import { TableProps } from 'antd/lib/table';
|
62
62
|
import { TabsProps as TabsProps_2 } from 'antd';
|
63
63
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
@@ -179,7 +179,7 @@ export declare interface ColSize extends ColSize_2 {
|
|
179
179
|
|
180
180
|
export declare type ColSpanType = number | string;
|
181
181
|
|
182
|
-
|
182
|
+
declare type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
|
183
183
|
|
184
184
|
declare type ComponentPropsType<TComponent> = TComponent extends React_2.ComponentType<infer P> ? P : never;
|
185
185
|
|
@@ -478,9 +478,13 @@ declare type TabItem = {
|
|
478
478
|
|
479
479
|
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, ...rest }: TableCommonProps<T>) => JSX.Element;
|
480
480
|
|
481
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
482
|
+
editable?: boolean;
|
483
|
+
})[];
|
484
|
+
|
481
485
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
482
486
|
dataSource: T[];
|
483
|
-
columns:
|
487
|
+
columns: TableColumnsType<T> | TableColumnsTypeEditable<T>;
|
484
488
|
loading?: boolean;
|
485
489
|
totalItems: number;
|
486
490
|
filters: any;
|
@@ -492,6 +496,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
492
496
|
onRowClick?: (record: T) => void;
|
493
497
|
rowKey?: string;
|
494
498
|
className?: string;
|
499
|
+
editable?: boolean;
|
500
|
+
onSave?: (data: T[]) => void;
|
495
501
|
}
|
496
502
|
|
497
503
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/types/ui.d.ts
CHANGED
@@ -8,7 +8,6 @@ import { ButtonProps as ButtonProps_2 } from 'antd';
|
|
8
8
|
import { CascaderProps } from 'antd/es/cascader';
|
9
9
|
import { ColProps as ColProps_2 } from 'antd';
|
10
10
|
import { ColSize as ColSize_2 } from 'antd/es/grid';
|
11
|
-
import { ColumnsType as ColumnsType_2 } from 'antd/es/table';
|
12
11
|
import { Control } from 'react-hook-form';
|
13
12
|
import { default as default_2 } from 'react';
|
14
13
|
import { DefaultOptionType } from 'antd/es/cascader';
|
@@ -45,6 +44,7 @@ import { StepProps as StepProps_2 } from 'antd';
|
|
45
44
|
import { Steps as Steps_2 } from 'antd';
|
46
45
|
import { StepsProps as StepsProps_2 } from 'antd';
|
47
46
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
47
|
+
import { TableColumnsType } from 'antd';
|
48
48
|
import { TableProps } from 'antd/lib/table';
|
49
49
|
import { TabsProps as TabsProps_2 } from 'antd';
|
50
50
|
import { TextProps } from 'antd/es/typography/Text';
|
@@ -150,7 +150,7 @@ export declare interface ColSize extends ColSize_2 {
|
|
150
150
|
|
151
151
|
export declare type ColSpanType = number | string;
|
152
152
|
|
153
|
-
|
153
|
+
declare type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
|
154
154
|
|
155
155
|
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
156
156
|
Item: typeof MenuItem;
|
@@ -340,9 +340,13 @@ declare type TabItem = {
|
|
340
340
|
|
341
341
|
export declare const Table: <T extends RowCommon>({ dataSource, columns, loading, totalItems, filters, onChangePage, onChangePageSize, onSort, rowsSelected, onSelect, onRowClick, rowKey, className, ...rest }: TableCommonProps<T>) => JSX.Element;
|
342
342
|
|
343
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
344
|
+
editable?: boolean;
|
345
|
+
})[];
|
346
|
+
|
343
347
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
344
348
|
dataSource: T[];
|
345
|
-
columns:
|
349
|
+
columns: TableColumnsType<T> | TableColumnsTypeEditable<T>;
|
346
350
|
loading?: boolean;
|
347
351
|
totalItems: number;
|
348
352
|
filters: any;
|
@@ -354,6 +358,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
354
358
|
onRowClick?: (record: T) => void;
|
355
359
|
rowKey?: string;
|
356
360
|
className?: string;
|
361
|
+
editable?: boolean;
|
362
|
+
onSave?: (data: T[]) => void;
|
357
363
|
}
|
358
364
|
|
359
365
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/ui/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as n, L as d, j as S, M as T, k as b, P as c, R as g, c as C, S as F, h as M, i as m, l as u, T as y, b as B, a as L, t as f } from "../chunks/Steps-
|
2
|
-
import { E as x, L as P, T as k } from "../chunks/
|
1
|
+
import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as n, L as d, j as S, M as T, k as b, P as c, R as g, c as C, S as F, h as M, i as m, l as u, T as y, b as B, a as L, t as f } from "../chunks/Steps-BpS9WTjP.js";
|
2
|
+
import { E as x, L as P, T as k } from "../chunks/Switch-DAZukdDR.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
5
5
|
o as Breadcrumb,
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pnkx-lib/ui",
|
3
3
|
"private": false,
|
4
|
-
"version": "1.1.
|
4
|
+
"version": "1.1.17",
|
5
5
|
"type": "module",
|
6
6
|
"main": "./dist/index.js",
|
7
7
|
"exports": {
|
@@ -91,6 +91,7 @@
|
|
91
91
|
"react-hook-form": "^7.54.2",
|
92
92
|
"react-number-format": "^5.4.3",
|
93
93
|
"react-router": "^7.6.0",
|
94
|
+
"react-router-dom": "^7.6.0",
|
94
95
|
"yup": "^1.6.1",
|
95
96
|
"zustand": "^5.0.3"
|
96
97
|
}
|