@cgi-learning-hub/ui 1.7.0-dev.1751988018 → 1.7.0-dev.1752143362

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"),g=require("../../Stack-DraxEahz.cjs"),x=require("../../Box-C1W2izKY.cjs"),e=require("../../Typography-CZKR4ZRK.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;
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("../../Stack-DraxEahz.cjs"),n=require("../../Box-C1W2izKY.cjs"),i=require("../../Typography-CZKR4ZRK.cjs"),m=({image:s,imageProps:c,imageSrc:o,title:h,description:r,descriptionProps:a,footer:e,svgProps:p,titleProps:l,imageHeight:u=200,...x})=>t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"0 auto",...x,children:[t.jsx(n.Box,{height:u,width:"auto",children:s??t.jsx("img",{src:o,height:"100%",...c})}),t.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...l,children:h}),r?t.jsx(i.Typography,{color:"textSecondary",mt:2,...a,children:r}):null,e?t.jsx(n.Box,{mt:3,children:e}):null]});module.exports=m;
@@ -14,6 +14,7 @@ export type EmptyStateProps = ({
14
14
  title: string;
15
15
  description?: string;
16
16
  descriptionProps?: TypographyProps;
17
+ footer?: ReactNode;
17
18
  svgProps?: React.SVGAttributes<SVGSVGElement>;
18
19
  titleProps?: TypographyProps;
19
20
  } & StackProps;
@@ -1,32 +1,34 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import { S as g } from "../../Stack-D1BZQ4nk.js";
3
- import { B as p } from "../../Box-CBqFcDTK.js";
4
- import { T as o } from "../../Typography-Bdfl0Alf.js";
5
- const S = ({
6
- image: e,
7
- imageProps: i,
1
+ import { jsxs as g, jsx as t } from "react/jsx-runtime";
2
+ import { S as p } from "../../Stack-D1BZQ4nk.js";
3
+ import { B as i } from "../../Box-CBqFcDTK.js";
4
+ import { T as e } from "../../Typography-Bdfl0Alf.js";
5
+ const j = ({
6
+ image: m,
7
+ imageProps: n,
8
8
  imageSrc: a,
9
- title: m,
9
+ title: h,
10
10
  description: r,
11
- descriptionProps: n,
12
- svgProps: d,
13
- titleProps: h,
14
- imageHeight: c = 200,
15
- ...s
16
- }) => /* @__PURE__ */ l(
17
- g,
11
+ descriptionProps: l,
12
+ footer: o,
13
+ svgProps: u,
14
+ titleProps: c,
15
+ imageHeight: s = 200,
16
+ ...d
17
+ }) => /* @__PURE__ */ g(
18
+ p,
18
19
  {
19
20
  direction: "column",
20
21
  alignItems: "center",
21
22
  margin: "0 auto",
22
- ...s,
23
+ ...d,
23
24
  children: [
24
- /* @__PURE__ */ t(p, { height: c, width: "auto", children: e ?? /* @__PURE__ */ t("img", { src: a, height: "100%", ...i }) }),
25
- /* @__PURE__ */ t(o, { variant: "h2", fontWeight: 500, mt: 3, ...h, children: m }),
26
- r ? /* @__PURE__ */ t(o, { color: "textSecondary", mt: 2, ...n, children: r }) : null
25
+ /* @__PURE__ */ t(i, { height: s, width: "auto", children: m ?? /* @__PURE__ */ t("img", { src: a, height: "100%", ...n }) }),
26
+ /* @__PURE__ */ t(e, { variant: "h2", fontWeight: 500, mt: 3, ...c, children: h }),
27
+ r ? /* @__PURE__ */ t(e, { color: "textSecondary", mt: 2, ...l, children: r }) : null,
28
+ o ? /* @__PURE__ */ t(i, { mt: 3, children: o }) : null
27
29
  ]
28
30
  }
29
31
  );
30
32
  export {
31
- S as default
33
+ j as default
32
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.7.0-dev.1751988018",
3
+ "version": "1.7.0-dev.1752143362",
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",