bt-core-app 1.4.23 → 1.4.24

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.
@@ -1192,7 +1192,17 @@ function gu() {
1192
1192
  function yu(e) {
1193
1193
  const r = localStorage.getItem("cosmetics");
1194
1194
  let n;
1195
- return r != null && r.length > 0 && (n = JSON.parse(r)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), n;
1195
+ return r != null && r.length > 0 && (n = JSON.parse(r)), n ?? (n = {}), n.dark ?? (n.dark = e == null ? void 0 : e.dark), n.light ?? (n.light = e == null ? void 0 : e.light), n.theme ?? (n.theme = e == null ? void 0 : e.defaultTheme), {
1196
+ defaultTheme: n.theme ?? "dark",
1197
+ themes: {
1198
+ dark: {
1199
+ colors: n.dark
1200
+ },
1201
+ light: {
1202
+ colors: n.light
1203
+ }
1204
+ }
1205
+ };
1196
1206
  }
1197
1207
  function xa(e) {
1198
1208
  const r = Z({});
package/dist/index.d.ts CHANGED
@@ -1116,14 +1116,15 @@ export declare function useLocalCache(): {
1116
1116
  saveAsync: <T_1>(data: T_1, key: string) => Promise<void>;
1117
1117
  };
1118
1118
 
1119
- declare interface UseLocalCosmeticOptions {
1119
+ /**Returns a theme options object to pass into the create vuetify theme options */
1120
+ export declare function useLocalCosmetics(options?: UseLocalCosmeticsOptions): any;
1121
+
1122
+ declare interface UseLocalCosmeticsOptions {
1120
1123
  defaultTheme?: string;
1121
- dark?: BaseCosmeticTheme;
1122
- light?: BaseCosmeticTheme;
1124
+ dark?: any;
1125
+ light?: any;
1123
1126
  }
1124
1127
 
1125
- export declare function useLocalCosmetics(options?: UseLocalCosmeticOptions): CosmeticData;
1126
-
1127
1128
  export declare function useLocalDb(): LocalForage;
1128
1129
 
1129
1130
  export declare function useNavigation(): BTNavigation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bt-core-app",
3
- "version": "1.4.23",
3
+ "version": "1.4.24",
4
4
  "description": "Core app tools for some basic features like navigation, authentication, server apis, and cosmetics",
5
5
  "homepage": "https://github.com/BlitzItTech/bt-core",
6
6
  "bugs": {