ece-docs-components 1.0.3 → 1.0.5

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
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG1D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG1D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,cAAc,cAAc,CAAC"}
package/dist/index.esm.js CHANGED
@@ -1,4 +1,12 @@
1
- import {createTheme,ThemeProvider as ThemeProvider$1,styled}from'@mui/material/styles';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {deepmerge}from'@mui/utils';import*as React from'react';import React__default,{useState}from'react';import {Button as Button$1,styled as styled$1,InputLabel,TextField,Box,Select as Select$1,FormControl,MenuItem,FormHelperText,FormControlLabel,Typography,FormLabel,Checkbox as Checkbox$1,LinearProgress,Alert as Alert$1,IconButton,Dialog,DialogContent,Chip,Collapse,ListItemButton,List,ListItemText,Link,DialogTitle,Menu,Breadcrumbs}from'@mui/material';import {ExpandMoreRounded,InfoOutlineRounded,HighlightOffRounded,ErrorOutlineRounded,TaskAltRounded,EditRounded,CloseRounded,StickyNote2Rounded,ChevronLeftRounded,ChevronRightRounded,LinkRounded,ExpandLessRounded,PieChartRounded,HomeRounded,TextSnippetRounded,HelpOutlineRounded,SchoolRounded,SearchRounded,AddRounded}from'@mui/icons-material';const baseTheme = createTheme({
1
+ import { createTheme, ThemeProvider as ThemeProvider$1, styled } from '@mui/material/styles';
2
+ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
3
+ import { deepmerge } from '@mui/utils';
4
+ import * as React from 'react';
5
+ import React__default, { useState } from 'react';
6
+ import { Button as Button$1, styled as styled$1, InputLabel, TextField, Box, Select as Select$1, FormControl, MenuItem, FormHelperText, FormControlLabel, Typography, FormLabel, Checkbox as Checkbox$1, LinearProgress, Alert as Alert$1, IconButton, Dialog, DialogContent, Chip, Collapse, ListItemButton, List, ListItemText, Link, DialogTitle, Menu, Breadcrumbs } from '@mui/material';
7
+ import { ExpandMoreRounded, InfoOutlineRounded, HighlightOffRounded, ErrorOutlineRounded, TaskAltRounded, EditRounded, CloseRounded, StickyNote2Rounded, ChevronLeftRounded, ChevronRightRounded, LinkRounded, ExpandLessRounded, PieChartRounded, HomeRounded, TextSnippetRounded, HelpOutlineRounded, SchoolRounded, SearchRounded, AddRounded } from '@mui/icons-material';
8
+
9
+ const baseTheme = createTheme({
2
10
  typography: {
3
11
  fontFamily: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'sans-serif'].join(','),
4
12
  },
@@ -99,7 +107,9 @@ const useTheme = () => {
99
107
  throw new Error('useTheme must be used within a ThemeProvider');
100
108
  }
101
109
  return context;
102
- };const StyledButton = styled(Button$1, {
110
+ };
111
+
112
+ const StyledButton = styled(Button$1, {
103
113
  shouldForwardProp: (prop) => prop !== 'customVariant' && prop !== 'customSize',
104
114
  })(({ theme, customVariant, customSize }) => {
105
115
  const currentTheme = theme.palette;
@@ -198,7 +208,9 @@ const useTheme = () => {
198
208
  });
199
209
  const Button = ({ variant = 'primary', size = 'md', children, fullWidth = false, ...props }) => {
200
210
  return (jsx(StyledButton, { customVariant: variant, customSize: size, fullWidth: fullWidth, disableRipple: true, ...props, children: children }));
201
- };const InputWrapper = styled$1('div')(({ theme }) => ({
211
+ };
212
+
213
+ const InputWrapper = styled$1('div')(({ theme }) => ({
202
214
  width: '100%',
203
215
  }));
204
216
  const StyledLabel$1 = styled$1(InputLabel)(({ theme }) => ({
@@ -265,7 +277,9 @@ const StyledTextField$1 = styled$1(TextField, {
265
277
  const Input = ({ error, fullWidth = false, id, label, ...props }) => {
266
278
  const inputId = id || `input-${Math.random().toString(36).substr(2, 9)}`;
267
279
  return (jsxs(InputWrapper, { sx: { ...(!fullWidth && { width: 'auto' }) }, children: [label && (jsx(StyledLabel$1, { htmlFor: inputId, children: label })), jsx(StyledTextField$1, { id: inputId, error: !!error, helperText: error || props.helperText, errorMessage: error, fullWidth: fullWidth, variant: "outlined", ...props })] }));
268
- };const StyledCard = styled$1(Box, {
280
+ };
281
+
282
+ const StyledCard = styled$1(Box, {
269
283
  shouldForwardProp: (prop) => prop !== 'customPadding' && prop !== 'customVariant',
270
284
  })(({ theme, customPadding, customVariant }) => {
271
285
  const paddingStyles = {
@@ -300,7 +314,9 @@ const Input = ({ error, fullWidth = false, id, label, ...props }) => {
300
314
  const Card = ({ children, className = '', padding = 'md', variant = 'default', sx, // Destructure sx prop
301
315
  }) => {
302
316
  return (jsx(StyledCard, { className: className, customPadding: padding, customVariant: variant, sx: sx, children: children }));
303
- };const StyledSelect = styled$1(Select$1)(({ theme, error }) => ({
317
+ };
318
+
319
+ const StyledSelect = styled$1(Select$1)(({ theme, error }) => ({
304
320
  backgroundColor: theme.palette.light.main,
305
321
  borderRadius: (typeof theme.shape.borderRadius === 'string'
306
322
  ? parseInt(theme.shape.borderRadius, 10)
@@ -384,7 +400,9 @@ const Select = ({ label, error, helperText, fullWidth = false, options, classNam
384
400
  fontSize: '0.875rem',
385
401
  color: `${theme.palette.dark.main}99`,
386
402
  }, children: helperText }))] }));
387
- };const CustomRadioIcon = styled$1('span')(({ theme, checked }) => ({
403
+ };
404
+
405
+ const CustomRadioIcon = styled$1('span')(({ theme, checked }) => ({
388
406
  width: 20,
389
407
  height: 20,
390
408
  borderRadius: '50%',
@@ -433,7 +451,9 @@ const RadioGroup = ({ label, error, children, className = '' }) => {
433
451
  fontSize: '0.875rem',
434
452
  color: theme.palette.accent.main,
435
453
  }, children: error }))] }));
436
- };const StyledWrapper$1 = styled$1(Box)(({ theme }) => ({
454
+ };
455
+
456
+ const StyledWrapper$1 = styled$1(Box)(({ theme }) => ({
437
457
  display: 'flex',
438
458
  alignItems: 'flex-start',
439
459
  }));
@@ -465,7 +485,9 @@ const StyledDescription = styled$1(Typography)(({ theme }) => ({
465
485
  const Checkbox = ({ label, description, className = '', id, ...props }) => {
466
486
  const checkboxId = id || `checkbox-${Math.random().toString(36).substr(2, 9)}`;
467
487
  return (jsx(StyledWrapper$1, { className: className, children: jsx(FormControlLabel, { control: jsx(StyledCheckbox, { id: checkboxId, ...props }), label: jsxs(Box, { sx: { ml: 1.5, display: 'flex', flexDirection: 'column' }, children: [jsx(StyledLabel, { children: label }), description && jsx(StyledDescription, { children: description })] }) }) }));
468
- };const StyledLinearProgress = styled$1(LinearProgress)(({ theme }) => ({
488
+ };
489
+
490
+ const StyledLinearProgress = styled$1(LinearProgress)(({ theme }) => ({
469
491
  height: 10,
470
492
  borderRadius: 9999,
471
493
  backgroundColor: `${theme.palette.dark.main}1A`,
@@ -535,7 +557,9 @@ const StepIndicator = ({ steps, currentStep, className = '' }) => {
535
557
  color: isActive ? theme.palette.primary.main : `${theme.palette.dark.main}99`,
536
558
  }, children: step })] }), index < steps.length - 1 && (jsx(StepLine, { isCompleted: isCompleted }))] }, index));
537
559
  }) }));
538
- };const StyledAlert = styled$1(Alert$1)(({ theme, customvariant }) => {
560
+ };
561
+
562
+ const StyledAlert = styled$1(Alert$1)(({ theme, customvariant }) => {
539
563
  const variants = {
540
564
  info: {
541
565
  backgroundColor: '#eff6ff',
@@ -603,7 +627,9 @@ const Alert = ({ variant = 'info', children, className = '', icon = true, sx, })
603
627
  custom: 'info',
604
628
  };
605
629
  return (jsx(StyledAlert, { customvariant: variant, severity: severityMap[variant], icon: icon ? iconMap[variant] : false, className: className, sx: sx, children: children }));
606
- };const NoteContainer = styled$1(Box)({
630
+ };
631
+
632
+ const NoteContainer = styled$1(Box)({
607
633
  position: 'relative',
608
634
  maxWidth: '100%',
609
635
  });
@@ -702,7 +728,9 @@ const NoteBox = ({ variant = 'default', label, children, className = '', onEditC
702
728
  onEditClick();
703
729
  }
704
730
  }, title: "Edit variable highlight", size: "small", children: jsx(EditRounded, { sx: { fontSize: 14, color: "#FFFFFF", strokeWidth: 2 } }) })] })] }));
705
- };const StyledDialog$1 = styled$1(Dialog)(({ theme }) => ({
731
+ };
732
+
733
+ const StyledDialog$1 = styled$1(Dialog)(({ theme }) => ({
706
734
  '& .MuiDialog-paper': {
707
735
  borderRadius: theme.shape.borderRadius,
708
736
  maxWidth: '896px',
@@ -803,7 +831,9 @@ const Modal = ({ isOpen, onClose, status, description, defaultText, note, accept
803
831
  gap: 2,
804
832
  justifyContent: { xs: 'space-between', sm: 'flex-end' },
805
833
  }, children: [jsxs(Box, { sx: { display: 'flex', gap: 1.5 }, children: [jsx(NavButton, { onClick: onPrevious, "aria-label": "Previous", children: jsx(ChevronLeftRounded, { sx: { fontSize: 20 } }) }), jsx(NavButton, { onClick: onNext, "aria-label": "Next", children: jsx(ChevronRightRounded, { sx: { fontSize: 20 } }) })] }), jsxs(Typography, { fontWeight: 500, fontSize: "1.125rem", sx: { ml: 1 }, children: [currentPage, "/", totalPages] })] })] })] })] }));
