proicons 4.8.1 → 4.10.0

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/lib/proicons.d.ts CHANGED
@@ -1,440 +1,8 @@
1
+ import icons from './icons';
2
+ import categories from './categories';
1
3
  import replace from './replace';
2
4
  import getIconInfo from './getIconInfo';
3
5
  import search from './search';
4
- declare const _default: {
5
- icons: {
6
- add: string;
7
- addCircular: string;
8
- addRhombus: string;
9
- addSquare: string;
10
- addSquareMultiple: string;
11
- "addSquareMultiple-Var": string;
12
- appRemove: string;
13
- apps: string;
14
- appsAdd: string;
15
- backspace: string;
16
- cancel: string;
17
- checkmark: string;
18
- compose: string;
19
- copy: string;
20
- "copy-Var": string;
21
- crop: string;
22
- cut: string;
23
- delete: string;
24
- eye: string;
25
- eyeOff: string;
26
- fastFoward: string;
27
- heart: string;
28
- heartStylistic: string;
29
- keyboardShift: string;
30
- more: string;
31
- moreVertical: string;
32
- pause: string;
33
- pencil: string;
34
- play: string;
35
- playCircular: string;
36
- reverse: string;
37
- search: string;
38
- star: string;
39
- tune: string;
40
- checkmarkStarburst: string;
41
- creditCard: string;
42
- lock: string;
43
- lockOpen: string;
44
- shield: string;
45
- shieldCancel: string;
46
- shieldCheckmark: string;
47
- shieldKeyhole: string;
48
- chat: string;
49
- cloud: string;
50
- comment: string;
51
- commentMultiple: string;
52
- "commentMultiple-Var": string;
53
- database: string;
54
- databaseAdd: string;
55
- globe: string;
56
- mail: string;
57
- mailOpen: string;
58
- megaphone: string;
59
- megaphoneLoud: string;
60
- mention: string;
61
- narrator: string;
62
- person: string;
63
- person2: string;
64
- personAdd: string;
65
- personAdd2: string;
66
- personCircle: string;
67
- personMultiple: string;
68
- phoneAccept: string;
69
- phoneHangUp: string;
70
- send: string;
71
- "wi-fi": string;
72
- anchor: string;
73
- attatch: string;
74
- bookInfo2: string;
75
- calendar: string;
76
- diamond: string;
77
- eraser: string;
78
- eyedropper: string;
79
- eyedropperColor: string;
80
- flashlight: string;
81
- gift: string;
82
- hatGraduation: string;
83
- highlighter: string;
84
- hourglass: string;
85
- layers: string;
86
- lightbulb: string;
87
- link: string;
88
- microphone: string;
89
- microphoneOff: string;
90
- pin: string;
91
- pinOff: string;
92
- timer: string;
93
- wrench: string;
94
- alertCircle: string;
95
- alertTriangle: string;
96
- arrowSync: string;
97
- arrowSync2: string;
98
- badge: string;
99
- bell: string;
100
- cancelCircle: string;
101
- cancelSquare: string;
102
- checkmarkCircle: string;
103
- clock: string;
104
- doNotDisturb: string;
105
- info: string;
106
- prohibited: string;
107
- spinner: string;
108
- emoji: string;
109
- emojiFrown: string;
110
- emojiGrin: string;
111
- emojiLaughter: string;
112
- skull: string;
113
- arrowClockwise: string;
114
- arrowCounterclockwise: string;
115
- arrowDown: string;
116
- arrowDownload: string;
117
- arrowEnter: string;
118
- arrowExport: string;
119
- arrowFoward: string;
120
- arrowImport: string;
121
- arrowLeft: string;
122
- arrowMove: string;
123
- arrowRedo: string;
124
- arrowRedo2: string;
125
- arrowReply: string;
126
- arrowRight: string;
127
- arrowRotateClockwise: string;
128
- arrowRotateCounterclockwise: string;
129
- arrowSort: string;
130
- arrowSwap: string;
131
- arrowTrending: string;
132
- arrowUndo: string;
133
- arrowUndo2: string;
134
- arrowUp: string;
135
- arrowUpDown: string;
136
- arrowUpload: string;
137
- chevronDown: string;
138
- chevronLeft: string;
139
- chevronRight: string;
140
- chevronUp: string;
141
- subtract: string;
142
- document: string;
143
- drawText: string;
144
- note: string;
145
- noteAdd: string;
146
- quote: string;
147
- spacebar: string;
148
- symbols: string;
149
- text: string;
150
- textAdd: string;
151
- textAlignCenter: string;
152
- textAlignJustify: string;
153
- textAlignLeft: string;
154
- textAlignRight: string;
155
- textBold: string;
156
- textCaseLowercase: string;
157
- textCaseTitle: string;
158
- textCaseUppercase: string;
159
- textClearFormatting: string;
160
- textCollapse: string;
161
- textColor: string;
162
- textEditStyle: string;
163
- textEffects: string;
164
- textExpand: string;
165
- textFont: string;
166
- textFontSize: string;
167
- textFootnote: string;
168
- textHighlightColor: string;
169
- textIndentDecrease: string;
170
- textIndentIncrease: string;
171
- textItalic: string;
172
- textLarge: string;
173
- textLetterSpacing: string;
174
- textLineHeight: string;
175
- textLineSpacing: string;
176
- textNumberList: string;
177
- textPositionBottom: string;
178
- textPositionMiddle: string;
179
- textPositionTop: string;
180
- textSmall: string;
181
- textStrikethrough: string;
182
- textSubscript: string;
183
- textSuperscript: string;
184
- textTypography: string;
185
- textUnderline: string;
186
- file: string;
187
- fileAdd: string;
188
- fileSync: string;
189
- folder: string;
190
- folderAdd: string;
191
- folderOpen: string;
192
- hardDrive: string;
193
- pdf: string;
194
- pdf2: string;
195
- photo: string;
196
- qrCode: string;
197
- save: string;
198
- saveAs: string;
199
- accessibility: string;
200
- battery: string;
201
- batteryFull: string;
202
- button: string;
203
- checkboxIntermediate2: string;
204
- checkboxUnchecked: string;
205
- checkmarkChecked: string;
206
- checkmarkIntermediate: string;
207
- closedCaptions: string;
208
- cursor: string;
209
- cursorClick: string;
210
- darkTheme: string;
211
- extension: string;
212
- menu: string;
213
- settings: string;
214
- zoomIn: string;
215
- zoomOut: string;
216
- airplane: string;
217
- airplaneLanding: string;
218
- airplaneTakeoff: string;
219
- beach: string;
220
- buildingMultiple: string;
221
- component: string;
222
- directions: string;
223
- home: string;
224
- home2: string;
225
- location: string;
226
- map: string;
227
- museum: string;
228
- vehicleCar: string;
229
- barGraph: string;
230
- boxMargins: string;
231
- clipboard: string;
232
- clipboardPaste: string;
233
- clipboardSearch: string;
234
- compareSize: string;
235
- grid: string;
236
- gridDots: string;
237
- layout: string;
238
- pageMargins: string;
239
- panelLeft: string;
240
- panelLeftContract: string;
241
- panelLeftExpand: string;
242
- panelLeftOpen: string;
243
- panelRight: string;
244
- panelRightContract: string;
245
- panelRightExpand: string;
246
- table: string;
247
- tableSimple: string;
248
- backgroundColor: string;
249
- borderAll: string;
250
- colorPalette: string;
251
- mask: string;
252
- paintBucket: string;
253
- paintbrush: string;
254
- paintbrush2: string;
255
- shapeDifference: string;
256
- shapeIntersect: string;
257
- shapeSubtract: string;
258
- shapeUnion: string;
259
- strokeThickness: string;
260
- arrowMaximize: string;
261
- arrowMinimize: string;
262
- chromeRestore: string;
263
- "chromeRestore-Var": string;
264
- contractDown: string;
265
- expand: string;
266
- fullScreenMaximize: string;
267
- fullScreenMinimize: string;
268
- open: string;
269
- pictureInPicture: string;
270
- pictureInPicture2: string;
271
- pictureInPictureEnter: string;
272
- pictureInPictureExit: string;
273
- window: string;
274
- windowMultiple: string;
275
- "windowMultiple-Var": string;
276
- beaker: string;
277
- braces: string;
278
- bracesVariable: string;
279
- branch: string;
280
- branchCompare: string;
281
- branchFork: string;
282
- branchFork2: string;
283
- bug: string;
284
- code: string;
285
- gitCommit: string;
286
- script: string;
287
- script2: string;
288
- terminal: string;
289
- videoClip: string;
290
- arc: string;
291
- circle: string;
292
- circleSmall: string;
293
- cornerRadius: string;
294
- hexagon: string;
295
- lineDiagonal: string;
296
- octagon: string;
297
- pentagon: string;
298
- rectangleWide: string;
299
- rhombus: string;
300
- square: string;
301
- triangle: string;
302
- backgroundColorAccent: string;
303
- eyedropperColorAccent: string;
304
- highlighterAccent: string;
305
- paintBucketAccent: string;
306
- tagAccent: string;
307
- textColorAccent: string;
308
- textHighlightColorAccent: string;
309
- amazon: string;
310
- appStore: string;
311
- apple: string;
312
- bluetooth: string;
313
- css: string;
314
- facebook: string;
315
- figma: string;
316
- github: string;
317
- google: string;
318
- google2: string;
319
- googleChrome: string;
320
- googlePlay: string;
321
- html: string;
322
- instagram: string;
323
- javascript: string;
324
- microsoft: string;
325
- microsoftEdge: string;
326
- python: string;
327
- roblox: string;
328
- tiktok: string;
329
- visualStudioCode: string;
330
- xTwitter: string;
331
- youtube: string;
332
- youtubeShorts: string;
333
- book: string;
334
- book2: string;
335
- bookAdd: string;
336
- bookAdd2: string;
337
- bookInfo: string;
338
- bookOpen: string;
339
- box: string;
340
- broom: string;
341
- calligraphyPen: string;
342
- cart: string;
343
- compass: string;
344
- flag: string;
345
- library: string;
346
- photoFilter: string;
347
- ribbon: string;
348
- ribbonStar: string;
349
- video: string;
350
- briefcase: string;
351
- briefcase2: string;
352
- cent: string;
353
- dollar: string;
354
- graph: string;
355
- toolbox: string;
356
- cake: string;
357
- coffeeHot: string;
358
- cookies: string;
359
- drop: string;
360
- hamburger: string;
361
- boxDrag: string;
362
- cursorDrag: string;
363
- hand: string;
364
- thumbsDown: string;
365
- thumbsUp: string;
366
- angle: string;
367
- calculator: string;
368
- hash: string;
369
- ruler: string;
370
- screenSize: string;
371
- headphones: string;
372
- movie: string;
373
- musicNote: string;
374
- musicNote2: string;
375
- soundwave: string;
376
- volume: string;
377
- volume0: string;
378
- volume1: string;
379
- volumeMute: string;
380
- leaf: string;
381
- leafThree: string;
382
- leafTwo: string;
383
- history: string;
384
- question: string;
385
- questionCircle: string;
386
- sparkle: string;
387
- alignBottom: string;
388
- alignHorizontalCenters: string;
389
- alignLeft: string;
390
- alignRight: string;
391
- alignTop: string;
392
- alignVerticalCenters: string;
393
- appsList: string;
394
- archive: string;
395
- archiveAdd2: string;
396
- board: string;
397
- bookmark: string;
398
- bookmarkAdd: string;
399
- bookmarkMultiple: string;
400
- "bookmarkMultiple-Var": string;
401
- centerHorizontal: string;
402
- centerVertical: string;
403
- filter: string;
404
- filter2: string;
405
- filterCancel: string;
406
- filterCancel2: string;
407
- sectionBreak: string;
408
- tag: string;
409
- tagMultiple: string;
410
- "tagMultiple-Var": string;
411
- taskList: string;
412
- textBulletList: string;
413
- textBulletListSquare: string;
414
- textBulletListSquareAdd: string;
415
- camera: string;
416
- computer: string;
417
- computerMac: string;
418
- foldableHorizontal: string;
419
- foldableHorizontalHalf: string;
420
- foldableVertical: string;
421
- foldableVerticalHalf: string;
422
- game: string;
423
- keyboard: string;
424
- laptop: string;
425
- motherboard: string;
426
- phone: string;
427
- printer: string;
428
- tv: string;
429
- tablet: string;
430
- watch: string;
431
- brightness: string;
432
- moon: string;
433
- weatherCloudy: string;
434
- };
435
- replace: typeof replace;
436
- getIconInfo: typeof getIconInfo;
437
- categories: string[];
438
- search: typeof search;
439
- };
440
- export default _default;
6
+ export {
7
+ /** List of all available icons with camelCase keys and SVG strings as values. */
8
+ icons, replace, getIconInfo, categories, search };
package/lib/replace.d.ts CHANGED
@@ -1,3 +1,8 @@
1
1
  import { ProIconReplaceConfig } from './interfaces';
