@cgi-learning-hub/ui 1.1.0-dev.1723206415 → 1.1.0-dev.1723209052

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"),a=require("../../../hooks/lazySvgImport.cjs.js"),u=require("../../../Stack-BOcvai-O.cjs"),o=require("../../../Typography-DR_aF9lJ.cjs"),y=({svgName:n,title:s,description:r,descriptionProps:c,svgProps:i,titleProps:h,...l})=>{const{Svg:e}=a.useLazySvgImport(n);return e?t.jsxs(u.Stack,{direction:"column",alignItems:"center",...l,children:[t.jsx(e,{style:{width:300,height:300},...i}),t.jsx(o.Typography,{variant:"h2",fontWeight:500,mt:3,...h,children:s}),r?t.jsx(o.Typography,{color:"grey",mt:2,...c,children:r}):null]}):null};module.exports=y;
1
+ "use strict";const e=require("react/jsx-runtime"),l=require("../../../hooks/lazySvgImport.cjs.js"),g=require("../../../Stack-BOcvai-O.cjs"),i=require("../../../Typography-DR_aF9lJ.cjs"),u=({svgName:n,title:s,description:t,descriptionProps:o,svgProps:c,titleProps:a,...h})=>{const{Svg:r}=l.useLazySvgImport(n);return r?e.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"auto",...h,children:[e.jsx("div",{style:{width:300,maxHeight:300},children:e.jsx(r,{width:"100%",height:"100%",preserveAspectRatio:"xMinYMin slice",...c})}),e.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...a,children:s}),t?e.jsx(i.Typography,{color:"grey",mt:2,...o,children:t}):null]}):null};module.exports=u;
@@ -1,23 +1,31 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useLazySvgImport as h } from "../../../hooks/lazySvgImport.es.js";
3
3
  import { S as p } from "../../../Stack-ChwEAssj.js";
4
- import { T as e } from "../../../Typography-Z8MH8xot.js";
5
- const d = ({
6
- svgName: m,
4
+ import { T as i } from "../../../Typography-Z8MH8xot.js";
5
+ const y = ({
6
+ svgName: o,
7
7
  title: n,
8
8
  description: r,
9
- descriptionProps: i,
10
- svgProps: l,
11
- titleProps: a,
9
+ descriptionProps: m,
10
+ svgProps: a,
11
+ titleProps: l,
12
12
  ...s
13
13
  }) => {
14
- const { Svg: o } = h(m);
15
- return o ? /* @__PURE__ */ c(p, { direction: "column", alignItems: "center", ...s, children: [
16
- /* @__PURE__ */ t(o, { style: { width: 300, height: 300 }, ...l }),
17
- /* @__PURE__ */ t(e, { variant: "h2", fontWeight: 500, mt: 3, ...a, children: n }),
18
- r ? /* @__PURE__ */ t(e, { color: "grey", mt: 2, ...i, children: r }) : null
14
+ const { Svg: e } = h(o);
15
+ return e ? /* @__PURE__ */ c(p, { direction: "column", alignItems: "center", margin: "auto", ...s, children: [
16
+ /* @__PURE__ */ t("div", { style: { width: 300, maxHeight: 300 }, children: /* @__PURE__ */ t(
17
+ e,
18
+ {
19
+ width: "100%",
20
+ height: "100%",
21
+ preserveAspectRatio: "xMinYMin slice",
22
+ ...a
23
+ }
24
+ ) }),
25
+ /* @__PURE__ */ t(i, { variant: "h2", fontWeight: 500, mt: 3, ...l, children: n }),
26
+ r ? /* @__PURE__ */ t(i, { color: "grey", mt: 2, ...m, children: r }) : null
19
27
  ] }) : null;
20
28
  };
21
29
  export {
22
- d as default
30
+ y as default
23
31
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.1.0-dev.1723206415",
3
+ "version": "1.1.0-dev.1723209052",
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",