@spaceandtimelabs/dapp-mi-components 0.2.0 → 0.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/dist/index.d.ts CHANGED
@@ -79,11 +79,61 @@ declare interface CardsProps {
79
79
  image?: string;
80
80
  }
81
81
 
82
- export declare const ChatBot: default_3.FC;
82
+ export declare const Chat: ({ messageCollection, onNewUserMessage, userInput, onInputValueChange, messageLoading, onImageUploadClick, imageUploadDisabled, isSendDisabled, }: ChatProps) => default_3.JSX.Element;
83
+
84
+ export declare const ChatBotButton: default_3.FC<ChatBotProps>;
83
85
 
84
86
  export declare const ChatBotComponentsTab: () => default_3.JSX.Element;
85
87
 
86
- export declare const ChatBotWrapper: () => default_3.JSX.Element;
88
+ declare interface ChatbotMessage {
89
+ content: string;
90
+ role: string;
91
+ timestamp: number;
92
+ type: ChatMessageTypeEnum;
93
+ }
94
+
95
+ declare interface ChatBotProps {
96
+ ChatTab: default_3.ComponentType;
97
+ ComponentsTab: default_3.ComponentType;
98
+ ProjectsTab: default_3.ComponentType;
99
+ ManageTab: default_3.ComponentType;
100
+ onChatBotPinnedClick: () => void;
101
+ onChatBotCloseClick: () => void;
102
+ chatBotPinned: boolean;
103
+ }
104
+
105
+ export declare const ChatBotWrapper: ({ ChatTab, ComponentsTab, ProjectsTab, ManageTab, onChatBotPinnedClick, onChatBotCloseClick, chatBotPinned, }: ChatBotWrapperProps) => default_3.JSX.Element;
106
+
107
+ declare interface ChatBotWrapperProps {
108
+ ChatTab: default_3.ComponentType;
109
+ ComponentsTab: default_3.ComponentType;
110
+ ProjectsTab: default_3.ComponentType;
111
+ ManageTab: default_3.ComponentType;
112
+ onChatBotPinnedClick: () => void;
113
+ onChatBotCloseClick: () => void;
114
+ chatBotPinned: boolean;
115
+ }
116
+
117
+ declare enum ChatMessageTypeEnum {
118
+ popularTrade = "popular",
119
+ suggestion = "suggestion",
120
+ trade = "trade",
121
+ success = "success",
122
+ error = "error",
123
+ default = "default",
124
+ currency = "currency"
125
+ }
126
+
127
+ declare interface ChatProps {
128
+ messageCollection: ChatbotMessage[];
129
+ onNewUserMessage: () => void;
130
+ userInput: string;
131
+ onInputValueChange: (e: Event) => void;
132
+ messageLoading: boolean;
133
+ onImageUploadClick: () => void;
134
+ imageUploadDisabled: boolean;
135
+ isSendDisabled: boolean;
136
+ }
87
137
 
88
138
  export declare const ChoiceOptions: default_4.FC;
89
139
 
@@ -150,6 +200,8 @@ export declare class ErrorBoundary extends Component<Props, State> {
150
200
 
151
201
  export declare const Explore: default_2.FC;
152
202
 
203
+ export declare const ExplorePage: default_2.FC;
204
+
153
205
  export declare const filterIcn: string;
154
206
 
155
207
  export declare const Footer: default_2.FC;
@@ -160,7 +212,11 @@ $useImgColors?: boolean | undefined;
160
212
  $chartBackground?: string[] | undefined;
161
213
  }, DefaultTheme>;
162
214
 
163
- export declare const Header: () => React_2.JSX.Element;
215
+ export declare const Header: ({ onAuthButtonClick }: HeaderProps) => React_2.JSX.Element;
216
+
217
+ declare interface HeaderProps {
218
+ onAuthButtonClick: () => void;
219
+ }
164
220
 
165
221
  export declare const icnSearchInput: string;
166
222
 
@@ -202,12 +258,16 @@ export declare const Landing: default_2.FC;
202
258
 
203
259
  export declare const LandingDrawer: default_4.FC<MiniDrawerProps>;
204
260
 
