@campxdev/react-blueprint 1.7.13 → 1.7.15-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.7.13",
3
+ "version": "1.7.15-alpha.1",
4
4
  "main": "./export.ts",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.13.3",
@@ -19,24 +19,27 @@ export const ExportIcon = ({
19
19
  width="25"
20
20
  height="24"
21
21
  viewBox="0 0 25 24"
22
- fill="none"
22
+ style={{
23
+ fill: color,
24
+ ...sx,
25
+ }}
23
26
  >
24
27
  <path
25
28
  d="M15.5105 22.2501H8.99047C4.08047 22.2501 1.98047 20.1501 1.98047 15.2401V15.1101C1.98047 10.6701 3.73047 8.53009 7.65047 8.15809C7.84833 8.1444 8.04387 8.20739 8.19655 8.334C8.34922 8.4606 8.44731 8.64111 8.47047 8.83809C8.47997 8.93664 8.46988 9.03609 8.4408 9.13073C8.41172 9.22536 8.36422 9.31332 8.30102 9.38953C8.23782 9.46573 8.16018 9.5287 8.07256 9.57479C7.98494 9.62088 7.88907 9.64919 7.79047 9.65809C4.65047 9.94809 3.48047 11.4281 3.48047 15.1181V15.2481C3.48047 19.3181 4.92047 20.7581 8.99047 20.7581H15.5105C19.5805 20.7581 21.0205 19.3181 21.0205 15.2481V15.1181C21.0205 11.4081 19.8305 9.92809 16.6305 9.65809C16.5311 9.65155 16.4341 9.62524 16.345 9.58071C16.256 9.53617 16.1767 9.4743 16.1119 9.39873C16.047 9.32315 15.9979 9.2354 15.9675 9.1406C15.937 9.04581 15.9258 8.94589 15.9344 8.84669C15.9431 8.7475 15.9714 8.65103 16.0179 8.56295C16.0643 8.47486 16.1278 8.39693 16.2048 8.33373C16.2817 8.27052 16.3705 8.22332 16.4659 8.19487C16.5613 8.16643 16.6615 8.15733 16.7605 8.16809C20.7405 8.50809 22.5205 10.6581 22.5205 15.1281V15.2581C22.5205 20.1501 20.4205 22.2501 15.5105 22.2501Z"
26
- fill="#121212"
29
+ fill={color}
27
30
  stroke="#121212"
28
31
  stroke-width="0.4"
29
32
  />
30
33
  <path
31
34
  d="M12.25 15.7501C12.0515 15.7488 11.8615 15.6694 11.7211 15.529C11.5807 15.3886 11.5013 15.1986 11.5 15.0001V3.62012C11.5013 3.42161 11.5807 3.2316 11.7211 3.09124C11.8615 2.95087 12.0515 2.87143 12.25 2.87012C12.4485 2.87143 12.6385 2.95087 12.7789 3.09124C12.9193 3.2316 12.9987 3.42161 13 3.62012V15.0001C12.9987 15.1986 12.9193 15.3886 12.7789 15.529C12.6385 15.6694 12.4485 15.7488 12.25 15.7501Z"
32
- fill="#121212"
33
- stroke="#121212"
35
+ fill={color}
36
+ stroke={color}
34
37
  stroke-width="0.4"
35
38
  />
36
39
  <path
37
40
  d="M15.6012 6.60012C15.5026 6.60047 15.405 6.5812 15.314 6.54343C15.223 6.50566 15.1405 6.45014 15.0712 6.38012L12.2532 3.56012L9.43317 6.38012C9.29099 6.5126 9.10295 6.58472 8.90864 6.58129C8.71434 6.57787 8.52896 6.49915 8.39155 6.36174C8.25413 6.22433 8.17542 6.03894 8.17199 5.84464C8.16856 5.65034 8.24069 5.46229 8.37317 5.32012L11.7212 1.97112C11.8623 1.83164 12.0527 1.75342 12.2512 1.75342C12.4496 1.75342 12.64 1.83164 12.7812 1.97112L16.1312 5.32112C16.2706 5.46226 16.3489 5.65269 16.3489 5.85112C16.3489 6.04955 16.2706 6.23998 16.1312 6.38112C16.0624 6.45175 15.9799 6.50759 15.8887 6.54525C15.7976 6.5829 15.6998 6.60157 15.6012 6.60012Z"
38
- fill="#121212"
39
- stroke="#121212"
41
+ fill={color}
42
+ stroke={color}
40
43
  stroke-width="0.4"
41
44
  />
42
45
  </svg>
@@ -22,30 +22,30 @@ const ScholarshipIcon = ({
22
22
  d="M15.0001 28.4369C14.614 28.4398 14.2313 28.365 13.8748 28.2168C13.5183 28.0686 13.1953 27.8501 12.9251 27.5744L11.0251 25.6744C10.8107 25.4997 10.5501 25.3911 10.2751 25.3619H7.57508C7.18919 25.3624 6.80698 25.2868 6.45037 25.1393C6.09375 24.9919 5.76973 24.7755 5.49686 24.5026C5.22398 24.2298 5.00763 23.9057 4.86018 23.5491C4.71273 23.1925 4.63709 22.8103 4.63758 22.4244V19.7244C4.6084 19.4494 4.49982 19.1888 4.32508 18.9744L2.42508 17.0744C2.15151 16.8026 1.93446 16.4793 1.78643 16.1231C1.6384 15.767 1.56232 15.3851 1.56258 14.9994C1.55966 14.6133 1.63452 14.2307 1.78271 13.8742C1.93089 13.5177 2.14936 13.1946 2.42508 12.9244L4.32508 11.0244C4.49982 10.81 4.6084 10.5494 4.63758 10.2744V7.57441C4.63709 7.18851 4.71273 6.80631 4.86018 6.44969C5.00763 6.09308 5.22398 5.76905 5.49686 5.49618C5.76973 5.22331 6.09375 5.00696 6.45037 4.85951C6.80698 4.71206 7.18919 4.63642 7.57508 4.63691H10.2751C10.5501 4.60773 10.8107 4.49915 11.0251 4.32441L12.9251 2.42441C13.4861 1.8947 14.2285 1.59961 15.0001 1.59961C15.7717 1.59961 16.514 1.8947 17.0751 2.42441L18.9751 4.32441C19.1895 4.49915 19.4501 4.60773 19.7251 4.63691H22.4251C22.811 4.63642 23.1932 4.71206 23.5498 4.85951C23.9064 5.00696 24.2304 5.22331 24.5033 5.49618C24.7762 5.76905 24.9925 6.09308 25.14 6.44969C25.2874 6.80631 25.3631 7.18851 25.3626 7.57441V10.2744C25.3918 10.5494 25.5003 10.81 25.6751 11.0244L27.5751 12.9244C27.8487 13.1963 28.0657 13.5196 28.2137 13.8757C28.3618 14.2318 28.4378 14.6137 28.4376 14.9994C28.4405 15.3855 28.3656 15.7682 28.2175 16.1247C28.0693 16.4812 27.8508 16.8042 27.5751 17.0744L25.6751 18.9744C25.5003 19.1888 25.3918 19.4494 25.3626 19.7244V22.4244C25.3631 22.8103 25.2874 23.1925 25.14 23.5491C24.9925 23.9057 24.7762 24.2298 24.5033 24.5026C24.2304 24.7755 23.9064 24.9919 23.5498 25.1393C23.1932 25.2868 22.811 25.3624 22.4251 25.3619H19.7251C19.4501 25.3911 19.1895 25.4997 18.9751 25.6744L17.0751 27.5744C16.8048 27.8501 16.4818 28.0686 16.1253 28.2168C15.7688 28.365 15.3861 28.4398 15.0001 28.4369ZM5.65008 17.6494C6.17686 18.2154 6.48292 18.9518 6.51258 19.7244V22.4244C6.51242 22.564 6.53979 22.7022 6.59313 22.8312C6.64646 22.9602 6.72472 23.0774 6.82341 23.1761C6.92211 23.2748 7.0393 23.353 7.16829 23.4064C7.29727 23.4597 7.43551 23.4871 7.57508 23.4869H10.2751C11.0478 23.5165 11.7841 23.8225 12.3501 24.3494L14.2501 26.2494C14.4523 26.442 14.7208 26.5494 15.0001 26.5494C15.2793 26.5494 15.5479 26.442 15.7501 26.2494L17.6501 24.3494C18.216 23.8225 18.9524 23.5165 19.7251 23.4869H22.4251C22.5647 23.4871 22.7029 23.4597 22.8319 23.4064C22.9609 23.353 23.0781 23.2748 23.1768 23.1761C23.2754 23.0774 23.3537 22.9602 23.407 22.8312C23.4604 22.7022 23.4877 22.564 23.4876 22.4244V19.7244C23.5172 18.9518 23.8233 18.2154 24.3501 17.6494L26.2501 15.7494C26.3491 15.6512 26.4277 15.5344 26.4813 15.4057C26.535 15.2769 26.5626 15.1389 26.5626 14.9994C26.5626 14.86 26.535 14.7219 26.4813 14.5932C26.4277 14.4644 26.3491 14.3476 26.2501 14.2494L24.3501 12.3494C23.8233 11.7834 23.5172 11.0471 23.4876 10.2744V7.57441C23.4877 7.43483 23.4604 7.2966 23.407 7.16761C23.3537 7.03863 23.2754 6.92144 23.1768 6.82274C23.0781 6.72405 22.9609 6.64579 22.8319 6.59245C22.7029 6.53912 22.5647 6.51175 22.4251 6.51191H19.7251C18.9524 6.48236 18.216 6.17628 17.6501 5.64941L15.7501 3.74941C15.5479 3.55683 15.2793 3.44941 15.0001 3.44941C14.7208 3.44941 14.4523 3.55683 14.2501 3.74941L12.3501 5.64941C11.7841 6.17628 11.0478 6.48236 10.2751 6.51191H7.57508C7.43551 6.51175 7.29727 6.53912 7.16829 6.59245C7.0393 6.64579 6.92211 6.72405 6.82341 6.82274C6.72472 6.92144 6.64646 7.03863 6.59313 7.16761C6.53979 7.2966 6.51242 7.43483 6.51258 7.57441V10.2744C6.48292 11.0471 6.17686 11.7834 5.65008 12.3494L3.75008 14.2494C3.65106 14.3476 3.57247 14.4644 3.51883 14.5932C3.4652 14.7219 3.43758 14.86 3.43758 14.9994C3.43758 15.1389 3.4652 15.2769 3.51883 15.4057C3.57247 15.5344 3.65106 15.6512 3.75008 15.7494L5.65008 17.6494Z"
23
23
  fill={color}
24
24
  stroke={color}
25
- strokeWidth="0.4"
25
+ stroke-width="0.4"
26
26
  />
27
27
  <path
28
28
  d="M18.7508 19.9999C18.503 20.0024 18.2601 19.9312 18.0529 19.7954C17.8457 19.6595 17.6836 19.4652 17.5871 19.237C17.4905 19.0088 17.464 18.7571 17.5108 18.5138C17.5576 18.2705 17.6757 18.0466 17.85 17.8706C18.0243 17.6945 18.247 17.5742 18.4898 17.5249C18.7326 17.4757 18.9846 17.4997 19.2137 17.5939C19.4428 17.6882 19.6388 17.8484 19.7767 18.0542C19.9146 18.26 19.9883 18.5022 19.9883 18.7499C19.9893 18.9133 19.958 19.0753 19.8963 19.2266C19.8347 19.3779 19.7437 19.5155 19.6288 19.6316C19.5138 19.7477 19.3771 19.84 19.2265 19.9032C19.0758 19.9664 18.9142 19.9993 18.7508 19.9999Z"
29
29
  fill={color}
30
30
  stroke={color}
31
- strokeWidth="0.4"
31
+ stroke-width="0.4"
32
32
  />
33
33
  <path
34
34
  d="M11.2625 12.4999C11.0148 12.5024 10.7719 12.4312 10.5647 12.2954C10.3575 12.1595 10.1953 11.9652 10.0988 11.737C10.0022 11.5088 9.9757 11.2571 10.0225 11.0138C10.0693 10.7705 10.1874 10.5466 10.3617 10.3706C10.536 10.1945 10.7587 10.0742 11.0015 10.0249C11.2443 9.9757 11.4963 9.99971 11.7254 10.0939C11.9546 10.1882 12.1505 10.3484 12.2884 10.5542C12.4264 10.76 12.5 11.0022 12.5 11.2499C12.501 11.4133 12.4697 11.5753 12.4081 11.7266C12.3464 11.8779 12.2555 12.0155 12.1405 12.1316C12.0256 12.2477 11.8888 12.34 11.7382 12.4032C11.5875 12.4664 11.4259 12.4993 11.2625 12.4999Z"
35
35
  fill={color}
36
36
  stroke={color}
37
- strokeWidth="0.4"
37
+ stroke-width="0.4"
38
38
  />
39
39
  <path
40
40
  d="M11.2486 19.6905C11.1254 19.6909 11.0034 19.6668 10.8897 19.6196C10.7759 19.5724 10.6727 19.503 10.5861 19.4155C10.412 19.2389 10.3145 19.0009 10.3145 18.753C10.3145 18.505 10.412 18.2671 10.5861 18.0905L18.0861 10.5905C18.2638 10.4249 18.4989 10.3347 18.7417 10.339C18.9846 10.3433 19.2163 10.4417 19.3881 10.6135C19.5599 10.7852 19.6583 11.017 19.6625 11.2598C19.6668 11.5027 19.5767 11.7378 19.4111 11.9155L11.9111 19.4155C11.8244 19.503 11.7212 19.5724 11.6075 19.6196C11.4937 19.6668 11.3717 19.6909 11.2486 19.6905Z"
41
41
  fill={color}
42
42
  stroke={color}
43
- strokeWidth="0.4"
43
+ stroke-width="0.4"
44
44
  />
45
45
  </g>
46
46
  <defs>
47
47
  <clipPath id="clip0_4286_29361">
48
- <rect width={size} height={size} fill="white" />
48
+ <rect width="30" height="30" fill="white" />
49
49
  </clipPath>
50
50
  </defs>
51
51
  </svg>
@@ -20,6 +20,7 @@ type DatePickerProps<
20
20
  required?: boolean;
21
21
  containerProps?: StackProps;
22
22
  openPickerIcon?: React.ElementType;
23
+ error?: any;
23
24
  } & MuiDatePickerProps<TDate, TEnableAccessibleFieldDOMStructure>;
24
25
 
25
26
  export const DatePicker = <
@@ -37,6 +38,7 @@ export const DatePicker = <
37
38
  shortcutsItems = [],
38
39
  openPickerIcon: Icon = Icons.NoteIcon,
39
40
  containerProps,
41
+ error,
40
42
  ...rest
41
43
  }: DatePickerProps<TDate, TEnableAccessibleFieldDOMStructure>) => {
42
44
  return (
@@ -54,6 +56,7 @@ export const DatePicker = <
54
56
  textField: {
55
57
  helperText,
56
58
  placeholder,
59
+ error: !!error,
57
60
  },
58
61
  shortcuts: {
59
62
  items: shortcutsItems,
@@ -43,6 +43,7 @@ type DateTimePickerProps<
43
43
  required?: boolean;
44
44
  containerProps?: StackProps;
45
45
  openPickerIcon?: React.ElementType;
46
+ error?: any;
46
47
  } & MuiDateTimePickerProps<TDate, TEnableAccessibleFieldDOMStructure>;
47
48
 
48
49
  export const DateTimePicker = <
@@ -60,6 +61,7 @@ export const DateTimePicker = <
60
61
  openPickerIcon: Icon = Icons.NoteIcon,
61
62
  containerProps,
62
63
  value,
64
+ error,
63
65
  ...rest
64
66
  }: DateTimePickerProps<TDate, TEnableAccessibleFieldDOMStructure>) => {
65
67
  return (
@@ -77,6 +79,7 @@ export const DateTimePicker = <
77
79
  textField: {
78
80
  helperText,
79
81
  placeholder,
82
+ error: !!error,
80
83
  },
81
84
  shortcuts: {
82
85
  items: shortcutsItems,
@@ -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}` }}>
@@ -260,14 +260,14 @@ export const getCommonTheme = (mode: Theme) => {
260
260
  root: {
261
261
  fullWidth: true,
262
262
  },
263
- paper: {
264
- color: ColorTokens.surface.defaultBackground,
265
- borderRadius: '5px',
266
- width: '100%',
267
- maxHeight: 'calc(100vh - 64px)',
268
- overflow: 'auto',
269
- boxShadow: 'none',
270
- },
263
+ // paper: {
264
+ // // color: ColorTokens.surface.defaultBackground,
265
+ // borderRadius: '5px',
266
+ // width: '100%',
267
+ // maxHeight: 'calc(100vh - 64px)',
268
+ // overflow: 'auto',
269
+ // boxShadow: 'none',
270
+ // },
271
271
  },
272
272
  },
273
273
  MuiMenu: {
@@ -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,