@truedat/auth 7.5.3 → 7.5.5

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": "@truedat/auth",
3
- "version": "7.5.3",
3
+ "version": "7.5.5",
4
4
  "description": "Truedat Web Auth",
5
5
  "sideEffects": false,
6
6
  "jsnext:main": "src/index.js",
@@ -34,7 +34,7 @@
34
34
  "@testing-library/jest-dom": "^5.16.5",
35
35
  "@testing-library/react": "^12.0.0",
36
36
  "@testing-library/user-event": "^13.2.1",
37
- "@truedat/test": "7.5.3",
37
+ "@truedat/test": "7.5.5",
38
38
  "babel-jest": "^28.1.0",
39
39
  "babel-plugin-dynamic-import-node": "^2.3.3",
40
40
  "babel-plugin-lodash": "^3.3.4",
@@ -86,7 +86,7 @@
86
86
  ]
87
87
  },
88
88
  "dependencies": {
89
- "@truedat/core": "7.5.3",
89
+ "@truedat/core": "7.5.5",
90
90
  "auth0-js": "9.23.3",
91
91
  "decode-uri-component": "^0.2.2",
92
92
  "jwt-decode": "^2.2.0",
@@ -109,5 +109,5 @@
109
109
  "react-dom": ">= 16.8.6 < 17",
110
110
  "semantic-ui-react": ">= 2.0.3 < 2.2"
111
111
  },
112
- "gitHead": "0493d9170268bd7cae7874b0f6d3b251f730e7a0"
112
+ "gitHead": "2a4343b3b2837540358b57d3d647408ab292aa21"
113
113
  }
