@idealyst/components 1.0.10 → 1.0.11
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 +2 -7
- package/src/unistyles.d.ts +0 -108
- package/src/unistyles.ts +0 -42
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11",
|
|
4
4
|
"description": "Shared component library for React and React Native",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"module": "src/index.ts",
|
|
@@ -32,11 +32,6 @@
|
|
|
32
32
|
"import": "./src/examples/index.ts",
|
|
33
33
|
"require": "./src/examples/index.ts",
|
|
34
34
|
"types": "./src/examples/index.ts"
|
|
35
|
-
},
|
|
36
|
-
"./src/unistyles": {
|
|
37
|
-
"import": "./src/unistyles.ts",
|
|
38
|
-
"require": "./src/unistyles.ts",
|
|
39
|
-
"types": "./src/unistyles.ts"
|
|
40
35
|
}
|
|
41
36
|
},
|
|
42
37
|
"scripts": {
|
|
@@ -46,7 +41,7 @@
|
|
|
46
41
|
"publish:npm": "npm publish"
|
|
47
42
|
},
|
|
48
43
|
"peerDependencies": {
|
|
49
|
-
"@idealyst/theme": "^1.0.
|
|
44
|
+
"@idealyst/theme": "^1.0.11",
|
|
50
45
|
"@mdi/js": "^7.4.47",
|
|
51
46
|
"@mdi/react": "^1.6.1",
|
|
52
47
|
"@react-native-vector-icons/common": "^12.0.1",
|
package/src/unistyles.d.ts
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
declare module 'react-native-unistyles' {
|
|
2
|
-
export interface UnistylesThemes {
|
|
3
|
-
light: {
|
|
4
|
-
colors: {
|
|
5
|
-
primary: string;
|
|
6
|
-
secondary: string;
|
|
7
|
-
background: string;
|
|
8
|
-
surface: string;
|
|
9
|
-
text: string;
|
|
10
|
-
textSecondary: string;
|
|
11
|
-
border: string;
|
|
12
|
-
success: string;
|
|
13
|
-
warning: string;
|
|
14
|
-
error: string;
|
|
15
|
-
};
|
|
16
|
-
spacing: {
|
|
17
|
-
xs: number;
|
|
18
|
-
sm: number;
|
|
19
|
-
md: number;
|
|
20
|
-
lg: number;
|
|
21
|
-
xl: number;
|
|
22
|
-
xxl: number;
|
|
23
|
-
};
|
|
24
|
-
borderRadius: {
|
|
25
|
-
xs: number;
|
|
26
|
-
sm: number;
|
|
27
|
-
md: number;
|
|
28
|
-
lg: number;
|
|
29
|
-
xl: number;
|
|
30
|
-
};
|
|
31
|
-
typography: {
|
|
32
|
-
fontSize: {
|
|
33
|
-
xs: number;
|
|
34
|
-
sm: number;
|
|
35
|
-
md: number;
|
|
36
|
-
lg: number;
|
|
37
|
-
xl: number;
|
|
38
|
-
xxl: number;
|
|
39
|
-
};
|
|
40
|
-
fontWeight: {
|
|
41
|
-
light: string;
|
|
42
|
-
regular: string;
|
|
43
|
-
medium: string;
|
|
44
|
-
semibold: string;
|
|
45
|
-
bold: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
gap: (value: number) => number;
|
|
49
|
-
scale: (value: number) => number;
|
|
50
|
-
};
|
|
51
|
-
dark: {
|
|
52
|
-
colors: {
|
|
53
|
-
primary: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
background: string;
|
|
56
|
-
surface: string;
|
|
57
|
-
text: string;
|
|
58
|
-
textSecondary: string;
|
|
59
|
-
border: string;
|
|
60
|
-
success: string;
|
|
61
|
-
warning: string;
|
|
62
|
-
error: string;
|
|
63
|
-
};
|
|
64
|
-
spacing: {
|
|
65
|
-
xs: number;
|
|
66
|
-
sm: number;
|
|
67
|
-
md: number;
|
|
68
|
-
lg: number;
|
|
69
|
-
xl: number;
|
|
70
|
-
xxl: number;
|
|
71
|
-
};
|
|
72
|
-
borderRadius: {
|
|
73
|
-
xs: number;
|
|
74
|
-
sm: number;
|
|
75
|
-
md: number;
|
|
76
|
-
lg: number;
|
|
77
|
-
xl: number;
|
|
78
|
-
};
|
|
79
|
-
typography: {
|
|
80
|
-
fontSize: {
|
|
81
|
-
xs: number;
|
|
82
|
-
sm: number;
|
|
83
|
-
md: number;
|
|
84
|
-
lg: number;
|
|
85
|
-
xl: number;
|
|
86
|
-
xxl: number;
|
|
87
|
-
};
|
|
88
|
-
fontWeight: {
|
|
89
|
-
light: string;
|
|
90
|
-
regular: string;
|
|
91
|
-
medium: string;
|
|
92
|
-
semibold: string;
|
|
93
|
-
bold: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
gap: (value: number) => number;
|
|
97
|
-
scale: (value: number) => number;
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export interface UnistylesBreakpoints {
|
|
102
|
-
xs: number;
|
|
103
|
-
sm: number;
|
|
104
|
-
md: number;
|
|
105
|
-
lg: number;
|
|
106
|
-
xl: number;
|
|
107
|
-
}
|
|
108
|
-
}
|
package/src/unistyles.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { StyleSheet } from 'react-native-unistyles';
|
|
2
|
-
import { defaultLightTheme, defaultDarkTheme, breakpoints } from '@idealyst/theme';
|
|
3
|
-
import { extendedThemes } from './examples/extendedTheme';
|
|
4
|
-
|
|
5
|
-
// Use the extended themes instead of default themes
|
|
6
|
-
export const lightTheme = extendedThemes.light;
|
|
7
|
-
export const darkTheme = extendedThemes.dark;
|
|
8
|
-
|
|
9
|
-
// Unistyles v3 themes declaration
|
|
10
|
-
declare module 'react-native-unistyles' {
|
|
11
|
-
export interface UnistylesThemes {
|
|
12
|
-
light: typeof lightTheme;
|
|
13
|
-
dark: typeof darkTheme;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface UnistylesBreakpoints {
|
|
17
|
-
xs: typeof breakpoints.xs;
|
|
18
|
-
sm: typeof breakpoints.sm;
|
|
19
|
-
md: typeof breakpoints.md;
|
|
20
|
-
lg: typeof breakpoints.lg;
|
|
21
|
-
xl: typeof breakpoints.xl;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Export enhanced theme types
|
|
26
|
-
export type AppTheme = typeof lightTheme;
|
|
27
|
-
export type AppIntents = typeof lightTheme.intents;
|
|
28
|
-
export type AppColors = typeof lightTheme.colors;
|
|
29
|
-
export type AppPalettes = typeof lightTheme.palettes;
|
|
30
|
-
export type IntentNames = keyof AppIntents;
|
|
31
|
-
export type ColorNames = keyof AppColors;
|
|
32
|
-
|
|
33
|
-
StyleSheet.configure({
|
|
34
|
-
settings: {
|
|
35
|
-
initialTheme: 'light',
|
|
36
|
-
},
|
|
37
|
-
breakpoints,
|
|
38
|
-
themes: {
|
|
39
|
-
light: lightTheme,
|
|
40
|
-
dark: darkTheme,
|
|
41
|
-
}
|
|
42
|
-
})
|