ece-docs-components 1.0.80 → 1.0.82

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.
@@ -164,7 +164,7 @@ const SidebarItem = ({ isOpen, isAdmin, item, onNavigate, expandedSet, setExpand
164
164
  } })), jsxRuntime.jsx(material.List, { sx: { p: 0, mt: 1, mb: 1, flex: 1 }, children: item.items &&
165
165
  item.items.map((child) => (jsxRuntime.jsx(SidebarItem, { currentPath: currentPath, expandedSet: expandedSet, setExpand: onExpand, isOpen: isOpen, isAdmin: isAdmin, item: child, onNavigate: onNavigate, depth: depth + 1 }, child.id))) })] }) }))] }));
166
166
  };
167
- const SidebarV2 = ({ isOpen, onToggle, centreName = "Centre name goes here \n across two lines", onNavigate, items, isAdmin, currentPath, onOrgChange }) => {
167
+ const SidebarV2 = ({ isOpen, onToggle, centreName = "Centre name goes here \n across two lines", onNavigate, items, isAdmin, currentPath, onOrgChange, hasMultipleOrganisations }) => {
168
168
  const findExpandItems = (items) => {
169
169
  for (const item of items) {
170
170
  if (!item || item.items === undefined || item.items.length === 0) {
@@ -214,7 +214,7 @@ const SidebarV2 = ({ isOpen, onToggle, centreName = "Centre name goes here \n ac
214
214
  whiteSpace: "pre-line",
215
215
  flex: 1,
216
216
  pr: 2,
217
- }, children: centreName ?? "Centre Name" }), jsxRuntime.jsx(ToggleButton, { onClick: () => onToggle(), sx: { ml: "auto" }, "aria-label": "Collapse sidebar", children: jsxRuntime.jsx(iconsMaterial.KeyboardDoubleArrowLeftRounded, { sx: { fontSize: 20 } }) })] }), jsxRuntime.jsx(material.Box, { onClick: onOrgChange, sx: {
217
+ }, children: centreName ?? "Centre Name" }), jsxRuntime.jsx(ToggleButton, { onClick: () => onToggle(), sx: { ml: "auto" }, "aria-label": "Collapse sidebar", children: jsxRuntime.jsx(iconsMaterial.KeyboardDoubleArrowLeftRounded, { sx: { fontSize: 20 } }) })] }), hasMultipleOrganisations && (jsxRuntime.jsx(material.Box, { onClick: onOrgChange, sx: {
218
218
  px: 2,
219
219
  py: 1,
220
220
  borderBottom: `1px solid ${theme.palette.dark.main}1A`,
@@ -230,7 +230,7 @@ const SidebarV2 = ({ isOpen, onToggle, centreName = "Centre name goes here \n ac
230
230
  flexDirection: "row",
231
231
  alignItems: "center",
232
232
  py: 1,
233
- }, children: [jsxRuntime.jsx(iconsMaterial.ImportExportRounded, { sx: { color: theme.palette.primary.main, mr: 1 } }), jsxRuntime.jsx(material.Typography, { sx: { color: theme.palette.primary.main }, children: "Change organisation" })] }) })] })) : (jsxRuntime.jsx(material.Box, { sx: {
233
+ }, children: [jsxRuntime.jsx(iconsMaterial.ImportExportRounded, { sx: { color: theme.palette.primary.main, mr: 1 } }), jsxRuntime.jsx(material.Typography, { sx: { color: theme.palette.primary.main }, children: "Change organisation" })] }) }))] })) : (jsxRuntime.jsx(material.Box, { sx: {
234
234
  px: 1,
235
235
  py: 3,
236
236
  borderBottom: `1px solid ${theme.palette.dark.main}1A`,
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarV2.js","sources":["../../../../src/components/SidebarV2.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\r\nimport {\r\n Box,\r\n IconButton,\r\n Typography,\r\n List,\r\n ListItemButton,\r\n ListItemText,\r\n Collapse,\r\n styled,\r\n Divider,\r\n} from \"@mui/material\";\r\nimport { useTheme } from \"../ThemeProvider\";\r\nimport {\r\n ChevronRightRounded,\r\n ImportExportRounded,\r\n KeyboardDoubleArrowLeftRounded,\r\n KeyboardDoubleArrowRightRounded,\r\n} from \"@mui/icons-material\";\r\n\r\nconst EXPANDED_WIDTH = \"288px\";\r\nconst COLLAPSED_WIDTH_SMALL = \"80px\";\r\nconst COLLAPSED_WIDTH_DEFAULT = \"64px\";\r\n\r\nexport enum Visibility {\r\n Admin = \"Admin\",\r\n Contributor = \"Contributor\",\r\n Community = \"Community\",\r\n}\r\n\r\nexport interface MenuItem {\r\n id: string | number;\r\n title: string;\r\n icon?: React.ReactNode;\r\n visibility?: Visibility;\r\n url?: string;\r\n items?: MenuItem[];\r\n}\r\n\r\nconst SidebarContainer = styled(Box, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\",\r\n})<{ isOpen: boolean }>(({ theme, isOpen }) => ({\r\n height: \"100vh\",\r\n position: \"sticky\",\r\n top: 0,\r\n paddingLeft: 0,\r\n overflow: \"hidden\",\r\n backgroundColor: \"#fff\",\r\n borderRight: `1px solid ${theme.palette.dark.main}1A`,\r\n flexShrink: 0,\r\n transition: \"all 0.15s ease-out\",\r\n width: isOpen ? EXPANDED_WIDTH : COLLAPSED_WIDTH_DEFAULT,\r\n zIndex: 50,\r\n [theme.breakpoints.down(\"md\")]: {\r\n position: \"fixed\",\r\n left: isOpen ? 0 : `-${EXPANDED_WIDTH}`,\r\n width: EXPANDED_WIDTH,\r\n },\r\n [theme.breakpoints.up(\"sm\")]: {\r\n width: isOpen ? EXPANDED_WIDTH : COLLAPSED_WIDTH_SMALL,\r\n },\r\n}));\r\n\r\nconst ToggleButton = styled(IconButton)(({ theme }) => ({\r\n width: 40,\r\n height: 40,\r\n borderRadius: theme.shape.borderRadius,\r\n backgroundColor: \"#4D3019\",\r\n color: \"#fff\",\r\n \"&:hover\": {\r\n backgroundColor: \"#3d2614\",\r\n },\r\n}));\r\n\r\nconst MenuItemButton = styled(ListItemButton, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\" && prop !== \"isActive\" && prop !== \"isPolicyActive\",\r\n})<{ isActive?: boolean; isOpen: boolean, isPolicyActive?: boolean }>(({ theme, isActive, isOpen, isPolicyActive }) => ({\r\n borderRadius: isOpen\r\n ? `0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0`\r\n : theme.shape.borderRadius,\r\n paddingLeft: 0,\r\n paddingRight: isOpen ? theme.spacing(2) : 0,\r\n marginRight: isOpen ? 8 : 0,\r\n minHeight: 64,\r\n justifyContent: isOpen ? \"flex-start\" : \"center\",\r\n backgroundClip: \"padding-box\",\r\n backgroundOrigin: \"border-box\",\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}0D`,\r\n },\r\n ...(isActive && {\r\n backgroundColor: `${theme.palette.primary.main}1A`,\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}1A`,\r\n },\r\n }),\r\n ...(isPolicyActive && {\r\n backgroundColor: `#0000000D`,\r\n \"&:hover\": {\r\n backgroundColor: `#0000000D`,\r\n },\r\n }),\r\n}));\r\n\r\nconst IconWrapper = styled(Box, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\",\r\n})<{ isOpen: boolean }>(({ theme, isOpen }) => ({\r\n width: isOpen ? 32 : 40,\r\n height: isOpen ? 32 : 40,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: \"transparent\",\r\n}));\r\n\r\nconst SidebarItem = ({\r\n isOpen,\r\n isAdmin,\r\n item,\r\n onNavigate,\r\n expandedSet,\r\n setExpand: onExpand,\r\n depth = 0,\r\n currentPath,\r\n}: {\r\n isOpen: boolean;\r\n isAdmin: boolean;\r\n item: MenuItem;\r\n onNavigate: (path: string) => void;\r\n expandedSet: Set<string | number>;\r\n setExpand: React.Dispatch<React.SetStateAction<Set<string | number>>>;\r\n depth?: number;\r\n currentPath: string;\r\n}) => {\r\n // console.log(item.title, item.items);\r\n // Check visibility based on visibility state and isAdmin prop\r\n const isVisible =\r\n item.visibility === Visibility.Admin\r\n ? !!isAdmin\r\n : item.visibility === Visibility.Contributor || !item.visibility;\r\n if (!isVisible) {\r\n return null;\r\n }\r\n\r\n const theme = useTheme();\r\n const nestedPadding = depth > 1 ? 1 : 3 + depth;\r\n\r\n const isExpanded = () => expandedSet.has(item.id);\r\n\r\n const toggleExpand = () => {\r\n if (!isExpanded()) {\r\n onExpand(new Set([...expandedSet, item.id]));\r\n } else {\r\n expandedSet.delete(item.id);\r\n onExpand(new Set(expandedSet));\r\n }\r\n };\r\n\r\n const isActive =\r\n currentPath.includes(item.url as string) ||\r\n currentPath.includes(item.title.toLowerCase() as string) ||\r\n isExpanded();\r\n\r\n const isPolicyActive = currentPath.includes(item.url as string)\r\n\r\n return (\r\n <Box sx={{ mb: depth > 0 ? 0 : 1 }}>\r\n <MenuItemButton\r\n disableRipple\r\n isOpen={isOpen}\r\n onClick={() => {\r\n if (item.url) onNavigate(item.url);\r\n else if (item.items) toggleExpand();\r\n }}\r\n isActive={isActive}\r\n isPolicyActive={isPolicyActive}\r\n title={!isOpen ? item.title : undefined}\r\n sx={{\r\n ...(depth > 0 && {\r\n pl: nestedPadding,\r\n }),\r\n }}\r\n >\r\n {item.icon && (\r\n <IconWrapper isOpen={isOpen} sx={{ ml: isOpen ? 2 : 0 }}>\r\n {item.icon}\r\n </IconWrapper>\r\n )}\r\n {isOpen && (\r\n <>\r\n <ListItemText\r\n primary={item.title}\r\n slotProps={{\r\n primary: {\r\n style: { \r\n // textDecoration: isActive ? \"underline\" : \"\",\r\n fontWeight: isPolicyActive ? 700 : (depth > 0 ? 400 : 700)},\r\n width: 180 - nestedPadding - (item.items ? 32 : 0),\r\n ...(depth > 0\r\n ? {\r\n fontSize: \"0.875rem\",\r\n }\r\n : {\r\n fontSize: \"1rem\",\r\n fontWeight: 700,\r\n }),\r\n },\r\n }}\r\n sx={{ flex: 1, ml: 1 }}\r\n />\r\n {item.items && item.items.length > 0 && (\r\n <IconButton\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n if (item.items) toggleExpand();\r\n }}\r\n disableRipple\r\n sx={{\r\n ml: 0.5,\r\n borderRadius: 1,\r\n width: 32,\r\n height: 32,\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}1F`,\r\n },\r\n }}\r\n >\r\n <ChevronRightRounded\r\n sx={{\r\n fontSize: 16,\r\n color: \"#4D3019\",\r\n transition: \"transform 0.1s\",\r\n transform: isExpanded() ? \"rotate(90deg)\" : \"rotate(0deg)\",\r\n }}\r\n />\r\n </IconButton>\r\n )}\r\n </>\r\n )}\r\n </MenuItemButton>\r\n {isExpanded() && isOpen && (\r\n <Collapse in={true} timeout=\"auto\">\r\n <Box display='flex' flexDirection='row'>\r\n {depth > 0 && (\r\n <Divider \r\n orientation=\"vertical\" \r\n flexItem \r\n sx={{ \r\n ml: 2,\r\n borderColor: `#00000033`,\r\n borderWidth: '1px',\r\n borderRightWidth: '1px',\r\n mt: 1,\r\n mb: 1\r\n }}\r\n />\r\n )}\r\n <List sx={{ p: 0, mt: 1, mb:1, flex: 1 }}>\r\n {item.items &&\r\n item.items.map((child) => (\r\n <SidebarItem\r\n key={child.id}\r\n currentPath={currentPath}\r\n expandedSet={expandedSet}\r\n setExpand={onExpand}\r\n isOpen={isOpen}\r\n isAdmin={isAdmin}\r\n item={child}\r\n onNavigate={onNavigate}\r\n depth={depth + 1}\r\n />\r\n ))}\r\n </List>\r\n </Box>\r\n </Collapse>\r\n )}\r\n </Box>\r\n );\r\n};\r\n\r\nexport const SidebarV2 = ({\r\n isOpen,\r\n onToggle,\r\n centreName = \"Centre name goes here \\n across two lines\",\r\n onNavigate,\r\n items,\r\n isAdmin,\r\n currentPath,\r\n onOrgChange\r\n}: {\r\n isOpen: boolean;\r\n onToggle: () => void;\r\n items: MenuItem[];\r\n centreName?: string;\r\n onNavigate: (path: string) => void;\r\n isAdmin: boolean;\r\n currentPath: string;\r\n onOrgChange: () => void;\r\n}) => {\r\n const findExpandItems = (items: MenuItem[]): (string | number)[] => {\r\n for (const item of items) {\r\n if (!item || item.items === undefined || item.items.length === 0) {\r\n continue;\r\n }\r\n const url = item.url?.replace(/-\\d+$/, '')\r\n const isActive =\r\n currentPath.includes(url as string) ||\r\n currentPath.includes(item.title.toLowerCase() as string);\r\n if (isActive) {\r\n return item.items\r\n ? [item.id, ...findExpandItems(item.items)]\r\n : [item.id];\r\n }\r\n }\r\n return [];\r\n };\r\n \r\n const theme = useTheme();\r\n const [expandedSet, setExpanded] = useState<Set<string | number>>(\r\n () => new Set(findExpandItems(items)),\r\n );\r\n\r\n return (\r\n <>\r\n {isOpen && (\r\n <Box\r\n sx={{\r\n position: \"fixed\",\r\n inset: 0,\r\n bgcolor: \"rgba(0, 0, 0, 0.5)\",\r\n zIndex: 40,\r\n display: { xs: \"block\", md: \"none\" },\r\n }}\r\n onClick={onToggle}\r\n />\r\n )}\r\n <SidebarContainer isOpen={isOpen}>\r\n <Box sx={{ display: \"flex\", flexDirection: \"column\", height: \"100%\" }}>\r\n {/* Sidebar Header */}\r\n {isOpen ? (\r\n <Box\r\n sx={{\r\n px: 2,\r\n py: 3,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n px: 2,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n }}\r\n >\r\n <Typography\r\n variant=\"h6\"\r\n sx={{\r\n width: \"180px\",\r\n fontSize: \"18px\",\r\n fontWeight: 700,\r\n color: \"#4D3019\",\r\n whiteSpace: \"pre-line\",\r\n flex: 1,\r\n pr: 2,\r\n }}\r\n >\r\n {centreName ?? \"Centre Name\"}\r\n </Typography>\r\n\r\n <ToggleButton\r\n onClick={() => onToggle()}\r\n sx={{ ml: \"auto\" }}\r\n aria-label=\"Collapse sidebar\"\r\n >\r\n <KeyboardDoubleArrowLeftRounded sx={{ fontSize: 20 }} />\r\n </ToggleButton>\r\n </Box>\r\n <Box\r\n onClick={onOrgChange}\r\n sx={{\r\n px: 2,\r\n py: 1,\r\n borderBottom: `1px solid ${theme.palette.dark.main}1A`,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box\r\n className=\"org-change-content\"\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n py: 1,\r\n }}\r\n >\r\n <ImportExportRounded \r\n sx={{ color: theme.palette.primary.main, mr: 1 }} \r\n />\r\n <Typography sx={{ color: theme.palette.primary.main }}>\r\n Change organisation\r\n </Typography>\r\n </Box>\r\n </Box>\r\n </Box>\r\n ) : (\r\n <Box\r\n sx={{\r\n px: 1,\r\n py: 3,\r\n borderBottom: `1px solid ${theme.palette.dark.main}1A`,\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <ToggleButton onClick={onToggle} aria-label=\"Expand sidebar\">\r\n <KeyboardDoubleArrowRightRounded sx={{ fontSize: 20 }} />\r\n </ToggleButton>\r\n </Box>\r\n )}\r\n\r\n {/* Sidebar Items */}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n overflowY: \"auto\",\r\n px: isOpen ? 0 : 1,\r\n py: 3,\r\n }}\r\n >\r\n <List sx={{ p: 0 }}>\r\n {items.map((item) => (\r\n <SidebarItem\r\n currentPath={currentPath}\r\n key={item.id}\r\n expandedSet={expandedSet}\r\n setExpand={setExpanded}\r\n isOpen={isOpen}\r\n isAdmin={isAdmin}\r\n item={item}\r\n onNavigate={onNavigate}\r\n />\r\n ))}\r\n </List>\r\n </Box>\r\n </Box>\r\n </SidebarContainer>\r\n </>\r\n );\r\n};\r\n"],"names":["Visibility","styled","Box","IconButton","ListItemButton","useTheme","_jsxs","_jsx","ListItemText","ChevronRightRounded","Collapse","Divider","List","useState","Typography","KeyboardDoubleArrowLeftRounded","ImportExportRounded","KeyboardDoubleArrowRightRounded"],"mappings":";;;;;;;;AAoBA,MAAM,cAAc,GAAG,OAAO;AAC9B,MAAM,qBAAqB,GAAG,MAAM;AACpC,MAAM,uBAAuB,GAAG,MAAM;AAE1BA;AAAZ,CAAA,UAAY,UAAU,EAAA;AACpB,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,UAAA,CAAA,aAAA,CAAA,GAAA,a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CAAC,IAAI,MACdL,cAAA,CAAC,WAAW,EAAA,EACV,WAAW,EAAE,WAAW,EAExB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,WAAW,EACtB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EAAA,EANjB,IAAI,CAAC,EAAE,CAOZ,CACH,CAAC,EAAA,CACG,EAAA,CACH,CAAA,EAAA,CACF,EAAA,CACW,CAAA,EAAA,CAClB;AAEP;;;;"}
1
+ {"version":3,"file":"SidebarV2.js","sources":["../../../../src/components/SidebarV2.tsx"],"sourcesContent":["import React, { useEffect, useState } from \"react\";\r\nimport {\r\n Box,\r\n IconButton,\r\n Typography,\r\n List,\r\n ListItemButton,\r\n ListItemText,\r\n Collapse,\r\n styled,\r\n Divider,\r\n} from \"@mui/material\";\r\nimport { useTheme } from \"../ThemeProvider\";\r\nimport {\r\n ChevronRightRounded,\r\n ImportExportRounded,\r\n KeyboardDoubleArrowLeftRounded,\r\n KeyboardDoubleArrowRightRounded,\r\n} from \"@mui/icons-material\";\r\n\r\nconst EXPANDED_WIDTH = \"288px\";\r\nconst COLLAPSED_WIDTH_SMALL = \"80px\";\r\nconst COLLAPSED_WIDTH_DEFAULT = \"64px\";\r\n\r\nexport enum Visibility {\r\n Admin = \"Admin\",\r\n Contributor = \"Contributor\",\r\n Community = \"Community\",\r\n}\r\n\r\nexport interface MenuItem {\r\n id: string | number;\r\n title: string;\r\n icon?: React.ReactNode;\r\n visibility?: Visibility;\r\n url?: string;\r\n items?: MenuItem[];\r\n}\r\n\r\nconst SidebarContainer = styled(Box, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\",\r\n})<{ isOpen: boolean }>(({ theme, isOpen }) => ({\r\n height: \"100vh\",\r\n position: \"sticky\",\r\n top: 0,\r\n paddingLeft: 0,\r\n overflow: \"hidden\",\r\n backgroundColor: \"#fff\",\r\n borderRight: `1px solid ${theme.palette.dark.main}1A`,\r\n flexShrink: 0,\r\n transition: \"all 0.15s ease-out\",\r\n width: isOpen ? EXPANDED_WIDTH : COLLAPSED_WIDTH_DEFAULT,\r\n zIndex: 50,\r\n [theme.breakpoints.down(\"md\")]: {\r\n position: \"fixed\",\r\n left: isOpen ? 0 : `-${EXPANDED_WIDTH}`,\r\n width: EXPANDED_WIDTH,\r\n },\r\n [theme.breakpoints.up(\"sm\")]: {\r\n width: isOpen ? EXPANDED_WIDTH : COLLAPSED_WIDTH_SMALL,\r\n },\r\n}));\r\n\r\nconst ToggleButton = styled(IconButton)(({ theme }) => ({\r\n width: 40,\r\n height: 40,\r\n borderRadius: theme.shape.borderRadius,\r\n backgroundColor: \"#4D3019\",\r\n color: \"#fff\",\r\n \"&:hover\": {\r\n backgroundColor: \"#3d2614\",\r\n },\r\n}));\r\n\r\nconst MenuItemButton = styled(ListItemButton, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\" && prop !== \"isActive\" && prop !== \"isPolicyActive\",\r\n})<{ isActive?: boolean; isOpen: boolean, isPolicyActive?: boolean }>(({ theme, isActive, isOpen, isPolicyActive }) => ({\r\n borderRadius: isOpen\r\n ? `0 ${theme.shape.borderRadius}px ${theme.shape.borderRadius}px 0`\r\n : theme.shape.borderRadius,\r\n paddingLeft: 0,\r\n paddingRight: isOpen ? theme.spacing(2) : 0,\r\n marginRight: isOpen ? 8 : 0,\r\n minHeight: 64,\r\n justifyContent: isOpen ? \"flex-start\" : \"center\",\r\n backgroundClip: \"padding-box\",\r\n backgroundOrigin: \"border-box\",\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}0D`,\r\n },\r\n ...(isActive && {\r\n backgroundColor: `${theme.palette.primary.main}1A`,\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}1A`,\r\n },\r\n }),\r\n ...(isPolicyActive && {\r\n backgroundColor: `#0000000D`,\r\n \"&:hover\": {\r\n backgroundColor: `#0000000D`,\r\n },\r\n }),\r\n}));\r\n\r\nconst IconWrapper = styled(Box, {\r\n shouldForwardProp: (prop) => prop !== \"isOpen\",\r\n})<{ isOpen: boolean }>(({ theme, isOpen }) => ({\r\n width: isOpen ? 32 : 40,\r\n height: isOpen ? 32 : 40,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: \"transparent\",\r\n}));\r\n\r\nconst SidebarItem = ({\r\n isOpen,\r\n isAdmin,\r\n item,\r\n onNavigate,\r\n expandedSet,\r\n setExpand: onExpand,\r\n depth = 0,\r\n currentPath,\r\n}: {\r\n isOpen: boolean;\r\n isAdmin: boolean;\r\n item: MenuItem;\r\n onNavigate: (path: string) => void;\r\n expandedSet: Set<string | number>;\r\n setExpand: React.Dispatch<React.SetStateAction<Set<string | number>>>;\r\n depth?: number;\r\n currentPath: string;\r\n}) => {\r\n // console.log(item.title, item.items);\r\n // Check visibility based on visibility state and isAdmin prop\r\n const isVisible =\r\n item.visibility === Visibility.Admin\r\n ? !!isAdmin\r\n : item.visibility === Visibility.Contributor || !item.visibility;\r\n if (!isVisible) {\r\n return null;\r\n }\r\n\r\n const theme = useTheme();\r\n const nestedPadding = depth > 1 ? 1 : 3 + depth;\r\n\r\n const isExpanded = () => expandedSet.has(item.id);\r\n\r\n const toggleExpand = () => {\r\n if (!isExpanded()) {\r\n onExpand(new Set([...expandedSet, item.id]));\r\n } else {\r\n expandedSet.delete(item.id);\r\n onExpand(new Set(expandedSet));\r\n }\r\n };\r\n\r\n const isActive =\r\n currentPath.includes(item.url as string) ||\r\n currentPath.includes(item.title.toLowerCase() as string) ||\r\n isExpanded();\r\n\r\n const isPolicyActive = currentPath.includes(item.url as string)\r\n\r\n return (\r\n <Box sx={{ mb: depth > 0 ? 0 : 1 }}>\r\n <MenuItemButton\r\n disableRipple\r\n isOpen={isOpen}\r\n onClick={() => {\r\n if (item.url) onNavigate(item.url);\r\n else if (item.items) toggleExpand();\r\n }}\r\n isActive={isActive}\r\n isPolicyActive={isPolicyActive}\r\n title={!isOpen ? item.title : undefined}\r\n sx={{\r\n ...(depth > 0 && {\r\n pl: nestedPadding,\r\n }),\r\n }}\r\n >\r\n {item.icon && (\r\n <IconWrapper isOpen={isOpen} sx={{ ml: isOpen ? 2 : 0 }}>\r\n {item.icon}\r\n </IconWrapper>\r\n )}\r\n {isOpen && (\r\n <>\r\n <ListItemText\r\n primary={item.title}\r\n slotProps={{\r\n primary: {\r\n style: { \r\n // textDecoration: isActive ? \"underline\" : \"\",\r\n fontWeight: isPolicyActive ? 700 : (depth > 0 ? 400 : 700)},\r\n width: 180 - nestedPadding - (item.items ? 32 : 0),\r\n ...(depth > 0\r\n ? {\r\n fontSize: \"0.875rem\",\r\n }\r\n : {\r\n fontSize: \"1rem\",\r\n fontWeight: 700,\r\n }),\r\n },\r\n }}\r\n sx={{ flex: 1, ml: 1 }}\r\n />\r\n {item.items && item.items.length > 0 && (\r\n <IconButton\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n if (item.items) toggleExpand();\r\n }}\r\n disableRipple\r\n sx={{\r\n ml: 0.5,\r\n borderRadius: 1,\r\n width: 32,\r\n height: 32,\r\n \"&:hover\": {\r\n backgroundColor: `${theme.palette.primary.main}1F`,\r\n },\r\n }}\r\n >\r\n <ChevronRightRounded\r\n sx={{\r\n fontSize: 16,\r\n color: \"#4D3019\",\r\n transition: \"transform 0.1s\",\r\n transform: isExpanded() ? \"rotate(90deg)\" : \"rotate(0deg)\",\r\n }}\r\n />\r\n </IconButton>\r\n )}\r\n </>\r\n )}\r\n </MenuItemButton>\r\n {isExpanded() && isOpen && (\r\n <Collapse in={true} timeout=\"auto\">\r\n <Box display='flex' flexDirection='row'>\r\n {depth > 0 && (\r\n <Divider \r\n orientation=\"vertical\" \r\n flexItem \r\n sx={{ \r\n ml: 2,\r\n borderColor: `#00000033`,\r\n borderWidth: '1px',\r\n borderRightWidth: '1px',\r\n mt: 1,\r\n mb: 1\r\n }}\r\n />\r\n )}\r\n <List sx={{ p: 0, mt: 1, mb:1, flex: 1 }}>\r\n {item.items &&\r\n item.items.map((child) => (\r\n <SidebarItem\r\n key={child.id}\r\n currentPath={currentPath}\r\n expandedSet={expandedSet}\r\n setExpand={onExpand}\r\n isOpen={isOpen}\r\n isAdmin={isAdmin}\r\n item={child}\r\n onNavigate={onNavigate}\r\n depth={depth + 1}\r\n />\r\n ))}\r\n </List>\r\n </Box>\r\n </Collapse>\r\n )}\r\n </Box>\r\n );\r\n};\r\n\r\nexport const SidebarV2 = ({\r\n isOpen,\r\n onToggle,\r\n centreName = \"Centre name goes here \\n across two lines\",\r\n onNavigate,\r\n items,\r\n isAdmin,\r\n currentPath,\r\n onOrgChange,\r\n hasMultipleOrganisations\r\n}: {\r\n isOpen: boolean;\r\n onToggle: () => void;\r\n items: MenuItem[];\r\n centreName?: string;\r\n onNavigate: (path: string) => void;\r\n isAdmin: boolean;\r\n currentPath: string;\r\n onOrgChange: () => void;\r\n hasMultipleOrganisations: boolean;\r\n}) => {\r\n const findExpandItems = (items: MenuItem[]): (string | number)[] => {\r\n for (const item of items) {\r\n if (!item || item.items === undefined || item.items.length === 0) {\r\n continue;\r\n }\r\n const url = item.url?.replace(/-\\d+$/, '')\r\n const isActive =\r\n currentPath.includes(url as string) ||\r\n currentPath.includes(item.title.toLowerCase() as string);\r\n if (isActive) {\r\n return item.items\r\n ? [item.id, ...findExpandItems(item.items)]\r\n : [item.id];\r\n }\r\n }\r\n return [];\r\n };\r\n \r\n const theme = useTheme();\r\n const [expandedSet, setExpanded] = useState<Set<string | number>>(\r\n () => new Set(findExpandItems(items)),\r\n );\r\n\r\n return (\r\n <>\r\n {isOpen && (\r\n <Box\r\n sx={{\r\n position: \"fixed\",\r\n inset: 0,\r\n bgcolor: \"rgba(0, 0, 0, 0.5)\",\r\n zIndex: 40,\r\n display: { xs: \"block\", md: \"none\" },\r\n }}\r\n onClick={onToggle}\r\n />\r\n )}\r\n <SidebarContainer isOpen={isOpen}>\r\n <Box sx={{ display: \"flex\", flexDirection: \"column\", height: \"100%\" }}>\r\n {/* Sidebar Header */}\r\n {isOpen ? (\r\n <Box\r\n sx={{\r\n px: 2,\r\n py: 3,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n }}\r\n >\r\n <Box\r\n sx={{\r\n px: 2,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n }}\r\n >\r\n <Typography\r\n variant=\"h6\"\r\n sx={{\r\n width: \"180px\",\r\n fontSize: \"18px\",\r\n fontWeight: 700,\r\n color: \"#4D3019\",\r\n whiteSpace: \"pre-line\",\r\n flex: 1,\r\n pr: 2,\r\n }}\r\n >\r\n {centreName ?? \"Centre Name\"}\r\n </Typography>\r\n\r\n <ToggleButton\r\n onClick={() => onToggle()}\r\n sx={{ ml: \"auto\" }}\r\n aria-label=\"Collapse sidebar\"\r\n >\r\n <KeyboardDoubleArrowLeftRounded sx={{ fontSize: 20 }} />\r\n </ToggleButton>\r\n </Box>\r\n {hasMultipleOrganisations && (\r\n <Box\r\n onClick={onOrgChange}\r\n sx={{\r\n px: 2,\r\n py: 1,\r\n borderBottom: `1px solid ${theme.palette.dark.main}1A`,\r\n flexShrink: 0,\r\n position: \"relative\",\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n width: EXPANDED_WIDTH,\r\n cursor: \"pointer\",\r\n }}\r\n >\r\n <Box\r\n className=\"org-change-content\"\r\n sx={{\r\n display: \"flex\",\r\n flexDirection: \"row\",\r\n alignItems: \"center\",\r\n py: 1,\r\n }}\r\n >\r\n <ImportExportRounded \r\n sx={{ color: theme.palette.primary.main, mr: 1 }} \r\n />\r\n <Typography sx={{ color: theme.palette.primary.main }}>\r\n Change organisation\r\n </Typography>\r\n </Box>\r\n </Box>\r\n )}\r\n </Box>\r\n ) : (\r\n <Box\r\n sx={{\r\n px: 1,\r\n py: 3,\r\n borderBottom: `1px solid ${theme.palette.dark.main}1A`,\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n }}\r\n >\r\n <ToggleButton onClick={onToggle} aria-label=\"Expand sidebar\">\r\n <KeyboardDoubleArrowRightRounded sx={{ fontSize: 20 }} />\r\n </ToggleButton>\r\n </Box>\r\n )}\r\n\r\n {/* Sidebar Items */}\r\n <Box\r\n sx={{\r\n flex: 1,\r\n overflowY: \"auto\",\r\n px: isOpen ? 0 : 1,\r\n py: 3,\r\n }}\r\n >\r\n <List sx={{ p: 0 }}>\r\n {items.map((item) => (\r\n <SidebarItem\r\n currentPath={currentPath}\r\n key={item.id}\r\n expandedSet={expandedSet}\r\n setExpand={setExpanded}\r\n isOpen={isOpen}\r\n isAdmin={isAdmin}\r\n item={item}\r\n onNavigate={onNavigate}\r\n />\r\n ))}\r\n </List>\r\n </Box>\r\n </Box>\r\n </SidebarContainer>\r\n </>\r\n );\r\n};\r\n"],"names":["Visibility","styled","Box","IconButton","ListItemButton","useTheme","_jsxs","_jsx","ListItemText","ChevronRightRounded","Collapse","Divider","List","useState","Typography","KeyboardDoubleArrowLeftRounded","ImportExportRounded","KeyboardDoubleArrowRightRounded"],"mappings":";;;;;;;;AAoBA,MAAM,cAAc,GAAG,OAAO;AAC9B,MAAM,qBAAqB,GAAG,MAAM;AACpC,MAAM,uBAAuB,GAAG,MAAM;AAE1BA;AAAZ,CAAA,UAAY,UAAU,EAAA;AACpB,IAAA,UAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,UAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,UAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACzB,CAAC,EAJWA,kBAAU,KAAVA,kBAAU,GAAA,EAAA,CAAA,CAAA;AAetB,MAAM,gBAAgB,GAAGC,eAAM,CAACC,YAAG,EAAE;IACnC,iBAAiB,EAAE,CAAC,IAAI,KAAK,IAAI,K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AI,EACV,UAAU,EAAE,UAAU,EAAA,EANjB,IAAI,CAAC,EAAE,CAOZ,CACH,CAAC,EAAA,CACG,EAAA,CACH,CAAA,EAAA,CACF,EAAA,CACW,CAAA,EAAA,CAClB;AAEP;;;;"}
@@ -77,93 +77,83 @@ const ECETheme = material.createTheme({
77
77
  },
78
78
  },
79
79
  typography: {
80
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'].join(','),
80
+ fontFamily: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'].join(','),
81
81
  h1: {
82
- fontFamily: ['Tiempos Fine', 'Georgia', 'serif'].join(','),
83
82
  color: '#4D3019',
84
- fontWeight: 300, // Light weight
83
+ fontWeight: 700,
85
84
  fontSize: '2.5rem',
86
85
  lineHeight: 1.2,
87
86
  },
88
87
  h2: {
89
- fontFamily: ['Tiempos Fine', 'Georgia', 'serif'].join(','),
90
88
  color: '#4D3019',
91
- fontWeight: 300, // Light weight
89
+ fontWeight: 700,
92
90
  fontSize: '2rem',
93
91
  lineHeight: 1.3,
94
92
  },
95
93
  h3: {
96
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
97
94
  color: '#4D3019',
98
- fontWeight: 500, // Medium weight for sub-headings
95
+ fontWeight: 600,
99
96
  fontSize: '1.75rem',
100
97
  lineHeight: 1.3,
101
98
  },
102
99
  h4: {
103
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
104
100
  color: '#4D3019',
105
- fontWeight: 500, // Medium weight for sub-headings
101
+ fontWeight: 600,
106
102
  fontSize: '1.5rem',
107
103
  lineHeight: 1.4,
108
104
  },
109
105
  h5: {
110
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
111
106
  color: '#4D3019',
112
- fontWeight: 500, // Medium weight for sub-headings
107
+ fontWeight: 600,
113
108
  fontSize: '1.25rem',
114
109
  lineHeight: 1.4,
115
110
  },
116
111
  h6: {
117
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
118
112
  color: '#4D3019',
119
- fontWeight: 500, // Medium weight for sub-headings
113
+ fontWeight: 600,
120
114
  fontSize: '1rem',
121
115
  lineHeight: 1.4,
122
116
  },
123
117
  body1: {
124
118
  color: '#4D3019',
125
- fontWeight: 400, // Regular weight for body text
119
+ fontWeight: 400,
126
120
  fontSize: '1rem',
127
121
  lineHeight: 1.5,
128
122
  },
129
123
  body2: {
130
124
  color: '#826E5C',
131
- fontWeight: 400, // Regular weight for body text
125
+ fontWeight: 400,
132
126
  fontSize: '0.875rem',
133
127
  lineHeight: 1.5,
134
128
  },
135
129
  subtitle1: {
136
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
137
130
  color: '#4D3019',
138
- fontWeight: 500, // Medium weight
131
+ fontWeight: 500,
139
132
  fontSize: '1rem',
140
133
  lineHeight: 1.5,
141
134
  },
142
135
  subtitle2: {
143
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
144
136
  color: '#826E5C',
145
- fontWeight: 500, // Medium weight
137
+ fontWeight: 500,
146
138
  fontSize: '0.875rem',
147
139
  lineHeight: 1.5,
148
140
  },
149
141
  button: {
150
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
151
142
  color: '#4D3019',
152
- fontWeight: 500, // Medium weight
143
+ fontWeight: 500,
153
144
  fontSize: '0.875rem',
154
145
  lineHeight: 1.75,
155
146
  textTransform: 'none',
156
147
  },
157
148
  caption: {
158
149
  color: '#826E5C',
159
- fontWeight: 400, // Regular weight
150
+ fontWeight: 400,
160
151
  fontSize: '0.75rem',
161
152
  lineHeight: 1.66,
162
153
  },
163
154
  overline: {
164
- fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),
165
155
  color: '#826E5C',
166
- fontWeight: 500, // Medium weight
156
+ fontWeight: 500,
167
157
  fontSize: '0.75rem',
168
158
  lineHeight: 2.66,
169
159
  textTransform: 'uppercase',
@@ -222,53 +212,47 @@ const ECETheme = material.createTheme({
222
212
  },
223
213
  },
224
214
  MuiCssBaseline: {
225
- styleOverrides: `
226
- @font-face {
227
- font-family: 'Tiempos Fine';
228
- font-style: normal;
229
- font-display: swap;
230
- font-weight: 300;
231
- }
232
- @font-face {
233
- font-family: 'ABC Monument Grotesk';
234
- font-style: normal;
235
- font-display: swap;
236
- font-weight: 400;
237
- }
238
- @font-face {
239
- font-family: 'ABC Monument Grotesk';
240
- font-style: normal;
241
- font-display: swap;
242
- font-weight: 500;
243
- }
244
- body {
245
- -webkit-font-smoothing: antialiased;
246
- -moz-osx-font-smoothing: grayscale;
247
- background-color: #FDFCEE;
248
- color: #4D3019;
249
- }
250
- input[type="checkbox"], input[type="radio"] {
251
- accent-color: #FFEDD1;
252
- }
253
- h1, h2, h3, h4, h5, h6 {
254
- font-weight: inherit !important;
255
- }
256
- .MuiTypography-h1, .MuiTypography-h2 {
257
- font-weight: 300 !important;
258
- }
259
- .MuiTypography-h3, .MuiTypography-h4, .MuiTypography-h5, .MuiTypography-h6 {
260
- font-weight: 500 !important;
261
- }
262
- a, a.MuiLink-root {
263
- color: #AD46FF !important;
264
- }
265
- a:hover, a.MuiLink-root:hover {
266
- color: #AD46FF !important;
267
- }
268
- a:visited, a.MuiLink-root:visited {
269
- color: #652997 !important;
270
- }
271
- `,
215
+ styleOverrides: {
216
+ body: {
217
+ WebkitFontSmoothing: 'antialiased',
218
+ MozOsxFontSmoothing: 'grayscale',
219
+ backgroundColor: '#FDFCEE',
220
+ color: '#4D3019',
221
+ },
222
+ 'input[type="checkbox"], input[type="radio"]': {
223
+ accentColor: '#FFEDD1',
224
+ },
225
+ 'h1, h2, h3, h4, h5, h6': {
226
+ fontWeight: 'inherit !important',
227
+ },
228
+ '.MuiTypography-h1': {
229
+ fontWeight: '700 !important',
230
+ },
231
+ '.MuiTypography-h2': {
232
+ fontWeight: '700 !important',
233
+ },
234
+ '.MuiTypography-h3': {
235
+ fontWeight: '600 !important',
236
+ },
237
+ '.MuiTypography-h4': {
238
+ fontWeight: '600 !important',
239
+ },
240
+ '.MuiTypography-h5': {
241
+ fontWeight: '600 !important',
242
+ },
243
+ '.MuiTypography-h6': {
244
+ fontWeight: '600 !important',
245
+ },
246
+ 'a, a.MuiLink-root': {
247
+ color: '#AD46FF !important',
248
+ '&:hover': {
249
+ color: '#AD46FF !important',
250
+ },
251
+ '&:visited': {
252
+ color: '#652997 !important',
253
+ }
254
+ },
255
+ },
272
256
  },
273
257
  },
274
258
  appName: 'ECEDocs',
@@ -1 +1 @@
1
- {"version":3,"file":"ECETheme.js","sources":["../../../../src/themes/ECETheme.tsx"],"sourcesContent":["import { createTheme } from \"@mui/material\";\r\n\r\nconst ECETheme = createTheme({\r\n palette: {\r\n mode: 'light',\r\n primary: {\r\n main: '#AD46FF',\r\n light: '#AD46FF',\r\n dark: '#AD46FF',\r\n contrastText: '#FFFFFF',\r\n },\r\n secondary: {\r\n main: '#D79AFC',\r\n light: '#D79AFC',\r\n dark: '#D79AFC',\r\n contrastText: '#FFFFFF',\r\n },\r\n error: {\r\n main: '#F56B6B',\r\n light: '#F56B6B',\r\n dark: '#F56B6B',\r\n contrastText: '#FFFFFF',\r\n },\r\n warning: {\r\n main: '#F5D76E',\r\n light: '#F5D76E',\r\n dark: '#F5D76E',\r\n contrastText: '#FFFBFF',\r\n },\r\n info: {\r\n main: '#F5A623',\r\n light: '#F5A623',\r\n dark: '#F5A623',\r\n contrastText: '#FFFFFF',\r\n },\r\n success: {\r\n main: '#A3D977',\r\n light: '#A3D977',\r\n dark: '#A3D977',\r\n contrastText: '#FFFFFF',\r\n },\r\n background: {\r\n default: '#FDFCEE',\r\n paper: '#FEFDF7',\r\n },\r\n text: {\r\n primary: '#4D3019',\r\n secondary: '#826E5C',\r\n disabled: '#93908F',\r\n },\r\n divider: '#C6C7C0',\r\n accent: {\r\n main: '#FFEDD1',\r\n },\r\n dark: {\r\n main: '#4D3019',\r\n },\r\n light: {\r\n main: '#FEFDF7',\r\n },\r\n markedRead: {\r\n main: '#A3D977',\r\n },\r\n custom: {\r\n iconColor: '#AD46FF',\r\n primaryButtonTextColor: '#FFFFFF',\r\n readByBackgroundColor: '#AD46FF1a',\r\n stepIndicatorTextColor: '#FFFFFF',\r\n markAsReadBackgroundColor: '#AD46FF1a',\r\n markAsReadBorderColor: '#AD46FF',\r\n tabBackgroundColor: '#AD46FF1a',\r\n statusBarBackgroundColor: '#F5C98E',\r\n },\r\n },\r\n typography: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'].join(','),\r\n h1: {\r\n fontFamily: ['Tiempos Fine', 'Georgia', 'serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 300, // Light weight\r\n fontSize: '2.5rem',\r\n lineHeight: 1.2,\r\n },\r\n h2: {\r\n fontFamily: ['Tiempos Fine', 'Georgia', 'serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 300, // Light weight\r\n fontSize: '2rem',\r\n lineHeight: 1.3,\r\n },\r\n h3: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight for sub-headings\r\n fontSize: '1.75rem',\r\n lineHeight: 1.3,\r\n },\r\n h4: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight for sub-headings\r\n fontSize: '1.5rem',\r\n lineHeight: 1.4,\r\n },\r\n h5: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight for sub-headings\r\n fontSize: '1.25rem',\r\n lineHeight: 1.4,\r\n },\r\n h6: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight for sub-headings\r\n fontSize: '1rem',\r\n lineHeight: 1.4,\r\n },\r\n body1: {\r\n color: '#4D3019',\r\n fontWeight: 400, // Regular weight for body text\r\n fontSize: '1rem',\r\n lineHeight: 1.5,\r\n },\r\n body2: {\r\n color: '#826E5C',\r\n fontWeight: 400, // Regular weight for body text\r\n fontSize: '0.875rem',\r\n lineHeight: 1.5,\r\n },\r\n subtitle1: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight\r\n fontSize: '1rem',\r\n lineHeight: 1.5,\r\n },\r\n subtitle2: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#826E5C',\r\n fontWeight: 500, // Medium weight\r\n fontSize: '0.875rem',\r\n lineHeight: 1.5,\r\n },\r\n button: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#4D3019',\r\n fontWeight: 500, // Medium weight\r\n fontSize: '0.875rem',\r\n lineHeight: 1.75,\r\n textTransform: 'none',\r\n },\r\n caption: {\r\n color: '#826E5C',\r\n fontWeight: 400, // Regular weight\r\n fontSize: '0.75rem',\r\n lineHeight: 1.66,\r\n },\r\n overline: {\r\n fontFamily: ['ABC Monument Grotesk', '-apple-system', 'BlinkMacSystemFont', 'sans-serif'].join(','),\r\n color: '#826E5C',\r\n fontWeight: 500, // Medium weight\r\n fontSize: '0.75rem',\r\n lineHeight: 2.66,\r\n textTransform: 'uppercase',\r\n letterSpacing: '0.08em',\r\n },\r\n },\r\n shape: {\r\n borderRadius: 4,\r\n },\r\n breakpoints: {\r\n values: {\r\n xs: 320,\r\n sm: 640,\r\n md: 768,\r\n lg: 1024,\r\n xl: 1280,\r\n },\r\n },\r\n components: {\r\n MuiLink: {\r\n styleOverrides: {\r\n root: {\r\n color: '#AD46FF',\r\n textDecorationColor: '#AD46FF',\r\n '&:hover': {\r\n color: '#AD46FF',\r\n textDecorationColor: '#AD46FF',\r\n },\r\n '&:active': {\r\n color: '#FFEDD1',\r\n },\r\n '&:visited': {\r\n color: '#652997',\r\n }\r\n },\r\n underlineAlways: {\r\n color: '#AD46FF',\r\n textDecorationColor: '#AD46FF',\r\n }\r\n },\r\n },\r\n MuiTypography: {\r\n defaultProps: {\r\n variantMapping: {\r\n h1: 'h1',\r\n h2: 'h2',\r\n h3: 'h3',\r\n h4: 'h4',\r\n h5: 'h5',\r\n h6: 'h6',\r\n subtitle1: 'p',\r\n subtitle2: 'p',\r\n body1: 'p',\r\n body2: 'p',\r\n },\r\n },\r\n },\r\n MuiCssBaseline: {\r\n styleOverrides: `\r\n @font-face {\r\n font-family: 'Tiempos Fine';\r\n font-style: normal;\r\n font-display: swap;\r\n font-weight: 300;\r\n }\r\n @font-face {\r\n font-family: 'ABC Monument Grotesk';\r\n font-style: normal;\r\n font-display: swap;\r\n font-weight: 400;\r\n }\r\n @font-face {\r\n font-family: 'ABC Monument Grotesk';\r\n font-style: normal;\r\n font-display: swap;\r\n font-weight: 500;\r\n }\r\n body {\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n background-color: #FDFCEE;\r\n color: #4D3019;\r\n }\r\n input[type=\"checkbox\"], input[type=\"radio\"] {\r\n accent-color: #FFEDD1;\r\n }\r\n h1, h2, h3, h4, h5, h6 {\r\n font-weight: inherit !important;\r\n }\r\n .MuiTypography-h1, .MuiTypography-h2 {\r\n font-weight: 300 !important;\r\n }\r\n .MuiTypography-h3, .MuiTypography-h4, .MuiTypography-h5, .MuiTypography-h6 {\r\n font-weight: 500 !important;\r\n }\r\n a, a.MuiLink-root {\r\n color: #AD46FF !important;\r\n }\r\n a:hover, a.MuiLink-root:hover {\r\n color: #AD46FF !important;\r\n }\r\n a:visited, a.MuiLink-root:visited {\r\n color: #652997 !important;\r\n }\r\n `,\r\n },\r\n },\r\n appName: 'ECEDocs',\r\n contact: {\r\n email: 'team@ecedocs.co.nz'\r\n }\r\n});\r\n\r\nexport default ECETheme;\r\n"],"names":["createTheme"],"mappings":";;;;;;AAEA,MAAM,QAAQ,GAAGA,oBAAW,CAAC;AAC3B,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,OAA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eAAe,EAAE;AACf,oBAAA,KAAK,EAAE,SAAS;AAChB,oBAAA,mBAAmB,EAAE,SAAS;AAC/B;AACF,aAAA;AACF,SAAA;AACD,QAAA,aAAa,EAAE;AACb,YAAA,YAAY,EAAE;AACZ,gBAAA,cAAc,EAAE;AACd,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,EAAE,EAAE,IAAI;AACR,oBAAA,SAAS,EAAE,GAAG;AACd,oBAAA,SAAS,EAAE,GAAG;AACd,oBAAA,KAAK,EAAE,GAAG;AACV,oBAAA,KAAK,EAAE,GAAG;AACX,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,cAAc,EAAE;AACd,YAAA,cAAc,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8Cf,MAAA,CAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE;AACP,QAAA,KAAK,EAAE;AACR;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"ECETheme.js","sources":["../../../../src/themes/ECETheme.tsx"],"sourcesContent":["import { createTheme } from \"@mui/material\";\n\nconst ECETheme = createTheme({\n palette: {\n mode: 'light',\n primary: {\n main: '#AD46FF',\n light: '#AD46FF',\n dark: '#AD46FF',\n contrastText: '#FFFFFF',\n },\n secondary: {\n main: '#D79AFC',\n light: '#D79AFC',\n dark: '#D79AFC',\n contrastText: '#FFFFFF',\n },\n error: {\n main: '#F56B6B',\n light: '#F56B6B',\n dark: '#F56B6B',\n contrastText: '#FFFFFF',\n },\n warning: {\n main: '#F5D76E',\n light: '#F5D76E',\n dark: '#F5D76E',\n contrastText: '#FFFBFF',\n },\n info: {\n main: '#F5A623',\n light: '#F5A623',\n dark: '#F5A623',\n contrastText: '#FFFFFF',\n },\n success: {\n main: '#A3D977',\n light: '#A3D977',\n dark: '#A3D977',\n contrastText: '#FFFFFF',\n },\n background: {\n default: '#FDFCEE',\n paper: '#FEFDF7',\n },\n text: {\n primary: '#4D3019',\n secondary: '#826E5C',\n disabled: '#93908F',\n },\n divider: '#C6C7C0',\n accent: {\n main: '#FFEDD1',\n },\n dark: {\n main: '#4D3019',\n },\n light: {\n main: '#FEFDF7',\n },\n markedRead: {\n main: '#A3D977',\n },\n custom: {\n iconColor: '#AD46FF',\n primaryButtonTextColor: '#FFFFFF',\n readByBackgroundColor: '#AD46FF1a',\n stepIndicatorTextColor: '#FFFFFF',\n markAsReadBackgroundColor: '#AD46FF1a',\n markAsReadBorderColor: '#AD46FF',\n tabBackgroundColor: '#AD46FF1a',\n statusBarBackgroundColor: '#F5C98E',\n },\n },\n typography: {\n fontFamily: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'].join(','),\n h1: {\n color: '#4D3019',\n fontWeight: 700,\n fontSize: '2.5rem',\n lineHeight: 1.2,\n },\n h2: {\n color: '#4D3019',\n fontWeight: 700,\n fontSize: '2rem',\n lineHeight: 1.3,\n },\n h3: {\n color: '#4D3019',\n fontWeight: 600,\n fontSize: '1.75rem',\n lineHeight: 1.3,\n },\n h4: {\n color: '#4D3019',\n fontWeight: 600,\n fontSize: '1.5rem',\n lineHeight: 1.4,\n },\n h5: {\n color: '#4D3019',\n fontWeight: 600,\n fontSize: '1.25rem',\n lineHeight: 1.4,\n },\n h6: {\n color: '#4D3019',\n fontWeight: 600,\n fontSize: '1rem',\n lineHeight: 1.4,\n },\n body1: {\n color: '#4D3019',\n fontWeight: 400,\n fontSize: '1rem',\n lineHeight: 1.5,\n },\n body2: {\n color: '#826E5C',\n fontWeight: 400,\n fontSize: '0.875rem',\n lineHeight: 1.5,\n },\n subtitle1: {\n color: '#4D3019',\n fontWeight: 500,\n fontSize: '1rem',\n lineHeight: 1.5,\n },\n subtitle2: {\n color: '#826E5C',\n fontWeight: 500,\n fontSize: '0.875rem',\n lineHeight: 1.5,\n },\n button: {\n color: '#4D3019',\n fontWeight: 500,\n fontSize: '0.875rem',\n lineHeight: 1.75,\n textTransform: 'none',\n },\n caption: {\n color: '#826E5C',\n fontWeight: 400,\n fontSize: '0.75rem',\n lineHeight: 1.66,\n },\n overline: {\n color: '#826E5C',\n fontWeight: 500,\n fontSize: '0.75rem',\n lineHeight: 2.66,\n textTransform: 'uppercase',\n letterSpacing: '0.08em',\n },\n },\n shape: {\n borderRadius: 4,\n },\n breakpoints: {\n values: {\n xs: 320,\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n },\n },\n components: {\n MuiLink: {\n styleOverrides: {\n root: {\n color: '#AD46FF',\n textDecorationColor: '#AD46FF',\n '&:hover': {\n color: '#AD46FF',\n textDecorationColor: '#AD46FF',\n },\n '&:active': {\n color: '#FFEDD1',\n },\n '&:visited': {\n color: '#652997',\n }\n },\n underlineAlways: {\n color: '#AD46FF',\n textDecorationColor: '#AD46FF',\n }\n },\n },\n MuiTypography: {\n defaultProps: {\n variantMapping: {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'p',\n subtitle2: 'p',\n body1: 'p',\n body2: 'p',\n },\n },\n },\n MuiCssBaseline: {\n styleOverrides: {\n body: {\n WebkitFontSmoothing: 'antialiased',\n MozOsxFontSmoothing: 'grayscale',\n backgroundColor: '#FDFCEE',\n color: '#4D3019',\n },\n 'input[type=\"checkbox\"], input[type=\"radio\"]': {\n accentColor: '#FFEDD1',\n },\n 'h1, h2, h3, h4, h5, h6': {\n fontWeight: 'inherit !important',\n },\n '.MuiTypography-h1': {\n fontWeight: '700 !important',\n },\n '.MuiTypography-h2': {\n fontWeight: '700 !important',\n },\n '.MuiTypography-h3': {\n fontWeight: '600 !important',\n },\n '.MuiTypography-h4': {\n fontWeight: '600 !important',\n },\n '.MuiTypography-h5': {\n fontWeight: '600 !important',\n },\n '.MuiTypography-h6': {\n fontWeight: '600 !important',\n },\n 'a, a.MuiLink-root': {\n color: '#AD46FF !important',\n '&:hover': {\n color: '#AD46FF !important',\n },\n '&:visited': {\n color: '#652997 !important',\n }\n },\n },\n },\n },\n appName: 'ECEDocs',\n contact: {\n email: 'team@ecedocs.co.nz'\n }\n});\n\nexport default ECETheme"],"names":["createTheme"],"mappings":";;;;;;AAEA,MAAM,QAAQ,GAAGA,oBAAW,CAAC;AAC3B,IAAA,OAAO,EAAE;AACP,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,YAAY,EAAE,SAAS;AACxB,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,SAAS;AACf,YAAA,KAAK,EAAE,SAAS;AAChB,YAAA,IAAI,EAAE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