@metamask/snaps-sdk 6.2.1 → 6.3.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 +11 -1
- package/dist/index.js +245 -17
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +245 -17
- package/dist/index.mjs.map +1 -1
- package/dist/jsx/index.js +274 -51
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +274 -51
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/jsx-dev-runtime.js +245 -17
- package/dist/jsx/jsx-dev-runtime.js.map +1 -1
- package/dist/jsx/jsx-dev-runtime.mjs +245 -17
- package/dist/jsx/jsx-dev-runtime.mjs.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/jsx/components/Icon.d.ts +189 -0
- package/dist/types/jsx/components/Text.d.ts +7 -1
- package/dist/types/jsx/components/Tooltip.d.ts +3 -2
- package/dist/types/jsx/components/form/Button.d.ts +4 -2
- package/dist/types/jsx/components/form/Field.d.ts +2 -1
- package/dist/types/jsx/components/form/Selector.d.ts +41 -0
- package/dist/types/jsx/components/form/SelectorOption.d.ts +35 -0
- package/dist/types/jsx/components/form/index.d.ts +5 -1
- package/dist/types/jsx/components/index.d.ts +3 -1
- package/dist/types/jsx/validation.d.ts +37 -25
- package/dist/types/types/interface.d.ts +6 -6
- package/package.json +1 -1
package/dist/jsx/index.mjs
CHANGED
|
@@ -57,73 +57,245 @@ var Form = createSnapComponent(TYPE9);
|
|
|
57
57
|
var TYPE10 = "Input";
|
|
58
58
|
var Input = createSnapComponent(TYPE10);
|
|
59
59
|
|
|
60
|
+
// src/jsx/components/form/Selector.ts
|
|
61
|
+
var TYPE11 = "Selector";
|
|
62
|
+
var Selector = createSnapComponent(TYPE11);
|
|
63
|
+
|
|
64
|
+
// src/jsx/components/form/SelectorOption.ts
|
|
65
|
+
var TYPE12 = "SelectorOption";
|
|
66
|
+
var SelectorOption = createSnapComponent(TYPE12);
|
|
67
|
+
|
|
60
68
|
// src/jsx/components/formatting/Bold.ts
|
|
61
|
-
var
|
|
62
|
-
var Bold = createSnapComponent(
|
|
69
|
+
var TYPE13 = "Bold";
|
|
70
|
+
var Bold = createSnapComponent(TYPE13);
|
|
63
71
|
|
|
64
72
|
// src/jsx/components/formatting/Italic.ts
|
|
65
|
-
var
|
|
66
|
-
var Italic = createSnapComponent(
|
|
73
|
+
var TYPE14 = "Italic";
|
|
74
|
+
var Italic = createSnapComponent(TYPE14);
|
|
67
75
|
|
|
68
76
|
// src/jsx/components/Address.ts
|
|
69
|
-
var
|
|
70
|
-
var Address = createSnapComponent(
|
|
77
|
+
var TYPE15 = "Address";
|
|
78
|
+
var Address = createSnapComponent(TYPE15);
|
|
71
79
|
|
|
72
80
|
// src/jsx/components/Box.ts
|
|
73
|
-
var
|
|
74
|
-
var Box = createSnapComponent(
|
|
81
|
+
var TYPE16 = "Box";
|
|
82
|
+
var Box = createSnapComponent(TYPE16);
|
|
75
83
|
|
|
76
84
|
// src/jsx/components/Card.ts
|
|
77
|
-
var
|
|
78
|
-
var Card = createSnapComponent(
|
|
85
|
+
var TYPE17 = "Card";
|
|
86
|
+
var Card = createSnapComponent(TYPE17);
|
|
79
87
|
|
|
80
88
|
// src/jsx/components/Copyable.ts
|
|
81
|
-
var
|
|
82
|
-
var Copyable = createSnapComponent(
|
|
89
|
+
var TYPE18 = "Copyable";
|
|
90
|
+
var Copyable = createSnapComponent(TYPE18);
|
|
83
91
|
|
|
84
92
|
// src/jsx/components/Divider.ts
|
|
85
|
-
var
|
|
86
|
-
var Divider = createSnapComponent(
|
|
93
|
+
var TYPE19 = "Divider";
|
|
94
|
+
var Divider = createSnapComponent(TYPE19);
|
|
87
95
|
|
|
88
96
|
// src/jsx/components/Value.ts
|
|
89
|
-
var
|
|
90
|
-
var Value = createSnapComponent(
|
|
97
|
+
var TYPE20 = "Value";
|
|
98
|
+
var Value = createSnapComponent(TYPE20);
|
|
91
99
|
|
|
92
100
|
// src/jsx/components/Heading.ts
|
|
93
|
-
var
|
|
94
|
-
var Heading = createSnapComponent(
|
|
101
|
+
var TYPE21 = "Heading";
|
|
102
|
+
var Heading = createSnapComponent(TYPE21);
|
|
103
|
+
|
|
104
|
+
// src/jsx/components/Icon.ts
|
|
105
|
+
var IconName = /* @__PURE__ */ ((IconName2) => {
|
|
106
|
+
IconName2["AddSquare"] = "add-square";
|
|
107
|
+
IconName2["Add"] = "add";
|
|
108
|
+
IconName2["Arrow2Down"] = "arrow-2-down";
|
|
109
|
+
IconName2["Arrow2Left"] = "arrow-2-left";
|
|
110
|
+
IconName2["Arrow2Right"] = "arrow-2-right";
|
|
111
|
+
IconName2["Arrow2Up"] = "arrow-2-up";
|
|
112
|
+
IconName2["Arrow2UpRight"] = "arrow-2-up-right";
|
|
113
|
+
IconName2["ArrowDoubleLeft"] = "arrow-double-left";
|
|
114
|
+
IconName2["ArrowDoubleRight"] = "arrow-double-right";
|
|
115
|
+
IconName2["ArrowDown"] = "arrow-down";
|
|
116
|
+
IconName2["ArrowLeft"] = "arrow-left";
|
|
117
|
+
IconName2["ArrowRight"] = "arrow-right";
|
|
118
|
+
IconName2["ArrowUp"] = "arrow-up";
|
|
119
|
+
IconName2["BankToken"] = "bank-token";
|
|
120
|
+
IconName2["Bank"] = "bank";
|
|
121
|
+
IconName2["Book"] = "book";
|
|
122
|
+
IconName2["Bookmark"] = "bookmark";
|
|
123
|
+
IconName2["Bridge"] = "bridge";
|
|
124
|
+
IconName2["Calculator"] = "calculator";
|
|
125
|
+
IconName2["CardPos"] = "card-pos";
|
|
126
|
+
IconName2["CardToken"] = "card-token";
|
|
127
|
+
IconName2["Card"] = "card";
|
|
128
|
+
IconName2["Category"] = "category";
|
|
129
|
+
IconName2["Chart"] = "chart";
|
|
130
|
+
IconName2["CheckBold"] = "check-bold";
|
|
131
|
+
IconName2["Check"] = "check";
|
|
132
|
+
IconName2["Clock"] = "clock";
|
|
133
|
+
IconName2["Close"] = "close";
|
|
134
|
+
IconName2["CodeCircle"] = "code-circle";
|
|
135
|
+
IconName2["Coin"] = "coin";
|
|
136
|
+
IconName2["Confirmation"] = "confirmation";
|
|
137
|
+
IconName2["Connect"] = "connect";
|
|
138
|
+
IconName2["CopySuccess"] = "copy-success";
|
|
139
|
+
IconName2["Copy"] = "copy";
|
|
140
|
+
IconName2["Customize"] = "customize";
|
|
141
|
+
IconName2["Danger"] = "danger";
|
|
142
|
+
IconName2["Dark"] = "dark";
|
|
143
|
+
IconName2["Data"] = "data";
|
|
144
|
+
IconName2["Diagram"] = "diagram";
|
|
145
|
+
IconName2["DocumentCode"] = "document-code";
|
|
146
|
+
IconName2["DragDrop"] = "drag-drop";
|
|
147
|
+
IconName2["DraggingAnimation"] = "dragging-animation";
|
|
148
|
+
IconName2["PinningAnimation"] = "pinning-animation";
|
|
149
|
+
IconName2["Edit"] = "edit";
|
|
150
|
+
IconName2["Eraser"] = "eraser";
|
|
151
|
+
IconName2["Ethereum"] = "ethereum";
|
|
152
|
+
IconName2["Expand"] = "expand";
|
|
153
|
+
IconName2["Explore"] = "explore";
|
|
154
|
+
IconName2["Export"] = "export";
|
|
155
|
+
IconName2["EyeSlash"] = "eye-slash";
|
|
156
|
+
IconName2["Eye"] = "eye";
|
|
157
|
+
IconName2["Filter"] = "filter";
|
|
158
|
+
IconName2["Flag"] = "flag";
|
|
159
|
+
IconName2["FlashSlash"] = "flash-slash";
|
|
160
|
+
IconName2["Flash"] = "flash";
|
|
161
|
+
IconName2["FullCircle"] = "full-circle";
|
|
162
|
+
IconName2["Gas"] = "gas";
|
|
163
|
+
IconName2["GlobalSearch"] = "global-search";
|
|
164
|
+
IconName2["Global"] = "global";
|
|
165
|
+
IconName2["Graph"] = "graph";
|
|
166
|
+
IconName2["Hardware"] = "hardware";
|
|
167
|
+
IconName2["Heart"] = "heart";
|
|
168
|
+
IconName2["Hierarchy"] = "hierarchy";
|
|
169
|
+
IconName2["Home"] = "home";
|
|
170
|
+
IconName2["Import"] = "import";
|
|
171
|
+
IconName2["Info"] = "info";
|
|
172
|
+
IconName2["Key"] = "key";
|
|
173
|
+
IconName2["Light"] = "light";
|
|
174
|
+
IconName2["Link"] = "link";
|
|
175
|
+
IconName2["Loading"] = "loading";
|
|
176
|
+
IconName2["LockCircle"] = "lock-circle";
|
|
177
|
+
IconName2["LockSlash"] = "lock-slash";
|
|
178
|
+
IconName2["Lock"] = "lock";
|
|
179
|
+
IconName2["Login"] = "login";
|
|
180
|
+
IconName2["Logout"] = "logout";
|
|
181
|
+
IconName2["Menu"] = "menu";
|
|
182
|
+
IconName2["MessageQuestion"] = "message-question";
|
|
183
|
+
IconName2["Messages"] = "messages";
|
|
184
|
+
IconName2["MinusBold"] = "minus-bold";
|
|
185
|
+
IconName2["MinusSquare"] = "minus-square";
|
|
186
|
+
IconName2["Minus"] = "minus";
|
|
187
|
+
IconName2["Mobile"] = "mobile";
|
|
188
|
+
IconName2["Money"] = "money";
|
|
189
|
+
IconName2["Monitor"] = "monitor";
|
|
190
|
+
IconName2["MoreHorizontal"] = "more-horizontal";
|
|
191
|
+
IconName2["MoreVertical"] = "more-vertical";
|
|
192
|
+
IconName2["NotificationCircle"] = "notification-circle";
|
|
193
|
+
IconName2["Notification"] = "notification";
|
|
194
|
+
IconName2["PasswordCheck"] = "password-check";
|
|
195
|
+
IconName2["People"] = "people";
|
|
196
|
+
IconName2["Pin"] = "pin";
|
|
197
|
+
IconName2["ProgrammingArrows"] = "programming-arrows";
|
|
198
|
+
IconName2["Custody"] = "custody";
|
|
199
|
+
IconName2["Question"] = "question";
|
|
200
|
+
IconName2["Received"] = "received";
|
|
201
|
+
IconName2["Refresh"] = "refresh";
|
|
202
|
+
IconName2["Save"] = "save";
|
|
203
|
+
IconName2["ScanBarcode"] = "scan-barcode";
|
|
204
|
+
IconName2["ScanFocus"] = "scan-focus";
|
|
205
|
+
IconName2["Scan"] = "scan";
|
|
206
|
+
IconName2["Scroll"] = "scroll";
|
|
207
|
+
IconName2["Search"] = "search";
|
|
208
|
+
IconName2["SecurityCard"] = "security-card";
|
|
209
|
+
IconName2["SecurityCross"] = "security-cross";
|
|
210
|
+
IconName2["SecurityKey"] = "security-key";
|
|
211
|
+
IconName2["SecuritySearch"] = "security-search";
|
|
212
|
+
IconName2["SecuritySlash"] = "security-slash";
|
|
213
|
+
IconName2["SecurityTick"] = "security-tick";
|
|
214
|
+
IconName2["SecurityTime"] = "security-time";
|
|
215
|
+
IconName2["SecurityUser"] = "security-user";
|
|
216
|
+
IconName2["Security"] = "security";
|
|
217
|
+
IconName2["Send1"] = "send-1";
|
|
218
|
+
IconName2["Send2"] = "send-2";
|
|
219
|
+
IconName2["Setting"] = "setting";
|
|
220
|
+
IconName2["Slash"] = "slash";
|
|
221
|
+
IconName2["SnapsMobile"] = "snaps-mobile";
|
|
222
|
+
IconName2["SnapsPlus"] = "snaps-plus";
|
|
223
|
+
IconName2["Snaps"] = "snaps";
|
|
224
|
+
IconName2["Speedometer"] = "speedometer";
|
|
225
|
+
IconName2["Star"] = "star";
|
|
226
|
+
IconName2["Stake"] = "stake";
|
|
227
|
+
IconName2["Student"] = "student";
|
|
228
|
+
IconName2["SwapHorizontal"] = "swap-horizontal";
|
|
229
|
+
IconName2["SwapVertical"] = "swap-vertical";
|
|
230
|
+
IconName2["Tag"] = "tag";
|
|
231
|
+
IconName2["Tilde"] = "tilde";
|
|
232
|
+
IconName2["Timer"] = "timer";
|
|
233
|
+
IconName2["Trash"] = "trash";
|
|
234
|
+
IconName2["TrendDown"] = "trend-down";
|
|
235
|
+
IconName2["TrendUp"] = "trend-up";
|
|
236
|
+
IconName2["UserCircleAdd"] = "user-circle-add";
|
|
237
|
+
IconName2["UserCircleLink"] = "user-circle-link";
|
|
238
|
+
IconName2["UserCircleRemove"] = "user-circle-remove";
|
|
239
|
+
IconName2["UserCircle"] = "user-circle";
|
|
240
|
+
IconName2["User"] = "user";
|
|
241
|
+
IconName2["WalletCard"] = "wallet-card";
|
|
242
|
+
IconName2["WalletMoney"] = "wallet-money";
|
|
243
|
+
IconName2["Wallet"] = "wallet";
|
|
244
|
+
IconName2["Warning"] = "warning";
|
|
245
|
+
IconName2["Twitter"] = "twitter";
|
|
246
|
+
IconName2["QrCode"] = "qr-code";
|
|
247
|
+
IconName2["UserCheck"] = "user-check";
|
|
248
|
+
IconName2["Unpin"] = "unpin";
|
|
249
|
+
IconName2["Ban"] = "ban";
|
|
250
|
+
IconName2["Bold"] = "bold";
|
|
251
|
+
IconName2["CircleX"] = "circle-x";
|
|
252
|
+
IconName2["Download"] = "download";
|
|
253
|
+
IconName2["FileIcon"] = "file";
|
|
254
|
+
IconName2["Flask"] = "flask";
|
|
255
|
+
IconName2["Plug"] = "plug";
|
|
256
|
+
IconName2["Share"] = "share";
|
|
257
|
+
IconName2["Square"] = "square";
|
|
258
|
+
IconName2["Tint"] = "tint";
|
|
259
|
+
IconName2["Upload"] = "upload";
|
|
260
|
+
IconName2["Usb"] = "usb";
|
|
261
|
+
IconName2["Wifi"] = "wifi";
|
|
262
|
+
IconName2["PlusMinus"] = "plus-minus";
|
|
263
|
+
return IconName2;
|
|
264
|
+
})(IconName || {});
|
|
265
|
+
var TYPE22 = "Icon";
|
|
266
|
+
var Icon = createSnapComponent(TYPE22);
|
|
95
267
|
|
|
96
268
|
// src/jsx/components/Image.ts
|
|
97
|
-
var
|
|
98
|
-
var Image = createSnapComponent(
|
|
269
|
+
var TYPE23 = "Image";
|
|
270
|
+
var Image = createSnapComponent(TYPE23);
|
|
99
271
|
|
|
100
272
|
// src/jsx/components/Link.ts
|
|
101
|
-
var
|
|
102
|
-
var Link = createSnapComponent(
|
|
273
|
+
var TYPE24 = "Link";
|
|
274
|
+
var Link = createSnapComponent(TYPE24);
|
|
103
275
|
|
|
104
276
|
// src/jsx/components/Row.ts
|
|
105
|
-
var
|
|
106
|
-
var Row = createSnapComponent(
|
|
277
|
+
var TYPE25 = "Row";
|
|
278
|
+
var Row = createSnapComponent(TYPE25);
|
|
107
279
|
|
|
108
280
|
// src/jsx/components/Spinner.ts
|
|
109
|
-
var
|
|
110
|
-
var Spinner = createSnapComponent(
|
|
281
|
+
var TYPE26 = "Spinner";
|
|
282
|
+
var Spinner = createSnapComponent(TYPE26);
|
|
111
283
|
|
|
112
284
|
// src/jsx/components/Text.ts
|
|
113
|
-
var
|
|
114
|
-
var Text = createSnapComponent(
|
|
285
|
+
var TYPE27 = "Text";
|
|
286
|
+
var Text = createSnapComponent(TYPE27);
|
|
115
287
|
|
|
116
288
|
// src/jsx/components/Tooltip.ts
|
|
117
|
-
var
|
|
118
|
-
var Tooltip = createSnapComponent(
|
|
289
|
+
var TYPE28 = "Tooltip";
|
|
290
|
+
var Tooltip = createSnapComponent(TYPE28);
|
|
119
291
|
|
|
120
292
|
// src/jsx/components/Footer.ts
|
|
121
|
-
var
|
|
122
|
-
var Footer = createSnapComponent(
|
|
293
|
+
var TYPE29 = "Footer";
|
|
294
|
+
var Footer = createSnapComponent(TYPE29);
|
|
123
295
|
|
|
124
296
|
// src/jsx/components/Container.ts
|
|
125
|
-
var
|
|
126
|
-
var Container = createSnapComponent(
|
|
297
|
+
var TYPE30 = "Container";
|
|
298
|
+
var Container = createSnapComponent(TYPE30);
|
|
127
299
|
|
|
128
300
|
// src/jsx/jsx-runtime.ts
|
|
129
301
|
function jsx(component, props, key) {
|
|
@@ -270,8 +442,22 @@ function element(name, props = {}) {
|
|
|
270
442
|
key: nullable(KeyStruct)
|
|
271
443
|
});
|
|
272
444
|
}
|
|
445
|
+
var ImageStruct = element("Image", {
|
|
446
|
+
src: svg(),
|
|
447
|
+
alt: optional(string2())
|
|
448
|
+
});
|
|
449
|
+
var IconNameStruct = nullUnion(
|
|
450
|
+
Object.values(IconName).map((name) => literal(name))
|
|
451
|
+
);
|
|
452
|
+
var IconStruct = element("Icon", {
|
|
453
|
+
name: IconNameStruct,
|
|
454
|
+
color: optional(
|
|
455
|
+
nullUnion([literal("default"), literal("primary"), literal("muted")])
|
|
456
|
+
),
|
|
457
|
+
size: optional(nullUnion([literal("md"), literal("inherit")]))
|
|
458
|
+
});
|
|
273
459
|
var ButtonStruct = element("Button", {
|
|
274
|
-
children: StringElementStruct,
|
|
460
|
+
children: children([StringElementStruct, ImageStruct, IconStruct]),
|
|
275
461
|
name: optional(string2()),
|
|
276
462
|
type: optional(nullUnion([literal("button"), literal("submit")])),
|
|
277
463
|
variant: optional(nullUnion([literal("primary"), literal("destructive")])),
|
|
@@ -293,13 +479,33 @@ var InputStruct = element("Input", {
|
|
|
293
479
|
});
|
|
294
480
|
var OptionStruct = element("Option", {
|
|
295
481
|
value: string2(),
|
|
296
|
-
children: string2()
|
|
482
|
+
children: nullUnion([string2()])
|
|
297
483
|
});
|
|
298
484
|
var DropdownStruct = element("Dropdown", {
|
|
299
485
|
name: string2(),
|
|
300
486
|
value: optional(string2()),
|
|
301
487
|
children: children([OptionStruct])
|
|
302
488
|
});
|
|
489
|
+
var CardStruct = element("Card", {
|
|
490
|
+
image: optional(string2()),
|
|
491
|
+
title: string2(),
|
|
492
|
+
description: optional(string2()),
|
|
493
|
+
value: string2(),
|
|
494
|
+
extra: optional(string2())
|
|
495
|
+
});
|
|
496
|
+
var SelectorOptionStruct = element(
|
|
497
|
+
"SelectorOption",
|
|
498
|
+
{
|
|
499
|
+
value: string2(),
|
|
500
|
+
children: CardStruct
|
|
501
|
+
}
|
|
502
|
+
);
|
|
503
|
+
var SelectorStruct = element("Selector", {
|
|
504
|
+
name: string2(),
|
|
505
|
+
title: string2(),
|
|
506
|
+
value: optional(string2()),
|
|
507
|
+
children: children([SelectorOptionStruct])
|
|
508
|
+
});
|
|
303
509
|
var RadioStruct = element("Radio", {
|
|
304
510
|
value: string2(),
|
|
305
511
|
children: string2()
|
|
@@ -326,7 +532,8 @@ var FIELD_CHILDREN_ARRAY = [
|
|
|
326
532
|
DropdownStruct,
|
|
327
533
|
RadioGroupStruct,
|
|
328
534
|
FileInputStruct,
|
|
329
|
-
CheckboxStruct
|
|
535
|
+
CheckboxStruct,
|
|
536
|
+
SelectorStruct
|
|
330
537
|
];
|
|
331
538
|
var FieldChildUnionStruct = nullUnion([
|
|
332
539
|
...FIELD_CHILDREN_ARRAY,
|
|
@@ -413,28 +620,33 @@ var ValueStruct = element("Value", {
|
|
|
413
620
|
value: string2(),
|
|
414
621
|
extra: string2()
|
|
415
622
|
});
|
|
416
|
-
var CardStruct = element("Card", {
|
|
417
|
-
image: optional(string2()),
|
|
418
|
-
title: string2(),
|
|
419
|
-
description: optional(string2()),
|
|
420
|
-
value: string2(),
|
|
421
|
-
extra: optional(string2())
|
|
422
|
-
});
|
|
423
623
|
var HeadingStruct = element("Heading", {
|
|
424
624
|
children: StringElementStruct
|
|
425
625
|
});
|
|
426
|
-
var ImageStruct = element("Image", {
|
|
427
|
-
src: svg(),
|
|
428
|
-
alt: optional(string2())
|
|
429
|
-
});
|
|
430
626
|
var LinkStruct = element("Link", {
|
|
431
627
|
href: string2(),
|
|
432
628
|
children: children([FormattingStruct, string2()])
|
|
433
629
|
});
|
|
434
630
|
var TextStruct = element("Text", {
|
|
435
|
-
children: children([
|
|
631
|
+
children: children([
|
|
632
|
+
string2(),
|
|
633
|
+
BoldStruct,
|
|
634
|
+
ItalicStruct,
|
|
635
|
+
LinkStruct,
|
|
636
|
+
IconStruct
|
|
637
|
+
]),
|
|
436
638
|
alignment: optional(
|
|
437
639
|
nullUnion([literal("start"), literal("center"), literal("end")])
|
|
640
|
+
),
|
|
641
|
+
color: optional(
|
|
642
|
+
nullUnion([
|
|
643
|
+
literal("default"),
|
|
644
|
+
literal("alternative"),
|
|
645
|
+
literal("muted"),
|
|
646
|
+
literal("error"),
|
|
647
|
+
literal("success"),
|
|
648
|
+
literal("warning")
|
|
649
|
+
])
|
|
438
650
|
)
|
|
439
651
|
});
|
|
440
652
|
var TooltipChildStruct = nullUnion([
|
|
@@ -443,6 +655,7 @@ var TooltipChildStruct = nullUnion([
|
|
|
443
655
|
ItalicStruct,
|
|
444
656
|
LinkStruct,
|
|
445
657
|
ImageStruct,
|
|
658
|
+
IconStruct,
|
|
446
659
|
boolean()
|
|
447
660
|
]);
|
|
448
661
|
var TooltipContentStruct = nullUnion([
|
|
@@ -450,6 +663,7 @@ var TooltipContentStruct = nullUnion([
|
|
|
450
663
|
BoldStruct,
|
|
451
664
|
ItalicStruct,
|
|
452
665
|
LinkStruct,
|
|
666
|
+
IconStruct,
|
|
453
667
|
string2()
|
|
454
668
|
]);
|
|
455
669
|
var TooltipStruct = element("Tooltip", {
|
|
@@ -486,7 +700,9 @@ var BoxChildStruct = typedUnion([
|
|
|
486
700
|
TextStruct,
|
|
487
701
|
TooltipStruct,
|
|
488
702
|
CheckboxStruct,
|
|
489
|
-
CardStruct
|
|
703
|
+
CardStruct,
|
|
704
|
+
IconStruct,
|
|
705
|
+
SelectorStruct
|
|
490
706
|
]);
|
|
491
707
|
var RootJSXElementStruct = nullUnion([
|
|
492
708
|
BoxChildStruct,
|
|
@@ -519,7 +735,10 @@ var JSXElementStruct = typedUnion([
|
|
|
519
735
|
CheckboxStruct,
|
|
520
736
|
FooterStruct,
|
|
521
737
|
ContainerStruct,
|
|
522
|
-
CardStruct
|
|
738
|
+
CardStruct,
|
|
739
|
+
IconStruct,
|
|
740
|
+
SelectorStruct,
|
|
741
|
+
SelectorOptionStruct
|
|
523
742
|
]);
|
|
524
743
|
function isJSXElement(value) {
|
|
525
744
|
return is2(value, JSXElementStruct);
|
|
@@ -562,6 +781,8 @@ export {
|
|
|
562
781
|
Form,
|
|
563
782
|
FormChildStruct,
|
|
564
783
|
Heading,
|
|
784
|
+
Icon,
|
|
785
|
+
IconName,
|
|
565
786
|
Image,
|
|
566
787
|
Input,
|
|
567
788
|
Italic,
|
|
@@ -572,6 +793,8 @@ export {
|
|
|
572
793
|
RadioGroup,
|
|
573
794
|
RootJSXElementStruct,
|
|
574
795
|
Row,
|
|
796
|
+
Selector,
|
|
797
|
+
SelectorOption,
|
|
575
798
|
Spinner,
|
|
576
799
|
Text,
|
|
577
800
|
Tooltip,
|