@trackunit/css-tailwind 1.3.74 → 1.3.76

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/css-tailwind",
3
- "version": "1.3.74",
3
+ "version": "1.3.76",
4
4
  "main": "./index.cjs.js",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -9,10 +9,10 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "tailwindcss": "3.4.3",
12
- "@trackunit/css-component-tokens": "1.3.71",
13
- "@trackunit/css-tailwind-custom-properties-plugin": "1.3.71",
14
- "@trackunit/ui-design-tokens": "1.3.71",
15
- "@trackunit/css-core": "1.3.72",
12
+ "@trackunit/css-component-tokens": "1.3.73",
13
+ "@trackunit/css-tailwind-custom-properties-plugin": "1.3.73",
14
+ "@trackunit/ui-design-tokens": "1.3.73",
15
+ "@trackunit/css-core": "1.3.74",
16
16
  "@tailwindcss/typography": "^0.5.10"
17
17
  },
18
18
  "type": "commonjs",
@@ -7475,6 +7475,34 @@ var themeBorderRadius = {
7475
7475
  full: "9999px",
7476
7476
  };
7477
7477
 
7478
+ // libs/ui/design-tokens/src/tokens/utils/getHEX.ts
7479
+ function componentToHex(c) {
7480
+ if (c === null || c === void 0) {
7481
+ return "00";
7482
+ }
7483
+ const hex = c.toString(16);
7484
+ return hex.length === 1 ? "0" + hex : hex;
7485
+ }
7486
+ function rgbToHex(r, g, b) {
7487
+ if (isNaN(r) || isNaN(g) || isNaN(b)) {
7488
+ return "#000000";
7489
+ }
7490
+ return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b);
7491
+ }
7492
+ var rgbStringToHex = colorString => {
7493
+ if (colorString.split(" ").length === 3) {
7494
+ const [r, g, b] = colorString.split(" ").map(Number);
7495
+ if (typeof r !== "number" || typeof g !== "number" || typeof b !== "number") {
7496
+ return "#000000";
7497
+ }
7498
+ if (isNaN(r) || isNaN(g) || isNaN(b)) {
7499
+ return "#000000";
7500
+ }
7501
+ return rgbToHex(r, g, b);
7502
+ }
7503
+ return "#000000";
7504
+ };
7505
+
7478
7506
  // libs/ui/design-tokens/src/tokens/colors/tailwindPalette.ts
7479
7507
  var tailwindPalette = {
7480
7508
  slate: {
@@ -7900,6 +7928,26 @@ var themeColors = {
7900
7928
  PINK: { name: "pink", variants: tailwindPalette.pink },
7901
7929
  };
7902
7930
 
7931
+ // libs/ui/design-tokens/src/tokens/chartColorsDefault.ts
7932
+ var DEFAULT_CHART_OTHER = rgbStringToHex(tailwindPalette.gray[400]);
7933
+ var DEFAULT_CHART_COLORS = [
7934
+ rgbStringToHex(tailwindPalette.blue[500]),
7935
+ rgbStringToHex(tailwindPalette.teal[500]),
7936
+ rgbStringToHex(tailwindPalette.yellow[400]),
7937
+ rgbStringToHex(tailwindPalette.violet[400]),
7938
+ rgbStringToHex(tailwindPalette.orange[500]),
7939
+ rgbStringToHex(tailwindPalette.lime[400]),
7940
+ ];
7941
+ var { CRITICAL, LOW, GOOD, WORKING, IDLE, STOPPED } = themeColors;
7942
+ var CHART_STATUS_COLORS = {
7943
+ CRITICAL: rgbStringToHex(CRITICAL.variants[500]),
7944
+ LOW: rgbStringToHex(LOW.variants[500]),
7945
+ GOOD: rgbStringToHex(GOOD.variants[500]),
7946
+ WORKING: rgbStringToHex(WORKING.variants[500]),
7947
+ IDLE: rgbStringToHex(IDLE.variants[500]),
7948
+ STOPPED: rgbStringToHex(STOPPED.variants[500]),
7949
+ };
7950
+
7903
7951
  // libs/ui/design-tokens/src/tokens/elevation.ts
7904
7952
  var themeBoxShadow = {
7905
7953
  sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",