@trackunit/ui-design-tokens 1.6.12 → 1.6.13
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 +19 -0
- package/index.esm.js +19 -1
- package/package.json +1 -1
- package/src/tokens/colors/trackunitPalette.d.ts +18 -0
package/index.cjs.js
CHANGED
|
@@ -362,6 +362,17 @@ const generalPalette = {
|
|
|
362
362
|
BLACK: { DEFAULT: "26 27 28" },
|
|
363
363
|
WHITE: { DEFAULT: "255 255 255" },
|
|
364
364
|
};
|
|
365
|
+
/**
|
|
366
|
+
* The contrasted primary color palette
|
|
367
|
+
* Should be available for components using the primary color palette, such as "Button", "RadioButton", "Checkbox", "Tag"
|
|
368
|
+
*/
|
|
369
|
+
const contrastedPalette = {
|
|
370
|
+
PRIMARY_CONTRASTED: { DEFAULT: "26 27 28" },
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* The intent color palette
|
|
374
|
+
* Should be available for most colored components such as "Button", "Alert", "Indicator", "Badge"
|
|
375
|
+
*/
|
|
365
376
|
const intentPalette = {
|
|
366
377
|
INFO: tailwindPalette.blue,
|
|
367
378
|
SUCCESS: tailwindPalette.green,
|
|
@@ -580,6 +591,8 @@ const groupedPalettes = {
|
|
|
580
591
|
const trackunitPalette = {
|
|
581
592
|
// General
|
|
582
593
|
...generalPalette,
|
|
594
|
+
// Primary colors contrasted
|
|
595
|
+
...contrastedPalette,
|
|
583
596
|
// UI Intent
|
|
584
597
|
...intentPalette,
|
|
585
598
|
// Asset Criticality
|
|
@@ -668,6 +681,11 @@ const themeColors = {
|
|
|
668
681
|
name: "notification_counter_background",
|
|
669
682
|
variants: trackunitPalette.NOTIFICATION_COUNTER_BACKGROUND,
|
|
670
683
|
},
|
|
684
|
+
PRIMARY_CONTRASTED: {
|
|
685
|
+
name: "primary_contrasted",
|
|
686
|
+
variants: { ...trackunitPalette.BLACK, ...trackunitPalette.WHITE },
|
|
687
|
+
defaultVariant: "DEFAULT",
|
|
688
|
+
},
|
|
671
689
|
CYAN: { name: "cyan", variants: tailwindPalette.cyan },
|
|
672
690
|
LIME: { name: "lime", variants: tailwindPalette.lime },
|
|
673
691
|
ORANGE: { name: "orange", variants: tailwindPalette.orange },
|
|
@@ -937,6 +955,7 @@ exports.DEFAULT_CHART_COLORS = DEFAULT_CHART_COLORS;
|
|
|
937
955
|
exports.DEFAULT_CHART_OTHER = DEFAULT_CHART_OTHER;
|
|
938
956
|
exports.activityPalette = activityPalette;
|
|
939
957
|
exports.color = color;
|
|
958
|
+
exports.contrastedPalette = contrastedPalette;
|
|
940
959
|
exports.criticalityPalette = criticalityPalette;
|
|
941
960
|
exports.elevation = elevation;
|
|
942
961
|
exports.fontFamily = fontFamily;
|
package/index.esm.js
CHANGED
|
@@ -360,6 +360,17 @@ const generalPalette = {
|
|
|
360
360
|
BLACK: { DEFAULT: "26 27 28" },
|
|
361
361
|
WHITE: { DEFAULT: "255 255 255" },
|
|
362
362
|
};
|
|
363
|
+
/**
|
|
364
|
+
* The contrasted primary color palette
|
|
365
|
+
* Should be available for components using the primary color palette, such as "Button", "RadioButton", "Checkbox", "Tag"
|
|
366
|
+
*/
|
|
367
|
+
const contrastedPalette = {
|
|
368
|
+
PRIMARY_CONTRASTED: { DEFAULT: "26 27 28" },
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* The intent color palette
|
|
372
|
+
* Should be available for most colored components such as "Button", "Alert", "Indicator", "Badge"
|
|
373
|
+
*/
|
|
363
374
|
const intentPalette = {
|
|
364
375
|
INFO: tailwindPalette.blue,
|
|
365
376
|
SUCCESS: tailwindPalette.green,
|
|
@@ -578,6 +589,8 @@ const groupedPalettes = {
|
|
|
578
589
|
const trackunitPalette = {
|
|
579
590
|
// General
|
|
580
591
|
...generalPalette,
|
|
592
|
+
// Primary colors contrasted
|
|
593
|
+
...contrastedPalette,
|
|
581
594
|
// UI Intent
|
|
582
595
|
...intentPalette,
|
|
583
596
|
// Asset Criticality
|
|
@@ -666,6 +679,11 @@ const themeColors = {
|
|
|
666
679
|
name: "notification_counter_background",
|
|
667
680
|
variants: trackunitPalette.NOTIFICATION_COUNTER_BACKGROUND,
|
|
668
681
|
},
|
|
682
|
+
PRIMARY_CONTRASTED: {
|
|
683
|
+
name: "primary_contrasted",
|
|
684
|
+
variants: { ...trackunitPalette.BLACK, ...trackunitPalette.WHITE },
|
|
685
|
+
defaultVariant: "DEFAULT",
|
|
686
|
+
},
|
|
669
687
|
CYAN: { name: "cyan", variants: tailwindPalette.cyan },
|
|
670
688
|
LIME: { name: "lime", variants: tailwindPalette.lime },
|
|
671
689
|
ORANGE: { name: "orange", variants: tailwindPalette.orange },
|
|
@@ -930,4 +948,4 @@ const zIndex = {
|
|
|
930
948
|
toast: themeZIndex.toast,
|
|
931
949
|
};
|
|
932
950
|
|
|
933
|
-
export { CHART_STATUS_COLORS, DEFAULT_CHART_COLORS, DEFAULT_CHART_OTHER, activityPalette, color, criticalityPalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, groupedPalettes, intentPalette, otherPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeScreenSizeAsNumber, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
|
951
|
+
export { CHART_STATUS_COLORS, DEFAULT_CHART_COLORS, DEFAULT_CHART_OTHER, activityPalette, color, contrastedPalette, criticalityPalette, elevation, fontFamily, fontSize, fontWeight, generalPalette, groupedPalettes, intentPalette, otherPalette, rentalStatusPalette, sitesPalette, size, tailwindPalette, themeBorderRadius, themeBoxShadow, themeColors, themeFontSize, themeFontWeight, themeLineHeight, themeScreenSize, themeScreenSizeAsNumber, themeSpacing, themeZIndex, themedPalette, trackunitPalette, utilizationPalette, zIndex };
|
package/package.json
CHANGED
|
@@ -44,6 +44,21 @@ export declare const generalPalette: {
|
|
|
44
44
|
};
|
|
45
45
|
export type GeneralColorKeys = keyof typeof generalPalette;
|
|
46
46
|
export type GeneralColors = `${Lowercase<GeneralColorKeys>}`;
|
|
47
|
+
/**
|
|
48
|
+
* The contrasted primary color palette
|
|
49
|
+
* Should be available for components using the primary color palette, such as "Button", "RadioButton", "Checkbox", "Tag"
|
|
50
|
+
*/
|
|
51
|
+
export declare const contrastedPalette: {
|
|
52
|
+
PRIMARY_CONTRASTED: {
|
|
53
|
+
DEFAULT: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type ContrastedPaletteColorKeys = keyof typeof contrastedPalette;
|
|
57
|
+
export type ContrastedPaletteColors = `${Lowercase<ContrastedPaletteColorKeys>}`;
|
|
58
|
+
/**
|
|
59
|
+
* The intent color palette
|
|
60
|
+
* Should be available for most colored components such as "Button", "Alert", "Indicator", "Badge"
|
|
61
|
+
*/
|
|
47
62
|
export declare const intentPalette: {
|
|
48
63
|
readonly INFO: {
|
|
49
64
|
readonly 50: "239 246 255";
|
|
@@ -964,6 +979,9 @@ export declare const trackunitPalette: {
|
|
|
964
979
|
readonly 800: "153 27 27";
|
|
965
980
|
readonly 900: "127 29 29";
|
|
966
981
|
};
|
|
982
|
+
readonly PRIMARY_CONTRASTED: {
|
|
983
|
+
DEFAULT: string;
|
|
984
|
+
};
|
|
967
985
|
readonly PRIMARY: {
|
|
968
986
|
readonly 50: "239 246 255";
|
|
969
987
|
readonly 100: "219 234 254";
|