foamicons 0.10.1 → 1.0.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/README.md CHANGED
@@ -218,7 +218,7 @@ import { SettingsIcon, FoamSettings } from 'foamicons';
218
218
  | `CircleX` | `Close`, `Cancel`, `X`, `Times`, `Clear` |
219
219
  | `CircleAlert` | `WarningCircle`, `Error` |
220
220
 
221
- See [`icons/aliases.json`](../../icons/aliases.json) for the complete list.
221
+ See the published metadata for the complete list: `import aliases from 'foamicons/aliases'`
222
222
 
223
223
  ### Alias Lookup Helpers
224
224
 
@@ -237,6 +237,39 @@ getCanonicalName('Settings'); // 'Cog'
237
237
  getCanonicalName('Search'); // 'Search' (already canonical)
238
238
  ```
239
239
 
240
+ ## Machine-Readable Metadata
241
+
242
+ Foamicons ships metadata files for AI tools and editor plugins. No need to parse `dist/index.js`:
243
+
244
+ ```ts
245
+ // Full catalog with all icons, logos, aliases, tags, and variants
246
+ import catalog from 'foamicons/catalog';
247
+
248
+ // Alias → canonical name mapping
249
+ import aliases from 'foamicons/aliases';
250
+
251
+ // Canonical name → tags mapping
252
+ import tags from 'foamicons/tags';
253
+
254
+ // Old name → new name mapping (for migrations)
255
+ import deprecations from 'foamicons/deprecations';
256
+ ```
257
+
258
+ ### Typed Name Helpers
259
+
260
+ ```ts
261
+ import {
262
+ iconNames, // readonly array of all icon component names
263
+ logoNames, // readonly array of all logo component names
264
+ allNames, // combined icons + logos
265
+ baseIconNames, // base names without variant suffixes
266
+ baseLogoNames, // base logo names without variant suffixes
267
+ } from 'foamicons';
268
+
269
+ // TypeScript types for validation
270
+ import type { IconName, LogoName, BaseIconName, BaseLogoName } from 'foamicons';
271
+ ```
272
+
240
273
  ## Props
241
274
 
242
275
  | Prop | Type | Default | Description |
@@ -311,6 +344,19 @@ npm run build
311
344
  npm test
312
345
  ```
313
346
 
347
+ ## For AI Assistants
348
+
349
+ If you are an AI helping a user build a UI with foamicons:
350
+
351
+ 1. **Read the catalog first** — `import catalog from 'foamicons/catalog'` gives you every icon, logo, variant, alias, and tag without parsing JS.
352
+ 2. **Use canonical PascalCase names** — e.g. `Bell`, not `bell` or `bell-icon`.
353
+ 3. **Variants**: base (no suffix), `Duotone`, `Fill`. Logos: base (color), `Dark`, `Fill`.
354
+ 4. **Aliases exist but prefer canonical names** in generated code — `Cog` not `Settings`.
355
+ 5. **All icons import from `'foamicons'`** — there is one entry point.
356
+ 6. **Tailwind/shadcn pattern**: `<Bell className="h-4 w-4 text-muted-foreground" />`.
357
+ 7. **Check `foamicons/aliases`** to resolve user intent (e.g. user says "settings icon" → `Cog`).
358
+ 8. **See `llms.txt`** in the package root for a compact reference.
359
+
314
360
  ## License
315
361
 
316
362
  MIT
