@pnkx-lib/ui 1.3.5 → 1.3.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.
- package/dist/chunks/Checkbox-CTyXv2Fp.js +127 -0
- package/dist/chunks/Heading-DPghjWhA.js +6424 -0
- package/dist/chunks/Switch-C9zRQPNY.js +17530 -0
- package/dist/fields/index.js +9 -8
- package/dist/index.js +20 -20
- package/dist/types/index.d.ts +4 -3
- package/dist/types/ui.d.ts +4 -3
- package/dist/ui/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunks/Heading-DVEiMw7K.js +0 -5471
- package/dist/chunks/Switch-CzMyITg3.js +0 -14880
- package/dist/chunks/createSuper-DBIhZ50y.js +0 -2766
package/dist/fields/index.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { D as i, I as s, P as o, R as r, a as d } from "../chunks/Switch-C9zRQPNY.js";
|
2
|
+
import { C as t, R as c, S as k } from "../chunks/Checkbox-CTyXv2Fp.js";
|
2
3
|
export {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
4
|
+
t as CheckboxField,
|
5
|
+
i as DatePickerField,
|
6
|
+
s as Input,
|
7
|
+
o as PnkxField,
|
8
|
+
c as RadioGroup,
|
8
9
|
r as RangePickerField,
|
9
|
-
|
10
|
-
|
10
|
+
k as Select,
|
11
|
+
d as TinyMCE
|
11
12
|
};
|
package/dist/index.js
CHANGED
@@ -1,41 +1,41 @@
|
|
1
|
-
import { e, g as o, B as r, C as t, f as i, d as l, D as p, F as d, H as n, L as c, j as F, M as S, k as C, P as
|
2
|
-
import {
|
3
|
-
import { C as
|
1
|
+
import { e, g as o, B as r, C as t, f as i, d as l, D as p, F as d, H as n, L as c, j as F, M as S, k as C, P as b, R as g, c as P, m as T, S as k, h as m, i as u, l as x, T as M, b as R, a as y, t as f } from "./chunks/Heading-DPghjWhA.js";
|
2
|
+
import { D as B, E as D, I as L, L as E, P as w, R as H, a as I, T as j } from "./chunks/Switch-C9zRQPNY.js";
|
3
|
+
import { C as G, R as q, S as z } from "./chunks/Checkbox-CTyXv2Fp.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
|
+
G as CheckboxField,
|
10
10
|
i as Col,
|
11
11
|
l as Container,
|
12
|
-
|
12
|
+
B as DatePickerField,
|
13
13
|
p as Dropdown,
|
14
|
-
|
14
|
+
D as ErrorMessage,
|
15
15
|
d as Flex,
|
16
16
|
n as Heading,
|
17
|
-
|
18
|
-
|
17
|
+
L as Input,
|
18
|
+
E as Label,
|
19
19
|
c as Layout,
|
20
20
|
F as Menu,
|
21
21
|
S as Modal,
|
22
22
|
C as Pagination,
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
23
|
+
w as PnkxField,
|
24
|
+
b as Popover,
|
25
|
+
q as RadioGroup,
|
26
|
+
H as RangePickerField,
|
27
|
+
g as Row,
|
28
|
+
P as SearchFiltersForm,
|
29
|
+
z as Select,
|
30
|
+
T as Sidebar,
|
31
31
|
k as Skeleton,
|
32
32
|
m as Space,
|
33
33
|
u as Splitter,
|
34
34
|
x as Steps,
|
35
35
|
M as Table,
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
36
|
+
R as Tabs,
|
37
|
+
I as TinyMCE,
|
38
|
+
y as Tooltip,
|
39
|
+
j as Typography,
|
40
40
|
f as typeColorMap
|
41
41
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -443,6 +443,7 @@ export declare interface SidebarProps {
|
|
443
443
|
children?: Array<{
|
444
444
|
name: string;
|
445
445
|
href: string;
|
446
|
+
icon?: React.ReactNode;
|
446
447
|
}>;
|
447
448
|
}>;
|
448
449
|
}
|
@@ -505,7 +506,7 @@ declare type TabItem = {
|
|
505
506
|
disabled?: boolean;
|
506
507
|
};
|
507
508
|
|
508
|
-
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;
|
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;
|
509
510
|
|
510
511
|
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
511
512
|
|
@@ -525,10 +526,10 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
525
526
|
rowsSelected?: default_2.Key[];
|
526
527
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
527
528
|
onRowClick?: (record: T) => void;
|
528
|
-
rowKey?: string;
|
529
|
+
rowKey?: string | ((record: T) => string);
|
529
530
|
className?: string;
|
530
531
|
editable?: boolean;
|
531
|
-
onSave?: (data: T
|
532
|
+
onSave?: (data: T) => void;
|
532
533
|
}
|
533
534
|
|
534
535
|
export declare const Tabs: default_2.FC<TabsProps>;
|
package/dist/types/ui.d.ts
CHANGED
@@ -315,6 +315,7 @@ export declare interface SidebarProps {
|
|
315
315
|
children?: Array<{
|
316
316
|
name: string;
|
317
317
|
href: string;
|
318
|
+
icon?: React.ReactNode;
|
318
319
|
}>;
|
319
320
|
}>;
|
320
321
|
}
|
@@ -367,7 +368,7 @@ declare type TabItem = {
|
|
367
368
|
disabled?: boolean;
|
368
369
|
};
|
369
370
|
|
370
|
-
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;
|
371
|
+
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;
|
371
372
|
|
372
373
|
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
373
374
|
|
@@ -387,10 +388,10 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
387
388
|
rowsSelected?: default_2.Key[];
|
388
389
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
389
390
|
onRowClick?: (record: T) => void;
|
390
|
-
rowKey?: string;
|
391
|
+
rowKey?: string | ((record: T) => string);
|
391
392
|
className?: string;
|
392
393
|
editable?: boolean;
|
393
|
-
onSave?: (data: T
|
394
|
+
onSave?: (data: T) => void;
|
394
395
|
}
|
395
396
|
|
396
397
|
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 d, H as n, L as S, j as b, M as g, k as T, P as c, R as m, c as C, m as F, S as M, h as u, i as y, l as B, T as L, b as f, a as h, t as x } from "../chunks/Heading-
|
2
|
-
import { E as k, L as w, T as D } 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 d, H as n, L as S, j as b, M as g, k as T, P as c, R as m, c as C, m as F, S as M, h as u, i as y, l as B, T as L, b as f, a as h, t as x } from "../chunks/Heading-DPghjWhA.js";
|
2
|
+
import { E as k, L as w, T as D } from "../chunks/Switch-C9zRQPNY.js";
|
3
3
|
export {
|
4
4
|
e as Badge,
|
5
5
|
o as Breadcrumb,
|