806
- };const StyledConcertina = styled$1(Box)(({ theme }) => ({
834
+ };
835
+
836
+ const StyledConcertina = styled$1(Box)(({ theme }) => ({
807
837
  width: '100%',
808
838
  display: 'flex',
809
839
  flexDirection: 'column',
@@ -944,7 +974,9 @@ function Concertina({ sections }) {
944
974
  setTimeout(() => setCopiedId(null), 2000);
945
975
  };
946
976
  return (jsx(StyledConcertina, { children: sections.map((section) => (jsxs(StyledSection, { id: section.id, children: [jsxs(StyledHeader$1, { onClick: () => toggleSection(section.id), onMouseEnter: () => setHoveredTitle(section.id), onMouseLeave: () => setHoveredTitle(null), children: [jsxs(StyledTitleWrapper, { children: [jsx(StyledTitle, { isHovered: hoveredTitle === section.id, variant: "h3", children: section.title }), hoveredTitle === section.id && (jsxs(Box, { sx: { position: 'relative', flexShrink: 0 }, children: [jsx(StyledLinkButton, { onClick: (e) => copyJumpLink(section.id, e), "aria-label": "Copy link", children: jsx(LinkRounded, { sx: { fontSize: 20 } }) }), copiedId === section.id && (jsx(StyledTooltip, { children: "Link copied" }))] }))] }), jsx(StyledChevron, { sx: { fontSize: 20, transform: openSections.has(section.id) ? 'rotate(180deg)' : 'none' } })] }), jsx(Collapse, { in: openSections.has(section.id), children: jsx(StyledContent, { children: jsx(StyledContentText, { children: section.content }) }) })] }, section.id))) }));
947
- }const ReadByContainer = styled$1(Box)(({ theme }) => ({
977
+ }
978
+
979
+ const ReadByContainer = styled$1(Box)(({ theme }) => ({
948
980
  display: 'flex',
949
981
  flexDirection: 'row',
950
982
  alignItems: 'flex-start',
@@ -989,7 +1021,9 @@ const ReadBy = ({ names }) => {
989
1021
  color: theme.palette.dark.main,
990
1022
  ml: 1,
991
1023
  }, children: displayText })] }), names.length > 5 && (jsx(ExpandButton, { onClick: () => setIsExpanded(!isExpanded), "aria-label": isExpanded ? 'Collapse' : 'Expand', size: "small", children: isExpanded ? (jsx(ExpandLessRounded, { sx: { fontSize: 16 } })) : (jsx(ExpandMoreRounded, { sx: { fontSize: 16 } })) }))] }));
