@griddo/core 11.7.9 → 11.7.11
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/components/GriddoImageExp/types.d.ts +0 -1
- package/dist/hooks/themes/useThemeColors.d.ts +20 -20
- package/dist/hooks/themes/useThemeFont.d.ts +20 -20
- package/dist/hooks/themes/useThemePrimitives.d.ts +20 -20
- package/dist/hooks/themes/utils.d.ts +40 -40
- package/dist/hooks/useI18n.d.ts +1 -1
- package/dist/hooks/useLink.d.ts +0 -1
- package/dist/hooks/usePageRelatedContent.d.ts +1 -1
- package/dist/types/core/index.d.ts +0 -1
- package/package.json +5 -17
- package/dist/bin-tools/react-svg-library/index.d.ts +0 -1
- package/dist/bin-tools/react-svg-library/utils.d.ts +0 -5
- package/dist/node/index.d.ts +0 -0
- package/dist/node/index.js +0 -1
- package/dist/react-svg-library.js +0 -2
- package/dist/react-svg-library.js.map +0 -1
|
@@ -14,23 +14,23 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
selector: string;
|
|
17
|
-
description?: string
|
|
17
|
+
description?: string;
|
|
18
18
|
} | {
|
|
19
19
|
primitives: Theme.Primitives;
|
|
20
|
-
preferColorScheme?: false
|
|
20
|
+
preferColorScheme?: false;
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
selector: string;
|
|
24
|
-
description?: string
|
|
24
|
+
description?: string;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
selector: string;
|
|
30
|
-
description?: string
|
|
30
|
+
description?: string;
|
|
31
31
|
customMedia?: {
|
|
32
32
|
[key: `--${string}`]: string;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
36
36
|
subthemes: ({
|
|
@@ -39,23 +39,23 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
39
39
|
id: string;
|
|
40
40
|
name: string;
|
|
41
41
|
selector: string;
|
|
42
|
-
description?: string
|
|
42
|
+
description?: string;
|
|
43
43
|
} | {
|
|
44
44
|
primitives: Theme.Primitives;
|
|
45
|
-
preferColorScheme?: false
|
|
45
|
+
preferColorScheme?: false;
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
selector: string;
|
|
49
|
-
description?: string
|
|
49
|
+
description?: string;
|
|
50
50
|
})[];
|
|
51
|
-
preferColorScheme?: false
|
|
51
|
+
preferColorScheme?: false;
|
|
52
52
|
id: string;
|
|
53
53
|
name: string;
|
|
54
54
|
selector: string;
|
|
55
|
-
description?: string
|
|
55
|
+
description?: string;
|
|
56
56
|
customMedia?: {
|
|
57
57
|
[key: `--${string}`]: string;
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
61
61
|
subthemes: ({
|
|
@@ -64,20 +64,20 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
selector: string;
|
|
67
|
-
description?: string
|
|
67
|
+
description?: string;
|
|
68
68
|
} | {
|
|
69
69
|
primitives: Theme.Primitives;
|
|
70
|
-
preferColorScheme?: false
|
|
70
|
+
preferColorScheme?: false;
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
selector: string;
|
|
74
|
-
description?: string
|
|
74
|
+
description?: string;
|
|
75
75
|
})[];
|
|
76
76
|
preferColorScheme: true;
|
|
77
77
|
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
selector: string;
|
|
80
|
-
description?: string
|
|
80
|
+
description?: string;
|
|
81
81
|
} | {
|
|
82
82
|
primitives: Theme.Primitives;
|
|
83
83
|
subthemes: ({
|
|
@@ -86,19 +86,19 @@ declare function useThemeColors(themeFile: Theme.GriddoTheme, props?: UseThemeCo
|
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
selector: string;
|
|
89
|
-
description?: string
|
|
89
|
+
description?: string;
|
|
90
90
|
} | {
|
|
91
91
|
primitives: Theme.Primitives;
|
|
92
|
-
preferColorScheme?: false
|
|
92
|
+
preferColorScheme?: false;
|
|
93
93
|
id: string;
|
|
94
94
|
name: string;
|
|
95
95
|
selector: string;
|
|
96
|
-
description?: string
|
|
96
|
+
description?: string;
|
|
97
97
|
})[];
|
|
98
|
-
preferColorScheme?: false
|
|
98
|
+
preferColorScheme?: false;
|
|
99
99
|
id: string;
|
|
100
100
|
name: string;
|
|
101
101
|
selector: string;
|
|
102
|
-
description?: string
|
|
102
|
+
description?: string;
|
|
103
103
|
})[];
|
|
104
104
|
export { useThemeColors };
|
|
@@ -14,23 +14,23 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
selector: string;
|
|
17
|
-
description?: string
|
|
17
|
+
description?: string;
|
|
18
18
|
} | {
|
|
19
19
|
primitives: Theme.Primitives;
|
|
20
|
-
preferColorScheme?: false
|
|
20
|
+
preferColorScheme?: false;
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
selector: string;
|
|
24
|
-
description?: string
|
|
24
|
+
description?: string;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
selector: string;
|
|
30
|
-
description?: string
|
|
30
|
+
description?: string;
|
|
31
31
|
customMedia?: {
|
|
32
32
|
[key: `--${string}`]: string;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
36
36
|
subthemes: ({
|
|
@@ -39,23 +39,23 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
39
39
|
id: string;
|
|
40
40
|
name: string;
|
|
41
41
|
selector: string;
|
|
42
|
-
description?: string
|
|
42
|
+
description?: string;
|
|
43
43
|
} | {
|
|
44
44
|
primitives: Theme.Primitives;
|
|
45
|
-
preferColorScheme?: false
|
|
45
|
+
preferColorScheme?: false;
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
selector: string;
|
|
49
|
-
description?: string
|
|
49
|
+
description?: string;
|
|
50
50
|
})[];
|
|
51
|
-
preferColorScheme?: false
|
|
51
|
+
preferColorScheme?: false;
|
|
52
52
|
id: string;
|
|
53
53
|
name: string;
|
|
54
54
|
selector: string;
|
|
55
|
-
description?: string
|
|
55
|
+
description?: string;
|
|
56
56
|
customMedia?: {
|
|
57
57
|
[key: `--${string}`]: string;
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
61
61
|
subthemes: ({
|
|
@@ -64,20 +64,20 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
selector: string;
|
|
67
|
-
description?: string
|
|
67
|
+
description?: string;
|
|
68
68
|
} | {
|
|
69
69
|
primitives: Theme.Primitives;
|
|
70
|
-
preferColorScheme?: false
|
|
70
|
+
preferColorScheme?: false;
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
selector: string;
|
|
74
|
-
description?: string
|
|
74
|
+
description?: string;
|
|
75
75
|
})[];
|
|
76
76
|
preferColorScheme: true;
|
|
77
77
|
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
selector: string;
|
|
80
|
-
description?: string
|
|
80
|
+
description?: string;
|
|
81
81
|
} | {
|
|
82
82
|
primitives: Theme.Primitives;
|
|
83
83
|
subthemes: ({
|
|
@@ -86,19 +86,19 @@ declare function useThemeFont(themeFile: Theme.GriddoTheme, props?: UseThemeFont
|
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
selector: string;
|
|
89
|
-
description?: string
|
|
89
|
+
description?: string;
|
|
90
90
|
} | {
|
|
91
91
|
primitives: Theme.Primitives;
|
|
92
|
-
preferColorScheme?: false
|
|
92
|
+
preferColorScheme?: false;
|
|
93
93
|
id: string;
|
|
94
94
|
name: string;
|
|
95
95
|
selector: string;
|
|
96
|
-
description?: string
|
|
96
|
+
description?: string;
|
|
97
97
|
})[];
|
|
98
|
-
preferColorScheme?: false
|
|
98
|
+
preferColorScheme?: false;
|
|
99
99
|
id: string;
|
|
100
100
|
name: string;
|
|
101
101
|
selector: string;
|
|
102
|
-
description?: string
|
|
102
|
+
description?: string;
|
|
103
103
|
})[];
|
|
104
104
|
export { useThemeFont };
|
|
@@ -14,23 +14,23 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
selector: string;
|
|
17
|
-
description?: string
|
|
17
|
+
description?: string;
|
|
18
18
|
} | {
|
|
19
19
|
primitives: Theme.Primitives;
|
|
20
|
-
preferColorScheme?: false
|
|
20
|
+
preferColorScheme?: false;
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
selector: string;
|
|
24
|
-
description?: string
|
|
24
|
+
description?: string;
|
|
25
25
|
})[];
|
|
26
26
|
preferColorScheme: true;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
29
|
selector: string;
|
|
30
|
-
description?: string
|
|
30
|
+
description?: string;
|
|
31
31
|
customMedia?: {
|
|
32
32
|
[key: `--${string}`]: string;
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
} | {
|
|
35
35
|
primitives: Theme.Primitives;
|
|
36
36
|
subthemes: ({
|
|
@@ -39,23 +39,23 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
39
39
|
id: string;
|
|
40
40
|
name: string;
|
|
41
41
|
selector: string;
|
|
42
|
-
description?: string
|
|
42
|
+
description?: string;
|
|
43
43
|
} | {
|
|
44
44
|
primitives: Theme.Primitives;
|
|
45
|
-
preferColorScheme?: false
|
|
45
|
+
preferColorScheme?: false;
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
48
|
selector: string;
|
|
49
|
-
description?: string
|
|
49
|
+
description?: string;
|
|
50
50
|
})[];
|
|
51
|
-
preferColorScheme?: false
|
|
51
|
+
preferColorScheme?: false;
|
|
52
52
|
id: string;
|
|
53
53
|
name: string;
|
|
54
54
|
selector: string;
|
|
55
|
-
description?: string
|
|
55
|
+
description?: string;
|
|
56
56
|
customMedia?: {
|
|
57
57
|
[key: `--${string}`]: string;
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
} | {
|
|
60
60
|
primitives: Theme.Primitives;
|
|
61
61
|
subthemes: ({
|
|
@@ -64,20 +64,20 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
selector: string;
|
|
67
|
-
description?: string
|
|
67
|
+
description?: string;
|
|
68
68
|
} | {
|
|
69
69
|
primitives: Theme.Primitives;
|
|
70
|
-
preferColorScheme?: false
|
|
70
|
+
preferColorScheme?: false;
|
|
71
71
|
id: string;
|
|
72
72
|
name: string;
|
|
73
73
|
selector: string;
|
|
74
|
-
description?: string
|
|
74
|
+
description?: string;
|
|
75
75
|
})[];
|
|
76
76
|
preferColorScheme: true;
|
|
77
77
|
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
selector: string;
|
|
80
|
-
description?: string
|
|
80
|
+
description?: string;
|
|
81
81
|
} | {
|
|
82
82
|
primitives: Theme.Primitives;
|
|
83
83
|
subthemes: ({
|
|
@@ -86,19 +86,19 @@ declare function useThemePrimitives(themeFile: Theme.GriddoTheme, props: UseThem
|
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
selector: string;
|
|
89
|
-
description?: string
|
|
89
|
+
description?: string;
|
|
90
90
|
} | {
|
|
91
91
|
primitives: Theme.Primitives;
|
|
92
|
-
preferColorScheme?: false
|
|
92
|
+
preferColorScheme?: false;
|
|
93
93
|
id: string;
|
|
94
94
|
name: string;
|
|
95
95
|
selector: string;
|
|
96
|
-
description?: string
|
|
96
|
+
description?: string;
|
|
97
97
|
})[];
|
|
98
|
-
preferColorScheme?: false
|
|
98
|
+
preferColorScheme?: false;
|
|
99
99
|
id: string;
|
|
100
100
|
name: string;
|
|
101
101
|
selector: string;
|
|
102
|
-
description?: string
|
|
102
|
+
description?: string;
|
|
103
103
|
})[];
|
|
104
104
|
export { useThemePrimitives };
|
|
@@ -7,23 +7,23 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
7
7
|
id: string;
|
|
8
8
|
name: string;
|
|
9
9
|
selector: string;
|
|
10
|
-
description?: string
|
|
10
|
+
description?: string;
|
|
11
11
|
} | {
|
|
12
12
|
primitives: Theme.Primitives;
|
|
13
|
-
preferColorScheme?: false
|
|
13
|
+
preferColorScheme?: false;
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
selector: string;
|
|
17
|
-
description?: string
|
|
17
|
+
description?: string;
|
|
18
18
|
})[];
|
|
19
19
|
preferColorScheme: true;
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
selector: string;
|
|
23
|
-
description?: string
|
|
23
|
+
description?: string;
|
|
24
24
|
customMedia?: {
|
|
25
25
|
[key: `--${string}`]: string;
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
} | {
|
|
28
28
|
primitives: Theme.Primitives;
|
|
29
29
|
subthemes: ({
|
|
@@ -32,23 +32,23 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
32
32
|
id: string;
|
|
33
33
|
name: string;
|
|
34
34
|
selector: string;
|
|
35
|
-
description?: string
|
|
35
|
+
description?: string;
|
|
36
36
|
} | {
|
|
37
37
|
primitives: Theme.Primitives;
|
|
38
|
-
preferColorScheme?: false
|
|
38
|
+
preferColorScheme?: false;
|
|
39
39
|
id: string;
|
|
40
40
|
name: string;
|
|
41
41
|
selector: string;
|
|
42
|
-
description?: string
|
|
42
|
+
description?: string;
|
|
43
43
|
})[];
|
|
44
|
-
preferColorScheme?: false
|
|
44
|
+
preferColorScheme?: false;
|
|
45
45
|
id: string;
|
|
46
46
|
name: string;
|
|
47
47
|
selector: string;
|
|
48
|
-
description?: string
|
|
48
|
+
description?: string;
|
|
49
49
|
customMedia?: {
|
|
50
50
|
[key: `--${string}`]: string;
|
|
51
|
-
}
|
|
51
|
+
};
|
|
52
52
|
} | {
|
|
53
53
|
primitives: Theme.Primitives;
|
|
54
54
|
subthemes: ({
|
|
@@ -57,20 +57,20 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
57
57
|
id: string;
|
|
58
58
|
name: string;
|
|
59
59
|
selector: string;
|
|
60
|
-
description?: string
|
|
60
|
+
description?: string;
|
|
61
61
|
} | {
|
|
62
62
|
primitives: Theme.Primitives;
|
|
63
|
-
preferColorScheme?: false
|
|
63
|
+
preferColorScheme?: false;
|
|
64
64
|
id: string;
|
|
65
65
|
name: string;
|
|
66
66
|
selector: string;
|
|
67
|
-
description?: string
|
|
67
|
+
description?: string;
|
|
68
68
|
})[];
|
|
69
69
|
preferColorScheme: true;
|
|
70
70
|
id: string;
|
|
71
71
|
name: string;
|
|
72
72
|
selector: string;
|
|
73
|
-
description?: string
|
|
73
|
+
description?: string;
|
|
74
74
|
} | {
|
|
75
75
|
primitives: Theme.Primitives;
|
|
76
76
|
subthemes: ({
|
|
@@ -79,20 +79,20 @@ export declare const filterThemePrimitivesByType: (themes: Array<Theme.GlobalThe
|
|
|
79
79
|
id: string;
|
|
80
80
|
name: string;
|
|
81
81
|
selector: string;
|
|
82
|
-
description?: string
|
|
82
|
+
description?: string;
|
|
83
83
|
} | {
|
|
84
84
|
primitives: Theme.Primitives;
|
|
85
|
-
preferColorScheme?: false
|
|
85
|
+
preferColorScheme?: false;
|
|
86
86
|
id: string;
|
|
87
87
|
name: string;
|
|
88
88
|
selector: string;
|
|
89
|
-
description?: string
|
|
89
|
+
description?: string;
|
|
90
90
|
})[];
|
|
91
|
-
preferColorScheme?: false
|
|
91
|
+
preferColorScheme?: false;
|
|
92
92
|
id: string;
|
|
93
93
|
name: string;
|
|
94
94
|
selector: string;
|
|
95
|
-
description?: string
|
|
95
|
+
description?: string;
|
|
96
96
|
})[];
|
|
97
97
|
export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTheme | Theme.Theme>, subtheme?: string) => ({
|
|
98
98
|
primitives: Theme.Primitives;
|
|
@@ -102,23 +102,23 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
102
102
|
id: string;
|
|
103
103
|
name: string;
|
|
104
104
|
selector: string;
|
|
105
|
-
description?: string
|
|
105
|
+
description?: string;
|
|
106
106
|
} | {
|
|
107
107
|
primitives: Theme.Primitives;
|
|
108
|
-
preferColorScheme?: false
|
|
108
|
+
preferColorScheme?: false;
|
|
109
109
|
id: string;
|
|
110
110
|
name: string;
|
|
111
111
|
selector: string;
|
|
112
|
-
description?: string
|
|
112
|
+
description?: string;
|
|
113
113
|
})[];
|
|
114
114
|
preferColorScheme: true;
|
|
115
115
|
id: string;
|
|
116
116
|
name: string;
|
|
117
117
|
selector: string;
|
|
118
|
-
description?: string
|
|
118
|
+
description?: string;
|
|
119
119
|
customMedia?: {
|
|
120
120
|
[key: `--${string}`]: string;
|
|
121
|
-
}
|
|
121
|
+
};
|
|
122
122
|
} | {
|
|
123
123
|
primitives: Theme.Primitives;
|
|
124
124
|
subthemes: ({
|
|
@@ -127,23 +127,23 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
127
127
|
id: string;
|
|
128
128
|
name: string;
|
|
129
129
|
selector: string;
|
|
130
|
-
description?: string
|
|
130
|
+
description?: string;
|
|
131
131
|
} | {
|
|
132
132
|
primitives: Theme.Primitives;
|
|
133
|
-
preferColorScheme?: false
|
|
133
|
+
preferColorScheme?: false;
|
|
134
134
|
id: string;
|
|
135
135
|
name: string;
|
|
136
136
|
selector: string;
|
|
137
|
-
description?: string
|
|
137
|
+
description?: string;
|
|
138
138
|
})[];
|
|
139
|
-
preferColorScheme?: false
|
|
139
|
+
preferColorScheme?: false;
|
|
140
140
|
id: string;
|
|
141
141
|
name: string;
|
|
142
142
|
selector: string;
|
|
143
|
-
description?: string
|
|
143
|
+
description?: string;
|
|
144
144
|
customMedia?: {
|
|
145
145
|
[key: `--${string}`]: string;
|
|
146
|
-
}
|
|
146
|
+
};
|
|
147
147
|
} | {
|
|
148
148
|
primitives: Theme.Primitives;
|
|
149
149
|
subthemes: ({
|
|
@@ -152,20 +152,20 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
152
152
|
id: string;
|
|
153
153
|
name: string;
|
|
154
154
|
selector: string;
|
|
155
|
-
description?: string
|
|
155
|
+
description?: string;
|
|
156
156
|
} | {
|
|
157
157
|
primitives: Theme.Primitives;
|
|
158
|
-
preferColorScheme?: false
|
|
158
|
+
preferColorScheme?: false;
|
|
159
159
|
id: string;
|
|
160
160
|
name: string;
|
|
161
161
|
selector: string;
|
|
162
|
-
description?: string
|
|
162
|
+
description?: string;
|
|
163
163
|
})[];
|
|
164
164
|
preferColorScheme: true;
|
|
165
165
|
id: string;
|
|
166
166
|
name: string;
|
|
167
167
|
selector: string;
|
|
168
|
-
description?: string
|
|
168
|
+
description?: string;
|
|
169
169
|
} | {
|
|
170
170
|
primitives: Theme.Primitives;
|
|
171
171
|
subthemes: ({
|
|
@@ -174,18 +174,18 @@ export declare const filterThemePrimitivesByColor: (themes: Array<Theme.GlobalTh
|
|
|
174
174
|
id: string;
|
|
175
175
|
name: string;
|
|
176
176
|
selector: string;
|
|
177
|
-
description?: string
|
|
177
|
+
description?: string;
|
|
178
178
|
} | {
|
|
179
179
|
primitives: Theme.Primitives;
|
|
180
|
-
preferColorScheme?: false
|
|
180
|
+
preferColorScheme?: false;
|
|
181
181
|
id: string;
|
|
182
182
|
name: string;
|
|
183
183
|
selector: string;
|
|
184
|
-
description?: string
|
|
184
|
+
description?: string;
|
|
185
185
|
})[];
|
|
186
|
-
preferColorScheme?: false
|
|
186
|
+
preferColorScheme?: false;
|
|
187
187
|
id: string;
|
|
188
188
|
name: string;
|
|
189
189
|
selector: string;
|
|
190
|
-
description?: string
|
|
190
|
+
description?: string;
|
|
191
191
|
})[];
|
package/dist/hooks/useI18n.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export interface UseI18nProps {
|
|
|
15
15
|
*/
|
|
16
16
|
declare function useI18n(props?: UseI18nProps): {
|
|
17
17
|
getTranslation: <T = string>(key: string, defaultString?: string) => T;
|
|
18
|
-
getNestedTranslation: <
|
|
18
|
+
getNestedTranslation: <T = string>(key: string, defaultString?: string) => T;
|
|
19
19
|
};
|
|
20
20
|
export { useI18n };
|
package/dist/hooks/useLink.d.ts
CHANGED
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": "11.7.
|
|
5
|
+
"version": "11.7.11",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -19,32 +19,21 @@
|
|
|
19
19
|
"main": "dist/index.js",
|
|
20
20
|
"types": "dist/index.d.ts",
|
|
21
21
|
"bin": {
|
|
22
|
-
"griddo-autotypes
|
|
23
|
-
"griddo-autotypes": "dist/autotypes.js",
|
|
24
|
-
"griddo-react-svg-library": "dist/react-svg-library.js"
|
|
22
|
+
"griddo-autotypes": "dist/autotypes.js"
|
|
25
23
|
},
|
|
26
24
|
"exports": {
|
|
27
25
|
".": {
|
|
28
26
|
"types": "./dist/index.d.ts",
|
|
29
27
|
"import": "./dist/index.js",
|
|
30
28
|
"require": "./dist/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./node": {
|
|
33
|
-
"types": "./dist/node/index.d.ts",
|
|
34
|
-
"import": "./dist/node/index.js",
|
|
35
|
-
"require": "./dist/node/index.js"
|
|
36
29
|
}
|
|
37
30
|
},
|
|
38
31
|
"scripts": {
|
|
39
|
-
"// NODE": "",
|
|
40
|
-
"build:node-types": "../../node_modules/.bin/tsc --emitDeclarationOnly --declaration --outDir dist --project ./tsconfig.node.json",
|
|
41
|
-
"build:node-js": "esbuild ./src/node/index.ts --bundle --platform=node --minify --outfile=./dist/node/index.js",
|
|
42
|
-
"build:node": "npm run build:node-js && npm run build:node-types",
|
|
43
32
|
"// CORE (JSX) EXPORT": "",
|
|
44
33
|
"build:core": "rollup -c --sourcemap --bundleConfigAsCjs",
|
|
45
34
|
"prepare": "yarn build",
|
|
46
35
|
"// MONOREPO SCRIPTS": "",
|
|
47
|
-
"build": "npm run build:core
|
|
36
|
+
"build": "npm run build:core",
|
|
48
37
|
"clean": "rm -rf ./dist",
|
|
49
38
|
"// DEV": "",
|
|
50
39
|
"watch": "rollup -cw --bundleConfigAsCjs",
|
|
@@ -65,8 +54,7 @@
|
|
|
65
54
|
},
|
|
66
55
|
"dependencies": {
|
|
67
56
|
"camelcase": "8.0.0",
|
|
68
|
-
"react-aspect-ratio": "1.1.8"
|
|
69
|
-
"svgo": "3.3.2"
|
|
57
|
+
"react-aspect-ratio": "1.1.8"
|
|
70
58
|
},
|
|
71
59
|
"devDependencies": {
|
|
72
60
|
"@babel/core": "7.26.0",
|
|
@@ -128,5 +116,5 @@
|
|
|
128
116
|
"publishConfig": {
|
|
129
117
|
"access": "public"
|
|
130
118
|
},
|
|
131
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "1ee0074395f691b8101fb8cf2ad7238d57a43f31"
|
|
132
120
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/node/index.d.ts
DELETED
|
File without changes
|
package/dist/node/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{execSync as e}from"child_process";import n from"node:fs";import t from"node:path";import o from"prettier";import r from"path";import{fileURLToPath as s}from"node:url";import c from"node:process";function i(e,n,t,o){return new(t||(t=Promise))(function(r,s){function c(e){try{a(o.next(e))}catch(e){s(e)}}function i(e){try{a(o.throw(e))}catch(e){s(e)}}function a(e){var n;e.done?r(e.value):(n=e.value,n instanceof t?n:new t(function(e){e(n)})).then(c,i)}a((o=o.apply(e,n||[])).next())})}"function"==typeof SuppressedError&&SuppressedError;const a=/[\p{Lu}]/u,l=/[\p{Ll}]/u,p=/^[\p{Lu}](?![\p{Lu}])/gu,f=/([\p{Alpha}\p{N}_]|$)/u,u=/[_.\- ]+/,m=new RegExp("^"+u.source),d=new RegExp(u.source+f.source,"gu"),g=new RegExp("\\d+"+f.source,"gu");function y(e,n){if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");if(n={pascalCase:!1,preserveConsecutiveUppercase:!1,...n},0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length)return"";const t=!1===n.locale?e=>e.toLowerCase():e=>e.toLocaleLowerCase(n.locale),o=!1===n.locale?e=>e.toUpperCase():e=>e.toLocaleUpperCase(n.locale);if(1===e.length)return u.test(e)?"":n.pascalCase?o(e):t(e);return e!==t(e)&&(e=((e,n,t,o)=>{let r=!1,s=!1,c=!1,i=!1;for(let p=0;p<e.length;p++){const f=e[p];i=!(p>2)||"-"===e[p-3],r&&a.test(f)?(e=e.slice(0,p)+"-"+e.slice(p),r=!1,c=s,s=!0,p++):s&&c&&l.test(f)&&(!i||o)?(e=e.slice(0,p-1)+"-"+e.slice(p-1),c=s,s=!1,r=!0):(r=n(f)===f&&t(f)!==f,c=s,s=t(f)===f&&n(f)!==f)}return e})(e,t,o,n.preserveConsecutiveUppercase)),e=e.replace(m,""),e=n.preserveConsecutiveUppercase?((e,n)=>(p.lastIndex=0,e.replaceAll(p,e=>n(e))))(e,t):t(e),n.pascalCase&&(e=o(e.charAt(0))+e.slice(1)),((e,n)=>(d.lastIndex=0,g.lastIndex=0,e.replaceAll(g,(t,o,r)=>["_","-"].includes(e.charAt(r+t.length))?t:n(t)).replaceAll(d,(e,t)=>n(t))))(e,o)}const h={directory:"isDirectory",file:"isFile"};const v=(e,n)=>n[h[e]]();function w(e,{cwd:o=c.cwd(),type:r="file",allowSymlinks:i=!0}={}){var a;!function(e){if(!Object.hasOwnProperty.call(h,e))throw new Error(`Invalid type specified: ${e}`)}(r),o=(a=o)instanceof URL?s(a):a;const l=i?n.statSync:n.lstatSync;for(const n of e)try{const e=l(t.resolve(o,n),{throwIfNoEntry:!1});if(!e)continue;if(v(r,e))return n}catch{}}const x=Symbol("findUpStop");function $(e,n={}){let o=t.resolve(((r=n.cwd)instanceof URL?s(r):r)||"");var r;const{root:c}=t.parse(o),i=n.stopAt||c,a=n.limit||Number.POSITIVE_INFINITY,l=[e].flat(),p=n=>{if("function"!=typeof e)return w(l,n);const t=e(n.cwd);return"string"==typeof t?w([t],n):t},f=[];for(;;){const e=p({...n,cwd:o});if(e===x)break;if(e&&f.push(t.resolve(o,e)),o===i||f.length>=a)break;o=t.dirname(o)}return f}function S({cwd:e}={}){const n=function(e,n={}){return $(e,{...n,limit:1})[0]}("package.json",{cwd:e});return n&&t.dirname(n)}const j=__dirname.includes("node_modules");const C=process.argv.splice(2);1!==C.length&&(console.error("No arguments provided or too many arguments."),process.exit(1));const I=C[0],A=`${t.dirname(I)}/.svgs`,E=t.join(function(){const e=__dirname,n=j?"../../../":"../griddo-components";return r.resolve(S({cwd:e}),n)}(),"svgo.config.js"),L=n.existsSync(E),_=L?`--config ${E}`:"";L||(console.warn("\nsvgo.config.js file not found. Continuing without it.\nYou can create a svgo.config.js file in the root of the project with the\nfollowing content to start:"),console.log('\n/** @type {import("svgo").Config} */\nmodule.exports = {\n plugins: [\n {\n name: "preset-default",\n params: {\n overrides: {\n cleanupIds: false,\n removeTitle: false,\n removeDesc: false,\n },\n },\n },\n "removeDimensions",\n "removeXMLNS",\n ],\n};\n')),n.existsSync(I)||(console.error("Source path does not exist."),process.exit(1));const b=e=>{let t=[];return n.readdirSync(e).forEach(o=>{const r=`${e}/${o}`,s=n.statSync(r);s&&s.isDirectory()?t=t.concat(b(r)):t.push(r)}),t},U=b(I).filter(e=>".svg"===t.extname(e)),N=U.map(e=>t.relative(I,e)),R=U.map(e=>t.basename(e,t.extname(e))).map(e=>y(e));!function(){i(this,void 0,void 0,function*(){const t=yield o.resolveConfig(".prettierrc.json");e(`./node_modules/.bin/svgo -q -r ${_} --folder ${I} --output ${A}`);const r=`import * as React from 'react'\n\n${`${R.map((e,n)=>`const ${e} = React.lazy(() => import('./${N[n]}'))`).join(";")}`}\n\n${`export {\n\t${R.map(e=>`${e}`).join(",")}\n}`}\n`;n.existsSync(A)||n.mkdirSync(A),n.writeFile(`${A}/index.tsx`,yield o.format(r,Object.assign(Object.assign({},t),{parser:"typescript"})),e=>{if(e)throw e}),console.log("🦄 Icons ✓")})}();
|
|
2
|
-
//# sourceMappingURL=react-svg-library.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-svg-library.js","sources":["../../../node_modules/tslib/tslib.es6.js","../node_modules/camelcase/index.js","../node_modules/locate-path/index.js","../node_modules/pkg-dir/node_modules/find-up/index.js","../node_modules/pkg-dir/index.js","../src/bin-tools/react-svg-library/utils.ts","../src/bin-tools/react-svg-library/index.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase)) {\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replaceAll(LEADING_CAPITAL, match => toLowerCase(match));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ['_', '-'].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match))\n\t\t.replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\tinput = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n}\n","import process from 'node:process';\nimport path from 'node:path';\nimport fs, {promises as fsPromises} from 'node:fs';\nimport {fileURLToPath} from 'node:url';\nimport pLocate from 'p-locate';\n\nconst typeMappings = {\n\tdirectory: 'isDirectory',\n\tfile: 'isFile',\n};\n\nfunction checkType(type) {\n\tif (Object.hasOwnProperty.call(typeMappings, type)) {\n\t\treturn;\n\t}\n\n\tthrow new Error(`Invalid type specified: ${type}`);\n}\n\nconst matchType = (type, stat) => stat[typeMappings[type]]();\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport async function locatePath(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t\tconcurrency,\n\t\tpreserveOrder,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fsPromises.stat : fsPromises.lstat;\n\n\treturn pLocate(paths, async path_ => {\n\t\ttry {\n\t\t\tconst stat = await statFunction(path.resolve(cwd, path_));\n\t\t\treturn matchType(type, stat);\n\t\t} catch {\n\t\t\treturn false;\n\t\t}\n\t}, {concurrency, preserveOrder});\n}\n\nexport function locatePathSync(\n\tpaths,\n\t{\n\t\tcwd = process.cwd(),\n\t\ttype = 'file',\n\t\tallowSymlinks = true,\n\t} = {},\n) {\n\tcheckType(type);\n\tcwd = toPath(cwd);\n\n\tconst statFunction = allowSymlinks ? fs.statSync : fs.lstatSync;\n\n\tfor (const path_ of paths) {\n\t\ttry {\n\t\t\tconst stat = statFunction(path.resolve(cwd, path_), {\n\t\t\t\tthrowIfNoEntry: false,\n\t\t\t});\n\n\t\t\tif (!stat) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (matchType(type, stat)) {\n\t\t\t\treturn path_;\n\t\t\t}\n\t\t} catch {}\n\t}\n}\n","import path from 'node:path';\nimport {fileURLToPath} from 'node:url';\nimport {locatePath, locatePathSync} from 'locate-path';\n\nconst toPath = urlOrPath => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;\n\nexport const findUpStop = Symbol('findUpStop');\n\nexport async function findUpMultiple(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = path.resolve(directory, options.stopAt || root);\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = async locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePath(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = await name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePath([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\t// eslint-disable-next-line no-await-in-loop\n\t\tconst foundPath = await runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport function findUpMultipleSync(name, options = {}) {\n\tlet directory = path.resolve(toPath(options.cwd) || '');\n\tconst {root} = path.parse(directory);\n\tconst stopAt = options.stopAt || root;\n\tconst limit = options.limit || Number.POSITIVE_INFINITY;\n\tconst paths = [name].flat();\n\n\tconst runMatcher = locateOptions => {\n\t\tif (typeof name !== 'function') {\n\t\t\treturn locatePathSync(paths, locateOptions);\n\t\t}\n\n\t\tconst foundPath = name(locateOptions.cwd);\n\t\tif (typeof foundPath === 'string') {\n\t\t\treturn locatePathSync([foundPath], locateOptions);\n\t\t}\n\n\t\treturn foundPath;\n\t};\n\n\tconst matches = [];\n\t// eslint-disable-next-line no-constant-condition\n\twhile (true) {\n\t\tconst foundPath = runMatcher({...options, cwd: directory});\n\n\t\tif (foundPath === findUpStop) {\n\t\t\tbreak;\n\t\t}\n\n\t\tif (foundPath) {\n\t\t\tmatches.push(path.resolve(directory, foundPath));\n\t\t}\n\n\t\tif (directory === stopAt || matches.length >= limit) {\n\t\t\tbreak;\n\t\t}\n\n\t\tdirectory = path.dirname(directory);\n\t}\n\n\treturn matches;\n}\n\nexport async function findUp(name, options = {}) {\n\tconst matches = await findUpMultiple(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport function findUpSync(name, options = {}) {\n\tconst matches = findUpMultipleSync(name, {...options, limit: 1});\n\treturn matches[0];\n}\n\nexport {\n\tpathExists,\n\tpathExistsSync,\n} from 'path-exists';\n","import path from 'node:path';\nimport {findUp, findUpSync} from 'find-up';\n\nexport async function packageDirectory({cwd} = {}) {\n\tconst filePath = await findUp('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n\nexport function packageDirectorySync({cwd} = {}) {\n\tconst filePath = findUpSync('package.json', {cwd});\n\treturn filePath && path.dirname(filePath);\n}\n","import path from \"path\";\n\nimport { packageDirectorySync } from \"pkg-dir\";\n\nconst IS_COMPONENT_LIBRARY = __dirname.includes(\"node_modules\");\n\n/**\n * Returns the instance or monorepo paths.\n */\nfunction resolveComponentsPath() {\n\tconst cwd = __dirname;\n\tconst componentsPath = IS_COMPONENT_LIBRARY\n\t\t? \"../../../\"\n\t\t: \"../griddo-components\";\n\n\treturn path.resolve(packageDirectorySync({ cwd }), componentsPath);\n}\n\nexport { resolveComponentsPath };\n","import { execSync } from \"child_process\";\nimport fs from \"node:fs\";\nimport path from \"node:path\";\n\nimport camelCase from \"camelcase\";\nimport prettier from \"prettier\";\n\nimport { resolveComponentsPath } from \"./utils\";\n\nconst args = process.argv.splice(2);\n\nif (args.length !== 1) {\n\tconsole.error(\"No arguments provided or too many arguments.\");\n\tprocess.exit(1);\n}\n\nconst SVG_SRC = args[0];\nconst SVG_DEST = `${path.dirname(SVG_SRC)}/.svgs`;\nconst SVGO_BIN = \"./node_modules/.bin/svgo\";\nconst SVG_CONFIG = path.join(resolveComponentsPath(), \"svgo.config.js\");\nconst HAS_CONFIG_FILE = fs.existsSync(SVG_CONFIG);\nconst USE_CONFIG_FILE = HAS_CONFIG_FILE ? `--config ${SVG_CONFIG}` : \"\";\n\nif (!HAS_CONFIG_FILE) {\n\tconsole.warn(`\\nsvgo.config.js file not found. Continuing without it.\nYou can create a svgo.config.js file in the root of the project with the\nfollowing content to start:`);\n\n\tconsole.log(`\n/** @type {import(\"svgo\").Config} */\nmodule.exports = {\n plugins: [\n {\n name: \"preset-default\",\n params: {\n overrides: {\n cleanupIds: false,\n removeTitle: false,\n removeDesc: false,\n },\n },\n },\n \"removeDimensions\",\n \"removeXMLNS\",\n ],\n};\n`);\n}\n\n// check if the src path exists\nif (!fs.existsSync(SVG_SRC)) {\n\tconsole.error(\"Source path does not exist.\");\n\tprocess.exit(1);\n}\n\nconst walk = (dir: string) => {\n\tlet results: Array<string> = [];\n\tconst list = fs.readdirSync(dir);\n\tlist.forEach((file) => {\n\t\tconst newLocalFile = `${dir}/${file}`;\n\t\tconst stat = fs.statSync(newLocalFile);\n\t\tif (stat && stat.isDirectory()) {\n\t\t\tresults = results.concat(walk(newLocalFile));\n\t\t} else {\n\t\t\tresults.push(newLocalFile);\n\t\t}\n\t});\n\treturn results;\n};\n\nconst isSvgFile = (file: string) => path.extname(file) === \".svg\";\nconst relativePath = (file: string) => path.relative(SVG_SRC, file);\nconst baseName = (file: string) => path.basename(file, path.extname(file));\n\nconst svgs = walk(SVG_SRC).filter(isSvgFile);\nconst svgsRelativePath = svgs.map(relativePath);\nconst svgsBaseName = svgs.map(baseName);\nconst svgsCamelCase = svgsBaseName.map((name) => camelCase(name));\n\nasync function main() {\n\t// Get prettier options from config file\n\tconst prettierOptions = await prettier.resolveConfig(\".prettierrc.json\");\n\n\texecSync(\n\t\t`${SVGO_BIN} -q -r ${USE_CONFIG_FILE} --folder ${SVG_SRC} --output ${SVG_DEST}`,\n\t);\n\n\tconst imports = `${svgsCamelCase\n\t\t.map(\n\t\t\t(svg, idx) =>\n\t\t\t\t`const ${svg} = React.lazy(() => import('./${svgsRelativePath[idx]}'))`,\n\t\t)\n\t\t.join(\";\")}`;\n\n\tconst exports = `export {\n\t${svgsCamelCase.map((svg) => `${svg}`).join(\",\")}\n}`;\n\n\tconst indexFile = `import * as React from 'react'\n\n${imports}\n\n${exports}\n`;\n\n\t// .svg folder\n\tif (!fs.existsSync(SVG_DEST)) {\n\t\tfs.mkdirSync(SVG_DEST);\n\t}\n\n\tfs.writeFile(\n\t\t`${SVG_DEST}/index.tsx`,\n\t\tawait prettier.format(indexFile, {\n\t\t\t...prettierOptions,\n\t\t\tparser: \"typescript\",\n\t\t}),\n\t\t(err) => {\n\t\t\tif (err) {\n\t\t\t\tthrow err;\n\t\t\t}\n\t\t},\n\t);\n\n\tconsole.log(\"🦄 Icons ✓\");\n}\n\nmain();\n"],"names":["__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","value","step","next","e","rejected","result","done","then","apply","SuppressedError","UPPERCASE","LOWERCASE","LEADING_CAPITAL","IDENTIFIER","SEPARATORS","LEADING_SEPARATORS","RegExp","source","SEPARATORS_AND_IDENTIFIER","NUMBERS_AND_IDENTIFIER","camelCase","input","options","Array","isArray","TypeError","pascalCase","preserveConsecutiveUppercase","map","x","trim","filter","length","join","toLowerCase","locale","string","toLocaleLowerCase","toUpperCase","toLocaleUpperCase","test","isLastCharLower","isLastCharUpper","isLastLastCharUpper","isLastLastCharPreserved","index","character","slice","preserveCamelCase","replace","lastIndex","replaceAll","match","charAt","pattern","offset","includes","_","identifier","postProcess","typeMappings","directory","file","matchType","type","stat","locatePathSync","paths","cwd","process","allowSymlinks","urlOrPath","Object","hasOwnProperty","call","Error","checkType","URL","fileURLToPath","statFunction","fs","statSync","lstatSync","path_","path","throwIfNoEntry","findUpStop","Symbol","findUpMultipleSync","name","root","parse","stopAt","limit","Number","POSITIVE_INFINITY","flat","runMatcher","locateOptions","foundPath","matches","push","dirname","packageDirectorySync","filePath","findUpSync","IS_COMPONENT_LIBRARY","__dirname","args","argv","splice","console","error","exit","SVG_SRC","SVG_DEST","SVG_CONFIG","componentsPath","resolveComponentsPath","HAS_CONFIG_FILE","existsSync","USE_CONFIG_FILE","warn","log","walk","dir","results","readdirSync","forEach","newLocalFile","isDirectory","concat","svgs","extname","svgsRelativePath","relative","svgsCamelCase","basename","prettierOptions","prettier","resolveConfig","execSync","indexFile","svg","idx","mkdirSync","writeFile","format","assign","parser","err","main"],"mappings":"0MAkHO,SAASA,EAAUC,EAASC,EAAYC,EAAGC,GAE9C,OAAO,IAAKD,IAAMA,EAAIE,UAAU,SAAUC,EAASC,GAC/C,SAASC,EAAUC,GAAS,IAAMC,EAAKN,EAAUO,KAAKF,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC1F,SAASC,EAASJ,GAAS,IAAMC,EAAKN,EAAiB,MAAEK,GAAU,CAAC,MAAOG,GAAKL,EAAOK,EAAI,CAAE,CAC7F,SAASF,EAAKI,GAJlB,IAAeL,EAIaK,EAAOC,KAAOT,EAAQQ,EAAOL,QAJ1CA,EAIyDK,EAAOL,MAJhDA,aAAiBN,EAAIM,EAAQ,IAAIN,EAAE,SAAUG,GAAWA,EAAQG,EAAQ,IAIjBO,KAAKR,EAAWK,EAAW,CAC7GH,GAAMN,EAAYA,EAAUa,MAAMhB,EAASC,GAAc,KAAKS,OAClE,EACJ,CA8MkD,mBAApBO,iBAAiCA,gBCxU/D,MAAMC,EAAY,YACZC,EAAY,YACZC,EAAkB,0BAClBC,EAAa,yBACbC,EAAa,WAEbC,EAAqB,IAAIC,OAAO,IAAMF,EAAWG,QACjDC,EAA4B,IAAIF,OAAOF,EAAWG,OAASJ,EAAWI,OAAQ,MAC9EE,EAAyB,IAAIH,OAAO,OAASH,EAAWI,OAAQ,MAgDvD,SAASG,EAAUC,EAAOC,GACxC,GAAuB,iBAAVD,IAAsBE,MAAMC,QAAQH,GAChD,MAAM,IAAII,UAAU,gDAiBrB,GAdAH,EAAU,CACTI,YAAY,EACZC,8BAA8B,KAC3BL,GAWiB,KAPpBD,EADGE,MAAMC,QAAQH,GACTA,EAAMO,IAAIC,GAAKA,EAAEC,QACvBC,OAAOF,GAAKA,EAAEG,QACdC,KAAK,KAECZ,EAAMS,QAGLE,OACT,MAAO,GAGR,MAAME,GAAi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