ados-rcm 1.1.225 → 1.1.226
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/AChip/AChip.d.ts +78 -0
- package/dist/AModule/AComponents/AIcon/AIcon.d.ts +2 -3
- package/dist/index.cjs.js +22 -22
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +3759 -3686
- package/package.json +1 -1
@@ -0,0 +1,78 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TUseValues } from '../../AHooks/useValues';
|
3
|
+
import { TCanCallback } from '../../AUtils/cbF';
|
4
|
+
import { IABaseProps } from '../ABase/ABase';
|
5
|
+
import { TIcons } from '../AIcon/AIcon';
|
6
|
+
export interface IAChipsProps<T> extends IAChipInheritProps<T>, IABaseProps {
|
7
|
+
/**
|
8
|
+
* useValue? : TUseValues<T[]>
|
9
|
+
*
|
10
|
+
* Description : useValue of AChips
|
11
|
+
*/
|
12
|
+
useLabel?: TUseValues<T[]>;
|
13
|
+
/**
|
14
|
+
* alignItems? : React.CSSProperties['alignItems'] = 'flex-start'
|
15
|
+
*
|
16
|
+
* Description : alignItems of AChips
|
17
|
+
*/
|
18
|
+
alignItems?: React.CSSProperties['alignItems'];
|
19
|
+
}
|
20
|
+
export interface IAChipInheritProps<T> {
|
21
|
+
/**
|
22
|
+
* ChipStyle? : React.CSSProperties
|
23
|
+
*
|
24
|
+
* Description : style of AChip
|
25
|
+
*/
|
26
|
+
ChipStyle?: TCanCallback<IAChipProps<T>, React.CSSProperties>;
|
27
|
+
/**
|
28
|
+
* ChipClassName? : string
|
29
|
+
*
|
30
|
+
* Description : className of AChip
|
31
|
+
*/
|
32
|
+
ChipClassName?: TCanCallback<IAChipProps<T>, string>;
|
33
|
+
/**
|
34
|
+
* ChipOnDelete?: (props: IAChipProps<T>) => void
|
35
|
+
*
|
36
|
+
* Description : onDelete of AChip
|
37
|
+
*/
|
38
|
+
ChipOnDelete?: (props: IAChipProps<T>) => void;
|
39
|
+
/**
|
40
|
+
* ChipOnClick? : (props: IAChipProps<T>) => void
|
41
|
+
*
|
42
|
+
* Description : onClick of AChip
|
43
|
+
*/
|
44
|
+
ChipOnClick?: (props: IAChipProps<T>) => void;
|
45
|
+
/**
|
46
|
+
* ChipIcon? : TIcons | Exclude<React.ReactNode, string>
|
47
|
+
*
|
48
|
+
* Description : icon of AChip
|
49
|
+
*/
|
50
|
+
ChipIcon?: TCanCallback<IAChipProps<T>, TIcons | Exclude<React.ReactNode, string>>;
|
51
|
+
}
|
52
|
+
export declare const AChips: <T>(props: IAChipsProps<T>) => React.ReactNode;
|
53
|
+
interface IAChipBaseProps<T> {
|
54
|
+
/**
|
55
|
+
* label : T
|
56
|
+
*
|
57
|
+
* Description : label of AChip
|
58
|
+
*/
|
59
|
+
label: T;
|
60
|
+
/**
|
61
|
+
*
|
62
|
+
* key?: number
|
63
|
+
*
|
64
|
+
* Description : key of AChip, key is index of AChip
|
65
|
+
*/
|
66
|
+
key?: number;
|
67
|
+
}
|
68
|
+
export interface IAChipProps<T> extends IAChipBaseProps<T>, IABaseProps {
|
69
|
+
onDelete?: (label: T) => void;
|
70
|
+
/**
|
71
|
+
* icon? : TIcons | Exclude<React.ReactNode, string> = 'Close'
|
72
|
+
*
|
73
|
+
* Description : icon of the AChip
|
74
|
+
*/
|
75
|
+
icon?: TIcons | Exclude<React.ReactNode, string>;
|
76
|
+
}
|
77
|
+
export declare const AChip: <T>(props: IAChipProps<T>) => React.ReactElement;
|
78
|
+
export {};
|
@@ -64,7 +64,7 @@ declare const Icons: Readonly<{
|
|
64
64
|
FileDownload: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
65
65
|
File: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
66
66
|
UnPlug: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
67
|
-
|
67
|
+
Sync: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
68
68
|
CalendarDay: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
69
69
|
DateRange: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
70
70
|
PlayArrow: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
@@ -112,8 +112,7 @@ declare const Icons: Readonly<{
|
|
112
112
|
Delete: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
113
113
|
Save: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
114
114
|
Remove: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
115
|
-
Sync: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
|
116
115
|
}>;
|
117
|
-
export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircledCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "UnPlug" | "
|
116
|
+
export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircledCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "UnPlug" | "Sync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Clear" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Gear" | "TriangleUp" | "TriangleDown" | "HelpCircle" | "Cow" | "AlertCircle" | "Email" | "Manager" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove")[];
|
118
117
|
export type TAIcons = (typeof AIcons)[number];
|
119
118
|
export {};
|