992
- };const StatusBarContainer = styled$1(Box)(({ theme }) => ({
1024
+ };
1025
+
1026
+ const StatusBarContainer = styled$1(Box)(({ theme }) => ({
993
1027
  width: '100%',
994
1028
  backgroundColor: '#F5C98E',
995
1029
  padding: theme.spacing(1.5, 3),
@@ -1041,7 +1075,9 @@ const StatusBar = ({ itemCount, variant = 'actionstarted', onTailorClick, onNext
1041
1075
  wordBreak: 'break-word',
1042
1076
  textAlign: { xs: 'center', sm: 'left' },
1043
1077
  }, children: variant === 'actionstarted' ? (jsxs(Fragment, { children: [jsx(Box, { component: "span", sx: { fontWeight: 700 }, children: "Incomplete." }), " ", message] })) : (jsxs(Fragment, { children: [jsx(Box, { component: "span", sx: { fontWeight: 700 }, children: "Not started." }), " ", message] })) })] }), variant === 'actionstarted' ? (jsx(Box, { sx: { display: 'flex', gap: 1.5, flexShrink: 0 }, children: jsx(NextButton, { onClick: onNextClick, "aria-label": "Next", children: jsx(ChevronRightRounded, { sx: { fontSize: 20 } }) }) })) : (jsx(Box, { sx: { flexShrink: 0 }, children: jsx(Button, { variant: "outline", size: "sm", onClick: onTailorClick, children: "Tailor policies" }) }))] }));
