@campxdev/react-blueprint 0.1.40 → 0.1.41

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.
Files changed (32) hide show
  1. package/package.json +1 -1
  2. package/src/components/Assets/Icons/IconComponents/ActiveDevicesIcon.tsx +4 -2
  3. package/src/components/Assets/Icons/IconComponents/AdministratorIcon.tsx +3 -2
  4. package/src/components/Assets/Icons/IconComponents/AppsIcon.tsx +4 -2
  5. package/src/components/Assets/Icons/IconComponents/BulbIcon.tsx +3 -2
  6. package/src/components/Assets/Icons/IconComponents/CampxIcon.tsx +3 -2
  7. package/src/components/Assets/Icons/IconComponents/CareerIcon.tsx +3 -2
  8. package/src/components/Assets/Icons/IconComponents/CheckedCheckBoxIcon.tsx +3 -2
  9. package/src/components/Assets/Icons/IconComponents/CheckedRadioIcon.tsx +3 -2
  10. package/src/components/Assets/Icons/IconComponents/ClogWheelIcon.tsx +3 -2
  11. package/src/components/Assets/Icons/IconComponents/CrossIcon.tsx +3 -2
  12. package/src/components/Assets/Icons/IconComponents/DashBoardIcon.tsx +3 -2
  13. package/src/components/Assets/Icons/IconComponents/DeviceIcon.tsx +3 -2
  14. package/src/components/Assets/Icons/IconComponents/ExamResultIcon.tsx +3 -2
  15. package/src/components/Assets/Icons/IconComponents/ExportIcon.tsx +4 -2
  16. package/src/components/Assets/Icons/IconComponents/FilterIcon.tsx +4 -2
  17. package/src/components/Assets/Icons/IconComponents/HelpIcon.tsx +3 -2
  18. package/src/components/Assets/Icons/IconComponents/HomeIcon.tsx +3 -2
  19. package/src/components/Assets/Icons/IconComponents/InfoIcon.tsx +3 -2
  20. package/src/components/Assets/Icons/IconComponents/InstitutionsIcon.tsx +3 -2
  21. package/src/components/Assets/Icons/IconComponents/LeftIcon.tsx +3 -2
  22. package/src/components/Assets/Icons/IconComponents/LocationIcon.tsx +3 -2
  23. package/src/components/Assets/Icons/IconComponents/LogoutIcon.tsx +3 -2
  24. package/src/components/Assets/Icons/IconComponents/NavigationIcon.tsx +3 -2
  25. package/src/components/Assets/Icons/IconComponents/NotificationIcon.tsx +3 -2
  26. package/src/components/Assets/Icons/IconComponents/ProductFeaturesIcon.tsx +3 -2
  27. package/src/components/Assets/Icons/IconComponents/ProfileIcon.tsx +3 -2
  28. package/src/components/Assets/Icons/IconComponents/RightIcon.tsx +3 -2
  29. package/src/components/Assets/Icons/IconComponents/TicketsIcon.tsx +3 -2
  30. package/src/components/Assets/Icons/IconComponents/UncheckCheckBoxIcon.tsx +3 -2
  31. package/src/components/Assets/Icons/IconComponents/UncheckedRadioIcon.tsx +3 -2
  32. package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "dependencies": {
@@ -1,6 +1,8 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
+
3
4
  export const ActiveDevicesIcon = () => {
5
+ const size = 32
4
6
  const theme = useTheme();
5
7
  const color = theme.palette.text.primary;
6
8
 
@@ -9,8 +11,8 @@ export const ActiveDevicesIcon = () => {
9
11
  id="Active_Devices"
10
12
  data-name="Active Devices"
11
13
  xmlns="http://www.w3.org/2000/svg"
12
- width="16"
13
- height="16"
14
+ width={size}
15
+ height={size}
14
16
  viewBox="0 0 16 16"
15
17
  style={{
16
18
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const AdministratorIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <>
8
9
  <svg
9
- width="30"
10
- height="30"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 30 30"
12
13
  style={{ fill: color }}
13
14
  xmlns="http://www.w3.org/2000/svg"
@@ -1,10 +1,12 @@
1
1
  export const AppsIcon = () => {
2
+ const size = 32;
3
+
2
4
  return (
3
5
  <svg
4
6
  id="apps"
5
7
  xmlns="http://www.w3.org/2000/svg"
6
- width="24"
7
- height="24"
8
+ width={size}
9
+ height={size}
8
10
  viewBox="0 0 24 24"
9
11
  >
10
12
  <path
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const BulbIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.highlight.highlightBlue;
6
7
 
7
8
  return (
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="16"
11
- height="18"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 20.182 21.03"
13
14
  style={{
14
15
  fill: color,
@@ -1,6 +1,7 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const CampxIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
 
6
7
  const color = theme.palette.mode === "dark" ? "white" : "blue";
@@ -8,8 +9,8 @@ export const CampxIcon = () => {
8
9
  return (
9
10
  <svg
10
11
  xmlns="http://www.w3.org/2000/svg"
11
- width="32"
12
- height="32"
12
+ width={size}
13
+ height={size}
13
14
  viewBox="0 5 101.234 104.906"
14
15
  style={{
15
16
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const CareerIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="18.3"
10
- height="20.3"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 20.3 20.3"
12
13
  style={{
13
14
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const CheckedCheckboxIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 20 20"
12
13
  style={{
13
14
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const CheckedRadioIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 20 20"
12
13
  style={{
13
14
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const ClogWheelIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="16.595"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 17.995 20"
12
13
  style={{
13
14
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const CrossIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="8"
10
- height="8"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 8 8"
12
13
  style={{
13
14
  stroke: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const DashBoardIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 16 16"
12
13
  style={{
13
14
  stroke: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const DeviceIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <div>
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="20"
11
- height="20"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 20 20"
13
14
  style={{
14
15
  fill: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const ExamResultIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <>
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="14.3"
11
- height="20.3"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 15.3 20.3"
13
14
  style={{
14
15
  fill: color,
@@ -3,9 +3,11 @@ import { useTheme } from "@mui/material";
3
3
  export const ExportIcon = ({
4
4
  sx = {},
5
5
  color,
6
+ size = 32,
6
7
  }: {
7
8
  sx?: any;
8
9
  color?: string;
10
+ size?: number;
9
11
  }) => {
10
12
  const theme = useTheme();
11
13
  color = color ?? theme.palette.text.primary;
@@ -14,8 +16,8 @@ export const ExportIcon = ({
14
16
  <>
15
17
  <svg
16
18
  xmlns="http://www.w3.org/2000/svg"
17
- width="25"
18
- height="20"
19
+ width={size}
20
+ height={size}
19
21
  viewBox="0 0 30 30"
20
22
  style={{
21
23
  fill: color,
@@ -2,9 +2,11 @@ import { useTheme } from "@mui/material";
2
2
  export const FilterIcon = ({
3
3
  sx = {},
4
4
  color,
5
+ size = 32,
5
6
  }: {
6
7
  sx?: any;
7
8
  color?: string;
9
+ size?: number;
8
10
  }) => {
9
11
  const theme = useTheme();
10
12
  color = color ?? theme.palette.text.primary;
@@ -13,8 +15,8 @@ export const FilterIcon = ({
13
15
  <svg
14
16
  xmlns="http://www.w3.org/2000/svg"
15
17
  id="sort"
16
- width="20"
17
- height="20"
18
+ width={size}
19
+ height={size}
18
20
  viewBox="0 0 20 20"
19
21
  style={{
20
22
  fill: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const HelpIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  id="message-question"
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="20"
11
- height="20"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 20 20"
13
14
  style={{
14
15
  stroke: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const HomeIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 16 16"
12
13
  style={{
13
14
  stroke: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const InfoIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.highlight.highlightBlue;
6
7
 
7
8
  return (
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="18"
11
- height="18"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 18 18"
13
14
  style={{
14
15
  fill: color,
@@ -1,6 +1,7 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const InstitutionsIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
 
@@ -8,8 +9,8 @@ export const InstitutionsIcon = () => {
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
11
  id="Institutions"
11
- width="16"
12
- height="16"
12
+ width={size}
13
+ height={size}
13
14
  viewBox="0 0 16 16"
14
15
  style={{
15
16
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const LeftIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="24"
10
- height="24"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 24 24"
12
13
  style={{
13
14
  stroke: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const LocationIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
 
7
8
  return (
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="21"
11
- height="21"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 20 20"
13
14
  style={{
14
15
  fill: color,
@@ -6,6 +6,7 @@ interface LogoutIconProps {
6
6
  }
7
7
 
8
8
  export const LogoutIcon: React.FC<LogoutIconProps> = ({ hoverColor }) => {
9
+ const size = 32;
9
10
  const theme = useTheme();
10
11
  const [isHovered, setIsHovered] = useState(false);
11
12
  const defaultColor = theme.palette.text.primary;
@@ -13,8 +14,8 @@ export const LogoutIcon: React.FC<LogoutIconProps> = ({ hoverColor }) => {
13
14
  return (
14
15
  <svg
15
16
  xmlns="http://www.w3.org/2000/svg"
16
- width="24"
17
- height="24"
17
+ width={size}
18
+ height={size}
18
19
  viewBox="0 0 24 24"
19
20
  onMouseEnter={() => setIsHovered(true)}
20
21
  onMouseLeave={() => setIsHovered(false)}
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const NavigationIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="21"
10
- height="21"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 30 30"
12
13
  style={{
13
14
  fill: color,
@@ -1,14 +1,15 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const NotificationIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <>
8
9
  <svg
9
10
  xmlns="http://www.w3.org/2000/svg"
10
- width="20"
11
- height="20"
11
+ width={size}
12
+ height={size}
12
13
  viewBox="0 0 20 20"
13
14
  style={{
14
15
  stroke: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const ProductFeaturesIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="16"
10
- height="16"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 16 16"
12
13
  style={{
13
14
  stroke: color,
@@ -1,6 +1,7 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const ProfileIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
 
@@ -10,8 +11,8 @@ export const ProfileIcon = () => {
10
11
  xmlns="http://www.w3.org/2000/svg"
11
12
  id="My_Profile"
12
13
  data-name="My Profile"
13
- width="16"
14
- height="16"
14
+ width={size}
15
+ height={size}
15
16
  viewBox="0 0 16 16"
16
17
  style={{
17
18
  fill: color, // Set fill color to use the theme's primary text color
@@ -1,6 +1,7 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const RightIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
@@ -8,8 +9,8 @@ export const RightIcon = () => {
8
9
  xmlns="http://www.w3.org/2000/svg"
9
10
  id="vuesax_linear_logout"
10
11
  data-name="vuesax/linear/logout"
11
- width="24"
12
- height="24"
12
+ width={size}
13
+ height={size}
13
14
  viewBox="0 0 24 24"
14
15
  style={{
15
16
  stroke: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const TicketsIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="16"
10
- height="16"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 16 16"
12
13
  >
13
14
  <g
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const UnCheckedCheckboxIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.secondary.main;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 20 20"
12
13
  style={{
13
14
  fill: color,
@@ -1,13 +1,14 @@
1
1
  import { useTheme } from "@mui/material";
2
2
 
3
3
  export const UnCheckedRadioIcon = () => {
4
+ const size = 32;
4
5
  const theme = useTheme();
5
6
  const color = theme.palette.text.primary;
6
7
  return (
7
8
  <svg
8
9
  xmlns="http://www.w3.org/2000/svg"
9
- width="20"
10
- height="20"
10
+ width={size}
11
+ height={size}
11
12
  viewBox="0 0 20 20"
12
13
  style={{
13
14
  fill: color,
@@ -1,5 +1,5 @@
1
1
  import { Divider, Menu, MenuListProps, MenuProps } from "@mui/material";
2
- import { ReactNode, useState } from "react";
2
+ import { Fragment, ReactNode, useState } from "react";
3
3
 
4
4
  export type DropdownMenuProps = {
5
5
  anchor: (props: { open: (e: any) => void }) => ReactNode;
@@ -53,10 +53,10 @@ export const DropdownMenu = ({
53
53
  {...menuProps}
54
54
  >
55
55
  {menu.map((item, index) => (
56
- <>
56
+ <Fragment key={index}>
57
57
  {item}
58
58
  <Divider flexItem sx={{ margin: "0 !important" }} />
59
- </>
59
+ </Fragment>
60
60
  ))}
61
61
  </Menu>
62
62
  </>