@pnkx-lib/ui 1.1.20 → 1.2.0

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/index.js CHANGED
@@ -1,36 +1,36 @@
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";
1
+ import { g as e, B as o, C as r, f as t, D as l, F as i, L as n, j as p, M as d, k as F, e as P, d as c, P as k, c as x, R as C, S, h as T, i as b, l as g, T as u, b as M, a as R, t as m } from "./chunks/Steps-CqDrt6vm.js";
2
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
3
  import { C as j, P as v, R as G, S as q } from "./chunks/Checkbox-CXb4qF1Z.js";
4
4
  export {
5
- e as Badge,
6
- o as Breadcrumb,
7
- r as Button,
8
- t as CascaderField,
5
+ e as Breadcrumb,
6
+ o as Button,
7
+ r as CascaderField,
9
8
  j as CheckboxField,
10
- l as Col,
11
- i as Container,
9
+ t as Col,
12
10
  f as DatePickerField,
13
- p as Dropdown,
11
+ l as Dropdown,
14
12
  h as ErrorMessage,
15
- d as Flex,
13
+ i as Flex,
16
14
  B as Input,
17
15
  D as Label,
18
16
  n as Layout,
19
- F as Menu,
20
- c as Modal,
21
- C as Pagination,
17
+ p as Menu,
18
+ d as Modal,
19
+ F as Pagination,
20
+ P as PnkxBadge,
21
+ c as PnkxContainer,
22
22
  v as PnkxField,
23
- S as Popover,
23
+ k as PnkxSkeleton,
24
+ x as Popover,
24
25
  G as RadioGroup,
25
26
  L as RangePickerField,
26
- P as Row,
27
- T as SearchFiltersForm,
27
+ C as Row,
28
+ S as SearchFiltersForm,
28
29
  q as SelectField,
29
- b as Skeleton,
30
- g as Space,
31
- k as Splitter,
32
- u as Steps,
33
- x as Table,
30
+ T as Space,
31
+ b as Splitter,
32
+ g as Steps,
33
+ u as Table,
34
34
  M as Tabs,
35
35
  E as TinyMCE,
36
36
  R as Tooltip,
@@ -1,4 +1,4 @@
1
- import { BadgeProps as BadgeProps_2 } from 'antd';
1
+ import { BadgeProps } 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 as SkeletonProps_2 } from 'antd';
50
+ import { SkeletonProps } 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';
@@ -71,13 +71,6 @@ 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
-
81
74
  declare type BaseProps = {
82
75
  customStyleContainer?: string;
83
76
  customStyleCascader?: string;
@@ -190,8 +183,6 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
190
183
  ItemGroup: typeof ItemGroup;
191
184
  };
192
185
 
193
- export declare const Container: default_2.FC<ContainerProps>;
194
-
195
186
  export declare interface ContainerProps {
196
187
  children: default_2.ReactNode;
197
188
  size?: TailwindMaxWidth;
@@ -326,6 +317,15 @@ export declare interface PaginationProps extends PaginationProps_2 {
326
317
 
327
318
  export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
328
319
 
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,6 +336,13 @@ 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
+
339
346
  export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
340
347
 
341
348
  export declare type PopoverProps = PopoverProps_2;
@@ -423,13 +430,6 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
423
430
  multiple?: false;
424
431
  };
425
432
 
426
- export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
427
-
428
- export declare interface SkeletonProps extends SkeletonProps_2 {
429
- type?: "table" | "form";
430
- skeletonButtonCount?: number;
431
- }
432
-
433
433
  export declare const Space: typeof Space_2;
434
434
 
435
435
  export declare interface SpaceProps extends SpaceProps_2 {
@@ -550,7 +550,7 @@ declare type TPositionRadio = "before" | "after";
550
550
 
551
551
  declare type TSize = "small" | "medium" | "large";
552
552
 
553
- export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
553
+ export declare const typeColorMap: Record<NonNullable<PnkxBadgeProps["type"]>, string>;
554
554
 
555
555
  export declare const Typography: {
556
556
  Title: (props: TitleProps) => JSX.Element;
@@ -1,4 +1,4 @@
1
- import { BadgeProps as BadgeProps_2 } from 'antd';
1
+ import { BadgeProps } 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 as SkeletonProps_2 } from 'antd';
38
+ import { SkeletonProps } 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';
@@ -54,13 +54,6 @@ 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
-
64
57
  declare type BaseProps = {
65
58
  customStyleContainer?: string;
66
59
  customStyleCascader?: string;
@@ -159,8 +152,6 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
159
152
  ItemGroup: typeof ItemGroup;
160
153
  };
161
154
 
162
- export declare const Container: default_2.FC<ContainerProps>;
163
-
164
155
  export declare interface ContainerProps {
165
156
  children: default_2.ReactNode;
166
157
  size?: TailwindMaxWidth;
@@ -257,6 +248,22 @@ export declare interface PaginationProps extends PaginationProps_2 {
257
248
 
258
249
  export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
259
250
 
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
+
260
267
  export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
261
268
 
262
269
  export declare type PopoverProps = PopoverProps_2;
@@ -295,13 +302,6 @@ declare type SingleCascaderProps = CascaderProps<DefaultOptionType, string> & {
295
302
  multiple?: false;
296
303
  };
297
304
 
298
- export declare const Skeleton: ({ type, skeletonButtonCount }: SkeletonProps) => JSX.Element;
299
-
300
- export declare interface SkeletonProps extends SkeletonProps_2 {
301
- type?: "table" | "form";
302
- skeletonButtonCount?: number;
303
- }
304
-
305
305
  export declare const Space: typeof Space_2;
306
306
 
307
307
  export declare interface SpaceProps extends SpaceProps_2 {
@@ -376,7 +376,7 @@ export declare const Tooltip: default_2.FC<TooltipProps>;
376
376
 
377
377
  export declare type TooltipProps = TooltipProps_2;
378
378
 
379
- export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
379
+ export declare const typeColorMap: Record<NonNullable<PnkxBadgeProps["type"]>, string>;
380
380
 
381
381
  export declare const Typography: {
382
382
  Title: (props: TitleProps) => JSX.Element;
package/dist/ui/index.js CHANGED
@@ -1,30 +1,30 @@
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";
1
+ import { g as e, B as o, C as r, f as t, D as l, F as p, L as n, j as i, M as d, k as x, e as P, d as S, P as T, c as b, R as c, S as g, h as k, i as C, l as F, T as M, b as m, a as u, t as y } from "../chunks/Steps-CqDrt6vm.js";
2
+ import { E as L, L as f, T as h } from "../chunks/Switch-DAZukdDR.js";
3
3
  export {
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
- 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,
20
- C as SearchFiltersForm,
21
- F as Skeleton,
22
- M as Space,
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
4
+ e as Breadcrumb,
5
+ o as Button,
6
+ r as CascaderField,
7
+ t as Col,
8
+ l as Dropdown,
9
+ L as ErrorMessage,
10
+ p as Flex,
11
+ f as Label,
12
+ n as Layout,
13
+ i as Menu,
14
+ d as Modal,
15
+ x as Pagination,
16
+ P as PnkxBadge,
17
+ S as PnkxContainer,
18
+ T as PnkxSkeleton,
19
+ b as Popover,
20
+ c as Row,
21
+ g as SearchFiltersForm,
22
+ k as Space,
23
+ C as Splitter,
24
+ F as Steps,
25
+ M as Table,
26
+ m as Tabs,
27
+ u as Tooltip,
28
+ h as Typography,
29
+ y as typeColorMap
30
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.20",
4
+ "version": "1.2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "exports": {