@cgi-learning-hub/ui 1.10.0 → 1.11.0-dev.1764841886

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
@@ -8,10 +8,13 @@ import { default as AppBar } from '@mui/material/AppBar';
8
8
  import { default as Autocomplete } from '@mui/material/Autocomplete';
9
9
  import { default as Avatar } from '@mui/material/Avatar';
10
10
  import { default as Backdrop } from '@mui/material/Backdrop';
11
+ import { BackdropProps } from '@mui/material/Backdrop';
11
12
  import { default as Badge } from '@mui/material/Badge';
12
13
  import { default as Box } from '@mui/material/Box';
13
14
  import { BoxProps } from '@mui/material';
15
+ import { BoxProps as BoxProps_2 } from '@mui/material/Box';
14
16
  import { default as Breadcrumbs } from '@mui/material/Breadcrumbs';
17
+ import { default as ButtonGroup } from '@mui/material/ButtonGroup';
15
18
  import { ButtonProps } from '@mui/material/Button';
16
19
  import { default as Card } from '@mui/material/Card';
17
20
  import { default as CardActionArea } from '@mui/material/CardActionArea';
@@ -111,7 +114,7 @@ import { default as ToggleButton } from '@mui/material/ToggleButton';
111
114
  import { default as ToggleButtonGroup } from '@mui/material/ToggleButtonGroup';
112
115
  import { default as Toolbar } from '@mui/material/Toolbar';
113
116
  import { default as Tooltip } from '@mui/material/Tooltip';
114
- import { TooltipProps } from '@mui/material';
117
+ import { TooltipProps } from '@mui/material/Tooltip';
115
118
  import { TreeItemProps } from '@mui/x-tree-view/TreeItem';
116
119
  import { TreeViewBaseItem } from '@mui/x-tree-view/models/items';
117
120
  import { default as Typography } from '@mui/material/Typography';
@@ -171,23 +174,7 @@ export { Breadcrumbs }
171
174
 
172
175
  export declare const Button: React.FunctionComponent<ButtonProps>;
173
176
 
174
- export declare const ButtonGroup: <T extends readonly ButtonItem<string>[]>({ viewMode, buttonList, onChange, colorVariant, size, orientation, }: ButtonGroupProps<T>) => JSX.Element;
175
-
176
- export declare interface ButtonGroupProps<T extends readonly ButtonItem<string>[]> {
177
- onChange: (value: T[number]["value"]) => void;
178
- viewMode: T[number]["value"];
179
- buttonList: T;
180
- colorVariant?: ColorVariant;
181
- size?: "small" | "medium" | "large";
182
- orientation?: "horizontal" | "vertical";
183
- }
184
-
185
- export declare interface ButtonItem<T extends string = string> {
186
- value: T;
187
- icon: ReactNode;
188
- text?: string;
189
- disabled?: boolean;
190
- }
177
+ export { ButtonGroup }
191
178
 
192
179
  export { ButtonProps }
193
180
 
@@ -235,8 +222,6 @@ export declare type ColorPickerSlotProps = {
235
222
  circlePickerBox?: BoxProps;
236
223
  };
237
224
 
238
- export declare type ColorVariant = "primary" | "secondary";
239
-
240
225
  export { Container }
241
226
 
