ados-rcm 1.0.602 → 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
  *
@@ -100,16 +114,21 @@ interface IInitParams {
100
114
  declare function init({ semanticMode, save, followDeviceSetting }: IInitParams): void;
101
115
  type TAThemeEvent = IPaletteModeChangeEvent | ISemanticModeChangeEvent;
102
116
  declare function addEventListener<T extends TAThemeEvent>(param: T): void;
117
+ declare function removeEventListener<T extends TAThemeEvent>(param: T): void;
103
118
  export declare const AThemes: {
104
119
  getCurrentPaletteMode: typeof getCurrentPaletteMode;
120
+ getPaletteValue: typeof getPaletteValue;
105
121
  changePaletteMode: typeof changePaletteMode;
106
122
  editPalette: typeof editPalette;
107
123
  getCurrentSemanticMode: typeof getCurrentSemanticMode;
124
+ getSemanticValue: typeof getSemanticValue;
108
125
  changeSemanticMode: typeof changeSemanticMode;
109
126
  editSemantic: typeof editSemantic;
127
+ getComponentStyleValue: typeof getComponentStyleValue;
110
128
  editComponentStyle: typeof editComponentStyle;
111
129
  editComponentStyleWithSemantic: typeof editComponentStyleWithSemantic;
112
130
  init: typeof init;
113
131
  addEventListener: typeof addEventListener;
132
+ removeEventListener: typeof removeEventListener;
114
133
  };
115
134
  export {};