@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.
Files changed (69) hide show
  1. package/lib/module/components/Card/Card.js +14 -9
  2. package/lib/module/components/Card/Card.js.map +1 -1
  3. package/lib/module/components/Card/styles.js +15 -17
  4. package/lib/module/components/Card/styles.js.map +1 -1
  5. package/lib/module/components/Surface/Surface.js +34 -0
  6. package/lib/module/components/Surface/Surface.js.map +1 -0
  7. package/lib/module/components/Surface/styles.js +25 -0
  8. package/lib/module/components/Surface/styles.js.map +1 -0
  9. package/lib/module/components/Surface/types.js +4 -0
  10. package/lib/module/components/Surface/types.js.map +1 -0
  11. package/lib/module/themes/colors.js +122 -0
  12. package/lib/module/themes/colors.js.map +1 -0
  13. package/lib/module/themes/light.js +34 -0
  14. package/lib/module/themes/light.js.map +1 -0
  15. package/lib/module/themes/radius.js +11 -0
  16. package/lib/module/themes/radius.js.map +1 -0
  17. package/lib/module/themes/size.js +11 -0
  18. package/lib/module/themes/size.js.map +1 -0
  19. package/lib/module/themes/spacing.js +13 -0
  20. package/lib/module/themes/spacing.js.map +1 -0
  21. package/lib/module/themes/types.js +4 -0
  22. package/lib/module/themes/types.js.map +1 -0
  23. package/lib/module/themes/typography.js +31 -0
  24. package/lib/module/themes/typography.js.map +1 -0
  25. package/lib/module/types/general.types.js +4 -0
  26. package/lib/module/types/general.types.js.map +1 -0
  27. package/lib/typescript/src/components/Card/Card.d.ts +1 -1
  28. package/lib/typescript/src/components/Card/Card.d.ts.map +1 -1
  29. package/lib/typescript/src/components/Card/styles.d.ts +13 -1
  30. package/lib/typescript/src/components/Card/styles.d.ts.map +1 -1
  31. package/lib/typescript/src/components/Card/types.d.ts +11 -3
  32. package/lib/typescript/src/components/Card/types.d.ts.map +1 -1
  33. package/lib/typescript/src/components/Surface/Surface.d.ts +16 -0
  34. package/lib/typescript/src/components/Surface/Surface.d.ts.map +1 -0
  35. package/lib/typescript/src/components/Surface/styles.d.ts +22 -0
  36. package/lib/typescript/src/components/Surface/styles.d.ts.map +1 -0
  37. package/lib/typescript/src/components/Surface/types.d.ts +12 -0
  38. package/lib/typescript/src/components/Surface/types.d.ts.map +1 -0
  39. package/lib/typescript/src/themes/colors.d.ts +108 -0
  40. package/lib/typescript/src/themes/colors.d.ts.map +1 -0
  41. package/lib/typescript/src/themes/light.d.ts +3 -0
  42. package/lib/typescript/src/themes/light.d.ts.map +1 -0
  43. package/lib/typescript/src/themes/radius.d.ts +10 -0
  44. package/lib/typescript/src/themes/radius.d.ts.map +1 -0
  45. package/lib/typescript/src/themes/size.d.ts +10 -0
  46. package/lib/typescript/src/themes/size.d.ts.map +1 -0
  47. package/lib/typescript/src/themes/spacing.d.ts +12 -0
  48. package/lib/typescript/src/themes/spacing.d.ts.map +1 -0
  49. package/lib/typescript/src/themes/types.d.ts +19 -0
  50. package/lib/typescript/src/themes/types.d.ts.map +1 -0
  51. package/lib/typescript/src/themes/typography.d.ts +30 -0
  52. package/lib/typescript/src/themes/typography.d.ts.map +1 -0
  53. package/lib/typescript/src/types/general.types.d.ts +4 -0
  54. package/lib/typescript/src/types/general.types.d.ts.map +1 -0
  55. package/package.json +3 -3
  56. package/src/components/Card/Card.tsx +13 -5
  57. package/src/components/Card/styles.ts +17 -17
  58. package/src/components/Card/types.ts +12 -3
  59. package/src/components/Surface/Surface.tsx +29 -0
  60. package/src/components/Surface/styles.ts +28 -0
  61. package/src/components/Surface/types.ts +14 -0
  62. package/src/themes/colors.ts +125 -0
  63. package/src/themes/light.ts +30 -0
  64. package/src/themes/radius.ts +10 -0
  65. package/src/themes/size.ts +10 -0
  66. package/src/themes/spacing.ts +12 -0
  67. package/src/themes/types.ts +19 -0
  68. package/src/themes/typography.ts +33 -0
  69. 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;
@@ -0,0 +1,4 @@
1
+ import type { ComponentRef } from 'react';
2
+ import type { View } from 'react-native';
3
+
4
+ export type ViewRef = ComponentRef<typeof View>;