playbook_ui 14.13.0.pre.alpha.play1834depupdatesass6024 → 14.13.0.pre.rc.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +0 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/Components/CustomCell.tsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +4 -11
  5. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.scss +10 -71
  6. data/app/pb_kits/playbook/pb_advanced_table/_advanced_table.tsx +21 -37
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +0 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -3
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
  11. data/app/pb_kits/playbook/pb_advanced_table/index.js +6 -9
  12. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +5 -8
  13. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +0 -9
  14. data/app/pb_kits/playbook/pb_avatar/_avatar.tsx +7 -11
  15. data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +7 -6
  16. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +3 -9
  17. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +2 -6
  18. data/app/pb_kits/playbook/pb_button/button.rb +1 -1
  19. data/app/pb_kits/playbook/pb_date/_date.tsx +4 -14
  20. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +1 -2
  21. data/app/pb_kits/playbook/pb_date/docs/_date_unstyled.jsx +5 -13
  22. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +5 -2
  23. data/app/pb_kits/playbook/pb_draggable/draggable_container.html.erb +2 -2
  24. data/app/pb_kits/playbook/pb_draggable/draggable_container.rb +0 -5
  25. data/app/pb_kits/playbook/pb_draggable/draggable_item.html.erb +1 -1
  26. data/app/pb_kits/playbook/pb_draggable/draggable_item.rb +0 -4
  27. data/app/pb_kits/playbook/pb_draggable/index.js +15 -151
  28. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +6 -1
  29. data/app/pb_kits/playbook/pb_filter/filter.html.erb +5 -1
  30. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -1
  31. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +5 -7
  32. data/app/pb_kits/playbook/pb_form_group/form_group.html.erb +6 -1
  33. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +1 -1
  34. data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +7 -11
  35. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +0 -2
  36. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
  37. data/app/pb_kits/playbook/pb_home_address_street/home_address_street.rb +2 -13
  38. data/app/pb_kits/playbook/pb_icon/icon.html.erb +6 -2
  39. data/app/pb_kits/playbook/pb_layout/body.html.erb +5 -1
  40. data/app/pb_kits/playbook/pb_layout/footer.html.erb +5 -1
  41. data/app/pb_kits/playbook/pb_layout/header.html.erb +5 -1
  42. data/app/pb_kits/playbook/pb_layout/item.html.erb +5 -1
  43. data/app/pb_kits/playbook/pb_layout/layout.html.erb +5 -1
  44. data/app/pb_kits/playbook/pb_layout/sidebar.html.erb +5 -1
  45. data/app/pb_kits/playbook/pb_legend/legend.html.erb +6 -1
  46. data/app/pb_kits/playbook/pb_lightbox/lightbox.scss +6 -7
  47. data/app/pb_kits/playbook/pb_link/_link.tsx +0 -18
  48. data/app/pb_kits/playbook/pb_link/docs/example.yml +3 -5
  49. data/app/pb_kits/playbook/pb_link/docs/index.js +1 -2
  50. data/app/pb_kits/playbook/pb_link/link.html.erb +1 -1
  51. data/app/pb_kits/playbook/pb_link/link.rb +0 -6
  52. data/app/pb_kits/playbook/pb_link/link.test.jsx +0 -30
  53. data/app/pb_kits/playbook/pb_message/message.html.erb +6 -1
  54. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -1
  55. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tooltip.html.erb +6 -6
  56. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.html.erb +9 -6
  57. data/app/pb_kits/playbook/pb_table/docs/_table_with_background_kit.jsx +9 -6
  58. data/app/pb_kits/playbook/pb_table/styles/_desktop_collapse.scss +0 -26
  59. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +1 -0
  60. data/app/pb_kits/playbook/pb_table/styles/_mobile_collapse.scss +0 -25
  61. data/app/pb_kits/playbook/pb_table/styles/_tablet_collapse.scss +0 -25
  62. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +1 -1
  63. data/app/pb_kits/playbook/pb_text_input/index.js +83 -52
  64. data/app/pb_kits/playbook/pb_tooltip/_tooltip.tsx +1 -3
  65. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_default.html.erb +1 -1
  66. data/app/pb_kits/playbook/pb_tooltip/index.js +27 -45
  67. data/app/pb_kits/playbook/pb_tooltip/tooltip.rb +1 -5
  68. data/app/pb_kits/playbook/pb_user/_user.tsx +0 -3
  69. data/app/pb_kits/playbook/pb_user/docs/example.yml +0 -2
  70. data/app/pb_kits/playbook/pb_user/docs/index.js +0 -1
  71. data/app/pb_kits/playbook/pb_user/user.html.erb +1 -1
  72. data/app/pb_kits/playbook/pb_user/user.rb +0 -1
  73. data/app/pb_kits/playbook/pb_user/user.test.js +0 -14
  74. data/dist/chunks/_typeahead-BWwaAo_0.js +36 -0
  75. data/dist/chunks/_weekday_stacked-zyBCd1s8.js +45 -0
  76. data/dist/chunks/{lib-WQEeEj3t.js → lib-kMuhBuU7.js} +2 -2
  77. data/dist/chunks/{pb_form_validation-Cq64l4zn.js → pb_form_validation-DBJ0wZuS.js} +1 -1
  78. data/dist/chunks/vendor.js +1 -1
  79. data/dist/menu.yml +0 -6
  80. data/dist/playbook-doc.js +1 -1
  81. data/dist/playbook-rails-react-bindings.js +1 -1
  82. data/dist/playbook-rails.js +1 -1
  83. data/dist/playbook.css +1 -1
  84. data/lib/playbook/version.rb +2 -2
  85. metadata +7 -38
  86. data/app/pb_kits/playbook/pb_advanced_table/Utilities/ActionBarAnimationHelper.ts +0 -26
  87. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +0 -55
  88. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +0 -3
  89. data/app/pb_kits/playbook/pb_copy_button/_copy_button.scss +0 -4
  90. data/app/pb_kits/playbook/pb_copy_button/_copy_button.tsx +0 -92
  91. data/app/pb_kits/playbook/pb_copy_button/copy_button.html.erb +0 -15
  92. data/app/pb_kits/playbook/pb_copy_button/copy_button.rb +0 -28
  93. data/app/pb_kits/playbook/pb_copy_button/copy_button.test.jsx +0 -64
  94. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb +0 -2
  95. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +0 -21
  96. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +0 -5
  97. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +0 -45
  98. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.md +0 -1
  99. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +0 -8
  100. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +0 -2
  101. data/app/pb_kits/playbook/pb_copy_button/index.js +0 -47
  102. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.html.erb +0 -99
  103. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +0 -1
  104. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb +0 -61
  105. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md +0 -1
  106. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close.html.erb +0 -58
  107. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_auto_close_rails.md +0 -3
  108. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.html.erb +0 -11
  109. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting.jsx +0 -22
  110. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_rails.md +0 -1
  111. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_formatting_react.md +0 -1
  112. data/app/pb_kits/playbook/pb_link/docs/_link_target.html.erb +0 -15
  113. data/app/pb_kits/playbook/pb_link/docs/_link_target.jsx +0 -29
  114. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.html.erb +0 -42
  115. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.jsx +0 -59
  116. data/app/pb_kits/playbook/pb_user/docs/_user_light_weight.md +0 -2
  117. data/dist/chunks/_typeahead-DQTwAd_2.js +0 -36
  118. data/dist/chunks/_weekday_stacked-CnPEqV7l.js +0 -45
  119. /data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/{_fixed_confirmation_toast_auto_close_react.md → _fixed_confirmation_toast_auto_close.md} +0 -0
