@compass-framework/core 1.1.1 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,18 @@
1
1
  import { CharSequence, RefValue, XML } from "@compass-framework/library";
2
2
  import { Drawable } from "./Drawable";
3
- import { AttributeSet } from "./AttributeSet";
4
- import { ColorDrawable } from "./ColorDrawable";
5
- import { Assets } from "./Assets";
6
3
  import { DisplayMetrics } from "./DisplayMetrics";
4
+ import { Assets } from "./Assets";
5
+ import { ColorDrawable } from "./ColorDrawable";
6
+ import {Configuration} from "./Configuration";
7
+ import { AttributeSet } from "./AttributeSet";
7
8
 
8
9
  export declare class Resources {
9
10
  public getDisplayMetrics(): DisplayMetrics;
10
11
 
11
12
  public getAssets(): Assets;
12
13
 
14
+ public getConfiguration(): Configuration;
15
+
13
16
  /// ///////////////////////////////////////////////////////////////////////////////////////////////////////
14
17
  /// ///////////////////////////////////////////////////////////////////////////////////////////////////////
15
18
  /// ///////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,18 @@
1
+ export declare class Theme {
2
+
3
+ public constructor();
4
+ public constructor(theme: Theme);
5
+
6
+ public set(theme: Theme): void
7
+
8
+ public getMode(): Theme.Mode
9
+
10
+ public setMode(mode: Theme.Mode): void
11
+ }
12
+
13
+ export namespace Theme {
14
+ export enum Mode {
15
+ Light,
16
+ Dark,
17
+ }
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/core",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "@compass-framework/core public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
package/@types/Theme.ts DELETED
@@ -1,4 +0,0 @@
1
- export enum Theme {
2
- Light,
3
- Dark,
4
- }