@griddo/core 10.1.6 → 10.1.7

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.
@@ -6,5 +6,99 @@ import { Theme } from "../..";
6
6
  * This hook can be used to get all color primitives from the given theme.
7
7
  * If theme is not specified, it will return color primitives for all themes.
8
8
  */
9
- declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeColorsProps): Array<Theme.GlobalTheme | Theme.Theme>;
9
+ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeColorsProps): ({
10
+ primitives: Theme.Primitives;
11
+ subthemes: ({
12
+ primitives: Theme.Primitives;
13
+ preferColorScheme: true;
14
+ id: string;
15
+ name: string;
16
+ selector: string;
17
+ description?: string | undefined;
18
+ } | {
19
+ primitives: Theme.Primitives;
20
+ preferColorScheme?: false | undefined;
21
+ id: string;
22
+ name: string;
23
+ selector: string;
24
+ description?: string | undefined;
25
+ })[];
26
+ preferColorScheme: true;
27
+ id: string;
28
+ name: string;
29
+ selector: string;
30
+ description?: string | undefined;
31
+ customMedia?: {
32
+ [key: string]: string;
33
+ } | undefined;
34
+ } | {
35
+ primitives: Theme.Primitives;
36
+ subthemes: ({
37
+ primitives: Theme.Primitives;
38
+ preferColorScheme: true;
39
+ id: string;
40
+ name: string;
41
+ selector: string;
42
+ description?: string | undefined;
43
+ } | {
44
+ primitives: Theme.Primitives;
45
+ preferColorScheme?: false | undefined;
46
+ id: string;
47
+ name: string;
48
+ selector: string;
49
+ description?: string | undefined;
50
+ })[];
51
+ preferColorScheme?: false | undefined;
52
+ id: string;
53
+ name: string;
54
+ selector: string;
55
+ description?: string | undefined;
56
+ customMedia?: {
57
+ [key: string]: string;
58
+ } | undefined;
59
+ } | {
60
+ primitives: Theme.Primitives;
61
+ subthemes: ({
62
+ primitives: Theme.Primitives;
63
+ preferColorScheme: true;
64
+ id: string;
65
+ name: string;
66
+ selector: string;
67
+ description?: string | undefined;
68
+ } | {
69
+ primitives: Theme.Primitives;
70
+ preferColorScheme?: false | undefined;
71
+ id: string;
72
+ name: string;
73
+ selector: string;
74
+ description?: string | undefined;
75
+ })[];
76
+ preferColorScheme: true;
77
+ id: string;
78
+ name: string;
79
+ selector: string;
80
+ description?: string | undefined;
81
+ } | {
82
+ primitives: Theme.Primitives;
83
+ subthemes: ({
84
+ primitives: Theme.Primitives;
85
+ preferColorScheme: true;
86
+ id: string;
87
+ name: string;
88
+ selector: string;
89
+ description?: string | undefined;
90
+ } | {
91
+ primitives: Theme.Primitives;
92
+ preferColorScheme?: false | undefined;
93
+ id: string;
94
+ name: string;
95
+ selector: string;
96
+ description?: string | undefined;
97
+ })[];
98
+ preferColorScheme?: false | undefined;
99
+ id: string;
100
+ name: string;
101
+ selector: string;
102
+ description?: string | undefined;
103
+ })[];
10
104
  export { useThemeColors };
@@ -6,5 +6,99 @@ import { Theme } from "../..";
6
6
  * This hook can be used to get font related primitives from the given theme and subtheme.
7
7
  * If theme or subtheme are not specified, it will return font primitives for all themes and subthemes.
8
8
  */
