@campxdev/shared 1.11.10 → 1.11.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/shared",
3
- "version": "1.11.10",
3
+ "version": "1.11.11",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -0,0 +1,35 @@
1
+ import { Box, SxProps, Typography } from '@mui/material'
2
+ import { Variant } from '@mui/material/styles/createTypography'
3
+
4
+ interface ItemProps {
5
+ text: string
6
+ sx?: SxProps
7
+ variant?: Variant
8
+ }
9
+
10
+ interface SignatureFooterProps {
11
+ containerSx?: SxProps
12
+ list: ItemProps[]
13
+ }
14
+
15
+ export default function SignatureFooter({
16
+ containerSx,
17
+ list,
18
+ }: SignatureFooterProps) {
19
+ return (
20
+ <Box
21
+ sx={{
22
+ display: 'flex',
23
+ justifyContent: 'space-around',
24
+ margin: '100px 0px 50px 0px',
25
+ ...containerSx,
26
+ }}
27
+ >
28
+ {list?.map((item, index) => (
29
+ <Typography key={index} sx={item?.sx} variant={item?.variant || 'h1'}>
30
+ {item?.text}
31
+ </Typography>
32
+ ))}
33
+ </Box>
34
+ )
35
+ }
@@ -100,6 +100,6 @@ const getSxKeys = (rowIndex, columnIndex) => {
100
100
  rowkey: `row:${rowIndex}`,
101
101
  columnKey: `column:${columnIndex}`,
102
102
  cellKey: `row:${rowIndex},column:${columnIndex}`,
103
- allKey: 'Tablecell',
103
+ allKey: 'TableCell',
104
104
  }
105
105
  }
@@ -60,6 +60,7 @@ export { default as PageHeader } from './PageHeader'
60
60
  export { default as useConfirm } from './PopupConfirm/useConfirm'
61
61
  export { default as ReportHeader } from './ReportHeader'
62
62
  export { default as ReportPageHeader } from './ReportPageHeader'
63
+ export { default as SignatureFooter } from './SignatureFooter'
63
64
  export { default as Spinner } from './Spinner'
64
65
  export { default as PaymentStepper } from './Stepper'
65
66
  export { default as SwitchButton } from './SwitchButton'