@cgi-learning-hub/ui 1.13.0-dev.1775747511 → 1.13.0-dev.1775748095

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 CHANGED
@@ -58650,9 +58650,7 @@ const Dropzone = ({
58650
58650
  };
58651
58651
  const EllipsisWithTooltip = ({
58652
58652
  children,
58653
- slotProps = {},
58654
- tooltipProps,
58655
- typographyProps
58653
+ slotProps = {}
58656
58654
  }) => {
58657
58655
  const [isTextEllipsized, setIsTextEllipsized] = React.useState(false);
58658
58656
  const textRef = React.useRef(null);
@@ -58681,7 +58679,7 @@ const EllipsisWithTooltip = ({
58681
58679
  {
58682
58680
  disableHoverListener: !isTextEllipsized,
58683
58681
  title: children,
58684
- ...slotProps.tooltip ?? tooltipProps,
58682
+ ...slotProps.tooltip,
58685
58683
  children: /* @__PURE__ */ jsxRuntime.jsx(
58686
58684
  Typography,
58687
58685
  {
@@ -58690,7 +58688,7 @@ const EllipsisWithTooltip = ({
58690
58688
  overflow: "hidden",
58691
58689
  textOverflow: "ellipsis",
58692
58690
  maxWidth: "100%",
58693
- ...slotProps.text ?? typographyProps,
58691
+ ...slotProps.text,
58694
58692
  children
58695
58693
  }
58696
58694
  )
@@ -58705,9 +58703,6 @@ const EmptyState = ({
58705
58703
  footer,
58706
58704
  imageHeight = 200,
58707
58705
  slotProps = {},
58708
- imageProps,
58709
- descriptionProps,
58710
- titleProps,
58711
58706
  ...otherProps
58712
58707
  }) => {
58713
58708
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -58719,32 +58714,9 @@ const EmptyState = ({
58719
58714
  ...otherProps,
58720
58715
  ...slotProps.root,
58721
58716
  children: [
58722
- /* @__PURE__ */ jsxRuntime.jsx(Box, { height: imageHeight, width: "auto", children: image ?? /* @__PURE__ */ jsxRuntime.jsx(
58723
- "img",
58724
- {
58725
- src: imageSrc,
58726
- height: "100%",
58727
- ...slotProps.image ?? imageProps
58728
- }
58729
- ) }),
58730
- /* @__PURE__ */ jsxRuntime.jsx(
58731
- Typography,
58732
- {
58733
- variant: "h2",
58734
- mt: 3,
58735
- ...slotProps.title ?? titleProps,
58736
- children: title
58737
- }
58738
- ),
58739
- description ? /* @__PURE__ */ jsxRuntime.jsx(
58740
- Typography,
58741
- {
58742
- color: "textSecondary",
58743
- mt: 2,
58744
- ...slotProps.description ?? descriptionProps,
58745
- children: description
58746
- }
58747
- ) : null,
58717
+ /* @__PURE__ */ jsxRuntime.jsx(Box, { height: imageHeight, width: "auto", children: image ?? /* @__PURE__ */ jsxRuntime.jsx("img", { src: imageSrc, height: "100%", ...slotProps.image }) }),
58718
+ /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "h2", mt: 3, ...slotProps.title, children: title }),
58719
+ description ? /* @__PURE__ */ jsxRuntime.jsx(Typography, { color: "textSecondary", mt: 2, ...slotProps.description, children: description }) : null,
58748
58720
  footer ? /* @__PURE__ */ jsxRuntime.jsx(Box, { mt: 3, children: footer }) : null
58749
58721
  ]
58750
58722
  }
@@ -59229,8 +59201,6 @@ const Heading = ({
59229
59201
  iconColor,
59230
59202
  iconSize = 28,
59231
59203
  slotProps = {},
59232
- iconProps,
59233
- titleProps,
59234
59204
  ...otherProps
59235
59205
  }) => {
59236
59206
  return /* @__PURE__ */ jsxRuntime.jsxs(
@@ -59252,18 +59222,10 @@ const Heading = ({
59252
59222
  color: iconColor?.[500],
59253
59223
  backgroundColor: iconColor?.[50]
59254
59224
  },
59255
- ...slotProps.icon ?? iconProps
59225
+ ...slotProps.icon
59256
59226
  }
59257
59227
  ) : null,
59258
- /* @__PURE__ */ jsxRuntime.jsx(
59259
- Typography,
59260
- {
59261
- component: "h3",
59262
- variant: "h2",
59263
- ...slotProps.text ?? titleProps,
59264
- children: title
59265
- }
59266
- )
59228
+ /* @__PURE__ */ jsxRuntime.jsx(Typography, { component: "h3", variant: "h2", ...slotProps.text, children: title })
59267
59229
  ]
59268
59230
  }
59269
59231
  );
package/dist/index.d.ts CHANGED
@@ -298,31 +298,15 @@ export declare type EllipsisWithTooltipProps = {
298
298
  text?: Omit<TypographyProps, "noWrap" | "overflow" | "textOverflow">;
299
299
  tooltip?: Omit<TooltipProps, "children" | "title">;
300
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, "noWrap" | "overflow" | "textOverflow">;
309
301
  };
310
302
 
311
303
  export declare const EmptyState: FC<EmptyStateProps>;
312
304
 
313
305
  export declare type EmptyStateProps = ({
314
306
  image: ReactNode;
315
- /**
316
- * @deprecated Use `slotProps.image` instead.
317
- */
318
- imageProps?: never;
319
307
  imageSrc?: never;
320
308
  } | {
321
309
  image?: never;
322
- /**
323
- * @deprecated Use `slotProps.image` instead.
324
- */
325
- imageProps?: ImgHTMLAttributes<HTMLImageElement>;
326
310
  imageSrc: string;
327
311
  }) & {
328
312
  imageHeight?: string | number;
@@ -335,14 +319,6 @@ export declare type EmptyStateProps = ({
335
319
  title?: TypographyProps;
336
320
  description?: TypographyProps;
337
321
  };
338
- /**
339
- * @deprecated Use `slotProps.description` instead.
340
- */
341
- descriptionProps?: TypographyProps;
342
- /**
343
- * @deprecated Use `slotProps.title` instead.
344
- */
345
- titleProps?: TypographyProps;
346
322
  } & StackProps;
347
323
 
348
324
  export declare interface ExtendedTreeItemProps extends TreeItemProps {
@@ -415,14 +391,6 @@ export declare type HeadingProps = {
415
391
  text?: TypographyProps;
416
392
  };
417
393
  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
394
  } & StackProps;
427
395
 
428
396
  export declare type HexaColor = `#${string}`;
package/dist/index.es.js CHANGED
@@ -58633,9 +58633,7 @@ const Dropzone = ({
58633
58633
  };
58634
58634
  const EllipsisWithTooltip = ({
58635
58635
  children,
58636
- slotProps = {},
58637
- tooltipProps,
58638
- typographyProps
58636
+ slotProps = {}
58639
58637
  }) => {
58640
58638
  const [isTextEllipsized, setIsTextEllipsized] = useState(false);
58641
58639
  const textRef = useRef(null);
@@ -58664,7 +58662,7 @@ const EllipsisWithTooltip = ({
58664
58662
  {
58665
58663
  disableHoverListener: !isTextEllipsized,
58666
58664
  title: children,
58667
- ...slotProps.tooltip ?? tooltipProps,
58665
+ ...slotProps.tooltip,
58668
58666
  children: /* @__PURE__ */ jsx(
58669
58667
  Typography,
58670
58668
  {
@@ -58673,7 +58671,7 @@ const EllipsisWithTooltip = ({
58673
58671
  overflow: "hidden",
58674
58672
  textOverflow: "ellipsis",
58675
58673
  maxWidth: "100%",
58676
- ...slotProps.text ?? typographyProps,
58674
+ ...slotProps.text,
58677
58675
  children
58678
58676
  }
58679
58677
  )
@@ -58688,9 +58686,6 @@ const EmptyState = ({
58688
58686
  footer,
58689
58687
  imageHeight = 200,
58690
58688
  slotProps = {},
58691
- imageProps,
58692
- descriptionProps,
58693
- titleProps,
58694
58689
  ...otherProps
58695
58690
  }) => {
58696
58691
  return /* @__PURE__ */ jsxs(
@@ -58702,32 +58697,9 @@ const EmptyState = ({
58702
58697
  ...otherProps,
58703
58698
  ...slotProps.root,
58704
58699
  children: [
58705
- /* @__PURE__ */ jsx(Box, { height: imageHeight, width: "auto", children: image ?? /* @__PURE__ */ jsx(
58706
- "img",
58707
- {
58708
- src: imageSrc,
58709
- height: "100%",
58710
- ...slotProps.image ?? imageProps
58711
- }
58712
- ) }),
58713
- /* @__PURE__ */ jsx(
58714
- Typography,
58715
- {
58716
- variant: "h2",
58717
- mt: 3,
58718
- ...slotProps.title ?? titleProps,
58719
- children: title
58720
- }
58721
- ),
58722
- description ? /* @__PURE__ */ jsx(
58723
- Typography,
58724
- {
58725
- color: "textSecondary",
58726
- mt: 2,
58727
- ...slotProps.description ?? descriptionProps,
58728
- children: description
58729
- }
58730
- ) : null,
58700
+ /* @__PURE__ */ jsx(Box, { height: imageHeight, width: "auto", children: image ?? /* @__PURE__ */ jsx("img", { src: imageSrc, height: "100%", ...slotProps.image }) }),
58701
+ /* @__PURE__ */ jsx(Typography, { variant: "h2", mt: 3, ...slotProps.title, children: title }),
58702
+ description ? /* @__PURE__ */ jsx(Typography, { color: "textSecondary", mt: 2, ...slotProps.description, children: description }) : null,
58731
58703
  footer ? /* @__PURE__ */ jsx(Box, { mt: 3, children: footer }) : null
58732
58704
  ]
58733
58705
  }
@@ -59212,8 +59184,6 @@ const Heading = ({
59212
59184
  iconColor,
59213
59185
  iconSize = 28,
59214
59186
  slotProps = {},
59215
- iconProps,
59216
- titleProps,
59217
59187
  ...otherProps
59218
59188
  }) => {
59219
59189
  return /* @__PURE__ */ jsxs(
@@ -59235,18 +59205,10 @@ const Heading = ({
59235
59205
  color: iconColor?.[500],
59236
59206
  backgroundColor: iconColor?.[50]
59237
59207
  },
59238
- ...slotProps.icon ?? iconProps
59208
+ ...slotProps.icon
59239
59209
  }
59240
59210
  ) : null,
59241
- /* @__PURE__ */ jsx(
59242
- Typography,
59243
- {
59244
- component: "h3",
59245
- variant: "h2",
59246
- ...slotProps.text ?? titleProps,
59247
- children: title
59248
- }
59249
- )
59211
+ /* @__PURE__ */ jsx(Typography, { component: "h3", variant: "h2", ...slotProps.text, children: title })
59250
59212
  ]
59251
59213
  }
59252
59214
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.13.0-dev.1775747511",
3
+ "version": "1.13.0-dev.1775748095",
4
4
  "description": "React component library for Hub's design system, built on Material UI with custom and extended components.",
5
5
  "keywords": [
6
6
  "cgi-learning-hub",