playbook_ui_docs 14.12.0.pre.alpha.PBNTR456fixedconftoastrailsautoclose5757 → 14.12.0.pre.alpha.PBNTR779railsdraggablecrosscontainer5863

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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +9 -3
  3. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +6 -2
  4. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +2 -1
  5. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +13 -5
  6. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb +193 -0
  7. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +1 -0
  8. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -5
  9. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.html.erb +11 -0
  10. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.jsx +22 -0
  11. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_rails.md +1 -0
  12. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_react.md +1 -0
  13. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +2 -0
  14. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +1 -0
  15. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +6 -9
  16. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +6 -9
  17. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb +42 -0
  18. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +59 -0
  19. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.md +2 -0
  20. data/app/pb_kits/playbook/pb_user/docs/example.yml +2 -0
  21. data/app/pb_kits/playbook/pb_user/docs/index.js +1 -0
  22. data/dist/playbook-doc.js +1 -1
  23. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a739114abbc2047ef44e42014dce13f964734a6d73b1063304932a95fd26238c
4
- data.tar.gz: 12eba6d727441376a4768d0b5ffdbe340563657c56c94349607c4dcbfc548aa3
3
+ metadata.gz: 1132a6fd3849982b0442ffd0c7497135a1feec9bf1d45cc2cb0aa78fdcfd6cdb
4
+ data.tar.gz: 8d4d84cdcdfb4456b351e76988b081aa8b523310a3dc801c7eed54f46d1e0027
5
5
  SHA512:
6
- metadata.gz: 7f2cb062df5444e487a9353e3793dfb64486a6df82070981a9a5d324c2303d8be03c6445f87356fc783187cd77a634085ebefae1fbfb03e5c76e141f72b96c1b
7
- data.tar.gz: 5bd65ef76a5e05f98227781e0f9883c5aaf9d58ec3222b18d3786a636395d76a77fbc10401cd23d96f66acb48a7c5f0f01828c29700fdf574441223483651aa2
6
+ metadata.gz: 32ec069304ae930a87a1d6d93eab078178fe4ac500b0dd4ca1f839bf50a3af72402135af18cebd05f30974d3663f966b431bf7422607b465daaaaedd4b8b133d
7
+ data.tar.gz: bb42b11419c3ef954ca98ef050913833213bed8cb211dbec9d4c2051a300d9141e5812295331ac6502673744cb704e233e013e506fa565bdad3b69dd45cbe05a
@@ -1,18 +1,19 @@
1
1
  import React from "react";
2
2
  import { Avatar } from 'playbook-ui'
3
3
 
