@hulla/style 0.2.0 → 0.2.1
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/cjs/index.d.ts +7 -7
- package/dist/es/index.d.mts +7 -7
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ type VariantGroupAPI<V extends readonly VariantAPI<any>[]> = {
|
|
|
50
50
|
type StyleFunctions = {
|
|
51
51
|
cn: <const CN extends ClassName[]>(...classes: CN) => string;
|
|
52
52
|
};
|
|
53
|
-
type VariantProps<V
|
|
53
|
+
type VariantProps<V> = V extends VariantGroupAPI<infer G> ? GroupProps<G> : V extends VariantAPI<infer VD> ? APIPropsMapper<VariantAPI<VD>> : {};
|
|
54
54
|
|
|
55
55
|
declare function variantGroupBuilder<const V extends readonly VariantAPI<any>[]>(...variants: V): VariantGroupAPI<V>;
|
|
56
56
|
|
|
@@ -62,15 +62,15 @@ declare function style(config?: StyleConfig): {
|
|
|
62
62
|
name: N;
|
|
63
63
|
classes: V;
|
|
64
64
|
default: D;
|
|
65
|
-
base?: B
|
|
65
|
+
base?: B;
|
|
66
66
|
}): VariantAPI<Variant<N, V, D, B>>;
|
|
67
|
-
<
|
|
68
|
-
name:
|
|
69
|
-
classes:
|
|
70
|
-
base?:
|
|
67
|
+
<N extends string, V extends ClassesDefinition, B extends string = "">(variantDefinition: {
|
|
68
|
+
name: N;
|
|
69
|
+
classes: V;
|
|
70
|
+
base?: B;
|
|
71
71
|
} & {
|
|
72
72
|
default?: undefined;
|
|
73
|
-
}): VariantAPI<Variant<
|
|
73
|
+
}): VariantAPI<Variant<N, V, NO_DEFAULT, B>>;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
|
package/dist/es/index.d.mts
CHANGED
|
@@ -50,7 +50,7 @@ type VariantGroupAPI<V extends readonly VariantAPI<any>[]> = {
|
|
|
50
50
|
type StyleFunctions = {
|
|
51
51
|
cn: <const CN extends ClassName[]>(...classes: CN) => string;
|
|
52
52
|
};
|
|
53
|
-
type VariantProps<V
|
|
53
|
+
type VariantProps<V> = V extends VariantGroupAPI<infer G> ? GroupProps<G> : V extends VariantAPI<infer VD> ? APIPropsMapper<VariantAPI<VD>> : {};
|
|
54
54
|
|
|
55
55
|
declare function variantGroupBuilder<const V extends readonly VariantAPI<any>[]>(...variants: V): VariantGroupAPI<V>;
|
|
56
56
|
|
|
@@ -62,15 +62,15 @@ declare function style(config?: StyleConfig): {
|
|
|
62
62
|
name: N;
|
|
63
63
|
classes: V;
|
|
64
64
|
default: D;
|
|
65
|
-
base?: B
|
|
65
|
+
base?: B;
|
|
66
66
|
}): VariantAPI<Variant<N, V, D, B>>;
|
|
67
|
-
<
|
|
68
|
-
name:
|
|
69
|
-
classes:
|
|
70
|
-
base?:
|
|
67
|
+
<N extends string, V extends ClassesDefinition, B extends string = "">(variantDefinition: {
|
|
68
|
+
name: N;
|
|
69
|
+
classes: V;
|
|
70
|
+
base?: B;
|
|
71
71
|
} & {
|
|
72
72
|
default?: undefined;
|
|
73
|
-
}): VariantAPI<Variant<
|
|
73
|
+
}): VariantAPI<Variant<N, V, NO_DEFAULT, B>>;
|
|
74
74
|
};
|
|
75
75
|
};
|
|
76
76
|
|