@campxdev/react-blueprint 1.7.14 → 1.7.15

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/react-blueprint",
3
- "version": "1.7.14",
3
+ "version": "1.7.15",
4
4
  "main": "./export.ts",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.13.3",
@@ -6,7 +6,10 @@ import {
6
6
  useTheme,
7
7
  } from '@mui/material';
8
8
  import { ReactNode } from 'react';
9
- import { Typography } from '../../DataDisplay/Typography/Typography';
9
+ import {
10
+ Typography,
11
+ TypographyProps,
12
+ } from '../../DataDisplay/Typography/Typography';
10
13
  import { Icons } from '../../export';
11
14
 
12
15
  export type CheckboxProps = {
@@ -14,6 +17,7 @@ export type CheckboxProps = {
14
17
  icon?: ReactNode;
15
18
  label: ReactNode;
16
19
  formControlLabelProps?: Omit<FormControlLabelProps, 'control' | 'label'>;
20
+ typographyProps?: TypographyProps;
17
21
  } & MuiCheckboxProps;
18
22
 
19
23
  export const SingleCheckBox = ({
@@ -24,6 +28,7 @@ export const SingleCheckBox = ({
24
28
  checkedIcon = <Icons.CheckedCheckboxIcon />,
25
29
  icon = <Icons.UnCheckedCheckboxIcon />,
26
30
  formControlLabelProps,
31
+ typographyProps,
27
32
  ...rest
28
33
  }: CheckboxProps) => {
29
34
  const theme = useTheme();
@@ -39,7 +44,7 @@ export const SingleCheckBox = ({
39
44
  />
40
45
  }
41
46
  label={
42
- <Typography variant="body2">
47
+ <Typography variant="body1" {...typographyProps}>
43
48
  {label}
44
49
  {required && (
45
50
  <span style={{ color: `${theme.palette.tertiary.main}` }}>
@@ -261,7 +261,7 @@ export const getCommonTheme = (mode: Theme) => {
261
261
  fullWidth: true,
262
262
  },
263
263
  paper: {
264
- color: ColorTokens.surface.defaultBackground,
264
+ // color: ColorTokens.surface.defaultBackground,
265
265
  borderRadius: '5px',
266
266
  width: '100%',
267
267
  maxHeight: 'calc(100vh - 64px)',
@@ -632,7 +632,7 @@ export const getCommonTheme = (mode: Theme) => {
632
632
  color: ColorTokens.text.secondary,
633
633
  },
634
634
  label2: {
635
- fontSize: '14px',
635
+ fontSize: '12px',
636
636
  fontWeight: 400,
637
637
  fontFamily: 'Poppins',
638
638
  color: ColorTokens.text.secondary,