@idealyst/theme 1.0.11 → 1.0.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/theme",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "Theming system for Idealyst Framework",
5
5
  "main": "src/index.ts",
6
6
  "module": "src/index.ts",
package/src/unistyles.ts CHANGED
@@ -1,7 +1,14 @@
1
1
  import { StyleSheet } from 'react-native-unistyles';
2
2
  import { breakpoints } from './index';
3
- import { lightTheme, darkTheme } from './index';
3
+ import { defaultLightTheme as lightTheme, defaultDarkTheme as darkTheme } from './defaultThemes';
4
4
 
5
+ // Export enhanced theme types
6
+ export type AppTheme = typeof lightTheme;
7
+ export type AppIntents = typeof lightTheme.intents;
8
+ export type AppColors = typeof lightTheme.colors;
9
+ export type AppPalettes = typeof lightTheme.palettes;
10
+ export type IntentNames = keyof AppIntents;
11
+ export type ColorNames = keyof AppColors;
5
12
 
6
13
  // Unistyles v3 themes declaration
7
14
  declare module 'react-native-unistyles' {
@@ -19,13 +26,6 @@ declare module 'react-native-unistyles' {
19
26
  }
20
27
  }
21
28
 
22
- // Export enhanced theme types
23
- export type AppTheme = typeof lightTheme;
24
- export type AppIntents = typeof lightTheme.intents;
25
- export type AppColors = typeof lightTheme.colors;
26
- export type AppPalettes = typeof lightTheme.palettes;
27
- export type IntentNames = keyof AppIntents;
28
- export type ColorNames = keyof AppColors;
29
29
 
30
30
  StyleSheet.configure({
31
31
  settings: {
@@ -1,6 +0,0 @@
1
- import { AppThemes, AppBreakpoints } from './index';
2
-
3
- declare module 'react-native-unistyles' {
4
- export interface UnistylesThemes extends AppThemes {}
5
- export interface UnistylesBreakpoints extends AppBreakpoints {}
6
- }