@tokenami/css 0.0.39 → 0.0.41
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/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +4 -5
package/dist/index.d.cts
CHANGED
|
@@ -34,6 +34,6 @@ declare function createCss(config: Tokenami.Config): CSS;
|
|
|
34
34
|
type TokenamiStyle<P> = {
|
|
35
35
|
[K in keyof P]: K extends 'style' ? TokenamiCSS & P[K] : P[K];
|
|
36
36
|
};
|
|
37
|
-
type Variants<T extends () =>
|
|
37
|
+
type Variants<T extends (...args: any) => any> = Parameters<T>[0] extends undefined | null ? {} : NonNullable<Parameters<T>[0]>;
|
|
38
38
|
|
|
39
39
|
export { type CSS, type TokenamiCSS, type TokenamiStyle, type Variants, createCss, css };
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,6 @@ declare function createCss(config: Tokenami.Config): CSS;
|
|
|
34
34
|
type TokenamiStyle<P> = {
|
|
35
35
|
[K in keyof P]: K extends 'style' ? TokenamiCSS & P[K] : P[K];
|
|
36
36
|
};
|
|
37
|
-
type Variants<T extends () =>
|
|
37
|
+
type Variants<T extends (...args: any) => any> = Parameters<T>[0] extends undefined | null ? {} : NonNullable<Parameters<T>[0]>;
|
|
38
38
|
|
|
39
39
|
export { type CSS, type TokenamiCSS, type TokenamiStyle, type Variants, createCss, css };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenami/css",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -12,23 +12,22 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@tokenami/config": "0.0.
|
|
15
|
+
"@tokenami/config": "0.0.41"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"tsup": "^7.0.0",
|
|
19
19
|
"typescript": "^5.1.3",
|
|
20
20
|
"vitest": "^0.34.6",
|
|
21
|
-
"@tokenami/dev": "0.0.
|
|
21
|
+
"@tokenami/dev": "0.0.41"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"typescript": ">= 5",
|
|
25
|
-
"@tokenami/dev": "0.0.
|
|
25
|
+
"@tokenami/dev": "0.0.41"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup",
|
|
29
29
|
"dev": "pnpm build --watch src",
|
|
30
30
|
"typecheck": "tsc --noEmit",
|
|
31
|
-
"typecheck:ci": "pnpm typecheck",
|
|
32
31
|
"test": "vitest --run",
|
|
33
32
|
"test:watch": "vitest"
|
|
34
33
|
}
|