ados-rcm 1.1.287 → 1.1.289

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,6 @@ export interface IASVGProps extends React.SVGProps<SVGSVGElement> {
5
5
  secondaryColor?: string;
6
6
  size?: TIconSize;
7
7
  }
8
- export type TIcons = keyof typeof Icons;
9
8
  declare const iconSizes: {
10
9
  readonly '2xs': 12;
11
10
  readonly xs: 16;
@@ -142,5 +141,5 @@ export declare const Icons: Readonly<{
142
141
  Trash2: (props?: IASVGProps) => import("react/jsx-runtime").JSX.Element;
143
142
  }>;
144
143
  export declare const AIcons: ("ArrowDown" | "ArrowUp" | "Chat" | "Check.Checked" | "Check.Indeterminate" | "Check.UnChecked" | "CircleCheck" | "ClipBoard" | "Close" | "Document" | "Menu" | "Person" | "PersonOutline" | "Reset" | "Search" | "Send" | "Spinner" | "Stop" | "TriangleAlert" | "TriangleAlert2" | "Sun" | "Moon" | "CCTV" | "Convert" | "KeyboardArrowUp" | "KeyboardArrowDown" | "Alert" | "SortUp" | "SortDown" | "SortBoth" | "RowSortUp" | "RowSortDown" | "RowSortBoth" | "Favorite" | "FavoriteDisabled" | "Main" | "Frame" | "FileDownload" | "File" | "UnPlug" | "CloudSync" | "CalendarDay" | "DateRange" | "PlayArrow" | "Mail" | "MailOutline" | "Bell" | "Download" | "Folder" | "FolderPost" | "FolderOpen" | "FolderCopy" | "FolderAdd" | "FolderMove" | "FirstPage" | "LastPage" | "NavigateBefore" | "NavigateNext" | "ListAdd" | "ListRemove" | "Cancel" | "Article" | "Info" | "Type" | "PersonAdd" | "CheckNormal" | "Create" | "PersonRemove" | "Refresh" | "Undo" | "Gear" | "TriangleUp" | "TriangleDown" | "CircleHelp" | "Cow" | "CircleAlertOutline" | "CircleAlert" | "Manager" | "ManagerOutline" | "Admin" | "Equalizer" | "ABC" | "Auth" | "AuthAdd" | "Switch" | "Add" | "Edit" | "EditOff" | "Delete" | "Save" | "Remove" | "Sync" | "X" | "MoreVertical" | "MoreHorizontal" | "Verified" | "NonVerified" | "Edit2" | "Trash2")[];
145
- export type TAIcons = (typeof AIcons)[number];
144
+ export type TIcons = keyof typeof Icons;
146
145
  export {};
@@ -40,7 +40,7 @@ declare function changePaletteMode(mode: TPaletteModes): void;
40
40
  */
41
41
  declare function editPalette(palette: Partial<TPalette>, mode?: TPaletteModes | 'all'): void;
42
42
  export type TSemantic = typeof refinedDesignTokens.semantic.light;
43
- export declare const semanticModes: ("dark" | "light")[];
43
+ export declare const semanticModes: ("light" | "dark")[];
44
44
  export type TSemanticModes = (typeof semanticModes)[number];
45
45
  export declare const semanticKeys: ("static-white" | "static-black" | "acent-brand" | "label-normal" | "label-strong" | "label-neutral" | "line-normal" | "line-strong" | "line-neutral" | "background-normal" | "elevation-0" | "elevation-10" | "elevation-20" | "alert-warning" | "alert-success" | "alert-danger" | "inverse-label-normal" | "inverse-label-strong" | "inverse-label-neutral" | "inverse-line-normal" | "inverse-line-strong" | "inverse-line-neutral" | "inverse-elevation-0" | "inverse-elevation-10" | "inverse-elevation-20")[];
46
46
  export type TSemanticKeys = (typeof semanticKeys)[number];
@@ -49,7 +49,7 @@ export type TSemanticKeys = (typeof semanticKeys)[number];
49
49
  *
50
50
  * Description : get the current semantic mode.
51
51
  */
52
- declare function getCurrentSemanticMode(): "dark" | "light";
52
+ declare function getCurrentSemanticMode(): "light" | "dark";
53
53
  /**
54
54
  * getSemanticValue : (key: TSemanticKeys, mode: TSemanticModes, isDeep: boolean) => string
55
55
  *
@@ -188,6 +188,10 @@ type TAThemeEvent = IPaletteModeChangeEvent | ISemanticModeChangeEvent;
188
188
  declare function addEventListener<T extends TAThemeEvent>(param: T): void;
189
189
  declare function removeEventListener<T extends TAThemeEvent>(param: T): void;
190
190
  declare function getDeepValue(key: TPaletteKeys | TSemanticKeys | TComponentStyleKeys): string;
191
+ export interface IAdditionalClasses {
192
+ [key: string]: string;
193
+ }
194
+ declare function addClasses<T extends Record<string, string>>(classes: T): void;
191
195
  export declare const AThemes: {
192
196
  getCurrentPaletteMode: typeof getCurrentPaletteMode;
193
197
  getPaletteValue: typeof getPaletteValue;
@@ -207,5 +211,6 @@ export declare const AThemes: {
207
211
  addEventListener: typeof addEventListener;
208
212
  removeEventListener: typeof removeEventListener;
209
213
  getDeepValue: typeof getDeepValue;
214
+ addClasses: typeof addClasses;
210
215
  };
211
216
  export {};
@@ -1,3 +1,4 @@
1
+ import { IAdditionalClasses } from '../AComponents/ATheme/ATheme';
1
2
  declare global {
2
3
  interface Array<T> {
3
4
  includes(value: any): value is T;
@@ -9,7 +10,28 @@ declare global {
9
10
  type CSSModuleClasses = {
10
11
  readonly [key: string]: string;
11
12
  };
12
- declare const keys: {
13
+ /**
14
+ * classes : Pre Defined CSS Classes
15
+ *
16
+ * Description : Pre Defined CSS Classes for sF
17
+ *
18
+ * NoSelect: S.NoSelect,
19
+ * IsClickable: plainClsx(S.NoSelect, S.IsCursorPointer, S.IsFixedShape),
20
+ * IsInteractive: plainClsx(S.NoSelect, S.IsCursorPointer, S.IsInteractive),
21
+ *
22
+ */
23
+ declare const classes: {
24
+ NoSelect: any;
25
+ IsClickable: string;
26
+ IsInteractive: string;
27
+ };
28
+ /**
29
+ * typographies : Pre Defined Typographies
30
+ *
31
+ * Description : Pre Defined Typographies for sF
32
+ *
33
+ */
34
+ declare const typographies: {
13
35
  Display1: any;
14
36
  Display2: any;
15
37
  Title1: any;
@@ -23,11 +45,11 @@ declare const keys: {
23
45
  Label2: any;
24
46
  Caption1: any;
25
47
  Caption2: any;
26
- NoSelect: any;
27
- IsClickable: string;
28
- IsInteractive: string;
29
48
  };
30
- declare function clsx(...args: (keyof typeof keys)[] | any[]): string;
49
+ type TKeys = typeof classes & typeof typographies & IAdditionalClasses;
50
+ declare const keys: TKeys;
51
+ declare function updateKeys(): void;
52
+ declare function clsx(...args: (keyof TKeys | any)[]): string;
31
53
  declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T)[] | (keyof typeof keys)[] | any[]): string;
32
54
  /**
33
55
  * sF : Style Functions
@@ -55,5 +77,7 @@ export declare const sF: {
55
77
  Caption1: any;
56
78
  Caption2: any;
57
79
  };
80
+ additionalClasses: IAdditionalClasses;
81
+ updateKeys: typeof updateKeys;
58
82
  };
59
83
  export {};