playbook_ui 2.9.9 → 3.0.0
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/_playbook.scss +10 -4
- data/app/pb_kits/playbook/index.js +10 -0
- data/app/pb_kits/playbook/kits/pb_circle_icon_button.js +4 -0
- data/app/pb_kits/playbook/kits/pb_select.js +4 -0
- data/app/pb_kits/playbook/kits/pb_selectable_card.js +4 -0
- data/app/pb_kits/playbook/kits/pb_textarea.js +4 -0
- data/app/pb_kits/playbook/packs/examples.js +8 -0
- data/app/pb_kits/playbook/packs/kits.js +4 -2
- data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -1
- data/app/pb_kits/playbook/pb_body/_body_mixins.scss +3 -0
- data/app/pb_kits/playbook/pb_button/_button.jsx +4 -0
- data/app/pb_kits/playbook/pb_card/_card.scss +50 -17
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.html.erb +10 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.jsx +30 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/_circle_icon_button.scss +32 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.rb +22 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +29 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +38 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.html.erb +25 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +34 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_dashboard_value/_dashboard_value.html.erb +1 -1
- data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb +4 -0
- data/app/pb_kits/playbook/pb_date/_date.jsx +51 -17
- data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +10 -2
- data/app/pb_kits/playbook/pb_form/_form.scss +11 -0
- data/app/pb_kits/playbook/pb_form/_form_form_with.html.erb +3 -0
- data/app/pb_kits/playbook/pb_form/_form_simple_form.html.erb +3 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +14 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +36 -0
- data/app/pb_kits/playbook/pb_form/docs/example.yml +5 -0
- data/app/pb_kits/playbook/pb_form/form.rb +28 -0
- data/app/pb_kits/playbook/pb_form/form/form_with_form.rb +38 -0
- data/app/pb_kits/playbook/pb_form/form/simple_form_form.rb +45 -0
- data/app/pb_kits/playbook/pb_form/form_builder.rb +23 -0
- data/app/pb_kits/playbook/pb_form/form_builder/action_area.rb +40 -0
- data/app/pb_kits/playbook/pb_form/form_builder/form_with_form_builder.rb +11 -0
- data/app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb +25 -0
- data/app/pb_kits/playbook/pb_form/form_builder/text_input_builder.rb +22 -0
- data/app/pb_kits/playbook/pb_icon_circle/_icon_circle.jsx +19 -14
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_color.jsx +19 -0
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_default.jsx +5 -4
- data/app/pb_kits/playbook/pb_icon_circle/docs/_icon_circle_size.jsx +16 -0
- data/app/pb_kits/playbook/pb_icon_circle/docs/example.yml +2 -1
- data/app/pb_kits/playbook/pb_icon_circle/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_kit/dateTime.js +4 -0
- data/app/pb_kits/playbook/pb_layout/_layout.jsx +50 -48
- data/app/pb_kits/playbook/pb_layout/_layout.scss +8 -12
- data/app/pb_kits/playbook/pb_layout/_layout_mixin.scss +6 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_colors.html.erb +24 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_default.jsx +15 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes.html.erb +32 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_sizes_dark.html.erb +32 -0
- data/app/pb_kits/playbook/pb_layout/docs/_layout_transparent.html.erb +8 -0
- data/app/pb_kits/playbook/pb_layout/docs/example.yml +5 -11
- data/app/pb_kits/playbook/pb_layout/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_layout/layout.rb +5 -7
- data/app/pb_kits/playbook/pb_message/_message.jsx +68 -11
- data/app/pb_kits/playbook/pb_message/docs/_message_default.jsx +59 -2
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.jsx +23 -16
- data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +15 -6
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_line.jsx +10 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text.jsx +10 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.html.erb +1 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_text_background.jsx +12 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +4 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +3 -1
- data/app/pb_kits/playbook/pb_section_separator/section_separator.rb +4 -1
- data/app/pb_kits/playbook/pb_select/_select.html.erb +33 -0
- data/app/pb_kits/playbook/pb_select/_select.jsx +110 -0
- data/app/pb_kits/playbook/pb_select/_select.scss +50 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_blank.html.erb +19 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_blank.jsx +30 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.html.erb +8 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_custom_select.jsx +19 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_dark.html.erb +24 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_dark.jsx +31 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_default.html.erb +23 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_default.jsx +30 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled.html.erb +19 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled.jsx +30 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled_options.html.erb +33 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_disabled_options.jsx +44 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_required.html.erb +17 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_required.jsx +28 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_value_text_same.html.erb +18 -0
- data/app/pb_kits/playbook/pb_select/docs/_select_value_text_same.jsx +29 -0
- data/app/pb_kits/playbook/pb_select/docs/example.yml +22 -0
- data/app/pb_kits/playbook/pb_select/docs/index.js +8 -0
- data/app/pb_kits/playbook/pb_select/docs/nitro_theme.gemspec +41 -0
- data/app/pb_kits/playbook/pb_select/select.rb +60 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.html.erb +25 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx +97 -0
- data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +87 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.html.erb +25 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.jsx +48 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.html.erb +45 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_dark.jsx +68 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.html.erb +39 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.jsx +67 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_single_select.html.erb +30 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_single_select.jsx +54 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/example.yml +13 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.rb +51 -0
- data/app/pb_kits/playbook/pb_stat_value/_stat_value.html.erb +1 -1
- data/app/pb_kits/playbook/pb_stat_value/stat_value.rb +5 -0
- data/app/pb_kits/playbook/pb_text_input/_text_input.html.erb +13 -9
- data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +12 -6
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +44 -44
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_default.jsx +68 -12
- data/app/pb_kits/playbook/pb_textarea/_textarea.html.erb +20 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +54 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea.scss +31 -0
- data/app/pb_kits/playbook/pb_textarea/_textarea_mixin.scss +51 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.html.erb +3 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_custom.jsx +16 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.html.erb +9 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_dark.jsx +21 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.html.erb +9 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_default.jsx +21 -0
- data/app/pb_kits/playbook/pb_textarea/docs/example.yml +15 -0
- data/app/pb_kits/playbook/pb_textarea/docs/index.js +3 -0
- data/app/pb_kits/playbook/pb_textarea/textarea.rb +30 -0
- data/app/pb_kits/playbook/pb_title/_title_mixin.scss +3 -1
- data/app/pb_kits/playbook/pb_user/_user.html.erb +3 -1
- data/app/pb_kits/playbook/pb_user/_user.jsx +76 -16
- data/app/pb_kits/playbook/pb_user/docs/_user_default.jsx +42 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_size.jsx +31 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx +24 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_vertical_size.jsx +37 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.html.erb +40 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_with_territory.jsx +57 -0
- data/app/pb_kits/playbook/pb_user/docs/example.yml +8 -0
- data/app/pb_kits/playbook/pb_user/docs/index.js +5 -0
- data/app/pb_kits/playbook/pb_user/user.rb +12 -1
- data/app/pb_kits/playbook/props.rb +11 -3
- data/app/pb_kits/playbook/tokens/_colors.scss +16 -0
- data/app/pb_kits/playbook/tokens/_transition.scss +1 -0
- data/lib/playbook/version.rb +1 -1
- metadata +117 -15
- data/app/pb_kits/playbook/pb_layout/docs/_layout_lg.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_lg_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_md.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_md_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_sm.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_sm_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_xl.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_xl_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_xs.html.erb +0 -4
- data/app/pb_kits/playbook/pb_layout/docs/_layout_xs.jsx +0 -15
- data/app/pb_kits/playbook/pb_layout/docs/_layout_xs_dark.html.erb +0 -4
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_default.jsx +0 -10
@@ -0,0 +1,16 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {Textarea} from "../../"
|
3
|
+
|
4
|
+
function TextareaCustom() {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Textarea label="Label">
|
8
|
+
<textarea class="my_custom_class" name="custom_textarea" rows={4}>
|
9
|
+
{`Content goes here.`}
|
10
|
+
</textarea>
|
11
|
+
</Textarea>
|
12
|
+
</div>
|
13
|
+
)
|
14
|
+
}
|
15
|
+
|
16
|
+
export default TextareaCustom
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= pb_rails("textarea", props: { label: "Label", rows: 4, dark: true }) %>
|
2
|
+
|
3
|
+
<br/>
|
4
|
+
|
5
|
+
<%= pb_rails("textarea", props: { label: "Label", placeholder: "Placeholder text", dark: true }) %>
|
6
|
+
|
7
|
+
<br/>
|
8
|
+
|
9
|
+
<%= pb_rails("textarea", props: { label: "Label", name: "comment", value: "Default value text", dark: true }) %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {Textarea} from "../../"
|
3
|
+
|
4
|
+
function TextareaDark() {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Textarea label="Label"rows={4} dark/>
|
8
|
+
|
9
|
+
<br/>
|
10
|
+
|
11
|
+
<Textarea label="Label" placeholder="Placeholder text" dark/>
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<Textarea label="Label" name="comment" placeholder="Placeholder text" value="Default value text" dark/>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
)
|
19
|
+
}
|
20
|
+
|
21
|
+
export default TextareaDark
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= pb_rails("textarea", props: { label: "Label", rows: 4}) %>
|
2
|
+
|
3
|
+
<br/>
|
4
|
+
|
5
|
+
<%= pb_rails("textarea", props: { label: "Label", placeholder: "Placeholder text" }) %>
|
6
|
+
|
7
|
+
<br/>
|
8
|
+
|
9
|
+
<%= pb_rails("textarea", props: { label: "Label", name: "comment", value: "Default value text" }) %>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {Textarea} from "../../"
|
3
|
+
|
4
|
+
function TextareaDefault() {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<Textarea label="Label"rows={4}/>
|
8
|
+
|
9
|
+
<br/>
|
10
|
+
|
11
|
+
<Textarea label="Label" placeholder="Placeholder text"/>
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<Textarea label="Label" name="comment" placeholder="Placeholder text" value="Default value text"/>
|
16
|
+
|
17
|
+
</div>
|
18
|
+
)
|
19
|
+
}
|
20
|
+
|
21
|
+
export default TextareaDefault
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Playbook
|
4
|
+
module PbTextarea
|
5
|
+
class Textarea
|
6
|
+
include Playbook::Props
|
7
|
+
|
8
|
+
partial "pb_textarea/textarea"
|
9
|
+
|
10
|
+
prop :object
|
11
|
+
prop :method
|
12
|
+
prop :label
|
13
|
+
prop :placeholder
|
14
|
+
prop :value
|
15
|
+
prop :name
|
16
|
+
prop :dark, type: Playbook::Props::Boolean,
|
17
|
+
default: false
|
18
|
+
prop :rows, type: Playbook::Props::Number,
|
19
|
+
default: 4
|
20
|
+
|
21
|
+
def classname
|
22
|
+
generate_classname("pb_textarea_kit", dark_class)
|
23
|
+
end
|
24
|
+
|
25
|
+
def dark_class
|
26
|
+
dark ? "dark" : nil
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -5,13 +5,15 @@
|
|
5
5
|
@mixin pb_title(
|
6
6
|
$fontSize: $heading_1,
|
7
7
|
$fontWeight: $lighter,
|
8
|
-
$lineHeight: $lh_tighter
|
8
|
+
$lineHeight: $lh_tighter
|
9
|
+
){
|
9
10
|
font-size: $fontSize;
|
10
11
|
letter-spacing: $lspace_tight;
|
11
12
|
font-weight: $fontWeight;
|
12
13
|
color: $text_lt_default;
|
13
14
|
margin: 0;
|
14
15
|
line-height: $lineHeight;
|
16
|
+
font-family: $font_family_base;
|
15
17
|
}
|
16
18
|
|
17
19
|
@mixin pb_title_1 {
|
@@ -11,8 +11,10 @@
|
|
11
11
|
<% end %>
|
12
12
|
<%= content_tag(:div,
|
13
13
|
class: "content_wrapper") do %>
|
14
|
-
<%= pb_rails("title", props: { text: object.name, size: object.title_size }) %>
|
14
|
+
<%= pb_rails("title", props: { text: object.name, size: object.title_size, dark: object.dark }) %>
|
15
15
|
<%= pb_rails("body", props: {
|
16
|
+
text: object.name,
|
17
|
+
dark: object.dark,
|
16
18
|
text: object.title,
|
17
19
|
color: "light"
|
18
20
|
}) %>
|
@@ -1,21 +1,81 @@
|
|
1
|
+
/* @flow */
|
2
|
+
|
1
3
|
import React from 'react';
|
2
|
-
import
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
4
|
+
import classnames from 'classnames';
|
5
|
+
|
6
|
+
import {
|
7
|
+
Title,
|
8
|
+
Body,
|
9
|
+
Avatar
|
10
|
+
} from '../'
|
11
|
+
|
12
|
+
type UserProps = {
|
13
|
+
className?: String,
|
14
|
+
id?: String,
|
15
|
+
name: String,
|
16
|
+
territory?: String,
|
17
|
+
title?: String,
|
18
|
+
size?: 'sm' | 'md' | 'lg',
|
19
|
+
align?: 'left' | 'center' | 'right',
|
20
|
+
orientation?: 'horiztonal' | 'vertical',
|
21
|
+
avatar?: Boolean,
|
22
|
+
avatarUrl?: String,
|
23
|
+
}
|
24
|
+
|
25
|
+
const userSizes = {
|
26
|
+
sm: 4,
|
27
|
+
md: 4,
|
28
|
+
lg: 3,
|
29
|
+
}
|
30
|
+
|
31
|
+
const avatarSizes = {
|
32
|
+
sm: 'sm',
|
33
|
+
md: 'md',
|
34
|
+
lg: 'xl',
|
17
35
|
}
|
18
36
|
|
19
|
-
User
|
37
|
+
const User = (props: UserProps) => {
|
38
|
+
const {
|
39
|
+
name='Anna Black',
|
40
|
+
territory='',
|
41
|
+
title='',
|
42
|
+
align='left',
|
43
|
+
orientation='horizontal',
|
44
|
+
size='sm',
|
45
|
+
avatar=false,
|
46
|
+
avatarUrl,
|
47
|
+
} = props
|
48
|
+
|
49
|
+
const print_avatar = (avatar, avatarUrl) => {
|
50
|
+
if (avatar == true | avatarUrl != null ) {
|
51
|
+
return (
|
52
|
+
<Avatar name={name} size={avatarSizes[size]} image_url={avatarUrl}/>
|
53
|
+
)
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
const print_details = (territory="") => {
|
58
|
+
if (territory !== "") {
|
59
|
+
return (
|
60
|
+
<Body color='light'>{`${territory} • ${title}`}</Body>
|
61
|
+
)
|
62
|
+
}
|
63
|
+
else {
|
64
|
+
return (
|
65
|
+
<Body color='light'>{`${title}`}</Body>
|
66
|
+
)
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
return (
|
71
|
+
<div className={`pb_user_kit_${align}_${orientation}_${size}`}>
|
72
|
+
{print_avatar(avatar, avatarUrl)}
|
73
|
+
<div className="content_wrapper">
|
74
|
+
<Title size={userSizes[size]} text={`${name}`}/>
|
75
|
+
{print_details(territory)}
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
)
|
79
|
+
}
|
20
80
|
|
21
81
|
export default User;
|
@@ -3,7 +3,48 @@ import {User} from "../../"
|
|
3
3
|
|
4
4
|
function UserDefault() {
|
5
5
|
return (
|
6
|
-
<
|
6
|
+
<div class="pb--doc-demo-row">
|
7
|
+
|
8
|
+
<div>
|
9
|
+
<User
|
10
|
+
name='Anna Black'
|
11
|
+
title='Remodeling Consultant'
|
12
|
+
orientation="vertical"
|
13
|
+
align="center"
|
14
|
+
size='lg'
|
15
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
16
|
+
/>
|
17
|
+
</div>
|
18
|
+
|
19
|
+
<div>
|
20
|
+
<User
|
21
|
+
name='Anna Black'
|
22
|
+
title='Remodeling Consultant'
|
23
|
+
orientation="horizontal"
|
24
|
+
align="left"
|
25
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div>
|
30
|
+
<User
|
31
|
+
name='Anna Black'
|
32
|
+
orientation="horizontal"
|
33
|
+
align="left"
|
34
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
35
|
+
/>
|
36
|
+
|
37
|
+
<br/>
|
38
|
+
|
39
|
+
<User
|
40
|
+
name='Anna Black'
|
41
|
+
orientation="horizontal"
|
42
|
+
align="left"
|
43
|
+
avatar={true}
|
44
|
+
/>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
</div>
|
7
48
|
)
|
8
49
|
}
|
9
50
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {User} from "../../"
|
3
|
+
|
4
|
+
function UserDefault() {
|
5
|
+
return (
|
6
|
+
<div class="pb--doc-demo-row">
|
7
|
+
<User
|
8
|
+
name='Anna Black'
|
9
|
+
title='Remodeling Consultant'
|
10
|
+
size='sm'
|
11
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
12
|
+
/>
|
13
|
+
|
14
|
+
<User
|
15
|
+
name='Anna Black'
|
16
|
+
title='Remodeling Consultant'
|
17
|
+
size='md'
|
18
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
19
|
+
/>
|
20
|
+
|
21
|
+
<User
|
22
|
+
name='Anna Black'
|
23
|
+
title='Remodeling Consultant'
|
24
|
+
size='lg'
|
25
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
)
|
29
|
+
}
|
30
|
+
|
31
|
+
export default UserDefault;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {User} from "../../"
|
3
|
+
|
4
|
+
function UserTextOnly() {
|
5
|
+
return (
|
6
|
+
<div class="pb--doc-demo-row">
|
7
|
+
<User
|
8
|
+
name='Anna Black'
|
9
|
+
title='Remodeling Consultant'
|
10
|
+
orientation='horizontal'
|
11
|
+
align='center'
|
12
|
+
size='lg'
|
13
|
+
/>
|
14
|
+
<User
|
15
|
+
name='Anna Black'
|
16
|
+
title='Remodeling Consultant'
|
17
|
+
orientation='horizontal'
|
18
|
+
align='left'
|
19
|
+
/>
|
20
|
+
</div>
|
21
|
+
)
|
22
|
+
}
|
23
|
+
|
24
|
+
export default UserTextOnly;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import {User} from "../../"
|
3
|
+
|
4
|
+
function UserVerticalSize() {
|
5
|
+
return (
|
6
|
+
<div>
|
7
|
+
<User
|
8
|
+
name='Anna Black'
|
9
|
+
title='Remodeling Consultant'
|
10
|
+
orientation='vertical'
|
11
|
+
align='center'
|
12
|
+
size='sm'
|
13
|
+
avatarUrl='https://randomuser.me/api/portraits/women/44.jpg'
|
14
|
+
/>
|
15
|
+
<br/><br/>
|
16
|
+
<User
|
17
|
+
name='Anna Black'
|
18
|
+
title='Remodeling Consultant'
|
19
|
+
orientation='vertical'
|
20
|
+
align='center'
|
21
|
+
size='md'
|
22
|
+
avatarUrl='https://randomuser.me/api/portraits/women/44.jpg'
|
23
|
+
/>
|
24
|
+
<br/><br/>
|
25
|
+
<User
|
26
|
+
name='Anna Black'
|
27
|
+
title='Remodeling Consultant'
|
28
|
+
orientation='vertical'
|
29
|
+
align='center'
|
30
|
+
size='lg'
|
31
|
+
avatarUrl='https://randomuser.me/api/portraits/women/44.jpg'
|
32
|
+
/>
|
33
|
+
</div>
|
34
|
+
)
|
35
|
+
}
|
36
|
+
|
37
|
+
export default UserVerticalSize;
|
@@ -0,0 +1,40 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
<div>
|
3
|
+
<%= pb_rails("user", props: {
|
4
|
+
name: "Anna Black",
|
5
|
+
territory: "PHL",
|
6
|
+
title: "Remodeling Consultant",
|
7
|
+
orientation: "vertical",
|
8
|
+
align: "center",
|
9
|
+
size: "lg",
|
10
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
|
11
|
+
}) %>
|
12
|
+
</div>
|
13
|
+
<div>
|
14
|
+
<%= pb_rails("user", props: {
|
15
|
+
name: "Anna Black",
|
16
|
+
territory: "PHL",
|
17
|
+
title: "Remodeling Consultant",
|
18
|
+
orientation: "horizontal",
|
19
|
+
align: "left",
|
20
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
|
21
|
+
}) %>
|
22
|
+
</div>
|
23
|
+
<div>
|
24
|
+
<%= pb_rails("user", props: {
|
25
|
+
name: "Anna Black",
|
26
|
+
territory: "PHL",
|
27
|
+
title: "Remodeling Consultant",
|
28
|
+
orientation: "horizontal",
|
29
|
+
align: "center",
|
30
|
+
size: "sm"}) %>
|
31
|
+
<br>
|
32
|
+
<%= pb_rails("user", props: {
|
33
|
+
name: "Anna Black",
|
34
|
+
territory: "PHL",
|
35
|
+
title: "Remodeling Consultant",
|
36
|
+
orientation: "horizontal",
|
37
|
+
align: "center",
|
38
|
+
size: "lg"}) %>
|
39
|
+
</div>
|
40
|
+
</div>
|