@grupalia/rn-ui-kit 0.0.3 → 0.0.41

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 (78) hide show
  1. package/lib/commonjs/components/BaseBadge.js +127 -0
  2. package/lib/commonjs/components/BaseBadge.js.map +1 -0
  3. package/lib/commonjs/components/BaseButton.js +76 -109
  4. package/lib/commonjs/components/BaseButton.js.map +1 -1
  5. package/lib/commonjs/components/index.js +7 -0
  6. package/lib/commonjs/components/index.js.map +1 -1
  7. package/lib/commonjs/styles/background-colors.js +27 -19
  8. package/lib/commonjs/styles/background-colors.js.map +1 -1
  9. package/lib/commonjs/styles/border-colors.js +9 -1
  10. package/lib/commonjs/styles/border-colors.js.map +1 -1
  11. package/lib/commonjs/styles/colors.js +42 -0
  12. package/lib/commonjs/styles/colors.js.map +1 -1
  13. package/lib/commonjs/styles/text-colors.js +32 -8
  14. package/lib/commonjs/styles/text-colors.js.map +1 -1
  15. package/lib/commonjs/styles/utility-colors.js +507 -0
  16. package/lib/commonjs/styles/utility-colors.js.map +1 -0
  17. package/lib/commonjs/types/heroicons.js +6 -0
  18. package/lib/commonjs/types/heroicons.js.map +1 -0
  19. package/lib/module/components/BaseBadge.js +122 -0
  20. package/lib/module/components/BaseBadge.js.map +1 -0
  21. package/lib/module/components/BaseButton.js +77 -110
  22. package/lib/module/components/BaseButton.js.map +1 -1
  23. package/lib/module/components/index.js +1 -0
  24. package/lib/module/components/index.js.map +1 -1
  25. package/lib/module/styles/background-colors.js +27 -19
  26. package/lib/module/styles/background-colors.js.map +1 -1
  27. package/lib/module/styles/border-colors.js +9 -1
  28. package/lib/module/styles/border-colors.js.map +1 -1
  29. package/lib/module/styles/colors.js +42 -0
  30. package/lib/module/styles/colors.js.map +1 -1
  31. package/lib/module/styles/text-colors.js +32 -8
  32. package/lib/module/styles/text-colors.js.map +1 -1
  33. package/lib/module/styles/utility-colors.js +502 -0
  34. package/lib/module/styles/utility-colors.js.map +1 -0
  35. package/lib/module/types/heroicons.js +4 -0
  36. package/lib/module/types/heroicons.js.map +1 -0
  37. package/lib/typescript/commonjs/components/BaseBadge.d.ts +16 -0
  38. package/lib/typescript/commonjs/components/BaseBadge.d.ts.map +1 -0
  39. package/lib/typescript/commonjs/components/BaseButton.d.ts +5 -3
  40. package/lib/typescript/commonjs/components/BaseButton.d.ts.map +1 -1
  41. package/lib/typescript/commonjs/components/index.d.ts +1 -0
  42. package/lib/typescript/commonjs/components/index.d.ts.map +1 -1
  43. package/lib/typescript/commonjs/styles/background-colors.d.ts +8 -126
  44. package/lib/typescript/commonjs/styles/background-colors.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/styles/border-colors.d.ts +8 -42
  46. package/lib/typescript/commonjs/styles/border-colors.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/styles/colors.d.ts +42 -0
  48. package/lib/typescript/commonjs/styles/colors.d.ts.map +1 -1
  49. package/lib/typescript/commonjs/styles/text-colors.d.ts +8 -90
  50. package/lib/typescript/commonjs/styles/text-colors.d.ts.map +1 -1
  51. package/lib/typescript/commonjs/styles/utility-colors.d.ts +500 -0
  52. package/lib/typescript/commonjs/styles/utility-colors.d.ts.map +1 -0
  53. package/lib/typescript/commonjs/types/heroicons.d.ts +9 -0
  54. package/lib/typescript/commonjs/types/heroicons.d.ts.map +1 -0
  55. package/lib/typescript/module/components/BaseBadge.d.ts +16 -0
  56. package/lib/typescript/module/components/BaseBadge.d.ts.map +1 -0
  57. package/lib/typescript/module/components/BaseButton.d.ts +5 -3
  58. package/lib/typescript/module/components/BaseButton.d.ts.map +1 -1
  59. package/lib/typescript/module/components/index.d.ts +1 -0
  60. package/lib/typescript/module/components/index.d.ts.map +1 -1
  61. package/lib/typescript/module/styles/background-colors.d.ts +8 -126
  62. package/lib/typescript/module/styles/background-colors.d.ts.map +1 -1
  63. package/lib/typescript/module/styles/border-colors.d.ts +8 -42
  64. package/lib/typescript/module/styles/border-colors.d.ts.map +1 -1
  65. package/lib/typescript/module/styles/colors.d.ts +42 -0
  66. package/lib/typescript/module/styles/colors.d.ts.map +1 -1
  67. package/lib/typescript/module/styles/text-colors.d.ts +8 -90
  68. package/lib/typescript/module/styles/text-colors.d.ts.map +1 -1
  69. package/lib/typescript/module/styles/utility-colors.d.ts +500 -0
  70. package/lib/typescript/module/styles/utility-colors.d.ts.map +1 -0
  71. package/lib/typescript/module/types/heroicons.d.ts +9 -0
  72. package/lib/typescript/module/types/heroicons.d.ts.map +1 -0
  73. package/package.json +6 -3
  74. package/src/styles/background-colors.ts +38 -19
  75. package/src/styles/border-colors.ts +20 -1
  76. package/src/styles/colors.ts +42 -0
  77. package/src/styles/text-colors.ts +43 -8
  78. package/src/styles/utility-colors.ts +500 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility-colors.d.ts","sourceRoot":"","sources":["../../../../src/styles/utility-colors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAifE"}
