@trackunit/ui-design-tokens 0.0.96 → 0.0.97

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 CHANGED
@@ -431,6 +431,23 @@ const activityPalette = {
431
431
  MOVING: { DEFAULT: "230 144 177" },
432
432
  ACTIVE: { DEFAULT: "63 219 147" },
433
433
  };
434
+ /**
435
+ * The Themed color palette
436
+ * This is only for theming of the main menu in manager
437
+ */
438
+ const themedPalette = {
439
+ MAIN_MENU_BACKGROUND: { DEFAULT: tailwindPalette.neutral["800"] },
440
+ MAIN_MENU_NAV_ITEM_BACKGROUND: {
441
+ DEFAULT: tailwindPalette.neutral["800"],
442
+ hover: tailwindPalette.neutral["700"],
443
+ active: tailwindPalette.neutral["700"],
444
+ },
445
+ MAIN_MENU_NAV_ITEM_FOREGROUND: {
446
+ DEFAULT: tailwindPalette.neutral["300"],
447
+ hover: generalPalette.WHITE.DEFAULT,
448
+ active: generalPalette.WHITE.DEFAULT,
449
+ },
450
+ };
434
451
  /**
435
452
  * The Utilization color palette
436
453
  * Should be available in any component that could be used to display the Activity state of an asset
@@ -501,11 +518,13 @@ const groupedPalettes = {
501
518
  RENTAL: rentalStatusPalette,
502
519
  // Sites
503
520
  SITES: sitesPalette,
521
+ // Themed
522
+ THEMED: themedPalette,
504
523
  };
505
524
  /**
506
525
  * The full theme color palette (flattened)
507
526
  */
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);
527
+ const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), customerTypePalette), sitesPalette), themedPalette);
509
528
 
510
529
  /**
511
530
  * A collection of all the tokens related to the named colors in the default theme.
@@ -553,6 +572,15 @@ const themeColors = {
553
572
  RENTAL: { name: "rental", variants: trackunitPalette.RENTAL },
554
573
  SERVICE: { name: "service", variants: trackunitPalette.SERVICE },
555
574
  OTHER_CUSTOMER_TYPE: { name: "other_customer_type", variants: trackunitPalette.OTHER_CUSTOMER_TYPE },
575
+ MAIN_MENU_BACKGROUND: { name: "main_menu_background", variants: trackunitPalette.MAIN_MENU_BACKGROUND },
576
+ MAIN_MENU_NAV_ITEM_BACKGROUND: {
577
+ name: "main_menu_nav_item_background",
578
+ variants: trackunitPalette.MAIN_MENU_NAV_ITEM_BACKGROUND,
579
+ },
580
+ MAIN_MENU_NAV_ITEM_FOREGROUND: {
581
+ name: "main_menu_nav_item_foreground",
582
+ variants: trackunitPalette.MAIN_MENU_NAV_ITEM_FOREGROUND,
583
+ },
556
584
  };
557
585
 
558
586
  const outputOptions = ["HEX", "CSS"];
@@ -801,6 +829,7 @@ exports.themeLineHeight = themeLineHeight;
801
829
  exports.themeScreenSize = themeScreenSize;
802
830
  exports.themeSpacing = themeSpacing;
803
831
  exports.themeZIndex = themeZIndex;
832
+ exports.themedPalette = themedPalette;
804
833
  exports.trackunitPalette = trackunitPalette;
805
834
  exports.utilizationPalette = utilizationPalette;
806
835
  exports.zIndex = zIndex;
package/index.esm.js CHANGED
@@ -427,6 +427,23 @@ const activityPalette = {
427
427
  MOVING: { DEFAULT: "230 144 177" },
428
428
  ACTIVE: { DEFAULT: "63 219 147" },
429
429
  };
430
+ /**
431
+ * The Themed color palette
432
+ * This is only for theming of the main menu in manager
433
+ */
434
+ const themedPalette = {
435
+ MAIN_MENU_BACKGROUND: { DEFAULT: tailwindPalette.neutral["800"] },
436
+ MAIN_MENU_NAV_ITEM_BACKGROUND: {
437
+ DEFAULT: tailwindPalette.neutral["800"],
438
+ hover: tailwindPalette.neutral["700"],
439
+ active: tailwindPalette.neutral["700"],
440
+ },
441
+ MAIN_MENU_NAV_ITEM_FOREGROUND: {
442
+ DEFAULT: tailwindPalette.neutral["300"],
443
+ hover: generalPalette.WHITE.DEFAULT,
444
+ active: generalPalette.WHITE.DEFAULT,
445
+ },
446
+ };
430
447
  /**
431
448
  * The Utilization color palette
432
449
  * Should be available in any component that could be used to display the Activity state of an asset
@@ -497,11 +514,13 @@ const groupedPalettes = {
497
514
  RENTAL: rentalStatusPalette,
498
515
  // Sites
499
516
  SITES: sitesPalette,
517
+ // Themed
518
+ THEMED: themedPalette,
500
519
  };
501
520
  /**
502
521
  * The full theme color palette (flattened)
503
522
  */
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);
523
+ const trackunitPalette = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), customerTypePalette), sitesPalette), themedPalette);
505
524
 
