@pkoooo/typetool_icons 1.0.3

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.
@@ -0,0 +1,474 @@
1
+ import React from 'react';
2
+
3
+ type IconCategory = 'file' | 'render' | 'view' | 'align' | 'tool' | 'parameter' | 'language' | 'action' | 'general';
4
+ interface IconDef {
5
+ /** Glyph char in the Typetool_Icons font. Omitted for SVG-only icons (their
6
+ * geometry lives in svgSource.ts, rendered by <Icon> directly). */
7
+ char?: string;
8
+ /** Human-readable label (tooltips, pickers, catalog). */
9
+ label: string;
10
+ category: IconCategory;
11
+ /** Extra search terms (the catalog / pickers match these too). */
12
+ keywords?: string[];
13
+ }
14
+ declare const iconRegistry: {
15
+ save: {
16
+ char: string;
17
+ label: string;
18
+ category: "file";
19
+ };
20
+ preset: {
21
+ char: string;
22
+ label: string;
23
+ category: "file";
24
+ };
25
+ presets: {
26
+ char: string;
27
+ label: string;
28
+ category: "file";
29
+ };
30
+ export: {
31
+ char: string;
32
+ label: string;
33
+ category: "file";
34
+ keywords: string[];
35
+ };
36
+ scripts: {
37
+ char: string;
38
+ label: string;
39
+ category: "file";
40
+ };
41
+ 'scripts-languages': {
42
+ char: string;
43
+ label: string;
44
+ category: "file";
45
+ };
46
+ display: {
47
+ char: string;
48
+ label: string;
49
+ category: "file";
50
+ keywords: string[];
51
+ };
52
+ 'render-3d': {
53
+ char: string;
54
+ label: string;
55
+ category: "render";
56
+ };
57
+ 'render-vector': {
58
+ char: string;
59
+ label: string;
60
+ category: "render";
61
+ };
62
+ 'render-pixel': {
63
+ char: string;
64
+ label: string;
65
+ category: "render";
66
+ keywords: string[];
67
+ };
68
+ 'view-text': {
69
+ char: string;
70
+ label: string;
71
+ category: "view";
72
+ };
73
+ 'view-glyphset': {
74
+ char: string;
75
+ label: string;
76
+ category: "view";
77
+ };
78
+ animation: {
79
+ char: string;
80
+ label: string;
81
+ category: "view";
82
+ };
83
+ variable: {
84
+ char: string;
85
+ label: string;
86
+ category: "view";
87
+ };
88
+ 'align-center': {
89
+ char: string;
90
+ label: string;
91
+ category: "align";
92
+ };
93
+ 'align-left': {
94
+ char: string;
95
+ label: string;
96
+ category: "align";
97
+ };
98
+ 'align-middle': {
99
+ char: string;
100
+ label: string;
101
+ category: "align";
102
+ };
103
+ 'align-right': {
104
+ char: string;
105
+ label: string;
106
+ category: "align";
107
+ };
108
+ 'align-variations': {
109
+ char: string;
110
+ label: string;
111
+ category: "align";
112
+ };
113
+ 'type-design': {
114
+ char: string;
115
+ label: string;
116
+ category: "tool";
117
+ };
118
+ subroutines: {
119
+ char: string;
120
+ label: string;
121
+ category: "tool";
122
+ };
123
+ effects: {
124
+ char: string;
125
+ label: string;
126
+ category: "tool";
127
+ keywords: string[];
128
+ };
129
+ settings: {
130
+ char: string;
131
+ label: string;
132
+ category: "tool";
133
+ };
134
+ debugging: {
135
+ char: string;
136
+ label: string;
137
+ category: "tool";
138
+ };
139
+ 'brush-stroke': {
140
+ char: string;
141
+ label: string;
142
+ category: "parameter";
143
+ keywords: string[];
144
+ };
145
+ metrics: {
146
+ char: string;
147
+ label: string;
148
+ category: "parameter";
149
+ };
150
+ 'spacing-proportions': {
151
+ char: string;
152
+ label: string;
153
+ category: "parameter";
154
+ keywords: string[];
155
+ };
156
+ curves: {
157
+ char: string;
158
+ label: string;
159
+ category: "parameter";
160
+ };
161
+ 'optical-compensation': {
162
+ char: string;
163
+ label: string;
164
+ category: "parameter";
165
+ };
166
+ terminal: {
167
+ char: string;
168
+ label: string;
169
+ category: "parameter";
170
+ };
171
+ apex: {
172
+ char: string;
173
+ label: string;
174
+ category: "parameter";
175
+ };
176
+ diacritics: {
177
+ char: string;
178
+ label: string;
179
+ category: "parameter";
180
+ keywords: string[];
181
+ };
182
+ layers: {
183
+ label: string;
184
+ category: "parameter";
185
+ };
186
+ offset: {
187
+ char: string;
188
+ label: string;
189
+ category: "parameter";
190
+ keywords: string[];
191
+ };
192
+ layer: {
193
+ char: string;
194
+ label: string;
195
+ category: "parameter";
196
+ };
197
+ 'shapes-on-skeleton': {
198
+ char: string;
199
+ label: string;
200
+ category: "parameter";
201
+ };
202
+ 'shapes-on-outline': {
203
+ char: string;
204
+ label: string;
205
+ category: "parameter";
206
+ };
207
+ pixelate: {
208
+ char: string;
209
+ label: string;
210
+ category: "parameter";
211
+ };
212
+ voronoi: {
213
+ char: string;
214
+ label: string;
215
+ category: "parameter";
216
+ };
217
+ all: {
218
+ char: string;
219
+ label: string;
220
+ category: "language";
221
+ };
222
+ 'latin-1': {
223
+ char: string;
224
+ label: string;
225
+ category: "language";
226
+ };
227
+ 'latin-extended-a': {
228
+ char: string;
229
+ label: string;
230
+ category: "language";
231
+ };
232
+ 'latin-extended-b': {
233
+ char: string;
234
+ label: string;
235
+ category: "language";
236
+ };
237
+ latin: {
238
+ char: string;
239
+ label: string;
240
+ category: "language";
241
+ };
242
+ chinese: {
243
+ char: string;
244
+ label: string;
245
+ category: "language";
246
+ };
247
+ cyrillic: {
248
+ char: string;
249
+ label: string;
250
+ category: "language";
251
+ };
252
+ hiragana: {
253
+ char: string;
254
+ label: string;
255
+ category: "language";
256
+ };
257
+ katakana: {
258
+ char: string;
259
+ label: string;
260
+ category: "language";
261
+ };
262
+ thai: {
263
+ char: string;
264
+ label: string;
265
+ category: "language";
266
+ };
267
+ greek: {
268
+ char: string;
269
+ label: string;
270
+ category: "language";
271
+ };
272
+ bugs: {
273
+ char: string;
274
+ label: string;
275
+ category: "language";
276
+ };
277
+ visible: {
278
+ char: string;
279
+ label: string;
280
+ category: "general";
281
+ keywords: string[];
282
+ };
283
+ invisible: {
284
+ char: string;
285
+ label: string;
286
+ category: "general";
287
+ keywords: string[];
288
+ };
289
+ variations: {
290
+ char: string;
291
+ label: string;
292
+ category: "general";
293
+ };
294
+ orchestrator: {
295
+ char: string;
296
+ label: string;
297
+ category: "general";
298
+ };
299
+ randomise: {
300
+ char: string;
301
+ label: string;
302
+ category: "action";
303
+ keywords: string[];
304
+ };
305
+ download: {
306
+ char: string;
307
+ label: string;
308
+ category: "action";
309
+ };
310
+ upload: {
311
+ char: string;
312
+ label: string;
313
+ category: "action";
314
+ };
315
+ import: {
316
+ char: string;
317
+ label: string;
318
+ category: "action";
319
+ };
320
+ copy: {
321
+ char: string;
322
+ label: string;
323
+ category: "action";
324
+ keywords: string[];
325
+ };
326
+ delete: {
327
+ char: string;
328
+ label: string;
329
+ category: "action";
330
+ keywords: string[];
331
+ };
332
+ lock: {
333
+ char: string;
334
+ label: string;
335
+ category: "action";
336
+ };
337
+ light: {
338
+ label: string;
339
+ category: "tool";
340
+ keywords: string[];
341
+ };
342
+ 'object-3d': {
343
+ label: string;
344
+ category: "tool";
345
+ keywords: string[];
346
+ };
347
+ 'apply-graphics': {
348
+ label: string;
349
+ category: "tool";
350
+ keywords: string[];
351
+ };
352
+ materials: {
353
+ label: string;
354
+ category: "tool";
355
+ keywords: string[];
356
+ };
357
+ 'material-archive': {
358
+ label: string;
359
+ category: "tool";
360
+ keywords: string[];
361
+ };
362
+ 'saved-objects': {
363
+ label: string;
364
+ category: "tool";
365
+ keywords: string[];
366
+ };
367
+ 'create-scene': {
368
+ label: string;
369
+ category: "tool";
370
+ keywords: string[];
371
+ };
372
+ image: {
373
+ label: string;
374
+ category: "tool";
375
+ keywords: string[];
376
+ };
377
+ formats: {
378
+ label: string;
379
+ category: "tool";
380
+ keywords: string[];
381
+ };
382
+ element: {
383
+ label: string;
384
+ category: "tool";
385
+ keywords: string[];
386
+ };
387
+ shape: {
388
+ label: string;
389
+ category: "tool";
390
+ };
391
+ paragraphs: {
392
+ label: string;
393
+ category: "tool";
394
+ keywords: string[];
395
+ };
396
+ atmosphere: {
397
+ label: string;
398
+ category: "tool";
399
+ keywords: string[];
400
+ };
401
+ props: {
402
+ label: string;
403
+ category: "tool";
404
+ keywords: string[];
405
+ };
406
+ 'glyph-info': {
407
+ label: string;
408
+ category: "tool";
409
+ keywords: string[];
410
+ };
411
+ 'glyph-blueprint': {
412
+ label: string;
413
+ category: "tool";
414
+ keywords: string[];
415
+ };
416
+ 'glyph-components': {
417
+ label: string;
418
+ category: "tool";
419
+ keywords: string[];
420
+ };
421
+ 'glyph-glyphset': {
422
+ label: string;
423
+ category: "tool";
424
+ keywords: string[];
425
+ };
426
+ 'panel-collapse': {
427
+ label: string;
428
+ category: "general";
429
+ keywords: string[];
430
+ };
431
+ 'panel-close': {
432
+ label: string;
433
+ category: "general";
434
+ keywords: string[];
435
+ };
436
+ shortcuts: {
437
+ label: string;
438
+ category: "general";
439
+ keywords: string[];
440
+ };
441
+ };
442
+ type TypeIcon = keyof typeof iconRegistry;
443
+ declare const icons: Record<TypeIcon, string>;
444
+
445
+ interface IconProps {
446
+ name: TypeIcon;
447
+ /** Glyph size — number (px) or any CSS length. Defaults to 1em (inherits). */
448
+ size?: number | string;
449
+ className?: string;
450
+ style?: React.CSSProperties;
451
+ /** Accessible label. When omitted the icon is treated as decorative. */
452
+ title?: string;
453
+ }
454
+ declare const Icon: ({ name, size, className, style, title }: IconProps) => React.JSX.Element;
455
+
456
+ interface SvgIconElement {
457
+ tag: 'path' | 'circle' | 'rect' | 'line';
458
+ attrs: Record<string, number | string>;
459
+ }
460
+ interface SvgIcon {
461
+ viewBox: string;
462
+ strokeWidth?: number;
463
+ mono?: boolean;
464
+ suggestedChar?: string;
465
+ els: SvgIconElement[];
466
+ }
467
+ declare const svgSource: Record<string, SvgIcon>;
468
+
469
+ declare const appIconsSource: Record<string, SvgIcon>;
470
+
471
+ declare const iconViewBox = "11.88 -953.12 948.24 948.24";
472
+ declare const iconPaths: Record<string, string>;
473
+
474
+ export { Icon, type IconCategory, type IconDef, type IconProps, type SvgIcon, type SvgIconElement, type TypeIcon, appIconsSource, iconPaths, iconRegistry, iconViewBox, icons, svgSource };