@cobre-npm/ds-v3 0.4.0 → 0.5.0

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,32 +1,31 @@
1
1
  /**
2
- * COLORS
3
- */
2
+ * COLORS
3
+ */
4
4
 
5
5
  $cobre-gray-95: #212121;
6
- $cobre-gray-90: #414141;
7
- $cobre-gray-80: #575655;
6
+ $cobre-gray-90: #42413F;
7
+ $cobre-gray-80: #575452;
8
8
  $cobre-gray-70: #63615F;
9
9
  $cobre-gray-60: #7D7D7B;
10
10
  $cobre-gray-50: #939290;
11
- $cobre-gray-40: #A4A3A1;
12
- $cobre-gray-30: #C1C0BD;
11
+ $cobre-gray-40: #9E9B98;
12
+ $cobre-gray-30: #BEBBB7;
13
13
  $cobre-gray-20: #D9D8D4;
14
14
  $cobre-gray-10: #F1F0EC;
15
15
  $cobre-gray-7: #F4F4F2;
16
- $cobre-gray-5: #FAF9F5;
17
-
18
- $cobre-white: #FFFFFF;
16
+ $cobre-gray-5: #FBFAFA;
17
+ $cobre-white: #fff;
19
18
 
20
19
  $cobre-blue-95: #11285b;
21
20
  $cobre-blue-90: #123580;
22
21
  $cobre-blue-80: #1442a5;
23
22
  $cobre-blue-70: #1e54ce;
24
23
  $cobre-blue-60: #2861df;
25
- $cobre-blue-50: #00587E;
24
+ $cobre-blue-50: #376feb;
26
25
  $cobre-blue-40: #5a8bf6;
27
- $cobre-blue-30: #72BBDB;
26
+ $cobre-blue-30: #7ca5fb;
28
27
  $cobre-blue-20: #b1c9fd;
29
- $cobre-blue-10: #CBE1EB;
28
+ $cobre-blue-10: #d6e2fd;
30
29
  $cobre-blue-5: #f5f6fe;
31
30
 
32
31
  $cobre-yellow-95: #342a18;
@@ -35,22 +34,22 @@ $cobre-yellow-80: #5b4622;
35
34
  $cobre-yellow-60: #876426;
36
35
  $cobre-yellow-70: #765925;
37
36
  $cobre-yellow-40: #ba8522;
38
- $cobre-yellow-50: #9C6400;
39
- $cobre-yellow-30: #E2CA64;
37
+ $cobre-yellow-50: #986f26;
38
+ $cobre-yellow-30: #da9b19;
40
39
  $cobre-yellow-20: #fdbe3f;
41
- $cobre-yellow-10: #FFF6E3;
40
+ $cobre-yellow-10: #fedd9a;
42
41
  $cobre-yellow-5: #fff6e3;
43
42
 
44
43
  $cobre-red-95: #541407;
45
44
  $cobre-red-80: #921803;
46
45
  $cobre-red-90: #721705;
47
- $cobre-red-70: #7F230D;
48
- $cobre-red-60: #9E2407;
49
- $cobre-red-50: #BD2500;
50
- $cobre-red-40: #CC573B;
46
+ $cobre-red-70: #b81d01;
47
+ $cobre-red-60: #cd2506;
48
+ $cobre-red-50: #df3313;
49
+ $cobre-red-40: #fb5634;
51
50
  $cobre-red-20: #ffb8a0;
52
- $cobre-red-30: #E29583;
53
- $cobre-red-10: #FCDFD7;
51
+ $cobre-red-30: #ff8362;
52
+ $cobre-red-10: #ffd9cc;
54
53
  $cobre-red-5: #fff5f1;
55
54
 
56
55
  $cobre-green-95: #0d321a;
@@ -58,29 +57,28 @@ $cobre-green-90: #084322;
58
57
  $cobre-green-70: #006c34;
59
58
  $cobre-green-80: #005529;
60
59
  $cobre-green-60: #007a3d;
61
- $cobre-green-50: #027002;
62
- $cobre-green-30: #8DC881;
60
+ $cobre-green-50: #058847;
61
+ $cobre-green-30: #67b77d;
63
62
  $cobre-green-40: #3ca160;
