playbook_ui_docs 14.5.0.pre.alpha.PBNTR568dropdowncleaning4044 → 14.5.0.pre.alpha.PBNTR595popoverwidthpropfilterpopoverprop4158
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_clear_selection.md +1 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_custom_width.html.erb +41 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_custom_width.jsx +71 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_custom_width_rails.md +1 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_custom_width_react.md +1 -0
- data/app/pb_kits/playbook/pb_filter/docs/_filter_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_filter/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_filter/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.html.erb +93 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_multi_level_select_reset.md +1 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.html.erb +336 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_multiple_users_stacked_size.jsx +97 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_popover/docs/_popover_default.html.erb +1 -1
- data/dist/playbook-doc.js +1 -1
- metadata +11 -2
@@ -0,0 +1,97 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import Flex from '../../pb_flex/_flex'
|
3
|
+
import Title from '../../pb_title/_title'
|
4
|
+
import MultipleUsersStacked from '../_multiple_users_stacked'
|
5
|
+
|
6
|
+
const MultipleUsersStackedSize = (props) => {
|
7
|
+
const sizes = [
|
8
|
+
{ label: 'S', size: 'sm' },
|
9
|
+
{ label: 'M', size: 'md' },
|
10
|
+
{ label: 'L', size: 'lg' },
|
11
|
+
{ label: 'XL', size: 'xl' },
|
12
|
+
]
|
13
|
+
|
14
|
+
const usersList = [
|
15
|
+
[
|
16
|
+
{
|
17
|
+
name: 'Patrick Welch',
|
18
|
+
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
19
|
+
},
|
20
|
+
],
|
21
|
+
[
|
22
|
+
{
|
23
|
+
name: 'Patrick Welch',
|
24
|
+
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
name: 'Lucille Sanchez',
|
28
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
29
|
+
},
|
30
|
+
],
|
31
|
+
[
|
32
|
+
{
|
33
|
+
name: 'Patrick Welch',
|
34
|
+
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
35
|
+
},
|
36
|
+
{
|
37
|
+
name: 'Lucille Sanchez',
|
38
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
39
|
+
},
|
40
|
+
{
|
41
|
+
name: 'Beverly Reyes',
|
42
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
|
43
|
+
},
|
44
|
+
],
|
45
|
+
[
|
46
|
+
{
|
47
|
+
name: 'Patrick Welch',
|
48
|
+
imageUrl: 'https://randomuser.me/api/portraits/men/9.jpg',
|
49
|
+
},
|
50
|
+
{
|
51
|
+
name: 'Lucille Sanchez',
|
52
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/6.jpg',
|
53
|
+
},
|
54
|
+
{
|
55
|
+
name: 'Beverly Reyes',
|
56
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/74.jpg',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
name: 'Keith Craig',
|
60
|
+
imageUrl: 'https://randomuser.me/api/portraits/men/40.jpg',
|
61
|
+
},
|
62
|
+
{
|
63
|
+
name: 'Alicia Cooper',
|
64
|
+
imageUrl: 'https://randomuser.me/api/portraits/women/46.jpg',
|
65
|
+
},
|
66
|
+
],
|
67
|
+
]
|
68
|
+
|
69
|
+
return (
|
70
|
+
<>
|
71
|
+
{sizes.map(({ label, size }) => (
|
72
|
+
<Flex key={size}
|
73
|
+
orientation="column"
|
74
|
+
>
|
75
|
+
<Title paddingTop='sm' >{label}</Title>
|
76
|
+
<Flex>
|
77
|
+
{usersList.map((users, index) => (
|
78
|
+
<Flex key={index}
|
79
|
+
paddingRight='sm'
|
80
|
+
>
|
81
|
+
<MultipleUsersStacked
|
82
|
+
size={size}
|
83
|
+
users={users}
|
84
|
+
variant="bubble"
|
85
|
+
{...props}
|
86
|
+
/>
|
87
|
+
</Flex>
|
88
|
+
))}
|
89
|
+
</Flex>
|
90
|
+
<br />
|
91
|
+
</Flex>
|
92
|
+
))}
|
93
|
+
</>
|
94
|
+
)
|
95
|
+
}
|
96
|
+
|
97
|
+
export default MultipleUsersStackedSize
|
@@ -3,11 +3,13 @@ examples:
|
|
3
3
|
rails:
|
4
4
|
- multiple_users_stacked_default: Default
|
5
5
|
- multiple_users_stacked_bubble: Bubble
|
6
|
+
- multiple_users_stacked_size: Sizes
|
6
7
|
|
7
8
|
|
8
9
|
react:
|
9
10
|
- multiple_users_stacked_default: Default
|
10
11
|
- multiple_users_stacked_bubble: Bubble
|
12
|
+
- multiple_users_stacked_size: Sizes
|
11
13
|
|
12
14
|
swift:
|
13
15
|
- multiple_users_stacked_default_swift: Default
|
@@ -1,2 +1,3 @@
|
|
1
1
|
export { default as MultipleUsersStackedDefault } from './_multiple_users_stacked_default.jsx'
|
2
2
|
export { default as MultipleUsersStackedBubble } from './_multiple_users_stacked_bubble.jsx'
|
3
|
+
export { default as MultipleUsersStackedSize } from './_multiple_users_stacked_size.jsx'
|