@pnkx-lib/ui 1.3.5 → 1.3.7
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/Divider-DL8rwhWq.js +6057 -0
- package/dist/chunks/Switch-C9zRQPNY.js +17530 -0
- package/dist/fields/index.js +9 -8
- package/dist/index.js +41 -37
- package/dist/types/index.d.ts +20 -7
- package/dist/types/ui.d.ts +20 -7
- package/dist/ui/index.js +34 -30
- 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,45 @@
|
|
1
|
-
import { e, g as
|
2
|
-
import { E as
|
3
|
-
import
|
1
|
+
import { e as i, g as t, B as p, C as l, f as d, d as n, n as c, D as m, F, H as g, L as C, j as S, M as T, k as P, P as b, R as k, c as u, S as x, h as M, i as R, l as y, T as D, b as f, m as h, a as B, t as L } from "./chunks/Divider-DL8rwhWq.js";
|
2
|
+
import { D as v, E as w, I as H, L as I, P as j, R as G, a as q, T as z } from "./chunks/Switch-C9zRQPNY.js";
|
3
|
+
import "react";
|
4
|
+
import "react-router-dom";
|
5
|
+
import "antd";
|
6
|
+
import { C as J, R as K, S as N } from "./chunks/Checkbox-CTyXv2Fp.js";
|
4
7
|
export {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
S as
|
22
|
-
|
8
|
+
i as Badge,
|
9
|
+
t as Breadcrumb,
|
10
|
+
p as Button,
|
11
|
+
l as CascaderField,
|
12
|
+
J as CheckboxField,
|
13
|
+
d as Col,
|
14
|
+
n as Container,
|
15
|
+
v as DatePickerField,
|
16
|
+
c as Divider,
|
17
|
+
m as Dropdown,
|
18
|
+
w as ErrorMessage,
|
19
|
+
F as Flex,
|
20
|
+
g as Heading,
|
21
|
+
H as Input,
|
22
|
+
I as Label,
|
23
|
+
C as Layout,
|
24
|
+
S as Menu,
|
25
|
+
T as Modal,
|
26
|
+
P as Pagination,
|
23
27
|
j as PnkxField,
|
24
|
-
|
25
|
-
|
28
|
+
b as Popover,
|
29
|
+
K as RadioGroup,
|
26
30
|
G as RangePickerField,
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
31
|
+
k as Row,
|
32
|
+
u as SearchFiltersForm,
|
33
|
+
N as Select,
|
34
|
+
x as Skeleton,
|
35
|
+
M as Space,
|
36
|
+
R as Splitter,
|
37
|
+
y as Steps,
|
38
|
+
D as Table,
|
39
|
+
f as Tabs,
|
40
|
+
h as Tag,
|
41
|
+
q as TinyMCE,
|
42
|
+
B as Tooltip,
|
43
|
+
z as Typography,
|
44
|
+
L as typeColorMap
|
41
45
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -16,6 +16,7 @@ import { Dayjs } from 'dayjs';
|
|
16
16
|
import { default as default_2 } from 'react';
|
17
17
|
import { DefaultOptionType } from 'antd/es/cascader';
|
18
18
|
import { DefaultValues } from 'react-hook-form';
|
19
|
+
import { DividerProps as DividerProps_2 } from 'antd';
|
19
20
|
import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
|
20
21
|
import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
|
21
22
|
import { DropdownProps as DropdownProps_2 } from 'antd';
|
@@ -61,6 +62,7 @@ import { SwitchProps } from 'antd';
|
|
61
62
|
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
62
63
|
import { TableProps } from 'antd/lib/table';
|
63
64
|
import { TabsProps as TabsProps_2 } from 'antd';
|
65
|
+
import { TagProps } from 'antd';
|
64
66
|
import { TextAreaProps as TextAreaProps_2 } from 'antd/es/input';
|
65
67
|
import { TextProps } from 'antd/es/typography/Text';
|
66
68
|
import { TitleProps } from 'antd/es/typography/Title';
|
@@ -187,7 +189,7 @@ declare type ComponentPropsType<TComponent> = TComponent extends React_2.Compone
|
|
187
189
|
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
188
190
|
Item: typeof MenuItem;
|
189
191
|
SubMenu: typeof SubMenu;
|
190
|
-
Divider: typeof
|
192
|
+
Divider: typeof Divider_2;
|
191
193
|
ItemGroup: typeof ItemGroup;
|
192
194
|
};
|
193
195
|
|
@@ -225,7 +227,13 @@ export declare interface DatePickerDMYProps extends Omit<ReactDatePickerProps, "
|
|
225
227
|
|
226
228
|
export declare const DatePickerField: (props: DatePickerDMYProps) => JSX.Element;
|
227
229
|
|
228
|
-
declare const Divider:
|
230
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
231
|
+
|
232
|
+
declare const Divider_2: FC<MenuDividerProps>;
|
233
|
+
|
234
|
+
export declare interface DividerProps extends DividerProps_2 {
|
235
|
+
children?: ReactNode | string;
|
236
|
+
}
|
229
237
|
|
230
238
|
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
231
239
|
|
@@ -431,8 +439,6 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
431
439
|
customStyleContainer?: string;
|
432
440
|
}
|
433
441
|
|
434
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
435
|
-
|
436
442
|
export declare interface SidebarProps {
|
437
443
|
children?: React.ReactNode;
|
438
444
|
menu: Array<{
|
@@ -443,6 +449,7 @@ export declare interface SidebarProps {
|
|
443
449
|
children?: Array<{
|
444
450
|
name: string;
|
445
451
|
href: string;
|
452
|
+
icon?: React.ReactNode;
|
446
453
|
}>;
|
447
454
|
}>;
|
448
455
|
}
|
@@ -505,7 +512,7 @@ declare type TabItem = {
|
|
505
512
|
disabled?: boolean;
|
506
513
|
};
|
507
514
|
|
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;
|
515
|
+
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
516
|
|
510
517
|
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
511
518
|
|
@@ -525,10 +532,10 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
525
532
|
rowsSelected?: default_2.Key[];
|
526
533
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
527
534
|
onRowClick?: (record: T) => void;
|
528
|
-
rowKey?: string;
|
535
|
+
rowKey?: string | ((record: T) => string);
|
529
536
|
className?: string;
|
530
537
|
editable?: boolean;
|
531
|
-
onSave?: (data: T
|
538
|
+
onSave?: (data: T) => void;
|
532
539
|
}
|
533
540
|
|
534
541
|
export declare const Tabs: default_2.FC<TabsProps>;
|
@@ -538,6 +545,12 @@ export declare type TabsProps = TabsProps_2 & {
|
|
538
545
|
lazyRender?: boolean;
|
539
546
|
};
|
540
547
|
|
548
|
+
export declare const Tag: React.FC<TaglineProps>;
|
549
|
+
|
550
|
+
export declare interface TaglineProps extends TagProps {
|
551
|
+
children: React.ReactNode | string;
|
552
|
+
}
|
553
|
+
|
541
554
|
export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
|
542
555
|
|
543
556
|
export declare interface TextAreaProps extends TextAreaProps_2 {
|
package/dist/types/ui.d.ts
CHANGED
@@ -12,6 +12,7 @@ import { Control } from 'react-hook-form';
|
|
12
12
|
import { default as default_2 } from 'react';
|
13
13
|
import { DefaultOptionType } from 'antd/es/cascader';
|
14
14
|
import { DefaultValues } from 'react-hook-form';
|
15
|
+
import { DividerProps as DividerProps_2 } from 'antd';
|
15
16
|
import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
|
16
17
|
import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
|
17
18
|
import { DropdownProps as DropdownProps_2 } from 'antd';
|
@@ -48,6 +49,7 @@ import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
|
48
49
|
import { TableColumnsType as TableColumnsType_2 } from 'antd';
|
49
50
|
import { TableProps } from 'antd/lib/table';
|
50
51
|
import { TabsProps as TabsProps_2 } from 'antd';
|
52
|
+
import { TagProps } from 'antd';
|
51
53
|
import { TextProps } from 'antd/es/typography/Text';
|
52
54
|
import { TitleProps } from 'antd/es/typography/Title';
|
53
55
|
import { TooltipProps as TooltipProps_2 } from 'antd';
|
@@ -156,7 +158,7 @@ declare type ColumnTypes<T> = Exclude<TableProps<T>["columns"], undefined>;
|
|
156
158
|
declare type CompoundedMenu = FC<MenuComponentProps> & {
|
157
159
|
Item: typeof MenuItem;
|
158
160
|
SubMenu: typeof SubMenu;
|
159
|
-
Divider: typeof
|
161
|
+
Divider: typeof Divider_2;
|
160
162
|
ItemGroup: typeof ItemGroup;
|
161
163
|
};
|
162
164
|
|
@@ -173,7 +175,13 @@ export declare interface CustomeModalProps extends ModalProps {
|
|
173
175
|
onSubmit?: () => void;
|
174
176
|
}
|
175
177
|
|
176
|
-
declare const Divider:
|
178
|
+
export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
|
179
|
+
|
180
|
+
declare const Divider_2: FC<MenuDividerProps>;
|
181
|
+
|
182
|
+
export declare interface DividerProps extends DividerProps_2 {
|
183
|
+
children?: ReactNode | string;
|
184
|
+
}
|
177
185
|
|
178
186
|
export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
|
179
187
|
|
@@ -303,8 +311,6 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
303
311
|
onSubmit: (data: T) => void;
|
304
312
|
}
|
305
313
|
|
306
|
-
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
307
|
-
|
308
314
|
export declare interface SidebarProps {
|
309
315
|
children?: React.ReactNode;
|
310
316
|
menu: Array<{
|
@@ -315,6 +321,7 @@ export declare interface SidebarProps {
|
|
315
321
|
children?: Array<{
|
316
322
|
name: string;
|
317
323
|
href: string;
|
324
|
+
icon?: React.ReactNode;
|
318
325
|
}>;
|
319
326
|
}>;
|
320
327
|
}
|
@@ -367,7 +374,7 @@ declare type TabItem = {
|
|
367
374
|
disabled?: boolean;
|
368
375
|
};
|
369
376
|
|
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;
|
377
|
+
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
378
|
|
372
379
|
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
373
380
|
|
@@ -387,10 +394,10 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
|
|
387
394
|
rowsSelected?: default_2.Key[];
|
388
395
|
onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
|
389
396
|
onRowClick?: (record: T) => void;
|
390
|
-
rowKey?: string;
|
397
|
+
rowKey?: string | ((record: T) => string);
|
391
398
|
className?: string;
|
392
399
|
editable?: boolean;
|
393
|
-
onSave?: (data: T
|
400
|
+
onSave?: (data: T) => void;
|
394
401
|
}
|
395
402
|
|
396
403
|
export declare const Tabs: default_2.FC<TabsProps>;
|
@@ -400,6 +407,12 @@ export declare type TabsProps = TabsProps_2 & {
|
|
400
407
|
lazyRender?: boolean;
|
401
408
|
};
|
402
409
|
|
410
|
+
export declare const Tag: React.FC<TaglineProps>;
|
411
|
+
|
412
|
+
export declare interface TaglineProps extends TagProps {
|
413
|
+
children: React.ReactNode | string;
|
414
|
+
}
|
415
|
+
|
403
416
|
export declare type TailwindMaxWidth = "max-w-xs" | "max-w-sm" | "max-w-md" | "max-w-lg" | "max-w-xl" | "max-w-2xl" | "max-w-3xl" | "max-w-4xl" | "max-w-5xl" | "max-w-6xl" | "max-w-7xl" | "max-w-full" | "max-w-screen-sm" | "max-w-screen-md" | "max-w-screen-lg" | "max-w-screen-xl" | "max-w-screen-2xl";
|
404
417
|
|
405
418
|
export declare const Tooltip: default_2.FC<TooltipProps>;
|
package/dist/ui/index.js
CHANGED
@@ -1,32 +1,36 @@
|
|
1
|
-
import { e, g as
|
2
|
-
import { E
|
1
|
+
import { e as t, g as p, B as i, C as l, f as n, d, n as m, D as g, F as T, H as S, L as b, j as c, M as C, k as F, P as M, R as u, c as y, S as B, h as L, i as f, l as h, T as x, b as D, m as P, a as k, t as v } from "../chunks/Divider-DL8rwhWq.js";
|
2
|
+
import { E, L as H, T as R } from "../chunks/Switch-C9zRQPNY.js";
|
3
|
+
import "react";
|
4
|
+
import "react-router-dom";
|
5
|
+
import "antd";
|
3
6
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
b as
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
7
|
+
t as Badge,
|
8
|
+
p as Breadcrumb,
|
9
|
+
i as Button,
|
10
|
+
l as CascaderField,
|
11
|
+
n as Col,
|
12
|
+
d as Container,
|
13
|
+
m as Divider,
|
14
|
+
g as Dropdown,
|
15
|
+
E as ErrorMessage,
|
16
|
+
T as Flex,
|
17
|
+
S as Heading,
|
18
|
+
H as Label,
|
19
|
+
b as Layout,
|
20
|
+
c as Menu,
|
21
|
+
C as Modal,
|
22
|
+
F as Pagination,
|
23
|
+
M as Popover,
|
24
|
+
u as Row,
|
25
|
+
y as SearchFiltersForm,
|
26
|
+
B as Skeleton,
|
27
|
+
L as Space,
|
28
|
+
f as Splitter,
|
29
|
+
h as Steps,
|
30
|
+
x as Table,
|
31
|
+
D as Tabs,
|
32
|
+
P as Tag,
|
33
|
+
k as Tooltip,
|
34
|
+
R as Typography,
|
35
|
+
v as typeColorMap
|
32
36
|
};
|