64
63
  $cobre-green-20: #a3d4ac;
65
- $cobre-green-10: #E3F2E0;
64
+ $cobre-green-10: #cfe8d1;
66
65
  $cobre-green-5: #f3f8f1;
66
+
67
67
  $cobre-teal-95: #052525;
68
68
  $cobre-teal-90: #0B3737;
69
- $cobre-teal-80: #0D3533;
70
- $cobre-teal-70: #174141;
71
- $cobre-teal-60: #1E5756;
72
- $cobre-teal-50: #266D6C;
73
- $cobre-teal-40: #518A89;
74
- $cobre-teal-30: #7DA7A7;
75
- $cobre-teal-20: #A8C5C4;
69
+ $cobre-teal-80: #144848;
70
+ $cobre-teal-70: #1F5D5D;
71
+ $cobre-teal-60: #266B6B;
72
+ $cobre-teal-50: #367776;
73
+ $cobre-teal-40: #588E8D;
74
+ $cobre-teal-30: #77A3A3;
75
+ $cobre-teal-20: #A3C1C1;
76
76
  $cobre-teal-10: #C4D7D7;
77
77
  $cobre-teal-5: #DFEAE9;
78
78
 
79
79
  $cobre-violet-50: #9256e1;
80
- $cobre-liliac-50: #4e69f3;
81
80
 
82
-
83
- $cobre-opacity-40: #21212166;
81
+ $cobre-liliac-50: #4e69f3;
84
82
 
85
83
  $cobre-primary-95: $cobre-gray-95;
86
84
  $cobre-primary-90: $cobre-gray-90;
@@ -112,12 +110,7 @@ $cobre-info-10: $cobre-blue-10;
112
110
 
113
111
  $cobre-warning-50: $cobre-yellow-50;
114
112
 
