@trackunit/ui-design-tokens 0.0.54 → 0.0.56

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/index.js CHANGED
@@ -404,6 +404,15 @@ const activityPalette = {
404
404
  MOVING: { DEFAULT: "230 144 177" },
405
405
  ACTIVE: { DEFAULT: "63 219 147" },
406
406
  };
407
+ /**
408
+ * The Utilization color palette
409
+ * Should be available in any component that could be used to display the Activity state of an asset
410
+ */
411
+ const utilizationPalette = {
412
+ UNUSED: { 300: tailwindPalette.red["300"], 400: tailwindPalette.red["400"] },
413
+ UTILIZED: { 400: tailwindPalette.blue["400"], 600: tailwindPalette.blue["600"] },
414
+ HEAVILY_UTILIZED: { 300: tailwindPalette.amber["300"], 500: tailwindPalette.amber["500"] },
415
+ };
407
416
  /**
408
417
  * The Rental status color palette
409
418
  * Should be available in any component that could be used to display the rental status of an asset
@@ -429,13 +438,15 @@ const groupedPalettes = {
429
438
  CRITICALITY: criticalityPalette,
430
439
  // Activity
431
440
  ACTIVITY: activityPalette,
441
+ // Utilization
442
+ UTILIZATION: utilizationPalette,
432
443
  // Rental
433
444
  RENTAL: rentalStatusPalette,
434
445
  };
435
446
  /**
436
447
  * The full theme color palette (flattened)
437
448
  */
438
- const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), rentalStatusPalette);
449
+ const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette);
439
450
 
440
451
  /**
441
452
  * A collection of all the tokens related to the named colors in the default theme.
@@ -465,6 +476,9 @@ const themeColors = {
465
476
  MOVING: { name: "moving", variants: trackunitPalette.MOVING, defaultVariant: "DEFAULT" },
466
477
  UNKNOWN: { name: "unknown", variants: trackunitPalette.UNKNOWN },
467
478
  AVAILABLE: { name: "available", variants: trackunitPalette.AVAILABLE },
479
+ UNUSED: { name: "unused", variants: trackunitPalette.UNUSED },
480
+ UTILIZED: { name: "utilized", variants: trackunitPalette.UTILIZED },
481
+ HEAVILY_UTILIZED: { name: "heavily_utilized", variants: trackunitPalette.HEAVILY_UTILIZED },
468
482
  IN_REPAIR: { name: "in_repair", variants: trackunitPalette.IN_REPAIR },
469
483
  ON_RENT: { name: "on_rent", variants: trackunitPalette.ON_RENT },
470
484
  OTHER_RENTAL_STATUS: { name: "other_rental_status", variants: trackunitPalette.OTHER_RENTAL_STATUS },
@@ -573,4 +587,4 @@ const tokens = {
573
587
  fontFamily: `'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif`,
574
588
  };
575
589
 
576
- export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, elevation, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, tailwindPalette, themeColors, tokens, trackunitPalette };
590
+ export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, elevation, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, tailwindPalette, themeColors, tokens, trackunitPalette, utilizationPalette };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/ui-design-tokens",
3
- "version": "0.0.54",
3
+ "version": "0.0.56",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "module": "./index.js",
@@ -138,10 +138,7 @@ export declare const criticalityPalette: {
138
138
  readonly 500: "16 185 129";
139
139
  readonly 600: "5 150 105";
140
140
  readonly 700: "4 120 87";
141
- readonly 800: "6 95 70"; /**
142
- * The Rental status color palette
143
- * Should be available in any component that could be used to display the rental status of an asset
144
- */
141
+ readonly 800: "6 95 70";
145
142
  readonly 900: "6 78 59";
146
143
  };
