@cgi-learning-hub/ui 1.11.1 → 1.12.0-dev.1771430232

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