@campxdev/react-blueprint 0.1.22 → 0.1.23

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 (48) hide show
  1. package/package.json +1 -1
  2. package/src/components/DataDisplay/DataTable/TablePagination.tsx +5 -3
  3. package/src/components/FeedBack/Spinner/Spinner.css +32 -0
  4. package/src/components/{Layout → FeedBack}/Spinner/Spinner.stories.tsx +1 -1
  5. package/src/components/{Layout → FeedBack}/Spinner/Spinner.tsx +1 -1
  6. package/src/components/Icons/IconComponents/ActiveDevicesIcon.tsx +56 -66
  7. package/src/components/Icons/IconComponents/CheckedCheckBoxIcon.tsx +44 -0
  8. package/src/components/Icons/IconComponents/CheckedRadioIcon.tsx +44 -0
  9. package/src/components/Icons/IconComponents/DeviceIcon.tsx +58 -0
  10. package/src/components/Icons/IconComponents/InfoIcon.tsx +42 -0
  11. package/src/components/Icons/IconComponents/InstitutionsIcon.tsx +67 -103
  12. package/src/components/Icons/IconComponents/LocationIcon.tsx +50 -0
  13. package/src/components/Icons/IconComponents/NavigationIcon.tsx +21 -25
  14. package/src/components/Icons/IconComponents/ProfileIcon.tsx +0 -4
  15. package/src/components/Icons/IconComponents/TooltipIcon.tsx +26 -0
  16. package/src/components/Icons/IconComponents/UncheckCheckBoxIcon.tsx +28 -0
  17. package/src/components/Icons/IconComponents/UncheckedRadioIcon.tsx +28 -0
  18. package/src/components/Icons/export.ts +35 -18
  19. package/src/components/Input/Button/Button.tsx +1 -1
  20. package/src/components/Input/{CheckBox/CheckBox.stories.tsx → MultiCheckBox/MultiCheckBox.stories.tsx} +1 -1
  21. package/src/components/Input/{CheckBox → MultiCheckBox}/MultiCheckBox.tsx +2 -2
  22. package/src/components/Input/RadioGroup/RadioGroup.stories.tsx +43 -0
  23. package/src/components/Input/RadioGroup/RadioGroup.tsx +56 -0
  24. package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +33 -0
  25. package/src/components/Input/SingleCheckBox/SingleCheckBox.stories.tsx +33 -0
  26. package/src/components/Input/SingleSelect/SingleSelect.tsx +59 -24
  27. package/src/components/Input/components/FetchingOptionsLoader.tsx +5 -13
  28. package/src/components/Layout/Header/AppHeader.stories.tsx +1 -1
  29. package/src/components/Layout/Header/HeaderActions/CogWheelMenu.tsx +1 -1
  30. package/src/components/Layout/Header/HeaderActions/UserBox.tsx +2 -2
  31. package/src/components/Layout/LayoutWrapper/styles.tsx +1 -1
  32. package/src/components/Layout/SideNavigation/SideNavigation.tsx +1 -1
  33. package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownButton.tsx +1 -1
  34. package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownMenu.stories.tsx +1 -1
  35. package/src/components/{TabsContainer → Navigation/TabsContainer}/TabsContainer.stories.tsx +1 -1
  36. package/src/components/export.ts +2 -3
  37. package/src/themes/darkTheme.ts +1 -0
  38. package/src/themes/lightTheme.ts +1 -0
  39. package/src/themes/typography.stories.tsx +1 -1
  40. package/.vscode/settings.json +0 -3
  41. package/src/components/Input/CheckBox/CheckBox.tsx +0 -72
  42. package/src/components/Layout/Spinner/Spinner.css +0 -32
  43. /package/src/components/{Typography → DataDisplay/Typography}/Typography.tsx +0 -0
  44. /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownIcon.tsx +0 -0
  45. /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownMenu.tsx +0 -0
  46. /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropdownMenuItem.tsx +0 -0
  47. /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/styles.tsx +0 -0
  48. /package/src/components/{TabsContainer → Navigation/TabsContainer}/TabsContainer.tsx +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Stack, Typography, useTheme } from "@mui/material";
2
2
  import { ReactNode } from "react";
