@campxdev/react-blueprint 0.1.21 → 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.
- package/package.json +1 -1
- package/src/components/DataDisplay/DataTable/TablePagination.tsx +5 -3
- package/src/components/FeedBack/Spinner/Spinner.css +32 -0
- package/src/components/{Layout → FeedBack}/Spinner/Spinner.stories.tsx +1 -1
- package/src/components/{Layout → FeedBack}/Spinner/Spinner.tsx +1 -1
- package/src/components/Icons/IconComponents/ActiveDevicesIcon.tsx +65 -0
- package/src/components/Icons/IconComponents/CheckedCheckBoxIcon.tsx +44 -0
- package/src/components/Icons/IconComponents/CheckedRadioIcon.tsx +44 -0
- package/src/components/Icons/IconComponents/DeviceIcon.tsx +58 -0
- package/src/components/Icons/IconComponents/ExportIcon.tsx +9 -2
- package/src/components/Icons/IconComponents/FilterIcon.tsx +9 -2
- package/src/components/Icons/IconComponents/InfoIcon.tsx +42 -0
- package/src/components/Icons/IconComponents/InstitutionsIcon.tsx +76 -0
- package/src/components/Icons/IconComponents/LocationIcon.tsx +50 -0
- package/src/components/Icons/IconComponents/NavigationIcon.tsx +30 -0
- package/src/components/Icons/IconComponents/ProfileIcon.tsx +49 -0
- package/src/components/Icons/IconComponents/TooltipIcon.tsx +26 -0
- package/src/components/Icons/IconComponents/UncheckCheckBoxIcon.tsx +28 -0
- package/src/components/Icons/IconComponents/UncheckedRadioIcon.tsx +28 -0
- package/src/components/Icons/export.ts +39 -14
- package/src/components/Input/Button/Button.tsx +1 -1
- package/src/components/Input/MultiCheckBox/MultiCheckBox.stories.tsx +46 -0
- package/src/components/Input/MultiCheckBox/MultiCheckBox.tsx +59 -0
- package/src/components/Input/RadioGroup/RadioGroup.stories.tsx +43 -0
- package/src/components/Input/RadioGroup/RadioGroup.tsx +56 -0
- package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +33 -0
- package/src/components/Input/SingleCheckBox/SingleCheckBox.stories.tsx +33 -0
- package/src/components/Input/SingleSelect/SingleSelect.tsx +59 -24
- package/src/components/Input/components/FetchingOptionsLoader.tsx +5 -13
- package/src/components/Layout/Header/AppHeader.stories.tsx +1 -1
- package/src/components/Layout/Header/AppHeader.tsx +1 -1
- package/src/components/Layout/Header/HeaderActions/CogWheelMenu.tsx +1 -1
- package/src/components/Layout/Header/HeaderActions/UserBox.tsx +19 -10
- package/src/components/Layout/LayoutWrapper/styles.tsx +1 -1
- package/src/components/Layout/SideNavigation/SideNavigation.tsx +1 -1
- package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownButton.tsx +1 -1
- package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownMenu.stories.tsx +1 -1
- package/src/components/{TabsContainer → Navigation/TabsContainer}/TabsContainer.stories.tsx +1 -1
- package/src/components/export.ts +2 -2
- package/src/themes/commonTheme.ts +13 -1
- package/src/themes/darkTheme.ts +1 -0
- package/src/themes/lightTheme.ts +1 -0
- package/src/themes/typography.stories.tsx +1 -1
- package/src/utils/campxAxios.ts +1 -2
- package/src/utils/constants.ts +3 -0
- package/.vscode/settings.json +0 -3
- package/src/components/Layout/Spinner/Spinner.css +0 -32
- /package/src/components/{Typography → DataDisplay/Typography}/Typography.tsx +0 -0
- /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownIcon.tsx +0 -0
- /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropDownMenu.tsx +0 -0
- /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/DropdownMenuItem.tsx +0 -0
- /package/src/components/{DropDownMenu → Navigation/DropDownMenu}/styles.tsx +0 -0
- /package/src/components/{TabsContainer → Navigation/TabsContainer}/TabsContainer.tsx +0 -0
|
@@ -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 "
|
|
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 "
|
|
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
|
package/src/components/export.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export * from "./DropDownMenu/DropDownButton";
|
|
2
|
-
export * from "./DropDownMenu/DropDownMenu";
|
|
3
1
|
export * from "./Icons/export";
|
|
4
2
|
export * from "./Input/Button/Button";
|
|
5
3
|
export * from "./Input/SingleSelect/SingleSelect";
|
|
@@ -11,3 +9,5 @@ export * from "./Layout/Header/AppsMenu";
|
|
|
11
9
|
export * from "./Layout/LayoutWrapper/LayoutWrapper";
|
|
12
10
|
export * from "./Layout/PageContent/PageContent";
|
|
13
11
|
export * from "./Layout/SideNavigation/SideNavigation";
|
|
12
|
+
export * from "./Navigation/DropDownMenu/DropDownButton";
|
|
13
|
+
export * from "./Navigation/DropDownMenu/DropDownMenu";
|
|
@@ -30,7 +30,19 @@ export const getCommonTheme = (mode: Theme) => {
|
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
MuiCheckbox: {
|
|
34
|
+
defaultProps: {
|
|
35
|
+
disableRipple: true,
|
|
36
|
+
},
|
|
37
|
+
styleOverrides: {
|
|
38
|
+
root: {
|
|
39
|
+
"& .MuiSvgIcon-root": {
|
|
40
|
+
width: "20px",
|
|
41
|
+
height: "20px",
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
34
46
|
MuiDialogTitle: {
|
|
35
47
|
styleOverrides: {
|
|
36
48
|
root: {
|
package/src/themes/darkTheme.ts
CHANGED
|
@@ -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
|
// },
|
package/src/themes/lightTheme.ts
CHANGED
|
@@ -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 {
|
package/src/utils/campxAxios.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import axios from "axios";
|
|
2
|
-
import
|
|
2
|
+
import { sessionKey } from "./constants";
|
|
3
3
|
|
|
4
4
|
console.log(window.location.pathname.split("/"));
|
|
5
5
|
|
|
6
6
|
const tenantCode = "campx";
|
|
7
7
|
const institutionCode = "campx";
|
|
8
|
-
const sessionKey = Cookies.get("campx_session_key");
|
|
9
8
|
const isProduction = process.env.NODE_ENV === "production";
|
|
10
9
|
|
|
11
10
|
export const campxAxios = axios.create({
|
package/src/utils/constants.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import Cookies from "js-cookie";
|
|
2
|
+
|
|
1
3
|
export const isDevelopment: boolean =
|
|
2
4
|
process.env.NODE_ENV === "development" ||
|
|
3
5
|
window.location.origin.split("campx")[1] === ".dev";
|
|
4
6
|
|
|
5
7
|
export const urlTenantKey = window.location.pathname.split("/")[1];
|
|
6
8
|
export const institutionKey = window.location.pathname.split("/")[2];
|
|
9
|
+
export const sessionKey = Cookies.get("campx_session_key");
|
package/.vscode/settings.json
DELETED
|
@@ -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
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|