@cere/cere-design-system 0.0.9 → 0.0.11
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/.agent/README.md +154 -0
- package/.agent/rules/AGENTS.md +145 -0
- package/.agent/rules/COMPONENTS.md +1351 -0
- package/.agent/rules/guidelines.md +111 -0
- package/README.md +33 -3
- package/dist/HumanSans-Black-C4YJONK7.otf +0 -0
- package/dist/HumanSans-Bold-4EAJ3L3T.otf +0 -0
- package/dist/HumanSans-BoldOblique-4D325T4F.otf +0 -0
- package/dist/HumanSans-ExtraLight-VL7DEKQ4.otf +0 -0
- package/dist/HumanSans-ExtraLightOblique-VK2JTUXF.otf +0 -0
- package/dist/HumanSans-Light-YV7AFKRB.otf +0 -0
- package/dist/HumanSans-LightOblique-VIXV7QA6.otf +0 -0
- package/dist/HumanSans-Medium-UULJ3PIR.otf +0 -0
- package/dist/HumanSans-MediumOblique-M7FHDZRS.otf +0 -0
- package/dist/HumanSans-Regular-QMFEP3F6.otf +0 -0
- package/dist/HumanSans-RegularOblique-YPKQJAAM.otf +0 -0
- package/dist/index.css +79 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +242 -94
- package/dist/index.d.ts +242 -94
- package/dist/index.js +3158 -553
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3020 -456
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Theme } from '@mui/material/styles';
|
|
2
|
-
import
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { LottieComponentProps } from 'lottie-react';
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import React__default, { ReactNode, Ref, PropsWithChildren, ReactElement, AriaAttributes } from 'react';
|
|
6
|
+
import { AlertColor, SnackbarOrigin, ButtonGroupProps as ButtonGroupProps$1, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, PopoverProps, StepProps as StepProps$1, StepButtonProps as StepButtonProps$1, StepContentProps as StepContentProps$1, StepLabelProps as StepLabelProps$1, StepperProps as StepperProps$1, MenuProps as MenuProps$1, DialogProps as DialogProps$1, BoxProps, ListProps as ListProps$1, ListItemProps as ListItemProps$1, TableProps as TableProps$1, AccordionProps as AccordionProps$1, AppBarProps as AppBarProps$1, CollapseProps as CollapseProps$1, CircularProgressProps as CircularProgressProps$1, SvgIconProps } from '@mui/material';
|
|
7
|
+
export { Box, BoxProps, Container, ContainerProps, FormControl, FormControlLabel, FormControlLabelProps, FormControlProps, FormHelperText, FormHelperTextProps, FormLabel, FormLabelProps, Grid2 as Grid, Grid2Props as GridProps, InputAdornment, InputAdornmentProps, InputLabel, InputLabelProps, ListItemIcon, ListItemSecondaryAction, ListItemText, Stack, StackProps, Toolbar, ToolbarProps, Typography, TypographyProps } from '@mui/material';
|
|
3
8
|
import { ButtonProps as ButtonProps$1 } from '@mui/material/Button';
|
|
4
9
|
import { IconButtonProps as IconButtonProps$1 } from '@mui/material/IconButton';
|
|
5
10
|
import { LoadingButtonProps as LoadingButtonProps$1 } from '@mui/lab';
|
|
6
|
-
import { ButtonGroupProps as ButtonGroupProps$1, SelectProps, ToggleButtonProps as ToggleButtonProps$1, ToggleButtonGroupProps as ToggleButtonGroupProps$1, StepperProps as StepperProps$1, StepProps as StepProps$1, StepLabelProps as StepLabelProps$1, StepContentProps as StepContentProps$1, StepButtonProps as StepButtonProps$1, MenuProps as MenuProps$1, DialogProps as DialogProps$1, BoxProps, ListProps as ListProps$1, ListItemProps as ListItemProps$1, TableProps as TableProps$1, AccordionProps as AccordionProps$1, AppBarProps as AppBarProps$1, CollapseProps as CollapseProps$1, CircularProgressProps as CircularProgressProps$1 } from '@mui/material';
|
|
7
|
-
export { Box, BoxProps, Container, ContainerProps, FormControl, FormControlLabel, FormControlLabelProps, FormControlProps, FormHelperText, FormHelperTextProps, FormLabel, FormLabelProps, Grid2 as Grid, Grid2Props as GridProps, InputAdornment, InputAdornmentProps, InputLabel, InputLabelProps, ListItemIcon, ListItemSecondaryAction, ListItemText, Stack, StackProps, Toolbar, ToolbarProps, Typography, TypographyProps } from '@mui/material';
|
|
8
11
|
import { TextFieldProps as TextFieldProps$1 } from '@mui/material/TextField';
|
|
9
12
|
import { SwitchProps as SwitchProps$1 } from '@mui/material/Switch';
|
|
10
13
|
import { CheckboxProps as CheckboxProps$1 } from '@mui/material/Checkbox';
|
|
@@ -26,6 +29,7 @@ import { DividerProps as DividerProps$1 } from '@mui/material/Divider';
|
|
|
26
29
|
import { LinkProps as LinkProps$1 } from '@mui/material/Link';
|
|
27
30
|
import { AlertProps as AlertProps$1 } from '@mui/material/Alert';
|
|
28
31
|
import { SnackbarProps as SnackbarProps$1 } from '@mui/material/Snackbar';
|
|
32
|
+
import { QRCodeProps as QRCodeProps$1 } from 'react-qr-code';
|
|
29
33
|
import { ReactFlowProps, Node, Edge, OnNodesChange, OnEdgesChange, NodeTypes, EdgeTypes, BackgroundVariant, ReactFlowInstance } from 'reactflow';
|
|
30
34
|
export { Background, BackgroundVariant, ConnectionLineType, Controls, Edge, EdgeTypes, MiniMap, Node, NodeTypes, OnEdgesChange, OnNodesChange, Panel, ReactFlowInstance } from 'reactflow';
|
|
31
35
|
import { Monaco } from '@monaco-editor/react';
|
|
@@ -94,19 +98,42 @@ declare const colors: {
|
|
|
94
98
|
};
|
|
95
99
|
declare const theme: Theme;
|
|
96
100
|
|
|
101
|
+
declare const CheckMarkAnimation: () => react_jsx_runtime.JSX.Element;
|
|
102
|
+
|
|
103
|
+
type LoadingAnimationProps = Omit<LottieComponentProps, 'animationData'>;
|
|
104
|
+
declare const LoadingAnimation: (props: LoadingAnimationProps) => react_jsx_runtime.JSX.Element;
|
|
105
|
+
|
|
106
|
+
interface MessageOptions {
|
|
107
|
+
message: string;
|
|
108
|
+
appearance?: AlertColor;
|
|
109
|
+
autoDismiss?: boolean;
|
|
110
|
+
placement?: SnackbarOrigin;
|
|
111
|
+
}
|
|
112
|
+
interface MessagesContextProps {
|
|
113
|
+
showMessage: (options: MessageOptions) => void;
|
|
114
|
+
}
|
|
115
|
+
declare const useMessages: () => MessagesContextProps;
|
|
116
|
+
declare const MessagesProvider: ({ children }: {
|
|
117
|
+
children: ReactNode;
|
|
118
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
119
|
+
|
|
120
|
+
declare const useIsDesktop: () => boolean;
|
|
121
|
+
declare const useIsTablet: () => boolean;
|
|
122
|
+
declare const useIsMobile: () => boolean;
|
|
123
|
+
|
|
97
124
|
type ButtonVariant = 'primary' | 'secondary' | 'tertiary';
|
|
98
125
|
interface ButtonProps extends Omit<ButtonProps$1, 'variant' | 'color'> {
|
|
99
126
|
variant?: ButtonVariant;
|
|
100
127
|
size?: 'small' | 'medium' | 'large';
|
|
101
|
-
startIcon?:
|
|
102
|
-
endIcon?:
|
|
128
|
+
startIcon?: React__default.ReactNode;
|
|
129
|
+
endIcon?: React__default.ReactNode;
|
|
103
130
|
}
|
|
104
|
-
declare const Button:
|
|
131
|
+
declare const Button: React__default.FC<ButtonProps>;
|
|
105
132
|
|
|
106
133
|
interface IconButtonProps extends IconButtonProps$1 {
|
|
107
134
|
variant?: 'default' | 'primary' | 'secondary';
|
|
108
135
|
}
|
|
109
|
-
declare const IconButton:
|
|
136
|
+
declare const IconButton: React__default.FC<IconButtonProps>;
|
|
110
137
|
|
|
111
138
|
interface LoadingButtonProps extends LoadingButtonProps$1 {
|
|
112
139
|
/**
|
|
@@ -132,13 +159,13 @@ interface LoadingButtonProps extends LoadingButtonProps$1 {
|
|
|
132
159
|
* </LoadingButton>
|
|
133
160
|
* ```
|
|
134
161
|
*/
|
|
135
|
-
declare const LoadingButton:
|
|
162
|
+
declare const LoadingButton: React__default.FC<LoadingButtonProps>;
|
|
136
163
|
|
|
137
164
|
interface ButtonGroupProps extends ButtonGroupProps$1 {
|
|
138
165
|
/**
|
|
139
166
|
* The content of the button group
|
|
140
167
|
*/
|
|
141
|
-
children?:
|
|
168
|
+
children?: React__default.ReactNode;
|
|
142
169
|
/**
|
|
143
170
|
* If `true`, the buttons will be disabled
|
|
144
171
|
*/
|
|
@@ -175,67 +202,78 @@ interface ButtonGroupProps extends ButtonGroupProps$1 {
|
|
|
175
202
|
* </ButtonGroup>
|
|
176
203
|
* ```
|
|
177
204
|
*/
|
|
178
|
-
declare const ButtonGroup:
|
|
205
|
+
declare const ButtonGroup: React__default.FC<ButtonGroupProps>;
|
|
179
206
|
|
|
180
207
|
type TextFieldSize = 'small' | 'medium';
|
|
181
208
|
interface TextFieldProps extends Omit<TextFieldProps$1, 'size'> {
|
|
182
209
|
size?: TextFieldSize;
|
|
183
210
|
}
|
|
184
|
-
declare const TextField:
|
|
211
|
+
declare const TextField: React__default.FC<TextFieldProps>;
|
|
185
212
|
|
|
186
213
|
interface SearchFieldProps extends Omit<TextFieldProps, 'InputProps'> {
|
|
187
214
|
placeholder?: string;
|
|
188
215
|
onSearch?: (value: string) => void;
|
|
189
216
|
}
|
|
190
|
-
declare const SearchField:
|
|
191
|
-
|
|
192
|
-
type DropdownSize = 'small' | 'medium' | 'large';
|
|
193
|
-
interface DropdownOption {
|
|
194
|
-
value: string | number;
|
|
195
|
-
label: string;
|
|
196
|
-
disabled?: boolean;
|
|
197
|
-
}
|
|
198
|
-
interface DropdownProps extends Omit<SelectProps, 'size'> {
|
|
199
|
-
label?: string;
|
|
200
|
-
options: DropdownOption[];
|
|
201
|
-
size?: DropdownSize;
|
|
202
|
-
placeholder?: string;
|
|
203
|
-
}
|
|
204
|
-
declare const Dropdown: React.FC<DropdownProps>;
|
|
217
|
+
declare const SearchField: React__default.FC<SearchFieldProps>;
|
|
205
218
|
|
|
206
219
|
type ToggleButtonProps = ToggleButtonProps$1;
|
|
207
|
-
declare const ToggleButton:
|
|
220
|
+
declare const ToggleButton: React__default.FC<ToggleButtonProps>;
|
|
208
221
|
type ToggleButtonGroupProps = ToggleButtonGroupProps$1;
|
|
209
|
-
declare const ToggleButtonGroup:
|
|
222
|
+
declare const ToggleButtonGroup: React__default.FC<ToggleButtonGroupProps>;
|
|
210
223
|
|
|
211
224
|
interface SwitchProps extends SwitchProps$1 {
|
|
212
225
|
label?: string;
|
|
213
226
|
labelPosition?: 'left' | 'right';
|
|
214
227
|
}
|
|
215
|
-
declare const Switch:
|
|
228
|
+
declare const Switch: React__default.FC<SwitchProps>;
|
|
216
229
|
|
|
217
230
|
interface CheckboxProps extends Omit<CheckboxProps$1, 'color'> {
|
|
218
231
|
label?: string;
|
|
219
232
|
labelPosition?: 'left' | 'right';
|
|
220
233
|
}
|
|
221
|
-
declare const Checkbox:
|
|
234
|
+
declare const Checkbox: React__default.FC<CheckboxProps>;
|
|
222
235
|
|
|
223
236
|
interface RadioProps extends Omit<RadioProps$1, 'color'> {
|
|
224
237
|
label?: string;
|
|
225
238
|
labelPosition?: 'left' | 'right';
|
|
226
239
|
}
|
|
227
|
-
declare const Radio:
|
|
240
|
+
declare const Radio: React__default.FC<RadioProps>;
|
|
241
|
+
|
|
242
|
+
type DropdownAnchorProps = {
|
|
243
|
+
open?: boolean;
|
|
244
|
+
label?: ReactNode;
|
|
245
|
+
leftElement?: ReactNode;
|
|
246
|
+
onOpen?: () => void;
|
|
247
|
+
variant?: 'header' | 'button';
|
|
248
|
+
};
|
|
249
|
+
declare const DropdownAnchor: React.ForwardRefExoticComponent<DropdownAnchorProps & React.RefAttributes<HTMLButtonElement>>;
|
|
250
|
+
|
|
251
|
+
type RenderAnchorOptions = {
|
|
252
|
+
ref: Ref<any>;
|
|
253
|
+
open: boolean;
|
|
254
|
+
onOpen: () => void;
|
|
255
|
+
};
|
|
256
|
+
type DropdownProps = Pick<PopoverProps, 'open' | 'children'> & Omit<DropdownAnchorProps, 'open'> & {
|
|
257
|
+
direction?: 'right' | 'left';
|
|
258
|
+
dense?: boolean;
|
|
259
|
+
disableGutters?: boolean;
|
|
260
|
+
disablePaddings?: boolean;
|
|
261
|
+
onToggle?: (open: boolean) => void;
|
|
262
|
+
renderAnchor?: (options: RenderAnchorOptions) => ReactNode;
|
|
263
|
+
variant: 'header' | 'button';
|
|
264
|
+
};
|
|
265
|
+
declare const Dropdown: ({ open, label, leftElement, direction, children, onToggle, dense, disableGutters, disablePaddings, variant, renderAnchor, }: DropdownProps) => react_jsx_runtime.JSX.Element;
|
|
228
266
|
|
|
229
267
|
interface SidebarItemProps {
|
|
230
268
|
label: string;
|
|
231
|
-
icon?:
|
|
269
|
+
icon?: React__default.ReactNode;
|
|
232
270
|
selected?: boolean;
|
|
233
271
|
onClick?: () => void;
|
|
234
272
|
size?: 'small' | 'medium' | 'large';
|
|
235
|
-
endIcon?:
|
|
236
|
-
children?:
|
|
273
|
+
endIcon?: React__default.ReactNode;
|
|
274
|
+
children?: React__default.ReactNode;
|
|
237
275
|
}
|
|
238
|
-
declare const SidebarItem:
|
|
276
|
+
declare const SidebarItem: React__default.FC<SidebarItemProps>;
|
|
239
277
|
|
|
240
278
|
interface SidebarProps {
|
|
241
279
|
open?: boolean;
|
|
@@ -244,7 +282,7 @@ interface SidebarProps {
|
|
|
244
282
|
onClose?: () => void;
|
|
245
283
|
variant?: 'permanent' | 'persistent' | 'temporary';
|
|
246
284
|
}
|
|
247
|
-
declare const Sidebar:
|
|
285
|
+
declare const Sidebar: React__default.FC<SidebarProps>;
|
|
248
286
|
|
|
249
287
|
interface Service {
|
|
250
288
|
id: string;
|
|
@@ -313,7 +351,7 @@ interface ServiceSelectorButtonProps {
|
|
|
313
351
|
*/
|
|
314
352
|
onOpenAddMember?: (serviceId: string) => void;
|
|
315
353
|
}
|
|
316
|
-
declare const ServiceSelectorButton:
|
|
354
|
+
declare const ServiceSelectorButton: React__default.FC<ServiceSelectorButtonProps>;
|
|
317
355
|
|
|
318
356
|
interface Workspace {
|
|
319
357
|
id: string;
|
|
@@ -355,7 +393,7 @@ interface WorkspaceSelectorButtonProps {
|
|
|
355
393
|
*/
|
|
356
394
|
panelWidth?: number;
|
|
357
395
|
}
|
|
358
|
-
declare const WorkspaceSelectorButton:
|
|
396
|
+
declare const WorkspaceSelectorButton: React__default.FC<WorkspaceSelectorButtonProps>;
|
|
359
397
|
|
|
360
398
|
type StepperProps = StepperProps$1;
|
|
361
399
|
/**
|
|
@@ -373,43 +411,43 @@ type StepperProps = StepperProps$1;
|
|
|
373
411
|
* </Stepper>
|
|
374
412
|
* ```
|
|
375
413
|
*/
|
|
376
|
-
declare const Stepper:
|
|
414
|
+
declare const Stepper: React__default.FC<StepperProps>;
|
|
377
415
|
type StepProps = StepProps$1;
|
|
378
416
|
/**
|
|
379
417
|
* Step component - represents a single step in a Stepper
|
|
380
418
|
*/
|
|
381
|
-
declare const Step:
|
|
419
|
+
declare const Step: React__default.FC<StepProps>;
|
|
382
420
|
type StepLabelProps = StepLabelProps$1;
|
|
383
421
|
/**
|
|
384
422
|
* StepLabel component - label for a Step
|
|
385
423
|
*/
|
|
386
|
-
declare const StepLabel:
|
|
424
|
+
declare const StepLabel: React__default.FC<StepLabelProps>;
|
|
387
425
|
type StepContentProps = StepContentProps$1;
|
|
388
426
|
/**
|
|
389
427
|
* StepContent component - optional content that appears below a StepLabel
|
|
390
428
|
*/
|
|
391
|
-
declare const StepContent:
|
|
429
|
+
declare const StepContent: React__default.FC<StepContentProps>;
|
|
392
430
|
type StepButtonProps = StepButtonProps$1;
|
|
393
431
|
/**
|
|
394
432
|
* StepButton component - makes a Step clickable
|
|
395
433
|
*/
|
|
396
|
-
declare const StepButton:
|
|
434
|
+
declare const StepButton: React__default.FC<StepButtonProps>;
|
|
397
435
|
|
|
398
436
|
type BadgeVariant = 'default' | 'primary' | 'success' | 'error';
|
|
399
437
|
interface BadgeProps extends Omit<BadgeProps$1, 'color' | 'variant'> {
|
|
400
438
|
variant?: BadgeVariant;
|
|
401
|
-
children?:
|
|
439
|
+
children?: React__default.ReactNode;
|
|
402
440
|
}
|
|
403
|
-
declare const Badge:
|
|
441
|
+
declare const Badge: React__default.FC<BadgeProps>;
|
|
404
442
|
|
|
405
443
|
type ChipVariant = 'default' | 'active';
|
|
406
444
|
interface ChipProps extends Omit<ChipProps$1, 'color' | 'variant'> {
|
|
407
445
|
variant?: ChipVariant;
|
|
408
446
|
}
|
|
409
|
-
declare const Chip:
|
|
447
|
+
declare const Chip: React__default.FC<ChipProps>;
|
|
410
448
|
|
|
411
449
|
type TooltipProps = TooltipProps$1;
|
|
412
|
-
declare const Tooltip:
|
|
450
|
+
declare const Tooltip: React__default.FC<TooltipProps>;
|
|
413
451
|
|
|
414
452
|
type ProgressVariant = 'linear' | 'circular';
|
|
415
453
|
interface ProgressProps {
|
|
@@ -418,39 +456,39 @@ interface ProgressProps {
|
|
|
418
456
|
size?: number;
|
|
419
457
|
thickness?: number;
|
|
420
458
|
}
|
|
421
|
-
declare const Progress:
|
|
459
|
+
declare const Progress: React__default.FC<ProgressProps>;
|
|
422
460
|
|
|
423
461
|
interface TabProps extends Omit<TabProps$1, 'icon'> {
|
|
424
462
|
badge?: number | string;
|
|
425
463
|
badgeVariant?: 'default' | 'primary' | 'success' | 'error';
|
|
426
464
|
}
|
|
427
|
-
declare const Tab:
|
|
465
|
+
declare const Tab: React__default.FC<TabProps>;
|
|
428
466
|
|
|
429
467
|
interface MenuProps extends Omit<MenuProps$1, 'open'> {
|
|
430
468
|
anchorEl?: HTMLElement | null;
|
|
431
469
|
onClose: () => void;
|
|
432
470
|
}
|
|
433
|
-
declare const Menu:
|
|
471
|
+
declare const Menu: React__default.FC<MenuProps>;
|
|
434
472
|
interface MenuItemProps {
|
|
435
|
-
icon?:
|
|
473
|
+
icon?: React__default.ReactNode;
|
|
436
474
|
label: string;
|
|
437
475
|
onClick?: () => void;
|
|
438
476
|
disabled?: boolean;
|
|
439
477
|
divider?: boolean;
|
|
440
478
|
}
|
|
441
|
-
declare const MenuItem:
|
|
479
|
+
declare const MenuItem: React__default.FC<MenuItemProps>;
|
|
442
480
|
|
|
443
481
|
interface PaginationProps extends Omit<PaginationProps$1, 'color'> {
|
|
444
482
|
color?: 'primary' | 'secondary' | 'standard';
|
|
445
483
|
}
|
|
446
|
-
declare const Pagination:
|
|
484
|
+
declare const Pagination: React__default.FC<PaginationProps>;
|
|
447
485
|
|
|
448
486
|
interface SelectorOption {
|
|
449
487
|
id: string;
|
|
450
488
|
name: string;
|
|
451
489
|
description?: string;
|
|
452
490
|
avatar?: string;
|
|
453
|
-
icon?:
|
|
491
|
+
icon?: React__default.ReactNode;
|
|
454
492
|
disabled?: boolean;
|
|
455
493
|
}
|
|
456
494
|
interface SelectorProps {
|
|
@@ -462,10 +500,17 @@ interface SelectorProps {
|
|
|
462
500
|
placeholder?: string;
|
|
463
501
|
emptyMessage?: string;
|
|
464
502
|
compact?: boolean;
|
|
465
|
-
renderSelected?: (option: SelectorOption) =>
|
|
503
|
+
renderSelected?: (option: SelectorOption) => React__default.ReactNode;
|
|
466
504
|
width?: number;
|
|
467
505
|
}
|
|
468
|
-
declare const Selector:
|
|
506
|
+
declare const Selector: React__default.FC<SelectorProps>;
|
|
507
|
+
|
|
508
|
+
type LogoSize = 'large' | 'medium' | 'small';
|
|
509
|
+
type LogoProps = PropsWithChildren<{
|
|
510
|
+
icon?: ReactElement;
|
|
511
|
+
size?: LogoSize;
|
|
512
|
+
}>;
|
|
513
|
+
declare const Logo: ({ children, size, icon }: LogoProps) => react_jsx_runtime.JSX.Element;
|
|
469
514
|
|
|
470
515
|
interface DialogProps extends Omit<DialogProps$1, 'title'> {
|
|
471
516
|
open: boolean;
|
|
@@ -489,7 +534,7 @@ interface DialogProps extends Omit<DialogProps$1, 'title'> {
|
|
|
489
534
|
*/
|
|
490
535
|
customActions?: ReactNode;
|
|
491
536
|
}
|
|
492
|
-
declare const Dialog:
|
|
537
|
+
declare const Dialog: React__default.FC<DialogProps>;
|
|
493
538
|
|
|
494
539
|
interface DrawerProps extends Omit<DrawerProps$1, 'title'> {
|
|
495
540
|
/**
|
|
@@ -577,37 +622,37 @@ interface DrawerProps extends Omit<DrawerProps$1, 'title'> {
|
|
|
577
622
|
* </Drawer>
|
|
578
623
|
* ```
|
|
579
624
|
*/
|
|
580
|
-
declare const Drawer:
|
|
625
|
+
declare const Drawer: React__default.FC<DrawerProps>;
|
|
581
626
|
|
|
582
627
|
interface CardProps extends CardProps$1 {
|
|
583
628
|
hoverable?: boolean;
|
|
584
629
|
clickable?: boolean;
|
|
585
630
|
}
|
|
586
|
-
declare const Card:
|
|
587
|
-
declare const CardContent:
|
|
588
|
-
declare const CardHeader:
|
|
589
|
-
declare const CardActions:
|
|
631
|
+
declare const Card: React__default.FC<CardProps>;
|
|
632
|
+
declare const CardContent: React__default.FC<CardContentProps>;
|
|
633
|
+
declare const CardHeader: React__default.FC<CardHeaderProps>;
|
|
634
|
+
declare const CardActions: React__default.FC<CardActionsProps>;
|
|
590
635
|
|
|
591
636
|
type ListProps = ListProps$1;
|
|
592
|
-
declare const List:
|
|
637
|
+
declare const List: React__default.FC<ListProps>;
|
|
593
638
|
interface ListItemProps extends ListItemProps$1 {
|
|
594
|
-
primary?:
|
|
595
|
-
secondary?:
|
|
596
|
-
icon?:
|
|
597
|
-
action?:
|
|
639
|
+
primary?: React__default.ReactNode;
|
|
640
|
+
secondary?: React__default.ReactNode;
|
|
641
|
+
icon?: React__default.ReactNode;
|
|
642
|
+
action?: React__default.ReactNode;
|
|
598
643
|
hoverable?: boolean;
|
|
599
644
|
}
|
|
600
|
-
declare const ListItem:
|
|
645
|
+
declare const ListItem: React__default.FC<ListItemProps>;
|
|
601
646
|
|
|
602
647
|
interface AvatarProps extends AvatarProps$1 {
|
|
603
648
|
size?: 'small' | 'medium' | 'large' | number;
|
|
604
649
|
}
|
|
605
|
-
declare const Avatar:
|
|
650
|
+
declare const Avatar: React__default.FC<AvatarProps>;
|
|
606
651
|
|
|
607
652
|
interface TableProps extends TableProps$1 {
|
|
608
653
|
stickyHeader?: boolean;
|
|
609
654
|
}
|
|
610
|
-
declare const Table:
|
|
655
|
+
declare const Table: React__default.FC<TableProps>;
|
|
611
656
|
interface TableHeaderProps {
|
|
612
657
|
columns: Array<{
|
|
613
658
|
id: string;
|
|
@@ -619,7 +664,7 @@ interface TableHeaderProps {
|
|
|
619
664
|
order?: 'asc' | 'desc';
|
|
620
665
|
onSort?: (columnId: string) => void;
|
|
621
666
|
}
|
|
622
|
-
declare const TableHeader:
|
|
667
|
+
declare const TableHeader: React__default.FC<TableHeaderProps>;
|
|
623
668
|
|
|
624
669
|
interface BreadcrumbItem {
|
|
625
670
|
label: string;
|
|
@@ -629,34 +674,34 @@ interface BreadcrumbItem {
|
|
|
629
674
|
interface BreadcrumbsProps extends Omit<BreadcrumbsProps$1, 'children'> {
|
|
630
675
|
items: BreadcrumbItem[];
|
|
631
676
|
}
|
|
632
|
-
declare const Breadcrumbs:
|
|
677
|
+
declare const Breadcrumbs: React__default.FC<BreadcrumbsProps>;
|
|
633
678
|
|
|
634
679
|
interface AccordionProps extends Omit<AccordionProps$1, 'children'> {
|
|
635
680
|
title: string;
|
|
636
|
-
children: NonNullable<
|
|
681
|
+
children: NonNullable<React__default.ReactNode>;
|
|
637
682
|
defaultExpanded?: boolean;
|
|
638
683
|
}
|
|
639
|
-
declare const Accordion:
|
|
684
|
+
declare const Accordion: React__default.FC<AccordionProps>;
|
|
640
685
|
|
|
641
686
|
interface PaperProps extends PaperProps$1 {
|
|
642
687
|
variant?: 'elevation' | 'outlined';
|
|
643
688
|
}
|
|
644
|
-
declare const Paper:
|
|
689
|
+
declare const Paper: React__default.FC<PaperProps>;
|
|
645
690
|
|
|
646
691
|
interface DividerProps extends DividerProps$1 {
|
|
647
692
|
variant?: 'fullWidth' | 'inset' | 'middle';
|
|
648
693
|
}
|
|
649
|
-
declare const Divider:
|
|
694
|
+
declare const Divider: React__default.FC<DividerProps>;
|
|
650
695
|
|
|
651
696
|
interface LinkProps extends LinkProps$1 {
|
|
652
697
|
underline?: 'none' | 'hover' | 'always';
|
|
653
698
|
}
|
|
654
|
-
declare const Link:
|
|
699
|
+
declare const Link: React__default.FC<LinkProps>;
|
|
655
700
|
|
|
656
701
|
interface AppBarProps extends AppBarProps$1 {
|
|
657
702
|
height?: number;
|
|
658
703
|
}
|
|
659
|
-
declare const AppBar:
|
|
704
|
+
declare const AppBar: React__default.FC<AppBarProps>;
|
|
660
705
|
|
|
661
706
|
interface CollapseProps extends CollapseProps$1 {
|
|
662
707
|
/**
|
|
@@ -666,7 +711,7 @@ interface CollapseProps extends CollapseProps$1 {
|
|
|
666
711
|
/**
|
|
667
712
|
* The content to collapse
|
|
668
713
|
*/
|
|
669
|
-
children?:
|
|
714
|
+
children?: React__default.ReactNode;
|
|
670
715
|
}
|
|
671
716
|
/**
|
|
672
717
|
* Collapse component - provides a collapse animation
|
|
@@ -678,7 +723,7 @@ interface CollapseProps extends CollapseProps$1 {
|
|
|
678
723
|
* </Collapse>
|
|
679
724
|
* ```
|
|
680
725
|
*/
|
|
681
|
-
declare const Collapse:
|
|
726
|
+
declare const Collapse: React__default.FC<CollapseProps>;
|
|
682
727
|
|
|
683
728
|
type AlertSeverity = 'success' | 'error' | 'warning' | 'info';
|
|
684
729
|
interface AlertProps extends Omit<AlertProps$1, 'severity'> {
|
|
@@ -688,7 +733,7 @@ interface AlertProps extends Omit<AlertProps$1, 'severity'> {
|
|
|
688
733
|
*/
|
|
689
734
|
title?: string;
|
|
690
735
|
}
|
|
691
|
-
declare const Alert:
|
|
736
|
+
declare const Alert: React__default.FC<AlertProps>;
|
|
692
737
|
|
|
693
738
|
interface SnackbarProps extends Omit<SnackbarProps$1, 'children'> {
|
|
694
739
|
/**
|
|
@@ -716,24 +761,24 @@ interface SnackbarProps extends Omit<SnackbarProps$1, 'children'> {
|
|
|
716
761
|
* Children to render instead of message (allows custom content)
|
|
717
762
|
* Must be a ReactElement to match MuiSnackbar requirements
|
|
718
763
|
*/
|
|
719
|
-
children?:
|
|
764
|
+
children?: React__default.ReactElement;
|
|
720
765
|
}
|
|
721
|
-
declare const Snackbar:
|
|
766
|
+
declare const Snackbar: React__default.FC<SnackbarProps>;
|
|
722
767
|
|
|
723
768
|
interface EmptyStateProps {
|
|
724
769
|
title?: string;
|
|
725
770
|
description?: string;
|
|
726
|
-
icon?:
|
|
727
|
-
action?:
|
|
771
|
+
icon?: React__default.ReactNode;
|
|
772
|
+
action?: React__default.ReactNode;
|
|
728
773
|
}
|
|
729
|
-
declare const EmptyState:
|
|
774
|
+
declare const EmptyState: React__default.FC<EmptyStateProps>;
|
|
730
775
|
|
|
731
776
|
interface LoadingProps {
|
|
732
777
|
message?: string;
|
|
733
778
|
size?: number;
|
|
734
779
|
fullScreen?: boolean;
|
|
735
780
|
}
|
|
736
|
-
declare const Loading:
|
|
781
|
+
declare const Loading: React__default.FC<LoadingProps>;
|
|
737
782
|
|
|
738
783
|
interface AppLoadingProps {
|
|
739
784
|
/**
|
|
@@ -759,7 +804,7 @@ interface AppLoadingProps {
|
|
|
759
804
|
* <AppLoading message="Initializing application..." />
|
|
760
805
|
* ```
|
|
761
806
|
*/
|
|
762
|
-
declare const AppLoading:
|
|
807
|
+
declare const AppLoading: React__default.FC<AppLoadingProps>;
|
|
763
808
|
|
|
764
809
|
interface CircularProgressProps extends CircularProgressProps$1 {
|
|
765
810
|
/**
|
|
@@ -781,7 +826,110 @@ interface CircularProgressProps extends CircularProgressProps$1 {
|
|
|
781
826
|
* <CircularProgress size={40} thickness={4} />
|
|
782
827
|
* ```
|
|
783
828
|
*/
|
|
784
|
-
declare const CircularProgress:
|
|
829
|
+
declare const CircularProgress: React__default.FC<CircularProgressProps>;
|
|
830
|
+
|
|
831
|
+
declare const ActivityAppIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
832
|
+
|
|
833
|
+
declare const LeftArrowIcon: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
834
|
+
|
|
835
|
+
declare const RightArrowIcon: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
836
|
+
|
|
837
|
+
declare const AvatarIcon: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
838
|
+
|
|
839
|
+
declare const BarTrackingIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
840
|
+
|
|
841
|
+
declare const CereIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
842
|
+
|
|
843
|
+
declare const ClockIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
844
|
+
|
|
845
|
+
declare const CloudFlashIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
846
|
+
|
|
847
|
+
declare const DecentralizedServerIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
848
|
+
|
|
849
|
+
declare const DiscordIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
850
|
+
|
|
851
|
+
declare const DownloadIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
852
|
+
|
|
853
|
+
declare const FilledFolderIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
854
|
+
|
|
855
|
+
declare const FolderIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
856
|
+
|
|
857
|
+
declare const GithubLogoIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
858
|
+
|
|
859
|
+
declare const ShareIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
860
|
+
|
|
861
|
+
declare const StorageAppIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
862
|
+
|
|
863
|
+
declare const UploadFileIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
864
|
+
|
|
865
|
+
declare const UploadFolderIcon: React.MemoExoticComponent<(props: SvgIconProps) => react_jsx_runtime.JSX.Element>;
|
|
866
|
+
|
|
867
|
+
type MarkdownProps = {
|
|
868
|
+
children?: string;
|
|
869
|
+
content?: string;
|
|
870
|
+
};
|
|
871
|
+
declare const Markdown: ({ content, children }: MarkdownProps) => react_jsx_runtime.JSX.Element;
|
|
872
|
+
|
|
873
|
+
interface OnboardingContextType {
|
|
874
|
+
isOnboardingActive: boolean;
|
|
875
|
+
startOnboarding: () => void;
|
|
876
|
+
stopOnboarding: () => void;
|
|
877
|
+
restartOnboarding: () => void;
|
|
878
|
+
}
|
|
879
|
+
declare const useOnboarding: () => OnboardingContextType;
|
|
880
|
+
declare const OnboardingProvider: ({ children }: {
|
|
881
|
+
children: ReactNode;
|
|
882
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
883
|
+
|
|
884
|
+
type TruncateProps = AriaAttributes & {
|
|
885
|
+
text: string;
|
|
886
|
+
maxLength?: number;
|
|
887
|
+
endingLength?: number;
|
|
888
|
+
variant?: 'text' | 'email' | 'hex';
|
|
889
|
+
};
|
|
890
|
+
declare const Truncate: ({ text, variant, maxLength, endingLength, ...props }: TruncateProps) => react_jsx_runtime.JSX.Element;
|
|
891
|
+
|
|
892
|
+
type BytesSizeProps = {
|
|
893
|
+
bytes: number;
|
|
894
|
+
};
|
|
895
|
+
declare const BytesSize: ({ bytes }: BytesSizeProps) => react_jsx_runtime.JSX.Element;
|
|
896
|
+
|
|
897
|
+
type QRCodeProps = Omit<QRCodeProps$1, 'ref'>;
|
|
898
|
+
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<SVGElement>>;
|
|
899
|
+
|
|
900
|
+
type ChartWidgetHistoryRecord = {
|
|
901
|
+
date: Date;
|
|
902
|
+
value: number;
|
|
903
|
+
};
|
|
904
|
+
type ChartWidgetProps = {
|
|
905
|
+
title: string;
|
|
906
|
+
value?: ReactNode;
|
|
907
|
+
history?: ChartWidgetHistoryRecord[];
|
|
908
|
+
formatValue?: (value: number) => string;
|
|
909
|
+
};
|
|
910
|
+
declare const ChartWidget: ({ title, value, history, formatValue, }: ChartWidgetProps) => react_jsx_runtime.JSX.Element;
|
|
911
|
+
|
|
912
|
+
type MetricsHistoryRecord = {
|
|
913
|
+
storedBytes: number;
|
|
914
|
+
transferredBytes: number;
|
|
915
|
+
puts: number;
|
|
916
|
+
gets: number;
|
|
917
|
+
recordTime: Date;
|
|
918
|
+
};
|
|
919
|
+
type MetricsChartProps = {
|
|
920
|
+
history?: MetricsHistoryRecord[];
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* TODO: Refactor this component to use shared graphs configuration
|
|
924
|
+
*/
|
|
925
|
+
declare const MetricsChart: ({ history }: MetricsChartProps) => react_jsx_runtime.JSX.Element;
|
|
926
|
+
|
|
927
|
+
type MetricsPeriod = 'hour' | 'day' | 'week' | 'month';
|
|
928
|
+
type PeriodSelectProps = {
|
|
929
|
+
value?: MetricsPeriod;
|
|
930
|
+
onChange?: (value: MetricsPeriod) => void;
|
|
931
|
+
};
|
|
932
|
+
declare const PeriodSelect: ({ value, onChange }: PeriodSelectProps) => react_jsx_runtime.JSX.Element;
|
|
785
933
|
|
|
786
934
|
interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
787
935
|
/**
|
|
@@ -858,7 +1006,7 @@ interface FlowEditorProps extends Omit<ReactFlowProps, 'nodes' | 'edges'> {
|
|
|
858
1006
|
* />
|
|
859
1007
|
* ```
|
|
860
1008
|
*/
|
|
861
|
-
declare const FlowEditor:
|
|
1009
|
+
declare const FlowEditor: React__default.FC<FlowEditorProps>;
|
|
862
1010
|
|
|
863
1011
|
type CodeEditorLanguage = 'typescript' | 'javascript' | 'json' | 'html' | 'css' | 'python' | 'yaml' | 'markdown' | 'sql' | 'xml' | 'plaintext';
|
|
864
1012
|
interface CodeEditorProps {
|
|
@@ -909,11 +1057,11 @@ interface CodeEditorProps {
|
|
|
909
1057
|
/**
|
|
910
1058
|
* Ref to editor instance
|
|
911
1059
|
*/
|
|
912
|
-
editorRef?:
|
|
1060
|
+
editorRef?: React__default.MutableRefObject<editor.IStandaloneCodeEditor | null>;
|
|
913
1061
|
/**
|
|
914
1062
|
* Ref to Monaco instance
|
|
915
1063
|
*/
|
|
916
|
-
monacoRef?:
|
|
1064
|
+
monacoRef?: React__default.MutableRefObject<Monaco | null>;
|
|
917
1065
|
/**
|
|
918
1066
|
* Callback when fullscreen state changes
|
|
919
1067
|
*/
|
|
@@ -957,6 +1105,6 @@ interface CodeEditorProps {
|
|
|
957
1105
|
* />
|
|
958
1106
|
* ```
|
|
959
1107
|
*/
|
|
960
|
-
declare const CodeEditor:
|
|
1108
|
+
declare const CodeEditor: React__default.FC<CodeEditorProps>;
|
|
961
1109
|
|
|
962
|
-
export { Accordion, type AccordionProps, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, type AvatarProps, Badge, type BadgeProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardActions, CardContent, CardHeader, type CardProps, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, Dialog, type DialogProps, Divider, type DividerProps, Drawer, type DrawerProps, Dropdown, type DropdownProps, EmptyState, type EmptyStateProps, FlowEditor, type FlowEditorProps, IconButton, type IconButtonProps, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, Pagination, type PaginationProps, Paper, type PaperProps, Progress, type ProgressProps, Radio, type RadioProps, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, theme };
|
|
1110
|
+
export { Accordion, type AccordionProps, ActivityAppIcon, Alert, type AlertProps, type AlertSeverity, AppBar, type AppBarProps, AppLoading, type AppLoadingProps, Avatar, AvatarIcon, type AvatarProps, Badge, type BadgeProps, BarTrackingIcon, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, BytesSize, type BytesSizeProps, Card, CardActions, CardContent, CardHeader, type CardProps, CereIcon, ChartWidget, type ChartWidgetProps, CheckMarkAnimation, Checkbox, type CheckboxProps, Chip, type ChipProps, CircularProgress, type CircularProgressProps, ClockIcon, CloudFlashIcon, CodeEditor, type CodeEditorLanguage, type CodeEditorProps, Collapse, type CollapseProps, DecentralizedServerIcon, Dialog, type DialogProps, DiscordIcon, Divider, type DividerProps, DownloadIcon, Drawer, type DrawerProps, Dropdown, DropdownAnchor, type DropdownAnchorProps, type DropdownProps, EmptyState, type EmptyStateProps, FilledFolderIcon, FlowEditor, type FlowEditorProps, FolderIcon, GithubLogoIcon, IconButton, type IconButtonProps, LeftArrowIcon, Link, type LinkProps, List, ListItem, type ListItemProps, type ListProps, Loading, LoadingAnimation, type LoadingAnimationProps, LoadingButton, type LoadingButtonProps, type LoadingProps, Logo, type LogoProps, Markdown, type MarkdownProps, Menu, MenuItem, type MenuItemProps, type MenuProps, type MessageOptions, MessagesProvider, MetricsChart, type MetricsChartProps, type MetricsPeriod, OnboardingProvider, Pagination, type PaginationProps, Paper, type PaperProps, PeriodSelect, Progress, type ProgressProps, QRCode, type QRCodeProps, Radio, type RadioProps, RightArrowIcon, SearchField, type SearchFieldProps, Selector, type SelectorOption, type SelectorProps, type Service, ServiceSelectorButton, type ServiceSelectorButtonProps, ShareIcon, Sidebar, SidebarItem, type SidebarItemProps, type SidebarProps, Snackbar, type SnackbarProps, Step, StepButton, type StepButtonProps, StepContent, type StepContentProps, StepLabel, type StepLabelProps, type StepProps, Stepper, type StepperProps, StorageAppIcon, Switch, type SwitchProps, Tab, type TabProps, Table, TableHeader, type TableHeaderProps, type TableProps, TextField, type TextFieldProps, ToggleButton, ToggleButtonGroup, type ToggleButtonGroupProps, type ToggleButtonProps, Tooltip, type TooltipProps, Truncate, type TruncateProps, UploadFileIcon, UploadFolderIcon, type Workspace, WorkspaceSelectorButton, type WorkspaceSelectorButtonProps, colors, theme, useIsDesktop, useIsMobile, useIsTablet, useMessages, useOnboarding };
|