@akemona-org/strapi-plugin-users-permissions 3.13.2 → 3.14.0

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.
@@ -8,10 +8,8 @@ import styled from 'styled-components';
8
8
  // I create it to temporary fix the baseline alignment until we have the design system.
9
9
 
10
10
  const BaselineAlignment = styled.div`
11
- padding-top: ${({ size, top }) => top && size};
12
- padding-right: ${({ size, right }) => right && size};
13
- padding-bottom: ${({ size, bottom }) => bottom && size};
14
- padding-left: ${({ size, left }) => left && size};
11
+ padding: ${({ size, top }) => top && size} ${({ size, right }) => right && size}
12
+ ${({ size, bottom }) => bottom && size} ${({ size, left }) => left && size};
15
13
  `;
16
14
 
17
15
  BaselineAlignment.defaultProps = {
@@ -49,7 +49,7 @@ const Verb = styled.div`
49
49
  justify-content: center;
50
50
  padding: 0 1rem;
51
51
  border-radius: 3px;
52
- color: #ffffff;
52
+ color: #fff;
53
53
  font-size: 12px;
54
54
  font-weight: ${({ theme }) => theme.main.fontWeights.bold};
55
55
  text-transform: uppercase;
@@ -6,41 +6,43 @@ import BaselineAlignement from '../BaselineAlignement';
6
6
  import Bloc from '../Bloc';
7
7
 
8
8
  function FormBloc({ children, actions, isLoading, title, subtitle }) {
9
- return <Bloc>
10
- <BaselineAlignement top size={title ? '18px' : '22px'} />
11
- <Padded left right size="sm">
12
- {isLoading ? (
13
- <>
14
- <LoadingIndicator />
15
- <BaselineAlignement bottom size="22px" />
16
- </>
17
- ) : (
18
- <>
19
- {title && (
20
- <>
21
- <Padded left right size="xs">
22
- <Flex justifyContent="space-between">
23
- <Padded left right size="sm">
24
- <Text fontSize="lg" fontWeight="bold">
25
- {title}
26
- </Text>
27
- {subtitle && (
28
- <Text color="grey" lineHeight="1.8rem">
29
- {subtitle}
9
+ return (
10
+ <Bloc>
11
+ <BaselineAlignement top size={title ? '18px' : '22px'} />
12
+ <Padded left right size="sm">
13
+ {isLoading ? (
14
+ <>
15
+ <LoadingIndicator />
16
+ <BaselineAlignement bottom size="22px" />
17
+ </>
18
+ ) : (
19
+ <>
20
+ {title && (
21
+ <>
22
+ <Padded left right size="xs">
23
+ <Flex justifyContent="space-between">
24
+ <Padded left right size="sm">
25
+ <Text fontSize="lg" fontWeight="bold">
26
+ {title}
30
27
  </Text>
31
- )}
32
- </Padded>
33
- {actions}
34
- </Flex>
35
- </Padded>
36
- <BaselineAlignement top size="18px" />
37
- </>
38
- )}
39
- {children}
40
- </>
41
- )}
42
- </Padded>
43
- </Bloc>
28
+ {subtitle && (
29
+ <Text color="grey" lineHeight="1.8rem">
30
+ {subtitle}
31
+ </Text>
32
+ )}
33
+ </Padded>
34
+ {actions}
35
+ </Flex>
36
+ </Padded>
37
+ <BaselineAlignement top size="18px" />
38
+ </>
39
+ )}
40
+ {children}
41
+ </>
42
+ )}
43
+ </Padded>
44
+ </Bloc>
45
+ );
44
46
  }
45
47
 
46
48
  FormBloc.defaultProps = {
@@ -2,8 +2,8 @@ import styled from 'styled-components';
2
2
 
3
3
  const Container = styled.div`
4
4
  margin: 0 3.2rem 0 1.9rem;
5
- padding: 0 1.4rem 0 0rem;
6
- border-bottom: 1px solid rgba(14, 22, 34, 0.04);
5
+ padding: 0 1.4rem 0 0;
6
+ border-bottom: 1px solid rgb(14 22 34 / 4%);
7
7
  color: #333740;
8
8
  font-size: 1.3rem;
9
9
  > div {
@@ -16,12 +16,14 @@ const CheckboxWrapper = styled.div`
16
16
  font-size: 1.4rem;
17
17
  color: ${({ theme }) => theme.main.colors.greyDark};
18
18
  }
19
+
19
20
  cursor: pointer;
20
21
  }
21
22
  &:hover {
22
23
  ${PolicyWrapper} {
23
24
  opacity: 1;
24
25
  }
26
+
25
27
  background-color: ${({ theme }) => theme.main.colors.mediumGrey};
26
28
  }
27
29
  ${({ isActive, theme }) =>
@@ -4,7 +4,7 @@ import styled from 'styled-components';
4
4
  const SubCategoryWrapper = styled.div`
5
5
  padding-bottom: 2.6rem;
6
6
  input[type='checkbox'] {
7
- &:after {
7
+ &::after {
8
8
  color: ${({ theme }) => theme.main.colors.mediumBlue};
9
9
  }
10
10
  }
@@ -15,7 +15,7 @@ const Border = styled.div`
15
15
  flex: 1;
16
16
  align-self: center;
17
17
  border-top: 1px solid #f6f6f6;
18
- padding: 0px 10px;
18
+ padding: 0 10px;
19
19
  `;
20
20
 
21
21
  function SubCategory({ subCategory }) {
@@ -4,9 +4,11 @@ import pluginPermissions from '../../../permissions';
4
4
  import RolesCreatePage from '../CreatePage';
5
5
 
6
6
  function ProtectedRolesCreatePage() {
7
- return <CheckPagePermissions permissions={pluginPermissions.createRole}>
8
- <RolesCreatePage />
9
- </CheckPagePermissions>
7
+ return (
8
+ <CheckPagePermissions permissions={pluginPermissions.createRole}>
9
+ <RolesCreatePage />
10
+ </CheckPagePermissions>
11
+ );
10
12
  }
11
13
 
12
14
  export default ProtectedRolesCreatePage;
@@ -4,9 +4,11 @@ import pluginPermissions from '../../../permissions';
4
4
  import RolesEditPage from '../EditPage';
5
5
 
6
6
  function ProtectedRolesEditPage() {
7
- return <CheckPagePermissions permissions={pluginPermissions.updateRole}>
8
- <RolesEditPage />
9
- </CheckPagePermissions>
7
+ return (
8
+ <CheckPagePermissions permissions={pluginPermissions.updateRole}>
9
+ <RolesEditPage />
10
+ </CheckPagePermissions>
11
+ );
10
12
  }
11
13
 
12
14
  export default ProtectedRolesEditPage;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.13.2",
6
+ "version": "3.14.0",
7
7
  "description": "Protect your API with a full-authentication process based on JWT",
8
8
  "strapi": {
9
9
  "name": "Roles & Permissions",
@@ -15,8 +15,8 @@
15
15
  "test": "echo \"no tests yet\""
16
16
  },
17
17
  "dependencies": {
18
- "@akemona-org/strapi-helper-plugin": "3.13.2",
19
- "@akemona-org/strapi-utils": "3.13.2",
18
+ "@akemona-org/strapi-helper-plugin": "3.14.0",
19
+ "@akemona-org/strapi-utils": "3.14.0",
20
20
  "@buffetjs/core": "3.3.8",
21
21
  "@buffetjs/custom": "3.3.8",
22
22
  "@buffetjs/hooks": "3.3.8",
@@ -62,9 +62,9 @@
62
62
  "url": "git://github.com/akemona/strapi.git"
63
63
  },
64
64
  "engines": {
65
- "node": ">=14.19.1 <=18.x.x",
65
+ "node": ">=18.17.0 <=20.x.x",
66
66
  "npm": ">=6.0.0"
67
67
  },
68
68
  "license": "SEE LICENSE IN LICENSE",
69
- "gitHead": "b0b438b488e293906dc4041239967f16c68e281a"
69
+ "gitHead": "241f7ad8f4277aa7f522f580557e15d65af4a0cc"
70
70
  }