@campxdev/react-blueprint 0.1.24 → 0.1.25

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 (45) hide show
  1. package/.storybook/preview.tsx +0 -1
  2. package/package.json +2 -1
  3. package/src/components/DataDisplay/Avatar/Avatar.tsx +70 -0
  4. package/src/components/DataDisplay/Avatar/CircularAvatar.stories.tsx +27 -0
  5. package/src/components/DataDisplay/Avatar/SquareAvatar.stories.tsx +47 -0
  6. package/src/components/DataDisplay/SidePanel/SidePanel.stories.tsx +36 -0
  7. package/src/components/DataDisplay/SidePanel/SidePanel.tsx +9 -0
  8. package/src/components/{FeedBack → Feedback}/Spinner/Spinner.stories.tsx +2 -2
  9. package/src/components/Feedback/Tooltip/Tooltip.stories.tsx +44 -0
  10. package/src/components/Feedback/Tooltip/Tooltip.tsx +45 -0
  11. package/src/components/Icons/IconComponents/{TooltipIcon.tsx → BulbIcon.tsx} +4 -4
  12. package/src/components/Icons/IconComponents/CrossIcon.tsx +25 -0
  13. package/src/components/Icons/IconComponents/InfoIcon.tsx +1 -1
  14. package/src/components/Icons/export.ts +4 -2
  15. package/src/components/Input/Chips/Chips.stories.tsx +54 -0
  16. package/src/components/Input/Chips/Chips.tsx +44 -0
  17. package/src/components/Input/HelpButton/HelpButton.stories.tsx +21 -0
  18. package/src/components/Input/HelpButton/HelpButton.tsx +17 -0
  19. package/src/components/Input/LabelWrapper/LabelWrapper.tsx +1 -1
  20. package/src/components/Input/OtpInput/OtpInput.stories.tsx +20 -0
  21. package/src/components/Input/OtpInput/OtpInput.tsx +85 -0
  22. package/src/components/Input/RadioGroup/RadioGroup.stories.tsx +1 -3
  23. package/src/components/Input/RadioGroup/RadioGroup.tsx +2 -1
  24. package/src/components/Input/SearchBar/SearchBar.stories.tsx +51 -0
  25. package/src/components/Input/SearchBar/SearchBar.tsx +48 -0
  26. package/src/components/Input/SingleCheckBox/SIngleCheckBox.tsx +14 -1
  27. package/src/components/Input/SingleCheckBox/SingleCheckBox.stories.tsx +0 -1
  28. package/src/components/Input/SingleSelect/SingleSelect.stories.tsx +20 -1
  29. package/src/components/Input/SingleSelect/SingleSelect.tsx +86 -11
  30. package/src/components/Input/TextField/TextField.stories.tsx +20 -0
  31. package/src/components/Input/components/FetchingOptionsLoader.tsx +2 -2
  32. package/src/components/Layout/Header/AppHeader.stories.tsx +2 -1
  33. package/src/components/Layout/Header/AppHeader.tsx +6 -6
  34. package/src/components/Layout/Header/HeaderActions/HeaderActions.tsx +14 -21
  35. package/src/components/Layout/LayoutWrapper/LayoutWrapper.stories.tsx +1 -1
  36. package/src/components/Navigation/DropDownMenu/DropDownMenu.stories.tsx +3 -12
  37. package/src/components/export.ts +2 -0
  38. package/src/themes/colorTokens.ts +4 -4
  39. package/src/themes/commonTheme.ts +45 -1
  40. package/src/utils/campxAxios.ts +1 -3
  41. package/types/theme.d.ts +4 -0
  42. /package/src/components/{FeedBack → Feedback}/Spinner/Spinner.css +0 -0
  43. /package/src/components/{FeedBack → Feedback}/Spinner/Spinner.tsx +0 -0
  44. /package/src/components/{Modals → Navigation/DialogButton}/DialogButton.stories.tsx +0 -0
  45. /package/src/components/{Modals → Navigation/DialogButton}/DialogButton.tsx +0 -0