3
- import { DropdownMenu } from "../../../DropDownMenu/DropDownMenu";
4
- import { DropdownMenuItem } from "../../../DropDownMenu/DropdownMenuItem";
3
+ import { DropdownMenu } from "../../../Navigation/DropDownMenu/DropDownMenu";
4
+ import { DropdownMenuItem } from "../../../Navigation/DropDownMenu/DropdownMenuItem";
5
5
  import { Icons } from "../../../export";
6
6
  import { StyledAvatar, StyledTypography } from "../styles/styles";
7
7
  // import {
@@ -33,7 +33,7 @@ export const Main = styled("main", {
33
33
  borderRadius: "3px",
34
34
  },
35
35
  "@media (max-width: 1024px)": {
36
- marginLeft: 0,
36
+ marginLeft: "-50px",
37
37
  },
38
38
  }));
39
39
 
@@ -2,7 +2,7 @@ import { ListItemIcon, Stack } from "@mui/material";
2
2
  import { ReactNode } from "react";
3
3
  import { useMatch, useResolvedPath } from "react-router-dom";
4
4
  import { activeStore } from "../../../store/activeStore";
5
- import { Typography } from "../../Typography/Typography";
5
+ import { Typography } from "../../DataDisplay/Typography/Typography";
6
6
  import { Icons } from "../../export";
