@pnkx-lib/ui 1.2.4 → 1.2.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/Sidebar-DkquMpk7.js +6835 -0
- package/dist/index.js +36 -35
- package/dist/types/index.d.ts +38 -20
- package/dist/types/ui.d.ts +38 -20
- package/dist/ui/index.js +28 -27
- package/package.json +1 -1
- package/dist/chunks/Steps-D8ZS3rYE.js +0 -5122
package/dist/index.js
CHANGED
@@ -1,39 +1,40 @@
|
|
1
|
-
import { g as
|
2
|
-
import { E as
|
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, L as n, j as F, M as c, k as S, P as C, R as T, c as b, m as P, S as g, h as k, i as m, l as u, T as x, b as M, a as y, t as R } from "./chunks/Sidebar-DkquMpk7.js";
|
2
|
+
import { E as h, L as B, T as D } from "./chunks/createSuper-DBIhZ50y.js";
|
3
|
+
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-CzMyITg3.js";
|
4
4
|
export {
|
5
|
-
e as
|
6
|
-
o as
|
7
|
-
r as
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
l as
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
5
|
+
e as Badge,
|
6
|
+
o as Breadcrumb,
|
7
|
+
r as Button,
|
8
|
+
t as CascaderField,
|
9
|
+
E as CheckboxField,
|
10
|
+
i as Col,
|
11
|
+
l as Container,
|
12
|
+
w as DatePickerField,
|
13
|
+
p as Dropdown,
|
14
|
+
h as ErrorMessage,
|
15
|
+
d as Flex,
|
16
|
+
I as Input,
|
17
|
+
B as Label,
|
16
18
|
n as Layout,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
u as Table,
|
19
|
+
F as Menu,
|
20
|
+
c as Modal,
|
21
|
+
S as Pagination,
|
22
|
+
j as PnkxField,
|
23
|
+
C as Popover,
|
24
|
+
v as RadioGroup,
|
25
|
+
G as RangePickerField,
|
26
|
+
T as Row,
|
27
|
+
b as SearchFiltersForm,
|
28
|
+
q as SelectField,
|
29
|
+
P as Sidebar,
|
30
|
+
g as Skeleton,
|
31
|
+
k as Space,
|
32
|
+
m as Splitter,
|
33
|
+
u as Steps,
|
34
|
+
x as Table,
|
34
35
|
M as Tabs,
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
z as TinyMCE,
|
37
|
+
y as Tooltip,
|
38
|
+
D as Typography,
|
39
|
+
R as typeColorMap
|
39
40
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BadgeProps } from 'antd';
|
1
|
+
import { BadgeProps as BadgeProps_2 } from 'antd';
|
2
2
|
import { BasicProps } from 'antd/es/layout/layout';
|
3
3
|
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
4
4
|
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
|
@@ -47,7 +47,7 @@ import { RowProps as RowProps_2 } from 'antd';
|
|
47
47
|
import { SelectProps } from 'antd';
|
48
48
|
import { SiderContextProps } from 'antd/es/layout/Sider';
|
49
49
|
import { SiderProps } from 'antd/es/layout/Sider';
|
50
|
-
import { SkeletonProps } from 'antd';
|
50
|
+
import { SkeletonProps as SkeletonProps_2 } from 'antd';
|
51
51
|
import { Space as Space_2 } from 'antd';
|
52
52
|
import { SpaceProps as SpaceProps_2 } from 'antd';
|
53
53
|
import { Splitter as Splitter_2 } from 'antd';
|
@@ -57,7 +57,7 @@ import { Steps as Steps_2 } from 'antd';
|
|
57
57
|
import { StepsProps as StepsProps_2 } from 'antd';
|
58
58
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
59
59
|
import { SwitchProps } from 'antd';
|
60
|
-
import { TableColumnsType } from 'antd';
|
60
|
+
import { TableColumnsType as TableColumnsType_2 } 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';
|
@@ -71,6 +71,13 @@ import { UseFormReturn } from 'react-hook-form';
|
|
71
71
|
import { UseFormSetValue } from 'react-hook-form';
|
72
72
|
import { UseFormStateReturn } from 'react-hook-form';
|
73
73
|
|
74
|
+
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
75
|
+
|
76
|
+
export declare interface BadgeProps extends BadgeProps_2 {
|
77
|
+
type?: "error" | "info" | "success" | "warning";
|
78
|
+
children?: React.ReactNode;
|
79
|
+
}
|
80
|
+
|
74
81
|
declare type BaseProps = {
|
75
82
|
customStyleContainer?: string;
|
76
83
|
customStyleCascader?: string;
|
@@ -183,6 +190,8 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
183
190
|
ItemGroup: typeof ItemGroup;
|
184
191
|
};
|
185
192
|
|
193
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
194
|
+
|
186
195
|
export declare interface ContainerProps {
|
187
196
|
children: default_2.ReactNode;
|
188
197
|
size?: TailwindMaxWidth;
|
@@ -317,15 +326,6 @@ export declare interface PaginationProps extends PaginationProps_2 {
|
|
317
326
|
|
318
327
|
export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
|
319
328
|
|
320
|
-
export declare const PnkxBadge: ({ type, children, ...rest }: PnkxBadgeProps) => JSX.Element;
|
321
|
-
|
322
|
-
export declare interface PnkxBadgeProps extends BadgeProps {
|
323
|
-
type?: "error" | "info" | "success" | "warning";
|
324
|
-
children?: React.ReactNode;
|
325
|
-
}
|
326
|
-
|
327
|
-
export declare const PnkxContainer: default_2.FC<ContainerProps>;
|
328
|
-
|
329
329
|
export declare class PnkxField<TComponent extends React_2.ComponentType<any>> extends React_2.PureComponent<PnkxFieldProps<TComponent>> {
|
330
330
|
render(): JSX.Element;
|
331
331
|
}
|
@@ -336,13 +336,6 @@ export declare type PnkxFieldProps<TComponent extends React_2.ComponentType<any>
|
|
336
336
|
component: TComponent;
|
337
337
|
} & Omit<ComponentPropsType<TComponent>, "control" | "name" | "formState" | "field" | "fieldState">;
|
338
338
|
|
339
|
-
export declare const PnkxSkeleton: ({ type, skeletonButtonCount, }: PnkxSkeletonProps) => JSX.Element;
|
340
|
-
|
341
|
-
export declare interface PnkxSkeletonProps extends SkeletonProps {
|
342
|
-
type?: "table" | "form";
|
343
|
-
skeletonButtonCount?: number;
|
344
|
-
}
|
345
|
-
|
346
339
|
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
347
340
|
|
348
341
|
export declare type PopoverProps = PopoverProps_2;
|
@@ -426,10 +419,33 @@ export declare interface SelectFieldProps extends SelectProps {
|
|
426
419
|
customStyleContainer?: string;
|
427
420
|
}
|
428
421
|
|
422
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
423
|
+
|
424
|
+
export declare interface SidebarProps {
|
425
|
+
children?: React.ReactNode;
|
426
|
+
menu: Array<{
|
427
|
+
name: string;
|
428
|
+
href: string;
|
429
|
+
icon: React.ReactNode;
|
430
|
+
current: boolean;
|
431
|
+
children?: Array<{
|
432
|
+
name: string;
|
433
|
+
href: string;
|
434
|
+
}>;
|
435
|
+
}>;
|
436
|
+
}
|
437
|
+
|
429
438
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
430
439
|
multiple?: false;
|
431
440
|
};
|
432
441
|
|
442
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
443
|
+
|
444
|
+
export declare interface SkeletonProps extends SkeletonProps_2 {
|
445
|
+
type?: "table" | "form";
|
446
|
+
skeletonButtonCount?: number;
|
447
|
+
}
|
448
|
+
|
433
449
|
export declare const Space: typeof Space_2;
|
434
450
|
|
435
451
|
export declare interface SpaceProps extends SpaceProps_2 {
|
@@ -479,6 +495,8 @@ declare type TabItem = {
|
|
479
495
|
|
480
496
|
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;
|
481
497
|
|
498
|
+
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
499
|
+
|
482
500
|
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
483
501
|
editable?: boolean;
|
484
502
|
})[];
|
@@ -550,7 +568,7 @@ declare type TPositionRadio = "before" | "after";
|
|
550
568
|
|
551
569
|
declare type TSize = "small" | "medium" | "large";
|
552
570
|
|
553
|
-
export declare const typeColorMap: Record<NonNullable<
|
571
|
+
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
554
572
|
|
555
573
|
export declare const Typography: {
|
556
574
|
Title: (props: TitleProps) => JSX.Element;
|
package/dist/types/ui.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { BadgeProps } from 'antd';
|
1
|
+
import { BadgeProps as BadgeProps_2 } from 'antd';
|
2
2
|
import { BasicProps } from 'antd/es/layout/layout';
|
3
3
|
import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
|
4
4
|
import { BreadcrumbProps as BreadcrumbProps_2 } from 'antd';
|
@@ -35,7 +35,7 @@ import { RefAttributes } from 'react';
|
|
35
35
|
import { RowProps as RowProps_2 } from 'antd';
|
36
36
|
import { SiderContextProps } from 'antd/es/layout/Sider';
|
37
37
|
import { SiderProps } from 'antd/es/layout/Sider';
|
38
|
-
import { SkeletonProps } from 'antd';
|
38
|
+
import { SkeletonProps as SkeletonProps_2 } from 'antd';
|
39
39
|
import { Space as Space_2 } from 'antd';
|
40
40
|
import { SpaceProps as SpaceProps_2 } from 'antd';
|
41
41
|
import { Splitter as Splitter_2 } from 'antd';
|
@@ -44,7 +44,7 @@ import { StepProps as StepProps_2 } from 'antd';
|
|
44
44
|
import { Steps as Steps_2 } from 'antd';
|
45
45
|
import { StepsProps as StepsProps_2 } from 'antd';
|
46
46
|
import { SubMenuProps as SubMenuProps_2 } from 'antd/es/menu';
|
47
|
-
import { TableColumnsType } from 'antd';
|
47
|
+
import { TableColumnsType as TableColumnsType_2 } 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';
|
@@ -54,6 +54,13 @@ import { UseFormHandleSubmit } from 'react-hook-form';
|
|
54
54
|
import { UseFormReturn } from 'react-hook-form';
|
55
55
|
import { UseFormSetValue } from 'react-hook-form';
|
56
56
|
|
57
|
+
export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
|
58
|
+
|
59
|
+
export declare interface BadgeProps extends BadgeProps_2 {
|
60
|
+
type?: "error" | "info" | "success" | "warning";
|
61
|
+
children?: React.ReactNode;
|
62
|
+
}
|
63
|
+
|
57
64
|
declare type BaseProps = {
|
58
65
|
customStyleContainer?: string;
|
59
66
|
customStyleCascader?: string;
|
@@ -152,6 +159,8 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
|
|
152
159
|
ItemGroup: typeof ItemGroup;
|
153
160
|
};
|
154
161
|
|
162
|
+
export declare const Container: default_2.FC<ContainerProps>;
|
163
|
+
|
155
164
|
export declare interface ContainerProps {
|
156
165
|
children: default_2.ReactNode;
|
157
166
|
size?: TailwindMaxWidth;
|
@@ -248,22 +257,6 @@ export declare interface PaginationProps extends PaginationProps_2 {
|
|
248
257
|
|
249
258
|
export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
|
250
259
|
|
251
|
-
export declare const PnkxBadge: ({ type, children, ...rest }: PnkxBadgeProps) => JSX.Element;
|
252
|
-
|
253
|
-
export declare interface PnkxBadgeProps extends BadgeProps {
|
254
|
-
type?: "error" | "info" | "success" | "warning";
|
255
|
-
children?: React.ReactNode;
|
256
|
-
}
|
257
|
-
|
258
|
-
export declare const PnkxContainer: default_2.FC<ContainerProps>;
|
259
|
-
|
260
|
-
export declare const PnkxSkeleton: ({ type, skeletonButtonCount, }: PnkxSkeletonProps) => JSX.Element;
|
261
|
-
|
262
|
-
export declare interface PnkxSkeletonProps extends SkeletonProps {
|
263
|
-
type?: "table" | "form";
|
264
|
-
skeletonButtonCount?: number;
|
265
|
-
}
|
266
|
-
|
267
260
|
export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
|
268
261
|
|
269
262
|
export declare type PopoverProps = PopoverProps_2;
|
@@ -298,10 +291,33 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
|
|
298
291
|
onSubmit: (data: T) => void;
|
299
292
|
}
|
300
293
|
|
294
|
+
export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
|
295
|
+
|
296
|
+
export declare interface SidebarProps {
|
297
|
+
children?: React.ReactNode;
|
298
|
+
menu: Array<{
|
299
|
+
name: string;
|
300
|
+
href: string;
|
301
|
+
icon: React.ReactNode;
|
302
|
+
current: boolean;
|
303
|
+
children?: Array<{
|
304
|
+
name: string;
|
305
|
+
href: string;
|
306
|
+
}>;
|
307
|
+
}>;
|
308
|
+
}
|
309
|
+
|
301
310
|
declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
|
302
311
|
multiple?: false;
|
303
312
|
};
|
304
313
|
|
314
|
+
export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
|
315
|
+
|
316
|
+
export declare interface SkeletonProps extends SkeletonProps_2 {
|
317
|
+
type?: "table" | "form";
|
318
|
+
skeletonButtonCount?: number;
|
319
|
+
}
|
320
|
+
|
305
321
|
export declare const Space: typeof Space_2;
|
306
322
|
|
307
323
|
export declare interface SpaceProps extends SpaceProps_2 {
|
@@ -341,6 +357,8 @@ declare type TabItem = {
|
|
341
357
|
|
342
358
|
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;
|
343
359
|
|
360
|
+
export declare type TableColumnsType<T> = TableColumnsType_2<T>;
|
361
|
+
|
344
362
|
export declare type TableColumnsTypeEditable<T> = (ColumnTypes<T>[number] & {
|
345
363
|
editable?: boolean;
|
346
364
|
})[];
|
@@ -376,7 +394,7 @@ export declare const Tooltip: default_2.FC<TooltipProps>;
|
|
376
394
|
|
377
395
|
export declare type TooltipProps = TooltipProps_2;
|
378
396
|
|
379
|
-
export declare const typeColorMap: Record<NonNullable<
|
397
|
+
export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
|
380
398
|
|
381
399
|
export declare const Typography: {
|
382
400
|
Title: (props: TitleProps) => JSX.Element;
|
package/dist/ui/index.js
CHANGED
@@ -1,30 +1,31 @@
|
|
1
|
-
import { g as
|
2
|
-
import { E as
|
1
|
+
import { e, g as o, B as r, C as t, f as l, d as p, D as i, F as d, L as n, j as S, M as b, k as T, P as c, R as g, c as m, m as C, S as F, h as M, i as u, l as y, T as B, b as L, a as f, t as h } from "../chunks/Sidebar-DkquMpk7.js";
|
2
|
+
import { E as P, L as k, T as w } from "../chunks/createSuper-DBIhZ50y.js";
|
3
3
|
export {
|
4
|
-
e as
|
5
|
-
o as
|
6
|
-
r as
|
7
|
-
t as
|
8
|
-
l as
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
e as Badge,
|
5
|
+
o as Breadcrumb,
|
6
|
+
r as Button,
|
7
|
+
t as CascaderField,
|
8
|
+
l as Col,
|
9
|
+
p as Container,
|
10
|
+
i as Dropdown,
|
11
|
+
P as ErrorMessage,
|
12
|
+
d as Flex,
|
13
|
+
k as Label,
|
12
14
|
n as Layout,
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
h as
|
29
|
-
y as typeColorMap
|
15
|
+
S as Menu,
|
16
|
+
b as Modal,
|
17
|
+
T as Pagination,
|
18
|
+
c as Popover,
|
19
|
+
g as Row,
|
20
|
+
m as SearchFiltersForm,
|
21
|
+
C as Sidebar,
|
22
|
+
F as Skeleton,
|
23
|
+
M as Space,
|
24
|
+
u as Splitter,
|
25
|
+
y as Steps,
|
26
|
+
B as Table,
|
27
|
+
L as Tabs,
|
28
|
+
f as Tooltip,
|
29
|
+
w as Typography,
|
30
|
+
h as typeColorMap
|
30
31
|
};
|