ados-rcm 1.0.603 → 1.0.604

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,12 @@ export type TPaletteKeys = (typeof paletteKeys)[number];
12
12
  * Description : get the current palette mode.
13
13
  */
14
14
  declare function getCurrentPaletteMode(): "mode-1";
15
+ /**
16
+ * getPaletteValue : (key: TPaletteKeys, mode: TPaletteModes) => string
17
+ *
18
+ * Description : get the shallow value of the palette key.
19
+ */
20
+ declare function getPaletteValue(key: TPaletteKeys, mode?: TPaletteModes): string;
15
21
  interface IPaletteModeChangeEvent {
16
22
  type: 'paletteModeChange';
17
23
  listener: (newPaletteMode: TPaletteModes) => void;
@@ -39,6 +45,12 @@ export type TSemanticKeys = (typeof semanticKeys)[number];
39
45
  * Description : get the current semantic mode.
40
46
  */
41
47
  declare function getCurrentSemanticMode(): "light" | "dark";
48
+ /**
49
+ * getSemanticValue : (key: TSemanticKeys, mode: TSemanticModes) => string
50
+ *
51
+ * Description : get the shallow value of the semantic key.
52
+ */
53
+ declare function getSemanticValue(key: TSemanticKeys, mode?: TSemanticModes): string;
42
54
  interface ISemanticModeChangeEvent {
43
55
  type: 'semanticModeChange';
44
56
  listener: (newSemanticMode: TSemanticModes) => void;
@@ -56,9 +68,11 @@ export declare function changeSemanticMode(mode: TSemanticModes): void;
56
68
  */
57
69
  declare function editSemantic(semantic: Partial<TSemantic>, mode?: TSemanticModes | 'all'): void;
58
70
  export type TComponentStyle = typeof componentStyle;
71
+ export type TComponentStyleKeys = keyof TComponentStyle;
59
72
  export type TComponentHardStyle = {
60
73
  [key in keyof TComponentStyle]: TSemanticKeys;
61
74
  };
75
+ declare function getComponentStyleValue(key: TComponentStyleKeys): string;
62
76
  /**
63
77
  * editComponentStyle : (theme: Partial<TComponentStyle>) => void
64
78
  *
@@ -103,11 +117,14 @@ declare function addEventListener<T extends TAThemeEvent>(param: T): void;
103
117
  declare function removeEventListener<T extends TAThemeEvent>(param: T): void;
104
118
  export declare const AThemes: {
105
119
  getCurrentPaletteMode: typeof getCurrentPaletteMode;
120
+ getPaletteValue: typeof getPaletteValue;
106
121
  changePaletteMode: typeof changePaletteMode;
107
122
  editPalette: typeof editPalette;
108
123
  getCurrentSemanticMode: typeof getCurrentSemanticMode;
124
+ getSemanticValue: typeof getSemanticValue;
109
125
  changeSemanticMode: typeof changeSemanticMode;
110
126
  editSemantic: typeof editSemantic;
127
+ getComponentStyleValue: typeof getComponentStyleValue;
111
128
  editComponentStyle: typeof editComponentStyle;
112
129
  editComponentStyleWithSemantic: typeof editComponentStyleWithSemantic;
113
130
  init: typeof init;