@cgi-learning-hub/ui 1.4.0-dev.1741950408 → 1.4.0-dev.1741956837

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"),l=require("@mui/material"),p=require("../../MoreVert-CxgmXooO.cjs"),u=require("../../createSvgIcon-DJMYlO0S.cjs"),s=require("./styles.cjs.js"),i=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),x=u.createSvgIcon(t.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),h=({isSelected:r=!1,onSelect:n=()=>{},title:a,subtitle:c,width:d,onClick:o=()=>{}})=>t.jsx(l.Box,{sx:{width:d||"320px"},children:t.jsxs(s.StyledFolder,{selected:r,onClick:o,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),o==null||o())},role:"button",tabIndex:0,"aria-labelledby":"folder-title folder-subtitle","aria-pressed":r,children:[t.jsx(s.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),n())},className:"selected-icon",selected:r,role:"button",tabIndex:0,"aria-label":r?"Unselect folder":"Select folder","aria-pressed":r,children:t.jsx(p.MoreVertIcon,{})}),t.jsxs(l.CardContent,{sx:s.FolderBodyStyle,children:[t.jsx(x,{color:"primary",sx:s.FolderIconStyle,"aria-hidden":"true"}),t.jsxs(l.Box,{children:[t.jsx(i,{typographyProps:{fontWeight:"700",fontSize:"1.1rem",id:"folder-title"},tooltipProps:{placement:"bottom",arrow:!0},children:a}),t.jsx(i,{typographyProps:{fontWeight:"400",fontSize:".8rem",fontStyle:"italic",id:"folder-subtitle"},tooltipProps:{placement:"bottom",arrow:!0},children:c})]})]})]})});module.exports=h;
1
+ "use strict";const t=require("react/jsx-runtime"),p=require("../../createSvgIcon-DJMYlO0S.cjs"),u=require("../../MoreVert-CxgmXooO.cjs"),l=require("@mui/material"),i=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),s=require("./styles.cjs.js"),x=p.createSvgIcon(t.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"Folder"),h=({isSelected:r=!1,onSelect:n=()=>{},title:a,subtitle:c,width:d,onClick:o=()=>{}})=>t.jsx(l.Box,{sx:{width:d||"320px"},children:t.jsxs(s.StyledFolder,{selected:r,onClick:o,onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),o==null||o())},role:"button",tabIndex:0,"aria-labelledby":"folder-title folder-subtitle","aria-pressed":r,children:[t.jsx(s.SelectedIcon,{onClick:e=>{e.preventDefault(),e.stopPropagation(),n()},onKeyDown:e=>{(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),n())},className:"selected-icon",selected:r,role:"button",tabIndex:0,"aria-label":r?"Unselect folder":"Select folder","aria-pressed":r,children:t.jsx(u.MoreVertIcon,{})}),t.jsxs(l.CardContent,{sx:s.FolderBodyStyle,children:[t.jsx(x,{color:"primary",sx:s.FolderIconStyle,"aria-hidden":"true"}),t.jsxs(l.Box,{children:[t.jsx(i,{typographyProps:{fontWeight:"700",fontSize:"1.1rem",id:"folder-title"},tooltipProps:{placement:"bottom",arrow:!0},children:a}),t.jsx(i,{typographyProps:{fontWeight:"400",fontSize:".8rem",fontStyle:"italic",id:"folder-subtitle"},tooltipProps:{placement:"bottom",arrow:!0},children:c})]})]})]})});module.exports=h;
@@ -1,10 +1,10 @@
1
1
  import { jsx as r, jsxs as l } from "react/jsx-runtime";
2
- import { Box as n, CardContent as c } from "@mui/material";
2
+ import { c } from "../../createSvgIcon-K2ZAdASa.js";
3
3
  import { M as f } from "../../MoreVert-CrM_1EkN.js";
4
- import { c as m } from "../../createSvgIcon-K2ZAdASa.js";
5
- import { StyledFolder as h, SelectedIcon as y, FolderBodyStyle as u, FolderIconStyle as b } from "./styles.es.js";
4
+ import { Box as n, CardContent as m } from "@mui/material";
6
5
  import i from "../EllipsisWithTooltip/EllipsisWithTooltip.es.js";
7
- const x = m(/* @__PURE__ */ r("path", {
6
+ import { StyledFolder as h, SelectedIcon as y, FolderBodyStyle as u, FolderIconStyle as b } from "./styles.es.js";
7
+ const x = c(/* @__PURE__ */ r("path", {
8
8
  d: "M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"
9
9
  }), "Folder"), v = ({
10
10
  isSelected: t = !1,
@@ -46,13 +46,17 @@ const x = m(/* @__PURE__ */ r("path", {
46
46
  children: /* @__PURE__ */ r(f, {})
47
47
  }
48
48
  ),
49
- /* @__PURE__ */ l(c, { sx: u, children: [
49
+ /* @__PURE__ */ l(m, { sx: u, children: [
50
50
  /* @__PURE__ */ r(x, { color: "primary", sx: b, "aria-hidden": "true" }),
51
51
  /* @__PURE__ */ l(n, { children: [
52
52
  /* @__PURE__ */ r(
53
53
  i,
54
54
  {
55
- typographyProps: { fontWeight: "700", fontSize: "1.1rem", id: "folder-title" },
55
+ typographyProps: {
56
+ fontWeight: "700",
57
+ fontSize: "1.1rem",
58
+ id: "folder-title"
59
+ },
56
60
  tooltipProps: { placement: "bottom", arrow: !0 },
57
61
  children: d
58
62
  }
@@ -60,7 +64,12 @@ const x = m(/* @__PURE__ */ r("path", {
60
64
  /* @__PURE__ */ r(
61
65
  i,
62
66
  {
63
- typographyProps: { fontWeight: "400", fontSize: ".8rem", fontStyle: "italic", id: "folder-subtitle" },
67
+ typographyProps: {
68
+ fontWeight: "400",
69
+ fontSize: ".8rem",
70
+ fontStyle: "italic",
71
+ id: "folder-subtitle"
72
+ },
64
73
  tooltipProps: { placement: "bottom", arrow: !0 },
65
74
  children: p
66
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cgi-learning-hub/ui",
3
- "version": "1.4.0-dev.1741950408",
3
+ "version": "1.4.0-dev.1741956837",
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",