@@ -12,7 +12,7 @@ const ModalDelete = ({ group: { id, name }, deleteGroup }) => {
12
12
  icon="trash"
13
13
  trigger={
14
14
  <Button
15
- icon="trash"
15
+ icon={<Icon name="trash alternate outline" color="red" />}
16
16
  content={<FormattedMessage id="actions.delete" />}
17
17
  />
18
18
  }
@@ -41,7 +41,7 @@ export const Group = ({ group, groupLoading, deleteGroup }) => {
41
41
  const actions = [
42
42
  {
43
43
  key: "delete",
44
- icon: "trash",
44
+ icon: "trash alternate outline",
45
45
  value: "delete",
46
46
  as: ModalDelete,
47
47
  deleteGroup,
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
4
4
  import { useIntl } from "react-intl";
5
5
  import { connect } from "react-redux";
6
6
  import { useHistory } from "react-router-dom";
7
- import { Table, Header, Icon } from "semantic-ui-react";
7
+ import { Table, Header, Icon, Button } from "semantic-ui-react";
8
8
  import { ConfirmModal } from "@truedat/core/components";
9
9
  import { linkTo } from "@truedat/core/routes";
10
10
  import { columnDecorator } from "@truedat/core/services";
@@ -102,7 +102,11 @@ export const GroupUsersTable = ({
102
102
  <Table.Cell className="pointer" textAlign="center">
103
103
  <ConfirmModal
104
104
  icon="trash"
105
- trigger={<Icon name="trash alternate outline" color="red" />}
105
+ trigger={
106
+ <Button icon color="red" basic size="mini">
107
+ <Icon name="trash alternate outline" color="red" />
108
+ </Button>
109
+ }
106
110
  header={formatMessage({
107
111
  id: "groupUsers.actions.delete.confirmation.header",
108
112
  })}
@@ -50,7 +50,7 @@ exports[`<Group /> matches the latest snapshot 1`] = `
50
50
  >
51
51
  <i
52
52
  aria-hidden="true"
53
- class="trash icon"
53
+ class="red trash alternate outline icon"
54
54
  />
55
55
  Delete
56
56
  </button>
@@ -91,11 +91,19 @@ exports[`<GroupUsersTable /> matches the latest snapshot 1`] = `
91
91
  onConfirm={[Function]}
92
92
  onOpen={[Function]}
93
93
  trigger={
94
- <Icon
95
- as="i"
94
+ <Button
95
+ as="button"
96
+ basic={true}
96
97
  color="red"
97
- name="trash alternate outline"
98
- />
98
+ icon={true}
99
+ size="mini"
100
+ >
101
+ <Icon
102
+ as="i"
103
+ color="red"
104
+ name="trash alternate outline"
105
+ />
106
+ </Button>
99
107
  }
100
108
  />
101
109
  </TableCell>
@@ -142,11 +150,19 @@ exports[`<GroupUsersTable /> matches the latest snapshot 1`] = `
142
150
  onConfirm={[Function]}
143
151
  onOpen={[Function]}
144
152
  trigger={
145
- <Icon
146
- as="i"
153
+ <Button
154
+ as="button"
155
+ basic={true}
147
156
  color="red"
148
- name="trash alternate outline"
149
- />
157
+ icon={true}
158
+ size="mini"
159
+ >
160
+ <Icon
161
+ as="i"
162
+ color="red"
163
+ name="trash alternate outline"
164
+ />
165
+ </Button>
150
166
  }
151
167
  />
152
168
  </TableCell>
@@ -193,11 +209,19 @@ exports[`<GroupUsersTable /> matches the latest snapshot 1`] = `
193
209
  onConfirm={[Function]}
194
210
  onOpen={[Function]}
195
211
  trigger={
196
- <Icon
197
- as="i"
212
+ <Button
213
+ as="button"
214
+ basic={true}
198
215
  color="red"
199
- name="trash alternate outline"
200
- />
216
+ icon={true}
217
+ size="mini"
218
+ >
219
+ <Icon
220
+ as="i"
221
+ color="red"
222
+ name="trash alternate outline"
223
+ />
224
+ </Button>
201
225
  }
202
226
  />
203
227
  </TableCell>
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
- import { Button, Card, Label } from "semantic-ui-react";
3
+ import { Button, Card, Label, Icon } from "semantic-ui-react";
4
4
  import { connect } from "react-redux";
5
5
  import { Link } from "react-router-dom";
6
6
  import { FormattedMessage } from "react-intl";
@@ -28,7 +28,13 @@ export const RoleCards = ({ deleteRole, roles }) => (
28
28
  <div className="ui actions">
29
29
  <ConfirmModal
30
30
  icon="trash"
31
- trigger={<Button icon="trash" basic color="red" />}
31
+ trigger={
32
+ <Button
33
+ icon={<Icon name="trash alternate outline" color="red" />}
34
+ basic
35
+ color="red"
36
+ />
37
+ }
32
38
  header={
33
39
  <FormattedMessage id="roles.actions.delete.confirmation.header" />
34
40
  }
@@ -57,7 +57,13 @@ exports[`<RoleCards /> matches the latest snapshot 1`] = `
57
57
  as="button"
58
58
  basic={true}
59
59
  color="red"
60
- icon="trash"
60
+ icon={
61
+ <Icon
62
+ as="i"
63
+ color="red"
64
+ name="trash alternate outline"
65
+ />
66
+ }
61
67
  />
62
68
  }
63
69
  />
@@ -119,7 +125,13 @@ exports[`<RoleCards /> matches the latest snapshot 1`] = `
119
125
  as="button"
120
126
  basic={true}
121
127
  color="red"
122
- icon="trash"
128
+ icon={
129
+ <Icon
130
+ as="i"
131
+ color="red"
132
+ name="trash alternate outline"
133
+ />
134
+ }
123
135
  />
124
136
  }
125
137
  />
@@ -57,7 +57,7 @@ exports[`<Roles /> matches the latest snapshot 1`] = `
57
57
  >
58
58
  <i
59
59
  aria-hidden="true"
60
- class="trash icon"
60
+ class="red trash alternate outline icon"
61
61
  />
62
62
  </button>
63
63
  </div>
@@ -87,7 +87,7 @@ exports[`<Roles /> matches the latest snapshot 1`] = `
87
87
  >
88
88
  <i
89
89
  aria-hidden="true"
90
- class="trash icon"
90
+ class="red trash alternate outline icon"
91
91
  />
92
92
  </button>
93
93
  </div>
@@ -3,7 +3,7 @@ import React from "react";
3
3
  import { Link } from "react-router-dom";
4
4
  import { connect } from "react-redux";
5
5
  import PropTypes from "prop-types";
6
- import { Button } from "semantic-ui-react";
6
+ import { Button, Icon } from "semantic-ui-react";
7
7
  import { FormattedMessage } from "react-intl";
8
8
  import { ConfirmModal, GroupActions } from "@truedat/core/components";
9
9
  import { linkTo } from "@truedat/core/routes";
@@ -13,7 +13,10 @@ const ModalDelete = ({ deleteUser, id }) => (
13
13
  <ConfirmModal
14
14
  icon="trash"
15
15
  trigger={
16
- <Button icon="trash" content={<FormattedMessage id="actions.delete" />} />
16
+ <Button
17
+ icon={<Icon name="trash alternate outline" color="red" />}
18
+ content={<FormattedMessage id="actions.delete" />}
19
+ />
17
20
  }
18
21
  header={<FormattedMessage id="user.actions.delete.confirmation.header" />}
19
22
  size="small"
@@ -99,7 +99,7 @@ exports[`<User /> matches the latest snapshot 1`] = `
99
99
  >
100
100
  <i
101
101
  aria-hidden="true"
102
- class="trash icon"
102
+ class="red trash alternate outline icon"
103
103
  />
104
104
  Delete
105
105
  </button>