@cgi-learning-hub/ui 1.2.0-dev.1725006670 → 1.2.0-dev.1725030880

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 r=require("react/jsx-runtime"),x=require("../../Stack-D9IYPfJ8.cjs"),i=require("../../Typography-YHooSvuR.cjs"),q=({title:t,IconComponent:s,iconColor:e,iconProps:a,iconSize:d=28,component:u="h3",variant:p="h2",fontWeight:g="bold",...h})=>r.jsxs(x.Stack,{direction:"row",alignItems:"center",gap:1,children:[s?r.jsx(s,{sx:{fontSize:d,padding:"2px",borderRadius:1,color:e==null?void 0:e[500],backgroundColor:e==null?void 0:e[50]},...a}):null,r.jsx(i.Typography,{component:u,variant:p,fontWeight:g,...h,children:t})]});module.exports=q;
1
+ "use strict";const n=require("react/jsx-runtime"),c=require("../../Stack-D9IYPfJ8.cjs"),q=require("../../Typography-YHooSvuR.cjs"),r=({title:u,IconComponent:d,iconColor:e,iconProps:g,iconSize:h=28,titleProps:a,...x})=>n.jsxs(c.Stack,{direction:"row",alignItems:"center",gap:1,...x,children:[d?n.jsx(d,{sx:{fontSize:h,padding:"2px",borderRadius:1,color:e==null?void 0:e[500],backgroundColor:e==null?void 0:e[50]},...g}):null,n.jsx(q.Typography,{component:(a==null?void 0:a.component)??"h3",variant:(a==null?void 0:a.variant)??"h2",fontWeight:(a==null?void 0:a.fontWeight)??400,...a,children:u})]});module.exports=r;
@@ -1,5 +1,6 @@
1
1
  import { SvgIconComponent } from '@mui/icons-material';
2
2
  import { Color, SvgIconProps } from '@mui/material';
3
+ import { StackProps } from '@mui/material/Stack';
3
4
  import { TypographyProps } from '@mui/material/Typography';
4
5
 
5
6
  export type PaperHeaderProps = {
@@ -8,6 +9,7 @@ export type PaperHeaderProps = {
8
9
  iconColor?: Color;
9
10
  iconProps?: SvgIconProps;
10
11
  iconSize?: number;
11
- } & TypographyProps;
12
+ titleProps?: TypographyProps;
13
+ } & StackProps;
12
14
  declare const PaperHeader: React.FunctionComponent<PaperHeaderProps>;
13
15
  export default PaperHeader;
@@ -1,41 +1,39 @@
1
- import { jsxs as h, jsx as r } from "react/jsx-runtime";
2
- import { S as u } from "../../Stack-Dlgk5t_M.js";
3
- import { T as x } from "../../Typography-DjrvRhOr.js";
4
- const j = ({
5
- title: d,
6
- IconComponent: e,
7
- iconColor: a,
8
- iconProps: t,
9
- iconSize: s = 28,
10
- component: p = "h3",
11
- variant: m = "h2",
12
- fontWeight: f = "bold",
13
- ...g
14
- }) => /* @__PURE__ */ h(u, { direction: "row", alignItems: "center", gap: 1, children: [
15
- e ? /* @__PURE__ */ r(
16
- e,
1
+ import { jsxs as x, jsx as f } from "react/jsx-runtime";
2
+ import { S } from "../../Stack-Dlgk5t_M.js";
3
+ import { T as b } from "../../Typography-DjrvRhOr.js";
4
+ const v = ({
5
+ title: g,
6
+ IconComponent: m,
7
+ iconColor: d,
8
+ iconProps: h,
9
+ iconSize: n = 28,
10
+ titleProps: a,
11
+ ...u
12
+ }) => /* @__PURE__ */ x(S, { direction: "row", alignItems: "center", gap: 1, ...u, children: [
13
+ m ? /* @__PURE__ */ f(
14
+ m,
17
15
  {
18
16
  sx: {
19
- fontSize: s,
17
+ fontSize: n,
20
18
  padding: "2px",
21
19
  borderRadius: 1,
22
- color: a == null ? void 0 : a[500],
23
- backgroundColor: a == null ? void 0 : a[50]
20
+ color: d == null ? void 0 : d[500],
21
+ backgroundColor: d == null ? void 0 : d[50]
24
22
  },
25
- ...t
23
+ ...h
26
24
  }
27
25
  ) : null,
28
- /* @__PURE__ */ r(
29
- x,
26
+ /* @__PURE__ */ f(
27
+ b,
30
28
  {
31
- component: p,
32
- variant: m,
33
- fontWeight: f,
34
- ...g,
35
- children: d
29
+ component: (a == null ? void 0 : a.component) ?? "h3",
30
+ variant: (a == null ? void 0 : a.variant) ?? "h2",
31
+ fontWeight: (a == null ? void 0 : a.fontWeight) ?? 400,
32
+ ...a,
33
+ children: g
36
34
  }
37
35
  )
38
36
  ] });
39
37
  export {
40
- j as default
38
+ v as default
41
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.2.0-dev.1725006670",
3
+ "version": "1.2.0-dev.1725030880",
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",