@@ -0,0 +1,9 @@
1
+ import { NumberProp, SvgProps } from 'react-native-svg';
2
+ interface HeroIconProps extends SvgProps {
3
+ size?: NumberProp;
4
+ }
5
+ export interface HeroIcon {
6
+ (props: HeroIconProps): JSX.Element;
7
+ }
8
+ export {};
9
+ //# sourceMappingURL=heroicons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heroicons.d.ts","sourceRoot":"","sources":["../../../../src/types/heroicons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExD,UAAU,aAAc,SAAQ,QAAQ;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,CAAC,KAAK,EAAE,aAAa,GAAG,GAAG,CAAC,OAAO,CAAC;CACrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grupalia/rn-ui-kit",
3
- "version": "0.0.3",
3
+ "version": "0.0.41",
4
4
  "description": "Grupalia React Native UI Kit",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/module/index.d.ts",
@@ -14,7 +14,8 @@
14
14
  "dev": "chokidar \"src/**/*\" -c \"yarn bob build\"",
15
15
  "build": "bob build",
16
16
  "typecheck": "tsc --noEmit",
17
- "prepare": "bob build"
17
+ "prepare": "bob build",
18
+ "publish-local": "npx yalc publish"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "clsx": "^2.1.1",
@@ -41,6 +42,7 @@
41
42
  "react": "18.2.0",
42
43
  "react-native": "0.74.5",
43
44
  "react-native-builder-bob": "^0.40.6",
45
+ "react-native-svg": "^15.11.2",
44
46
  "tailwindcss": "3.3.2",
45
47
  "typescript": "~5.3.3"
46
48
  },
@@ -83,5 +85,6 @@
83
85
  "eslintIgnore": [
84
86
  "node_modules/",
85
87
  "lib/"
86
- ]
88
+ ],
89
+ "dependencies": {}
87
90
  }
@@ -1,6 +1,16 @@
1
1
  import colors from './colors';
2
+ import utilityColors from './utility-colors';
2
3
 