9
- declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFontProps): Array<Theme.GlobalTheme | Theme.Theme>;
9
+ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFontProps): ({
10
+ primitives: Theme.Primitives;
11
+ subthemes: ({
12
+ primitives: Theme.Primitives;
13
+ preferColorScheme: true;
14
+ id: string;
15
+ name: string;
16
+ selector: string;
17
+ description?: string | undefined;
18
+ } | {
19
+ primitives: Theme.Primitives;
20
+ preferColorScheme?: false | undefined;
21
+ id: string;
22
+ name: string;
23
+ selector: string;
24
+ description?: string | undefined;
25
+ })[];
26
+ preferColorScheme: true;
27
+ id: string;
28
+ name: string;
29
+ selector: string;
30
+ description?: string | undefined;
31
+ customMedia?: {
32
+ [key: string]: string;
33
+ } | undefined;
34
+ } | {
35
+ primitives: Theme.Primitives;
36
+ subthemes: ({
37
+ primitives: Theme.Primitives;
38
+ preferColorScheme: true;
39
+ id: string;
40
+ name: string;
41
+ selector: string;
42
+ description?: string | undefined;
43
+ } | {
44
+ primitives: Theme.Primitives;
45
+ preferColorScheme?: false | undefined;
46
+ id: string;
47
+ name: string;
48
+ selector: string;
49
+ description?: string | undefined;
50
+ })[];
51
+ preferColorScheme?: false | undefined;
52
+ id: string;
53
+ name: string;
54
+ selector: string;
55
+ description?: string | undefined;
56
+ customMedia?: {
57
+ [key: string]: string;
58
+ } | undefined;
59
+ } | {
60
+ primitives: Theme.Primitives;
61
+ subthemes: ({
62
+ primitives: Theme.Primitives;
63
+ preferColorScheme: true;
64
+ id: string;
65
+ name: string;
66
+ selector: string;
67
+ description?: string | undefined;
68
+ } | {
69
+ primitives: Theme.Primitives;
70
+ preferColorScheme?: false | undefined;
71
+ id: string;
72
+ name: string;
73
+ selector: string;
74
+ description?: string | undefined;
75
+ })[];
76
+ preferColorScheme: true;
77
+ id: string;
78
+ name: string;
79
+ selector: string;
80
+ description?: string | undefined;
81
+ } | {
82
+ primitives: Theme.Primitives;
83
+ subthemes: ({
84
+ primitives: Theme.Primitives;
85
+ preferColorScheme: true;
86
+ id: string;
87
+ name: string;
88
+ selector: string;
89
+ description?: string | undefined;
90
+ } | {
91
+ primitives: Theme.Primitives;
92
+ preferColorScheme?: false | undefined;
93
+ id: string;
94
+ name: string;
95
+ selector: string;
96
+ description?: string | undefined;
97
+ })[];
98
+ preferColorScheme?: false | undefined;
99
+ id: string;
100
+ name: string;
101
+ selector: string;
102
+ description?: string | undefined;
103
+ })[];
10
104
  export { useThemeFont };
@@ -6,5 +6,99 @@ import { Theme } from "../..";
6
6
  * This hook can be used to get a specific group of primitives from the given theme and subtheme.
7
7
  * If theme or subtheme are not specified, it will return primitives for all themes and subthemes.
8
8
  */
9
- declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThemePrimitivesProps): Array<Theme.GlobalTheme | Theme.Theme>;
9
+ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThemePrimitivesProps): ({
10
+ primitives: Theme.Primitives;
11
+ subthemes: ({
12
+ primitives: Theme.Primitives;
13
+ preferColorScheme: true;
14
+ id: string;
15
+ name: string;
16
+ selector: string;
17
+ description?: string | undefined;
18
+ } | {
19
+ primitives: Theme.Primitives;
20
+ preferColorScheme?: false | undefined;
21
+ id: string;
22
+ name: string;
23
+ selector: string;
24
+ description?: string | undefined;
25
+ })[];
26
+ preferColorScheme: true;
27
+ id: string;
28
+ name: string;
29
+ selector: string;
30
+ description?: string | undefined;
31
+ customMedia?: {
32
+ [key: string]: string;
33
+ } | undefined;
34
+ } | {
35
+ primitives: Theme.Primitives;
36
+ subthemes: ({
37
+ primitives: Theme.Primitives;
38
+ preferColorScheme: true;
39
+ id: string;
40
+ name: string;
41
+ selector: string;
42
+ description?: string | undefined;
43
+ } | {
44
+ primitives: Theme.Primitives;
45
+ preferColorScheme?: false | undefined;
46
+ id: string;
47
+ name: string;
48
+ selector: string;
49
+ description?: string | undefined;
50
+ })[];
51
+ preferColorScheme?: false | undefined;
52
+ id: string;
53
+ name: string;
54
+ selector: string;
55
+ description?: string | undefined;
56
+ customMedia?: {
57
+ [key: string]: string;
58
+ } | undefined;
59
+ } | {
60
+ primitives: Theme.Primitives;
61
+ subthemes: ({
62
+ primitives: Theme.Primitives;
63
+ preferColorScheme: true;
64
+ id: string;
65
+ name: string;
66
+ selector: string;
67
+ description?: string | undefined;
68
+ } | {
69
+ primitives: Theme.Primitives;
70
+ preferColorScheme?: false | undefined;
71
+ id: string;
72
+ name: string;
73
+ selector: string;
74
+ description?: string | undefined;
75
+ })[];
76
+ preferColorScheme: true;
77
+ id: string;
78
+ name: string;
79
+ selector: string;
80
+ description?: string | undefined;
81
+ } | {
82
+ primitives: Theme.Primitives;
83
+ subthemes: ({
84
+ primitives: Theme.Primitives;
85
+ preferColorScheme: true;
86
+ id: string;
87
+ name: string;
88
+ selector: string;
89
+ description?: string | undefined;
90
+ } | {
91
+ primitives: Theme.Primitives;
92
+ preferColorScheme?: false | undefined;
93
+ id: string;
94
+ name: string;
95
+ selector: string;
96
+ description?: string | undefined;
97
+ })[];
98
+ preferColorScheme?: false | undefined;
99
+ id: string;
100
+ name: string;
101
+ selector: string;
102
+ description?: string | undefined;
103
+ })[];
10
104
  export { useThemePrimitives };