1044
- };const TabsContainer = styled$1(Box)({
1078
+ };
1079
+
1080
+ const TabsContainer = styled$1(Box)({
1045
1081
  display: 'none',
1046
1082
  '@media (min-width: 900px)': {
1047
1083
  display: 'block',
@@ -1126,7 +1162,9 @@ const Tabs = ({ tabs, defaultTab }) => {
1126
1162
  transform: mobileExpandedTab === tab.id ? 'rotate(180deg)' : 'rotate(0deg)',
1127
1163
  transition: 'transform 0.2s',
1128
1164
  } })] }), jsx(Collapse, { in: mobileExpandedTab === tab.id, children: jsx(MobileTabContent, { children: tab.content }) })] }, tab.id))) })] }));
1129
- };const SidebarContainer = styled$1(Box)(({ theme, isOpen }) => ({
1165
+ };
1166
+
1167
+ const SidebarContainer = styled$1(Box)(({ theme, isOpen }) => ({
1130
1168
  height: '100vh',
1131
1169
  position: 'sticky',
1132
1170
  top: 0,
@@ -1319,7 +1357,9 @@ const Sidebar = ({ isOpen, onToggle, centreName = "Centre name goes here \n acro
1319
1357
  fontSize: '0.875rem',
1320
1358
  } }) }, index));
1321
1359
  }) }) }))] }, subItem.id))) }) }))] }, item.id))) }) })] }) })] }));
1322
- };const StyledHeader = styled$1(Box)(({ theme }) => ({
1360
+ };
1361
+
1362
+ const StyledHeader = styled$1(Box)(({ theme }) => ({
1323
1363
  padding: theme.spacing(1.5, 4), // px-4 py-3
1324
1364
  display: 'flex',
1325
1365
  alignItems: 'center',
@@ -1484,7 +1524,9 @@ const Header = ({ userName = 'John Doe', userInitials = 'JD', }) => {
1484
1524
  return (jsxs(StyledHeader, { children: [jsxs(StyledLogoWrapper, { children: [jsx(StyledLogoIcon, { children: jsx(SchoolRounded, { sx: { fontSize: 32, color: 'currentColor' } }) }), jsx(StyledLogoText, { variant: "h1", children: theme.appName })] }), jsx(StyledSearchContainer, { children: jsx(StyledTextField, { placeholder: "Search for a policy", variant: "outlined", fullWidth: true, InputProps: {
1485
1525
  endAdornment: (jsx(StyledSearchButton, { children: jsx(StyledSearchIcon, { children: jsx(SearchRounded, { sx: { fontSize: 20 } }) }) })),
1486
1526
  } }) }), jsxs(StyledUserContainer, { children: [jsx(StyledAvatar, { children: jsx(StyledAvatarText, { children: userInitials }) }), jsx(StyledUserName, { children: userName })] })] }));
1487
- };const Container = styled$1(Box)(({ theme }) => ({
1527
+ };
1528
+
1529
+ const Container = styled$1(Box)(({ theme }) => ({
1488
1530
  width: '100%',
1489
1531
  [theme.breakpoints.up('md')]: {
1490
1532
  position: 'sticky',
@@ -1536,7 +1578,9 @@ const TableOfContents = ({ sections, activeSection = 'current-section', }) => {
1536
1578
  const isActive = section.id === activeSection;
1537
1579
  return (jsx(NavLink, { href: `#${section.id}`, isActive: isActive, children: section.title }, section.id));
1538
1580
  }) })] }) }));
1539
- };const ToggleButton = styled$1(Box)(({ theme }) => ({
1581
+ };
1582
+
1583
+ const ToggleButton = styled$1(Box)(({ theme }) => ({
1540
1584
  display: 'inline-flex',
1541
1585
  alignItems: 'center',
1542
1586
  gap: theme.spacing(1.5),
@@ -1585,7 +1629,9 @@ const Toggle = ({ label = 'Admin view', checked = false, onChange, }) => {
1585
1629
  fontWeight: 500,
1586
1630
  fontSize: '0.875rem',
1587
1631
  }, children: label })] }));
