@pnkx-lib/ui 1.5.6 → 1.5.8

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/types/ui.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ import { AffixProps } from 'antd';
2
+ import { AlertProps as AlertProps_2 } from 'antd';
3
+ import { Anchor as Anchor_2 } from 'antd';
4
+ import { AnchorProps as AnchorProps_2 } from 'antd';
5
+ import { AutoCompleteProps as AutoCompleteProps_2 } from 'antd';
1
6
  import { BadgeProps as BadgeProps_2 } from 'antd';
2
7
  import { BasicProps } from 'antd/es/layout/layout';
3
8
  import { BreadcrumbItemType as BreadcrumbItemType_2 } from 'antd/es/breadcrumb/Breadcrumb';
@@ -6,42 +11,55 @@ import { BreadcrumbSeparatorType as BreadcrumbSeparatorType_2 } from 'antd/es/br
6
11
  import { Breakpoint } from 'antd';
7
12
  import { ButtonProps as ButtonProps_2 } from 'antd';
8
13
  import { CascaderProps } from 'antd/es/cascader';
14
+ import { CollapseProps } from 'antd';
15
+ import { ColorPickerProps } from 'antd';
9
16
  import { ColProps as ColProps_2 } from 'antd';
10
17
  import { ColSize as ColSize_2 } from 'antd/es/grid';
11
18
  import { Control } from 'react-hook-form';
12
- import { default as default_2 } from 'react';
19
+ import { default as default_2 } from 'antd/es/anchor/AnchorLink';
20
+ import { default as default_3 } from 'react';
13
21
  import { DefaultOptionType } from 'antd/es/cascader';
14
22
  import { DefaultValues } from 'react-hook-form';
15
23
  import { DividerProps as DividerProps_2 } from 'antd';
24
+ import { DrawerProps as DrawerProps_2 } from 'antd';
16
25
  import { DropdownButtonProps as DropdownButtonProps_2 } from 'antd/es/dropdown';
17
26
  import { DropdownButtonType as DropdownButtonType_2 } from 'antd/es/dropdown';
18
27
  import { DropdownProps as DropdownProps_2 } from 'antd';
28
+ import { EmptyProps as EmptyProps_2 } from 'antd';
19
29
  import { FC } from 'react';
20
30
  import { FieldValues } from 'react-hook-form';
21
31
  import { FlexProps as FlexProps_2 } from 'antd';
22
32
  import { FormEventHandler } from 'react';
23
33
  import { ForwardRefExoticComponent } from 'react';
34
+ import { ImageProps } from 'antd';
24
35
  import { JSX } from 'react/jsx-runtime';
25
36
  import { MenuDividerProps } from 'antd/es/menu';
26
37
  import { MenuItemGroupProps } from 'rc-menu/lib/MenuItemGroup';
27
38
  import { MenuItemProps as MenuItemProps_2 } from 'antd/es/menu';
28
39
  import { MenuProps as MenuProps_2 } from 'antd/es/menu';
29
- import { ModalProps } from 'antd';
40
+ import { ModalProps as ModalProps_2 } from 'antd';
30
41
  import { Pagination as Pagination_2 } from 'antd';
31
42
  import { PaginationLocale } from 'rc-pagination';
32
43
  import { PaginationProps as PaginationProps_2 } from 'antd';
33
44
  import { ParagraphProps } from 'antd/es/typography/Paragraph';
45
+ import { PopconfirmProps as PopconfirmProps_2 } from 'antd';
34
46
  import { PopoverProps as PopoverProps_2 } from 'antd';
47
+ import { QRCodeProps as QRCodeProps_2 } from 'antd';
48
+ import { RateProps } from 'antd';
35
49
  import { ReactNode } from 'react';
36
50
  import { RefAttributes } from 'react';
51
+ import { ResultProps as ResultProps_2 } from 'antd';
37
52
  import { RowProps as RowProps_2 } from 'antd';
53
+ import { SegmentedProps as SegmentedProps_2 } from 'antd';
38
54
  import { SiderContextProps } from 'antd/es/layout/Sider';
