@metamask/snaps-sdk 9.3.0 → 10.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/CHANGELOG.md +12 -1
- package/dist/error-wrappers.d.cts +192 -192
- package/dist/error-wrappers.d.mts +192 -192
- package/dist/internals/error-wrappers.d.cts +12 -12
- package/dist/internals/error-wrappers.d.mts +12 -12
- package/dist/jsx/components/Icon.cjs +153 -37
- package/dist/jsx/components/Icon.cjs.map +1 -1
- package/dist/jsx/components/Icon.d.cts +153 -37
- package/dist/jsx/components/Icon.d.cts.map +1 -1
- package/dist/jsx/components/Icon.d.mts +153 -37
- package/dist/jsx/components/Icon.d.mts.map +1 -1
- package/dist/jsx/components/Icon.mjs +153 -37
- package/dist/jsx/components/Icon.mjs.map +1 -1
- package/dist/jsx/validation.cjs +33 -17
- package/dist/jsx/validation.cjs.map +1 -1
- package/dist/jsx/validation.d.cts.map +1 -1
- package/dist/jsx/validation.d.mts.map +1 -1
- package/dist/jsx/validation.mjs +33 -17
- package/dist/jsx/validation.mjs.map +1 -1
- package/dist/types/handlers/transaction.cjs.map +1 -1
- package/dist/types/handlers/transaction.d.cts +3 -3
- package/dist/types/handlers/transaction.d.mts +3 -3
- package/dist/types/handlers/transaction.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -15,10 +15,10 @@ export type JsonRpcErrorFunction = typeof rpcErrors.parse;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
17
17
|
new (message?: string): {
|
|
18
|
-
readonly "__#
|
|
19
|
-
readonly "__#
|
|
20
|
-
readonly "__#
|
|
21
|
-
readonly "__#
|
|
18
|
+
readonly "__#16445@#code": number;
|
|
19
|
+
readonly "__#16445@#message": string;
|
|
20
|
+
readonly "__#16445@#data"?: Record<string, Json> | undefined;
|
|
21
|
+
readonly "__#16445@#stack"?: string | undefined;
|
|
22
22
|
readonly name: string;
|
|
23
23
|
readonly code: number;
|
|
24
24
|
readonly message: string;
|
|
@@ -29,10 +29,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
29
29
|
cause?: unknown;
|
|
30
30
|
};
|
|
31
31
|
new (data?: Record<string, Json>): {
|
|
32
|
-
readonly "__#
|
|
33
|
-
readonly "__#
|
|
34
|
-
readonly "__#
|
|
35
|
-
readonly "__#
|
|
32
|
+
readonly "__#16445@#code": number;
|
|
33
|
+
readonly "__#16445@#message": string;
|
|
34
|
+
readonly "__#16445@#data"?: Record<string, Json> | undefined;
|
|
35
|
+
readonly "__#16445@#stack"?: string | undefined;
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly code: number;
|
|
38
38
|
readonly message: string;
|
|
@@ -43,10 +43,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
43
43
|
cause?: unknown;
|
|
44
44
|
};
|
|
45
45
|
new (message?: string | Record<string, Json>, data?: Record<string, Json>): {
|
|
46
|
-
readonly "__#
|
|
47
|
-
readonly "__#
|
|
48
|
-
readonly "__#
|
|
49
|
-
readonly "__#
|
|
46
|
+
readonly "__#16445@#code": number;
|
|
47
|
+
readonly "__#16445@#message": string;
|
|
48
|
+
readonly "__#16445@#data"?: Record<string, Json> | undefined;
|
|
49
|
+
readonly "__#16445@#stack"?: string | undefined;
|
|
50
50
|
readonly name: string;
|
|
51
51
|
readonly code: number;
|
|
52
52
|
readonly message: string;
|
|
@@ -15,10 +15,10 @@ export type JsonRpcErrorFunction = typeof rpcErrors.parse;
|
|
|
15
15
|
*/
|
|
16
16
|
export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
17
17
|
new (message?: string): {
|
|
18
|
-
readonly "__#
|
|
19
|
-
readonly "__#
|
|
20
|
-
readonly "__#
|
|
21
|
-
readonly "__#
|
|
18
|
+
readonly "__#8227@#code": number;
|
|
19
|
+
readonly "__#8227@#message": string;
|
|
20
|
+
readonly "__#8227@#data"?: Record<string, Json> | undefined;
|
|
21
|
+
readonly "__#8227@#stack"?: string | undefined;
|
|
22
22
|
readonly name: string;
|
|
23
23
|
readonly code: number;
|
|
24
24
|
readonly message: string;
|
|
@@ -29,10 +29,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
29
29
|
cause?: unknown;
|
|
30
30
|
};
|
|
31
31
|
new (data?: Record<string, Json>): {
|
|
32
|
-
readonly "__#
|
|
33
|
-
readonly "__#
|
|
34
|
-
readonly "__#
|
|
35
|
-
readonly "__#
|
|
32
|
+
readonly "__#8227@#code": number;
|
|
33
|
+
readonly "__#8227@#message": string;
|
|
34
|
+
readonly "__#8227@#data"?: Record<string, Json> | undefined;
|
|
35
|
+
readonly "__#8227@#stack"?: string | undefined;
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly code: number;
|
|
38
38
|
readonly message: string;
|
|
@@ -43,10 +43,10 @@ export declare function createSnapError(fn: JsonRpcErrorFunction): {
|
|
|
43
43
|
cause?: unknown;
|
|
44
44
|
};
|
|
45
45
|
new (message?: string | Record<string, Json>, data?: Record<string, Json>): {
|
|
46
|
-
readonly "__#
|
|
47
|
-
readonly "__#
|
|
48
|
-
readonly "__#
|
|
49
|
-
readonly "__#
|
|
46
|
+
readonly "__#8227@#code": number;
|
|
47
|
+
readonly "__#8227@#message": string;
|
|
48
|
+
readonly "__#8227@#data"?: Record<string, Json> | undefined;
|
|
49
|
+
readonly "__#8227@#stack"?: string | undefined;
|
|
50
50
|
readonly name: string;
|
|
51
51
|
readonly code: number;
|
|
52
52
|
readonly message: string;
|
|
@@ -6,109 +6,196 @@ const component_1 = require("../component.cjs");
|
|
|
6
6
|
// Currently requires manual syncing when new icon is added.
|
|
7
7
|
var IconName;
|
|
8
8
|
(function (IconName) {
|
|
9
|
+
IconName["Accessibility"] = "accessibility";
|
|
10
|
+
IconName["Activity"] = "activity";
|
|
11
|
+
IconName["AddCard"] = "add-card";
|
|
12
|
+
IconName["AddCircle"] = "add-circle";
|
|
9
13
|
IconName["AddSquare"] = "add-square";
|
|
10
14
|
IconName["Add"] = "add";
|
|
15
|
+
IconName["Ai"] = "ai";
|
|
16
|
+
IconName["AlternateEmail"] = "alternate-email";
|
|
17
|
+
IconName["Apple"] = "apple";
|
|
18
|
+
IconName["Apps"] = "apps";
|
|
11
19
|
IconName["Arrow2Down"] = "arrow-2-down";
|
|
12
20
|
IconName["Arrow2Left"] = "arrow-2-left";
|
|
13
21
|
IconName["Arrow2Right"] = "arrow-2-right";
|
|
14
|
-
IconName["Arrow2Up"] = "arrow-2-up";
|
|
15
22
|
IconName["Arrow2UpRight"] = "arrow-2-up-right";
|
|
23
|
+
IconName["Arrow2Up"] = "arrow-2-up";
|
|
24
|
+
IconName["ArrowCircleDown"] = "arrow-circle-down";
|
|
25
|
+
IconName["ArrowCircleUp"] = "arrow-circle-up";
|
|
16
26
|
IconName["ArrowDoubleLeft"] = "arrow-double-left";
|
|
17
27
|
IconName["ArrowDoubleRight"] = "arrow-double-right";
|
|
18
28
|
IconName["ArrowDown"] = "arrow-down";
|
|
29
|
+
IconName["ArrowDropDownCircle"] = "arrow-drop-down-circle";
|
|
19
30
|
IconName["ArrowLeft"] = "arrow-left";
|
|
20
31
|
IconName["ArrowRight"] = "arrow-right";
|
|
21
32
|
IconName["ArrowUp"] = "arrow-up";
|
|
22
|
-
IconName["
|
|
33
|
+
IconName["Attachment"] = "attachment";
|
|
34
|
+
IconName["Ban"] = "ban";
|
|
35
|
+
IconName["BankAssured"] = "bank-assured";
|
|
23
36
|
IconName["Bank"] = "bank";
|
|
37
|
+
IconName["Bold"] = "bold";
|
|
24
38
|
IconName["Book"] = "book";
|
|
25
39
|
IconName["Bookmark"] = "bookmark";
|
|
26
40
|
IconName["Bridge"] = "bridge";
|
|
41
|
+
IconName["Briefcase"] = "briefcase";
|
|
42
|
+
IconName["Bulb"] = "bulb";
|
|
43
|
+
IconName["BuySell"] = "buy-sell";
|
|
44
|
+
IconName["Cake"] = "cake";
|
|
27
45
|
IconName["Calculator"] = "calculator";
|
|
46
|
+
IconName["Calendar"] = "calendar";
|
|
47
|
+
IconName["Call"] = "call";
|
|
48
|
+
IconName["Camera"] = "camera";
|
|
49
|
+
IconName["Campaign"] = "campaign";
|
|
28
50
|
IconName["CardPos"] = "card-pos";
|
|
29
|
-
IconName["CardToken"] = "card-token";
|
|
30
51
|
IconName["Card"] = "card";
|
|
52
|
+
IconName["Cash"] = "cash";
|
|
31
53
|
IconName["Category"] = "category";
|
|
32
54
|
IconName["Chart"] = "chart";
|
|
33
55
|
IconName["CheckBold"] = "check-bold";
|
|
34
56
|
IconName["Check"] = "check";
|
|
57
|
+
IconName["CircleX"] = "circle-x";
|
|
58
|
+
IconName["ClockFilled"] = "clock-filled";
|
|
35
59
|
IconName["Clock"] = "clock";
|
|
36
60
|
IconName["Close"] = "close";
|
|
61
|
+
IconName["CloudDownload"] = "cloud-download";
|
|
62
|
+
IconName["CloudUpload"] = "cloud-upload";
|
|
63
|
+
IconName["Cloud"] = "cloud";
|
|
37
64
|
IconName["CodeCircle"] = "code-circle";
|
|
65
|
+
IconName["Code"] = "code";
|
|
38
66
|
IconName["Coin"] = "coin";
|
|
67
|
+
IconName["Collapse"] = "collapse";
|
|
39
68
|
IconName["Confirmation"] = "confirmation";
|
|
40
69
|
IconName["Connect"] = "connect";
|
|
41
70
|
IconName["CopySuccess"] = "copy-success";
|
|
42
71
|
IconName["Copy"] = "copy";
|
|
72
|
+
IconName["CreditCheck"] = "credit-check";
|
|
73
|
+
IconName["CurrencyFranc"] = "currency-franc";
|
|
74
|
+
IconName["CurrencyLira"] = "currency-lira";
|
|
75
|
+
IconName["CurrencyPound"] = "currency-pound";
|
|
76
|
+
IconName["CurrencyYuan"] = "currency-yuan";
|
|
43
77
|
IconName["Customize"] = "customize";
|
|
44
78
|
IconName["Danger"] = "danger";
|
|
79
|
+
IconName["DarkFilled"] = "dark-filled";
|
|
45
80
|
IconName["Dark"] = "dark";
|
|
46
81
|
IconName["Data"] = "data";
|
|
82
|
+
IconName["Description"] = "description";
|
|
83
|
+
IconName["Details"] = "details";
|
|
47
84
|
IconName["Diagram"] = "diagram";
|
|
48
85
|
IconName["DocumentCode"] = "document-code";
|
|
49
|
-
IconName["
|
|
50
|
-
IconName["
|
|
51
|
-
IconName["
|
|
86
|
+
IconName["Download"] = "download";
|
|
87
|
+
IconName["Draft"] = "draft";
|
|
88
|
+
IconName["EcoLeaf"] = "eco-leaf";
|
|
89
|
+
IconName["EditSquare"] = "edit-square";
|
|
52
90
|
IconName["Edit"] = "edit";
|
|
91
|
+
IconName["EncryptedAdd"] = "encrypted-add";
|
|
53
92
|
IconName["Eraser"] = "eraser";
|
|
93
|
+
IconName["Error"] = "error";
|
|
54
94
|
IconName["Ethereum"] = "ethereum";
|
|
95
|
+
IconName["Exchange"] = "exchange";
|
|
96
|
+
IconName["ExpandVertical"] = "expand-vertical";
|
|
55
97
|
IconName["Expand"] = "expand";
|
|
98
|
+
IconName["ExploreFilled"] = "explore-filled";
|
|
56
99
|
IconName["Explore"] = "explore";
|
|
57
100
|
IconName["Export"] = "export";
|
|
101
|
+
IconName["Extension"] = "extension";
|
|
58
102
|
IconName["EyeSlash"] = "eye-slash";
|
|
59
103
|
IconName["Eye"] = "eye";
|
|
104
|
+
IconName["FaceId"] = "face-id";
|
|
105
|
+
IconName["Feedback"] = "feedback";
|
|
106
|
+
IconName["File"] = "file";
|
|
60
107
|
IconName["Filter"] = "filter";
|
|
108
|
+
IconName["Fingerprint"] = "fingerprint";
|
|
109
|
+
IconName["Fire"] = "fire";
|
|
110
|
+
IconName["FirstPage"] = "first-page";
|
|
61
111
|
IconName["Flag"] = "flag";
|
|
62
112
|
IconName["FlashSlash"] = "flash-slash";
|
|
63
113
|
IconName["Flash"] = "flash";
|
|
114
|
+
IconName["Flask"] = "flask";
|
|
115
|
+
IconName["Flower"] = "flower";
|
|
116
|
+
IconName["Folder"] = "folder";
|
|
117
|
+
IconName["Forest"] = "forest";
|
|
64
118
|
IconName["FullCircle"] = "full-circle";
|
|
65
119
|
IconName["Gas"] = "gas";
|
|
120
|
+
IconName["Gift"] = "gift";
|
|
66
121
|
IconName["GlobalSearch"] = "global-search";
|
|
67
122
|
IconName["Global"] = "global";
|
|
68
123
|
IconName["Graph"] = "graph";
|
|
69
124
|
IconName["Hardware"] = "hardware";
|
|
125
|
+
IconName["HashTag"] = "hash-tag";
|
|
126
|
+
IconName["HeartFilled"] = "heart-filled";
|
|
70
127
|
IconName["Heart"] = "heart";
|
|
71
128
|
IconName["Hierarchy"] = "hierarchy";
|
|
129
|
+
IconName["HomeFilled"] = "home-filled";
|
|
72
130
|
IconName["Home"] = "home";
|
|
73
|
-
IconName["
|
|
131
|
+
IconName["Image"] = "image";
|
|
74
132
|
IconName["Info"] = "info";
|
|
133
|
+
IconName["Inventory"] = "inventory";
|
|
134
|
+
IconName["Joystick"] = "joystick";
|
|
135
|
+
IconName["KeepFilled"] = "keep-filled";
|
|
136
|
+
IconName["Keep"] = "keep";
|
|
75
137
|
IconName["Key"] = "key";
|
|
138
|
+
IconName["LastPage"] = "last-page";
|
|
139
|
+
IconName["LightFilled"] = "light-filled";
|
|
76
140
|
IconName["Light"] = "light";
|
|
77
141
|
IconName["Link"] = "link";
|
|
78
142
|
IconName["Loading"] = "loading";
|
|
79
|
-
IconName["
|
|
143
|
+
IconName["Location"] = "location";
|
|
80
144
|
IconName["LockSlash"] = "lock-slash";
|
|
81
145
|
IconName["Lock"] = "lock";
|
|
146
|
+
IconName["LockedFilled"] = "locked-filled";
|
|
82
147
|
IconName["Login"] = "login";
|
|
83
148
|
IconName["Logout"] = "logout";
|
|
149
|
+
IconName["Mail"] = "mail";
|
|
150
|
+
IconName["Map"] = "map";
|
|
84
151
|
IconName["Menu"] = "menu";
|
|
85
152
|
IconName["MessageQuestion"] = "message-question";
|
|
86
153
|
IconName["Messages"] = "messages";
|
|
154
|
+
IconName["Mic"] = "mic";
|
|
87
155
|
IconName["MinusBold"] = "minus-bold";
|
|
88
156
|
IconName["MinusSquare"] = "minus-square";
|
|
89
157
|
IconName["Minus"] = "minus";
|
|
90
158
|
IconName["Mobile"] = "mobile";
|
|
159
|
+
IconName["MoneyBag"] = "money-bag";
|
|
91
160
|
IconName["Money"] = "money";
|
|
92
161
|
IconName["Monitor"] = "monitor";
|
|
93
162
|
IconName["MoreHorizontal"] = "more-horizontal";
|
|
94
163
|
IconName["MoreVertical"] = "more-vertical";
|
|
95
|
-
IconName["
|
|
164
|
+
IconName["MountainFlag"] = "mountain-flag";
|
|
165
|
+
IconName["MusicNote"] = "music-note";
|
|
96
166
|
IconName["Notification"] = "notification";
|
|
167
|
+
IconName["PageInfo"] = "page-info";
|
|
168
|
+
IconName["Palette"] = "palette";
|
|
97
169
|
IconName["PasswordCheck"] = "password-check";
|
|
170
|
+
IconName["Pending"] = "pending";
|
|
98
171
|
IconName["People"] = "people";
|
|
172
|
+
IconName["PersonCancel"] = "person-cancel";
|
|
99
173
|
IconName["Pin"] = "pin";
|
|
174
|
+
IconName["Plant"] = "plant";
|
|
175
|
+
IconName["Plug"] = "plug";
|
|
176
|
+
IconName["PlusAndMinus"] = "plus-and-minus";
|
|
177
|
+
IconName["PolicyAlert"] = "policy-alert";
|
|
178
|
+
IconName["Print"] = "print";
|
|
179
|
+
IconName["PriorityHigh"] = "priority-high";
|
|
180
|
+
IconName["PrivacyTip"] = "privacy-tip";
|
|
100
181
|
IconName["ProgrammingArrows"] = "programming-arrows";
|
|
101
|
-
IconName["
|
|
182
|
+
IconName["Publish"] = "publish";
|
|
183
|
+
IconName["QrCode"] = "qr-code";
|
|
102
184
|
IconName["Question"] = "question";
|
|
185
|
+
IconName["Receive"] = "receive";
|
|
103
186
|
IconName["Received"] = "received";
|
|
104
187
|
IconName["Refresh"] = "refresh";
|
|
188
|
+
IconName["RemoveMinus"] = "remove-minus";
|
|
189
|
+
IconName["Report"] = "report";
|
|
190
|
+
IconName["Rocket"] = "rocket";
|
|
191
|
+
IconName["SaveFilled"] = "save-filled";
|
|
105
192
|
IconName["Save"] = "save";
|
|
193
|
+
IconName["Saving"] = "saving";
|
|
106
194
|
IconName["ScanBarcode"] = "scan-barcode";
|
|
107
195
|
IconName["ScanFocus"] = "scan-focus";
|
|
108
196
|
IconName["Scan"] = "scan";
|
|
109
|
-
IconName["Scroll"] = "scroll";
|
|
110
197
|
IconName["Search"] = "search";
|
|
111
|
-
IconName["
|
|
198
|
+
IconName["SecurityAlert"] = "security-alert";
|
|
112
199
|
IconName["SecurityCross"] = "security-cross";
|
|
113
200
|
IconName["SecurityKey"] = "security-key";
|
|
114
201
|
IconName["SecuritySearch"] = "security-search";
|
|
@@ -117,52 +204,81 @@ var IconName;
|
|
|
117
204
|
IconName["SecurityTime"] = "security-time";
|
|
118
205
|
IconName["SecurityUser"] = "security-user";
|
|
119
206
|
IconName["Security"] = "security";
|
|
120
|
-
IconName["
|
|
121
|
-
IconName["
|
|
207
|
+
IconName["Send"] = "send";
|
|
208
|
+
IconName["SentimentDissatisfied"] = "sentiment-dissatisfied";
|
|
209
|
+
IconName["SentimentNeutral"] = "sentiment-neutral";
|
|
210
|
+
IconName["SentimentSatisfied"] = "sentiment-satisfied";
|
|
211
|
+
IconName["SentimentVerySatisfied"] = "sentiment-very-satisfied";
|
|
212
|
+
IconName["SettingFilled"] = "setting-filled";
|
|
122
213
|
IconName["Setting"] = "setting";
|
|
214
|
+
IconName["Share"] = "share";
|
|
215
|
+
IconName["ShieldLock"] = "shield-lock";
|
|
216
|
+
IconName["ShoppingBag"] = "shopping-bag";
|
|
217
|
+
IconName["ShoppingCart"] = "shopping-cart";
|
|
218
|
+
IconName["SignalCellular"] = "signal-cellular";
|
|
123
219
|
IconName["Slash"] = "slash";
|
|
220
|
+
IconName["Sms"] = "sms";
|
|
124
221
|
IconName["SnapsMobile"] = "snaps-mobile";
|
|
125
222
|
IconName["SnapsPlus"] = "snaps-plus";
|
|
223
|
+
IconName["SnapsRound"] = "snaps-round";
|
|
126
224
|
IconName["Snaps"] = "snaps";
|
|
225
|
+
IconName["SortByAlpha"] = "sort-by-alpha";
|
|
226
|
+
IconName["Sort"] = "sort";
|
|
227
|
+
IconName["Sparkle"] = "sparkle";
|
|
228
|
+
IconName["Speed"] = "speed";
|
|
127
229
|
IconName["Speedometer"] = "speedometer";
|
|
128
|
-
IconName["
|
|
230
|
+
IconName["Square"] = "square";
|
|
129
231
|
IconName["Stake"] = "stake";
|
|
232
|
+
IconName["StarFilled"] = "star-filled";
|
|
233
|
+
IconName["Star"] = "star";
|
|
234
|
+
IconName["Start"] = "start";
|
|
235
|
+
IconName["Storefront"] = "storefront";
|
|
130
236
|
IconName["Student"] = "student";
|
|
131
237
|
IconName["SwapHorizontal"] = "swap-horizontal";
|
|
132
238
|
IconName["SwapVertical"] = "swap-vertical";
|
|
239
|
+
IconName["TabClose"] = "tab-close";
|
|
240
|
+
IconName["TableRow"] = "table-row";
|
|
241
|
+
IconName["Tablet"] = "tablet";
|
|
133
242
|
IconName["Tag"] = "tag";
|
|
134
|
-
IconName["
|
|
135
|
-
IconName["
|
|
243
|
+
IconName["ThumbDownFilled"] = "thumb-down-filled";
|
|
244
|
+
IconName["ThumbDown"] = "thumb-down";
|
|
245
|
+
IconName["ThumbUpFilled"] = "thumb-up-filled";
|
|
246
|
+
IconName["ThumbUp"] = "thumb-up";
|
|
247
|
+
IconName["Tint"] = "tint";
|
|
248
|
+
IconName["Tooltip"] = "tooltip";
|
|
249
|
+
IconName["Translate"] = "translate";
|
|
136
250
|
IconName["Trash"] = "trash";
|
|
137
251
|
IconName["TrendDown"] = "trend-down";
|
|
138
252
|
IconName["TrendUp"] = "trend-up";
|
|
253
|
+
IconName["TriangleUp"] = "triangle-up";
|
|
254
|
+
IconName["TriangleDown"] = "triangle-down";
|
|
255
|
+
IconName["Undo"] = "undo";
|
|
256
|
+
IconName["Unfold"] = "unfold";
|
|
257
|
+
IconName["UnlockedFilled"] = "unlocked-filled";
|
|
258
|
+
IconName["Unpin"] = "unpin";
|
|
259
|
+
IconName["UploadFile"] = "upload-file";
|
|
260
|
+
IconName["Upload"] = "upload";
|
|
261
|
+
IconName["Usb"] = "usb";
|
|
262
|
+
IconName["UserCheck"] = "user-check";
|
|
139
263
|
IconName["UserCircleAdd"] = "user-circle-add";
|
|
140
|
-
IconName["UserCircleLink"] = "user-circle-link";
|
|
141
264
|
IconName["UserCircleRemove"] = "user-circle-remove";
|
|
142
265
|
IconName["UserCircle"] = "user-circle";
|
|
143
266
|
IconName["User"] = "user";
|
|
144
|
-
IconName["
|
|
145
|
-
IconName["
|
|
267
|
+
IconName["VerifiedFilled"] = "verified-filled";
|
|
268
|
+
IconName["Verified"] = "verified";
|
|
269
|
+
IconName["Videocam"] = "videocam";
|
|
270
|
+
IconName["ViewColumn"] = "view-column";
|
|
271
|
+
IconName["ViewInAr"] = "view-in-ar";
|
|
272
|
+
IconName["VolumeOff"] = "volume-off";
|
|
273
|
+
IconName["VolumeUp"] = "volume-up";
|
|
274
|
+
IconName["WalletFilled"] = "wallet-filled";
|
|
146
275
|
IconName["Wallet"] = "wallet";
|
|
147
276
|
IconName["Warning"] = "warning";
|
|
148
|
-
IconName["
|
|
149
|
-
IconName["
|
|
150
|
-
IconName["
|
|
151
|
-
IconName["Unpin"] = "unpin";
|
|
152
|
-
IconName["Ban"] = "ban";
|
|
153
|
-
IconName["Bold"] = "bold";
|
|
154
|
-
IconName["CircleX"] = "circle-x";
|
|
155
|
-
IconName["Download"] = "download";
|
|
156
|
-
IconName["FileIcon"] = "file";
|
|
157
|
-
IconName["Flask"] = "flask";
|
|
158
|
-
IconName["Plug"] = "plug";
|
|
159
|
-
IconName["Share"] = "share";
|
|
160
|
-
IconName["Square"] = "square";
|
|
161
|
-
IconName["Tint"] = "tint";
|
|
162
|
-
IconName["Upload"] = "upload";
|
|
163
|
-
IconName["Usb"] = "usb";
|
|
277
|
+
IconName["WebTraffic"] = "web-traffic";
|
|
278
|
+
IconName["Widgets"] = "widgets";
|
|
279
|
+
IconName["WifiOff"] = "wifi-off";
|
|
164
280
|
IconName["Wifi"] = "wifi";
|
|
165
|
-
IconName["
|
|
281
|
+
IconName["X"] = "x";
|
|
166
282
|
})(IconName || (exports.IconName = IconName = {}));
|
|
167
283
|
const TYPE = 'Icon';
|
|
168
284
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Icon.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,0HAA0H;AAC1H,4DAA4D;AAC5D,IAAY,QA8JX;AA9JD,WAAY,QAAQ;IAClB,oCAAwB,CAAA;IACxB,uBAAW,CAAA;IACX,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACvB,8CAAkC,CAAA;IAClC,iDAAqC,CAAA;IACrC,mDAAuC,CAAA;IACvC,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;IACxB,sCAA0B,CAAA;IAC1B,gCAAoB,CAAA;IACpB,oCAAwB,CAAA;IACxB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,qCAAyB,CAAA;IACzB,gCAAoB,CAAA;IACpB,oCAAwB,CAAA;IACxB,yBAAa,CAAA;IACb,iCAAqB,CAAA;IACrB,2BAAe,CAAA;IACf,oCAAwB,CAAA;IACxB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,sCAA0B,CAAA;IAC1B,yBAAa,CAAA;IACb,yCAA6B,CAAA;IAC7B,+BAAmB,CAAA;IACnB,wCAA4B,CAAA;IAC5B,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,+BAAmB,CAAA;IACnB,0CAA8B,CAAA;IAC9B,kCAAsB,CAAA;IACtB,oDAAwC,CAAA;IACxC,kDAAsC,CAAA;IACtC,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,iCAAqB,CA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,CAAA;IAC9B,0CAA8B,CAAA;IAC9B,0CAA8B,CAAA;IAC9B,iCAAqB,CAAA;IACrB,4BAAgB,CAAA;IAChB,4BAAgB,CAAA;IAChB,+BAAmB,CAAA;IACnB,2BAAe,CAAA;IACf,wCAA4B,CAAA;IAC5B,oCAAwB,CAAA;IACxB,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,8CAAkC,CAAA;IAClC,0CAA8B,CAAA;IAC9B,uBAAW,CAAA;IACX,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,oCAAwB,CAAA;IACxB,gCAAoB,CAAA;IACpB,6CAAiC,CAAA;IACjC,+CAAmC,CAAA;IACnC,mDAAuC,CAAA;IACvC,sCAA0B,CAAA;IAC1B,yBAAa,CAAA;IACb,sCAA0B,CAAA;IAC1B,wCAA4B,CAAA;IAC5B,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,+BAAmB,CAAA;IACnB,8BAAkB,CAAA;IAClB,oCAAwB,CAAA;IACxB,2BAAe,CAAA;IACf,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,gCAAoB,CAAA;IACpB,iCAAqB,CAAA;IACrB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,oCAAwB,CAAA;AAC1B,CAAC,EA9JW,QAAQ,wBAAR,QAAQ,QA8JnB;AAeD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;GAUG;AACU,QAAA,IAAI,GAAG,IAAA,+BAAmB,EAAyB,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\n// Copied from https://github.com/MetaMask/metamask-extension/blob/main/ui/components/component-library/icon/icon.types.ts\n// Currently requires manual syncing when new icon is added.\nexport enum IconName {\n AddSquare = 'add-square',\n Add = 'add',\n Arrow2Down = 'arrow-2-down',\n Arrow2Left = 'arrow-2-left',\n Arrow2Right = 'arrow-2-right',\n Arrow2Up = 'arrow-2-up',\n Arrow2UpRight = 'arrow-2-up-right',\n ArrowDoubleLeft = 'arrow-double-left',\n ArrowDoubleRight = 'arrow-double-right',\n ArrowDown = 'arrow-down',\n ArrowLeft = 'arrow-left',\n ArrowRight = 'arrow-right',\n ArrowUp = 'arrow-up',\n BankToken = 'bank-token',\n Bank = 'bank',\n Book = 'book',\n Bookmark = 'bookmark',\n Bridge = 'bridge',\n Calculator = 'calculator',\n CardPos = 'card-pos',\n CardToken = 'card-token',\n Card = 'card',\n Category = 'category',\n Chart = 'chart',\n CheckBold = 'check-bold',\n Check = 'check',\n Clock = 'clock',\n Close = 'close',\n CodeCircle = 'code-circle',\n Coin = 'coin',\n Confirmation = 'confirmation',\n Connect = 'connect',\n CopySuccess = 'copy-success',\n Copy = 'copy',\n Customize = 'customize',\n Danger = 'danger',\n Dark = 'dark',\n Data = 'data',\n Diagram = 'diagram',\n DocumentCode = 'document-code',\n DragDrop = 'drag-drop',\n DraggingAnimation = 'dragging-animation',\n PinningAnimation = 'pinning-animation',\n Edit = 'edit',\n Eraser = 'eraser',\n Ethereum = 'ethereum',\n Expand = 'expand',\n Explore = 'explore',\n Export = 'export',\n EyeSlash = 'eye-slash',\n Eye = 'eye',\n Filter = 'filter',\n Flag = 'flag',\n FlashSlash = 'flash-slash',\n Flash = 'flash',\n FullCircle = 'full-circle',\n Gas = 'gas',\n GlobalSearch = 'global-search',\n Global = 'global',\n Graph = 'graph',\n Hardware = 'hardware',\n Heart = 'heart',\n Hierarchy = 'hierarchy',\n Home = 'home',\n Import = 'import',\n Info = 'info',\n Key = 'key',\n Light = 'light',\n Link = 'link',\n Loading = 'loading',\n LockCircle = 'lock-circle',\n LockSlash = 'lock-slash',\n Lock = 'lock',\n Login = 'login',\n Logout = 'logout',\n Menu = 'menu',\n MessageQuestion = 'message-question',\n Messages = 'messages',\n MinusBold = 'minus-bold',\n MinusSquare = 'minus-square',\n Minus = 'minus',\n Mobile = 'mobile',\n Money = 'money',\n Monitor = 'monitor',\n MoreHorizontal = 'more-horizontal',\n MoreVertical = 'more-vertical',\n NotificationCircle = 'notification-circle',\n Notification = 'notification',\n PasswordCheck = 'password-check',\n People = 'people',\n Pin = 'pin',\n ProgrammingArrows = 'programming-arrows',\n Custody = 'custody',\n Question = 'question',\n Received = 'received',\n Refresh = 'refresh',\n Save = 'save',\n ScanBarcode = 'scan-barcode',\n ScanFocus = 'scan-focus',\n Scan = 'scan',\n Scroll = 'scroll',\n Search = 'search',\n SecurityCard = 'security-card',\n SecurityCross = 'security-cross',\n SecurityKey = 'security-key',\n SecuritySearch = 'security-search',\n SecuritySlash = 'security-slash',\n SecurityTick = 'security-tick',\n SecurityTime = 'security-time',\n SecurityUser = 'security-user',\n Security = 'security',\n Send1 = 'send-1',\n Send2 = 'send-2',\n Setting = 'setting',\n Slash = 'slash',\n SnapsMobile = 'snaps-mobile',\n SnapsPlus = 'snaps-plus',\n Snaps = 'snaps',\n Speedometer = 'speedometer',\n Star = 'star',\n Stake = 'stake',\n Student = 'student',\n SwapHorizontal = 'swap-horizontal',\n SwapVertical = 'swap-vertical',\n Tag = 'tag',\n Tilde = 'tilde',\n Timer = 'timer',\n Trash = 'trash',\n TrendDown = 'trend-down',\n TrendUp = 'trend-up',\n UserCircleAdd = 'user-circle-add',\n UserCircleLink = 'user-circle-link',\n UserCircleRemove = 'user-circle-remove',\n UserCircle = 'user-circle',\n User = 'user',\n WalletCard = 'wallet-card',\n WalletMoney = 'wallet-money',\n Wallet = 'wallet',\n Warning = 'warning',\n Twitter = 'twitter',\n QrCode = 'qr-code',\n UserCheck = 'user-check',\n Unpin = 'unpin',\n Ban = 'ban',\n Bold = 'bold',\n CircleX = 'circle-x',\n Download = 'download',\n FileIcon = 'file',\n Flask = 'flask',\n Plug = 'plug',\n Share = 'share',\n Square = 'square',\n Tint = 'tint',\n Upload = 'upload',\n Usb = 'usb',\n Wifi = 'wifi',\n PlusMinus = 'plus-minus',\n}\n\n/**\n * The props of the {@link Icon} component.\n *\n * @property name - The name of the icon to display from a pre-defined list.\n * @property color - The color of the displayed icon.\n * @property size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n */\nexport type IconProps = {\n name: `${IconName}`;\n color?: 'default' | 'primary' | 'muted' | undefined;\n size?: 'md' | 'inherit' | undefined;\n};\n\nconst TYPE = 'Icon';\n\n/**\n * An icon component which is used to display an icon from a pre-defined list.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the icon to display from a pre-defined list.\n * @param props.color - The color of the displayed icon.\n * @param props.size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n * @returns An icon element.\n * @example\n * <Icon name=\"warning\" color=\"warning\" size=\"md\" />\n */\nexport const Icon = createSnapComponent<IconProps, typeof TYPE>(TYPE);\n\n/**\n * An icon element.\n *\n * @see Icon\n */\nexport type IconElement = ReturnType<typeof Icon>;\n"]}
|
|
1
|
+
{"version":3,"file":"Icon.cjs","sourceRoot":"","sources":["../../../src/jsx/components/Icon.ts"],"names":[],"mappings":";;;AAAA,gDAAmD;AAEnD,0HAA0H;AAC1H,4DAA4D;AAC5D,IAAY,QAkRX;AAlRD,WAAY,QAAQ;IAClB,2CAA+B,CAAA;IAC/B,iCAAqB,CAAA;IACrB,gCAAoB,CAAA;IACpB,oCAAwB,CAAA;IACxB,oCAAwB,CAAA;IACxB,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,8CAAkC,CAAA;IAClC,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uCAA2B,CAAA;IAC3B,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,8CAAkC,CAAA;IAClC,mCAAuB,CAAA;IACvB,iDAAqC,CAAA;IACrC,6CAAiC,CAAA;IACjC,iDAAqC,CAAA;IACrC,mDAAuC,CAAA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AA;IACtB,0CAA8B,CAAA;IAC9B,6BAAiB,CAAA;IACjB,+BAAmB,CAAA;IACnB,sCAA0B,CAAA;IAC1B,+BAAmB,CAAA;IACnB,gCAAoB,CAAA;IACpB,yBAAa,CAAA;IACb,mBAAO,CAAA;AACT,CAAC,EAlRW,QAAQ,wBAAR,QAAQ,QAkRnB;AAeD,MAAM,IAAI,GAAG,MAAM,CAAC;AAEpB;;;;;;;;;;GAUG;AACU,QAAA,IAAI,GAAG,IAAA,+BAAmB,EAAyB,IAAI,CAAC,CAAC","sourcesContent":["import { createSnapComponent } from '../component';\n\n// Copied from https://github.com/MetaMask/metamask-extension/blob/main/ui/components/component-library/icon/icon.types.ts\n// Currently requires manual syncing when new icon is added.\nexport enum IconName {\n Accessibility = 'accessibility',\n Activity = 'activity',\n AddCard = 'add-card',\n AddCircle = 'add-circle',\n AddSquare = 'add-square',\n Add = 'add',\n Ai = 'ai',\n AlternateEmail = 'alternate-email',\n Apple = 'apple',\n Apps = 'apps',\n Arrow2Down = 'arrow-2-down',\n Arrow2Left = 'arrow-2-left',\n Arrow2Right = 'arrow-2-right',\n Arrow2UpRight = 'arrow-2-up-right',\n Arrow2Up = 'arrow-2-up',\n ArrowCircleDown = 'arrow-circle-down',\n ArrowCircleUp = 'arrow-circle-up',\n ArrowDoubleLeft = 'arrow-double-left',\n ArrowDoubleRight = 'arrow-double-right',\n ArrowDown = 'arrow-down',\n ArrowDropDownCircle = 'arrow-drop-down-circle',\n ArrowLeft = 'arrow-left',\n ArrowRight = 'arrow-right',\n ArrowUp = 'arrow-up',\n Attachment = 'attachment',\n Ban = 'ban',\n BankAssured = 'bank-assured',\n Bank = 'bank',\n Bold = 'bold',\n Book = 'book',\n Bookmark = 'bookmark',\n Bridge = 'bridge',\n Briefcase = 'briefcase',\n Bulb = 'bulb',\n BuySell = 'buy-sell',\n Cake = 'cake',\n Calculator = 'calculator',\n Calendar = 'calendar',\n Call = 'call',\n Camera = 'camera',\n Campaign = 'campaign',\n CardPos = 'card-pos',\n Card = 'card',\n Cash = 'cash',\n Category = 'category',\n Chart = 'chart',\n CheckBold = 'check-bold',\n Check = 'check',\n CircleX = 'circle-x',\n ClockFilled = 'clock-filled',\n Clock = 'clock',\n Close = 'close',\n CloudDownload = 'cloud-download',\n CloudUpload = 'cloud-upload',\n Cloud = 'cloud',\n CodeCircle = 'code-circle',\n Code = 'code',\n Coin = 'coin',\n Collapse = 'collapse',\n Confirmation = 'confirmation',\n Connect = 'connect',\n CopySuccess = 'copy-success',\n Copy = 'copy',\n CreditCheck = 'credit-check',\n CurrencyFranc = 'currency-franc',\n CurrencyLira = 'currency-lira',\n CurrencyPound = 'currency-pound',\n CurrencyYuan = 'currency-yuan',\n Customize = 'customize',\n Danger = 'danger',\n DarkFilled = 'dark-filled',\n Dark = 'dark',\n Data = 'data',\n Description = 'description',\n Details = 'details',\n Diagram = 'diagram',\n DocumentCode = 'document-code',\n Download = 'download',\n Draft = 'draft',\n EcoLeaf = 'eco-leaf',\n EditSquare = 'edit-square',\n Edit = 'edit',\n EncryptedAdd = 'encrypted-add',\n Eraser = 'eraser',\n Error = 'error',\n Ethereum = 'ethereum',\n Exchange = 'exchange',\n ExpandVertical = 'expand-vertical',\n Expand = 'expand',\n ExploreFilled = 'explore-filled',\n Explore = 'explore',\n Export = 'export',\n Extension = 'extension',\n EyeSlash = 'eye-slash',\n Eye = 'eye',\n FaceId = 'face-id',\n Feedback = 'feedback',\n File = 'file',\n Filter = 'filter',\n Fingerprint = 'fingerprint',\n Fire = 'fire',\n FirstPage = 'first-page',\n Flag = 'flag',\n FlashSlash = 'flash-slash',\n Flash = 'flash',\n Flask = 'flask',\n Flower = 'flower',\n Folder = 'folder',\n Forest = 'forest',\n FullCircle = 'full-circle',\n Gas = 'gas',\n Gift = 'gift',\n GlobalSearch = 'global-search',\n Global = 'global',\n Graph = 'graph',\n Hardware = 'hardware',\n HashTag = 'hash-tag',\n HeartFilled = 'heart-filled',\n Heart = 'heart',\n Hierarchy = 'hierarchy',\n HomeFilled = 'home-filled',\n Home = 'home',\n Image = 'image',\n Info = 'info',\n Inventory = 'inventory',\n Joystick = 'joystick',\n KeepFilled = 'keep-filled',\n Keep = 'keep',\n Key = 'key',\n LastPage = 'last-page',\n LightFilled = 'light-filled',\n Light = 'light',\n Link = 'link',\n Loading = 'loading',\n Location = 'location',\n LockSlash = 'lock-slash',\n Lock = 'lock',\n LockedFilled = 'locked-filled',\n Login = 'login',\n Logout = 'logout',\n Mail = 'mail',\n Map = 'map',\n Menu = 'menu',\n MessageQuestion = 'message-question',\n Messages = 'messages',\n Mic = 'mic',\n MinusBold = 'minus-bold',\n MinusSquare = 'minus-square',\n Minus = 'minus',\n Mobile = 'mobile',\n MoneyBag = 'money-bag',\n Money = 'money',\n Monitor = 'monitor',\n MoreHorizontal = 'more-horizontal',\n MoreVertical = 'more-vertical',\n MountainFlag = 'mountain-flag',\n MusicNote = 'music-note',\n Notification = 'notification',\n PageInfo = 'page-info',\n Palette = 'palette',\n PasswordCheck = 'password-check',\n Pending = 'pending',\n People = 'people',\n PersonCancel = 'person-cancel',\n Pin = 'pin',\n Plant = 'plant',\n Plug = 'plug',\n PlusAndMinus = 'plus-and-minus',\n PolicyAlert = 'policy-alert',\n Print = 'print',\n PriorityHigh = 'priority-high',\n PrivacyTip = 'privacy-tip',\n ProgrammingArrows = 'programming-arrows',\n Publish = 'publish',\n QrCode = 'qr-code',\n Question = 'question',\n Receive = 'receive',\n Received = 'received',\n Refresh = 'refresh',\n RemoveMinus = 'remove-minus',\n Report = 'report',\n Rocket = 'rocket',\n SaveFilled = 'save-filled',\n Save = 'save',\n Saving = 'saving',\n ScanBarcode = 'scan-barcode',\n ScanFocus = 'scan-focus',\n Scan = 'scan',\n Search = 'search',\n SecurityAlert = 'security-alert',\n SecurityCross = 'security-cross',\n SecurityKey = 'security-key',\n SecuritySearch = 'security-search',\n SecuritySlash = 'security-slash',\n SecurityTick = 'security-tick',\n SecurityTime = 'security-time',\n SecurityUser = 'security-user',\n Security = 'security',\n Send = 'send',\n SentimentDissatisfied = 'sentiment-dissatisfied',\n SentimentNeutral = 'sentiment-neutral',\n SentimentSatisfied = 'sentiment-satisfied',\n SentimentVerySatisfied = 'sentiment-very-satisfied',\n SettingFilled = 'setting-filled',\n Setting = 'setting',\n Share = 'share',\n ShieldLock = 'shield-lock',\n ShoppingBag = 'shopping-bag',\n ShoppingCart = 'shopping-cart',\n SignalCellular = 'signal-cellular',\n Slash = 'slash',\n Sms = 'sms',\n SnapsMobile = 'snaps-mobile',\n SnapsPlus = 'snaps-plus',\n SnapsRound = 'snaps-round',\n Snaps = 'snaps',\n SortByAlpha = 'sort-by-alpha',\n Sort = 'sort',\n Sparkle = 'sparkle',\n Speed = 'speed',\n Speedometer = 'speedometer',\n Square = 'square',\n Stake = 'stake',\n StarFilled = 'star-filled',\n Star = 'star',\n Start = 'start',\n Storefront = 'storefront',\n Student = 'student',\n SwapHorizontal = 'swap-horizontal',\n SwapVertical = 'swap-vertical',\n TabClose = 'tab-close',\n TableRow = 'table-row',\n Tablet = 'tablet',\n Tag = 'tag',\n ThumbDownFilled = 'thumb-down-filled',\n ThumbDown = 'thumb-down',\n ThumbUpFilled = 'thumb-up-filled',\n ThumbUp = 'thumb-up',\n Tint = 'tint',\n Tooltip = 'tooltip',\n Translate = 'translate',\n Trash = 'trash',\n TrendDown = 'trend-down',\n TrendUp = 'trend-up',\n TriangleUp = 'triangle-up',\n TriangleDown = 'triangle-down',\n Undo = 'undo',\n Unfold = 'unfold',\n UnlockedFilled = 'unlocked-filled',\n Unpin = 'unpin',\n UploadFile = 'upload-file',\n Upload = 'upload',\n Usb = 'usb',\n UserCheck = 'user-check',\n UserCircleAdd = 'user-circle-add',\n UserCircleRemove = 'user-circle-remove',\n UserCircle = 'user-circle',\n User = 'user',\n VerifiedFilled = 'verified-filled',\n Verified = 'verified',\n Videocam = 'videocam',\n ViewColumn = 'view-column',\n ViewInAr = 'view-in-ar',\n VolumeOff = 'volume-off',\n VolumeUp = 'volume-up',\n WalletFilled = 'wallet-filled',\n Wallet = 'wallet',\n Warning = 'warning',\n WebTraffic = 'web-traffic',\n Widgets = 'widgets',\n WifiOff = 'wifi-off',\n Wifi = 'wifi',\n X = 'x',\n}\n\n/**\n * The props of the {@link Icon} component.\n *\n * @property name - The name of the icon to display from a pre-defined list.\n * @property color - The color of the displayed icon.\n * @property size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n */\nexport type IconProps = {\n name: `${IconName}`;\n color?: 'default' | 'primary' | 'muted' | undefined;\n size?: 'md' | 'inherit' | undefined;\n};\n\nconst TYPE = 'Icon';\n\n/**\n * An icon component which is used to display an icon from a pre-defined list.\n *\n * @param props - The props of the component.\n * @param props.name - The name of the icon to display from a pre-defined list.\n * @param props.color - The color of the displayed icon.\n * @param props.size - The size of the displayed icon. Use `inherit` to size it the same as the text.\n * @returns An icon element.\n * @example\n * <Icon name=\"warning\" color=\"warning\" size=\"md\" />\n */\nexport const Icon = createSnapComponent<IconProps, typeof TYPE>(TYPE);\n\n/**\n * An icon element.\n *\n * @see Icon\n */\nexport type IconElement = ReturnType<typeof Icon>;\n"]}
|