242
227
  export declare interface CustomFile {
@@ -308,28 +293,55 @@ declare type DropZoneSlotProps = {
308
293
  export declare const EllipsisWithTooltip: FC<EllipsisWithTooltipProps>;
309
294
 
310
295
  export declare type EllipsisWithTooltipProps = {
311
- tooltipProps?: Omit<TooltipProps, "children" | "title">;
312
- typographyProps?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
313
296
  children: ReactNode;
297
+ slotProps?: {
298
+ text?: Omit<TypographyProps_2, "noWrap" | "overflow" | "textOverflow">;
299
+ tooltip?: Omit<TooltipProps, "children" | "title">;
300
+ };
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_2, "noWrap" | "overflow" | "textOverflow">;
314
309
  };
315
310
 
316
311
  export declare const EmptyState: React.FunctionComponent<EmptyStateProps>;
317
312
 
318
313
  export declare type EmptyStateProps = ({
319
314
  image: ReactNode;
315
+ /**
316
+ * @deprecated Use `slotProps.image` instead.
317
+ */
320
318
  imageProps?: never;
321
319
  imageSrc?: never;
322
320
  } | {
323
321
  image?: never;
322
+ /**
323
+ * @deprecated Use `slotProps.image` instead.
324
+ */
324
325
  imageProps?: ImgHTMLAttributes<HTMLImageElement>;
325
326
  imageSrc: string;
326
327
  }) & {
327
328
  imageHeight?: string | number;
328
329
  title: string;
329
330
  description?: string;
330
- descriptionProps?: TypographyProps_2;
331
331
  footer?: ReactNode;
332
- svgProps?: React.SVGAttributes<SVGSVGElement>;
332
+ slotProps?: {
333
+ root?: StackProps;
334
+ image?: ImgHTMLAttributes<HTMLImageElement>;
335
+ title?: TypographyProps_2;
336
+ description?: TypographyProps_2;
337
+ };
338
+ /**
339
+ * @deprecated Use `slotProps.description` instead.
340
+ */
341
+ descriptionProps?: TypographyProps_2;
342
+ /**
343
+ * @deprecated Use `slotProps.title` instead.
344
+ */
333
345
  titleProps?: TypographyProps_2;
334
346
  } & StackProps;
335
347
 
@@ -397,8 +409,19 @@ export declare type HeadingProps = {
397
409
  title: string;
398
410
  IconComponent?: SvgIconComponent;
399
411
  iconColor?: Color;
400
- iconProps?: SvgIconProps;
412
+ slotProps?: {
413
+ root?: StackProps;
414
+ icon?: SvgIconProps;
415
+ text?: TypographyProps_2;
416
+ };
401
417
  iconSize?: number;
418
+ /**
419
+ * @deprecated Use `slotProps.icon` instead.
420
+ */
421
+ iconProps?: SvgIconProps;
422
+ /**
423
+ * @deprecated Use `slotProps.text` instead.
424
+ */
402
425
  titleProps?: TypographyProps_2;
403
426
  } & StackProps;
404
427
 
@@ -425,6 +448,7 @@ export declare type ImagePickerProps = {
425
448
  width?: string;
426
449
  height?: string;
427
450
  initialFile?: string | File;
451
+ disabled?: boolean;
428
452
  } & DropzoneProps_2;
429
453
 
430
454
  export declare type InfoItem = {
@@ -460,9 +484,14 @@ export declare const Loader: React.FunctionComponent<LoaderProps>;
460
484
 
461
485
  export declare const LoaderBackdrop: React.FunctionComponent<LoaderBackdropProps>;
462
486
 
463
- export declare type LoaderBackdropProps = {};
487
+ export declare type LoaderBackdropProps = {
488
+ slotProps?: {
489
+ backdrop?: Omit<BackdropProps, "open" | "children">;
490
+ loader?: BoxProps_2;
491
+ };
492
+ };
464
493
 
465
- export declare type LoaderProps = {};
494
+ export declare type LoaderProps = BoxProps_2;
466
495
 
467
496
  export { Menu }
468
497
 
@@ -547,14 +576,6 @@ export declare interface StyledSwatchBoxProps {
547
576
  backgroundColor?: string;
548
577
  }
549
578
 
550
- export declare interface StyledToggleButtonGroupProps {
551
- colorvariant: ColorVariant;
552
- }
553
-
554
- export declare interface StyledToggleButtonProps {
555
- colorvariant: ColorVariant;
556
- }
557
-
558
579
  export { SvgIcon }
559
580
 
560
581
  export declare type SwatchProps = {
@@ -646,6 +667,7 @@ export * from "@mui/material/Backdrop";
646
667
  export * from "@mui/material/Badge";
647
668
  export * from "@mui/material/Box";
648
669
  export * from "@mui/material/Breadcrumbs";
670
+ export * from "@mui/material/ButtonGroup";
649
671
  export * from "@mui/material/Card";
650
672
  export * from "@mui/material/CardActionArea";
651
673
  export * from "@mui/material/CardActions";