cozy-sharing 15.0.2 → 15.0.3
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.
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import Button from 'cozy-ui/transpiled/react/Buttons';
|
|
2
4
|
import { AvatarList } from './AvatarList';
|
|
3
5
|
import { recipients } from '../../../.storybook/fixtures/recipients';
|
|
4
6
|
var meta = {
|
|
@@ -8,12 +10,23 @@ var meta = {
|
|
|
8
10
|
}
|
|
9
11
|
};
|
|
10
12
|
export default meta;
|
|
13
|
+
|
|
14
|
+
var AvatarListWithButton = function AvatarListWithButton(args) {
|
|
15
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
16
|
+
className: "u-flex"
|
|
17
|
+
}, /*#__PURE__*/React.createElement(AvatarList, args), /*#__PURE__*/React.createElement(Button, {
|
|
18
|
+
label: "Add"
|
|
19
|
+
}));
|
|
20
|
+
};
|
|
21
|
+
|
|
11
22
|
export var Default = {
|
|
12
23
|
name: 'Default',
|
|
24
|
+
render: AvatarListWithButton,
|
|
13
25
|
args: {}
|
|
14
26
|
};
|
|
15
27
|
export var WithGroups = {
|
|
16
28
|
name: 'With groups',
|
|
29
|
+
render: AvatarListWithButton,
|
|
17
30
|
args: {
|
|
18
31
|
recipients: [].concat(_toConsumableArray(recipients), [{
|
|
19
32
|
name: 'Group 1',
|
|
@@ -23,4 +36,11 @@ export var WithGroups = {
|
|
|
23
36
|
}]
|
|
24
37
|
}])
|
|
25
38
|
}
|
|
39
|
+
};
|
|
40
|
+
export var WithLink = {
|
|
41
|
+
name: 'With link',
|
|
42
|
+
render: AvatarListWithButton,
|
|
43
|
+
args: {
|
|
44
|
+
link: {}
|
|
45
|
+
}
|
|
26
46
|
};
|
package/dist/stylesheet.css
CHANGED
|
@@ -167,8 +167,7 @@
|
|
|
167
167
|
.recipient__recipients-avatars--link___1qeON svg {
|
|
168
168
|
fill: var(--genericRecipientColor);
|
|
169
169
|
}
|
|
170
|
-
.recipient__recipients-
|
|
171
|
-
.recipient__recipients-avatars--avatar___-owjC {
|
|
170
|
+
.recipient__recipients-avatars___1npjD > *:not(:first-child) {
|
|
172
171
|
margin-right: -0.6rem;
|
|
173
172
|
}
|
|
174
173
|
/* imported from CozyPassFingerprintDialogContent.styl */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cozy-sharing",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.3",
|
|
4
4
|
"description": "Provides sharing login for React applications.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "Cozy",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"sideEffects": [
|
|
72
72
|
"*.css"
|
|
73
73
|
],
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "7e8239bce9550d8ced041f65679bda3577ab7a7f"
|
|
75
75
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import Button from 'cozy-ui/transpiled/react/Buttons'
|
|
4
|
+
|
|
1
5
|
import { AvatarList } from './AvatarList'
|
|
2
6
|
import { recipients } from '../../../.storybook/fixtures/recipients'
|
|
3
7
|
|
|
@@ -10,13 +14,24 @@ const meta = {
|
|
|
10
14
|
|
|
11
15
|
export default meta
|
|
12
16
|
|
|
17
|
+
const AvatarListWithButton = args => {
|
|
18
|
+
return (
|
|
19
|
+
<div className="u-flex">
|
|
20
|
+
<AvatarList {...args} />
|
|
21
|
+
<Button label="Add" />
|
|
22
|
+
</div>
|
|
23
|
+
)
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
export const Default = {
|
|
14
27
|
name: 'Default',
|
|
28
|
+
render: AvatarListWithButton,
|
|
15
29
|
args: {}
|
|
16
30
|
}
|
|
17
31
|
|
|
18
32
|
export const WithGroups = {
|
|
19
33
|
name: 'With groups',
|
|
34
|
+
render: AvatarListWithButton,
|
|
20
35
|
args: {
|
|
21
36
|
recipients: [
|
|
22
37
|
...recipients,
|
|
@@ -32,3 +47,11 @@ export const WithGroups = {
|
|
|
32
47
|
]
|
|
33
48
|
}
|
|
34
49
|
}
|
|
50
|
+
|
|
51
|
+
export const WithLink = {
|
|
52
|
+
name: 'With link',
|
|
53
|
+
render: AvatarListWithButton,
|
|
54
|
+
args: {
|
|
55
|
+
link: {}
|
|
56
|
+
}
|
|
57
|
+
}
|