@griddo/core 10.2.5 → 10.2.6
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/hooks/themes/useThemeColors.d.ts +6 -6
- package/dist/hooks/themes/useThemeFont.d.ts +6 -6
- package/dist/hooks/themes/useThemePrimitives.d.ts +6 -6
- package/dist/hooks/themes/utils.d.ts +12 -12
- package/dist/types/api-response-fields/index.d.ts +1 -0
- package/dist/types/schemas/AutoTypes.d.ts +4 -4
- package/dist/types/theme/index.d.ts +4 -3
- package/package.json +2 -2
|
@@ -24,12 +24,12 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
|
-
id:
|
|
27
|
+
id: "global";
|
|
28
28
|
name: string;
|
|
29
|
-
selector:
|
|
29
|
+
selector: ":root";
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
customMedia?: {
|
|
32
|
-
[key: string]: string;
|
|
32
|
+
[key: `--${string}`]: string;
|
|
33
33
|
} | undefined;
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
@@ -49,12 +49,12 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
})[];
|
|
51
51
|
preferColorScheme?: false | undefined;
|
|
52
|
-
id:
|
|
52
|
+
id: "global";
|
|
53
53
|
name: string;
|
|
54
|
-
selector:
|
|
54
|
+
selector: ":root";
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
customMedia?: {
|
|
57
|
-
[key: string]: string;
|
|
57
|
+
[key: `--${string}`]: string;
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
@@ -24,12 +24,12 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
|
-
id:
|
|
27
|
+
id: "global";
|
|
28
28
|
name: string;
|
|
29
|
-
selector:
|
|
29
|
+
selector: ":root";
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
customMedia?: {
|
|
32
|
-
[key: string]: string;
|
|
32
|
+
[key: `--${string}`]: string;
|
|
33
33
|
} | undefined;
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
@@ -49,12 +49,12 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
})[];
|
|
51
51
|
preferColorScheme?: false | undefined;
|
|
52
|
-
id:
|
|
52
|
+
id: "global";
|
|
53
53
|
name: string;
|
|
54
|
-
selector:
|
|
54
|
+
selector: ":root";
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
customMedia?: {
|
|
57
|
-
[key: string]: string;
|
|
57
|
+
[key: `--${string}`]: string;
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
@@ -24,12 +24,12 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
24
24
|
description?: string | undefined;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
|
-
id:
|
|
27
|
+
id: "global";
|
|
28
28
|
name: string;
|
|
29
|
-
selector:
|
|
29
|
+
selector: ":root";
|
|
30
30
|
description?: string | undefined;
|
|
31
31
|
customMedia?: {
|
|
32
|
-
[key: string]: string;
|
|
32
|
+
[key: `--${string}`]: string;
|
|
33
33
|
} | undefined;
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
@@ -49,12 +49,12 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
49
49
|
description?: string | undefined;
|
|
50
50
|
})[];
|
|
51
51
|
preferColorScheme?: false | undefined;
|
|
52
|
-
id:
|
|
52
|
+
id: "global";
|
|
53
53
|
name: string;
|
|
54
|
-
selector:
|
|
54
|
+
selector: ":root";
|
|
55
55
|
description?: string | undefined;
|
|
56
56
|
customMedia?: {
|
|
57
|
-
[key: string]: string;
|
|
57
|
+
[key: `--${string}`]: string;
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
@@ -17,12 +17,12 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
17
17
|
description?: string | undefined;
|
|
18
18
|
})[];
|
|
19
19
|
preferColorScheme: true;
|
|
20
|
-
id:
|
|
20
|
+
id: "global";
|
|
21
21
|
name: string;
|
|
22
|
-
selector:
|
|
22
|
+
selector: ":root";
|
|
23
23
|
description?: string | undefined;
|
|
24
24
|
customMedia?: {
|
|
25
|
-
[key: string]: string;
|
|
25
|
+
[key: `--${string}`]: string;
|
|
26
26
|
} | undefined;
|
|
27
27
|
} | {
|
|
28
28
|
primitives: Theme.Primitives;
|
|
@@ -42,12 +42,12 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
42
42
|
description?: string | undefined;
|
|
43
43
|
})[];
|
|
44
44
|
preferColorScheme?: false | undefined;
|
|
45
|
-
id:
|
|
45
|
+
id: "global";
|
|
46
46
|
name: string;
|
|
47
|
-
selector:
|
|
47
|
+
selector: ":root";
|
|
48
48
|
description?: string | undefined;
|
|
49
49
|
customMedia?: {
|
|
50
|
-
[key: string]: string;
|
|
50
|
+
[key: `--${string}`]: string;
|
|
51
51
|
} | undefined;
|
|
52
52
|
} | {
|
|
53
53
|
primitives: Theme.Primitives;
|
|
@@ -112,12 +112,12 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
112
112
|
description?: string | undefined;
|
|
113
113
|
})[];
|
|
114
114
|
preferColorScheme: true;
|
|
115
|
-
id:
|
|
115
|
+
id: "global";
|
|
116
116
|
name: string;
|
|
117
|
-
selector:
|
|
117
|
+
selector: ":root";
|
|
118
118
|
description?: string | undefined;
|
|
119
119
|
customMedia?: {
|
|
120
|
-
[key: string]: string;
|
|
120
|
+
[key: `--${string}`]: string;
|
|
121
121
|
} | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
primitives: Theme.Primitives;
|
|
@@ -137,12 +137,12 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
137
137
|
description?: string | undefined;
|
|
138
138
|
})[];
|
|
139
139
|
preferColorScheme?: false | undefined;
|
|
140
|
-
id:
|
|
140
|
+
id: "global";
|
|
141
141
|
name: string;
|
|
142
|
-
selector:
|
|
142
|
+
selector: ":root";
|
|
143
143
|
description?: string | undefined;
|
|
144
144
|
customMedia?: {
|
|
145
|
-
[key: string]: string;
|
|
145
|
+
[key: `--${string}`]: string;
|
|
146
146
|
} | undefined;
|
|
147
147
|
} | {
|
|
148
148
|
primitives: Theme.Primitives;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface AutoTypesConfig {
|
|
2
|
-
typeFileName?: string
|
|
3
|
-
interfaceSuffix?: string
|
|
4
|
-
contentTypeSuffix?: string
|
|
5
|
-
publicApiSuffix?: string
|
|
2
|
+
typeFileName?: `${string}.d.ts`;
|
|
3
|
+
interfaceSuffix?: `${Capitalize<string>}`;
|
|
4
|
+
contentTypeSuffix?: `${Capitalize<string>}`;
|
|
5
|
+
publicApiSuffix?: `${Capitalize<string>}`;
|
|
6
6
|
}
|
|
@@ -10,7 +10,7 @@ export interface Primitive {
|
|
|
10
10
|
/** Name for the primitive */
|
|
11
11
|
name?: string;
|
|
12
12
|
/** Name for the css variable for the primitive */
|
|
13
|
-
cssVar: string
|
|
13
|
+
cssVar: `--${string}`;
|
|
14
14
|
/** CSS value for the primitive */
|
|
15
15
|
value: string;
|
|
16
16
|
}>;
|
|
@@ -43,9 +43,10 @@ export interface BaseThemeNormal extends BaseThemeBase {
|
|
|
43
43
|
}
|
|
44
44
|
export type BaseTheme = BaseThemeWithColorScheme | BaseThemeNormal;
|
|
45
45
|
export type GlobalTheme = BaseTheme & {
|
|
46
|
-
|
|
46
|
+
id: "global";
|
|
47
|
+
selector: ":root";
|
|
47
48
|
customMedia?: {
|
|
48
|
-
[key: string]: string;
|
|
49
|
+
[key: `--${string}`]: string;
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
export type Theme = BaseTheme & {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@griddo/core",
|
|
3
3
|
"description": "Reload version of Griddo Core",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
|
-
"version": "10.2.
|
|
5
|
+
"version": "10.2.6",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "454e1f00fed4c22359d9a5a36c3bf2c0caac95cd"
|
|
82
82
|
}
|