@trackunit/ui-design-tokens 0.0.87 → 0.0.89
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.cjs.js +22 -1
- package/index.esm.js +22 -2
- package/package.json +1 -1
- package/src/tokens/colors/trackunitPalette.d.ts +180 -0
package/index.cjs.js
CHANGED
|
@@ -454,6 +454,19 @@ const rentalStatusPalette = {
|
|
|
454
454
|
IN_REPAIR: { 100: "255 233 233", 600: "255 90 90" },
|
|
455
455
|
OTHER_RENTAL_STATUS: { 100: "238 239 239", 600: "151 154 154" },
|
|
456
456
|
};
|
|
457
|
+
/**
|
|
458
|
+
* The Rental status color palette
|
|
459
|
+
* Should be available in any component that could be used to display the rental status of an asset
|
|
460
|
+
*/
|
|
461
|
+
const customerTypePalette = {
|
|
462
|
+
CONTRACTOR: tailwindPalette.purple,
|
|
463
|
+
DEALER: tailwindPalette.gray,
|
|
464
|
+
RENTAL: tailwindPalette.orange,
|
|
465
|
+
OEM: tailwindPalette.blue,
|
|
466
|
+
SERVICE: tailwindPalette.emerald,
|
|
467
|
+
DISTRIBUTOR: tailwindPalette.cyan,
|
|
468
|
+
OTHER_CUSTOMER_TYPE: tailwindPalette.red,
|
|
469
|
+
};
|
|
457
470
|
/**
|
|
458
471
|
* Colors of the different site types.
|
|
459
472
|
*
|
|
@@ -492,7 +505,7 @@ const groupedPalettes = {
|
|
|
492
505
|
/**
|
|
493
506
|
* The full theme color palette (flattened)
|
|
494
507
|
*/
|
|
495
|
-
const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), sitesPalette);
|
|
508
|
+
const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), customerTypePalette), sitesPalette);
|
|
496
509
|
|
|
497
510
|
/**
|
|
498
511
|
* A collection of all the tokens related to the named colors in the default theme.
|
|
@@ -533,6 +546,13 @@ const themeColors = {
|
|
|
533
546
|
RETURNED: { name: "returned", variants: trackunitPalette.RETURNED },
|
|
534
547
|
TRANSFER: { name: "transfer", variants: trackunitPalette.TRANSFER },
|
|
535
548
|
SITE: { name: "site", variants: trackunitPalette.SITE },
|
|
549
|
+
CONTRACTOR: { name: "contractor", variants: trackunitPalette.CONTRACTOR },
|
|
550
|
+
DEALER: { name: "dealer", variants: trackunitPalette.DEALER },
|
|
551
|
+
DISTRIBUTOR: { name: "distributor", variants: trackunitPalette.DISTRIBUTOR },
|
|
552
|
+
OEM: { name: "oem", variants: trackunitPalette.OEM },
|
|
553
|
+
RENTAL: { name: "rental", variants: trackunitPalette.RENTAL },
|
|
554
|
+
SERVICE: { name: "service", variants: trackunitPalette.SERVICE },
|
|
555
|
+
OTHER_CUSTOMER_TYPE: { name: "other_customer_type", variants: trackunitPalette.OTHER_CUSTOMER_TYPE },
|
|
536
556
|
};
|
|
537
557
|
|
|
538
558
|
const outputOptions = ["HEX", "CSS"];
|
|
@@ -759,6 +779,7 @@ exports.DEFAULT_CHART_COLORS = DEFAULT_CHART_COLORS;
|
|
|
759
779
|
exports.activityPalette = activityPalette;
|
|
760
780
|
exports.color = color;
|
|
761
781
|
exports.criticalityPalette = criticalityPalette;
|
|
782
|
+
exports.customerTypePalette = customerTypePalette;
|
|
762
783
|
exports.elevation = elevation;
|
|
763
784
|
exports.fontFamily = fontFamily;
|
|
764
785
|
exports.fontSize = fontSize;
|
package/index.esm.js
CHANGED
|
@@ -450,6 +450,19 @@ const rentalStatusPalette = {
|
|
|
450
450
|
IN_REPAIR: { 100: "255 233 233", 600: "255 90 90" },
|
|
451
451
|
OTHER_RENTAL_STATUS: { 100: "238 239 239", 600: "151 154 154" },
|
|
452
452
|
};
|
|
453
|
+
/**
|
|
454
|
+
* The Rental status color palette
|
|
455
|
+
* Should be available in any component that could be used to display the rental status of an asset
|
|
456
|
+
*/
|
|
457
|
+
const customerTypePalette = {
|
|
458
|
+
CONTRACTOR: tailwindPalette.purple,
|
|
459
|
+
DEALER: tailwindPalette.gray,
|
|
460
|
+
RENTAL: tailwindPalette.orange,
|
|
461
|
+
OEM: tailwindPalette.blue,
|
|
462
|
+
SERVICE: tailwindPalette.emerald,
|
|
463
|
+
DISTRIBUTOR: tailwindPalette.cyan,
|
|
464
|
+
OTHER_CUSTOMER_TYPE: tailwindPalette.red,
|
|
465
|
+
};
|
|
453
466
|
/**
|
|
454
467
|
* Colors of the different site types.
|
|
455
468
|
*
|
|
@@ -488,7 +501,7 @@ const groupedPalettes = {
|
|
|
488
501
|
/**
|
|
489
502
|
* The full theme color palette (flattened)
|
|
490
503
|
*/
|
|
491
|
-
const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), sitesPalette);
|
|
504
|
+
const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), customerTypePalette), sitesPalette);
|
|
492
505
|
|
|
493
506
|
/**
|
|
494
507
|
* A collection of all the tokens related to the named colors in the default theme.
|
|
@@ -529,6 +542,13 @@ const themeColors = {
|
|
|
529
542
|
RETURNED: { name: "returned", variants: trackunitPalette.RETURNED },
|
|
530
543
|
TRANSFER: { name: "transfer", variants: trackunitPalette.TRANSFER },
|
|
531
544
|
SITE: { name: "site", variants: trackunitPalette.SITE },
|
|
545
|
+
CONTRACTOR: { name: "contractor", variants: trackunitPalette.CONTRACTOR },
|
|
546
|
+
DEALER: { name: "dealer", variants: trackunitPalette.DEALER },
|
|
547
|
+
DISTRIBUTOR: { name: "distributor", variants: trackunitPalette.DISTRIBUTOR },
|
|
548
|
+
OEM: { name: "oem", variants: trackunitPalette.OEM },
|
|
549
|
+
RENTAL: { name: "rental", variants: trackunitPalette.RENTAL },
|
|
550
|
+
SERVICE: { name: "service", variants: trackunitPalette.SERVICE },
|
|
551
|
+
OTHER_CUSTOMER_TYPE: { name: "other_customer_type", variants: trackunitPalette.OTHER_CUSTOMER_TYPE },
|
|
532
552
|
};
|
|
533
553
|
|
|
534
554
|
const outputOptions = ["HEX", "CSS"];
|
|
@@ -751,4 +771,4 @@ const zIndex = {
|
|
|
751
771
|
toast: themeZIndex.toast,
|
|
752
772
|
};
|
|
753
773
|
|
|
754
|
-
export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeSpacing, themeZIndex, trackunitPalette, utilizationPalette, zIndex };
|
|
774
|
+
export { DEFAULT_CHART_COLORS, activityPalette, color, criticalityPalette, customerTypePalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, getReorderedChartColors, groupedPalettes, intentPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeSpacing, themeZIndex, trackunitPalette, utilizationPalette, zIndex };
|
package/package.json
CHANGED
|
@@ -306,6 +306,102 @@ export declare const rentalStatusPalette: {
|
|
|
306
306
|
*/
|
|
307
307
|
export type RentalStatusColorKeys = keyof typeof rentalStatusPalette;
|
|
308
308
|
export type RentalStatusColors = `${Lowercase<RentalStatusColorKeys>}`;
|
|
309
|
+
/**
|
|
310
|
+
* The Rental status color palette
|
|
311
|
+
* Should be available in any component that could be used to display the rental status of an asset
|
|
312
|
+
*/
|
|
313
|
+
export declare const customerTypePalette: {
|
|
314
|
+
readonly CONTRACTOR: {
|
|
315
|
+
readonly 50: "250 245 255";
|
|
316
|
+
readonly 100: "243 232 255";
|
|
317
|
+
readonly 200: "233 213 255";
|
|
318
|
+
readonly 300: "216 180 254";
|
|
319
|
+
readonly 400: "192 132 252";
|
|
320
|
+
readonly 500: "168 85 247";
|
|
321
|
+
readonly 600: "147 51 234";
|
|
322
|
+
readonly 700: "126 34 206";
|
|
323
|
+
readonly 800: "107 33 168";
|
|
324
|
+
readonly 900: "88 28 135";
|
|
325
|
+
};
|
|
326
|
+
readonly DEALER: {
|
|
327
|
+
readonly 50: "249 250 251";
|
|
328
|
+
readonly 100: "243 244 246";
|
|
329
|
+
readonly 200: "229 231 235";
|
|
330
|
+
readonly 300: "209 213 219";
|
|
331
|
+
readonly 400: "156 163 175";
|
|
332
|
+
readonly 500: "107 114 128";
|
|
333
|
+
readonly 600: "75 85 99";
|
|
334
|
+
readonly 700: "55 65 81";
|
|
335
|
+
readonly 800: "31 41 55";
|
|
336
|
+
readonly 900: "17 24 39";
|
|
337
|
+
};
|
|
338
|
+
readonly RENTAL: {
|
|
339
|
+
readonly 50: "255 247 237";
|
|
340
|
+
readonly 100: "255 237 213";
|
|
341
|
+
readonly 200: "254 215 170";
|
|
342
|
+
readonly 300: "253 186 116";
|
|
343
|
+
readonly 400: "251 146 60";
|
|
344
|
+
readonly 500: "249 115 22";
|
|
345
|
+
readonly 600: "234 88 12";
|
|
346
|
+
readonly 700: "194 65 12";
|
|
347
|
+
readonly 800: "154 52 18";
|
|
348
|
+
readonly 900: "124 45 18";
|
|
349
|
+
};
|
|
350
|
+
readonly OEM: {
|
|
351
|
+
readonly 50: "239 246 255";
|
|
352
|
+
readonly 100: "219 234 254";
|
|
353
|
+
readonly 200: "191 219 254";
|
|
354
|
+
readonly 300: "147 197 253";
|
|
355
|
+
readonly 400: "96 165 250";
|
|
356
|
+
readonly 500: "59 130 246";
|
|
357
|
+
readonly 600: "37 99 235";
|
|
358
|
+
readonly 700: "29 78 216";
|
|
359
|
+
readonly 800: "30 64 175";
|
|
360
|
+
readonly 900: "30 58 138";
|
|
361
|
+
};
|
|
362
|
+
readonly SERVICE: {
|
|
363
|
+
readonly 50: "236 253 245";
|
|
364
|
+
readonly 100: "209 250 229";
|
|
365
|
+
readonly 200: "167 243 208";
|
|
366
|
+
readonly 300: "110 231 183";
|
|
367
|
+
readonly 400: "52 211 153";
|
|
368
|
+
readonly 500: "16 185 129";
|
|
369
|
+
readonly 600: "5 150 105";
|
|
370
|
+
readonly 700: "4 120 87";
|
|
371
|
+
readonly 800: "6 95 70";
|
|
372
|
+
readonly 900: "6 78 59";
|
|
373
|
+
};
|
|
374
|
+
readonly DISTRIBUTOR: {
|
|
375
|
+
readonly 50: "236 254 255";
|
|
376
|
+
readonly 100: "207 250 254";
|
|
377
|
+
readonly 200: "165 243 252";
|
|
378
|
+
readonly 300: "103 232 249";
|
|
379
|
+
readonly 400: "34 211 238";
|
|
380
|
+
readonly 500: "6 182 212";
|
|
381
|
+
readonly 600: "8 145 178";
|
|
382
|
+
readonly 700: "14 116 144";
|
|
383
|
+
readonly 800: "21 94 117";
|
|
384
|
+
readonly 900: "22 78 99";
|
|
385
|
+
};
|
|
386
|
+
readonly OTHER_CUSTOMER_TYPE: {
|
|
387
|
+
readonly 50: "254 242 242";
|
|
388
|
+
readonly 100: "254 226 226";
|
|
389
|
+
readonly 200: "254 202 202";
|
|
390
|
+
readonly 300: "252 165 165";
|
|
391
|
+
readonly 400: "248 113 113";
|
|
392
|
+
readonly 500: "239 68 68";
|
|
393
|
+
readonly 600: "220 38 38";
|
|
394
|
+
readonly 700: "185 28 28";
|
|
395
|
+
readonly 800: "153 27 27";
|
|
396
|
+
readonly 900: "127 29 29";
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* The Rental status color palette
|
|
401
|
+
* Should be available in any component that could be used to display the rental status of an asset
|
|
402
|
+
*/
|
|
403
|
+
export type CustomerTypeColorKeys = keyof typeof customerTypePalette;
|
|
404
|
+
export type CustomerTypeColors = `${Lowercase<CustomerTypeColorKeys>}`;
|
|
309
405
|
/**
|
|
310
406
|
* Colors of the different site types.
|
|
311
407
|
*
|
|
@@ -601,6 +697,90 @@ export declare const trackunitPalette: {
|
|
|
601
697
|
readonly CONSTRUCTION_SITE: "245 158 11";
|
|
602
698
|
readonly UNKNOWN: "115 115 115";
|
|
603
699
|
};
|
|
700
|
+
readonly CONTRACTOR: {
|
|
701
|
+
readonly 50: "250 245 255";
|
|
702
|
+
readonly 100: "243 232 255";
|
|
703
|
+
readonly 200: "233 213 255";
|
|
704
|
+
readonly 300: "216 180 254";
|
|
705
|
+
readonly 400: "192 132 252";
|
|
706
|
+
readonly 500: "168 85 247";
|
|
707
|
+
readonly 600: "147 51 234";
|
|
708
|
+
readonly 700: "126 34 206";
|
|
709
|
+
readonly 800: "107 33 168";
|
|
710
|
+
readonly 900: "88 28 135";
|
|
711
|
+
};
|
|
712
|
+
readonly DEALER: {
|
|
713
|
+
readonly 50: "249 250 251";
|
|
714
|
+
readonly 100: "243 244 246";
|
|
715
|
+
readonly 200: "229 231 235";
|
|
716
|
+
readonly 300: "209 213 219";
|
|
717
|
+
readonly 400: "156 163 175";
|
|
718
|
+
readonly 500: "107 114 128";
|
|
719
|
+
readonly 600: "75 85 99";
|
|
720
|
+
readonly 700: "55 65 81";
|
|
721
|
+
readonly 800: "31 41 55";
|
|
722
|
+
readonly 900: "17 24 39";
|
|
723
|
+
};
|
|
724
|
+
readonly RENTAL: {
|
|
725
|
+
readonly 50: "255 247 237";
|
|
726
|
+
readonly 100: "255 237 213";
|
|
727
|
+
readonly 200: "254 215 170";
|
|
728
|
+
readonly 300: "253 186 116";
|
|
729
|
+
readonly 400: "251 146 60";
|
|
730
|
+
readonly 500: "249 115 22";
|
|
731
|
+
readonly 600: "234 88 12";
|
|
732
|
+
readonly 700: "194 65 12";
|
|
733
|
+
readonly 800: "154 52 18";
|
|
734
|
+
readonly 900: "124 45 18";
|
|
735
|
+
};
|
|
736
|
+
readonly OEM: {
|
|
737
|
+
readonly 50: "239 246 255";
|
|
738
|
+
readonly 100: "219 234 254";
|
|
739
|
+
readonly 200: "191 219 254";
|
|
740
|
+
readonly 300: "147 197 253";
|
|
741
|
+
readonly 400: "96 165 250";
|
|
742
|
+
readonly 500: "59 130 246";
|
|
743
|
+
readonly 600: "37 99 235";
|
|
744
|
+
readonly 700: "29 78 216";
|
|
745
|
+
readonly 800: "30 64 175";
|
|
746
|
+
readonly 900: "30 58 138";
|
|
747
|
+
};
|
|
748
|
+
readonly SERVICE: {
|
|
749
|
+
readonly 50: "236 253 245";
|
|
750
|
+
readonly 100: "209 250 229";
|
|
751
|
+
readonly 200: "167 243 208";
|
|
752
|
+
readonly 300: "110 231 183";
|
|
753
|
+
readonly 400: "52 211 153";
|
|
754
|
+
readonly 500: "16 185 129";
|
|
755
|
+
readonly 600: "5 150 105";
|
|
756
|
+
readonly 700: "4 120 87";
|
|
757
|
+
readonly 800: "6 95 70";
|
|
758
|
+
readonly 900: "6 78 59";
|
|
759
|
+
};
|
|
760
|
+
readonly DISTRIBUTOR: {
|
|
761
|
+
readonly 50: "236 254 255";
|
|
762
|
+
readonly 100: "207 250 254";
|
|
763
|
+
readonly 200: "165 243 252";
|
|
764
|
+
readonly 300: "103 232 249";
|
|
765
|
+
readonly 400: "34 211 238";
|
|
766
|
+
readonly 500: "6 182 212";
|
|
767
|
+
readonly 600: "8 145 178";
|
|
768
|
+
readonly 700: "14 116 144";
|
|
769
|
+
readonly 800: "21 94 117";
|
|
770
|
+
readonly 900: "22 78 99";
|
|
771
|
+
};
|
|
772
|
+
readonly OTHER_CUSTOMER_TYPE: {
|
|
773
|
+
readonly 50: "254 242 242";
|
|
774
|
+
readonly 100: "254 226 226";
|
|
775
|
+
readonly 200: "254 202 202";
|
|
776
|
+
readonly 300: "252 165 165";
|
|
777
|
+
readonly 400: "248 113 113";
|
|
778
|
+
readonly 500: "239 68 68";
|
|
779
|
+
readonly 600: "220 38 38";
|
|
780
|
+
readonly 700: "185 28 28";
|
|
781
|
+
readonly 800: "153 27 27";
|
|
782
|
+
readonly 900: "127 29 29";
|
|
783
|
+
};
|
|
604
784
|
readonly ON_RENT: {
|
|
605
785
|
readonly 100: "223 244 254";
|
|
606
786
|
readonly 600: "90 200 250";
|