@@ -1,99 +0,0 @@
1
- <% containers = [
2
- "To Do",
3
- "In Progress",
4
- "Done"
5
- ] %>
6
-
7
- <% items_data = [
8
- {
9
- id: "11",
10
- container: "To Do",
11
- title: "Task 1",
12
- description: "Bug fixes",
13
- assignee_name: "Terry Miles",
14
- assignee_img: "https://randomuser.me/api/portraits/men/44.jpg",
15
- },
16
- {
17
- id: "12",
18
- container: "To Do",
19
- title: "Task 2",
20
- description: "Documentation",
21
- assignee_name: "Sophia Miles",
22
- assignee_img: "https://randomuser.me/api/portraits/women/8.jpg",
23
- },
24
- {
25
- id: "13",
26
- container: "In Progress",
27
- title: "Task 3",
28
- description: "Add a variant",
29
- assignee_name: "Alice Jones",
30
- assignee_img: "https://randomuser.me/api/portraits/women/10.jpg",
31
- },
32
- {
33
- id: "14",
34
- container: "To Do",
35
- title: "Task 4",
36
- description: "Add jest tests",
37
- assignee_name: "Mike James",
38
- assignee_img: "https://randomuser.me/api/portraits/men/8.jpg",
39
- },
40
- {
41
- id: "15",
42
- container: "Done",
43
- title: "Task 5",
44
- description: "Alpha testing",
45
- assignee_name: "James Guy",
46
- assignee_img: "https://randomuser.me/api/portraits/men/18.jpg",
47
- },
48
- {
49
- id: "16",
50
- container: "In Progress",
51
- title: "Task 6",
52
- description: "Release",
53
- assignee_name: "Sally Jones",
54
- assignee_img: "https://randomuser.me/api/portraits/women/28.jpg",
55
- },
56
- ] %>
57
-
58
- <%= pb_rails("draggable", props: { initial_items: items_data }) do %>
59
- <%= pb_rails("flex", props: { justify_content: "center" }) do %>
60
- <% containers.each do |container| %>
61
- <%= pb_rails("draggable/draggable_container", props: {
62
- container: container,
63
- width: "xs",
64
- padding: "sm",
65
- data: { container: container }
66
- }) do %>
67
- <%= pb_rails("caption", props: { text_align: "center" }) do %><%= container %><% end %>
68
- <%= pb_rails("flex", props: {align_items: "stretch", orientation: "column"}) do %>
69
- <% items_data.select { |item| item[:container] == container }.each do |item| %>
70
- <%= pb_rails("draggable/draggable_item", props: {
71
- container: container,
72
- drag_id: item[:id]
73
- }) do %>
74
- <%= pb_rails("card", props: { margin_bottom: "sm", padding: "sm"}) do %>
75
- <%= pb_rails("flex", props: { justify: "between" }) do %>
76
- <%= pb_rails("flex/flex_item") do %>
77
- <%= pb_rails("flex") do %>
78
- <%= pb_rails("avatar", props: {
79
- image_url: item[:assignee_img],
80
- name: item[:assignee_name],
81
- size: "xxs"
82
- }) %>
83
- <%= pb_rails("title", props: {
84
- padding_left: "xs",
85
- size: 4,
86
- text: item[:title]
87
- }) %>
88
- <% end %>
89
- <% end %>
90
- <% end %>
91
- <%= pb_rails("body", props: { padding_top: "xs", text: item[:description] }) %>
92
- <% end %>
93
- <% end %>
94
- <% end %>
95
- <% end %>
96
- <% end %>
97
- <% end %>
98
- <% end %>
99
- <% end %>
@@ -1 +0,0 @@
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,61 +0,0 @@
1
- <% initial_items = [
2
- {
3
- id: "1",
4
- title: "Task 1",
5
- assignee_name: "Terry Miles",
6
- assignee_img: "https://randomuser.me/api/portraits/men/44.jpg",
7
- },
8
- {
9
- id: "2",
10
- title: "Task 2",
11
- assignee_name: "Sophia Miles",
12
- assignee_img: "https://randomuser.me/api/portraits/women/8.jpg",
13
- },
14
- {
15
- id: "3",
16
- title: "Task 3",
17
- assignee_name: "Alice Jones",
18
- assignee_img: "https://randomuser.me/api/portraits/women/10.jpg",
19
- },
20
- {
21
- id: "4",
22
- title: "Task 4",
23
- assignee_name: "Mike James",
24
- assignee_img: "https://randomuser.me/api/portraits/men/8.jpg",
25
- },
26
- {
27
- id: "5",
28
- title: "Task 5",
29
- assignee_name: "James Guy",
30
- assignee_img: "https://randomuser.me/api/portraits/men/18.jpg",
31
- }
32
- ] %>
33
-
34
-
35
-
36
- <%= pb_rails("draggable", props: {initial_items: initial_items}) do %>
37
- <%= pb_rails("table", props: { size: "sm", responsive:"none" }) do %>
38
- <%= pb_rails("table/table_head") do %>
39
- <%= pb_rails("table/table_row") do %>
40
- <%= pb_rails("table/table_header", props: { text: "id"}) %>
41
- <%= pb_rails("table/table_header", props: { text: "name"}) %>
42
- <%= pb_rails("table/table_header", props: { text: "task number"}) %>
43
- <% end %>
44
- <% end %>
45
-
46
- <%= pb_rails("draggable/draggable_container", props: {tag:"tbody"}) do %>
47
- <% initial_items.each do |item| %>
48
- <%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id], tag:"tr"}) do %>
49
- <%= pb_rails("table/table_cell", props: { text: item[:id]}) %>
50
- <%= pb_rails("table/table_cell") do %>
51
- <%= pb_rails("flex", props:{align:"center"}) do %>
52
- <%= pb_rails("avatar", props: {size: "xs", image_url: item[:assignee_img]}) %>
53
- <%= pb_rails("body", props: {text: item[:assignee_name], padding_left:"sm"}) %>
54
- <% end %>
55
- <% end %>
56
- <%= pb_rails("table/table_cell", props: { text: item[:title]}) %>
57
- <% end %>
58
- <% end %>
59
- <% end %>
60
- <% end %>
61
- <% end %>
@@ -1 +0,0 @@
1
- The draggable kit can also be used in conjunction with the table kit to create draggable table rows. To do this, make use of the `tag` prop on the draggable_container to set it to 'tbody' and the same prop on the draggable_item to set that to 'tr'. This will create the functionality seen here.
@@ -1,58 +0,0 @@
1
- <%= pb_rails("button", props: { text: "Show Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close" } }) %>
2
- <%= pb_rails("button", props: { text: "Show Closeable Auto Close Toast", variant: "secondary", data: { toast: "#toast-auto-close-closeable" } }) %>
3
-
4
- <%= pb_rails("fixed_confirmation_toast", props: {
5
- auto_close: 3000,
6
- classname: "toast-to-hide",
7
- id: "toast-auto-close",
8
- text: "I will disappear in 3 seconds.",
9
- status: "tip",
10
- vertical: "top",
11
- horizontal: "center"
12
- }) %>
13
-
14
- <%= pb_rails("fixed_confirmation_toast", props: {
15
- auto_close: 10000,
16
- closeable: true,
17
- id: "toast-auto-close-closeable",
18
- text: "I will disappear in 10 seconds.",
19
- status: "tip",
20
- vertical: "top",
21
- horizontal: "center"
22
- }) %>
23
-
24
- <script>
25
- document.addEventListener('DOMContentLoaded', () => {
26
- // Initialize toast elements and buttons
27
- const toasts = {
28
- '#toast-auto-close': document.querySelector("#toast-auto-close"),
29
- '#toast-auto-close-closeable': document.querySelector("#toast-auto-close-closeable")
30
- }
31
-
32
- const buttons = {
33
- '#toast-auto-close': document.querySelector("button[data-toast='#toast-auto-close']"),
34
- '#toast-auto-close-closeable': document.querySelector("button[data-toast='#toast-auto-close-closeable']")
35
- }
36
-
37
- // Store original toasts and remove them from DOM
38
- const originalToasts = {}
39
- Object.entries(toasts).forEach(([id, toast]) => {
40
- if (toast) {
41
- originalToasts[id] = toast.cloneNode(true)
42
- toast.remove()
43
- }
44
- })
45
-
46
- // Set up button click handlers
47
- Object.keys(buttons).forEach((toastId) => {
48
- const button = buttons[toastId]
49
- if (button) {
50
- button.onclick = () => {
51
- const newToast = originalToasts[toastId].cloneNode(true)
52
- newToast.style.display = "flex"
53
- document.body.appendChild(newToast)
54
- }
55
- }
56
- })
57
- })
58
- </script>
@@ -1,3 +0,0 @@
1
- Auto close is used when you want the confirmation toast to close automatically after a certain time. `auto_close` property will be a delay number in ms.
2
-
3
- The script tag in this code snippet is for demonstration purposes only. It clones the toasts in order to have it appear with a button click prompt and not upon initial page load. In a typical production environment the event triggering a fixed confirmation toast to appear would be handled by a controller or a separate javascript file.
@@ -1,11 +0,0 @@
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
- }) %>
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
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.
@@ -1 +0,0 @@
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.
@@ -1,15 +0,0 @@
1
- <div>
2
- <%= pb_rails("link", props: {
3
- href: "http://google.com",
4
- target: "blank",
5
- text: "Open In New Window"
6
- }) %>
7
- </div>
8
-
9
- <div>
10
- <%= pb_rails("link", props: {
11
- href: "https://playbook.powerapp.cloud/",
12
- target: "child",
13
- text: "Open In Child Tab",
14
- }) %>
15
- </div>
@@ -1,29 +0,0 @@
1
- import React from 'react'
2
- import { Link } from 'playbook-ui'
3
-
4
- const LinkTarget = (props) => (
5
- <div>
6
- <div>
7
- <Link
8
- aria={{ label: 'Link to Google in new window' }}
9
- href="https://google.com"
10
- tabIndex={0}
11
- target='blank'
12
- text="Open In New Window"
13
- {...props}
14
- />
15
- </div>
16
- <div>
17
- <Link
18
- aria={{ label: 'Link to Playbook in a child tab' }}
19
- href="https://playbook.powerapp.cloud/"
20
- tabIndex={0}
21
- target='child'
22
- text="Open In Child Tab"
23
- {...props}
24
- />
25
- </div>
26
- </div>
27
- )
28
-
29
- export default LinkTarget
@@ -1,42 +0,0 @@
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>
@@ -1,59 +0,0 @@
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
@@ -1,2 +0,0 @@
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`.