@cgi-learning-hub/ui 1.6.0-dev.1747905194 → 1.6.0-dev.1747905856

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.
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("../../Stack-BVWbOqY_.cjs"),g=require("../../Box-DYD6q-6M.cjs"),e=require("../../Typography-De-21leI.cjs"),x=({image:n,imageProps:o,imageSrc:i,title:s,description:r,descriptionProps:c,svgProps:l,titleProps:h,...a})=>t.jsxs(u.Stack,{direction:"column",alignItems:"center",margin:"0 auto",...a,children:[t.jsx(g.Box,{height:200,width:"auto",children:n??t.jsx("img",{src:i,height:"100%",...o})}),t.jsx(e.Typography,{variant:"h2",fontWeight:500,mt:3,...h,children:s}),r?t.jsx(e.Typography,{color:"textSecondary",mt:2,...c,children:r}):null]});module.exports=x;
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("../../Stack-BVWbOqY_.cjs"),x=require("../../Box-DYD6q-6M.cjs"),e=require("../../Typography-De-21leI.cjs"),l=({image:n,imageProps:o,imageSrc:i,title:s,description:r,descriptionProps:c,svgProps:m,titleProps:h,imageHeight:a=200,...u})=>t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"0 auto",...u,children:[t.jsx(x.Box,{height:a,width:"auto",children:n??t.jsx("img",{src:i,height:"100%",...o})}),t.jsx(e.Typography,{variant:"h2",fontWeight:500,mt:3,...h,children:s}),r?t.jsx(e.Typography,{color:"textSecondary",mt:2,...c,children:r}):null]});module.exports=l;
@@ -10,6 +10,7 @@ export type EmptyStateProps = ({
10
10
  imageProps?: ImgHTMLAttributes<HTMLImageElement>;
11
11
  imageSrc: string;
12
12
  }) & {
13
+ imageHeight?: string | number;
13
14
  title: string;
14
15
  description?: string;
15
16
  descriptionProps?: TypographyProps;
@@ -1,31 +1,32 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { S as l } from "../../Stack-CMUWQxQn.js";
3
- import { B as g } from "../../Box-o7Tjjyko.js";
1
+ import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
+ import { S as g } from "../../Stack-CMUWQxQn.js";
3
+ import { B as p } from "../../Box-o7Tjjyko.js";
4
4
  import { T as o } from "../../Typography-DwMlN0K5.js";
5
- const y = ({
5
+ const S = ({
6
6
  image: e,
7
7
  imageProps: i,
8
8
  imageSrc: a,
9
9
  title: m,
10
10
  description: r,
11
11
  descriptionProps: n,
12
- svgProps: p,
12
+ svgProps: d,
13
13
  titleProps: h,
14
- ...c
15
- }) => /* @__PURE__ */ s(
16
- l,
14
+ imageHeight: c = 200,
15
+ ...s
16
+ }) => /* @__PURE__ */ l(
17
+ g,
17
18
  {
18
19
  direction: "column",
19
20
  alignItems: "center",
20
21
  margin: "0 auto",
21
- ...c,
22
+ ...s,
22
23
  children: [
23
- /* @__PURE__ */ t(g, { height: 200, width: "auto", children: e ?? /* @__PURE__ */ t("img", { src: a, height: "100%", ...i }) }),
24
+ /* @__PURE__ */ t(p, { height: c, width: "auto", children: e ?? /* @__PURE__ */ t("img", { src: a, height: "100%", ...i }) }),
24
25
  /* @__PURE__ */ t(o, { variant: "h2", fontWeight: 500, mt: 3, ...h, children: m }),
25
26
  r ? /* @__PURE__ */ t(o, { color: "textSecondary", mt: 2, ...n, children: r }) : null
26
27
  ]
27
28
  }
28
29
  );
29
30
  export {
30
- y as default
31
+ S as default
31
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.6.0-dev.1747905194",
3
+ "version": "1.6.0-dev.1747905856",
4
4
  "private": false,
5
5
  "author": "CGI Learning-hub Team",
6
6
  "description": "@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features",