ados-rcm 1.1.290 → 1.1.292
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/AModule/AComponents/ATheme/ATheme.d.ts +2 -7
- package/dist/AModule/AUtils/sF.d.ts +4 -28
- package/dist/index.cjs.js +16 -16
- package/dist/index.es.js +2304 -2316
- package/package.json +1 -1
@@ -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: ("
|
43
|
+
export declare const semanticModes: ("dark" | "light")[];
|
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(): "
|
52
|
+
declare function getCurrentSemanticMode(): "dark" | "light";
|
53
53
|
/**
|
54
54
|
* getSemanticValue : (key: TSemanticKeys, mode: TSemanticModes, isDeep: boolean) => string
|
55
55
|
*
|
@@ -188,10 +188,6 @@ 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;
|
195
191
|
export declare const AThemes: {
|
196
192
|
getCurrentPaletteMode: typeof getCurrentPaletteMode;
|
197
193
|
getPaletteValue: typeof getPaletteValue;
|
@@ -211,6 +207,5 @@ export declare const AThemes: {
|
|
211
207
|
addEventListener: typeof addEventListener;
|
212
208
|
removeEventListener: typeof removeEventListener;
|
213
209
|
getDeepValue: typeof getDeepValue;
|
214
|
-
addClasses: typeof addClasses;
|
215
210
|
};
|
216
211
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { IAdditionalClasses } from '../AComponents/ATheme/ATheme';
|
2
1
|
declare global {
|
3
2
|
interface Array<T> {
|
4
3
|
includes(value: any): value is T;
|
@@ -10,28 +9,7 @@ declare global {
|
|
10
9
|
type CSSModuleClasses = {
|
11
10
|
readonly [key: string]: string;
|
12
11
|
};
|
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: {
|
12
|
+
declare const keys: {
|
35
13
|
Display1: any;
|
36
14
|
Display2: any;
|
37
15
|
Title1: any;
|
@@ -45,10 +23,10 @@ declare const typographies: {
|
|
45
23
|
Label2: any;
|
46
24
|
Caption1: any;
|
47
25
|
Caption2: any;
|
26
|
+
NoSelect: any;
|
27
|
+
IsClickable: string;
|
28
|
+
IsInteractive: string;
|
48
29
|
};
|
49
|
-
type TKeys = typeof classes & typeof typographies & IAdditionalClasses;
|
50
|
-
declare const keys: TKeys;
|
51
|
-
declare function updateKeys(): void;
|
52
30
|
declare function clsx(...args: (keyof typeof keys)[] | any[]): string;
|
53
31
|
declare function sclsx<T extends CSSModuleClasses>(styles: T, ...args: (keyof T)[] | (keyof typeof keys)[] | any[]): string;
|
54
32
|
/**
|
@@ -77,7 +55,5 @@ export declare const sF: {
|
|
77
55
|
Caption1: any;
|
78
56
|
Caption2: any;
|
79
57
|
};
|
80
|
-
additionalClasses: IAdditionalClasses;
|
81
|
-
updateKeys: typeof updateKeys;
|
82
58
|
};
|
83
59
|
export {};
|