Skip to content

Commit 9a39a72

Browse files
feat!: Sync icon list with extension (#3656)
Sync the icon list with the current list from the extension. This includes breaking changes as some icons were removed. Closes #3652 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Syncs the IconName enum to the extension (many additions, some removals/renames causing breaks) and updates an example snap manifest shasum. > > - **SDK**: > - **Icon list sync**: Updates `IconName` in `packages/snaps-sdk/src/jsx/components/Icon.ts` to match the extension. > - Adds numerous icons (e.g., `Accessibility`, `Ai`, `ArrowCircleDown`, `CloudUpload`, `Exchange`, `HomeFilled`, `Send`, `StarFilled`, `Verified`, `WalletFilled`, etc.). > - Removes/renames legacy entries (e.g., `Send1`/`Send2`, `Import`, `NotificationCircle`, `LockCircle`, `SecurityCard`, `CardToken`, `BankToken`, `Custody`, `UserCircleLink`, `PlusMinus`, `Timer`, `Tilde`, etc.). > - Includes breaking changes due to removed/renamed enum values. > - **Examples**: > - Update `packages/examples/packages/send-flow/snap.manifest.json` `source.shasum`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit f627d38. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> --------- Co-authored-by: MetaMask Bot <[email protected]>
1 parent ce6de5e commit 9a39a72

File tree

2 files changed

+154
-38
lines changed

2 files changed

+154
-38
lines changed

packages/examples/packages/send-flow/snap.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"url": "https://github.com/MetaMask/snaps.git"
88
},
99
"source": {
10-
"shasum": "Xh2sOY88b7F0pj8n5IzUttqHfpd1omD7O9PoW7Z44Po=",
10+
"shasum": "OSpSGQaqMK1PjuYJkTZfs9/UHvd9T7RYA+52W+mZ2cM=",
1111
"location": {
1212
"npm": {
1313
"filePath": "dist/bundle.js",

packages/snaps-sdk/src/jsx/components/Icon.ts

Lines changed: 153 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,109 +3,196 @@ import { createSnapComponent } from '../component';
33
// Copied from https://github.com/MetaMask/metamask-extension/blob/main/ui/components/component-library/icon/icon.types.ts
44
// Currently requires manual syncing when new icon is added.
55
export enum IconName {
6+
Accessibility = 'accessibility',
7+
Activity = 'activity',
8+
AddCard = 'add-card',
9+
AddCircle = 'add-circle',
610
AddSquare = 'add-square',
711
Add = 'add',
12+
Ai = 'ai',
13+
AlternateEmail = 'alternate-email',
14+
Apple = 'apple',
15+
Apps = 'apps',
816
Arrow2Down = 'arrow-2-down',
917
Arrow2Left = 'arrow-2-left',
1018
Arrow2Right = 'arrow-2-right',
11-
Arrow2Up = 'arrow-2-up',
1219
Arrow2UpRight = 'arrow-2-up-right',
20+
Arrow2Up = 'arrow-2-up',
21+
ArrowCircleDown = 'arrow-circle-down',
22+
ArrowCircleUp = 'arrow-circle-up',
1323
ArrowDoubleLeft = 'arrow-double-left',
1424
ArrowDoubleRight = 'arrow-double-right',
1525
ArrowDown = 'arrow-down',
26+
ArrowDropDownCircle = 'arrow-drop-down-circle',
1627
ArrowLeft = 'arrow-left',
1728
ArrowRight = 'arrow-right',
1829
ArrowUp = 'arrow-up',
19-
BankToken = 'bank-token',
30+
Attachment = 'attachment',
31+
Ban = 'ban',
32+
BankAssured = 'bank-assured',
2033
Bank = 'bank',
34+
Bold = 'bold',
2135
Book = 'book',
2236
Bookmark = 'bookmark',
2337
Bridge = 'bridge',
38+
Briefcase = 'briefcase',
39+
Bulb = 'bulb',
40+
BuySell = 'buy-sell',
41+
Cake = 'cake',
2442
Calculator = 'calculator',
43+
Calendar = 'calendar',
44+
Call = 'call',
45+
Camera = 'camera',
46+
Campaign = 'campaign',
2547
CardPos = 'card-pos',
26-
CardToken = 'card-token',
2748
Card = 'card',
49+
Cash = 'cash',
2850
Category = 'category',
2951
Chart = 'chart',
3052
CheckBold = 'check-bold',
3153
Check = 'check',
54+
CircleX = 'circle-x',
55+
ClockFilled = 'clock-filled',
3256
Clock = 'clock',
3357
Close = 'close',
58+
CloudDownload = 'cloud-download',
59+
CloudUpload = 'cloud-upload',
60+
Cloud = 'cloud',
3461
CodeCircle = 'code-circle',
62+
Code = 'code',
3563
Coin = 'coin',
64+
Collapse = 'collapse',
3665
Confirmation = 'confirmation',
3766
Connect = 'connect',
3867
CopySuccess = 'copy-success',
3968
Copy = 'copy',
69+
CreditCheck = 'credit-check',
70+
CurrencyFranc = 'currency-franc',
71+
CurrencyLira = 'currency-lira',
72+
CurrencyPound = 'currency-pound',
73+
CurrencyYuan = 'currency-yuan',
4074
Customize = 'customize',
4175
Danger = 'danger',
76+
DarkFilled = 'dark-filled',
4277
Dark = 'dark',
4378
Data = 'data',
79+
Description = 'description',
80+
Details = 'details',
4481
Diagram = 'diagram',
4582
DocumentCode = 'document-code',
46-
DragDrop = 'drag-drop',
47-
DraggingAnimation = 'dragging-animation',
48-
PinningAnimation = 'pinning-animation',
83+
Download = 'download',
84+
Draft = 'draft',
85+
EcoLeaf = 'eco-leaf',
86+
EditSquare = 'edit-square',
4987
Edit = 'edit',
88+
EncryptedAdd = 'encrypted-add',
5089
Eraser = 'eraser',
90+
Error = 'error',
5191
Ethereum = 'ethereum',
92+
Exchange = 'exchange',
93+
ExpandVertical = 'expand-vertical',
5294
Expand = 'expand',
95+
ExploreFilled = 'explore-filled',
5396
Explore = 'explore',
5497
Export = 'export',
98+
Extension = 'extension',
5599
EyeSlash = 'eye-slash',
56100
Eye = 'eye',
101+
FaceId = 'face-id',
102+
Feedback = 'feedback',
103+
File = 'file',
57104
Filter = 'filter',
105+
Fingerprint = 'fingerprint',
106+
Fire = 'fire',
107+
FirstPage = 'first-page',
58108
Flag = 'flag',
59109
FlashSlash = 'flash-slash',
60110
Flash = 'flash',
111+
Flask = 'flask',
112+
Flower = 'flower',
113+
Folder = 'folder',
114+
Forest = 'forest',
61115
FullCircle = 'full-circle',
62116
Gas = 'gas',
117+
Gift = 'gift',
63118
GlobalSearch = 'global-search',
64119
Global = 'global',
65120
Graph = 'graph',
66121
Hardware = 'hardware',
122+
HashTag = 'hash-tag',
123+
HeartFilled = 'heart-filled',
67124
Heart = 'heart',
68125
Hierarchy = 'hierarchy',
126+
HomeFilled = 'home-filled',
69127
Home = 'home',
70-
Import = 'import',
128+
Image = 'image',
71129
Info = 'info',
130+
Inventory = 'inventory',
131+
Joystick = 'joystick',
132+
KeepFilled = 'keep-filled',
133+
Keep = 'keep',
72134
Key = 'key',
135+
LastPage = 'last-page',
136+
LightFilled = 'light-filled',
73137
Light = 'light',
74138
Link = 'link',
75139
Loading = 'loading',
76-
LockCircle = 'lock-circle',
140+
Location = 'location',
77141
LockSlash = 'lock-slash',
78142
Lock = 'lock',
143+
LockedFilled = 'locked-filled',
79144
Login = 'login',
80145
Logout = 'logout',
146+
Mail = 'mail',
147+
Map = 'map',
81148
Menu = 'menu',
82149
MessageQuestion = 'message-question',
83150
Messages = 'messages',
151+
Mic = 'mic',
84152
MinusBold = 'minus-bold',
85153
MinusSquare = 'minus-square',
86154
Minus = 'minus',
87155
Mobile = 'mobile',
156+
MoneyBag = 'money-bag',
88157
Money = 'money',
89158
Monitor = 'monitor',
90159
MoreHorizontal = 'more-horizontal',
91160
MoreVertical = 'more-vertical',
92-
NotificationCircle = 'notification-circle',
161+
MountainFlag = 'mountain-flag',
162+
MusicNote = 'music-note',
93163
Notification = 'notification',
164+
PageInfo = 'page-info',
165+
Palette = 'palette',
94166
PasswordCheck = 'password-check',
167+
Pending = 'pending',
95168
People = 'people',
169+
PersonCancel = 'person-cancel',
96170
Pin = 'pin',
171+
Plant = 'plant',
172+
Plug = 'plug',
173+
PlusAndMinus = 'plus-and-minus',
174+
PolicyAlert = 'policy-alert',
175+
Print = 'print',
176+
PriorityHigh = 'priority-high',
177+
PrivacyTip = 'privacy-tip',
97178
ProgrammingArrows = 'programming-arrows',
98-
Custody = 'custody',
179+
Publish = 'publish',
180+
QrCode = 'qr-code',
99181
Question = 'question',
182+
Receive = 'receive',
100183
Received = 'received',
101184
Refresh = 'refresh',
185+
RemoveMinus = 'remove-minus',
186+
Report = 'report',
187+
Rocket = 'rocket',
188+
SaveFilled = 'save-filled',
102189
Save = 'save',
190+
Saving = 'saving',
103191
ScanBarcode = 'scan-barcode',
104192
ScanFocus = 'scan-focus',
105193
Scan = 'scan',
106-
Scroll = 'scroll',
107194
Search = 'search',
108-
SecurityCard = 'security-card',
195+
SecurityAlert = 'security-alert',
109196
SecurityCross = 'security-cross',
110197
SecurityKey = 'security-key',
111198
SecuritySearch = 'security-search',
@@ -114,52 +201,81 @@ export enum IconName {
114201
SecurityTime = 'security-time',
115202
SecurityUser = 'security-user',
116203
Security = 'security',
117-
Send1 = 'send-1',
118-
Send2 = 'send-2',
204+
Send = 'send',
205+
SentimentDissatisfied = 'sentiment-dissatisfied',
206+
SentimentNeutral = 'sentiment-neutral',
207+
SentimentSatisfied = 'sentiment-satisfied',
208+
SentimentVerySatisfied = 'sentiment-very-satisfied',
209+
SettingFilled = 'setting-filled',
119210
Setting = 'setting',
211+
Share = 'share',
212+
ShieldLock = 'shield-lock',
213+
ShoppingBag = 'shopping-bag',
214+
ShoppingCart = 'shopping-cart',
215+
SignalCellular = 'signal-cellular',
120216
Slash = 'slash',
217+
Sms = 'sms',
121218
SnapsMobile = 'snaps-mobile',
122219
SnapsPlus = 'snaps-plus',
220+
SnapsRound = 'snaps-round',
123221
Snaps = 'snaps',
222+
SortByAlpha = 'sort-by-alpha',
223+
Sort = 'sort',
224+
Sparkle = 'sparkle',
225+
Speed = 'speed',
124226
Speedometer = 'speedometer',
125-
Star = 'star',
227+
Square = 'square',
126228
Stake = 'stake',
229+
StarFilled = 'star-filled',
230+
Star = 'star',
231+
Start = 'start',
232+
Storefront = 'storefront',
127233
Student = 'student',
128234
SwapHorizontal = 'swap-horizontal',
129235
SwapVertical = 'swap-vertical',
236+
TabClose = 'tab-close',
237+
TableRow = 'table-row',
238+
Tablet = 'tablet',
130239
Tag = 'tag',
131-
Tilde = 'tilde',
132-
Timer = 'timer',
240+
ThumbDownFilled = 'thumb-down-filled',
241+
ThumbDown = 'thumb-down',
242+
ThumbUpFilled = 'thumb-up-filled',
243+
ThumbUp = 'thumb-up',
244+
Tint = 'tint',
245+
Tooltip = 'tooltip',
246+
Translate = 'translate',
133247
Trash = 'trash',
134248
TrendDown = 'trend-down',
135249
TrendUp = 'trend-up',
250+
TriangleUp = 'triangle-up',
251+
TriangleDown = 'triangle-down',
252+
Undo = 'undo',
253+
Unfold = 'unfold',
254+
UnlockedFilled = 'unlocked-filled',
255+
Unpin = 'unpin',
256+
UploadFile = 'upload-file',
257+
Upload = 'upload',
258+
Usb = 'usb',
259+
UserCheck = 'user-check',
136260
UserCircleAdd = 'user-circle-add',
137-
UserCircleLink = 'user-circle-link',
138261
UserCircleRemove = 'user-circle-remove',
139262
UserCircle = 'user-circle',
140263
User = 'user',
141-
WalletCard = 'wallet-card',
142-
WalletMoney = 'wallet-money',
264+
VerifiedFilled = 'verified-filled',
265+
Verified = 'verified',
266+
Videocam = 'videocam',
267+
ViewColumn = 'view-column',
268+
ViewInAr = 'view-in-ar',
269+
VolumeOff = 'volume-off',
270+
VolumeUp = 'volume-up',
271+
WalletFilled = 'wallet-filled',
143272
Wallet = 'wallet',
144273
Warning = 'warning',
145-
Twitter = 'twitter',
146-
QrCode = 'qr-code',
147-
UserCheck = 'user-check',
148-
Unpin = 'unpin',
149-
Ban = 'ban',
150-
Bold = 'bold',
151-
CircleX = 'circle-x',
152-
Download = 'download',
153-
FileIcon = 'file',
154-
Flask = 'flask',
155-
Plug = 'plug',
156-
Share = 'share',
157-
Square = 'square',
158-
Tint = 'tint',
159-
Upload = 'upload',
160-
Usb = 'usb',
274+
WebTraffic = 'web-traffic',
275+
Widgets = 'widgets',
276+
WifiOff = 'wifi-off',
161277
Wifi = 'wifi',
162-
PlusMinus = 'plus-minus',
278+
X = 'x',
163279
}
164280

165281
/**

0 commit comments

Comments
 (0)