261
+ export declare const LandingPage: default_2.FC;
262
+
205
263
  export declare const layer: string;
206
264
 
207
265
  export declare const Layout: default_2.FC<LayoutProps>;
208
266
 
209
267
  declare interface LayoutProps {
210
268
  children: default_2.ReactNode;
269
+ onAuthButtonClick: () => void;
270
+ onSidebarLinkClick: (link: string) => void;
211
271
  }
212
272
 
213
273
  export declare const magicpen: string;
@@ -223,8 +283,281 @@ declare interface MenuItem {
223
283
 
224
284
  export declare const messages: string;
225
285
 
286
+ export declare const MI_DAPP_COMPONENTS_THEME: {
287
+ bodyBg: string;
288
+ palette: {
289
+ primary: {
290
+ main: string;
291
+ dark: string;
292
+ light: string;
293
+ };
294
+ secondary: {
295
+ main: string;
296
+ dark: string;
297
+ light: string;
298
+ };
299
+ error: {
300
+ main: string;
301
+ dark: string;
302
+ light: string;
303
+ };
304
+ };
305
+ typography: {
306
+ fontFamily: string;
307
+ };
308
+ breakpoints: {
309
+ values: {
310
+ xs: number;
311
+ sm: number;
312
+ md: number;
313
+ lg: number;
314
+ xl: number;
315
+ };
316
+ };
317
+ custom: {
318
+ brown: string;
319
+ blue: string;
320
+ blueLight: string;
321
+ blueActive: string;
322
+ navyBlue: string;
323
+ green: string;
324
+ greenLight: string;
325
+ red: string;
326
+ redLight: string;
327
+ redTrash: string;
328
+ violet: string;
329
+ orange: string;
330
+ cyan: string;
331
+ pink: string;
332
+ pinkDark: string;
333
+ olive: string;
334
+ blueDark: string;
335
+ mint: string;
336
+ purple: string;
337
+ purpleRgba: string;
338
+ purpleDark: string;
339
+ purpleLight: string;
340
+ purpleShade: string;
341
+ resizer: string;
342
+ chartGrid: string;
343
+ chartLabel: string;
344
+ yellow: string;
345
+ skelton: string;
346
+ axisPointer: string;
347
+ insightInfoBg: string;
348
+ nebulaBlue: string;
349
+ mutedColor: string;
350
+ drawerWidth: string;
351
+ drawerWidthMobile: string;
352
+ chatBotWidth: string;
353
+ pythonScriptColor: {
354
+ color1: string;
355
+ color2: string;
356
+ color3: string;
357
+ color5: string;
358
+ color6: string;
359
+ color7: string;
360
+ color8: string;
361
+ color9: string;
362
+ color10: string;
363
+ color11: string;
364
+ footerButtonBg: string;
365
+ };
366
+ chart: {
367
+ area: string;
368
+ bar: string;
369
+ sliderBg: string;
370
+ pieShadow: string;
371
+ A1: string;
372
+ };
373
+ gradiant: {
374
+ blue: string;
375
+ red: string;
376
+ mint: string;
377
+ bluePink: string;
378
+ violet: string;
379
+ };
380
+ tags: {
381
+ A1: string;
382
+ A2: string;
383
+ A3: string;
384
+ A4: string;
385
+ bg1: string;
386
+ bg2: string;
387
+ bg3: string;
388
+ bg4: string;
389
+ bg5: string;
390
+ };
391
+ counterType: {
392
+ A1: string;
393
+ A2: string;
394
+ A3: string;
395
+ A4: string;
396
+ };
397
+ greyText: {
398
+ A1: string;
399
+ A2: string;
400
+ A3: string;
401
+ A4: string;
402
+ A5: string;
403
+ A6: string;
404
+ A7: string;
405
+ A8: string;
406
+ A9: string;
407
+ A10: string;
408
+ A11: string;
409
+ A12: string;
410
+ A13: string;
411
+ };
412
+ black: {
413
+ A1: string;
414
+ A2: string;
415
+ A3: string;
416
+ A4: string;
417
+ A5: string;
418
+ A6: string;
419
+ A7: string;
420
+ A8: string;
421
+ Rgba: string;
422
+ };
423
+ white: {
424
+ A1: string;
425
+ A2: string;
426
+ A3: string;
427
+ A4: string;
428
+ A5: string;
429
+ A6: string;
430
+ A7: string;
431
+ A8: string;
432
+ A9: string;
433
+ A10: string;
434
+ A11: string;
435
+ A12: string;
436
+ A13: string;
437
+ A14: string;
438
+ Rgba: string;
439
+ };
440
+ erd: {
441
+ miniMap: {
442
+ nodeColor: string;
443
+ maskColor: string;
444
+ background: string;
445
+ };
446
+ parentHeadBg: string;
447
+ };
448
+ erdTable: {
449
+ titleBg: string;
450
+ countBg: string;
451
+ tableBg: string;
452
+ border: string;
453
+ headBg: string;
454
+ headText: string;
455
+ icon: string;
456
+ cellActive: string;
457
+ name: string;
458
+ type: string;
459
+ greyBg: string;
460
+ greyHeadBg: string;
461
+ greyLight: string;
462
+ pendingBg: string;
463
+ pendingTableHead: string;
464
+ };
465
+ editor: {
466
+ keyword: string;
467
+ function: string;
468
+ string: string;
469
+ type: string;
470
+ numeric: string;
471
+ ddl: string;
472
+ dml: string;
473
+ transactions: string;
474
+ };
475
+ chatBot: {
476
+ A1: string;
477
+ A2: string;
478
+ A3: string;
479
+ A4: string;
480
+ A5: string;
481
+ A6: string;
482
+ A7: string;
483
+ };
484
+ inputBg: string;
485
+ inputFocused: string;
486
+ primaryBg: string;
487
+ primaryBgActive: string;
488
+ primaryDisabled: string;
489
+ secondaryBg: string;
490
+ secondaryBgActive: string;
491
+ secondaryDisabled: string;
492
+ HeaderBg: string;
493
+ toolBarBg: string;
494
+ boxBg: string;
495
+ boxBg2: string;
496
+ boxBg3: string;
497
+ gredientBg: string;
498
+ editorBg: string;
499
+ modalBg: string;
500
+ popupBg: string;
501
+ cardBg: string;
502
+ dropdownBg: string;
503
+ trashBg: string;
504
+ tableBg: string;
505
+ tableActionBg: string;
506
+ tableActionBgHover: string;
507
+ tableActionBgDisabled: string;
508
+ thumbnailBg: string;
509
+ thumbnailImgBg: string;
510
+ thumbnailBgHover: string;
511
+ chartThumbnail: string;
512
+ chartThumbnailActive: string;
513
+ gridColumnsBg: string;
514
+ tableHoverBg: string;
515
+ counterBg: string;
516
+ counterThumbnailBg: string;
517
+ paymentCardBg: string;
518
+ avatarBgGradient: string;
519
+ loadData: {
520
+ panelBg: string;
521
+ listBg: string;
522
+ listBgActive: string;
523
+ descText: string;
524
+ };
525
+ piplineBg: string;
526
+ piplineFilterBg: string;
527
+ azureCardBg: string;
528
+ fontSize: {
529
+ font8: string;
530
+ font10: string;
531
+ font11: string;
532
+ font12: string;
533
+ font14: string;
534
+ font16: string;
535
+ font18: string;
536
+ font20: string;
537
+ font22: string;
538
+ font24: string;
539
+ font26: string;
540
+ font30: string;
541
+ font48: string;
542
+ };
543
+ fontWeight: {
544
+ lt: number;
545
+ rg: number;
546
+ md: number;
547
+ sm: number;
548
+ bd: number;
549
+ };
550
+ heading: {
551
+ h1: string;
552
+ h2: string;
553
+ h3: string;
554
+ };
555
+ };
556
+ };
557
+
226
558
  declare interface MiniDrawerProps {
227
559
  children: default_4.ReactNode;
560
+ onSidebarLinkClick: (link: string) => void;
228
561
  }
229
562
 
230
563
  export declare const MyAppsContent: () => default_2.JSX.Element;