@pnkx-lib/ui 1.1.15 → 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 +30 -31
- package/dist/types/index.d.ts +9 -18
- package/dist/types/ui.d.ts +9 -18
- package/dist/ui/index.js +23 -24
- 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,40 +1,39 @@
|
|
1
|
-
import { e
|
2
|
-
import { E as h,
|
3
|
-
import "
|
4
|
-
import { C as E, D as w, I, P as j, R as v, a as G, S as q, T as z } from "./chunks/Switch-DKxIhHNw.js";
|
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";
|
5
4
|
export {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
e as Badge,
|
6
|
+
o as Breadcrumb,
|
7
|
+
r as Button,
|
8
|
+
t as CascaderField,
|
9
|
+
j as CheckboxField,
|
11
10
|
l as Col,
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
i as Container,
|
12
|
+
f as DatePickerField,
|
13
|
+
p as Dropdown,
|
15
14
|
h as ErrorMessage,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
d as Flex,
|
16
|
+
B as Input,
|
17
|
+
D as Label,
|
18
|
+
n as Layout,
|
19
|
+
F as Menu,
|
20
|
+
c as Modal,
|
21
|
+
C as Pagination,
|
22
|
+
v as PnkxField,
|
23
|
+
S as Popover,
|
24
|
+
G as RadioGroup,
|
25
|
+
L as RangePickerField,
|
27
26
|
P as Row,
|
28
|
-
|
27
|
+
T as SearchFiltersForm,
|
29
28
|
q as SelectField,
|
30
|
-
|
31
|
-
|
32
|
-
|
29
|
+
b as Skeleton,
|
30
|
+
g as Space,
|
31
|
+
k as Splitter,
|
33
32
|
u as Steps,
|
34
33
|
x as Table,
|
35
34
|
M as Tabs,
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
35
|
+
E as TinyMCE,
|
36
|
+
R as Tooltip,
|
37
|
+
w as Typography,
|
38
|
+
m as typeColorMap
|
40
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
|
|
@@ -419,21 +419,6 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
419
419
|
customStyleContainer?: string;
|
420
420
|
}
|
421
421
|
|
422
|
-
export declare interface SidebarProps {
|
423
|
-
children?: React.ReactNode;
|
424
|
-
menu: Array<{
|
425
|
-
name: string;
|
426
|
-
href: string;
|
427
|
-
icon: React.ReactNode;
|
428
|
-
current: boolean;
|
429
|
-
children?: Array<{
|
430
|
-
name: string;
|
431
|
-
href: string;
|
432
|
-
}>;
|
433
|
-
}>;
|
434
|
-
router: (path: string) => void;
|
435
|
-
}
|
436
|
-
|
437
422
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
438
423
|
multiple?: false;
|
439
424
|
};
|
@@ -493,9 +478,13 @@ declare type TabItem = {
|
|
493
478
|
|
494
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;
|
495
480
|
|
481
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
482
|
+
editable?: boolean;
|
483
|
+
})[];
|
484
|
+
|
496
485
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
497
486
|
dataSource: T[];
|
498
|
-
columns:
|
487
|
+
columns: TableColumnsType<T> | TableColumnsTypeEditable<T>;
|
499
488
|
loading?: boolean;
|
500
489
|
totalItems: number;
|
501
490
|
filters: any;
|
@@ -507,6 +496,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
507
496
|
onRowClick?: (record: T) => void;
|
508
497
|
rowKey?: string;
|
509
498
|
className?: string;
|
499
|
+
editable?: boolean;
|
500
|
+
onSave?: (data: T[]) => void;
|
510
501
|
}
|
511
502
|
|
512
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;
|
@@ -291,21 +291,6 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
291
291
|
onSubmit: (data: T) => void;
|
292
292
|
}
|
293
293
|
|
294
|
-
export declare interface SidebarProps {
|
295
|
-
children?: React.ReactNode;
|
296
|
-
menu: Array<{
|
297
|
-
name: string;
|
298
|
-
href: string;
|
299
|
-
icon: React.ReactNode;
|
300
|
-
current: boolean;
|
301
|
-
children?: Array<{
|
302
|
-
name: string;
|
303
|
-
href: string;
|
304
|
-
}>;
|
305
|
-
}>;
|
306
|
-
router: (path: string) => void;
|
307
|
-
}
|
308
|
-
|
309
294
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
310
295
|
multiple?: false;
|
311
296
|
};
|
@@ -355,9 +340,13 @@ declare type TabItem = {
|
|
355
340
|
|
356
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;
|
357
342
|
|
343
|
+
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
344
|
+
editable?: boolean;
|
345
|
+
})[];
|
346
|
+
|
358
347
|
export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "columns"> {
|
359
348
|
dataSource: T[];
|
360
|
-
columns:
|
349
|
+
columns: TableColumnsType<T> | TableColumnsTypeEditable<T>;
|
361
350
|
loading?: boolean;
|
362
351
|
totalItems: number;
|
363
352
|
filters: any;
|
@@ -369,6 +358,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
369
358
|
onRowClick?: (record: T) => void;
|
370
359
|
rowKey?: string;
|
371
360
|
className?: string;
|
361
|
+
editable?: boolean;
|
362
|
+
onSave?: (data: T[]) => void;
|
372
363
|
}
|
373
364
|
|
374
365
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/ui/index.js
CHANGED
@@ -1,31 +1,30 @@
|
|
1
|
-
import { e, g as
|
2
|
-
import { E as
|
3
|
-
import "react";
|
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";
|
4
3
|
export {
|
5
4
|
e as Badge,
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
o as Breadcrumb,
|
6
|
+
r as Button,
|
7
|
+
t as CascaderField,
|
9
8
|
l as Col,
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
9
|
+
p as Container,
|
10
|
+
i as Dropdown,
|
11
|
+
x as ErrorMessage,
|
12
|
+
n as Flex,
|
13
|
+
P as Label,
|
14
|
+
d as Layout,
|
15
|
+
S as Menu,
|
16
|
+
T as Modal,
|
17
|
+
b as Pagination,
|
18
|
+
c as Popover,
|
19
|
+
g as Row,
|
21
20
|
C as SearchFiltersForm,
|
22
21
|
F as Skeleton,
|
23
22
|
M as Space,
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
m as Splitter,
|
24
|
+
u as Steps,
|
25
|
+
y as Table,
|
26
|
+
B as Tabs,
|
27
|
+
L as Tooltip,
|
28
|
+
k as Typography,
|
29
|
+
f as typeColorMap
|
31
30
|
};
|
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
|
}
|