@@ -57,6 +57,22 @@ export const getCommonTheme = (mode: Theme) => {
57
57
  },
58
58
  },
59
59
  },
60
+ MuiChip: {
61
+ styleOverrides: {
62
+ root: {
63
+ backgroundColor: ColorTokens.secondary.main,
64
+ "&:hover": {
65
+ backgroundColor: ColorTokens.secondary.dark,
66
+ },
67
+ borderRadius: "6px",
68
+ padding: "10px 10px",
69
+ fontSize: "14px",
70
+ fontWeight: 400,
71
+ fontFamily: "Heebo",
72
+ margin: "5px",
73
+ },
74
+ },
75
+ },
60
76
  MuiDialog: {
61
77
  styleOverrides: {
62
78
  root: {
@@ -166,6 +182,24 @@ export const getCommonTheme = (mode: Theme) => {
166
182
  },
167
183
  },
168
184
  minWidth: "350px",
185
+ margin: "5px 0px",
186
+ },
187
+ },
188
+ },
189
+ MuiTooltip: {
190
+ styleOverrides: {
191
+ tooltip: {
192
+ backgroundColor: ColorTokens.background.paper,
193
+ padding: "20px 30px",
194
+ minWidth: "300px",
195
+ boxShadow: `0px 2px 5px ${ColorTokens.secondary.main}`,
196
+ border: `1px solid ${ColorTokens.secondary.main}`,
197
+ },
198
+ arrow: {
199
+ color: ColorTokens.background.paper,
200
+ "&:before": {
201
+ border: `1px solid ${ColorTokens.secondary.main}`,
202
+ },
169
203
  },
170
204
  },
171
205
  },
@@ -225,6 +259,7 @@ export const getCommonTheme = (mode: Theme) => {
225
259
  maxHeight: "40px",
226
260
  maxWidth: "400px",
227
261
  },
262
+ overflowY: "auto",
228
263
  },
229
264
  paper: {
230
265
  borderRadius: "10px",
@@ -294,7 +329,16 @@ export const getCommonTheme = (mode: Theme) => {
294
329
  },
295
330
  },
296
331
  },
297
-
332
+ MuiAvatar: {
333
+ styleOverrides: {
334
+ root: {
335
+ background: ColorTokens.background.default,
336
+ cursor: "pointer",
337
+ border: `1px solid ${ColorTokens.primary.main}`,
338
+ color: ColorTokens.primary.main,
339
+ },
340
+ },
341
+ },
298
342
  MuiTypography: {
299
343
  styleOverrides: {
300
344
  h6: {
@@ -1,8 +1,6 @@
1
1
  import axios from "axios";
2
2
  import { sessionKey } from "./constants";
3
3
 
4
- console.log(window.location.pathname.split("/"));
5
-
6
4
  const tenantCode = "campx";
7
5
  const institutionCode = "campx";
8
6
  const isProduction = process.env.NODE_ENV === "production";
@@ -13,7 +11,7 @@ export const campxAxios = axios.create({
13
11
  headers: {
14
12
  "x-tenant-id": tenantCode,
15
13
  ...(!isProduction
16
- ? { campx_session_key: sessionKey || "6658507d9912823dcae621cf" }
14
+ ? { campx_session_key: sessionKey || "665f03e7ae4c45811c3f5818" }
17
15
  : {}),
18
16
  "x-institution-id": institutionCode,
19
17
  },
package/types/theme.d.ts CHANGED
@@ -3,6 +3,7 @@ import "@mui/material/styles";
3
3
  declare module "@mui/material/styles" {
4
4
  interface Theme {
5
5
  palette: {
6
+ [x: string]: any;
6
7
  primary: {
7
8
  dark: string;
8
9
  main: string;
@@ -24,6 +25,9 @@ declare module "@mui/material/styles" {
24
25
  highlight: {
25
26
  main: string;
26
27
  };
28
+ info: {
29
+ main: string;
30
+ };
27
31
  grey: {
28
32
  main: string;
29
33
  };