sanity-plugin-iconify 2.0.0 → 2.0.2

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 CHANGED
@@ -1,5 +1,4 @@
1
1
  import { BaseSchemaDefinition } from 'sanity';
2
- import type { IconifyInfo } from '@iconify/types';
3
2
  import { Plugin as Plugin_2 } from 'sanity';
4
3
 
5
4
  export { BaseSchemaDefinition };
@@ -19,6 +18,63 @@ export { BaseSchemaDefinition };
19
18
  */
20
19
  export declare const iconify: Plugin_2<void | IconifyPluginConfig>;
21
20
 
21
+ /**
22
+ * Icon set information block.
23
+ */
24
+ declare interface IconifyInfo {
25
+ // Icon set name.
26
+ name: string;
27
+
28
+ // Total number of icons.
29
+ total?: number;
30
+
31
+ // Version string.
32
+ version?: string;
33
+
34
+ // Author information.
35
+ author: {
36
+ // Author name.
37
+ name: string;
38
+
39
+ // Link to author's website or icon set website.
40
+ url?: string;
41
+ };
42
+
43
+ // License
44
+ license: {
45
+ // Human readable license.
46
+ title: string;
47
+
48
+ // SPDX license identifier.
49
+ spdx?: string;
50
+
51
+ // License URL.
52
+ url?: string;
53
+ };
54
+
55
+ // Array of icons that should be used for samples in icon sets list.
56
+ samples?: string[];
57
+
58
+ // Icon grid: number or array of numbers.
59
+ height?: number | number[];
60
+
61
+ // Display height for samples: 16 - 24
62
+ displayHeight?: number;
63
+
64
+ // Category on Iconify collections list.
65
+ category?: string;
66
+
67
+ // List of tags to group similar icon sets.
68
+ tags?: string[];
69
+
70
+ // Palette status. True if icons have predefined color scheme, false if icons use currentColor.
71
+ // Ideally, icon set should not mix icons with and without palette to simplify search.
72
+ palette?: boolean;
73
+
74
+ // If true, icon set should not appear in icon sets list.
75
+ hidden?: boolean;
76
+ }
77
+
22
78
  export declare interface IconifyPluginConfig {
23
79
  collections?: IconPrefix[];
24
80
  showName?: boolean;
@@ -39,122 +95,141 @@ export declare type IconPrefix =
39
95
  | 'material-symbols-light'
40
96
  | 'ic'
41
97
  | 'mdi'
42
- | 'ph'
98
+ | 'mdi-light'
99
+ | 'line-md'
43
100
  | 'solar'
44
101
  | 'tabler'
45
102
  | 'hugeicons'
46
103
  | 'mingcute'
47
104
  | 'ri'
48
- | 'bi'
49
- | 'carbon'
105
+ | 'mynaui'
50
106
  | 'iconamoon'
51
107
  | 'iconoir'
52
- | 'ion'
53
108
  | 'lucide'
109
+ | 'lucide-lab'
54
110
  | 'uil'
55
111
  | 'tdesign'
56
- | 'teenyicons'
57
- | 'clarity'
112
+ | 'si'
58
113
  | 'bx'
59
114
  | 'bxs'
60
115
  | 'majesticons'
61
- | 'ant-design'
62
116
  | 'gg'
63
- | 'gravity-ui'
64
- | 'octicon'
65
- | 'memory'
66
- | 'cil'
67
117
  | 'flowbite'
68
- | 'mynaui'
69
118
  | 'basil'
70
119
  | 'pixelarticons'
120
+ | 'pixel'
71
121
  | 'akar-icons'
72
122
  | 'ci'
73
- | 'system-uicons'
123
+ | 'proicons'
74
124
  | 'typcn'
75
- | 'radix-icons'
76
- | 'zondicons'
77
- | 'ep'
125
+ | 'meteor-icons'
126
+ | 'prime'
78
127
  | 'circum'
79
- | 'mdi-light'
80
128
  | 'fe'
81
129
  | 'eos-icons'
82
130
  | 'bitcoin-icons'
83
- | 'charm'
84
- | 'prime'
85
131
  | 'humbleicons'
86
- | 'uiw'
87
132
  | 'uim'
88
133
  | 'uit'
89
134
  | 'uis'
90
- | 'maki'
91
135
  | 'gridicons'
92
136
  | 'mi'
93
- | 'quill'
94
- | 'gala'
137
+ | 'cuida'
138
+ | 'weui'
139
+ | 'duo-icons'
140
+ | 'svg-spinners'
95
141
  | 'lets-icons'
96
- | 'f7'
97
142
  | 'mage'
98
- | 'marketeq'
99
- | 'fluent'
143
+ | 'stash'
144
+ | 'lineicons'
100
145
  | 'icon-park-outline'
101
146
  | 'icon-park-solid'
102
147
  | 'icon-park-twotone'
103
- | 'icon-park'
104
- | 'vscode-icons'
105
148
  | 'jam'
149
+ | 'guidance'
150
+ | 'carbon'
151
+ | 'ion'
152
+ | 'famicons'
153
+ | 'ant-design'
154
+ | 'lsicon'
155
+ | 'gravity-ui'
156
+ | 'cil'
157
+ | 'ep'
158
+ | 'charm'
159
+ | 'quill'
160
+ | 'bytesize'
161
+ | 'bi'
162
+ | 'rivet-icons'
163
+ | 'nimbus'
164
+ | 'formkit'
165
+ | 'fluent'
166
+ | 'ph'
167
+ | 'teenyicons'
168
+ | 'clarity'
169
+ | 'ix'
170
+ | 'octicon'
171
+ | 'memory'
172
+ | 'system-uicons'
173
+ | 'radix-icons'
174
+ | 'zondicons'
175
+ | 'uiw'
176
+ | 'maki'
177
+ | 'codex'
178
+ | 'ei'
106
179
  | 'heroicons'
107
- | 'codicon'
108
- | 'pajamas'
109
180
  | 'pepicons-pop'
110
181
  | 'pepicons-print'
111
182
  | 'pepicons-pencil'
112
- | 'bytesize'
113
- | 'ei'
183
+ | 'f7'
184
+ | 'pajamas'
185
+ | 'garden'
114
186
  | 'streamline'
115
- | 'guidance'
116
187
  | 'fa6-solid'
117
188
  | 'fa6-regular'
118
189
  | 'ooui'
119
- | 'nimbus'
120
190
  | 'oui'
121
- | 'formkit'
122
- | 'line-md'
123
- | 'meteocons'
124
- | 'svg-spinners'
125
- | 'openmoji'
126
- | 'twemoji'
127
- | 'noto'
128
- | 'fluent-emoji'
129
- | 'fluent-emoji-flat'
130
- | 'fluent-emoji-high-contrast'
131
- | 'noto-v1'
132
- | 'emojione'
133
- | 'emojione-monotone'
134
- | 'emojione-v1'
135
- | 'fxemoji'
136
- | 'streamline-emojis'
137
- | 'bxl'
138
- | 'logos'
191
+ | 'nrk'
192
+ | 'qlementine-icons'
193
+ | 'fluent-color'
194
+ | 'icon-park'
195
+ | 'marketeq'
196
+ | 'vscode-icons'
197
+ | 'codicon'
198
+ | 'material-icon-theme'
199
+ | 'file-icons'
200
+ | 'devicon'
201
+ | 'devicon-plain'
202
+ | 'catppuccin'
203
+ | 'skill-icons'
204
+ | 'unjs'
139
205
  | 'simple-icons'
206
+ | 'logos'
140
207
  | 'cib'
141
208
  | 'fa6-brands'
209
+ | 'bxl'
142
210
  | 'nonicons'
143
211
  | 'arcticons'
144
212
  | 'cbi'
145
- | 'file-icons'
146
- | 'devicon'
147
- | 'devicon-plain'
148
- | 'skill-icons'
149
- | 'unjs'
150
213
  | 'brandico'
151
214
  | 'entypo-social'
152
215
  | 'token'
153
216
  | 'token-branded'
154
217
  | 'cryptocurrency'
155
218
  | 'cryptocurrency-color'
156
- | 'flag'
219
+ | 'openmoji'
220
+ | 'twemoji'
221
+ | 'noto'
222
+ | 'fluent-emoji'
223
+ | 'fluent-emoji-flat'
224
+ | 'fluent-emoji-high-contrast'
225
+ | 'noto-v1'
226
+ | 'emojione'
227
+ | 'emojione-monotone'
228
+ | 'emojione-v1'
229
+ | 'fxemoji'
230
+ | 'streamline-emojis'
157
231
  | 'circle-flags'
232
+ | 'flag'
158
233
  | 'flagpack'
159
234
  | 'cif'
160
235
  | 'gis'
@@ -164,6 +239,7 @@ export declare type IconPrefix =
164
239
  | 'fad'
165
240
  | 'academicons'
166
241
  | 'wi'
242
+ | 'meteocons'
167
243
  | 'healthicons'
168
244
  | 'medical-icon'
169
245
  | 'covid'
@@ -176,6 +252,7 @@ export declare type IconPrefix =
176
252
  | 'raphael'
177
253
  | 'icons8'
178
254
  | 'iwwa'
255
+ | 'gala'
179
256
  | 'heroicons-outline'
180
257
  | 'heroicons-solid'
181
258
  | 'fa-solid'
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { BaseSchemaDefinition } from 'sanity';
2
- import type { IconifyInfo } from '@iconify/types';
3
2
  import { Plugin as Plugin_2 } from 'sanity';
4
3
 
5
4
  export { BaseSchemaDefinition };
@@ -19,6 +18,63 @@ export { BaseSchemaDefinition };
19
18
  */
20
19
  export declare const iconify: Plugin_2<void | IconifyPluginConfig>;
21
20
 
21
+ /**
22
+ * Icon set information block.
23
+ */
24
+ declare interface IconifyInfo {
25
+ // Icon set name.
26
+ name: string;
27
+
28
+ // Total number of icons.
29
+ total?: number;
30
+
31
+ // Version string.
32
+ version?: string;
33
+
34
+ // Author information.
35
+ author: {
36
+ // Author name.
37
+ name: string;
38
+
39
+ // Link to author's website or icon set website.
40
+ url?: string;
41
+ };
42
+
43
+ // License
44
+ license: {
45
+ // Human readable license.
46
+ title: string;
47
+
48
+ // SPDX license identifier.
49
+ spdx?: string;
50
+
51
+ // License URL.
52
+ url?: string;
53
+ };
54
+
55
+ // Array of icons that should be used for samples in icon sets list.
56
+ samples?: string[];
57
+
58
+ // Icon grid: number or array of numbers.
59
+ height?: number | number[];
60
+
61
+ // Display height for samples: 16 - 24
62
+ displayHeight?: number;
63
+
64
+ // Category on Iconify collections list.
65
+ category?: string;
66
+
67
+ // List of tags to group similar icon sets.
68
+ tags?: string[];
69
+
70
+ // Palette status. True if icons have predefined color scheme, false if icons use currentColor.
71
+ // Ideally, icon set should not mix icons with and without palette to simplify search.
72
+ palette?: boolean;
73
+
74
+ // If true, icon set should not appear in icon sets list.
75
+ hidden?: boolean;
76
+ }
77
+
22
78
  export declare interface IconifyPluginConfig {
23
79
  collections?: IconPrefix[];
24
80
  showName?: boolean;
@@ -39,122 +95,141 @@ export declare type IconPrefix =
39
95
  | 'material-symbols-light'
40
96
  | 'ic'
41
97
  | 'mdi'
42
- | 'ph'
98
+ | 'mdi-light'
99
+ | 'line-md'
43
100
  | 'solar'
44
101
  | 'tabler'
45
102
  | 'hugeicons'
46
103
  | 'mingcute'
47
104
  | 'ri'
48
- | 'bi'
49
- | 'carbon'
105
+ | 'mynaui'
50
106
  | 'iconamoon'
51
107
  | 'iconoir'
52
- | 'ion'
53
108
  | 'lucide'
109
+ | 'lucide-lab'
54
110
  | 'uil'
55
111
  | 'tdesign'
56
- | 'teenyicons'
57
- | 'clarity'
112
+ | 'si'
58
113
  | 'bx'
59
114
  | 'bxs'
60
115
  | 'majesticons'
61
- | 'ant-design'
62
116
  | 'gg'
63
- | 'gravity-ui'
64
- | 'octicon'
65
- | 'memory'
66
- | 'cil'
67
117
  | 'flowbite'
68
- | 'mynaui'
69
118
  | 'basil'
70
119
  | 'pixelarticons'
120
+ | 'pixel'
71
121
  | 'akar-icons'
72
122
  | 'ci'
73
- | 'system-uicons'
123
+ | 'proicons'
74
124
  | 'typcn'
75
- | 'radix-icons'
76
- | 'zondicons'
77
- | 'ep'
125
+ | 'meteor-icons'
126
+ | 'prime'
78
127
  | 'circum'
79
- | 'mdi-light'
80
128
  | 'fe'
81
129
  | 'eos-icons'
82
130
  | 'bitcoin-icons'
83
- | 'charm'
84
- | 'prime'
85
131
  | 'humbleicons'
86
- | 'uiw'
87
132
  | 'uim'
88
133
  | 'uit'
89
134
  | 'uis'
90
- | 'maki'
91
135
  | 'gridicons'
92
136
  | 'mi'
93
- | 'quill'
94
- | 'gala'
137
+ | 'cuida'
138
+ | 'weui'
139
+ | 'duo-icons'
140
+ | 'svg-spinners'
95
141
  | 'lets-icons'
96
- | 'f7'
97
142
  | 'mage'
98
- | 'marketeq'
99
- | 'fluent'
143
+ | 'stash'
144
+ | 'lineicons'
100
145
  | 'icon-park-outline'
101
146
  | 'icon-park-solid'
102
147
  | 'icon-park-twotone'
103
- | 'icon-park'
104
- | 'vscode-icons'
105
148
  | 'jam'
149
+ | 'guidance'
150
+ | 'carbon'
151
+ | 'ion'
152
+ | 'famicons'
153
+ | 'ant-design'
154
+ | 'lsicon'
155
+ | 'gravity-ui'
156
+ | 'cil'
157
+ | 'ep'
158
+ | 'charm'
159
+ | 'quill'
160
+ | 'bytesize'
161
+ | 'bi'
162
+ | 'rivet-icons'
163
+ | 'nimbus'
164
+ | 'formkit'
165
+ | 'fluent'
166
+ | 'ph'
167
+ | 'teenyicons'
168
+ | 'clarity'
169
+ | 'ix'
170
+ | 'octicon'
171
+ | 'memory'
172
+ | 'system-uicons'
173
+ | 'radix-icons'
174
+ | 'zondicons'
175
+ | 'uiw'
176
+ | 'maki'
177
+ | 'codex'
178
+ | 'ei'
106
179
  | 'heroicons'
107
- | 'codicon'
108
- | 'pajamas'
109
180
  | 'pepicons-pop'
110
181
  | 'pepicons-print'
111
182
  | 'pepicons-pencil'
112
- | 'bytesize'
113
- | 'ei'
183
+ | 'f7'
184
+ | 'pajamas'
185
+ | 'garden'
114
186
  | 'streamline'
115
- | 'guidance'
116
187
  | 'fa6-solid'
117
188
  | 'fa6-regular'
118
189
  | 'ooui'
119
- | 'nimbus'
120
190
  | 'oui'
121
- | 'formkit'
122
- | 'line-md'
123
- | 'meteocons'
124
- | 'svg-spinners'
125
- | 'openmoji'
126
- | 'twemoji'
127
- | 'noto'
128
- | 'fluent-emoji'
129
- | 'fluent-emoji-flat'
130
- | 'fluent-emoji-high-contrast'
131
- | 'noto-v1'
132
- | 'emojione'
133
- | 'emojione-monotone'
134
- | 'emojione-v1'
135
- | 'fxemoji'
136
- | 'streamline-emojis'
137
- | 'bxl'
138
- | 'logos'
191
+ | 'nrk'
192
+ | 'qlementine-icons'
193
+ | 'fluent-color'
194
+ | 'icon-park'
195
+ | 'marketeq'
196
+ | 'vscode-icons'
197
+ | 'codicon'
198
+ | 'material-icon-theme'
199
+ | 'file-icons'
200
+ | 'devicon'
201
+ | 'devicon-plain'
202
+ | 'catppuccin'
203
+ | 'skill-icons'
204
+ | 'unjs'
139
205
  | 'simple-icons'
206
+ | 'logos'
140
207
  | 'cib'
141
208
  | 'fa6-brands'
209
+ | 'bxl'
142
210
  | 'nonicons'
143
211
  | 'arcticons'
144
212
  | 'cbi'
145
- | 'file-icons'
146
- | 'devicon'
147
- | 'devicon-plain'
148
- | 'skill-icons'
149
- | 'unjs'
150
213
  | 'brandico'
151
214
  | 'entypo-social'
152
215
  | 'token'
153
216
  | 'token-branded'
154
217
  | 'cryptocurrency'
155
218
  | 'cryptocurrency-color'
156
- | 'flag'
219
+ | 'openmoji'
220
+ | 'twemoji'
221
+ | 'noto'
222
+ | 'fluent-emoji'
223
+ | 'fluent-emoji-flat'
224
+ | 'fluent-emoji-high-contrast'
225
+ | 'noto-v1'
226
+ | 'emojione'
227
+ | 'emojione-monotone'
228
+ | 'emojione-v1'
229
+ | 'fxemoji'
230
+ | 'streamline-emojis'
157
231
  | 'circle-flags'
232
+ | 'flag'
158
233
  | 'flagpack'
159
234
  | 'cif'
160
235
  | 'gis'
@@ -164,6 +239,7 @@ export declare type IconPrefix =
164
239
  | 'fad'
165
240
  | 'academicons'
166
241
  | 'wi'
242
+ | 'meteocons'
167
243
  | 'healthicons'
168
244
  | 'medical-icon'
169
245
  | 'covid'
@@ -176,6 +252,7 @@ export declare type IconPrefix =
176
252
  | 'raphael'
177
253
  | 'icons8'
178
254
  | 'iwwa'
255
+ | 'gala'
179
256
  | 'heroicons-outline'
180
257
  | 'heroicons-solid'
181
258
  | 'fa-solid'