@cgi-learning-hub/ui 1.13.0 → 1.14.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
@@ -12,7 +12,6 @@ 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
14
  import { BoxProps } from '@mui/material/Box';
15
- import { BoxProps as BoxProps_2 } from '@mui/material';
16
15
  import { default as Breadcrumbs } from '@mui/material/Breadcrumbs';
17
16
  import { default as Button } from '@mui/material/Button';
18
17
  import { default as ButtonGroup } from '@mui/material/ButtonGroup';
@@ -25,7 +24,7 @@ import { default as CardHeader } from '@mui/material/CardHeader';
25
24
  import { default as CardMedia } from '@mui/material/CardMedia';
26
25
  import { default as Checkbox } from '@mui/material/Checkbox';
27
26
  import { default as Chip } from '@mui/material/Chip';
28
- import { CirclePickerProps } from 'react-color';
27
+ import { CircleProps } from '@uiw/react-color-circle';
29
28
  import { default as CircularProgress } from '@mui/material/CircularProgress';
30
29
  import { default as ClickAwayListener } from '@mui/material/ClickAwayListener';
31
30
  import { ClickAwayListenerProps } from '@mui/material/ClickAwayListener';
@@ -59,7 +58,7 @@ import { default as Input } from '@mui/material/Input';
59
58
  import { InputBaseProps } from '@mui/material/InputBase';
60
59
  import { InputHTMLAttributes } from 'react';
61
60
  import { default as InputLabel } from '@mui/material/InputLabel';
62
- import { JSX } from 'react/jsx-runtime';
61
+ import { JSX } from 'react';
63
62
  import { default as LinearProgress } from '@mui/material/LinearProgress';
64
63
  import { default as Link } from '@mui/material/Link';
65
64
  import { default as List } from '@mui/material/List';
@@ -119,7 +118,6 @@ import { default as Toolbar } from '@mui/material/Toolbar';
119
118
  import { default as Tooltip } from '@mui/material/Tooltip';
120
119
  import { TooltipProps } from '@mui/material/Tooltip';
121
120
  import { TreeItemProps } from '@mui/x-tree-view/TreeItem';
122
- import { TreeViewBaseItem } from '@mui/x-tree-view/models/items';
123
121
  import { default as Typography } from '@mui/material/Typography';
124
122
  import { TypographyProps } from '@mui/material/Typography';
125
123
  import { default as useMediaQuery } from '@mui/material/useMediaQuery';
@@ -218,7 +216,7 @@ export declare type ColorPickerProps = {
218
216
 
219
217
  export declare type ColorPickerSlotProps = {
220
218
  clickAwayListener?: Omit<ClickAwayListenerProps, "onClickAway" | "children">;
221
- circlePicker?: Omit<CirclePickerProps, "colors" | "color" | "onChange">;
219
+ circlePicker?: Omit<CircleProps, "colors" | "color" | "onChange">;
222
220
  circlePickerBox?: BoxProps;
223
221
  };
224
222
 
@@ -235,15 +233,13 @@ export declare interface CustomFile {
235
233
 
236
234
  export declare type CustomSVGProps = SVGAttributes<SVGSVGElement>;
237
235
 
238
- export declare type CustomTreeViewItem = TreeViewBaseItem<CustomTreeViewItemProps>;
239
-
240
- export declare interface CustomTreeViewItemProps {
236
+ export declare type CustomTreeViewItem = {
241
237
  internalId: string;
242
238
  label: string;
243
239
  iconType?: IconType;
244
240
  customIcon?: SvgIconComponent;
245
241
  children?: CustomTreeViewItem[];
246
- }
242
+ };
247
243
 
248
244
  export declare const DatePicker: FC<DatePickerProps>;
249
245
 
@@ -298,31 +294,15 @@ export declare type EllipsisWithTooltipProps = {
298
294
  text?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
299
295
  tooltip?: Omit<TooltipProps, "children" | "title">;
300
296
  };
301
- /**
302
- * @deprecated Use `slotProps.tooltip` instead.
303
- */
304
- tooltipProps?: Omit<TooltipProps, "children" | "title">;
305
- /**
306
- * @deprecated Use `slotProps.text` instead.
307
- */
308
- typographyProps?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
309
297
  };
310
298
 
311
299
  export declare const EmptyState: FC<EmptyStateProps>;
312
300
 
313
301
  export declare type EmptyStateProps = ({
314
302
  image: ReactNode;
315
- /**
316
- * @deprecated Use `slotProps.image` instead.
317
- */
318
- imageProps?: never;
319
303
  imageSrc?: never;
320
304
  } | {
321
305
  image?: never;
322
- /**
323
- * @deprecated Use `slotProps.image` instead.
324
- */
325
- imageProps?: ImgHTMLAttributes<HTMLImageElement>;
326
306
  imageSrc: string;
327
307
  }) & {
328
308
  imageHeight?: string | number;
@@ -335,14 +315,6 @@ export declare type EmptyStateProps = ({
335
315
  title?: TypographyProps;
336
316
  description?: TypographyProps;
337
317
  };
338
- /**
339
- * @deprecated Use `slotProps.description` instead.
340
- */
341
- descriptionProps?: TypographyProps;
342
- /**
343
- * @deprecated Use `slotProps.title` instead.
344
- */
345
- titleProps?: TypographyProps;
346
318
  } & StackProps;
347
319
 
348
320
  export declare interface ExtendedTreeItemProps extends TreeItemProps {
@@ -415,14 +387,6 @@ export declare type HeadingProps = {
415
387
  text?: TypographyProps;
416
388
  };
417
389
  iconSize?: number;
418
- /**
419
- * @deprecated Use `slotProps.icon` instead.
420
- */
421
- iconProps?: SvgIconProps;
422
- /**
423
- * @deprecated Use `slotProps.text` instead.
424
- */
425
- titleProps?: TypographyProps;
426
390
  } & StackProps;
427
391
 
428
392
  export declare type HexaColor = `#${string}`;
@@ -673,7 +637,7 @@ declare interface ZoomControlProps {
673
637
  label?: string;
674
638
  opacity?: number;
675
639
  slotProps?: {
676
- root?: BoxProps_2;
640
+ root?: BoxProps;
677
641
  };
678
642
  }
679
643
 
@@ -785,39 +749,3 @@ declare module "@mui/x-tree-view/TreeItem" {
785
749
  itemData?: CustomTreeViewItem;
786
750
  }
787
751
  }
788
-
789
-
790
- declare module "@mui/material/styles" {
791
- interface SimplePaletteColorOptions {
792
- lighter?: string;
793
- light?: string;
794
- main: string;
795
- dark?: string;
796
- darker?: string;
797
- contrastText?: string;
798
- }
799
- interface PaletteColor {
800
- lighter?: string;
801
- light: string;
802
- main: string;
803
- dark: string;
804
- darker?: string;
805
- contrastText: string;
806
- }
807
- interface Color extends Partial<PaletteColor> {
808
- 50: string;
809
- 100: string;
810
- 200: string;
811
- 300: string;
812
- 400: string;
813
- 500: string;
814
- 600: string;
815
- 700: string;
816
- 800: string;
817
- 900: string;
818
- A100: string;
819
- A200: string;
820
- A400: string;
821
- A700: string;
822
- }
823
- }