@@ -0,0 +1,482 @@
1
+ {
2
+ "SoundWave": "AudioLines",
3
+ "AudioEqualizer": "AudioLines",
4
+ "Warning": "Alert",
5
+ "Caution": "Alert",
6
+ "Attention": "Alert",
7
+ "Box": "Archive",
8
+ "Storage": "Archive",
9
+ "Direction": "ArchiveArrowUp",
10
+ "Ascending": "ArchiveArrowUp",
11
+ "Down": "ArrowDown",
12
+ "South": "ArrowDown",
13
+ "Descending": "ArrowDown01",
14
+ "SortNumeric": "ArrowDown01",
15
+ "InstagramDown": "ArrowDownIG",
16
+ "IgDown": "ArrowDownIG",
17
+ "SortAsc": "ArrowDownNarrowWide",
18
+ "SortAscending": "ArrowDownNarrowWide",
19
+ "Snapchat": "ArrowDownSC",
20
+ "Tiktok": "ArrowDownTT",
21
+ "Sort": "ArrowDownUp",
22
+ "Reorder": "ArrowDownUp",
23
+ "Swap": "ArrowDownUp",
24
+ "SortDescAlt": "ArrowDownWideNarrow",
25
+ "Youtube": "ArrowDownYT",
26
+ "Left": "ArrowLeft",
27
+ "Back": "ArrowLeft",
28
+ "West": "ArrowLeft",
29
+ "Previous": "ArrowLeft",
30
+ "Right": "ArrowRight",
31
+ "East": "ArrowRight",
32
+ "Next": "ArrowRight",
33
+ "Indent": "ArrowRightToLine",
34
+ "Fold": "ArrowRightToLine",
35
+ "Up": "ArrowUp",
36
+ "North": "ArrowUp",
37
+ "SortAlphaAsc": "ArrowUpAZ",
38
+ "SortAZ": "ArrowUpAZ",
39
+ "InstagramUp": "ArrowUpIG",
40
+ "IgUp": "ArrowUpIG",
41
+ "SortAscAlt": "ArrowUpNarrowWide",
42
+ "SortDesc": "ArrowUpWideNarrow",
43
+ "SortDescending": "ArrowUpWideNarrow",
44
+ "SortAlphaDesc": "ArrowUpZA",
45
+ "SortZA": "ArrowUpZA",
46
+ "Block": "Ban",
47
+ "Forbidden": "Ban",
48
+ "Prohibited": "Ban",
49
+ "NotAllowed": "Ban",
50
+ "Notification": "Bell",
51
+ "Alarm": "Bell",
52
+ "Strong": "Bold",
53
+ "TextBold": "Bold",
54
+ "Flag": "Bookmark",
55
+ "Saved": "Bookmark",
56
+ "Date": "Calendar",
57
+ "Schedule": "Calendar",
58
+ "Event": "Calendar",
59
+ "Analytics": "ChartColumnSquare",
60
+ "Stats": "ChartColumnSquare",
61
+ "Graph": "ChartColumnSquare",
62
+ "BarChart": "ChartColumnSquare",
63
+ "CheckSquare": "Checkbox",
64
+ "Task": "Checkbox",
65
+ "Check": "Checkmark",
66
+ "Done": "Checkmark",
67
+ "Complete": "Checkmark",
68
+ "Tick": "Checkmark",
69
+ "Success": "Checkmark",
70
+ "CaretDown": "ChevronDown",
71
+ "Collapse": "ChevronDown",
72
+ "Dropdown": "ChevronDown",
73
+ "CaretLeft": "ChevronLeft",
74
+ "CaretRight": "ChevronRight",
75
+ "CaretUp": "ChevronUp",
76
+ "Expand": "ChevronUp",
77
+ "Accordion": "ChevronUpDown",
78
+ "WarningCircle": "CircleAlert",
79
+ "CautionCircle": "CircleAlert",
80
+ "AttentionCircle": "CircleAlert",
81
+ "Error": "CircleAlert",
82
+ "CircleCheckbox": "CircleCheck",
83
+ "CheckCircle": "CircleCheck",
84
+ "Money": "CircleDollarSign",
85
+ "Price": "CircleDollarSign",
86
+ "Payment": "CircleDollarSign",
87
+ "Dollar": "CircleDollarSign",
88
+ "Help": "CircleQuestionMark",
89
+ "Question": "CircleQuestionMark",
90
+ "Faq": "CircleQuestionMark",
91
+ "Support": "CircleQuestionMark",
92
+ "CloseCircle": "CircleX",
93
+ "CancelCircle": "CircleX",
94
+ "Clear": "CircleX",
95
+ "Cc": "ClosedCaption",
96
+ "Subtitles": "ClosedCaption",
97
+ "Captions": "ClosedCaption",
98
+ "Checklist": "ClipboardList",
99
+ "Tasks": "ClipboardList",
100
+ "Todo": "ClipboardList",
101
+ "Roster": "ClipboardList",
102
+ "Time": "Clock",
103
+ "Watch": "Clock",
104
+ "Settings": "Cog",
105
+ "Gear": "Cog",
106
+ "Preferences": "Cog",
107
+ "Config": "Cog",
108
+ "Configuration": "Cog",
109
+ "Options": "Cog",
110
+ "Cogwheel": "Cog",
111
+ "ColumnLayout": "Columns3",
112
+ "ThreeColumns": "Columns3",
113
+ "Cmd": "Command",
114
+ "Keyboard": "Command",
115
+ "Shortcut": "Command",
116
+ "AddContent": "ContentPlus",
117
+ "NewPost": "ContentPlus",
118
+ "CreateContent": "ContentPlus",
119
+ "Duplicate": "Copy",
120
+ "Clone": "Copy",
121
+ "Export": "Download",
122
+ "Get": "Download",
123
+ "HalfMoon": "Eclipse",
124
+ "Contrast": "Eclipse",
125
+ "OpenNew": "ExternalLink",
126
+ "External": "ExternalLink",
127
+ "Document": "File",
128
+ "Page": "File",
129
+ "DownloadFile": "FileArrowDown",
130
+ "FileBack": "FileArrowLeft",
131
+ "FilePrevious": "FileArrowLeft",
132
+ "FileTransfer": "FileArrowLeftRight",
133
+ "FileExchange": "FileArrowLeftRight",
134
+ "FileSync": "FileArrowLeftRight",
135
+ "FileForward": "FileArrowRight",
136
+ "FileNext": "FileArrowRight",
137
+ "UploadFile": "FileArrowUp",
138
+ "FileDone": "FileCheck",
139
+ "FileComplete": "FileCheck",
140
+ "FileVerified": "FileCheck",
141
+ "FileSettings": "FileCog",
142
+ "FileConfig": "FileCog",
143
+ "NewFile": "FilePlus",
144
+ "AddFile": "FilePlus",
145
+ "CreateFile": "FilePlus",
146
+ "FileAccount": "FileUser",
147
+ "FileProfile": "FileUser",
148
+ "UserDocument": "FileUser",
149
+ "FileDelete": "FileX",
150
+ "FileRemove": "FileX",
151
+ "FileCancel": "FileX",
152
+ "View": "Eye",
153
+ "Show": "Eye",
154
+ "Visible": "Eye",
155
+ "Visibility": "Eye",
156
+ "Hide": "EyeOff",
157
+ "Hidden": "EyeOff",
158
+ "Invisible": "EyeOff",
159
+ "Fire": "Flame",
160
+ "Hot": "Flame",
161
+ "Trending": "Flame",
162
+ "Directory": "Folder",
163
+ "FolderAnalytics": "FolderChartColumn",
164
+ "FolderStats": "FolderChartColumn",
165
+ "FolderDone": "FolderCheck",
166
+ "FolderComplete": "FolderCheck",
167
+ "FolderSettings": "FolderCog",
168
+ "FolderConfig": "FolderCog",
169
+ "FolderAdd": "FolderPlus",
170
+ "NewFolder": "FolderPlus",
171
+ "FolderDelete": "FolderX",
172
+ "FolderRemove": "FolderX",
173
+ "Sad": "Frown",
174
+ "Unhappy": "Frown",
175
+ "Negative": "Frown",
176
+ "FullScreen": "Fullscreen",
177
+ "MaximizeScreen": "Fullscreen",
178
+ "World": "Globe",
179
+ "Web": "Globe",
180
+ "Internet": "Globe",
181
+ "Language": "Globe",
182
+ "Carousel": "GalleryHorizontal",
183
+ "Slider": "GalleryHorizontal",
184
+ "CarouselEnd": "GalleryHorizontalEnd",
185
+ "SliderEnd": "GalleryHorizontalEnd",
186
+ "GalleryPreview": "GalleryThumbnails",
187
+ "ThumbnailGrid": "GalleryThumbnails",
188
+ "GalleryList": "GalleryVertical",
189
+ "VerticalGallery": "GalleryVertical",
190
+ "GalleryListEnd": "GalleryVerticalEnd",
191
+ "VerticalGalleryEnd": "GalleryVerticalEnd",
192
+ "Love": "Heart",
193
+ "Emotion": "Heart",
194
+ "Likes": "Heart",
195
+ "Recent": "History",
196
+ "Past": "History",
197
+ "Undo": "History",
198
+ "Wifi": "Hotspot",
199
+ "Signal": "Hotspot",
200
+ "Wireless": "Hotspot",
201
+ "Home": "House",
202
+ "Photo": "Image",
203
+ "Picture": "Image",
204
+ "Media": "Image",
205
+ "Photos": "Images",
206
+ "Pictures": "Images",
207
+ "Gallery": "Images",
208
+ "Mailbox": "Inbox",
209
+ "Tray": "Inbox",
210
+ "Information": "Info",
211
+ "About": "Info",
212
+ "Details": "Info",
213
+ "Emphasis": "Italic",
214
+ "TextItalic": "Italic",
215
+ "Url": "Link",
216
+ "Chain": "Link",
217
+ "Connect": "Link",
218
+ "DashboardLayout": "LayoutDashboard",
219
+ "Widgets": "LayoutDashboard",
220
+ "Grid2x2": "LayoutGrid",
221
+ "Grid": "LayoutGrid",
222
+ "Tiles": "LayoutGrid",
223
+ "ListLayout": "LayoutList",
224
+ "ListView": "LayoutList",
225
+ "PanelBottom": "LayoutPanelBottom",
226
+ "BottomPanel": "LayoutPanelBottom",
227
+ "Grid1x2": "LayoutPanelLeft",
228
+ "PanelLeftLayout": "LayoutPanelLeft",
229
+ "PanelRightLayout": "LayoutPanelRight",
230
+ "RightPanel": "LayoutPanelRight",
231
+ "PanelTop": "LayoutPanelTop",
232
+ "TopPanel": "LayoutPanelTop",
233
+ "Rows2": "LayoutRows",
234
+ "HorizontalSplit": "LayoutRows",
235
+ "Rows": "LayoutRows",
236
+ "PageTemplate": "LayoutTemplate",
237
+ "Wireframe": "LayoutTemplate",
238
+ "Items": "List",
239
+ "Bullets": "List",
240
+ "Filter": "ListFilter",
241
+ "Funnel": "ListFilter",
242
+ "NumberedList": "ListOrdered",
243
+ "Ol": "ListOrdered",
244
+ "Loading": "LoaderCircle",
245
+ "Spinner": "LoaderCircle",
246
+ "Progress": "LoaderCircle",
247
+ "Secure": "Lock",
248
+ "Locked": "Lock",
249
+ "Private": "Lock",
250
+ "Protected": "Lock",
251
+ "Logout": "LogOut",
252
+ "SignOut": "LogOut",
253
+ "Exit": "LogOut",
254
+ "Signout": "LogOut",
255
+ "Email": "Mail",
256
+ "Envelope": "Mail",
257
+ "Message": "Mail",
258
+ "Location": "MapPin",
259
+ "Marker": "MapPin",
260
+ "Place": "MapPin",
261
+ "Geo": "MapPin",
262
+ "ExpandWindow": "Maximize",
263
+ "Enlarge": "Maximize",
264
+ "MediaPacks": "ContentUser",
265
+ "PressKit": "ContentUser",
266
+ "BrandAssets": "ContentUser",
267
+ "Mediapacks": "ContentUser",
268
+ "Announce": "Megaphone",
269
+ "Broadcast": "Megaphone",
270
+ "Marketing": "Megaphone",
271
+ "Promote": "Megaphone",
272
+ "Hamburger": "Menu",
273
+ "Navigation": "Menu",
274
+ "Bars": "Menu",
275
+ "Comment": "MessageSquare",
276
+ "ChatSingle": "MessageSquare",
277
+ "Chat": "MessagesSquare",
278
+ "Conversation": "MessagesSquare",
279
+ "Comments": "MessagesSquare",
280
+ "Chats": "MessagesSquare",
281
+ "Subtract": "Minus",
282
+ "Reduce": "Minus",
283
+ "Decrease": "Minus",
284
+ "Dark": "Moon",
285
+ "Night": "Moon",
286
+ "DarkMode": "Moon",
287
+ "Click": "MousePointerClick",
288
+ "Cursor": "MousePointerClick",
289
+ "Drag": "Move",
290
+ "Reposition": "Move",
291
+ "SidebarLeft": "PanelLeft",
292
+ "DrawerLeft": "PanelLeft",
293
+ "SidebarCollapse": "PanelLeftChevronLeft",
294
+ "PanelClose": "PanelLeftChevronLeft",
295
+ "SidebarExpand": "PanelLeftChevronRight",
296
+ "PanelOpen": "PanelLeftChevronRight",
297
+ "SidebarRight": "PanelRight",
298
+ "DrawerRight": "PanelRight",
299
+ "ColorPalette": "Palette",
300
+ "PaintPalette": "Palette",
301
+ "Swatch": "Palette",
302
+ "Hold": "Pause",
303
+ "Suspend": "Pause",
304
+ "Edit": "Pencil",
305
+ "Write": "Pencil",
306
+ "Modify": "Pencil",
307
+ "Thumbtack": "Pin",
308
+ "Tack": "Pin",
309
+ "Stick": "Pin",
310
+ "Start": "Play",
311
+ "PlayButton": "Play",
312
+ "Add": "Plus",
313
+ "New": "Plus",
314
+ "Create": "Plus",
315
+ "QuoteLeft": "QuotationMarkLeft",
316
+ "BlockquoteStart": "QuotationMarkLeft",
317
+ "OpenQuote": "QuotationMarkLeft",
318
+ "QuoteRight": "QuotationMarkRight",
319
+ "BlockquoteEnd": "QuotationMarkRight",
320
+ "CloseQuote": "QuotationMarkRight",
321
+ "Audience": "Reach",
322
+ "Impressions": "Reach",
323
+ "Views": "Reach",
324
+ "Film": "Reel",
325
+ "Short": "Reel",
326
+ "ShortVideo": "Reel",
327
+ "Refresh": "RefreshCw",
328
+ "Reload": "RefreshCw",
329
+ "Sync": "RefreshCw",
330
+ "ClearFormat": "RemoveFormatting",
331
+ "PlainText": "RemoveFormatting",
332
+ "Contacts": "Rolodex",
333
+ "AddressBook": "Rolodex",
334
+ "CardIndex": "Rolodex",
335
+ "Alphabet": "Rolodex",
336
+ "Respond": "Reply",
337
+ "Answer": "Reply",
338
+ "Rotate": "RotateCw",
339
+ "Turn": "RotateCw",
340
+ "Redo": "RotateCw",
341
+ "Launch": "Rocket",
342
+ "Startup": "Rocket",
343
+ "Floppy": "Save",
344
+ "Disk": "Save",
345
+ "Preserve": "Save",
346
+ "Find": "Search",
347
+ "Lookup": "Search",
348
+ "MagnifyingGlass": "Search",
349
+ "Query": "Search",
350
+ "Explore": "Search",
351
+ "FindUser": "SearchUser",
352
+ "UserSearch": "SearchUser",
353
+ "LookupPerson": "SearchUser",
354
+ "SearchPerson": "SearchUser",
355
+ "Forward": "Share",
356
+ "ShareLink": "Share",
357
+ "Controls": "SlidersHorizontal",
358
+ "Adjust": "SlidersHorizontal",
359
+ "Filters": "SlidersHorizontal",
360
+ "Equalizer": "SlidersHorizontal",
361
+ "Happy": "Smile",
362
+ "Positive": "Smile",
363
+ "Smiley": "Smile",
364
+ "Magic": "Sparkles",
365
+ "Ai": "Sparkles",
366
+ "Shine": "Sparkles",
367
+ "Generate": "Sparkles",
368
+ "Stop": "Square",
369
+ "Compose": "SquarePen",
370
+ "WriteNew": "SquarePen",
371
+ "Draft": "SquarePen",
372
+ "Editor": "SquarePen",
373
+ "Favorite": "Star",
374
+ "Favourite": "Star",
375
+ "Rating": "Star",
376
+ "Light": "Sun",
377
+ "Day": "Sun",
378
+ "Bright": "Sun",
379
+ "Label": "Tag",
380
+ "Badge": "Tag",
381
+ "Labels": "Tags",
382
+ "Categories": "Tags",
383
+ "Bullseye": "Target",
384
+ "Goal": "Target",
385
+ "Aim": "Target",
386
+ "Center": "TextAlignCenter",
387
+ "AlignRight": "TextAlignEnd",
388
+ "Justify": "TextAlignJustify",
389
+ "AlignLeft": "TextAlignStart",
390
+ "Dislike": "ThumbsDown",
391
+ "Disapprove": "ThumbsDown",
392
+ "No": "ThumbsDown",
393
+ "Like": "ThumbsUp",
394
+ "Approve": "ThumbsUp",
395
+ "Yes": "ThumbsUp",
396
+ "Delete": "Trash",
397
+ "Remove": "Trash",
398
+ "Bin": "Trash",
399
+ "Garbage": "Trash",
400
+ "Decline": "TrendingDown",
401
+ "Falling": "TrendingDown",
402
+ "Downtrend": "TrendingDown",
403
+ "Growth": "TrendingUp",
404
+ "Increase": "TrendingUp",
405
+ "Rising": "TrendingUp",
406
+ "SortToggle": "TriangleDownUp",
407
+ "OrderToggle": "TriangleDownUp",
408
+ "Toolbox": "ToolCase",
409
+ "Toolkit": "ToolCase",
410
+ "Disconnect": "Unlink",
411
+ "Break": "Unlink",
412
+ "Unsecure": "Unlock",
413
+ "Unlocked": "Unlock",
414
+ "Public": "Unlock",
415
+ "Import": "Upload",
416
+ "Send": "Upload",
417
+ "Person": "User",
418
+ "Profile": "User",
419
+ "Account": "User",
420
+ "People": "Users",
421
+ "Group": "Users",
422
+ "Team": "Users",
423
+ "Persons": "Users",
424
+ "Sound": "Volume2",
425
+ "Audio": "Volume2",
426
+ "Speaker": "Volume2",
427
+ "Volume": "Volume2",
428
+ "Mute": "VolumeOff",
429
+ "Silent": "VolumeOff",
430
+ "NoSound": "VolumeOff",
431
+ "SpeakerOff": "VolumeOff",
432
+ "Verified": "BadgeCheckbox",
433
+ "Certified": "BadgeCheckbox",
434
+ "Approved": "BadgeCheckbox",
435
+ "Mind": "Brain",
436
+ "Intelligence": "Brain",
437
+ "Thinking": "Brain",
438
+ "AreaChart": "ChartArea",
439
+ "GraphArea": "ChartArea",
440
+ "StackedBar": "ChartBarStacked",
441
+ "BarChartStacked": "ChartBarStacked",
442
+ "ColumnChart": "ChartColumn",
443
+ "VerticalBarChart": "ChartColumn",
444
+ "NetworkGraph": "ChartNetwork",
445
+ "NodeGraph": "ChartNetwork",
446
+ "Connections": "ChartNetwork",
447
+ "MixedChart": "ChartNoAxesCombined",
448
+ "ComboChart": "ChartNoAxesCombined",
449
+ "PieChart": "ChartPie",
450
+ "DonutChart": "ChartPie",
451
+ "RotateLeft": "RotateCcw",
452
+ "CounterClockwise": "RotateCcw",
453
+ "Security": "Shield",
454
+ "Protect": "Shield",
455
+ "Defense": "Shield",
456
+ "ShieldVerified": "ShieldCheck",
457
+ "ShieldSecure": "ShieldCheck",
458
+ "Unprotected": "ShieldOff",
459
+ "Insecure": "ShieldOff",
460
+ "Vulnerable": "ShieldOff",
461
+ "AddSecurity": "ShieldPlus",
462
+ "NewShield": "ShieldPlus",
463
+ "UserSecurity": "ShieldUser",
464
+ "Privacy": "ShieldUser",
465
+ "ShieldRemove": "ShieldX",
466
+ "ShieldCancel": "ShieldX",
467
+ "Unshielded": "ShieldX",
468
+ "Camera": "Video",
469
+ "Record": "Video",
470
+ "VideoCamera": "Video",
471
+ "Lightning": "Zap",
472
+ "Bolt": "Zap",
473
+ "Flash": "Zap",
474
+ "Power": "Zap",
475
+ "LightningOff": "ZapOff",
476
+ "NoFlash": "ZapOff",
477
+ "PowerOff": "ZapOff",
478
+ "Close": "X",
479
+ "Cancel": "X",
480
+ "Times": "X",
481
+ "Dismiss": "X"
482
+ }