@dryanovski/react-native-components 1.0.2 → 1.0.5
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/lib/module/components/Card/Card.js +14 -9
- package/lib/module/components/Card/Card.js.map +1 -1
- package/lib/module/components/Card/styles.js +15 -17
- package/lib/module/components/Card/styles.js.map +1 -1
- package/lib/module/components/Surface/Surface.js +34 -0
- package/lib/module/components/Surface/Surface.js.map +1 -0
- package/lib/module/components/Surface/styles.js +25 -0
- package/lib/module/components/Surface/styles.js.map +1 -0
- package/lib/module/components/Surface/types.js +4 -0
- package/lib/module/components/Surface/types.js.map +1 -0
- package/lib/module/themes/colors.js +122 -0
- package/lib/module/themes/colors.js.map +1 -0
- package/lib/module/themes/light.js +34 -0
- package/lib/module/themes/light.js.map +1 -0
- package/lib/module/themes/radius.js +11 -0
- package/lib/module/themes/radius.js.map +1 -0
- package/lib/module/themes/size.js +11 -0
- package/lib/module/themes/size.js.map +1 -0
- package/lib/module/themes/spacing.js +13 -0
- package/lib/module/themes/spacing.js.map +1 -0
- package/lib/module/themes/types.js +4 -0
- package/lib/module/themes/types.js.map +1 -0
- package/lib/module/themes/typography.js +31 -0
- package/lib/module/themes/typography.js.map +1 -0
- package/lib/module/types/general.types.js +4 -0
- package/lib/module/types/general.types.js.map +1 -0
- package/lib/typescript/src/components/Card/Card.d.ts +1 -1
- package/lib/typescript/src/components/Card/Card.d.ts.map +1 -1
- package/lib/typescript/src/components/Card/styles.d.ts +13 -1
- package/lib/typescript/src/components/Card/styles.d.ts.map +1 -1
- package/lib/typescript/src/components/Card/types.d.ts +11 -3
- package/lib/typescript/src/components/Card/types.d.ts.map +1 -1
- package/lib/typescript/src/components/Surface/Surface.d.ts +16 -0
- package/lib/typescript/src/components/Surface/Surface.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface/styles.d.ts +22 -0
- package/lib/typescript/src/components/Surface/styles.d.ts.map +1 -0
- package/lib/typescript/src/components/Surface/types.d.ts +12 -0
- package/lib/typescript/src/components/Surface/types.d.ts.map +1 -0
- package/lib/typescript/src/themes/colors.d.ts +108 -0
- package/lib/typescript/src/themes/colors.d.ts.map +1 -0
- package/lib/typescript/src/themes/light.d.ts +3 -0
- package/lib/typescript/src/themes/light.d.ts.map +1 -0
- package/lib/typescript/src/themes/radius.d.ts +10 -0
- package/lib/typescript/src/themes/radius.d.ts.map +1 -0
- package/lib/typescript/src/themes/size.d.ts +10 -0
- package/lib/typescript/src/themes/size.d.ts.map +1 -0
- package/lib/typescript/src/themes/spacing.d.ts +12 -0
- package/lib/typescript/src/themes/spacing.d.ts.map +1 -0
- package/lib/typescript/src/themes/types.d.ts +19 -0
- package/lib/typescript/src/themes/types.d.ts.map +1 -0
- package/lib/typescript/src/themes/typography.d.ts +30 -0
- package/lib/typescript/src/themes/typography.d.ts.map +1 -0
- package/lib/typescript/src/types/general.types.d.ts +4 -0
- package/lib/typescript/src/types/general.types.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/components/Card/Card.tsx +13 -5
- package/src/components/Card/styles.ts +17 -17
- package/src/components/Card/types.ts +12 -3
- package/src/components/Surface/Surface.tsx +29 -0
- package/src/components/Surface/styles.ts +28 -0
- package/src/components/Surface/types.ts +14 -0
- package/src/themes/colors.ts +125 -0
- package/src/themes/light.ts +30 -0
- package/src/themes/radius.ts +10 -0
- package/src/themes/size.ts +10 -0
- package/src/themes/spacing.ts +12 -0
- package/src/themes/types.ts +19 -0
- package/src/themes/typography.ts +33 -0
- package/src/types/general.types.ts +4 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export const typography = {
|
|
2
|
+
fonts: {
|
|
3
|
+
regular: 'System',
|
|
4
|
+
medium: 'System',
|
|
5
|
+
bold: 'System',
|
|
6
|
+
},
|
|
7
|
+
|
|
8
|
+
fontSizes: {
|
|
9
|
+
'xs': 12,
|
|
10
|
+
'sm': 14,
|
|
11
|
+
'md': 16,
|
|
12
|
+
'lg': 20,
|
|
13
|
+
'xl': 24,
|
|
14
|
+
'2xl': 32,
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
lineHeights: {
|
|
18
|
+
'xs': 16,
|
|
19
|
+
'sm': 18,
|
|
20
|
+
'md': 20,
|
|
21
|
+
'lg': 28,
|
|
22
|
+
'xl': 32,
|
|
23
|
+
'2xl': 40,
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
fontWeights: {
|
|
27
|
+
regular: '400' as const,
|
|
28
|
+
medium: '500' as const,
|
|
29
|
+
bold: '700' as const,
|
|
30
|
+
},
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
export type TypographyToken = typeof typography;
|