3
- export default {
4
+ type ColorObject = {
5
+ light: string;
6
+ dark: string;
7
+ };
8
+
9
+ type BackgroundColorsType = {
10
+ [key: string]: ColorObject;
11
+ };
12
+
13
+ const backgroundColors: BackgroundColorsType = {
4
14
  'bg-primary': {
5
15
  light: colors.base.white,
6
16
  dark: colors.gray_dark['950'],
@@ -13,7 +23,7 @@ export default {
13
23
  light: colors.gray_light['50'],
14
24
  dark: colors.gray_dark['800'],
15
25
  },
16
- 'bg-primary_solid': {
26
+ 'bg-primary-solid': {
17
27
  light: colors.gray_light['950'],
18
28
  dark: colors.gray_dark['900'],
19
29
  },
@@ -33,7 +43,7 @@ export default {
33
43
  light: colors.gray_light['25'],
34
44
  dark: colors.gray_dark['900'],
35
45
  },
36
- 'bg-secondary_solid': {
46
+ 'bg-secondary-solid': {
37
47
  light: colors.gray_light['600'],
38
48
  dark: colors.gray_dark['600'],
39
49
  },
@@ -61,68 +71,77 @@ export default {
61
71
  light: colors.gray_light['950'],
62
72
  dark: colors.gray_dark['800'],
63
73
  },
64
- 'bg-brand_primary': {
74
+ 'bg-brand-primary': {
65
75
  light: colors.brand['50'],
66
76
  dark: colors.brand['500'],
67
77
  },
68
- 'bg-brand_primary_alt': {
78
+ 'bg-brand-primary_alt': {
69
79
  light: colors.brand['50'],
70
80
  dark: colors.gray_dark['800'],
71
81
  },
72
- 'bg-brand_secondary': {
82
+ 'bg-brand-secondary': {
73
83
  light: colors.brand['100'],
74
84
  dark: colors.brand['600'],
75
85
  },
76
- 'bg-brand_solid': {
86
+ 'bg-brand-solid': {
77
87
  light: colors.brand['600'],
78
88
  dark: colors.brand['600'],
79
89
  },
80
- 'bg-brand_solid_hover': {
90
+ 'bg-brand-solid_hover': {
81
91
  light: colors.brand['700'],
82
92
  dark: colors.brand['500'],
83
93
  },
84
- 'bg-brand_section': {
94
+ 'bg-brand-section': {
85
95
  light: colors.brand['800'],
86
96
  dark: colors.gray_dark['800'],
87
97
  },
88
- 'bg-brand_section_subtle': {
98
+ 'bg-brand-section_subtle': {
89
99
  light: colors.brand['700'],
90
100
  dark: colors.gray_dark['950'],
91
101
  },
92
- 'bg-error_primary': {
102
+ 'bg-error-primary': {
93
103
  light: colors.error['50'],
94
104
  dark: colors.error['950'],
95
105
  },
96
- 'bg-error_secondary': {
106
+ 'bg-error-secondary': {
97
107
  light: colors.error['100'],
98
108
  dark: colors.error['600'],
99
109
  },
100
- 'bg-error_solid': {
110
+ 'bg-error-solid': {
101
111
  light: colors.error['600'],
102
112
  dark: colors.error['600'],
103
113
  },
104
- 'bg-warning_primary': {
114
+ 'bg-warning-primary': {
105
115
  light: colors.warning['50'],
106
116
  dark: colors.warning['950'],
107
117
  },
108
- 'bg-warning_secondary': {
118
+ 'bg-warning-secondary': {
109
119
  light: colors.warning['100'],
110
120
  dark: colors.warning['600'],
111
121
  },
112
- 'bg-warning_solid': {
122
+ 'bg-warning-solid': {
113
123
  light: colors.warning['600'],
114
124
  dark: colors.warning['600'],
115
125
  },
116
- 'bg-success_primary': {
126
+ 'bg-success-primary': {
117
127
  light: colors.success['50'],
118
128
  dark: colors.success['950'],
119
129
  },
120
- 'bg-success_secondary': {
130
+ 'bg-success-secondary': {
121
131
  light: colors.success['100'],
122
132
  dark: colors.success['600'],
123
133
  },
124
- 'bg-success_solid': {
134
+ 'bg-success-solid': {
125
135
  light: colors.success['600'],
126
136
  dark: colors.success['600'],
127
137
  },
128
138
  };
139
+
140
+ Object.entries(utilityColors).forEach(([key, value]) => {
141
+ backgroundColors[`bg-utility-${key}`] = {
142
+ light: value.light,
143
+ dark: value.dark,
144
+ };
145
+ });
146
+
147
+ export default backgroundColors;
@@ -1,6 +1,16 @@
1
1
  import colors from './colors';
2
+ import utilityColors from './utility-colors';
2
3
 
3
- export default {
4
+ type ColorObject = {
5
+ light: string;
6
+ dark?: string;
7
+ };
8
+
9
+ type BorderColorsType = {
10
+ [key: string]: ColorObject;
11
+ };
12
+
13
+ const borderColors: BorderColorsType = {
4
14
  'border-primary': {
5
15
  light: colors.gray_light['300'],
6
16
  dark: colors.gray_dark['700'],
@@ -42,3 +52,12 @@ export default {
42
52
  dark: colors.error['500'],
43
53
  },
44
54
  };
55
+
56
+ Object.entries(utilityColors).forEach(([key, value]) => {
57
+ borderColors[`border-utility-${key}`] = {
58
+ light: value.light,
59
+ dark: value.dark,
60
+ };
61
+ });
62
+
63
+ export default borderColors;
@@ -380,4 +380,46 @@ export default {
380
380
  900: '#852F99',
381
381
  950: '#4A1957',
382
382
  },
383
+ orange_dark: {
384
+ 25: '#FFF9F5',
385
+ 50: '#FFF4ED',
386
+ 100: '#FFE6D5',
387
+ 200: '#FFD6AE',
388
+ 300: '#FF9C66',
389
+ 400: '#FF692E',
390
+ 500: '#FF4405',
391
+ 600: '#E62E05',
392
+ 700: '#BC1B06',
393
+ 800: '#97180C',
394
+ 900: '#771A0D',
395
+ 950: '#57130A',
396
+ },
397
+ orange: {
398
+ 25: '#FEFAF5',
399
+ 50: '#FEF6EE',
400
+ 100: '#FDEAD7',
401
+ 200: '#F9DBAF',
402
+ 300: '#F7B27A',
403
+ 400: '#F38744',
404
+ 500: '#EF6820',
405
+ 600: '#E04F16',
406
+ 700: '#B93815',
407
+ 800: '#932F19',
408
+ 900: '#772917',
409
+ 950: '#511C10',
410
+ },
411
+ yellow: {
412
+ 25: '#FEFDF0',
413
+ 50: '#FEFBE8',
414
+ 100: '#FEF7C3',
415
+ 200: '#FEEE95',
416
+ 300: '#FDE272',
417
+ 400: '#FAC515',
418
+ 500: '#EAAA08',
419
+ 600: '#CA8504',
420
+ 700: '#A15C07',
421
+ 800: '#854A0E',
422
+ 900: '#713B12',
423
+ 950: '#542C0D',
424
+ },
383
425
  };
@@ -1,17 +1,27 @@
1
1
  import colors from './colors';
2
+ import utilityColors from './utility-colors';
2
3
 
3
- export default {
4
+ type ColorObject = {
5
+ light: string;
6
+ dark?: string;
7
+ };
8
+
9
+ type TextColorsType = {
10
+ [key: string]: ColorObject;
11
+ };
12
+
13
+ const textColors: TextColorsType = {
4
14
  'text-primary': {
5
15
  light: colors.gray_light['900'],
6
- dark: colors.gray_light['50'],
16
+ dark: colors.base.white,
7
17
  },
8
18
  'text-primary_on-brand': {
9
19
  light: colors.base.white,
10
20
  dark: colors.gray_light['50'],
11
21
  },
12
22
  'text-secondary': {
13
- light: colors.gray_light['700'],
14
- dark: colors.gray_light['300'],
23
+ light: colors.gray_light['600'],
24
+ dark: colors.gray_light['400'],
15
25
  },
16
26
  'text-secondary_hover': {
17
27
  light: colors.gray_light['800'],
@@ -22,8 +32,8 @@ export default {
22
32
  dark: colors.gray_light['300'],
23
33
  },
24
34
  'text-tertiary': {
25
- light: colors.gray_light['600'],
26
- dark: colors.gray_light['400'],
35
+ light: colors.gray_light['400'],
36
+ dark: colors.gray_light['500'],
27
37
  },
28
38
  'text-tertiary_hover': {
29
39
  light: colors.gray_light['700'],
@@ -46,8 +56,8 @@ export default {
46
56
  dark: colors.base.white,
47
57
  },
48
58
  'text-disabled': {
49
- light: colors.gray_light['500'],
50
- dark: colors.gray_light['500'],
59
+ light: colors.gray_light['400'],
60
+ dark: colors.gray_light['600'],
51
61
  },
52
62
  'text-placeholder': {
53
63
  light: colors.gray_light['500'],
@@ -89,4 +99,29 @@ export default {
89
99
  light: colors.success['600'],
90
100
  dark: colors.success['400'],
91
101
  },
102
+ 'text-brand': {
103
+ light: colors.brand['600'],
104
+ dark: colors.brand['400'],
105
+ },
106
+ 'text-brand_alt': {
107
+ light: colors.base.white,
108
+ dark: colors.base.white,
109
+ },
110
+ 'text-error': {
111
+ light: colors.error['500'],
112
+ dark: colors.error['400'],
113
+ },
114
+ 'text-success': {
115
+ light: colors.success['500'],
116
+ dark: colors.success['400'],
117
+ },
92
118
  };
119
+
120
+ Object.entries(utilityColors).forEach(([key, value]) => {
121
+ textColors[`text-utility-${key}`] = {
122
+ light: value.light,
123
+ dark: value.dark,
124
+ };
125
+ });
126
+
127
+ export default textColors;