@trackunit/css-tailwind 1.11.7 → 1.11.9
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.11.
|
|
3
|
+
"version": "1.11.9",
|
|
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.11.
|
|
13
|
-
"@trackunit/css-tailwind-custom-properties-plugin": "1.11.
|
|
14
|
-
"@trackunit/ui-design-tokens": "1.11.
|
|
15
|
-
"@trackunit/css-core": "1.11.
|
|
12
|
+
"@trackunit/css-component-tokens": "1.11.8",
|
|
13
|
+
"@trackunit/css-tailwind-custom-properties-plugin": "1.11.8",
|
|
14
|
+
"@trackunit/ui-design-tokens": "1.11.9",
|
|
15
|
+
"@trackunit/css-core": "1.11.9",
|
|
16
16
|
"@tailwindcss/typography": "^0.5.10"
|
|
17
17
|
},
|
|
18
18
|
"type": "commonjs",
|
package/src/lib/objectUtils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type Entries<TObject> = Array<{
|
|
2
|
-
[
|
|
2
|
+
[KeyProperty in keyof TObject]: [KeyProperty, TObject[KeyProperty]];
|
|
3
3
|
}[keyof TObject]>;
|
|
4
4
|
type KeyValueTupleToObject<TEntries extends ReadonlyArray<readonly [PropertyKey, unknown]>> = {
|
|
5
|
-
[
|
|
5
|
+
[KeyEntry in TEntries[number] as KeyEntry[0]]: KeyEntry[1];
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Converts an object into an array of properly typed key-value pairs.
|
|
@@ -21,7 +21,7 @@ export declare const designTokensToTailwindConfig: (name: string, designTokens:
|
|
|
21
21
|
*
|
|
22
22
|
* @example valueInVar("--my-var-name") // var(--my-var-name)
|
|
23
23
|
*/
|
|
24
|
-
export declare const valueInVar: <
|
|
24
|
+
export declare const valueInVar: <TVarName extends string>(value: TVarName) => `var(${TVarName})`;
|
|
25
25
|
/**
|
|
26
26
|
* If passed value includes "rem" the returned value will include the px value
|
|
27
27
|
*/
|
|
@@ -30,6 +30,6 @@ export declare const remToPx: (value: string, fontSize?: number) => string;
|
|
|
30
30
|
* Uses the fontSize object to generate a Tailwind font configuration.
|
|
31
31
|
* **ATT: This relies on a set of line-height css variables matching the Font size keys**
|
|
32
32
|
*/
|
|
33
|
-
export declare const designTokensToFontSizeTailwindConfig: (fontSizes: typeof themeFontSize) => { [
|
|
33
|
+
export declare const designTokensToFontSizeTailwindConfig: (fontSizes: typeof themeFontSize) => { [KeyFontSize in fontSizeKeys]: [string, {
|
|
34
34
|
lineHeight: string;
|
|
35
35
|
}]; };
|