506
525
  /**
507
526
  * A collection of all the tokens related to the named colors in the default theme.
@@ -549,6 +568,15 @@ const themeColors = {
549
568
  RENTAL: { name: "rental", variants: trackunitPalette.RENTAL },
550
569
  SERVICE: { name: "service", variants: trackunitPalette.SERVICE },
551
570
  OTHER_CUSTOMER_TYPE: { name: "other_customer_type", variants: trackunitPalette.OTHER_CUSTOMER_TYPE },
571
+ MAIN_MENU_BACKGROUND: { name: "main_menu_background", variants: trackunitPalette.MAIN_MENU_BACKGROUND },
572
+ MAIN_MENU_NAV_ITEM_BACKGROUND: {
573
+ name: "main_menu_nav_item_background",
574
+ variants: trackunitPalette.MAIN_MENU_NAV_ITEM_BACKGROUND,
575
+ },
576
+ MAIN_MENU_NAV_ITEM_FOREGROUND: {
577
+ name: "main_menu_nav_item_foreground",
578
+ variants: trackunitPalette.MAIN_MENU_NAV_ITEM_FOREGROUND,
579
+ },
552
580
  };
553
581
 
554
582
  const outputOptions = ["HEX", "CSS"];
@@ -771,4 +799,4 @@ const zIndex = {
771
799
  toast: themeZIndex.toast,
772
800
  };
773
801
 
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 };
802
+ 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, themedPalette, trackunitPalette, utilizationPalette, zIndex };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/ui-design-tokens",
3
- "version": "0.0.96",
3
+ "version": "0.0.97",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -238,6 +238,31 @@ export declare const activityPalette: {
238
238
  */
239
239
  export type ActivityColorKeys = keyof typeof activityPalette;
240
240
  export type ActivityColors = `${Lowercase<ActivityColorKeys>}`;
241
+ /**
242
+ * The Themed color palette
243
+ * This is only for theming of the main menu in manager
244
+ */
245
+ export declare const themedPalette: {
246
+ readonly MAIN_MENU_BACKGROUND: {
247
+ readonly DEFAULT: "38 38 38";
248
+ };
249
+ readonly MAIN_MENU_NAV_ITEM_BACKGROUND: {
250
+ readonly DEFAULT: "38 38 38";
251
+ readonly hover: "64 64 64";
252
+ readonly active: "64 64 64";
253
+ };
254
+ readonly MAIN_MENU_NAV_ITEM_FOREGROUND: {
255
+ readonly DEFAULT: "212 212 212";
256
+ readonly hover: "255 255 255";
257
+ readonly active: "255 255 255";
258
+ };
259
+ };
260
+ /**
261
+ * The Themed color palette
262
+ * This is only for theming of the main menu in manager
263
+ */
264
+ export type ThemedPaletteKeys = keyof typeof activityPalette;
265
+ export type ThemedPalette = `${Lowercase<ThemedPaletteKeys>}`;
241
266
  /**
242
267
  * The Utilization color palette
243
268
  * Should be available in any component that could be used to display the Activity state of an asset
@@ -683,11 +708,39 @@ export declare const groupedPalettes: {
683
708
  readonly UNKNOWN: "115 115 115";
684
709
  };
685
710
  };
711
+ readonly THEMED: {
712
+ readonly MAIN_MENU_BACKGROUND: {
713
+ readonly DEFAULT: "38 38 38";
714
+ };
715
+ readonly MAIN_MENU_NAV_ITEM_BACKGROUND: {
716
+ readonly DEFAULT: "38 38 38";
717
+ readonly hover: "64 64 64";
718
+ readonly active: "64 64 64";
719
+ };
720
+ readonly MAIN_MENU_NAV_ITEM_FOREGROUND: {
721
+ readonly DEFAULT: "212 212 212";
722
+ readonly hover: "255 255 255";
723
+ readonly active: "255 255 255";
724
+ };
725
+ };
686
726
  };
687
727
  /**
688
728
  * The full theme color palette (flattened)
689
729
  */
690
730
  export declare const trackunitPalette: {
731
+ readonly MAIN_MENU_BACKGROUND: {
732
+ readonly DEFAULT: "38 38 38";
733
+ };
734
+ readonly MAIN_MENU_NAV_ITEM_BACKGROUND: {
735
+ readonly DEFAULT: "38 38 38";
736
+ readonly hover: "64 64 64";
737
+ readonly active: "64 64 64";
738
+ };
739
+ readonly MAIN_MENU_NAV_ITEM_FOREGROUND: {
740
+ readonly DEFAULT: "212 212 212";
741
+ readonly hover: "255 255 255";
742
+ readonly active: "255 255 255";
743
+ };
691
744
  readonly SITE: {
692
745
  readonly AREA: "37 99 235";
693
746
  readonly CLASSIC_POI: "115 115 115";