@trackunit/css-tailwind 0.0.34 → 0.0.36
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/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/css-tailwind",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"main": "./index.cjs",
|
|
5
5
|
"repository": "https://github.com/Trackunit/manager",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
7
7
|
"type": "commonjs",
|
|
8
8
|
"types": "./src/index.d.ts",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/ui-design-tokens": "0.0.
|
|
11
|
-
"@trackunit/css-component-tokens": "0.0.
|
|
12
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.
|
|
13
|
-
"@trackunit/css-core": "0.0.
|
|
10
|
+
"@trackunit/ui-design-tokens": "0.0.57",
|
|
11
|
+
"@trackunit/css-component-tokens": "0.0.16",
|
|
12
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "0.0.8",
|
|
13
|
+
"@trackunit/css-core": "0.0.70"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {}
|
|
16
16
|
}
|
|
@@ -17,6 +17,13 @@ import { ThemeColorsObject } from "@trackunit/ui-design-tokens";
|
|
|
17
17
|
*/
|
|
18
18
|
export declare function themeColorsToVariableObjectDefinition(themeColors: ThemeColorsObject): {
|
|
19
19
|
[k: string]: {
|
|
20
|
+
readonly AREA: string;
|
|
21
|
+
readonly CLASSIC_POI: string;
|
|
22
|
+
readonly CLASSIC_ZONE: string;
|
|
23
|
+
readonly DEPOT: string;
|
|
24
|
+
readonly WORK_PLACE: string;
|
|
25
|
+
readonly CONSTRUCTION_SITE: string;
|
|
26
|
+
} | {
|
|
20
27
|
readonly 100: string;
|
|
21
28
|
readonly 600: string;
|
|
22
29
|
} | {
|
|
@@ -684,7 +684,17 @@ var rentalStatusPalette = {
|
|
|
684
684
|
IN_REPAIR: { 100: "255 233 233", 600: "255 90 90" },
|
|
685
685
|
OTHER_RENTAL_STATUS: { 100: "238 239 239", 600: "151 154 154" }
|
|
686
686
|
};
|
|
687
|
-
var
|
|
687
|
+
var sitesPalette = {
|
|
688
|
+
SITE: {
|
|
689
|
+
AREA: tailwindPalette.blue["600"],
|
|
690
|
+
CLASSIC_POI: tailwindPalette.neutral["500"],
|
|
691
|
+
CLASSIC_ZONE: tailwindPalette.neutral["500"],
|
|
692
|
+
DEPOT: tailwindPalette.violet["600"],
|
|
693
|
+
WORK_PLACE: tailwindPalette.emerald["500"],
|
|
694
|
+
CONSTRUCTION_SITE: tailwindPalette.amber["500"]
|
|
695
|
+
}
|
|
696
|
+
};
|
|
697
|
+
var trackunitPalette = __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, generalPalette), intentPalette), criticalityPalette), activityPalette), utilizationPalette), rentalStatusPalette), sitesPalette);
|
|
688
698
|
|
|
689
699
|
// libs/ui/design-tokens/src/tokens/colors/colors.ts
|
|
690
700
|
var themeColors = {
|
|
@@ -716,7 +726,8 @@ var themeColors = {
|
|
|
716
726
|
OTHER_RENTAL_STATUS: { name: "other_rental_status", variants: trackunitPalette.OTHER_RENTAL_STATUS },
|
|
717
727
|
PICKUP_READY: { name: "pickup_ready", variants: trackunitPalette.PICKUP_READY },
|
|
718
728
|
RETURNED: { name: "returned", variants: trackunitPalette.RETURNED },
|
|
719
|
-
TRANSFER: { name: "transfer", variants: trackunitPalette.TRANSFER }
|
|
729
|
+
TRANSFER: { name: "transfer", variants: trackunitPalette.TRANSFER },
|
|
730
|
+
SITE: { name: "site", variants: trackunitPalette.SITE }
|
|
720
731
|
};
|
|
721
732
|
|
|
722
733
|
// libs/css/tailwind/src/lib/animations.ts
|
|
@@ -827,7 +838,7 @@ function withOpacityValue(variable) {
|
|
|
827
838
|
function fullColorSchemeFromColorName(colorName, keys = ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]) {
|
|
828
839
|
const colors = {};
|
|
829
840
|
keys.forEach((key) => {
|
|
830
|
-
colors[key] = withOpacityValue(
|
|
841
|
+
colors[key] = withOpacityValue(keysToCssVariableName(["color", colorName, key]));
|
|
831
842
|
});
|
|
832
843
|
return colors;
|
|
833
844
|
}
|