@trackunit/css-tailwind-custom-properties-plugin 1.3.139 → 1.3.141

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-custom-properties-plugin",
3
- "version": "1.3.139",
3
+ "version": "1.3.141",
4
4
  "main": "./index.cjs.js",
5
5
  "repository": "https://github.com/Trackunit/manager",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "jest-fetch-mock": "^3.0.3",
12
12
  "tailwindcss": "3.4.3",
13
- "@trackunit/react-test-setup": "1.0.29"
13
+ "@trackunit/react-test-setup": "1.0.31"
14
14
  },
15
15
  "module": "./index.esm.js",
16
16
  "types": "./index.esm.d.ts"
@@ -8,7 +8,7 @@ export type VariablesDeclerationObject = {
8
8
  * @param keys An array of strings representing the keys to be converted to a CSS custom property name.
9
9
  * @returns { string } A string representing the CSS custom property name.
10
10
  */
11
- export declare const keysToCssVariableName: (keys: string[]) => string;
11
+ export declare const keysToCssVariableName: (keys: Array<string>) => string;
12
12
  /**
13
13
  * Flattens a nested object containing variables declarations and their values
14
14
  * into a flat object where the keys are the CSS variable names and the values are
@@ -19,11 +19,11 @@ export declare const keysToCssVariableName: (keys: string[]) => string;
19
19
  * @param {string[]} [keys] - An array of keys representing the current path of the object being processed
20
20
  * @returns {VariablesDeclerationObject} - The generated flat object containing the CSS variable names and values
21
21
  */
22
- export declare const flattenVariablesDeclerationValues: (values: object, output?: VariablesDeclerationObject, keys?: string[]) => VariablesDeclerationObject;
22
+ export declare const flattenVariablesDeclerationValues: (values: object, output?: VariablesDeclerationObject, keys?: Array<string>) => VariablesDeclerationObject;
23
23
  /**
24
24
  * Converts a object containing CSS variables to an array of CSS rules.
25
25
  *
26
26
  * @param variablesDecleration An object containing the CSS variables and their corresponding values.
27
27
  * @returns {CSSRuleObject[]} An array of CSS rules.
28
28
  */
29
- export declare const variablesToCSSRules: (variablesDecleration: object | null) => CSSRuleObject[];
29
+ export declare const variablesToCSSRules: (variablesDecleration: object | null) => Array<CSSRuleObject>;