@dropi/react-native-design-system 0.2.7 → 0.2.9

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.
@@ -1,5 +1,5 @@
1
- import { TextProps } from 'react-native';
2
- type BodyType = 'xs-regular' | 'xs-medium' | 's-regular' | 's-medium' | 'm-regular' | 'm-medium' | 'l-regular' | 'l-medium';
1
+ import { TextProps } from "react-native";
2
+ type BodyType = "xs-regular" | "xs-medium" | "s-regular" | "s-medium" | "m-regular" | "m-medium" | "l-regular" | "l-medium";
3
3
  type Props = TextProps & {
4
4
  type: BodyType;
5
5
  };
@@ -22,44 +22,44 @@ const Body = ({
22
22
  };
23
23
  exports.Body = Body;
24
24
  const styles = _reactNative.StyleSheet.create({
25
- 'xs-regular': {
26
- fontSize: _constants.sizes.xs,
27
- fontWeight: _constants.weights.regular,
28
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.xs, 150)
29
- },
30
- 'xs-medium': {
31
- fontSize: _constants.sizes.xs,
25
+ "l-medium": {
26
+ fontSize: _constants.sizes.m,
32
27
  fontWeight: _constants.weights.medium,
33
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.xs, 150)
28
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.l, 150)
34
29
  },
35
- 's-regular': {
36
- fontSize: _constants.sizes.s,
30
+ "l-regular": {
31
+ fontSize: _constants.sizes.m,
37
32
  fontWeight: _constants.weights.regular,
38
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.s, 150)
33
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.l, 150)
39
34
  },
40
- 's-medium': {
35
+ "m-medium": {
41
36
  fontSize: _constants.sizes.s,
42
37
  fontWeight: _constants.weights.medium,
43
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.s, 150)
38
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.m, 150)
44
39
  },
45
- 'm-regular': {
46
- fontSize: _constants.sizes.m,
40
+ "m-regular": {
41
+ fontSize: _constants.sizes.s,
47
42
  fontWeight: _constants.weights.regular,
48
43
  lineHeight: (0, _utils.getLineHeight)(_constants.sizes.m, 150)
49
44
  },
50
- 'm-medium': {
51
- fontSize: _constants.sizes.m,
45
+ "s-medium": {
46
+ fontSize: _constants.sizes.xs,
52
47
  fontWeight: _constants.weights.medium,
53
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.m, 150)
48
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.s, 150)
54
49
  },
55
- 'l-regular': {
56
- fontSize: _constants.sizes.l,
50
+ "s-regular": {
51
+ fontSize: _constants.sizes.xs,
57
52
  fontWeight: _constants.weights.regular,
58
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.l, 150)
53
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.s, 150)
59
54
  },
60
- 'l-medium': {
61
- fontSize: _constants.sizes.l,
55
+ "xs-medium": {
56
+ fontSize: _constants.sizes.xxs,
62
57
  fontWeight: _constants.weights.medium,
63
- lineHeight: (0, _utils.getLineHeight)(_constants.sizes.l, 150)
58
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.xs, 150)
59
+ },
60
+ "xs-regular": {
61
+ fontSize: _constants.sizes.xxs,
62
+ fontWeight: _constants.weights.regular,
63
+ lineHeight: (0, _utils.getLineHeight)(_constants.sizes.xs, 150)
64
64
  }
65
65
  });
@@ -4,7 +4,7 @@ export declare const colors: {
4
4
  readonly dark: "#1A1006";
5
5
  };
6
6
  readonly "Primary-100": {
7
- readonly light: "#FFECD4";
7
+ readonly light: "#FFECDA";
8
8
  readonly dark: "#26180A";
9
9
  };