1588
- };const StyledDialog = styled$1(Dialog)(({ theme }) => ({
1632
+ };
1633
+
1634
+ const StyledDialog = styled$1(Dialog)(({ theme }) => ({
1589
1635
  '& .MuiDialog-paper': {
1590
1636
  borderRadius: (typeof theme.shape.borderRadius === 'string'
1591
1637
  ? parseInt(theme.shape.borderRadius, 10)
@@ -1613,7 +1659,9 @@ const CloseButton = styled$1(IconButton)(({ theme }) => ({
1613
1659
  const SimpleModal = ({ isOpen, onClose, title, children, }) => {
1614
1660
  const { theme } = useTheme();
1615
1661
  return (jsxs(StyledDialog, { open: isOpen, onClose: onClose, maxWidth: "sm", fullWidth: true, children: [jsxs(StyledDialogTitle, { children: [title, jsx(CloseButton, { onClick: onClose, "aria-label": "Close", children: jsx(CloseRounded, { sx: { fontSize: 20, color: theme.palette.dark.main } }) })] }), jsx(DialogContent, { sx: { p: 3 }, children: children })] }));
1616
- };const StyledIconButton = styled$1(IconButton)(({ theme }) => ({
1662
+ };
1663
+
1664
+ const StyledIconButton = styled$1(IconButton)(({ theme }) => ({
1617
1665
  width: 48,
1618
1666
  height: 48,
1619
1667
  borderRadius: (typeof theme.shape.borderRadius === 'string'
@@ -1634,7 +1682,9 @@ const SimpleModal = ({ isOpen, onClose, title, children, }) => {
1634
1682
  }));
1635
1683
  const ActionButton = ({ icon: Icon, onClick, label, sx, }) => {
1636
1684
  return (jsx(StyledIconButton, { onClick: onClick, "aria-label": label, sx: sx, children: jsx(Icon, {}) }));
1637
- };const StyledWrapper = styled$1(Box)(({ theme }) => ({
1685
+ };
1686
+
1687
+ const StyledWrapper = styled$1(Box)(({ theme }) => ({
1638
1688
  // No specific wrapper styles needed, just a container
1639
1689
  }));
1640
1690
  const StyledParagraph = styled$1(Typography)(({ theme }) => ({
@@ -1698,7 +1748,9 @@ function DefinitionBox({ term, definition, children }) {
1698
1748
  color: theme.palette.secondary.main
1699
1749
  }
1700
1750
  } })) })] })] }), isOpen && (jsx(StyledDefinitionBox, { children: jsx(StyledDefinitionText, { children: definition }) }))] }));
1701
- }const HomeButton = styled$1(IconButton)(({ theme }) => ({
1751
+ }
1752
+
1753
+ const HomeButton = styled$1(IconButton)(({ theme }) => ({
1702
1754
  width: 40,
1703
1755
  height: 40,
1704
1756
  borderRadius: (typeof theme.shape.borderRadius === 'string'
@@ -1805,4 +1857,7 @@ const Breadcrumb = ({ items, currentItem, dropdownItems = [], onItemSelect, }) =
1805
1857
  vertical: 'top',
1806
1858
  horizontal: 'left',
1807
1859
  }, children: dropdownItems.map((item, index) => (jsx(StyledMenuItem, { onClick: () => handleItemClick(item), isActive: item === currentItem, children: item }, index))) }))] })] }));
1808
- };export{ActionButton,Alert,Breadcrumb,Button,Card,Checkbox,Concertina,DefinitionBox,Header,Input,Modal,NoteBox,Progress,Radio,RadioGroup,ReadBy,Select,Sidebar,SimpleModal,StatusBar,StepIndicator,TableOfContents,Tabs,ThemeProvider,Toggle,useTheme};//# sourceMappingURL=index.esm.js.map
1860
+ };
1861
+
1862
+ export { ActionButton, Alert, Breadcrumb, Button, Card, Checkbox, Concertina, DefinitionBox, Header, Input, Modal, NoteBox, Progress, Radio, RadioGroup, ReadBy, Select, Sidebar, SimpleModal, StatusBar, StepIndicator, TableOfContents, Tabs, ThemeProvider, Toggle, useTheme };
1863
+ //# sourceMappingURL=index.esm.js.map