@cgi-learning-hub/ui 1.11.1 → 1.12.0-dev.1771407294
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.cjs.js +2534 -2397
- package/dist/index.d.ts +55 -39
- package/dist/index.es.js +2534 -2397
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,7 @@ import { default as Backdrop } from '@mui/material/Backdrop';
|
|
|
11
11
|
import { BackdropProps } from '@mui/material/Backdrop';
|
|
12
12
|
import { default as Badge } from '@mui/material/Badge';
|
|
13
13
|
import { default as Box } from '@mui/material/Box';
|
|
14
|
-
import { BoxProps } from '@mui/material';
|
|
15
|
-
import { BoxProps as BoxProps_2 } from '@mui/material/Box';
|
|
14
|
+
import { BoxProps } from '@mui/material/Box';
|
|
16
15
|
import { default as Breadcrumbs } from '@mui/material/Breadcrumbs';
|
|
17
16
|
import { default as ButtonGroup } from '@mui/material/ButtonGroup';
|
|
18
17
|
import { ButtonProps } from '@mui/material/Button';
|
|
@@ -27,12 +26,11 @@ import { default as Chip } from '@mui/material/Chip';
|
|
|
27
26
|
import { CirclePickerProps } from 'react-color';
|
|
28
27
|
import { default as CircularProgress } from '@mui/material/CircularProgress';
|
|
29
28
|
import { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
|
|
30
|
-
import { ClickAwayListenerProps } from '@mui/material';
|
|
29
|
+
import { ClickAwayListenerProps } from '@mui/material/ClickAwayListener';
|
|
31
30
|
import { default as Collapse } from '@mui/material/Collapse';
|
|
32
|
-
import { Color } from '@mui/material';
|
|
31
|
+
import { Color } from '@mui/material/styles';
|
|
33
32
|
import { default as Container } from '@mui/material/Container';
|
|
34
33
|
import { DatePickerProps as DatePickerProps_2 } from '@mui/x-date-pickers/DatePicker';
|
|
35
|
-
import { default as default_2 } from 'react';
|
|
36
34
|
import { default as DialogActions } from '@mui/material/DialogActions';
|
|
37
35
|
import { default as DialogContent } from '@mui/material/DialogContent';
|
|
38
36
|
import { default as DialogContentText } from '@mui/material/DialogContentText';
|
|
@@ -57,6 +55,7 @@ import { default as IconButton } from '@mui/material/IconButton';
|
|
|
57
55
|
import { ImgHTMLAttributes } from 'react';
|
|
58
56
|
import { default as Input } from '@mui/material/Input';
|
|
59
57
|
import { InputBaseProps } from '@mui/material/InputBase';
|
|
58
|
+
import { InputHTMLAttributes } from 'react';
|
|
60
59
|
import { default as InputLabel } from '@mui/material/InputLabel';
|
|
61
60
|
import { JSX } from 'react/jsx-runtime';
|
|
62
61
|
import { default as LinearProgress } from '@mui/material/LinearProgress';
|
|
@@ -84,7 +83,6 @@ import { default as Slide } from '@mui/material/Slide';
|
|
|
84
83
|
import { default as Snackbar } from '@mui/material/Snackbar';
|
|
85
84
|
import { default as Stack } from '@mui/material/Stack';
|
|
86
85
|
import { StackProps } from '@mui/material/Stack';
|
|
87
|
-
import { StackProps as StackProps_2 } from '@mui/material';
|
|
88
86
|
import { default as Step } from '@mui/material/Step';
|
|
89
87
|
import { default as StepButton } from '@mui/material/StepButton';
|
|
90
88
|
import { default as StepLabel } from '@mui/material/StepLabel';
|
|
@@ -92,8 +90,9 @@ import { default as Stepper } from '@mui/material/Stepper';
|
|
|
92
90
|
import { SVGAttributes } from 'react';
|
|
93
91
|
import { default as SvgIcon } from '@mui/material/SvgIcon';
|
|
94
92
|
import { SvgIconComponent } from '@mui/icons-material';
|
|
95
|
-
import { SvgIconProps } from '@mui/material';
|
|
93
|
+
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
96
94
|
import { default as Switch } from '@mui/material/Switch';
|
|
95
|
+
import { SyntheticEvent } from 'react';
|
|
97
96
|
import { default as Tab } from '@mui/material/Tab';
|
|
98
97
|
import { default as TabContext } from '@mui/lab/TabContext';
|
|
99
98
|
import { default as Table } from '@mui/material/Table';
|
|
@@ -118,8 +117,7 @@ import { TooltipProps } from '@mui/material/Tooltip';
|
|
|
118
117
|
import { TreeItemProps } from '@mui/x-tree-view/TreeItem';
|
|
119
118
|
import { TreeViewBaseItem } from '@mui/x-tree-view/models/items';
|
|
120
119
|
import { default as Typography } from '@mui/material/Typography';
|
|
121
|
-
import { TypographyProps } from '@mui/material';
|
|
122
|
-
import { TypographyProps as TypographyProps_2 } from '@mui/material/Typography';
|
|
120
|
+
import { TypographyProps } from '@mui/material/Typography';
|
|
123
121
|
import { default as useMediaQuery } from '@mui/material/useMediaQuery';
|
|
124
122
|
import { default as Zoom } from '@mui/material/Zoom';
|
|
125
123
|
|
|
@@ -131,7 +129,7 @@ export { AccordionDetails }
|
|
|
131
129
|
|
|
132
130
|
export { AccordionSummary }
|
|
133
131
|
|
|
134
|
-
export declare const ActionBar:
|
|
132
|
+
export declare const ActionBar: FC<ActionBarProps>;
|
|
135
133
|
|
|
136
134
|
declare type ActionBarButton = {
|
|
137
135
|
label: string;
|
|
@@ -150,7 +148,7 @@ declare type ActionBarProps = {
|
|
|
150
148
|
};
|
|
151
149
|
};
|
|
152
150
|
|
|
153
|
-
export declare const Alert:
|
|
151
|
+
export declare const Alert: FC<AlertProps>;
|
|
154
152
|
|
|
155
153
|
export declare type AlertProps = {
|
|
156
154
|
title?: string;
|
|
@@ -172,7 +170,7 @@ export { Box }
|
|
|
172
170
|
|
|
173
171
|
export { Breadcrumbs }
|
|
174
172
|
|
|
175
|
-
export declare const Button:
|
|
173
|
+
export declare const Button: FC<ButtonProps>;
|
|
176
174
|
|
|
177
175
|
export { ButtonGroup }
|
|
178
176
|
|
|
@@ -245,7 +243,7 @@ export declare interface CustomTreeViewItemProps {
|
|
|
245
243
|
children?: CustomTreeViewItem[];
|
|
246
244
|
}
|
|
247
245
|
|
|
248
|
-
export declare const DatePicker:
|
|
246
|
+
export declare const DatePicker: FC<DatePickerProps>;
|
|
249
247
|
|
|
250
248
|
export declare type DatePickerProps = {
|
|
251
249
|
adapterLocale?: string;
|
|
@@ -253,7 +251,7 @@ export declare type DatePickerProps = {
|
|
|
253
251
|
|
|
254
252
|
export declare const DEFAULT_COLOR_OPTIONS: ColorOption[];
|
|
255
253
|
|
|
256
|
-
export declare const Dialog:
|
|
254
|
+
export declare const Dialog: FC<DialogProps>;
|
|
257
255
|
|
|
258
256
|
export { DialogActions }
|
|
259
257
|
|
|
@@ -271,7 +269,7 @@ export { Divider }
|
|
|
271
269
|
|
|
272
270
|
export { Drawer }
|
|
273
271
|
|
|
274
|
-
export declare const Dropzone:
|
|
272
|
+
export declare const Dropzone: FC<DropzoneProps>;
|
|
275
273
|
|
|
276
274
|
export declare type DropzoneProps = {
|
|
277
275
|
defaultLabel?: string;
|
|
@@ -283,8 +281,8 @@ export declare type DropzoneProps = {
|
|
|
283
281
|
} & DropzoneProps_2;
|
|
284
282
|
|
|
285
283
|
declare type DropZoneSlotProps = {
|
|
286
|
-
root?:
|
|
287
|
-
input?:
|
|
284
|
+
root?: StackProps;
|
|
285
|
+
input?: InputHTMLAttributes<HTMLInputElement>;
|
|
288
286
|
icon?: SvgIconProps;
|
|
289
287
|
label?: TypographyProps;
|
|
290
288
|
information?: TypographyProps;
|
|
@@ -295,7 +293,7 @@ export declare const EllipsisWithTooltip: FC<EllipsisWithTooltipProps>;
|
|
|
295
293
|
export declare type EllipsisWithTooltipProps = {
|
|
296
294
|
children: ReactNode;
|
|
297
295
|
slotProps?: {
|
|
298
|
-
text?: Omit<
|
|
296
|
+
text?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
|
|
299
297
|
tooltip?: Omit<TooltipProps, "children" | "title">;
|
|
300
298
|
};
|
|
301
299
|
/**
|
|
@@ -305,10 +303,10 @@ export declare type EllipsisWithTooltipProps = {
|
|
|
305
303
|
/**
|
|
306
304
|
* @deprecated Use `slotProps.text` instead.
|
|
307
305
|
*/
|
|
308
|
-
typographyProps?: Omit<
|
|
306
|
+
typographyProps?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
|
|
309
307
|
};
|
|
310
308
|
|
|
311
|
-
export declare const EmptyState:
|
|
309
|
+
export declare const EmptyState: FC<EmptyStateProps>;
|
|
312
310
|
|
|
313
311
|
export declare type EmptyStateProps = ({
|
|
314
312
|
image: ReactNode;
|
|
@@ -332,17 +330,17 @@ export declare type EmptyStateProps = ({
|
|
|
332
330
|
slotProps?: {
|
|
333
331
|
root?: StackProps;
|
|
334
332
|
image?: ImgHTMLAttributes<HTMLImageElement>;
|
|
335
|
-
title?:
|
|
336
|
-
description?:
|
|
333
|
+
title?: TypographyProps;
|
|
334
|
+
description?: TypographyProps;
|
|
337
335
|
};
|
|
338
336
|
/**
|
|
339
337
|
* @deprecated Use `slotProps.description` instead.
|
|
340
338
|
*/
|
|
341
|
-
descriptionProps?:
|
|
339
|
+
descriptionProps?: TypographyProps;
|
|
342
340
|
/**
|
|
343
341
|
* @deprecated Use `slotProps.title` instead.
|
|
344
342
|
*/
|
|
345
|
-
titleProps?:
|
|
343
|
+
titleProps?: TypographyProps;
|
|
346
344
|
} & StackProps;
|
|
347
345
|
|
|
348
346
|
export declare interface ExtendedTreeItemProps extends TreeItemProps {
|
|
@@ -374,7 +372,7 @@ export declare interface FileListProps<T extends CustomFile> {
|
|
|
374
372
|
onDownload?: (file: T) => void;
|
|
375
373
|
}
|
|
376
374
|
|
|
377
|
-
export declare const FolderCard:
|
|
375
|
+
export declare const FolderCard: FC<FolderCardProps>;
|
|
378
376
|
|
|
379
377
|
export declare type FolderCardProps = {
|
|
380
378
|
isSelected?: boolean;
|
|
@@ -403,7 +401,7 @@ export { Grid }
|
|
|
403
401
|
|
|
404
402
|
export { Grow }
|
|
405
403
|
|
|
406
|
-
export declare const Heading:
|
|
404
|
+
export declare const Heading: FC<HeadingProps>;
|
|
407
405
|
|
|
408
406
|
export declare type HeadingProps = {
|
|
409
407
|
title: string;
|
|
@@ -412,7 +410,7 @@ export declare type HeadingProps = {
|
|
|
412
410
|
slotProps?: {
|
|
413
411
|
root?: StackProps;
|
|
414
412
|
icon?: SvgIconProps;
|
|
415
|
-
text?:
|
|
413
|
+
text?: TypographyProps;
|
|
416
414
|
};
|
|
417
415
|
iconSize?: number;
|
|
418
416
|
/**
|
|
@@ -422,7 +420,7 @@ export declare type HeadingProps = {
|
|
|
422
420
|
/**
|
|
423
421
|
* @deprecated Use `slotProps.text` instead.
|
|
424
422
|
*/
|
|
425
|
-
titleProps?:
|
|
423
|
+
titleProps?: TypographyProps;
|
|
426
424
|
} & StackProps;
|
|
427
425
|
|
|
428
426
|
export declare type HexaColor = `#${string}`;
|
|
@@ -438,7 +436,7 @@ export { IconButton }
|
|
|
438
436
|
|
|
439
437
|
export declare type IconType = ICON_TYPE | SvgIconComponent;
|
|
440
438
|
|
|
441
|
-
export declare const ImagePicker:
|
|
439
|
+
export declare const ImagePicker: FC<ImagePickerProps>;
|
|
442
440
|
|
|
443
441
|
export declare type ImagePickerProps = {
|
|
444
442
|
defaultLabel?: ReactNode;
|
|
@@ -480,18 +478,18 @@ export { ListItemText }
|
|
|
480
478
|
|
|
481
479
|
export { ListSubheader }
|
|
482
480
|
|
|
483
|
-
export declare const Loader:
|
|
481
|
+
export declare const Loader: FC<LoaderProps>;
|
|
484
482
|
|
|
485
|
-
export declare const LoaderBackdrop:
|
|
483
|
+
export declare const LoaderBackdrop: FC<LoaderBackdropProps>;
|
|
486
484
|
|
|
487
485
|
export declare type LoaderBackdropProps = {
|
|
488
486
|
slotProps?: {
|
|
489
487
|
backdrop?: Omit<BackdropProps, "open" | "children">;
|
|
490
|
-
loader?:
|
|
488
|
+
loader?: BoxProps;
|
|
491
489
|
};
|
|
492
490
|
};
|
|
493
491
|
|
|
494
|
-
export declare type LoaderProps =
|
|
492
|
+
export declare type LoaderProps = BoxProps;
|
|
495
493
|
|
|
496
494
|
export { Menu }
|
|
497
495
|
|
|
@@ -505,7 +503,7 @@ export { Pagination }
|
|
|
505
503
|
|
|
506
504
|
export { Paper }
|
|
507
505
|
|
|
508
|
-
export declare const PasswordInput:
|
|
506
|
+
export declare const PasswordInput: FC<PasswordInputProps>;
|
|
509
507
|
|
|
510
508
|
export declare type PasswordInputProps = Omit<TextFieldProps, "variant" | "type">;
|
|
511
509
|
|
|
@@ -520,7 +518,7 @@ export declare type PropertyItem = {
|
|
|
520
518
|
icon?: ReactNode;
|
|
521
519
|
};
|
|
522
520
|
|
|
523
|
-
export declare const QueryError:
|
|
521
|
+
export declare const QueryError: FC<QueryErrorProps>;
|
|
524
522
|
|
|
525
523
|
export declare type QueryErrorProps = {
|
|
526
524
|
error: FetchBaseQueryError | SerializedError | undefined;
|
|
@@ -531,7 +529,7 @@ export { Radio }
|
|
|
531
529
|
|
|
532
530
|
export { RadioGroup }
|
|
533
531
|
|
|
534
|
-
export declare const ResourceCard:
|
|
532
|
+
export declare const ResourceCard: FC<ResourceCardProps>;
|
|
535
533
|
|
|
536
534
|
export declare type ResourceCardProps = {
|
|
537
535
|
isSelected?: boolean;
|
|
@@ -543,15 +541,18 @@ export declare type ResourceCardProps = {
|
|
|
543
541
|
infoIcons?: InfoItem[];
|
|
544
542
|
size?: ResourceCardSize;
|
|
545
543
|
width?: string;
|
|
544
|
+
maxWidth?: string;
|
|
546
545
|
onClick?: () => void;
|
|
547
546
|
hasNoButtonOnFocus?: boolean;
|
|
548
547
|
};
|
|
549
548
|
|
|
550
549
|
export declare type ResourceCardSize = "md" | "sm";
|
|
551
550
|
|
|
552
|
-
export declare const SearchInput:
|
|
551
|
+
export declare const SearchInput: FC<SearchInputProps>;
|
|
553
552
|
|
|
554
|
-
export declare type SearchInputProps = InputBaseProps & {
|
|
553
|
+
export declare type SearchInputProps = InputBaseProps & {
|
|
554
|
+
loading?: boolean;
|
|
555
|
+
};
|
|
555
556
|
|
|
556
557
|
export { Select }
|
|
557
558
|
|
|
@@ -638,7 +639,7 @@ export declare type TreeViewItemsReorderingAction = "reorder-above" | "reorder-b
|
|
|
638
639
|
export declare interface TreeViewProps {
|
|
639
640
|
items: CustomTreeViewItem[];
|
|
640
641
|
selectedItemId: string;
|
|
641
|
-
handleSelectedItemChange: (event:
|
|
642
|
+
handleSelectedItemChange: (event: SyntheticEvent | null, itemIds: string | null) => void;
|
|
642
643
|
iconColor?: string;
|
|
643
644
|
maxHeight?: string | number;
|
|
644
645
|
hasNoIcons?: boolean;
|
|
@@ -651,6 +652,21 @@ export { useMediaQuery }
|
|
|
651
652
|
|
|
652
653
|
export { Zoom }
|
|
653
654
|
|
|
655
|
+
export declare const ZoomComponent: FC<ZoomComponentProps>;
|
|
656
|
+
|
|
657
|
+
declare interface ZoomComponentProps {
|
|
658
|
+
opacity?: number;
|
|
659
|
+
zoomLevel: number;
|
|
660
|
+
zoomMaxLevel: number;
|
|
661
|
+
zoomIn: () => void;
|
|
662
|
+
zoomOut: () => void;
|
|
663
|
+
resetZoom: () => void;
|
|
664
|
+
label?: string;
|
|
665
|
+
slotProps?: {
|
|
666
|
+
boxStyle?: BoxProps;
|
|
667
|
+
};
|
|
668
|
+
}
|
|
669
|
+
|
|
654
670
|
|
|
655
671
|
export * from "@mui/lab/TabContext";
|
|
656
672
|
export * from "@mui/lab/TabList";
|