@trackunit/css-tailwind 0.0.149 → 0.0.150

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": "0.0.149",
3
+ "version": "0.0.150",
4
4
  "main": "./index.cjs.js",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -23,7 +23,9 @@ export declare function withOpacityValue(variable: string): ({ opacityValue }: {
23
23
  * @param {string} keys Default: ["50", "100", "200", "300", "400", "500", "600", "700", "800", "900"]
24
24
  * @returns {*} An object with each of the keys and the corresponding color css custom property.
25
25
  */
26
- export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]): Record<string, Function>;
26
+ export declare function fullColorSchemeFromColorName(colorName: string, keys?: string[]): Record<string, ({ opacityValue }: {
27
+ opacityValue?: string | undefined;
28
+ }) => string>;
27
29
  /**
28
30
  * Get the value of a custom property from a css file.
29
31
  *
@@ -1368,7 +1368,8 @@ function getValueOfCSSCustomProperty(customProperty, file) {
1368
1368
  function withCustomPropertyValueAsComment(customProperty, append = "", file) {
1369
1369
  file = file || getCssDesignTokens();
1370
1370
  const value = getValueOfCSSCustomProperty(customProperty, file);
1371
- return `${value ? `/* ${value}${append} */` : ""} var(${customProperty})${append}`;
1371
+ const valueAsString = value ? `/* ${value}${append} */` : "";
1372
+ return `${valueAsString} var(${customProperty})${append}`;
1372
1373
  }
1373
1374
 
1374
1375
  // libs/css/tailwind/src/lib/tailwind-base.ts
@@ -1387,7 +1388,6 @@ var tailwindBaseConfig = {
1387
1388
  const tailwindDefaults = Object.fromEntries(
1388
1389
  objectEntries(tailwindPalette).map(([key, value]) => [
1389
1390
  key,
1390
- // eslint-disable-next-line no-autofix/local-rules/prefer-custom-object-keys
1391
1391
  fullColorSchemeFromColorName(key, Object.keys(value)),
1392
1392
  ])
1393
1393
  );