playbook_ui 11.10.0.pre.alpha.pre.bold1 → 11.11.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/pb_title/_title.scss +0 -7
- data/app/pb_kits/playbook/pb_title/_title.tsx +1 -4
- data/app/pb_kits/playbook/pb_title/docs/{_title_default.html.erb → _title_light.html.erb} +1 -1
- data/app/pb_kits/playbook/pb_title/docs/{_title_default.jsx → _title_light.jsx} +2 -2
- data/app/pb_kits/playbook/pb_title/docs/{_title_default.md → _title_light.md} +0 -0
- data/app/pb_kits/playbook/pb_title/docs/example.yml +2 -4
- data/app/pb_kits/playbook/pb_title/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_title/title.rb +1 -6
- data/app/pb_kits/playbook/pb_title/title.test.js +0 -13
- data/app/pb_kits/playbook/pb_user/_user.tsx +15 -1
- data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_rails.html.erb +36 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_rails.md +1 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.jsx +56 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.md +1 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_subtitle.html.erb +23 -0
- data/app/pb_kits/playbook/pb_user/docs/_user_subtitle.jsx +33 -0
- data/app/pb_kits/playbook/pb_user/docs/example.yml +4 -3
- data/app/pb_kits/playbook/pb_user/docs/index.js +2 -0
- data/app/pb_kits/playbook/pb_user/user.html.erb +10 -2
- data/app/pb_kits/playbook/pb_user/user.rb +1 -0
- data/app/pb_kits/playbook/pb_user/user.test.js +28 -0
- data/app/pb_kits/playbook/tokens/_titles.scss +0 -11
- data/lib/playbook/version.rb +1 -1
- metadata +14 -10
- data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.html.erb +0 -3
- data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.jsx +0 -33
- data/app/pb_kits/playbook/pb_title/docs/_title_light_weight.md +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01a1e3109de5059d750e0f17e5f9ead0781c6b6ad6c3729186b9c31eb3ff9a90
|
4
|
+
data.tar.gz: a6daa201b636522e49e95279007ccded48567c7e1b2c8c4994f595b0b2ff1656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a8decc17e61b0c22c47d0e0248418490270c9c313768b2da5c757e74997646644f089abbc8b696ad61983befb3d1836cf675868b33e6cdc730c2f31e60f6587
|
7
|
+
data.tar.gz: 634d88b0f381e09676cff75ef918f4269dcdb1d0537b95fb02e8142ee7c9dace945a7825f8d6795785ad819a6f115c75f665660a8c5df99bd4e605e5b0611402
|
@@ -6,19 +6,16 @@
|
|
6
6
|
&[class*=_1] {
|
7
7
|
@include pb_title_1;
|
8
8
|
@include title_colors;
|
9
|
-
@include pb_title_bold;
|
10
9
|
}
|
11
10
|
|
12
11
|
&[class*=_2] {
|
13
12
|
@include pb_title_2;
|
14
13
|
@include title_colors;
|
15
|
-
@include pb_title_bold;
|
16
14
|
}
|
17
15
|
|
18
16
|
&[class*=_3] {
|
19
17
|
@include pb_title_3;
|
20
18
|
@include title_colors;
|
21
|
-
@include pb_title_bold;
|
22
19
|
}
|
23
20
|
|
24
21
|
&[class*=_4] {
|
@@ -29,8 +26,4 @@
|
|
29
26
|
&.dark {
|
30
27
|
@include pb_title_dark;
|
31
28
|
}
|
32
|
-
|
33
|
-
&[class*=_thin] {
|
34
|
-
@include pb_title_thin;
|
35
|
-
}
|
36
29
|
}
|
@@ -5,7 +5,6 @@ import { deprecatedProps, GlobalProps, globalProps } from '../utilities/globalPr
|
|
5
5
|
|
6
6
|
type TitleProps = {
|
7
7
|
aria?: {[key: string]: string},
|
8
|
-
bold?: boolean,
|
9
8
|
children?: React.ReactChild[] | React.ReactChild,
|
10
9
|
className?: string,
|
11
10
|
color?: "default" | "light" | "lighter" | "success" | "error" | "link",
|
@@ -21,7 +20,6 @@ const Title = (props: TitleProps): React.ReactElement => {
|
|
21
20
|
if (props.variant) deprecatedProps('Title', ['variant']) //variant prop is deprecated, use color instead
|
22
21
|
const {
|
23
22
|
aria = {},
|
24
|
-
bold = true,
|
25
23
|
children,
|
26
24
|
className,
|
27
25
|
color,
|
@@ -35,9 +33,8 @@ const Title = (props: TitleProps): React.ReactElement => {
|
|
35
33
|
|
36
34
|
const ariaProps: {[key: string]: string | number} = buildAriaProps(aria)
|
37
35
|
const dataProps: {[key: string]: string | number} = buildDataProps(data)
|
38
|
-
const getBold = bold ? '' : 'thin'
|
39
36
|
const classes = classnames(
|
40
|
-
buildCss('pb_title_kit', `size_${size}`, variant, color
|
37
|
+
buildCss('pb_title_kit', `size_${size}`, variant, color),
|
41
38
|
globalProps(props),
|
42
39
|
className,
|
43
40
|
)
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
<br/>
|
7
7
|
|
8
|
-
<%= pb_rails("title", props: { text: "Title 4", tag: "h4", size: 4 }) %>
|
8
|
+
<%= pb_rails("title", props: { text: "Title 4", tag: "h4", size: 4 }) %>
|
9
9
|
<%= pb_rails("title", props: { text: "Title 3", tag: "h3", size: 3 }) %>
|
10
10
|
<%= pb_rails("title", props: { text: "Title 2", tag: "h2", size: 2 }) %>
|
11
11
|
<%= pb_rails("title", props: { text: "Title 1", tag: "h1", size: 1 }) %>
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
2
2
|
|
3
3
|
import Title from '../_title'
|
4
4
|
|
5
|
-
const
|
5
|
+
const TitleLight = (props) => {
|
6
6
|
return (
|
7
7
|
<div>
|
8
8
|
<Title
|
@@ -38,4 +38,4 @@ const TitleDefault = (props) => {
|
|
38
38
|
)
|
39
39
|
}
|
40
40
|
|
41
|
-
export default
|
41
|
+
export default TitleLight
|
File without changes
|
@@ -1,10 +1,8 @@
|
|
1
1
|
examples:
|
2
2
|
rails:
|
3
|
-
-
|
4
|
-
- title_light_weight: Light Weight UI
|
3
|
+
- title_light: Light UI
|
5
4
|
- title_colors: Colors
|
6
5
|
|
7
6
|
react:
|
8
|
-
-
|
9
|
-
- title_light_weight: Light Weight UI
|
7
|
+
- title_light: Light UI
|
10
8
|
- title_colors: Colors
|
@@ -17,14 +17,9 @@ module Playbook
|
|
17
17
|
values: [nil, "link"],
|
18
18
|
default: nil,
|
19
19
|
deprecated: true
|
20
|
-
prop :bold, type: Playbook::Props::Boolean, default: true
|
21
20
|
|
22
21
|
def classname
|
23
|
-
generate_classname("pb_title_kit", size, variant, color
|
24
|
-
end
|
25
|
-
|
26
|
-
def is_bold
|
27
|
-
bold ? nil : "thin"
|
22
|
+
generate_classname("pb_title_kit", size, variant, color)
|
28
23
|
end
|
29
24
|
end
|
30
25
|
end
|
@@ -15,19 +15,6 @@ test('returns namespaced class name', () => {
|
|
15
15
|
expect(kit).toHaveClass('pb_title_kit_size_3')
|
16
16
|
})
|
17
17
|
|
18
|
-
test('with thin font weight', () => {
|
19
|
-
render(
|
20
|
-
<Title
|
21
|
-
bold={false}
|
22
|
-
data={{ testid: 'primary-test' }}
|
23
|
-
text="Test thin font weight"
|
24
|
-
/>
|
25
|
-
)
|
26
|
-
|
27
|
-
const kit = screen.getByTestId('primary-test')
|
28
|
-
expect(kit).toHaveClass('pb_title_kit_size_3_thin')
|
29
|
-
})
|
30
|
-
|
31
18
|
test('with colors', () => {
|
32
19
|
render(
|
33
20
|
<Title
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
import React from 'react'
|
3
2
|
import classnames from 'classnames'
|
4
3
|
|
@@ -21,6 +20,7 @@ type UserProps = {
|
|
21
20
|
name?: string,
|
22
21
|
orientation?: "horiztonal" | "vertical",
|
23
22
|
size?: "sm" | "md" | "lg",
|
23
|
+
subtitle?: string | Array<Node> | Node,
|
24
24
|
territory?: string,
|
25
25
|
title?: string,
|
26
26
|
} & GlobalProps
|
@@ -38,6 +38,7 @@ const User = (props: UserProps) => {
|
|
38
38
|
name,
|
39
39
|
orientation = 'horizontal',
|
40
40
|
size = 'sm',
|
41
|
+
subtitle,
|
41
42
|
territory = '',
|
42
43
|
title = '',
|
43
44
|
} = props
|
@@ -81,6 +82,19 @@ const User = (props: UserProps) => {
|
|
81
82
|
>
|
82
83
|
{territory === '' ? title : `${territory} • ${title}`}
|
83
84
|
</Body>
|
85
|
+
{ typeof(subtitle) === 'string' &&
|
86
|
+
<Body
|
87
|
+
color="light"
|
88
|
+
dark={dark}
|
89
|
+
text={subtitle}
|
90
|
+
variant={null}
|
91
|
+
/>
|
92
|
+
}
|
93
|
+
{ typeof(subtitle) !== 'string' &&
|
94
|
+
<>
|
95
|
+
{subtitle}
|
96
|
+
</>
|
97
|
+
}
|
84
98
|
</div>
|
85
99
|
</div>
|
86
100
|
)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
<%= pb_rails("user", props: {
|
3
|
+
align: "left",
|
4
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
5
|
+
name: "Anna Black",
|
6
|
+
orientation: "horizontal",
|
7
|
+
size: "md",
|
8
|
+
territory: "PHL",
|
9
|
+
title: "Remodeling Consultant"
|
10
|
+
}) do %>
|
11
|
+
<%= pb_rails("flex", props: { align: "center" }) do %>
|
12
|
+
<%= pb_rails("icon", props: { icon: "users" }) %>
|
13
|
+
<%= pb_rails("caption", props: { padding_left: "xs", text: "Admin" }) %>
|
14
|
+
<% end %>
|
15
|
+
<% end %>
|
16
|
+
|
17
|
+
<%= pb_rails("user", props: {
|
18
|
+
align: "left",
|
19
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
20
|
+
name: "Anna Black",
|
21
|
+
orientation: "horizontal",
|
22
|
+
size: "md",
|
23
|
+
}) do %>
|
24
|
+
<%= pb_rails("contact", props: {
|
25
|
+
contact_type: "cell",
|
26
|
+
contact_value: "349-185-9988"
|
27
|
+
}) %>
|
28
|
+
<%= pb_rails("contact", props: {
|
29
|
+
contact_value: 5555555555
|
30
|
+
}) %>
|
31
|
+
<%= pb_rails("contact", props: {
|
32
|
+
contact_type: "email",
|
33
|
+
contact_value: "email@example.com"
|
34
|
+
}) %>
|
35
|
+
<% end %>
|
36
|
+
</div>
|
@@ -0,0 +1 @@
|
|
1
|
+
The kit accepts block content and whatever is passed as block content will display in the subtitle section.
|
@@ -0,0 +1,56 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import { Caption, Contact, Flex, Icon, User } from "../.."
|
3
|
+
|
4
|
+
const MentorSubtitle = (
|
5
|
+
<Flex>
|
6
|
+
<Icon icon="users" />
|
7
|
+
<Caption
|
8
|
+
paddingLeft="xs"
|
9
|
+
text="Admin"
|
10
|
+
/>
|
11
|
+
</Flex>
|
12
|
+
)
|
13
|
+
|
14
|
+
const ContactSubtitle = (
|
15
|
+
<>
|
16
|
+
<Contact
|
17
|
+
contactType="cell"
|
18
|
+
contactValue="349-185-9988"
|
19
|
+
/>
|
20
|
+
<Contact
|
21
|
+
contactValue="5555555555"
|
22
|
+
/>
|
23
|
+
<Contact
|
24
|
+
contactType="email"
|
25
|
+
contactValue="email@example.com"
|
26
|
+
/>
|
27
|
+
</>
|
28
|
+
)
|
29
|
+
|
30
|
+
const UserBlockContentSubtitleReact = (props) => {
|
31
|
+
return (
|
32
|
+
<div className="pb--doc-demo-row">
|
33
|
+
<User
|
34
|
+
align="left"
|
35
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
36
|
+
name="Anna Black"
|
37
|
+
orientation="horizontal"
|
38
|
+
subtitle={MentorSubtitle}
|
39
|
+
territory="PHL"
|
40
|
+
title="Remodeling Consultant"
|
41
|
+
{...props}
|
42
|
+
/>
|
43
|
+
|
44
|
+
<User
|
45
|
+
align="left"
|
46
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
47
|
+
name="Anna Black"
|
48
|
+
orientation="horizontal"
|
49
|
+
subtitle={ContactSubtitle}
|
50
|
+
{...props}
|
51
|
+
/>
|
52
|
+
</div>
|
53
|
+
)
|
54
|
+
}
|
55
|
+
|
56
|
+
export default UserBlockContentSubtitleReact
|
@@ -0,0 +1 @@
|
|
1
|
+
The `subtitle` prop accepts strings as well as nodes. Whatever node is passed will display in the subtitle section.
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
<%= pb_rails("user", props: {
|
3
|
+
align: "center",
|
4
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
5
|
+
name: "Anna Black",
|
6
|
+
orientation: "vertical",
|
7
|
+
size: "md",
|
8
|
+
subtitle: "User ID: 12345",
|
9
|
+
territory: "PHL",
|
10
|
+
title: "Remodeling Consultant"
|
11
|
+
}) %>
|
12
|
+
|
13
|
+
<%= pb_rails("user", props: {
|
14
|
+
align: "left",
|
15
|
+
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
|
16
|
+
name: "Anna Black",
|
17
|
+
orientation: "horizontal",
|
18
|
+
size: "md",
|
19
|
+
subtitle: "User ID: 12345",
|
20
|
+
territory: "PHL",
|
21
|
+
title: "Remodeling Consultant"
|
22
|
+
}) %>
|
23
|
+
</div>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import React from "react"
|
2
|
+
import { User } from "../../"
|
3
|
+
|
4
|
+
const UserSubtitle = (props) => {
|
5
|
+
return (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<User
|
8
|
+
align="center"
|
9
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
10
|
+
name="Anna Black"
|
11
|
+
orientation="vertical"
|
12
|
+
size="lg"
|
13
|
+
subtitle="User ID: 12345"
|
14
|
+
territory="PHL"
|
15
|
+
title="Remodeling Consultant"
|
16
|
+
{...props}
|
17
|
+
/>
|
18
|
+
|
19
|
+
<User
|
20
|
+
align="left"
|
21
|
+
avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
|
22
|
+
name="Anna Black"
|
23
|
+
orientation="horizontal"
|
24
|
+
subtitle="User ID: 12345"
|
25
|
+
territory="PHL"
|
26
|
+
title="Remodeling Consultant"
|
27
|
+
{...props}
|
28
|
+
/>
|
29
|
+
</div>
|
30
|
+
)
|
31
|
+
}
|
32
|
+
|
33
|
+
export default UserSubtitle
|
@@ -6,9 +6,8 @@ examples:
|
|
6
6
|
- user_text_only: Text Only
|
7
7
|
- user_size: Horizontal Size
|
8
8
|
- user_vertical_size: Vertical Size
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
- user_subtitle: Subtitle
|
10
|
+
- user_block_content_subtitle_rails: Block Content Subtitle
|
12
11
|
|
13
12
|
react:
|
14
13
|
- user_default: Default
|
@@ -16,3 +15,5 @@ examples:
|
|
16
15
|
- user_text_only: Text Only
|
17
16
|
- user_size: Horizontal Size
|
18
17
|
- user_vertical_size: Vertical Size
|
18
|
+
- user_subtitle: Subtitle
|
19
|
+
- user_block_content_subtitle_react: Block Content Subtitle
|
@@ -3,3 +3,5 @@ export { default as UserWithTerritory } from './_user_with_territory.jsx'
|
|
3
3
|
export { default as UserTextOnly } from './_user_text_only.jsx'
|
4
4
|
export { default as UserSize } from './_user_size.jsx'
|
5
5
|
export { default as UserVerticalSize } from './_user_vertical_size.jsx'
|
6
|
+
export { default as UserSubtitle } from './_user_subtitle.jsx'
|
7
|
+
export { default as UserBlockContentSubtitleReact } from './_user_block_content_subtitle_react.jsx'
|
@@ -10,13 +10,21 @@
|
|
10
10
|
image_url: object.avatar_url
|
11
11
|
}) %>
|
12
12
|
<% end %>
|
13
|
-
<%= content_tag(:div,
|
14
|
-
class: "content_wrapper") do %>
|
13
|
+
<%= content_tag(:div, class: "content_wrapper") do %>
|
15
14
|
<%= pb_rails("title", props: { text: object.name, size: object.title_size, dark: object.dark }) %>
|
16
15
|
<%= pb_rails("body", props: {
|
17
16
|
text: "#{object.details}",
|
18
17
|
dark: object.dark,
|
19
18
|
color: "light"
|
20
19
|
}) %>
|
20
|
+
<% if content %>
|
21
|
+
<%= content.presence %>
|
22
|
+
<% else %>
|
23
|
+
<%= pb_rails("body", props: {
|
24
|
+
text: "#{object.subtitle}",
|
25
|
+
dark: object.dark,
|
26
|
+
color: "light"
|
27
|
+
}) %>
|
28
|
+
<% end %>
|
21
29
|
<% end %>
|
22
30
|
<% end %>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
import { render, screen } from '../utilities/test-utils'
|
3
|
+
import User from './_user'
|
4
|
+
import Caption from "../pb_caption/_caption"
|
5
|
+
|
6
|
+
test('subtitle prop adds subtitle text', () => {
|
7
|
+
render(
|
8
|
+
<User
|
9
|
+
data={{ testid: 'test-subtitle' }}
|
10
|
+
subtitle='test subtitle'
|
11
|
+
/>
|
12
|
+
)
|
13
|
+
|
14
|
+
expect(screen.getByTestId('test-subtitle')).toHaveTextContent('test subtitle')
|
15
|
+
})
|
16
|
+
|
17
|
+
test('subtitle prop accepts a node', () => {
|
18
|
+
const TestCaption = <Caption text='test caption' />
|
19
|
+
|
20
|
+
render(
|
21
|
+
<User
|
22
|
+
data={{ testid: 'test-subtitle-block' }}
|
23
|
+
subtitle={TestCaption}
|
24
|
+
/>
|
25
|
+
)
|
26
|
+
|
27
|
+
expect(screen.getByTestId('test-subtitle-block')).toHaveTextContent('test caption')
|
28
|
+
})
|
@@ -31,19 +31,8 @@
|
|
31
31
|
|
32
32
|
@mixin pb_title_4 {
|
33
33
|
@include pb_title($heading_4, $bolder);
|
34
|
-
letter-spacing: -0.03em !important;
|
35
34
|
}
|
36
35
|
|
37
36
|
@mixin pb_title_dark {
|
38
37
|
color: $text_dk_default;
|
39
38
|
}
|
40
|
-
|
41
|
-
@mixin pb_title_bold {
|
42
|
-
font-weight: $bolder;
|
43
|
-
letter-spacing: 0em;
|
44
|
-
}
|
45
|
-
|
46
|
-
@mixin pb_title_thin {
|
47
|
-
font-weight: $lighter;
|
48
|
-
letter-spacing: $lspace_tight;
|
49
|
-
}
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-10-
|
12
|
+
date: 2022-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -1995,12 +1995,9 @@ files:
|
|
1995
1995
|
- app/pb_kits/playbook/pb_title/docs/_title_colors.html.erb
|
1996
1996
|
- app/pb_kits/playbook/pb_title/docs/_title_colors.jsx
|
1997
1997
|
- app/pb_kits/playbook/pb_title/docs/_title_colors.md
|
1998
|
-
- app/pb_kits/playbook/pb_title/docs/
|
1999
|
-
- app/pb_kits/playbook/pb_title/docs/
|
2000
|
-
- app/pb_kits/playbook/pb_title/docs/
|
2001
|
-
- app/pb_kits/playbook/pb_title/docs/_title_light_weight.html.erb
|
2002
|
-
- app/pb_kits/playbook/pb_title/docs/_title_light_weight.jsx
|
2003
|
-
- app/pb_kits/playbook/pb_title/docs/_title_light_weight.md
|
1998
|
+
- app/pb_kits/playbook/pb_title/docs/_title_light.html.erb
|
1999
|
+
- app/pb_kits/playbook/pb_title/docs/_title_light.jsx
|
2000
|
+
- app/pb_kits/playbook/pb_title/docs/_title_light.md
|
2004
2001
|
- app/pb_kits/playbook/pb_title/docs/example.yml
|
2005
2002
|
- app/pb_kits/playbook/pb_title/docs/index.js
|
2006
2003
|
- app/pb_kits/playbook/pb_title/title.html.erb
|
@@ -2133,10 +2130,16 @@ files:
|
|
2133
2130
|
- app/pb_kits/playbook/pb_user/_user.tsx
|
2134
2131
|
- app/pb_kits/playbook/pb_user/docs/_description.md
|
2135
2132
|
- app/pb_kits/playbook/pb_user/docs/_footer.md
|
2133
|
+
- app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_rails.html.erb
|
2134
|
+
- app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_rails.md
|
2135
|
+
- app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.jsx
|
2136
|
+
- app/pb_kits/playbook/pb_user/docs/_user_block_content_subtitle_react.md
|
2136
2137
|
- app/pb_kits/playbook/pb_user/docs/_user_default.html.erb
|
2137
2138
|
- app/pb_kits/playbook/pb_user/docs/_user_default.jsx
|
2138
2139
|
- app/pb_kits/playbook/pb_user/docs/_user_size.html.erb
|
2139
2140
|
- app/pb_kits/playbook/pb_user/docs/_user_size.jsx
|
2141
|
+
- app/pb_kits/playbook/pb_user/docs/_user_subtitle.html.erb
|
2142
|
+
- app/pb_kits/playbook/pb_user/docs/_user_subtitle.jsx
|
2140
2143
|
- app/pb_kits/playbook/pb_user/docs/_user_text_only.html.erb
|
2141
2144
|
- app/pb_kits/playbook/pb_user/docs/_user_text_only.jsx
|
2142
2145
|
- app/pb_kits/playbook/pb_user/docs/_user_vertical_size.html.erb
|
@@ -2147,6 +2150,7 @@ files:
|
|
2147
2150
|
- app/pb_kits/playbook/pb_user/docs/index.js
|
2148
2151
|
- app/pb_kits/playbook/pb_user/user.html.erb
|
2149
2152
|
- app/pb_kits/playbook/pb_user/user.rb
|
2153
|
+
- app/pb_kits/playbook/pb_user/user.test.js
|
2150
2154
|
- app/pb_kits/playbook/pb_user_badge/_user_badge.jsx
|
2151
2155
|
- app/pb_kits/playbook/pb_user_badge/_user_badge.scss
|
2152
2156
|
- app/pb_kits/playbook/pb_user_badge/badges/million-dollar.svg
|
@@ -2324,9 +2328,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2324
2328
|
version: '0'
|
2325
2329
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2326
2330
|
requirements:
|
2327
|
-
- - "
|
2331
|
+
- - ">="
|
2328
2332
|
- !ruby/object:Gem::Version
|
2329
|
-
version:
|
2333
|
+
version: '0'
|
2330
2334
|
requirements: []
|
2331
2335
|
rubygems_version: 3.3.7
|
2332
2336
|
signing_key:
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
|
3
|
-
import Title from '../_title'
|
4
|
-
|
5
|
-
const TitleLightWeight = (props) => {
|
6
|
-
return (
|
7
|
-
<div>
|
8
|
-
<Title
|
9
|
-
bold={false}
|
10
|
-
size={3}
|
11
|
-
tag="h3"
|
12
|
-
text="Title 3"
|
13
|
-
{...props}
|
14
|
-
/>
|
15
|
-
<Title
|
16
|
-
bold={false}
|
17
|
-
size={2}
|
18
|
-
tag="h2"
|
19
|
-
text="Title 2"
|
20
|
-
{...props}
|
21
|
-
/>
|
22
|
-
<Title
|
23
|
-
bold={false}
|
24
|
-
size={1}
|
25
|
-
tag="h1"
|
26
|
-
text="Title 1"
|
27
|
-
{...props}
|
28
|
-
/>
|
29
|
-
</div>
|
30
|
-
)
|
31
|
-
}
|
32
|
-
|
33
|
-
export default TitleLightWeight
|