115
-
116
- /***
117
- PRIMITIVES
118
- ***/
119
-
120
- $cobre-primitives: (
113
+ $cobre-colors: (
121
114
  gray-95: $cobre-gray-95,
122
115
  gray-90: $cobre-gray-90,
123
116
  gray-80: $cobre-gray-80,
@@ -155,6 +148,7 @@ $cobre-primitives: (
155
148
  yellow-20: $cobre-yellow-20,
156
149
  yellow-10: $cobre-yellow-10,
157
150
  yellow-5: $cobre-yellow-5,
151
+
158
152
  red-95: $cobre-red-95,
159
153
  red-80: $cobre-red-80,
160
154
  red-90: $cobre-red-90,
@@ -178,10 +172,11 @@ $cobre-primitives: (
178
172
  green-20: $cobre-green-20,
179
173
  green-10: $cobre-green-10,
180
174
  green-5: $cobre-green-5,
175
+
181
176
  teal-95: $cobre-teal-95,
182
- teal-90: $cobre-teal-90,
183
177
  teal-80: $cobre-teal-80,
184
178
  teal-70: $cobre-teal-70,
179
+ teal-90: $cobre-teal-90,
185
180
  teal-60: $cobre-teal-60,
186
181
  teal-50: $cobre-teal-50,
187
182
  teal-40: $cobre-teal-40,
@@ -218,10 +213,12 @@ $cobre-primitives: (
218
213
  secondary-20: $cobre-secondary-20,
219
214
  secondary-10: $cobre-secondary-10,
220
215
  secondary-5: $cobre-secondary-5,
216
+
221
217
  info-50: $cobre-info-50,
222
218
  info-10: $cobre-info-10,
223
219
 
224
220
  warning-50: $cobre-warning-50,
221
+
225
222
  // semantics
226
223
  subtle: $cobre-primary-80,
227
224
  subtlest: $cobre-primary-60,
@@ -237,8 +234,9 @@ $cobre-primitives: (
237
234
  brand-hovered: $cobre-secondary-70
238
235
  );
239
236
 
237
+
240
238
  :root {
241
- @each $name, $hex in $cobre-primitives {
239
+ @each $name, $hex in $cobre-colors {
242
240
  --cobre-#{'' + $name} : #{$hex};
243
241
  }
244
242
 
@@ -248,16 +246,15 @@ $cobre-primitives: (
248
246
  }
249
247
 
250
248
 
251
-
252
249
  /**
253
- * GLOBAL
254
- */
250
+ * GLOBAL
251
+ */
255
252
 
256
253
  :root {
257
254
  --cobre-font-family: 'Inter', sans-serif;
258
255
  --cobre-titles-font-family: 'Inter', sans-serif;
259
- --cobre-secondary-font-family: "Tiro Gurmukhi", serif;
260
- --cobre-color: var(--cobre-text-primary);
256
+ --cobre-secondary-font-family: 'Inter', sans-serif;
257
+ --cobre-color: var(--cobre-primary-95);
261
258
  --cobre-row-hover-bg: var(--cobre-secondary-5);
262
259
  --cobre-headline-fw: 600;
263
260
  --cobre-title-fw: 600;
@@ -292,21 +289,21 @@ $cobre-primitives: (
292
289
  // MARGIN - PADDING UNITS
293
290
  $limit: 101;
294
291
  $unit: 1px;
295
- /**
296
- * FONTS
297
- */
298
292
 
293
+ /**
294
+ * FONTS
295
+ */
299
296
 
300
297
  // HEADLINE
301
298
  $cobre-headline-movil-fs: 25.6px;
302
299
  $cobre-headline-movil-lh: 32px;
303
300
  $cobre-headline-movil-ls: -0.3px;
304
301
 
305
- $cobre-headline-tablet-fs: 32px;
306
- $cobre-headline-tablet-lh: 40px;
302
+ $cobre-headline-tablet-fs: 28.8px;
303
+ $cobre-headline-tablet-lh: 36px;
307
304
  $cobre-headline-tablet-ls: -0.336px;
308
305
 
309
- $cobre-headline-desktop-fs: 32px;
306
+ $cobre-headline-desktop-fs: 32.44px;
310
307
  $cobre-headline-desktop-lh: 40px;
311
308
  $cobre-headline-desktop-ls: -0.336px;
312
309
 
@@ -317,20 +314,22 @@ $cobre-headline-numbers-movil-ls: -0.3px;
317
314
  $cobre-headline-numbers-tablet-fs: 28.8px;
318
315
  $cobre-headline-numbers-tablet-lh: 36px;
319
316
  $cobre-headline-numbers-tablet-ls: -0.3px;
320
- $cobre-headline-numbers-desktop-fs: 32px;
317
+
318
+ $cobre-headline-numbers-desktop-fs: 32.4px;
321
319
  $cobre-headline-numbers-desktop-lh: 40px;
322
- $cobre-headline-numbers-desktop-ls: -0.336px;
320
+ $cobre-headline-numbers-desktop-ls: -0.3px;
321
+
323
322
 
324
323
  // TITLE
325
324
  $cobre-title-movil-fs: 20.3px;
326
325
  $cobre-title-movil-lh: 24.3px;
327
326
  $cobre-title-movil-ls: -0.352px;
328
327
 
329
- $cobre-title-tablet-fs: 26px;
328
+ $cobre-title-tablet-fs: 22.78px;
330
329
  $cobre-title-tablet-lh: 32px;
331
330
  $cobre-title-tablet-ls: -0.3px;
332
331
 
333
- $cobre-title-desktop-fs: 26px;
332
+ $cobre-title-desktop-fs: 22.8px;
334
333
  $cobre-title-desktop-lh: 32px;
335
334
  $cobre-title-desktop-ls: -0.3px;
336
335
 
@@ -341,16 +340,17 @@ $cobre-title-numbers-movil-ls: -0.3px;
341
340
  $cobre-title-numbers-tablet-fs: 22.78px;
342
341
  $cobre-title-numbers-tablet-lh: 32px;
343
342
  $cobre-title-numbers-tablet-ls: -0.3px;
344
- $cobre-title-numbers-desktop-fs: 26px;
343
+
344
+ $cobre-title-numbers-desktop-fs: 25.63px;
345
345
  $cobre-title-numbers-desktop-lh: 32px;
346
- $cobre-title-numbers-desktop-ls: -0.304;
346
+ $cobre-title-numbers-desktop-ls: -0.3px;
347
347
 
348
348
  // SUBTITLE
349
349
  $cobre-subtitle-movil-fs: 18px;
350
350
  $cobre-subtitle-movil-lh: 21.8px;
351
351
  $cobre-subtitle-movil-ls: -0.352px;
352
352
 
353
- $cobre-subtitle-tablet-fs: 20px;
353
+ $cobre-subtitle-tablet-fs: 20.25px;
354
354
  $cobre-subtitle-tablet-lh: 24.3px;
355
355
  $cobre-subtitle-tablet-ls: -0.352px;
356
356
 
@@ -361,26 +361,25 @@ $cobre-subtitle-numbers-movil-ls: -0.3px;
361
361
  $cobre-subtitle-numbers-tablet-fs: 20.25px;
362
362
  $cobre-subtitle-numbers-tablet-lh: 24.5px;
363
363
  $cobre-subtitle-numbers-tablet-ls: -0.3px;
364
- $cobre-subtitle-numbers-desktop-fs: 20px;
365
- $cobre-subtitle-numbers-desktop-lh: 24.3px;
366
- $cobre-subtitle-numbers-desktop-ls: -0.352px;
367
364
 
368
- $cobre-subtitle-fw: 500;
365
+ $cobre-subtitle-numbers-desktop-fs: 20.25px;
366
+ $cobre-subtitle-numbers-desktop-lh: 24.3px;
367
+ $cobre-subtitle-numbers-desktop-ls: -0.3px;
369
368
 
370
369
  // LABEL
371
370
  $cobre-label-lower-ls: 0.1px;
372
371
  $cobre-label-upper-ls: 0.5px;
373
372
 
374
- $cobre-label-small-fs: 12px;
373
+ $cobre-label-small-fs: 12.64px;
375
374
  $cobre-label-small-lh: 16px;
376
375
 
377
- $cobre-label-medium-fs: 14px;
376
+ $cobre-label-medium-fs: 14.22px;
378
377
  $cobre-label-medium-lh: 17.1px;
379
378
 
380
379
  $cobre-label-large-fs: 16px;
381
380
  $cobre-label-large-lh: 19.2px;
382
381
 
383
- $cobre-label-numbers-small-fs: 12px;
382
+ $cobre-label-numbers-small-fs: 12.64px;
384
383
  $cobre-label-numbers-small-lh: 16px;
385
384
  $cobre-label-numbers-small-ls: 0.5px;
386
385
 
@@ -388,18 +387,20 @@ $cobre-label-numbers-large-fs: 16px;
388
387
  $cobre-label-numbers-large-lh: 19.2px;
389
388
  $cobre-label-numbers-large-ls: 0.1px;
390
389
 
390
+
391
391
  // BODY
392
- $cobre-body-medium-fs: 14px;
392
+ $cobre-body-medium-fs: 14.22px;
393
393
  $cobre-body-medium-lh: 21.3px;
394
- $cobre-body-medium-ls: 0.3px;
394
+ $cobre-body-medium-ls: 0px;
395
395
 
396
396
  $cobre-body-large-fs: 16px;
397
397
  $cobre-body-large-lh: 24px;
398
- $cobre-body-large-ls: 0.3px;
398
+ $cobre-body-large-ls: 0px;
399
399
 
400
- $cobre-body-numbers-small-fs: 14px;
400
+ $cobre-body-numbers-small-fs: 14.22px;
401
401
  $cobre-body-numbers-small-lh: 21.3px;
402
402
  $cobre-body-numbers-small-ls: 0px;
403
+
403
404
  // ICONS
404
405
  $cobre-icon-large-fs: 24px;
405
406
  $cobre-icon-medium-fs: 20px;
@@ -1,132 +0,0 @@
1
- /***
2
- SEMANTICS
3
- ***/
4
-
5
- $cobre-semantics: (
6
- // Border
7
- border-strong: $cobre-primary-95,
8
- border-light: $cobre-primary-80,
9
- border-disabled: $cobre-primary-50,
10
- border-line: $cobre-primary-20,
11
-
12
- // Opacity
13
- opacity-40: $cobre-opacity-40,
14
-
15
- // Icon
16
- icon: $cobre-primary-95,
17
- icon-inverse: $cobre-primary-10,
18
- icon-disabled: $cobre-primary-50,
19
- icon-inverse-disabled: $cobre-primary-50,
20
- icon-brand: $cobre-secondary-50,
21
-
22
- // Error
23
- error-light: $cobre-red-10,
24
- error-medium: $cobre-red-30,
25
- error-dark: $cobre-red-50,
26
-
27
- // Success
28
- success-light: $cobre-green-10,
29
- success-medium: $cobre-green-30,
30
- success-dark: $cobre-green-50,
31
-
32
- // Warning
33
- warning-light: $cobre-yellow-10,
34
- warning-medium: $cobre-yellow-30,
35
- warning-dark: $cobre-yellow-50,
36
-
37
- // Information
38
- info-light: $cobre-blue-10,
39
- info-medium: $cobre-blue-30,
40
- info-dark: $cobre-blue-50,
41
-
42
- // Neutral
43
- neutral-light: $cobre-primary-10,
44
- neutral-medium: $cobre-primary-40,
45
- neutral-dark: $cobre-primary-90
46
- );
47
-
48
- @each $name, $hex in $cobre-semantics {
49
- .co-bg-#{'' + $name} {
50
- background: var(--cobre-#{'' + $name}) !important;
51
- }
52
- }
53
-
54
- @each $name, $hex in $cobre-semantics {
55
- .co-text-#{'' + $name} {
56
- color: var(--cobre-#{'' + $name}) !important;
57
- }
58
- }
59
-
60
- :root {
61
- @each $name, $hex in $cobre-semantics {
62
- --cobre-#{'' + $name} : #{$hex} !important;
63
- }
64
- }
65
-
66
-
67
-
68
- /***
69
- SEMANTICS TEXT
70
- ***/
71
-
72
- $cobre-semantics-text: (
73
- primary: $cobre-primary-95,
74
- disabled: $cobre-primary-50,
75
- inverse: $cobre-primary-10,
76
- inverse-disabled: $cobre-primary-50,
77
- secondary: $cobre-primary-80,
78
- brand: $cobre-secondary-50,
79
- primary-light: $cobre-primary-90
80
- );
81
-
82
- @each $name, $hex in $cobre-semantics-text {
83
- .co-text-#{'' + $name} {
84
- color: var(--cobre-#{'' + $name}) !important;
85
- }
86
- }
87
-
88
- :root {
89
- @each $name, $hex in $cobre-semantics-text {
90
- --cobre-#{'' + $name} : #{$hex} !important;
91
- }
92
- }
93
-
94
-
95
- /***
96
- SEMANTICS BG
97
- ***/
98
-
99
- $cobre-semantics-bg: (
100
- bg-primary: $cobre-white,
101
- bg-secondary: $cobre-primary-10,
102
- bg-inverse: $cobre-primary-95,
103
- bg-fill: $cobre-primary-95,
104
- bg-fill-hover: $cobre-primary-90,
105
- bg-fill-pressed: $cobre-primary-80,
106
- bg-fill-selected: $cobre-primary-95,
107
- bg-fill-disabled: $cobre-primary-40,
108
- bg-fill-secondary: $cobre-white,
109
- bg-fill-secondary-hover: $cobre-primary-20,
110
- bg-fill-secondary-pressed: $cobre-primary-40,
111
- bg-fill-secondary-selected: $cobre-primary-30
112
- );
113
-
114
- @each $name, $hex in $cobre-semantics-bg {
115
- .co-#{'' + $name} {
116
- background: var(--cobre-#{'' + $name}) !important;
117
- }
118
- }
119
-
120
- :root {
121
- @each $name, $hex in $cobre-semantics-bg {
122
- --cobre-#{'' + $name} : #{$hex} !important;
123
- }
124
- }
125
-
126
- /**
127
- * DURATION
128
- */
129
-
130
- :root {
131
- --cobre-duration-alert: 0.0625rem !important;
132
- }
@@ -1,4 +1,4 @@
1
- import type { MenuItem } from "../interfaces/menu.interface";
1
+ import type { MenuItem } from '../interfaces/menu.interface';
2
2
  interface Props {
3
3
  items: MenuItem[] | undefined;
4
4
  itemActive: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"