@campxdev/campx-web-utils 0.5.6 → 0.5.8

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/campx-web-utils",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "main": "./export.ts",
5
5
  "private": false,
6
6
  "peerDependencies": {
@@ -1,5 +1,5 @@
1
1
  import { Icons } from '@campxdev/react-blueprint';
2
- import { useTheme } from '@mui/material';
2
+ import { Backdrop, useTheme } from '@mui/material';
3
3
  import Box from '@mui/material/Box';
4
4
  import SpeedDial from '@mui/material/SpeedDial';
5
5
  import SpeedDialAction from '@mui/material/SpeedDialAction';
@@ -31,12 +31,15 @@ const HelpDocs: React.FC<HelpDocsProps> = ({ actions }) => {
31
31
  zIndex: 1000,
32
32
  }}
33
33
  >
34
+ <Backdrop open={open} />
34
35
  <SpeedDial
35
36
  ariaLabel="Custom Help Docs"
36
37
  sx={{
37
38
  position: 'absolute',
38
- bottom: 6,
39
- right: 42,
39
+ bottom: 0,
40
+ right: 40,
41
+ display: 'flex',
42
+ alignItems: 'flex-end',
40
43
  '& .MuiFab-primary': {
41
44
  backgroundColor: theme.palette.highlight.highlightBlue,
42
45
  borderRadius: '8px',
@@ -49,12 +52,18 @@ const HelpDocs: React.FC<HelpDocsProps> = ({ actions }) => {
49
52
  backgroundColor: theme.palette.highlight.highlightBlue,
50
53
  },
51
54
  },
55
+ '& .MuiSpeedDialAction-fab': {
56
+ margin: '0 0 16px 0',
57
+ '&:not(:last-child)': {
58
+ marginBottom: '8px',
59
+ },
60
+ },
52
61
  }}
53
62
  icon={<Icons.HelpDocsIcon size={20} />}
54
63
  onClose={handleClose}
55
64
  onOpen={handleOpen}
56
65
  open={open}
57
- direction="left"
66
+ direction="up"
58
67
  >
59
68
  {actions.map((action: HelpDocsActionType) => (
60
69
  <SpeedDialAction
@@ -10,7 +10,6 @@ export const RegulationSelector = (props: SingleSelectProps) => {
10
10
  }}
11
11
  dbLabelProps={{
12
12
  labelKey: 'r.name',
13
- subLabelKey: 'batch',
14
13
  }}
15
14
  {...props}
16
15
  optionsApiEndPoint="dropdowns/regulations"