@trackunit/ui-design-tokens 0.0.75-alpha-a3e6a36823.0 → 0.0.75
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
|
@@ -439,6 +439,7 @@ const utilizationPalette = {
|
|
|
439
439
|
UNUSED: { 300: tailwindPalette.red["300"], 400: tailwindPalette.red["400"] },
|
|
440
440
|
UTILIZED: { 400: tailwindPalette.blue["400"], 600: tailwindPalette.blue["600"] },
|
|
441
441
|
HEAVILY_UTILIZED: { 300: tailwindPalette.amber["300"], 500: tailwindPalette.amber["500"] },
|
|
442
|
+
UNKNOWN_UTILIZATION: { 300: tailwindPalette.neutral["300"], 600: tailwindPalette.neutral["600"] },
|
|
442
443
|
};
|
|
443
444
|
/**
|
|
444
445
|
* The Rental status color palette
|
|
@@ -524,6 +525,7 @@ const themeColors = {
|
|
|
524
525
|
UNUSED: { name: "unused", variants: trackunitPalette.UNUSED },
|
|
525
526
|
UTILIZED: { name: "utilized", variants: trackunitPalette.UTILIZED },
|
|
526
527
|
HEAVILY_UTILIZED: { name: "heavily_utilized", variants: trackunitPalette.HEAVILY_UTILIZED },
|
|
528
|
+
UNKNOWN_UTILIZATION: { name: "unknown_utilization", variants: trackunitPalette.UNKNOWN_UTILIZATION },
|
|
527
529
|
IN_REPAIR: { name: "in_repair", variants: trackunitPalette.IN_REPAIR },
|
|
528
530
|
ON_RENT: { name: "on_rent", variants: trackunitPalette.ON_RENT },
|
|
529
531
|
OTHER_RENTAL_STATUS: { name: "other_rental_status", variants: trackunitPalette.OTHER_RENTAL_STATUS },
|
package/index.esm.js
CHANGED
|
@@ -435,6 +435,7 @@ const utilizationPalette = {
|
|
|
435
435
|
UNUSED: { 300: tailwindPalette.red["300"], 400: tailwindPalette.red["400"] },
|
|
436
436
|
UTILIZED: { 400: tailwindPalette.blue["400"], 600: tailwindPalette.blue["600"] },
|
|
437
437
|
HEAVILY_UTILIZED: { 300: tailwindPalette.amber["300"], 500: tailwindPalette.amber["500"] },
|
|
438
|
+
UNKNOWN_UTILIZATION: { 300: tailwindPalette.neutral["300"], 600: tailwindPalette.neutral["600"] },
|
|
438
439
|
};
|
|
439
440
|
/**
|
|
440
441
|
* The Rental status color palette
|
|
@@ -520,6 +521,7 @@ const themeColors = {
|
|
|
520
521
|
UNUSED: { name: "unused", variants: trackunitPalette.UNUSED },
|
|
521
522
|
UTILIZED: { name: "utilized", variants: trackunitPalette.UTILIZED },
|
|
522
523
|
HEAVILY_UTILIZED: { name: "heavily_utilized", variants: trackunitPalette.HEAVILY_UTILIZED },
|
|
524
|
+
UNKNOWN_UTILIZATION: { name: "unknown_utilization", variants: trackunitPalette.UNKNOWN_UTILIZATION },
|
|
523
525
|
IN_REPAIR: { name: "in_repair", variants: trackunitPalette.IN_REPAIR },
|
|
524
526
|
ON_RENT: { name: "on_rent", variants: trackunitPalette.ON_RENT },
|
|
525
527
|
OTHER_RENTAL_STATUS: { name: "other_rental_status", variants: trackunitPalette.OTHER_RENTAL_STATUS },
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { ThemeColorKeys, trackunitPalette } from "./trackunitPalette";
|
|
5
5
|
/** Type used for available variants for a given ColorName */
|
|
6
|
-
export type ColorVariants<ColorName extends ThemeColorKeys> = keyof typeof themeColors[ColorName]["variants"];
|
|
6
|
+
export type ColorVariants<ColorName extends ThemeColorKeys> = keyof (typeof themeColors)[ColorName]["variants"];
|
|
7
7
|
export interface ThemeColorObject<T extends ThemeColorKeys> {
|
|
8
8
|
name: Lowercase<T>;
|
|
9
9
|
variants: {
|
|
10
|
-
[key in keyof typeof trackunitPalette[T]]: string;
|
|
10
|
+
[key in keyof (typeof trackunitPalette)[T]]: string;
|
|
11
11
|
};
|
|
12
|
-
defaultVariant?: keyof typeof trackunitPalette[T];
|
|
12
|
+
defaultVariant?: keyof (typeof trackunitPalette)[T];
|
|
13
13
|
}
|
|
14
14
|
export type ThemeColorsObject = {
|
|
15
15
|
[key in ThemeColorKeys]: ThemeColorObject<key>;
|
|
@@ -255,6 +255,10 @@ export declare const utilizationPalette: {
|
|
|
255
255
|
readonly 300: "252 211 77";
|
|
256
256
|
readonly 500: "245 158 11";
|
|
257
257
|
};
|
|
258
|
+
readonly UNKNOWN_UTILIZATION: {
|
|
259
|
+
readonly 300: "212 212 212";
|
|
260
|
+
readonly 600: "82 82 82";
|
|
261
|
+
};
|
|
258
262
|
};
|
|
259
263
|
/**
|
|
260
264
|
* The Utilization color palette
|
|
@@ -537,6 +541,10 @@ export declare const groupedPalettes: {
|
|
|
537
541
|
readonly 300: "252 211 77";
|
|
538
542
|
readonly 500: "245 158 11";
|
|
539
543
|
};
|
|
544
|
+
readonly UNKNOWN_UTILIZATION: {
|
|
545
|
+
readonly 300: "212 212 212";
|
|
546
|
+
readonly 600: "82 82 82";
|
|
547
|
+
};
|
|
540
548
|
};
|
|
541
549
|
readonly RENTAL: {
|
|
542
550
|
readonly ON_RENT: {
|
|
@@ -633,6 +641,10 @@ export declare const trackunitPalette: {
|
|
|
633
641
|
readonly 300: "252 211 77";
|
|
634
642
|
readonly 500: "245 158 11";
|
|
635
643
|
};
|
|
644
|
+
readonly UNKNOWN_UTILIZATION: {
|
|
645
|
+
readonly 300: "212 212 212";
|
|
646
|
+
readonly 600: "82 82 82";
|
|
647
|
+
};
|
|
636
648
|
readonly WORKING: {
|
|
637
649
|
readonly 50: "239 246 255";
|
|
638
650
|
readonly 100: "219 234 254";
|