147
144
  readonly LOW: {
@@ -241,6 +238,30 @@ export declare const activityPalette: {
241
238
  */
242
239
  export type ActivityColorKeys = keyof typeof activityPalette;
243
240
  export type ActivityColors = `${Lowercase<ActivityColorKeys>}`;
241
+ /**
242
+ * The Utilization color palette
243
+ * Should be available in any component that could be used to display the Activity state of an asset
244
+ */
245
+ export declare const utilizationPalette: {
246
+ readonly UNUSED: {
247
+ readonly 300: "252 165 165";
248
+ readonly 400: "248 113 113";
249
+ };
250
+ readonly UTILIZED: {
251
+ readonly 400: "96 165 250";
252
+ readonly 600: "37 99 235";
253
+ };
254
+ readonly HEAVILY_UTILIZED: {
255
+ readonly 300: "252 211 77";
256
+ readonly 500: "245 158 11";
257
+ };
258
+ };
259
+ /**
260
+ * The Utilization color palette
261
+ * Should be available in any component that could be used to display the Activity state of an asset
262
+ */
263
+ export type UtilizationColorKeys = keyof typeof utilizationPalette;
264
+ export type UtilizationColors = `${Lowercase<UtilizationColorKeys>}`;
244
265
  /**
245
266
  * The Rental status color palette
246
267
  * Should be available in any component that could be used to display the rental status of an asset
@@ -401,10 +422,7 @@ export declare const groupedPalettes: {
401
422
  readonly 500: "16 185 129";
402
423
  readonly 600: "5 150 105";
403
424
  readonly 700: "4 120 87";
404
- readonly 800: "6 95 70"; /**
405
- * The Rental status color palette
406
- * Should be available in any component that could be used to display the rental status of an asset
407
- */
425
+ readonly 800: "6 95 70";
408
426
  readonly 900: "6 78 59";
409
427
  };
410
428
  readonly LOW: {
@@ -488,6 +506,20 @@ export declare const groupedPalettes: {
488
506
  readonly DEFAULT: "63 219 147";
489
507
  };
490
508
  };
509
+ readonly UTILIZATION: {
510
+ readonly UNUSED: {
511
+ readonly 300: "252 165 165";
512
+ readonly 400: "248 113 113";
513
+ };
514
+ readonly UTILIZED: {
515
+ readonly 400: "96 165 250";
516
+ readonly 600: "37 99 235";
517
+ };
518
+ readonly HEAVILY_UTILIZED: {
519
+ readonly 300: "252 211 77";
520
+ readonly 500: "245 158 11";
521
+ };
522
+ };
491
523
  readonly RENTAL: {
492
524
  readonly ON_RENT: {
493
525
  readonly 100: "223 244 254";
@@ -551,6 +583,18 @@ export declare const trackunitPalette: {
551
583
  readonly 100: "238 239 239";
552
584
  readonly 600: "151 154 154";
553
585
  };
586
+ readonly UNUSED: {
587
+ readonly 300: "252 165 165";
588
+ readonly 400: "248 113 113";
589
+ };
590
+ readonly UTILIZED: {
591
+ readonly 400: "96 165 250";
592
+ readonly 600: "37 99 235";
593
+ };
594
+ readonly HEAVILY_UTILIZED: {
595
+ readonly 300: "252 211 77";
596
+ readonly 500: "245 158 11";
597
+ };
554
598
  readonly WORKING: {
555
599
  readonly 50: "239 246 255";
556
600
  readonly 100: "219 234 254";
@@ -614,10 +658,7 @@ export declare const trackunitPalette: {
614
658
  readonly 500: "16 185 129";
615
659
  readonly 600: "5 150 105";
616
660
  readonly 700: "4 120 87";
617
- readonly 800: "6 95 70"; /**
618
- * The Rental status color palette
619
- * Should be available in any component that could be used to display the rental status of an asset
620
- */
661
+ readonly 800: "6 95 70";
621
662
  readonly 900: "6 78 59";
622
663
  };
623
664
  readonly LOW: {
@@ -1 +0,0 @@
1
- export declare const generateCSS: () => string;