39
55
  import { SiderProps } from 'antd/es/layout/Sider';
40
56
  import { SkeletonProps as SkeletonProps_2 } from 'antd';
41
57
  import { Space as Space_2 } from 'antd';
42
58
  import { SpaceProps as SpaceProps_2 } from 'antd';
59
+ import { SpinProps } from 'antd';
43
60
  import { Splitter as Splitter_2 } from 'antd';
44
61
  import { SplitterProps as SplitterProps_2 } from 'antd';
62
+ import { StatisticProps as StatisticProps_2 } from 'antd';
45
63
  import { StepProps as StepProps_2 } from 'antd';
46
64
  import { Steps as Steps_2 } from 'antd';
47
65
  import { StepsProps as StepsProps_2 } from 'antd';
@@ -51,11 +69,38 @@ import { TableProps } from 'antd/lib/table';
51
69
  import { TabsProps as TabsProps_2 } from 'antd';
52
70
  import { TagProps } from 'antd';
53
71
  import { TextProps } from 'antd/es/typography/Text';
72
+ import { TimelineProps as TimelineProps_2 } from 'antd';
54
73
  import { TitleProps } from 'antd/es/typography/Title';
55
74
  import { TooltipProps as TooltipProps_2 } from 'antd';
75
+ import { TourProps as TourProps_2 } from 'antd';
76
+ import { TreeProps as TreeProps_2 } from 'antd';
56
77
  import { UseFormReset } from 'react-hook-form';
57
78
  import { UseFormReturn } from 'react-hook-form';
58
79
  import { UseFormSetValue } from 'react-hook-form';
80
+ import { WatermarkProps } from 'antd';
81
+
82
+ export declare const Alert: React.FC<AlertProps>;
83
+
84
+ export declare type AlertProps = AlertProps_2;
85
+
86
+ export declare const Anchor: typeof Anchor_2 & {
87
+ Link: typeof default_2;
88
+ };
89
+
90
+ export declare interface AnchorProps extends AnchorProps_2 {
91
+ }
92
+
93
+ export declare type AnchorPropsUnion = BaseProps_13 & AnchorProps;
94
+
95
+ export declare const Appfix: ({ children, ...rest }: AppfixProps) => JSX.Element;
96
+
97
+ export declare interface AppfixProps extends AffixProps {
98
+ children: default_3.ReactNode;
99
+ }
100
+
101
+ export declare const AutoComplete: React.FC<AutoCompleteProps>;
102
+
103
+ export declare type AutoCompleteProps = AutoCompleteProps_2;
59
104
 
60
105
  export declare const Badge: ({ type, children, ...rest }: BadgeProps) => JSX.Element;
61
106
 
@@ -84,6 +129,11 @@ declare type BaseProps_12 = {
84
129
  stepsClassName?: string;
85
130
  };
86
131
 
