@spaceandtimelabs/dapp-mi-components 0.1.1 → 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.
@@ -0,0 +1,717 @@
1
+ import { AccordionProps } from '../../@mui/material';
2
+ import { ButtonProps as ButtonProps_2 } from '../../@mui/material/Button';
3
+ import { ChangeEvent } from '../../react';
4
+ import { Component } from '../../react';
5
+ import { default as default_2 } from '../../react';
6
+ import { default as default_3 } from '../../../../react';
7
+ import { default as default_4 } from '../../../react';
8
+ import { DefaultTheme } from './styled-components';
9
+ import { ErrorInfo } from '../../react';
10
+ import { GlobalStyleComponent } from './styled-components';
11
+ import { MenuProps } from '../../@mui/material';
12
+ import { PaginationProps } from '../../@mui/material';
13
+ import * as React_2 from 'react';
14
+ import { ReactNode } from '../../react';
15
+ import { SnackbarCloseReason } from '../../@mui/material/Snackbar';
16
+ import { SwitchProps } from '../../@mui/material';
17
+ import { Theme } from './@mui/material/styles';
18
+ import { TooltipProps } from '../../@mui/material/Tooltip';
19
+
20
+ export declare const Accordion: default_2.FC<AccordionComponentProps>;
21
+
22
+ declare interface AccordionComponentProps extends Omit<AccordionProps, 'children'> {
23
+ id: string;
24
+ summary: string;
25
+ items: ItemProps[];
26
+ accordionInnerContainer?: boolean;
27
+ expandIcon?: default_2.ReactNode;
28
+ collapseIcon?: default_2.ReactNode;
29
+ }
30
+
31
+ export declare const ActivityBar: React_2.FC<ActivityBarProps>;
32
+
33
+ declare interface ActivityBarProps {
34
+ handleClose: (event: Event | React_2.SyntheticEvent, reason?: SnackbarCloseReason) => void;
35
+ open: boolean;
36
+ theme?: any;
37
+ anchorOrigin?: {
38
+ vertical: 'top' | 'bottom';
39
+ horizontal: 'left' | 'right';
40
+ };
41
+ }
42
+
43
+ export declare const add: string;
44
+
45
+ export declare const addIcn: string;
46
+
47
+ export declare const arrowDown: string;
48
+
49
+ export declare const arrowRight: string;
50
+
51
+ export declare const arrowRightUp: string;
52
+
53
+ export declare const btnArrowRight: string;
54
+
55
+ export declare const Button: ({ type, sizes, variants, className, icon, iconPosition, text, onClick, isDisabled, theme, children, iconColor, ...rest }: ButtonProps) => default_2.JSX.Element;
56
+
57
+ export declare interface ButtonProps extends Omit<ButtonProps_2, 'variant' | 'size'> {
58
+ type?: 'button' | 'submit' | 'reset';
59
+ sizes?: 'sm' | 'md';
60
+ variants?: 'primary' | 'secondary' | 'primary-outline' | 'skyPink' | 'skyPink-outline' | 'blue' | 'blue-outline' | 'indigo' | 'indigo-outline' | 'violet' | 'violet-outline' | 'danger' | 'danger-outline';
61
+ className?: string;
62
+ icon?: string;
63
+ iconPosition?: 'right' | 'left' | string | undefined;
64
+ text?: string | undefined;
65
+ onClick?: (event: default_2.MouseEvent<HTMLButtonElement>) => void;
66
+ isDisabled?: boolean;
67
+ theme?: any;
68
+ iconColor?: string;
69
+ }
70
+
71
+ export declare const Cards: ({ variants, className, theme, title, content, image, }: CardsProps) => default_2.JSX.Element;
72
+
73
+ declare interface CardsProps {
74
+ variants?: 'apps' | 'dashboard';
75
+ className?: string;
76
+ theme?: any;
77
+ title?: string;
78
+ content?: string;
79
+ image?: string;
80
+ }
81
+
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>;
85
+
86
+ export declare const ChatBotComponentsTab: () => default_3.JSX.Element;
87
+
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
+ }
137
+
138
+ export declare const ChoiceOptions: default_4.FC;
139
+
140
+ export declare const Circular: () => default_2.JSX.Element;
141
+
142
+ export declare const circular: string;
143
+
144
+ export declare const CloseIconComponent: ({ className, iconColor, theme, }: IconsProps) => default_2.JSX.Element;
145
+
146
+ export declare const CommonDrawer: default_2.FC<CommonDrawerProps>;
147
+
148
+ export declare interface CommonDrawerProps {
149
+ children?: default_2.ReactNode;
150
+ header?: default_2.ReactNode;
151
+ drawerList: default_2.ReactNode;
152
+ theme?: any;
153
+ }
154
+
155
+ export declare const CommonTable: default_2.FC<TableProps>;
156
+
157
+ export declare const CommonTooltip: default_2.FC<CommonTooltipProps>;
158
+
159
+ export declare interface CommonTooltipProps extends TooltipProps {
160
+ variant?: 'primary | secondary';
161
+ sizes?: 'sm' | 'md';
162
+ }
163
+
164
+ export declare const create: string;
165
+
166
+ export declare const CreateProject: () => default_2.JSX.Element;
167
+
168
+ export declare const CurrencyBox: default_4.FC;
169
+
170
+ declare interface CustomPaginationProps extends PaginationProps {
171
+ }
172
+
173
+ export declare const CustomSwitch: default_2.FC<CustomSwitchProps>;
174
+
175
+ export declare interface CustomSwitchProps extends SwitchProps {
176
+ className?: string;
177
+ theme?: any;
178
+ label?: string;
179
+ labelPlacement?: 'end' | 'start' | 'top' | 'bottom';
180
+ }
181
+
182
+ declare interface Data {
183
+ [key: string]: string;
184
+ }
185
+
186
+ export declare const data: string;
187
+
188
+ export declare const downArrow: string;
189
+
190
+ export declare const edit: string;
191
+
192
+ export declare const EditMenu: () => React_2.JSX.Element;
193
+
194
+ export declare class ErrorBoundary extends Component<Props, State> {
195
+ constructor(props: Props);
196
+ static getDerivedStateFromError(error: Error): State;
197
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
198
+ render(): default_2.ReactNode;
199
+ }
200
+
201
+ export declare const Explore: default_2.FC;
202
+
203
+ export declare const ExplorePage: default_2.FC;
204
+
205
+ export declare const filterIcn: string;
206
+
207
+ export declare const Footer: default_2.FC;
208
+
209
+ export declare const GlobalStyle: GlobalStyleComponent< {
210
+ theme: any;
211
+ $useImgColors?: boolean | undefined;
212
+ $chartBackground?: string[] | undefined;
213
+ }, DefaultTheme>;
214
+
215
+ export declare const Header: ({ onAuthButtonClick }: HeaderProps) => React_2.JSX.Element;
216
+
217
+ declare interface HeaderProps {
218
+ onAuthButtonClick: () => void;
219
+ }
220
+
221
+ export declare const icnSearchInput: string;
222
+
223
+ export declare interface IconsProps extends Omit<ButtonProps_2, 'variant' | 'size'> {
224
+ className?: string;
225
+ iconColor?: string;
226
+ theme?: any;
227
+ }
228
+
229
+ export declare const infoCircle: string;
230
+
231
+ export declare const Input: ({ type, isDisabled, onClick, className, icon, iconPosition, placeholder, isButton, btnText, isBtnIcon, isIconPosition, inputRef, onChange, onBlur, onFocus, ...rest }: InputProps) => default_2.JSX.Element;
232
+
233
+ declare interface InputProps extends default_2.InputHTMLAttributes<HTMLInputElement> {
234
+ type: 'text' | 'email' | 'password' | 'search';
235
+ className?: string;
236
+ icon?: string;
237
+ iconPosition?: 'right' | 'left';
238
+ placeholder: string;
239
+ onClick?: (event: default_2.MouseEvent<HTMLElement>) => void;
240
+ isDisabled?: boolean;
241
+ isButton?: boolean;
242
+ btnText?: string;
243
+ isBtnIcon?: string;
244
+ isIconPosition?: string;
245
+ inputRef?: default_2.Ref<HTMLInputElement>;
246
+ onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
247
+ onBlur?: () => void;
248
+ onFocus?: () => void;
249
+ }
250
+
251
+ declare interface ItemProps {
252
+ id: string;
253
+ title: string;
254
+ content: string;
255
+ }
256
+
257
+ export declare const Landing: default_2.FC;
258
+
259
+ export declare const LandingDrawer: default_4.FC<MiniDrawerProps>;
260
+
261
+ export declare const LandingPage: default_2.FC;
262
+
263
+ export declare const layer: string;
264
+
265
+ export declare const Layout: default_2.FC<LayoutProps>;
266
+
267
+ declare interface LayoutProps {
268
+ children: default_2.ReactNode;
269
+ onAuthButtonClick: () => void;
270
+ onSidebarLinkClick: (link: string) => void;
271
+ }
272
+
273
+ export declare const magicpen: string;
274
+
275
+ export declare const menu: string;
276
+
277
+ declare interface MenuItem {
278
+ icon: string;
279
+ title: string;
280
+ onClick?: (event: default_4.MouseEvent<HTMLElement>) => void;
281
+ className?: string;
282
+ }
283
+
284
+ export declare const messages: string;
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
+
558
+ declare interface MiniDrawerProps {
559
+ children: default_4.ReactNode;
560
+ onSidebarLinkClick: (link: string) => void;
561
+ }
562
+
563
+ export declare const MyAppsContent: () => default_2.JSX.Element;
564
+
565
+ export declare const MyProjectHeader: default_2.FC<MyProjectHeaderProps>;
566
+
567
+ declare interface MyProjectHeaderProps {
568
+ subTitle: string;
569
+ title: string;
570
+ }
571
+
572
+ export declare const MyProjects: () => default_2.JSX.Element;
573
+
574
+ export declare const MySavedQueries: () => default_4.JSX.Element;
575
+
576
+ export declare const NextIcon: () => default_2.JSX.Element;
577
+
578
+ export declare const OverlayLoading: default_2.FC;
579
+
580
+ export declare const PageHead: default_2.FC<PageHeadProps>;
581
+
582
+ declare interface PageHeadProps {
583
+ head: string;
584
+ subHead?: string;
585
+ centerAlign?: boolean;
586
+ className?: string;
587
+ }
588
+
589
+ export declare const pages: string;
590
+
591
+ export declare const PagesVersions: () => default_2.JSX.Element;
592
+
593
+ export declare const PaginationComponent: default_2.FC<CustomPaginationProps>;
594
+
595
+ export declare const plus: string;
596
+
597
+ export declare const PopoverMenu: default_2.FC<PopoverMenuProps>;
598
+
599
+ export declare interface PopoverMenuProps extends Omit<MenuProps, 'variant' | 'content' | 'open'> {
600
+ anchorEl: HTMLElement | null;
601
+ onClose: () => void;
602
+ onClick?: (event: default_2.MouseEvent<HTMLElement>) => void;
603
+ content?: Array<{
604
+ id: number;
605
+ icon: default_2.ReactNode;
606
+ label: string;
607
+ action?: () => void;
608
+ divider?: boolean;
609
+ }> | default_2.ReactNode;
610
+ PaperProps?: object;
611
+ anchorOrigin?: {
612
+ vertical: 'top' | 'bottom';
613
+ horizontal: 'left' | 'right';
614
+ };
615
+ transformOrigin?: {
616
+ vertical: 'top' | 'bottom';
617
+ horizontal: 'left' | 'right';
618
+ };
619
+ className?: string;
620
+ theme?: any;
621
+ }
622
+
623
+ export declare const PopularTrade: default_4.FC;
624
+
625
+ export declare const PreviousIcon: () => default_2.JSX.Element;
626
+
627
+ export declare const ProfileTooltip: () => default_4.JSX.Element;
628
+
629
+ export declare const proofOFSql: string;
630
+
631
+ declare interface Props {
632
+ errorPageType?: string;
633
+ children?: ReactNode;
634
+ }
635
+
636
+ export declare const rightArrow: string;
637
+
638
+ declare const scroll_2: string;
639
+ export { scroll_2 as scroll }
640
+
641
+ export declare const search: string;
642
+
643
+ export declare const setting: string;
644
+
645
+ export declare const settings: string;
646
+
647
+ export declare const share: string;
648
+
649
+ declare interface SideBarButtonProps {
650
+ menuItems: MenuItem[];
651
+ section: string;
652
+ tootlTipProps?: any;
653
+ }
654
+
655
+ export declare const SideBarButtons: default_4.FC<SideBarButtonProps>;
656
+
657
+ export declare const SideBarListItem: default_4.FC<SideBarListItemProps>;
658
+
659
+ declare interface SideBarListItemProps {
660
+ icon: string;
661
+ title: string;
662
+ className?: string;
663
+ isSelected: boolean;
664
+ onClick?: (event: default_4.MouseEvent<HTMLElement>) => void;
665
+ tooltipProps?: any;
666
+ }
667
+
668
+ export declare const spaceArchitecture: string;
669
+
670
+ export declare const SpinKitCube: default_2.FC;
671
+
672
+ declare interface State {
673
+ hasError: boolean;
674
+ }
675
+
676
+ export declare const SuggestedTrade: default_4.FC;
677
+
678
+ declare interface TableProps {
679
+ headers: string[];
680
+ data: Data[];
681
+ actionButtons?: default_2.ReactNode;
682
+ }
683
+
684
+ declare interface TabProps {
685
+ className?: 'inlineTabs' | 'blockTabs' | string;
686
+ tabsText: string[];
687
+ tabContent?: React_2.ReactNode[];
688
+ }
689
+
690
+ export declare const TabsComponent: React_2.FC<TabProps>;
691
+
692
+ export declare const TradeInfo: () => default_4.JSX.Element;
693
+
694
+ export declare const TradeSuccess: default_4.FC;
695
+
696
+ export declare const transactions: string;
697
+
698
+ export declare const TypeWriterInput: () => default_4.JSX.Element;
699
+
700
+ export declare const UIComponents: () => default_3.JSX.Element;
701
+
702
+ export declare const upload: string;
703
+
704
+ export declare const variableTheme: Theme;
705
+
706
+ export { }
707
+
708
+ declare module '@mui/material/styles' {
709
+ interface Theme {
710
+ custom: any;
711
+ bodyBg: any;
712
+ }
713
+ interface ThemeOptions {
714
+ custom?: any;
715
+ bodyBg?: any;
716
+ }
717
+ }