2
+ /**
3
+ * Converts all elements with the `proicon` attribute (which can be customised in the config) on the page to an icon corresponding to the attribute value.
4
+ * @param rootElm The element to search inside for children with the `proicon` attribute. Defaults to `document.body`.
5
+ * @param config An optional configuration to customise the behaviour of the replace method
6
+ */
2
7
  declare function replace(rootElm?: Element, config?: ProIconReplaceConfig): void;
3
8
  export default replace;
package/lib/search.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import { ProIconInfo } from "./interfaces";
2
- declare function search(key: string): ProIconInfo[];
2
+ /** Searches for icons with names or tags that contain `key` and returns them as `ProIconInfo`. */
3
+ declare function search(query: string): ProIconInfo[];
3
4
  export default search;
package/package.json CHANGED
@@ -1,41 +1,90 @@
1
- {
2
- "name": "proicons",
3
- "version": "4.8.1",
4
- "description": "A collection of 400+ modern and open-source icons",
5
- "main": "dist/proicons.js",
6
- "files": [
7
- "dist",
8
- "lib"
9
- ],
10
- "scripts": {
11
- "build": "webpack --mode=production --node-env=production",
12
- "dev": "webpack serve --mode=development --open",
13
- "build-files": "node ./bin/build.js",
14
- "dev-build": "webpack --mode=development",
15
- "prepare": "node ./bin/publish.js"
16
- },
17
- "keywords": [
18
- "icons",
19
- "icon-pack",
20
- "roblox",
21
- "js"
22
- ],
23
- "author": "ProCode Software",
24
- "license": "MIT",
25
- "devDependencies": {
26
- "@types/node": "^22.3.0",
27
- "@types/webpack": "^5.28.5",
28
- "@webpack-cli/generators": "^3.0.7",
29
- "html-webpack-plugin": "^5.6.0",
30
- "ts-loader": "^9.5.1",
31
- "typescript": "^5.5.4",
32
- "webpack": "^5.93.0",
33
- "webpack-dev-server": "^5.0.4",
34
- "ansi-colors": "^4.1.3",
35
- "chalk": "^5.3.0",
36
- "prettier": "^3.3.3",
37
- "svg2ttf": "^6.0.3",
38
- "svgo": "^3.3.2"
39
- },
40
- "dependencies": {}
1
+ {
2
+ "name": "proicons",
3
+ "version": "4.10.0",
4
+ "description": "A collection of 400+ modern and open-source icons",
5
+ "type": "module",
6
+ "main": "dist/cjs/proicons.cjs",
7
+ "main:umd": "dist/umd/proicons.cjs",
8
+ "module": "dist/es/proicons.js",
9
+ "typings": "lib/proicons.d.ts",
10
+ "amdName": "proicons",
11
+ "unpkg": "dist/umd/proicons.cjs",
12
+ "jsdelivr": "dist/umd/proicons.cjs",
13
+ "browser": "dist/umd/proicons.cjs",
14
+ "files": [
15
+ "dist",
16
+ "lib"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist/es/proicons.js",
21
+ "require": "./dist/cjs/proicons.cjs",
22
+ "types": "./lib/proicons.d.ts",
23
+ "default": "./dist/umd/proicons.cjs"
24
+ }
25
+ },
26
+ "workspaces": [
27
+ "packages/*",
28
+ "tools/*",
29
+ "site"
30
+ ],
31
+ "repository": {
32
+ "url": "ProCode-Software/proicons"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "homepage": "https://github.com/ProCode-Software/proicons",
38
+ "bugs": "https://github.com/ProCode-Software/proicons/issues",
39
+ "keywords": [
40
+ "icons",
41
+ "icon-pack",
42
+ "js",
43
+ "feather",
44
+ "lucide",
45
+ "fluent",
46
+ "font awesome",
47
+ "svg",
48
+ "proicons",
49
+ "procode"
50
+ ],
51
+ "author": "ProCode Software",
52
+ "license": "MIT",
53
+ "devDependencies": {
54
+ "@twbs/fantasticon": "^3.0.0",
55
+ "@types/node": "^22.7.5",
56
+ "adm-zip": "^0.5.16",
57
+ "ansi-colors": "^4.1.3",
58
+ "chalk": "^5.3.0",
59
+ "d3-delaunay": "^6.0.4",
60
+ "jimp": "^1.6.0",
61
+ "minisearch": "^7.1.0",
62
+ "oslllo-svg-fixer": "^5.0.0",
63
+ "piscina": "^4.7.0",
64
+ "prettier": "^3.3.3",
65
+ "progress": "^2.0.3",
66
+ "sass-embedded": "^1.79.5",
67
+ "sharp": "^0.33.5",
68
+ "svg2ttf": "^6.0.3",
69
+ "svgo": "^3.3.2",
70
+ "typescript": "^5.6.3",
71
+ "vite": "^5.4.9",
72
+ "vite-plugin-html": "^3.2.2",
73
+ "vitepress": "^1.4.1",
74
+ "vue": "^3.5.12",
75
+ "@proicons/cli": "1.0.0"
76
+ },
77
+ "scripts": {
78
+ "dev": "pnpm vite",
79
+ "icons:build": "node --no-deprecation ./bin/build.js",
80
+ "icons:optimize": "pnpm run icons:build -o",
81
+ "icons:build-frozen": "pnpm run icons:build -l",
82
+ "icons:build-rebuild": "pnpm run icons:build -r",
83
+ "font:build": "pnpm run icons:build -f",
84
+ "build": "pnpm tsc && pnpm vite build",
85
+ "preview": "pnpm vite preview",
86
+ "docs:dev": "pnpm vitepress dev site/src --port 9000",
87
+ "docs:build": "pnpm vitepress build site/src",
88
+ "docs:preview": "pnpm vitepress preview site/src"
89
+ }
41
90
  }