10
10
  readonly "Primary-200": {
@@ -17,7 +17,7 @@ export declare const colors: {
17
17
  };
18
18
  readonly "Primary-400": {
19
19
  readonly light: "#F7B46F";
20
- readonly dark: "#82712D";
20
+ readonly dark: "#B2712D";
21
21
  };
22
22
  readonly "Primary-500": {
23
23
  readonly light: "#F49A3D";
@@ -60,7 +60,7 @@ export declare const colors: {
60
60
  readonly dark: "#00759E";
61
61
  };
62
62
  readonly "Secondary-500": {
63
- readonly light: "#008BDF";
63
+ readonly light: "#008DBF";
64
64
  readonly dark: "#2D8FB2";
65
65
  };
66
66
  readonly "Secondary-600": {
@@ -128,164 +128,164 @@ export declare const colors: {
128
128
  readonly dark: "#FFFFFF";
129
129
  };
130
130
  readonly "Success-50": {
131
- readonly light: "#E9FFFB";
132
- readonly dark: "#023524";
131
+ readonly light: "#E7F8F3";
132
+ readonly dark: "#013324";
133
133
  };
134
134
  readonly "Success-100": {
135
- readonly light: "#B7F3EA";
136
- readonly dark: "#064D39";
135
+ readonly light: "#B3EADA";
136
+ readonly dark: "#03402E";
137
137
  };
138
138
  readonly "Success-200": {
139
- readonly light: "#91E8DA";
140
- readonly dark: "#096B52";
139
+ readonly light: "#8EE0C8";
140
+ readonly dark: "#066347";
141
141
  };
142
142
  readonly "Success-300": {
143
- readonly light: "#66DDC8";
144
- readonly dark: "#0C8C6D";
143
+ readonly light: "#5BD1AF";
144
+ readonly dark: "#07825E";
145
145
  };
146
146
  readonly "Success-400": {
147
- readonly light: "#3ADFB6";
148
- readonly dark: "#0FAF8B";
147
+ readonly light: "#3BC99F";
148
+ readonly dark: "#09AD7D";
149
149
  };
150
150
  readonly "Success-500": {
151
- readonly light: "#00D6A0";
152
- readonly dark: "#2AC5A7";
151
+ readonly light: "#0ABB87";
152
+ readonly dark: "#0FBA88";
153
153
  };
154
154
  readonly "Success-600": {
155
- readonly light: "#00B083";
156
- readonly dark: "#55D2BC";
155
+ readonly light: "#09AA7B";
156
+ readonly dark: "#41C49D";
157
157
  };
158
158
  readonly "Success-700": {
159
- readonly light: "#008C68";
160
- readonly dark: "#7FE1D1";
159
+ readonly light: "#078560";
160
+ readonly dark: "#5BD1AF";
161
161
  };
162
162
  readonly "Success-800": {
163
- readonly light: "#00684E";
164
- readonly dark: "#B3F2E5";
163
+ readonly light: "#06674A";
164
+ readonly dark: "#8EE0C8";
165
165
  };
166
166
  readonly "Success-900": {
167
- readonly light: "#004535";
168
- readonly dark: "#E0FBF6";
167
+ readonly light: "#044F39";
168
+ readonly dark: "#AEE3D3";
169
169
  };
170
170
  readonly "Error-50": {
171
- readonly light: "#FFEFEF";
172
- readonly dark: "#472325";
171
+ readonly light: "#FEF0F0";
172
+ readonly dark: "#572323";
173
173
  };
174
174
  readonly "Error-100": {
175
- readonly light: "#FFCECE";
176
- readonly dark: "#662E30";
175
+ readonly light: "#FCD1D1";
176
+ readonly dark: "#632C2C";
177
177
  };
178
178
  readonly "Error-200": {
179
- readonly light: "#FFA3A3";
180
- readonly dark: "#8C3A3D";
179
+ readonly light: "#FABABB";
180
+ readonly dark: "#753334";
181
181
  };
182
182
  readonly "Error-300": {
183
- readonly light: "#FF7A7A";
184
- readonly dark: "#B34849";
183
+ readonly light: "#F89B9C";
184
+ readonly dark: "#B04D4E";
185
185
  };
186
186
  readonly "Error-400": {
187
- readonly light: "#FF5252";
188
- readonly dark: "#D25456";
187
+ readonly light: "#F68889";
188
+ readonly dark: "#DB5D5E";
189
189
  };
190
190
  readonly "Error-500": {
191
- readonly light: "#FF3333";
192
- readonly dark: "#E17070";
191
+ readonly light: "#F46A6B";
192
+ readonly dark: "#F46768";
193
193
  };
194
194
  readonly "Error-600": {
195
- readonly light: "#CC2828";
196
- readonly dark: "#E89393";
195
+ readonly light: "#DE6061";
196
+ readonly dark: "#F68485";
197
197
  };
198
198
  readonly "Error-700": {
199
- readonly light: "#991F1F";
200
- readonly dark: "#F0B7B7";
199
+ readonly light: "#AD4B4C";
200
+ readonly dark: "#F89697";
201
201
  };
202
202
  readonly "Error-800": {
203
- readonly light: "#661515";
204
- readonly dark: "#F6DCDC";
203
+ readonly light: "#863A3B";
204
+ readonly dark: "#F9B3B4";
205
205
  };
206
206
  readonly "Error-900": {
207
- readonly light: "#330B0B";
208
- readonly dark: "#FBEFEF";
207
+ readonly light: "#662D2D";
208
+ readonly dark: "#FDE2E2";
209
209
  };
210
210
  readonly "Info-50": {
211
- readonly light: "#E6F0FE";
212
- readonly dark: "#1A3B73";
211
+ readonly light: "#EEF6FE";
212
+ readonly dark: "#0A2136";
213
213
  };
214
214
  readonly "Info-100": {
215
- readonly light: "#C2DAFC";
216
- readonly dark: "#224E92";
215
+ readonly light: "#C9E3FB";
216
+ readonly dark: "#0D2942";
217
217
  };
218
218
  readonly "Info-200": {
219
- readonly light: "#9CC4FB";
220
- readonly dark: "#2C64B3";
219
+ readonly light: "#AFD6F9";
220
+ readonly dark: "#12395C";
221
221
  };
222
222
  readonly "Info-300": {
223
- readonly light: "#74AEFA";
224
- readonly dark: "#357BD6";
223
+ readonly light: "#8AC3F6";
224
+ readonly dark: "#206099";
225
225
  };
226
226
  readonly "Info-400": {
227
- readonly light: "#4B9AF8";
228
- readonly dark: "#4A92E8";
227
+ readonly light: "#73B7F4";
228
+ readonly dark: "#2288E3";
229
229
  };
230
230
  readonly "Info-500": {
231
- readonly light: "#1E85F7";
232
- readonly dark: "#5AA2F0";
231
+ readonly light: "#50A5F1";
232
+ readonly dark: "#3C9CF1";
233
233
  };
234
234
  readonly "Info-600": {
235
- readonly light: "#1867C5";
236
- readonly dark: "#7BB8F3";
235
+ readonly light: "#4996DB";
236
+ readonly dark: "#55A8F2";
237
237
  };
238
238
  readonly "Info-700": {
239
- readonly light: "#124E96";
240
- readonly dark: "#9CCBF6";
239
+ readonly light: "#3975AB";
240
+ readonly dark: "#6FB6F6";
241
241
  };
242
242
  readonly "Info-800": {
243
- readonly light: "#0D3668";
244
- readonly dark: "#C2E0FA";
243
+ readonly light: "#2C5B85";
244
+ readonly dark: "#8BC5F9";
245
245
  };
246
246
  readonly "Info-900": {
247
- readonly light: "#081C3A";
248
- readonly dark: "#E6F2FE";
247
+ readonly light: "#224565";
248
+ readonly dark: "#A8C8E5";
249
249
  };
250
250
  readonly "Warning-50": {
251
- readonly light: "#FFF8E0";
252
- readonly dark: "#7A5B00";
251
+ readonly light: "#FEF8ED";
252
+ readonly dark: "#402F12";
253
253
  };
254
254
  readonly "Warning-100": {
255
- readonly light: "#FFEFC2";
256
- readonly dark: "#927300";
255
+ readonly light: "#FBE8C8";
256
+ readonly dark: "#4D3A18";
257
257
  };
258
258
  readonly "Warning-200": {
259
- readonly light: "#FFE29C";
260
- readonly dark: "#AA8A00";
259
+ readonly light: "#F9DDAD";
260
+ readonly dark: "#805F28";
261
261
  };
262
262
  readonly "Warning-300": {
263
- readonly light: "#FFD573";
264
- readonly dark: "#C2A100";
263
+ readonly light: "#F6CD87";
264
+ readonly dark: "#AB8036";
265
265
  };
266
266
  readonly "Warning-400": {
267
- readonly light: "#FFC84C";
268
- readonly dark: "#DAB700";
267
+ readonly light: "#F4C370";
268
+ readonly dark: "#DBA445";
269
269
  };
270
270
  readonly "Warning-500": {
271
- readonly light: "#FFBA26";
272
- readonly dark: "#EAC432";
271
+ readonly light: "#F1B44C";
272
+ readonly dark: "#F1B44C";
273
273
  };
274
274
  readonly "Warning-600": {
275
- readonly light: "#D99A1F";
276
- readonly dark: "#F0D060";
275
+ readonly light: "#DBA445";
276
+ readonly dark: "#F4C370";
277
277
  };
278
278
  readonly "Warning-700": {
279
- readonly light: "#B37B19";
280
- readonly dark: "#F5DC8C";
279
+ readonly light: "#AB8036";
280
+ readonly dark: "#F6CD87";
281
281
  };
282
282
  readonly "Warning-800": {
283
- readonly light: "#8C5D12";
284
- readonly dark: "#FAE8B9";
283
+ readonly light: "#85632A";
284
+ readonly dark: "#F9DDAD";
285
285
  };
286
286
  readonly "Warning-900": {
287
- readonly light: "#663F0C";
288
- readonly dark: "#FEF5E0";
287
+ readonly light: "#654C20";
288
+ readonly dark: "#FEF8ED";
289
289
  };
290
290
  };
291
291
  export type ColorToken = keyof typeof colors;
@@ -10,7 +10,7 @@ const colors = exports.colors = {
10
10
  dark: "#1A1006"
11
11
  },
12
12
  "Primary-100": {
13
- light: "#FFECD4",
13
+ light: "#FFECDA",
14
14
  dark: "#26180A"
15
15
  },
16
16
  "Primary-200": {
@@ -23,7 +23,7 @@ const colors = exports.colors = {
23
23
  },
24
24
  "Primary-400": {
25
25
  light: "#F7B46F",
26
- dark: "#82712D"
26
+ dark: "#B2712D"
27
27
  },
28
28
  "Primary-500": {
29
29
  light: "#F49A3D",
@@ -66,7 +66,7 @@ const colors = exports.colors = {
66
66
  dark: "#00759E"
67
67
  },
68
68
  "Secondary-500": {
69
- light: "#008BDF",
69
+ light: "#008DBF",
70
70
  dark: "#2D8FB2"
71
71
  },
72
72
  "Secondary-600": {
@@ -125,172 +125,172 @@ const colors = exports.colors = {
125
125
  light: "#0E111A",
126
126
  dark: "#E6EAF2"
127
127
  },
128
- "White": {
128
+ White: {
129
129
  light: "#FFFFFF",
130
130
  dark: "#0E111A"
131
131
  },
132
- "Black": {
132
+ Black: {
133
133
  light: "#000000",
134
134
  dark: "#FFFFFF"
135
135
  },
136
136
  "Success-50": {
137
- light: "#E9FFFB",
138
- dark: "#023524"
137
+ light: "#E7F8F3",
138
+ dark: "#013324"
139
139
  },
140
140
  "Success-100": {
141
- light: "#B7F3EA",
142
- dark: "#064D39"
141
+ light: "#B3EADA",
142
+ dark: "#03402E"
143
143
  },
144
144
  "Success-200": {
145
- light: "#91E8DA",
146
- dark: "#096B52"
145
+ light: "#8EE0C8",
146
+ dark: "#066347"
147
147
  },
148
148
  "Success-300": {
149
- light: "#66DDC8",
150
- dark: "#0C8C6D"
149
+ light: "#5BD1AF",
150
+ dark: "#07825E"
151
151
  },
152
152
  "Success-400": {
153
- light: "#3ADFB6",
154
- dark: "#0FAF8B"
153
+ light: "#3BC99F",
154
+ dark: "#09AD7D"
155
155
  },
156
156
  "Success-500": {
157
- light: "#00D6A0",
158
- dark: "#2AC5A7"
157
+ light: "#0ABB87",
158
+ dark: "#0FBA88"
159
159
  },
160
160
  "Success-600": {
161
- light: "#00B083",
162
- dark: "#55D2BC"
161
+ light: "#09AA7B",
162
+ dark: "#41C49D"
163
163
  },
164
164
  "Success-700": {
165
- light: "#008C68",
166
- dark: "#7FE1D1"
165
+ light: "#078560",
166
+ dark: "#5BD1AF"
167
167
  },
168
168
  "Success-800": {
169
- light: "#00684E",
170
- dark: "#B3F2E5"
169
+ light: "#06674A",
170
+ dark: "#8EE0C8"
171
171
  },
172
172
  "Success-900": {
173
- light: "#004535",
174
- dark: "#E0FBF6"
173
+ light: "#044F39",
174
+ dark: "#AEE3D3"
175
175
  },
176
176
  "Error-50": {
177
- light: "#FFEFEF",
178
- dark: "#472325"
177
+ light: "#FEF0F0",
178
+ dark: "#572323"
179
179
  },
180
180
  "Error-100": {
181
- light: "#FFCECE",
182
- dark: "#662E30"
181
+ light: "#FCD1D1",
182
+ dark: "#632C2C"
183
183
  },
184
184
  "Error-200": {
185
- light: "#FFA3A3",
186
- dark: "#8C3A3D"
185
+ light: "#FABABB",
186
+ dark: "#753334"
187
187
  },
188
188
  "Error-300": {
189
- light: "#FF7A7A",
190
- dark: "#B34849"
189
+ light: "#F89B9C",
190
+ dark: "#B04D4E"
191
191
  },
192
192
  "Error-400": {
193
- light: "#FF5252",
194
- dark: "#D25456"
193
+ light: "#F68889",
194
+ dark: "#DB5D5E"
195
195
  },
196
196
  "Error-500": {
197
- light: "#FF3333",
198
- dark: "#E17070"
197
+ light: "#F46A6B",
198
+ dark: "#F46768"
199
199
  },
200
200
  "Error-600": {
201
- light: "#CC2828",
202
- dark: "#E89393"
201
+ light: "#DE6061",
202
+ dark: "#F68485"
203
203
  },
204
204
  "Error-700": {
205
- light: "#991F1F",
206
- dark: "#F0B7B7"
205
+ light: "#AD4B4C",
206
+ dark: "#F89697"
207
207
  },
208
208
  "Error-800": {
209
- light: "#661515",
210
- dark: "#F6DCDC"
209
+ light: "#863A3B",
210
+ dark: "#F9B3B4"
211
211
  },
212
212
  "Error-900": {
213
- light: "#330B0B",
214
- dark: "#FBEFEF"
213
+ light: "#662D2D",
214
+ dark: "#FDE2E2"
215
215
  },
216
216
  "Info-50": {
217
- light: "#E6F0FE",
218
- dark: "#1A3B73"
217
+ light: "#EEF6FE",
218
+ dark: "#0A2136"
219
219
  },
220
220
  "Info-100": {
221
- light: "#C2DAFC",
222
- dark: "#224E92"
221
+ light: "#C9E3FB",
222
+ dark: "#0D2942"
223
223
  },
224
224
  "Info-200": {
225
- light: "#9CC4FB",
226
- dark: "#2C64B3"
225
+ light: "#AFD6F9",
226
+ dark: "#12395C"
227
227
  },
228
228
  "Info-300": {
229
- light: "#74AEFA",
230
- dark: "#357BD6"
229
+ light: "#8AC3F6",
230
+ dark: "#206099"
231
231
  },
232
232
  "Info-400": {
233
- light: "#4B9AF8",
234
- dark: "#4A92E8"
233
+ light: "#73B7F4",
234
+ dark: "#2288E3"
235
235
  },
236
236
  "Info-500": {
237
- light: "#1E85F7",
238
- dark: "#5AA2F0"
237
+ light: "#50A5F1",
238
+ dark: "#3C9CF1"
239
239
  },
240
240
  "Info-600": {
241
- light: "#1867C5",
242
- dark: "#7BB8F3"
241
+ light: "#4996DB",
242
+ dark: "#55A8F2"
243
243
  },
244
244
  "Info-700": {
245
- light: "#124E96",
246
- dark: "#9CCBF6"
245
+ light: "#3975AB",
246
+ dark: "#6FB6F6"
247
247
  },
248
248
  "Info-800": {
249
- light: "#0D3668",
250
- dark: "#C2E0FA"
249
+ light: "#2C5B85",
250
+ dark: "#8BC5F9"
251
251
  },
252
252
  "Info-900": {
253
- light: "#081C3A",
254
- dark: "#E6F2FE"
253
+ light: "#224565",
254
+ dark: "#A8C8E5"
255
255
  },
256
256
  "Warning-50": {
257
- light: "#FFF8E0",
258
- dark: "#7A5B00"
257
+ light: "#FEF8ED",
258
+ dark: "#402F12"
259
259
  },
260
260
  "Warning-100": {
261
- light: "#FFEFC2",
262
- dark: "#927300"
261
+ light: "#FBE8C8",
262
+ dark: "#4D3A18"
263
263
  },
264
264
  "Warning-200": {
265
- light: "#FFE29C",
266
- dark: "#AA8A00"
265
+ light: "#F9DDAD",
266
+ dark: "#805F28"
267
267
  },
268
268
  "Warning-300": {
269
- light: "#FFD573",
270
- dark: "#C2A100"
269
+ light: "#F6CD87",
270
+ dark: "#AB8036"
271
271
  },
272
272
  "Warning-400": {
273
- light: "#FFC84C",
274
- dark: "#DAB700"
273
+ light: "#F4C370",
274
+ dark: "#DBA445"
275
275
  },
276
276
  "Warning-500": {
277
- light: "#FFBA26",
278
- dark: "#EAC432"
277
+ light: "#F1B44C",
278
+ dark: "#F1B44C"
279
279
  },
280
280
  "Warning-600": {
281
- light: "#D99A1F",
282
- dark: "#F0D060"
281
+ light: "#DBA445",
282
+ dark: "#F4C370"
283
283
  },
284
284
  "Warning-700": {
285
- light: "#B37B19",
286
- dark: "#F5DC8C"
285
+ light: "#AB8036",
286
+ dark: "#F6CD87"
287
287
  },
288
288
  "Warning-800": {
289
- light: "#8C5D12",
290
- dark: "#FAE8B9"
289
+ light: "#85632A",
290
+ dark: "#F9DDAD"
291
291
  },
292
292
  "Warning-900": {
293
- light: "#663F0C",
294
- dark: "#FEF5E0"
293
+ light: "#654C20",
294
+ dark: "#FEF8ED"
295
295
  }
296
296
  };
@@ -56,7 +56,7 @@ const Alert = ({
56
56
  color: borderColor
57
57
  })
58
58
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_atoms.Body, {
59
- type: "s-regular",
59
+ type: "m-regular",
60
60
  style: styles.message,
61
61
  children: message
62
62
  }), buttonLabel && onButtonPress && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dropi/react-native-design-system",
3
- "version": "0.2.7",
3
+ "version": "0.2.9",
4
4
  "description": "A React Native package built from scratch",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",