4
- const AvatarBadgeComponentOverlay = () => {
4
+ const AvatarBadgeComponentOverlay = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Avatar
8
8
  componentOverlay={{
9
9
  component: "badge",
10
10
  placement: "bottom-right",
11
- text: "12"
11
+ text: "12",
12
12
  }}
13
13
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
14
14
  marginBottom="sm"
15
15
  size="sm"
16
+ {...props}
16
17
  />
17
18
 
18
19
  <Avatar
@@ -24,6 +25,8 @@ const AvatarBadgeComponentOverlay = () => {
24
25
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
25
26
  marginBottom="sm"
26
27
  size="md"
28
+ {...props}
29
+
27
30
  />
28
31
 
29
32
  <Avatar
@@ -36,6 +39,8 @@ const AvatarBadgeComponentOverlay = () => {
36
39
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
37
40
  marginBottom="sm"
38
41
  size="lg"
42
+ {...props}
43
+
39
44
  />
40
45
 
41
46
  <Avatar
@@ -48,7 +53,8 @@ const AvatarBadgeComponentOverlay = () => {
48
53
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
49
54
  marginBottom="sm"
50
55
  size="xl"
51
- />
56
+ {...props}
57
+ />
52
58
  </div>
53
59
  )
54
60
  }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Avatar } from 'playbook-ui'
3
3
 
4
- const AvatarCircleIconComponentOverlay = () => {
4
+ const AvatarCircleIconComponentOverlay = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Avatar
@@ -14,6 +14,7 @@ const AvatarCircleIconComponentOverlay = () => {
14
14
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
15
15
  marginBottom="sm"
16
16
  size="sm"
17
+ {...props}
17
18
  />
18
19
 
19
20
  <Avatar
@@ -26,6 +27,7 @@ const AvatarCircleIconComponentOverlay = () => {
26
27
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
27
28
  marginBottom="sm"
28
29
  size="md"
30
+ {...props}
29
31
  />
30
32
 
31
33
  <Avatar
@@ -38,6 +40,7 @@ const AvatarCircleIconComponentOverlay = () => {
38
40
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
39
41
  marginBottom="sm"
40
42
  size="lg"
43
+ {...props}
41
44
  />
42
45
 
43
46
  <Avatar
@@ -50,7 +53,8 @@ const AvatarCircleIconComponentOverlay = () => {
50
53
  imageUrl="https://randomuser.me/api/portraits/men/44.jpg"
51
54
  marginBottom="sm"
52
55
  size="xl"
53
- />
56
+ {...props}
57
+ />
54
58
  </div>
55
59
  )
56
60
  }
@@ -18,7 +18,7 @@ const DateDefault = (props) => {
18
18
  value={"2012-08-03"}
19
19
  {...props}
20
20
  />
21
- <Caption>{"(Hyphenated Date)"}</Caption>
21
+ <Caption {...props}>{"(Hyphenated Date)"}</Caption>
22
22
  </div>
23
23
 
24
24
  <br />
@@ -56,6 +56,7 @@ const DateDefault = (props) => {
56
56
  <Title
57
57
  size={4}
58
58
  text={"(Hyphenated Date)"}
59
+ {...props}
59
60
  />
60
61
  </div>
61
62
 
@@ -4,7 +4,8 @@ import { Caption, Date as FormattedDate, Title } from 'playbook-ui'
4
4
  const DateUnstyled = (props) => {
5
5
  return (
6
6
  <>
7
- <Caption size="xs"
7
+ <Caption {...props}
8
+ size="xs"
8
9
  text="Basic unstyled example"
9
10
  />
10
11
  <FormattedDate
@@ -15,10 +16,14 @@ const DateUnstyled = (props) => {
15
16
 
16
17
  <br />
17
18
 
18
- <Caption size="xs"
19
+ <Caption {...props}
20
+
21
+ size="xs"
19
22
  text="Example with wrapping typography kit"
20
23
  />
21
- <Title size={1}>
24
+ <Title {...props}
25
+ size={1}
26
+ >
22
27
  <FormattedDate
23
28
  unstyled
24
29
  value={new Date('25 Dec 1995')}
@@ -28,10 +33,13 @@ const DateUnstyled = (props) => {
28
33
 
29
34
  <br />
30
35
 
31
- <Caption size="xs"
36
+ <Caption {...props}
37
+ size="xs"
32
38
  text="Example with icon + subcaption"
33
39
  />
34
- <Caption size="xs">
40
+ <Caption {...props}
41
+ size="xs"
42
+ >
35
43
  <FormattedDate
36
44
  showDayOfWeek
37
45
  showIcon
@@ -0,0 +1,193 @@
1
+ <% content_for :helper_methods do %>
2
+ <% def badge_properties(container)
3
+ case container
4
+ when "To Do"
5
+ { text: "queue", variant: "warning" }
6
+ when "In Progress"
7
+ { text: "progress", variant: "primary" }
8
+ else
9
+ { text: "done", variant: "success" }
10
+ end
11
+ end %>
12
+ <% end %>
13
+
14
+ <% containers = [
15
+ "To Do",
16
+ "In Progress",
17
+ "Done"
18
+ ] %>
19
+
20
+ <% items_data = [
21
+ {
22
+ id: "11",
23
+ container: "To Do",
24
+ title: "Task 1",
25
+ description: "Bug fixes",
26
+ assignee_name: "Terry Miles",
27
+ assignee_img: "https://randomuser.me/api/portraits/men/44.jpg",
28
+ },
29
+ {
30
+ id: "12",
31
+ container: "To Do",
32
+ title: "Task 2",
33
+ description: "Documentation",
34
+ assignee_name: "Sophia Miles",
35
+ assignee_img: "https://randomuser.me/api/portraits/women/8.jpg",
36
+ },
37
+ {
38
+ id: "13",
39
+ container: "In Progress",
40
+ title: "Task 3",
41
+ description: "Add a variant",
42
+ assignee_name: "Alice Jones",
43
+ assignee_img: "https://randomuser.me/api/portraits/women/10.jpg",
44
+ },
45
+ {
46
+ id: "14",
47
+ container: "To Do",
48
+ title: "Task 4",
49
+ description: "Add jest tests",
50
+ assignee_name: "Mike James",
51
+ assignee_img: "https://randomuser.me/api/portraits/men/8.jpg",
52
+ },
53
+ {
54
+ id: "15",
55
+ container: "Done",
56
+ title: "Task 5",
57
+ description: "Alpha testing",
58
+ assignee_name: "James Guy",
59
+ assignee_img: "https://randomuser.me/api/portraits/men/18.jpg",
60
+ },
61
+ {
62
+ id: "16",
63
+ container: "In Progress",
64
+ title: "Task 6",
65
+ description: "Release",
66
+ assignee_name: "Sally Jones",
67
+ assignee_img: "https://randomuser.me/api/portraits/women/28.jpg",
68
+ },
69
+ ] %>
70
+
71
+ <%= pb_rails("draggable", props: { initial_items: items_data }) do %>
72
+ <%= pb_rails("flex", props: { justify_content: "center" }) do %>
73
+ <% containers.each do |container| %>
74
+ <%= pb_rails("draggable/draggable_container", props: {
75
+ container: container,
76
+ width: "xs",
77
+ height: "xs",
78
+ padding: "sm",
79
+ data: { container: container }
80
+ }) do %>
81
+ <%= pb_rails("caption", props: { text_align: "center" }) do %><%= container %><% end %>
82
+ <%= pb_rails("flex", props: {align_items: "stretch", orientation: "column"}) do %>
83
+ <% items_data.select { |item| item[:container] == container }.each do |item| %>
84
+ <%= pb_rails("draggable/draggable_item", props: {
85
+ container: container,
86
+ drag_id: item[:id]
87
+ }) do %>
88
+ <%= pb_rails("card", props: { margin_bottom: "sm", padding: "sm"}) do %>
89
+ <%= pb_rails("flex", props: { justify: "between" }) do %>
90
+ <%= pb_rails("flex/flex_item") do %>
91
+ <%= pb_rails("flex") do %>
92
+ <%= pb_rails("avatar", props: {
93
+ image_url: item[:assignee_img],
94
+ name: item[:assignee_name],
95
+ size: "xxs"
96
+ }) %>
97
+ <%= pb_rails("title", props: {
98
+ padding_left: "xs",
99
+ size: 4,
100
+ text: item[:title]
101
+ }) %>
102
+ <% end %>
103
+ <% end %>
104
+ <%= pb_rails("badge", props: {
105
+ margin_left: "sm",
106
+ rounded: true,
107
+ text: badge_properties(container)[:text],
108
+ variant: badge_properties(container)[:variant],
109
+ data: {
110
+ pb_status_badge: true,
111
+ pb_tag_type: "badge"
112
+ }
113
+ }) %>
114
+ <% end %>
115
+ <%= pb_rails("body", props: { padding_top: "xs", text: item[:description] }) %>
116
+ <% end %>
117
+ <% end %>
118
+ <% end %>
119
+ <% end %>
120
+ <% end %>
121
+ <% end %>
122
+ <% end %>
123
+ <% end %>
124
+
125
+ <script>
126
+ const initBadgeUpdates = function() {
127
+ const updateBadge = function(container) {
128
+ switch (container) {
129
+ case 'To Do':
130
+ return { text: 'queue', variant: 'warning' };
131
+ case 'In Progress':
132
+ return { text: 'progress', variant: 'primary' };
133
+ case 'Done':
134
+ return { text: 'done', variant: 'success' };
135
+ default:
136
+ return { text: 'queue', variant: 'warning' };
137
+ }
138
+ };
139
+
140
+ let draggedElement = null;
141
+ let startContainer = null;
142
+
143
+ document.querySelectorAll('.pb_draggable_item').forEach(function(item) {
144
+ item.addEventListener('dragstart', function(event) {
145
+ draggedElement = event.target;
146
+ startContainer = draggedElement.closest('.pb_draggable_container');
147
+ });
148
+ });
149
+
150
+ document.querySelectorAll('.pb_draggable_container').forEach(function(container) {
151
+ container.addEventListener('drop', function(event) {
152
+ event.preventDefault();
153
+
154
+ if (draggedElement) {
155
+ setTimeout(function() {
156
+ const currentContainer = container;
157
+
158
+ if (currentContainer && startContainer && currentContainer !== startContainer) {
159
+ const containerData = currentContainer.getAttribute('data-container');
160
+ const badge = draggedElement.querySelector('[data-pb-status-badge]');
161
+
162
+ if (badge && containerData) {
163
+ const newProperties = updateBadge(containerData);
164
+ const span = badge.querySelector('span');
165
+
166
+ if (span) {
167
+ span.textContent = newProperties.text;
168
+ }
169
+
170
+ badge.classList.forEach(function(className) {
171
+ if (className.includes('pb_badge_kit_') || className === 'ml_sm') {
172
+ badge.classList.remove(className);
173
+ }
174
+ });
175
+
176
+ badge.className = `pb_badge_kit_${newProperties.variant}_rounded ml_sm`;
177
+ }
178
+ }
179
+
180
+ draggedElement = null;
181
+ startContainer = null;
182
+ }, 50);
183
+ }
184
+ });
185
+ });
186
+ };
187
+
188
+ if (document.readyState === 'loading') {
189
+ document.addEventListener('DOMContentLoaded', initBadgeUpdates);
190
+ } else {
191
+ initBadgeUpdates();
192
+ }
193
+ </script>
@@ -0,0 +1 @@
1
+ The Draggable kit can also be used to achieve more complex, multiple container functionality as shown here. This complex usage requires the full subcomponent structure.
@@ -1,18 +1,14 @@
1
1
  examples:
2
-
3
-
4
2
  react:
5
3
  - draggable_default: Default
6
4
  - draggable_with_list: Draggable with List Kit
7
5
  - draggable_with_selectable_list: Draggable with SelectableList Kit
8
6
  - draggable_with_cards: Draggable with Cards
9
7
  - draggable_multiple_containers: Dragging Across Multiple Containers
10
-
11
8
  rails:
12
9
  - draggable_default_rails: Default
13
10
  - draggable_with_list_rails: Draggable with List Kit
14
11
  - draggable_with_selectable_list_rails: Draggable with SelectableList Kit
15
12
  - draggable_with_cards_rails: Draggable with Cards
13
+ - draggable_multiple_containers_rails: Dragging Across Multiple Containers
16
14
 
17
-
18
-
@@ -0,0 +1,11 @@
1
+ <%= pb_rails("home_address_street", props: {
2
+ address: "70 pRoSpEcT ave",
3
+ address_cont: "Apt M18",
4
+ city: "West Chester",
5
+ home_id: 8250263,
6
+ home_url: "https://powerhrg.com/",
7
+ preserve_case: true,
8
+ state: "pa",
9
+ zipcode: "19382",
10
+ territory: "PHL",
11
+ }) %>
@@ -0,0 +1,22 @@
1
+ import React from 'react'
2
+
3
+ import HomeAddressStreet from '../_home_address_street'
4
+
5
+ const HomeAddressStreetFormatting = (props) => {
6
+ return (
7
+ <HomeAddressStreet
8
+ address="70 pRoSpEcT ave"
9
+ addressCont="Apt M18"
10
+ city="West Chester"
11
+ homeId="8250263"
12
+ homeUrl="https://powerhrg.com/"
13
+ preserveCase
14
+ state="pa"
15
+ territory="PHL"
16
+ zipcode="19382"
17
+ {...props}
18
+ />
19
+ )
20
+ }
21
+
22
+ export default HomeAddressStreetFormatting
@@ -0,0 +1 @@
1
+ The `state` prop will always capitalize the state name, even if the data entered is in lowercase. For example, when `state="pa"` is passed, it will be rendered as "PA". When you pass `preserve_case: true`, the street address will be rendered exactly as entered, without automatic title capitalization.
@@ -0,0 +1 @@
1
+ The `state` prop will always capitalize the state name, even if the data entered is in lowercase. For example, when `state="pa"` is passed, it will be rendered as "PA". When you pass `preserveCase`, the street address will be rendered exactly as entered, without automatic title capitalization.
@@ -5,12 +5,14 @@ examples:
5
5
  - home_address_street_emphasis: Emphasis
6
6
  - home_address_street_modified: Modified
7
7
  - home_address_street_link: Link
8
+ - home_address_street_formatting: Formatting
8
9
 
9
10
  react:
10
11
  - home_address_street_default: Default
11
12
  - home_address_street_emphasis: Emphasis
12
13
  - home_address_street_modified: Modified
13
14
  - home_address_street_link: Link
15
+ - home_address_street_formatting: Formatting
14
16
 
15
17
  swift:
16
18
  - home_address_street_default_swift: Default
@@ -2,3 +2,4 @@ export { default as HomeAddressStreetDefault } from './_home_address_street_defa
2
2
  export { default as HomeAddressStreetEmphasis } from './_home_address_street_emphasis.jsx'
3
3
  export { default as HomeAddressStreetModified } from './_home_address_street_modified.jsx'
4
4
  export { default as HomeAddressStreetLink } from './_home_address_street_link.jsx'
5
+ export { default as HomeAddressStreetFormatting } from './_home_address_street_formatting.jsx'
@@ -39,20 +39,17 @@
39
39
  </tr>
40
40
  </tbody>
41
41
  <% end %>
42
-
43
42
  <%= pb_rails("table", props: { size: "sm", margin_bottom: "lg" }) do %>
44
43
  <colgroup>
45
44
  <%= pb_rails("background", props: { background_color: "error_subtle", tag: "col" }) %>
46
- <%= pb_rails("background", props: { background_color: "card_light", tag: "col" }) %>
45
+ <%= pb_rails("background", props: { background_color: "info_subtle", tag: "col" }) %>
47
46
  <%= pb_rails("background", props: { background_color: "warning_subtle", tag: "col" }) %>
48
47
  </colgroup>
49
- <%= pb_rails("background", props: { background_color: "card_light", tag: "thead" }) do %>
50
- <tr>
51
- <th>Column 1</th>
52
- <th>Column 2</th>
53
- <th>Column 3</th>
54
- </tr>
55
- <% end %>
48
+ <thead>
49
+ <th>Column 1</th>
50
+ <th>Column 2</th>
51
+ <th>Column 3</th>
52
+ </thead>
56
53
  <tbody>
57
54
  <tr>
58
55
  <td>Value 1</td>
@@ -68,7 +68,7 @@ const TableWithBackgroundKit = (props) => {
68
68
  tag='col'
69
69
  />
70
70
  <Background
71
- backgroundColor="card_light"
71
+ backgroundColor="info_subtle"
72
72
  tag='col'
73
73
  />
74
74
  <Background
@@ -76,16 +76,13 @@ const TableWithBackgroundKit = (props) => {
76
76
  tag='col'
77
77
  />
78
78
  </colgroup>
79
- <Background
80
- backgroundColor="card_light"
81
- tag='thead'
82
- >
79
+ <thead>
83
80
  <tr>
84
- <th>{'Column 1'}</th>
85
- <th>{'Column 2'}</th>
86
- <th>{'Column 3'}</th>
81
+ <th>{'Column 1'}</th>
82
+ <th>{'Column 2'}</th>
83
+ <th>{'Column 3'}</th>
87
84
  </tr>
88
- </Background>
85
+ </thead>
89
86
  <tbody>
90
87
  <tr>
91
88
  <td>{'Value 1'}</td>
@@ -0,0 +1,42 @@
1
+ <div class="pb--doc-demo-row">
2
+ <div>
3
+ <%= pb_rails("user", props: {
4
+ name: "Anna Black",
5
+ title: "Remodeling Consultant",
6
+ orientation: "vertical",
7
+ align: "center",
8
+ size: "lg",
9
+ avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
10
+ bold: false
11
+ }) %>
12
+ </div>
13
+ <div>
14
+ <%= pb_rails("user", props: {
15
+ name: "Anna Black",
16
+ title: "Remodeling Consultant",
17
+ orientation: "horizontal",
18
+ align: "left",
19
+ avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
20
+ bold: false
21
+ }) %>
22
+ </div>
23
+ <div>
24
+ <%= pb_rails("user", props: {
25
+ name: "Anna Black",
26
+ orientation: "horizontal",
27
+ align: "left",
28
+ avatar_url: "https://randomuser.me/api/portraits/women/44.jpg",
29
+ bold: false
30
+ }) %>
31
+
32
+ <br>
33
+
34
+ <%= pb_rails("user", props: {
35
+ name: "Anna Black",
36
+ orientation: "horizontal",
37
+ align: "left",
38
+ avatar: true,
39
+ bold: false
40
+ }) %>
41
+ </div>
42
+ </div>
@@ -0,0 +1,59 @@
1
+ import React from 'react'
2
+ import { User } from 'playbook-ui'
3
+
4
+ const UserLightWeight = (props) => {
5
+ return (
6
+ <div className="pb--doc-demo-row">
7
+
8
+ <div>
9
+ <User
10
+ align="center"
11
+ avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
12
+ bold={false}
13
+ name="Anna Black"
14
+ orientation="vertical"
15
+ size="lg"
16
+ title="Remodeling Consultant"
17
+ {...props}
18
+ />
19
+ </div>
20
+
21
+ <div>
22
+ <User
23
+ align="left"
24
+ avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
25
+ bold={false}
26
+ name="Anna Black"
27
+ orientation="horizontal"
28
+ title="Remodeling Consultant"
29
+ {...props}
30
+ />
31
+ </div>
32
+
33
+ <div>
34
+ <User
35
+ align="left"
36
+ avatarUrl="https://randomuser.me/api/portraits/women/44.jpg"
37
+ bold={false}
38
+ name="Anna Black"
39
+ orientation="horizontal"
40
+ {...props}
41
+ />
42
+
43
+ <br />
44
+
45
+ <User
46
+ align="left"
47
+ avatar
48
+ bold={false}
49
+ name="Anna Black"
50
+ orientation="horizontal"
51
+ {...props}
52
+ />
53
+ </div>
54
+
55
+ </div>
56
+ )
57
+ }
58
+
59
+ export default UserLightWeight
@@ -0,0 +1,2 @@
1
+ ##### Prop
2
+ Name will use `font-weight: 700` by default, if you want a lighter font weight, use the `bold` prop set to `false`. Name will then use `font-weight: 300`.
@@ -2,6 +2,7 @@ examples:
2
2
 
3
3
  rails:
4
4
  - user_default: Default
5
+ - user_light_weight: Light Weight
5
6
  - user_with_territory: With Territory
6
7
  - user_text_only: Text Only
7
8
  - user_size: Horizontal Size
@@ -11,6 +12,7 @@ examples:
11
12
 
12
13
  react:
13
14
  - user_default: Default
15
+ - user_light_weight: Light Weight
14
16
  - user_with_territory: With Territory
15
17
  - user_text_only: Text Only
16
18
  - user_size: Horizontal Size
@@ -1,4 +1,5 @@
1
1
  export { default as UserDefault } from './_user_default.jsx'
2
+ export { default as UserLightWeight } from './_user_light_weight.jsx'
2
3
  export { default as UserWithTerritory } from './_user_with_territory.jsx'
3
4
  export { default as UserTextOnly } from './_user_text_only.jsx'
4
5
  export { default as UserSize } from './_user_size.jsx'