7
7
  import {
8
8
  StyledBox,
@@ -1,5 +1,5 @@
1
1
  import { KeyboardArrowDown } from "@mui/icons-material";
2
- import { Button, ButtonProps } from "../Input/Button/Button";
2
+ import { Button, ButtonProps } from "../../Input/Button/Button";
3
3
 
4
4
  export const DropDownButton = (props: ButtonProps) => {
5
5
  return (
@@ -1,7 +1,7 @@
1
1
  import MoreVertIcon from "@mui/icons-material/MoreVert";
2
2
  import { IconButton } from "@mui/material";
3
3
  import { Meta, StoryObj } from "@storybook/react";
4
- import { Icons } from "../export";
4
+ import { Icons } from "../../export";
5
5
  import { DropDownButton } from "./DropDownButton";
6
6
  import { DropDownIcon } from "./DropDownIcon";
7
7
  import { DropdownMenu, DropdownMenuProps } from "./DropDownMenu";
@@ -1,6 +1,6 @@
1
1
  import { Box } from "@mui/material";
2
2
  import { Meta, StoryObj } from "@storybook/react";
3
- import { PageContent } from "../Layout/PageContent/PageContent";
3
+ import { PageContent } from "../../Layout/PageContent/PageContent";
4
4
  import { TabsContainer, TabsContainerProps } from "./TabsContainer";
5
5
 
6
6
  // Define the default export with Meta type including the component type
@@ -1,6 +1,3 @@
1
- export * from "../utils/campxAxios";
2
- export * from "./DropDownMenu/DropDownButton";
3
- export * from "./DropDownMenu/DropDownMenu";
4
1
  export * from "./Icons/export";
5
2
  export * from "./Input/Button/Button";
6
3
  export * from "./Input/SingleSelect/SingleSelect";
@@ -12,3 +9,5 @@ export * from "./Layout/Header/AppsMenu";
12
9
  export * from "./Layout/LayoutWrapper/LayoutWrapper";
13
10
  export * from "./Layout/PageContent/PageContent";
14
11
  export * from "./Layout/SideNavigation/SideNavigation";
12
+ export * from "./Navigation/DropDownMenu/DropDownButton";
13
+ export * from "./Navigation/DropDownMenu/DropDownMenu";
@@ -11,6 +11,7 @@ export const darkTheme = createTheme({
11
11
  text: DarkColorTokens.text,
12
12
  highlight: DarkColorTokens.highlight,
13
13
  grey: DarkColorTokens.grey,
14
+ info: DarkColorTokens.info,
14
15
  // defaultProfileIcon: {
15
16
  // main: "#293640", // Default profile images and icons color for dark mode
16
17
  // },
@@ -11,6 +11,7 @@ export const lightTheme = createTheme({
11
11
  text: LightColorTokens.text,
12
12
  highlight: LightColorTokens.highlight,
13
13
  grey: LightColorTokens.grey,
14
+ info: LightColorTokens.info,
14
15
  // defaultProfileIcon: {
15
16
  // main: "#BDD6E8", // Default profile images and icons color
16
17
  // },
@@ -1,6 +1,6 @@
1
1
  // src/stories/Typography.stories.jsx
2
2
  import { Stack } from "@mui/material";
3
- import { Typography } from "../components/Typography/Typography";
3
+ import { Typography } from "../components/DataDisplay/Typography/Typography";
4
4
  // Update path as necessary
5
5
 
6
6
  export default {
@@ -1,3 +0,0 @@
1
- {
2
- "cSpell.words": ["Heebo"]
3
- }
@@ -1,72 +0,0 @@
1
- import {
2
- FormControlLabel,
3
- Checkbox as MuiCheckbox,
4
- CheckboxProps as MuiCheckboxProps,
5
- styled,
6
- } from "@mui/material";
7
- import { ReactNode } from "react";
8
-
9
- export type CheckboxProps = {
10
- label: ReactNode;
11
- } & MuiCheckboxProps;
12
-
13
- export const CheckBox = ({
14
- checked,
15
- label,
16
- onChange,
17
- ...rest
18
- }: CheckboxProps) => {
19
- return (
20
- <FormControlLabel
21
- control={
22
- <MuiCheckbox
23
- checked={checked}
24
- checkedIcon={<BpCheckedIcon />}
25
- icon={<BpIcon />}
26
- onChange={onChange}
27
- {...rest}
28
- />
29
- }
30
- label={label}
31
- />
32
- );
33
- };
34
-
35
- export const BpIcon = styled("span")(({ theme }) => ({
36
- borderRadius: 3,
37
- width: 20,
38
- height: 20,
39
- marginLeft: "2px",
40
- border: `1px solid ${theme.palette.secondary.main}`,
41
- backgroundColor: theme.palette.background.paper,
42
- ".Mui-focusVisible &": {
43
- outline: `2px auto ${theme.palette.secondary.main}`,
44
- outlineOffset: 2,
45
- },
46
- "input:hover ~ &": {
47
- backgroundColor: theme.palette.background.paper,
48
- },
49
- "input:disabled ~ &": {
50
- boxShadow: "none",
51
- background: theme.palette.secondary.main,
52
- },
53
- }));
54
-
55
- export const BpCheckedIcon = styled(BpIcon)(({ theme }) => ({
56
- backgroundColor: theme.palette.background.paper,
57
- border: `1px solid ${theme.palette.primary.main}`,
58
- display: "flex",
59
- justifyContent: "center",
60
- alignItems: "center",
61
- "&:before": {
62
- content: '""',
63
- display: "block",
64
- width: 8,
65
- height: 8,
66
- padding: 5,
67
- background: theme.palette.primary.main,
68
- },
69
- "input:hover ~ &": {
70
- backgroundColor: theme.palette.background.paper,
71
- },
72
- }));
@@ -1,32 +0,0 @@
1
- .spinner {
2
- width: 40px;
3
- height: 40px;
4
- border-radius: 50%;
5
- position: relative;
6
- animation: rotate 1s linear infinite;
7
- scale: 0.4;
8
- }
9
- .spinner::before , .spinner::after {
10
- content: "";
11
- box-sizing: border-box;
12
- position: absolute;
13
- inset: 0px;
14
- border-radius: 50%;
15
- border: 5px solid #7D60D9;
16
- animation: prixClipFix 1.5s linear infinite ;
17
- }
18
- .spinner::after{
19
- transform: rotate3d(90, 90, 0, 180deg );
20
- border-color: #FF3D00;
21
- }
22
-
23
- @keyframes rotate {
24
- 0% {transform: rotate(0deg)}
25
- 100% {transform: rotate(360deg)}
26
- }
27
-
28
- @keyframes prixClipFix {
29
- 0% {clip-path:polygon(50% 50%,0 0,0 0,0 0,0 0,0 0)}
30
- 50% {clip-path:polygon(50% 50%,0 0,100% 0,100% 0,100% 0,100% 0)}
31
- 75%, 100% {clip-path:polygon(50% 50%,0 0,100% 0,100% 100%,100% 100%,100% 100%)}
32
- }