ece-docs-components 1.0.0 → 1.0.1

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.
package/dist/index.js CHANGED
@@ -763,13 +763,9 @@ const NavButton = material.styled(material.IconButton)(({ theme }) => ({
763
763
  color: theme.palette.light.main,
764
764
  },
765
765
  }));
766
- const Modal = ({ isOpen, onClose, status, description, defaultText, note, acceptSuggestion: initialAcceptSuggestion = true, onAcceptSuggestionChange, onSave, onSubmit, onPrevious, onNext, currentPage = 1, totalPages = 1, }) => {
766
+ const Modal = ({ isOpen, onClose, status, description, defaultText, note, acceptSuggestion: initialAcceptSuggestion = true, onAcceptSuggestionChange, onSave, onSubmit, onDeclineWording, onPrevious, onNext, currentPage = 1, totalPages = 1, }) => {
767
767
  const [textValue, setTextValue] = React.useState(defaultText);
768
768
  const [acceptSuggestion, setAcceptSuggestion] = React.useState(initialAcceptSuggestion);
769
- const handleAcceptSuggestionChange = (checked) => {
770
- setAcceptSuggestion(checked);
771
- onAcceptSuggestionChange?.(checked);
772
- };
773
769
  const statusConfig = {
774
770
  mandatory: {
775
771
  color: '#F5A623',
@@ -835,7 +831,7 @@ const Modal = ({ isOpen, onClose, status, description, defaultText, note, accept
835
831
  '& .MuiOutlinedInput-root': {
836
832
  backgroundColor: acceptSuggestion ? 'rgba(0, 0, 0, 0.05)' : '#fff',
837
833
  },
838
- } }), jsxRuntime.jsx(material.FormControlLabel, { control: jsxRuntime.jsx(material.Checkbox, { checked: acceptSuggestion, onChange: (e) => handleAcceptSuggestionChange(e.target.checked) }), label: "Accept suggestion", sx: { mb: 4 } }), jsxRuntime.jsxs(material.Box, { sx: {
834
+ } }), jsxRuntime.jsxs(material.Box, { sx: {
839
835
  display: 'flex',
840
836
  flexDirection: { xs: 'column', sm: 'row' },
841
837
  alignItems: { xs: 'stretch', sm: 'center' },
@@ -844,7 +840,7 @@ const Modal = ({ isOpen, onClose, status, description, defaultText, note, accept
844
840
  pt: 3,
845
841
  borderTop: '1px solid',
846
842
  borderColor: 'divider',
847
- }, children: [jsxRuntime.jsxs(material.Box, { sx: { display: 'flex', gap: 1.5 }, children: [jsxRuntime.jsx(Button, { onClick: onSave, variant: "secondary", size: "md", children: "Save" }), jsxRuntime.jsx(Button, { onClick: onSubmit, variant: "primary", size: "md", children: "Submit for review" })] }), jsxRuntime.jsxs(material.Box, { sx: {
843
+ }, children: [jsxRuntime.jsxs(material.Box, { sx: { display: 'flex', gap: 1.5 }, children: [jsxRuntime.jsx(Button, { onClick: onSave, variant: "secondary", size: "md", children: "Save" }), jsxRuntime.jsx(Button, { onClick: onSubmit, variant: "primary", size: "md", children: "Submit for review" }), jsxRuntime.jsx(Button, { onClick: onDeclineWording, variant: "danger", size: "md", children: "Decline Wording" })] }), jsxRuntime.jsxs(material.Box, { sx: {
848
844
  display: 'flex',
849
845
  alignItems: 'center',
850
846
  gap: 2,