132
+ declare type BaseProps_13 = {
133
+ containerClassName?: string;
134
+ spaceClassName?: string;
135
+ };
136
+
87
137
  declare type BaseProps_2 = {
88
138
  containerClassName?: string;
89
139
  popoverClassName?: string;
@@ -133,7 +183,22 @@ export declare type BreadcrumbPropsUnion = BaseProps_6 & BreadcrumbProps;
133
183
 
134
184
  export declare type BreadcrumbSeparatorType = BreadcrumbSeparatorType_2;
135
185
 
136
- export declare const Button: default_2.FC<ButtonProps>;
186
+ export declare const BulkAction: ({ quantity, handleRefresh, handleSend, handleSlash, handleProhibit, handleCheck, handleClose, handleDelete, handleUnLock, handleLock, }: BulkActionProps) => JSX.Element;
187
+
188
+ export declare interface BulkActionProps {
189
+ quantity: number;
190
+ handleRefresh?: () => void;
191
+ handleSend?: () => void;
192
+ handleSlash?: () => void;
193
+ handleProhibit?: () => void;
194
+ handleCheck?: () => void;
195
+ handleClose?: () => void;
196
+ handleDelete?: () => void;
197
+ handleUnLock?: () => void;
198
+ handleLock?: () => void;
199
+ }
200
+
201
+ export declare const Button: default_3.FC<ButtonProps>;
137
202
 
138
203
  export declare type ButtonProps = ButtonProps_2;
139
204
 
@@ -162,19 +227,26 @@ declare type CompoundedMenu = FC<MenuComponentProps> & {
162
227
  ItemGroup: typeof ItemGroup;
163
228
  };
164
229
 
165
- export declare const Container: default_2.FC<ContainerProps>;
230
+ export declare const ConfirmModal: ({ title, content, typeIcon, titleCancelBtn, titleSubmitBtn, handleCancel, handleSubmit, ...restProps }: ConfirmModalProps) => JSX.Element;
231
+
232
+ export declare interface ConfirmModalProps extends ModalProps {
233
+ title: string;
234
+ content: string;
235
+ titleCancelBtn?: string;
236
+ titleSubmitBtn?: string;
237
+ typeIcon: "success" | "error" | "warning" | "info";
238
+ handleCancel?: () => void;
239
+ handleSubmit?: () => void;
240
+ }
241
+
242
+ export declare const Container: default_3.FC<ContainerProps>;
166
243
 
167
244
  export declare interface ContainerProps {
168
- children: default_2.ReactNode;
245
+ children: default_3.ReactNode;
169
246
  size?: TailwindMaxWidth;
170
247
  className?: string;
171
248
  }
172
249
 
173
- export declare interface CustomeModalProps extends ModalProps {
174
- children?: ReactNode;
175
- onSubmit?: () => void;
176
- }
177
-
178
250
  export declare const Divider: ({ children, ...rest }: DividerProps) => JSX.Element;
179
251
 
180
252
  declare const Divider_2: FC<MenuDividerProps>;
@@ -183,6 +255,13 @@ export declare interface DividerProps extends DividerProps_2 {
183
255
  children?: ReactNode | string;
184
256
  }
185
257
 
258
+ export declare const Drawer: ({ onSubmit, children, ...rest }: DrawerProps) => JSX.Element;
259
+
260
+ export declare interface DrawerProps extends DrawerProps_2 {
261
+ children?: ReactNode;
262
+ onSubmit?: (values: any) => void;
263
+ }
264
+
186
265
  export declare const Dropdown: (props: DropdownPropsUnion) => JSX.Element;
187
266
 
188
267
  export declare type DropdownButtonProps = DropdownButtonProps_2;
@@ -193,7 +272,11 @@ export declare type DropdownProps = DropdownProps_2;
193
272
 
194
273
  export declare type DropdownPropsUnion = BaseProps_5 & DropdownProps;
195
274
 
196
- export declare const ErrorMessage: default_2.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
275
+ export declare const Empty: React.FC<EmptyProps>;
276
+
277
+ export declare type EmptyProps = EmptyProps_2;
278
+
279
+ export declare const ErrorMessage: default_3.MemoExoticComponent<({ errorMessage, isTouched, isSubmitted }: ErrorMessageProps) => JSX.Element | null>;
197
280
 
198
281
  export declare interface ErrorMessageProps {
199
282
  errorMessage?: string;
@@ -222,6 +305,9 @@ export declare interface HeadingProps {
222
305
  breadcrumbItems?: ItemType[];
223
306
  }
224
307
 
308
+ declare const Image_2: React.FC<ImageProps>;
309
+ export { Image_2 as Image }
310
+
225
311
  export declare type InternalRouteType = Partial<BreadcrumbItemType & BreadcrumbSeparatorType>;
226
312
 
227
313
  declare const ItemGroup: ForwardRefExoticComponent<Omit<MenuItemGroupProps, "ref"> & RefAttributes<HTMLLIElement>>;
@@ -235,12 +321,12 @@ export declare interface LabelProps {
235
321
  required?: boolean;
236
322
  }
237
323
 
238
- export declare const Layout: default_2.FC<LayoutProps> & {
239
- Header: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
240
- Footer: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
241
- Content: default_2.ForwardRefExoticComponent<BasicProps & default_2.RefAttributes<HTMLElement>>;
242
- Sider: default_2.ForwardRefExoticComponent<SiderProps & default_2.RefAttributes<HTMLDivElement>>;
243
- _InternalSiderContext: default_2.Context<SiderContextProps>;
324
+ export declare const Layout: default_3.FC<LayoutProps> & {
325
+ Header: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
326
+ Footer: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
327
+ Content: default_3.ForwardRefExoticComponent<BasicProps & default_3.RefAttributes<HTMLElement>>;
328
+ Sider: default_3.ForwardRefExoticComponent<SiderProps & default_3.RefAttributes<HTMLDivElement>>;
329
+ _InternalSiderContext: default_3.Context<SiderContextProps>;
244
330
  };
245
331
 
246
332
  export declare type LayoutProps = BaseProps_8 & BasicProps;
@@ -257,7 +343,12 @@ export declare interface MenuItemProps extends MenuItemProps_2 {
257
343
  export declare interface MenuProps extends MenuProps_2 {
258
344
  }
259
345
 
260
- export declare const Modal: ({ children, onOk, onSubmit, ...rest }: CustomeModalProps) => JSX.Element;
346
+ export declare const Modal: ({ children, onOk, onSubmit, ...rest }: ModalProps) => JSX.Element;
347
+
348
+ export declare interface ModalProps extends ModalProps_2 {
349
+ children?: ReactNode;
350
+ onSubmit?: () => void;
351
+ }
261
352
 
262
353
  declare type MultipleCascaderProps = CascaderProps<DefaultOptionType, string, true> & {
263
354
  multiple: true;
@@ -276,12 +367,40 @@ export declare interface PaginationProps extends PaginationProps_2 {
276
367
 
277
368
  export declare type PaginationPropsUnion = BaseProps_11 & PaginationProps;
278
369
 
370
+ export declare const PnkxCollapse: React.FC<PnkxCollapseProps>;
371
+
372
+ export declare type PnkxCollapseProps = CollapseProps;
373
+
374
+ export declare const PnkxColorPicker: React.FC<ColorPickerProps>;
375
+
376
+ export declare interface PnkxSpinProps extends SpinProps {
377
+ children?: ReactNode;
378
+ }
379
+
380
+ export declare const Popconfirm: ({ children, ...rest }: PopconfirmProps) => JSX.Element;
381
+
382
+ export declare interface PopconfirmProps extends PopconfirmProps_2 {
383
+ children?: ReactNode;
384
+ }
385
+
279
386
  export declare const Popover: (props: PopoverPropsUnion) => JSX.Element;
280
387
 
281
388
  export declare type PopoverProps = PopoverProps_2;
282
389
 
283
390
  export declare type PopoverPropsUnion = BaseProps_2 & PopoverProps;
284
391
 
392
+ export declare const QRCode: React.FC<QRCodeProps>;
393
+
394
+ export declare type QRCodeProps = QRCodeProps_2;
395
+
396
+ export declare const Rate: React.FC<RateProps>;
397
+
398
+ export declare const Result: ({ children, ...rest }: ResultProps) => JSX.Element;
399
+
400
+ export declare interface ResultProps extends ResultProps_2 {
401
+ children?: ReactNode | string;
402
+ }
403
+
285
404
  export declare const Row: (props: RowPropsUnion) => JSX.Element;
286
405
 
287
406
  declare interface RowCommon {
@@ -301,7 +420,7 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
301
420
  setValue?: UseFormSetValue<T>;
302
421
  handleSubmit?: FormEventHandler<any>;
303
422
  reset?: UseFormReset<T>;
304
- }) => default_2.ReactNode;
423
+ }) => default_3.ReactNode;
305
424
  onReset?: () => void;
306
425
  classNamesContainer?: string;
307
426
  classNameWrapperForm?: string;
@@ -311,6 +430,10 @@ export declare interface SearchFiltersFormProps<T extends FieldValues> {
311
430
  onSubmit: (data: T) => void;
312
431
  }
313
432
 
433
+ export declare const Segmented: React.FC<SegmentedProps>;
434
+
435
+ export declare type SegmentedProps = SegmentedProps_2;
436
+
314
437
  export declare const Sidebar: ({ children, menu }: SidebarProps) => JSX.Element;
315
438
 
316
439
  export declare interface SidebarProps {
@@ -346,6 +469,8 @@ export declare interface SpaceProps extends SpaceProps_2 {
346
469
 
347
470
  export declare type SpacePropsUnion = BaseProps_9 & SpaceProps;
348
471
 
472
+ export declare const Spin: ({ children, ...rest }: PnkxSpinProps) => JSX.Element;
473
+
349
474
  export declare const Splitter: typeof Splitter_2;
350
475
 
351
476
  export declare interface SplitterProps extends SplitterProps_2 {
@@ -353,6 +478,10 @@ export declare interface SplitterProps extends SplitterProps_2 {
353
478
 
354
479
  export declare type SplitterPropsUnion = BaseProps_10 & SplitterProps;
355
480
 
481
+ export declare const Statistic: React.FC<StatisticProps>;
482
+
483
+ export declare type StatisticProps = StatisticProps_2;
484
+
356
485
  export declare interface StepProps extends StepProps_2 {
357
486
  }
358
487
 
@@ -371,8 +500,8 @@ export declare interface SubMenuProps extends SubMenuProps_2 {
371
500
 
372
501
  declare type TabItem = {
373
502
  key: string;
374
- label: default_2.ReactNode;
375
- children: default_2.ReactNode;
503
+ label: default_3.ReactNode;
504
+ children: default_3.ReactNode;
376
505
  disabled?: boolean;
377
506
  };
378
507
 
@@ -393,8 +522,8 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
393
522
  onChangePage: (page: number) => void;
394
523
  onChangePageSize: (size: number) => void;
395
524
  onSort?: (sortField: string | number | symbol) => void;
396
- rowsSelected?: default_2.Key[];
397
- onSelect: (newSelectedRowKeys: default_2.Key[]) => void;
525
+ rowsSelected?: default_3.Key[];
526
+ onSelect: (newSelectedRowKeys: default_3.Key[]) => void;
398
527
  onRowClick?: (record: T) => void;
399
528
  rowKey?: string | ((record: T) => string);
400
529
  className?: string;
@@ -402,7 +531,7 @@ export declare interface TableCommonProps<T> extends Omit<TableProps<T>, "column
402
531
  onSave?: (data: T) => void;
403
532
  }
404
533
 
405
- export declare const Tabs: default_2.FC<TabsProps>;
534
+ export declare const Tabs: default_3.FC<TabsProps>;
406
535
 
407
536
  export declare type TabsProps = TabsProps_2 & {
408
537
  items: TabItem[];
@@ -417,10 +546,22 @@ export declare interface TaglineProps extends TagProps {
417
546
 
418
547
  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";
419
548
 
420
- export declare const Tooltip: default_2.FC<TooltipProps>;
549
+ export declare const Timeline: React.FC<TimelineProps>;
550
+
551
+ export declare type TimelineProps = TimelineProps_2;
552
+
553
+ export declare const Tooltip: default_3.FC<TooltipProps>;
421
554
 
422
555
  export declare type TooltipProps = TooltipProps_2;
423
556
 
557
+ export declare const Tour: React.FC<TourProps>;
558
+
559
+ export declare type TourProps = TourProps_2;
560
+
561
+ export declare const Tree: React.FC<TreeProps>;
562
+
563
+ export declare type TreeProps = TreeProps_2;
564
+
424
565
  export declare const typeColorMap: Record<NonNullable<BadgeProps["type"]>, string>;
425
566
 
426
567
  export declare const Typography: {
@@ -429,4 +570,6 @@ export declare const Typography: {
429
570
  Text: (props: TextProps) => JSX.Element;
430
571
  };
431
572
 
573
+ export declare const Watermark: ({ ...rest }: WatermarkProps) => JSX.Element;
574
+
432
575
  export { }