playbook_ui 7.0.1.pre.alpha14 → 7.0.1.pre.alpha15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (225) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +0 -2
  3. data/app/pb_kits/playbook/_playbook.scss +1 -1
  4. data/app/pb_kits/playbook/data/menu.yml +5 -4
  5. data/app/pb_kits/playbook/index.js +4 -1
  6. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +1 -12
  7. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  8. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  9. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +1 -0
  10. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.jsx +3 -3
  11. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +82 -90
  12. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_dark.scss +57 -0
  13. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar_mixins.scss +27 -0
  14. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.rb +4 -2
  15. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.html.erb +17 -7
  16. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_default.jsx +32 -9
  17. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.html.erb +18 -7
  18. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_secondary.jsx +37 -9
  19. data/app/pb_kits/playbook/pb_button_toolbar/docs/example.yml +3 -7
  20. data/app/pb_kits/playbook/pb_button_toolbar/docs/index.js +0 -2
  21. data/app/pb_kits/playbook/pb_caption/_caption.html.erb +7 -5
  22. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.html.erb +11 -0
  23. data/app/pb_kits/playbook/pb_caption/docs/_caption_block.jsx +28 -0
  24. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -0
  25. data/app/pb_kits/playbook/pb_caption/docs/index.js +1 -0
  26. data/app/pb_kits/playbook/pb_date_picker/_date_picker.html.erb +1 -2
  27. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +1 -3
  28. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -2
  29. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +34 -32
  30. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.html.erb +1 -2
  31. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.jsx +1 -2
  32. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_default_date.md +1 -0
  33. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.html.erb +4 -0
  34. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_format.jsx +4 -0
  35. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.html.erb +9 -9
  36. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.jsx +8 -8
  37. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_input.md +3 -1
  38. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.html.erb +1 -0
  39. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_range.jsx +1 -0
  40. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +0 -4
  41. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +0 -2
  42. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.html.erb +8 -14
  43. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.jsx +122 -39
  44. data/app/pb_kits/playbook/pb_date_range_inline/_date_range_inline.scss +33 -2
  45. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.rb +44 -9
  46. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb +14 -1
  47. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx +45 -1
  48. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  49. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +7 -0
  50. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.html.erb +3 -2
  51. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx +29 -15
  52. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/_fixed_confirmation_toast.scss +10 -0
  53. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb +21 -0
  54. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx +38 -0
  55. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb +2 -1
  56. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx +1 -2
  57. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb +1 -1
  58. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx +1 -1
  59. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.html.erb +1 -1
  60. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_dark.jsx +1 -1
  61. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +2 -0
  62. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js +1 -0
  63. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.rb +7 -1
  64. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/index.js +18 -0
  65. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +9 -6
  66. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  67. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form.html.erb +3 -3
  68. data/app/pb_kits/playbook/pb_form/docs/_form_simple_form_validate.html.erb +3 -3
  69. data/app/pb_kits/playbook/pb_form/form_builder/checkbox_field.rb +7 -2
  70. data/app/pb_kits/playbook/pb_form/form_builder/date_picker_field.rb +1 -0
  71. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  72. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  73. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -6
  74. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  75. data/app/pb_kits/playbook/pb_popover/_popover.scss +6 -4
  76. data/app/pb_kits/playbook/pb_popover/index.js +3 -1
  77. data/app/pb_kits/playbook/pb_progress_step/_progress_step.jsx +3 -0
  78. data/app/pb_kits/playbook/pb_progress_step/_progress_step.scss +168 -33
  79. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.html.erb +3 -1
  80. data/app/pb_kits/playbook/pb_progress_step/_progress_step_item.jsx +10 -8
  81. data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -1
  82. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +14 -16
  83. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +6 -3
  84. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.html.erb +17 -1
  85. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.jsx +17 -1
  86. data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.jsx +10 -3
  87. data/app/pb_kits/playbook/pb_progress_step/progress_step.rb +11 -1
  88. data/app/pb_kits/playbook/pb_progress_step/progress_step_item.rb +1 -1
  89. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.html.erb +34 -0
  90. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.jsx +68 -0
  91. data/app/pb_kits/playbook/pb_table/docs/_table_action_middle.md +2 -0
  92. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.html.erb +61 -0
  93. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.jsx +89 -0
  94. data/app/pb_kits/playbook/pb_table/docs/_table_icon_buttons.md +1 -0
  95. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.html.erb +34 -0
  96. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.jsx +68 -0
  97. data/app/pb_kits/playbook/pb_table/docs/_table_one_action.md +2 -0
  98. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.html.erb +43 -0
  99. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.jsx +80 -0
  100. data/app/pb_kits/playbook/pb_table/docs/_table_two_actions.md +1 -0
  101. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.html.erb +34 -0
  102. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.jsx +63 -0
  103. data/app/pb_kits/playbook/pb_table/docs/_table_two_plus_actions.md +1 -0
  104. data/app/pb_kits/playbook/pb_table/docs/example.yml +12 -0
  105. data/app/pb_kits/playbook/pb_table/docs/index.js +6 -0
  106. data/app/pb_kits/playbook/pb_time/_time.html.erb +17 -20
  107. data/app/pb_kits/playbook/pb_time/_time.jsx +40 -27
  108. data/app/pb_kits/playbook/pb_time/_time.scss +4 -24
  109. data/app/pb_kits/playbook/pb_time/docs/_time_align.jsx +4 -1
  110. data/app/pb_kits/playbook/pb_time/docs/_time_default.html.erb +11 -11
  111. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +13 -1
  112. data/app/pb_kits/playbook/pb_time/docs/_time_sizes.jsx +4 -1
  113. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -1
  114. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +7 -2
  115. data/app/pb_kits/playbook/pb_time_range_inline/_time_range_inline.scss +5 -5
  116. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  117. data/app/pb_kits/playbook/pb_toggle/docs/_toggle_options.html.erb +10 -0
  118. data/app/pb_kits/playbook/pb_toggle/docs/example.yml +1 -0
  119. data/app/pb_kits/playbook/pb_toggle/toggle.rb +5 -2
  120. data/app/pb_kits/playbook/pb_typeahead/_typeahead.html.erb +24 -20
  121. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +19 -1
  122. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +8 -1
  123. data/app/pb_kits/playbook/pb_typeahead/components/Option.jsx +21 -13
  124. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.html.erb +1 -1
  125. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_context_dark.html.erb +1 -1
  126. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.html.erb +25 -0
  127. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +0 -3
  128. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.md +8 -0
  129. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.html.erb +30 -0
  130. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.md +11 -0
  131. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.html.erb +25 -0
  132. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.jsx +0 -3
  133. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_users.md +1 -0
  134. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +3 -0
  135. data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +24 -1
  136. data/app/pb_kits/playbook/react_rails_kits.js +6 -0
  137. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  138. data/app/pb_kits/playbook/tokens/_typography.scss +4 -4
  139. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  140. data/app/pb_kits/playbook/vendor.js +8 -0
  141. data/lib/generators/kit/kit_generator.rb +1 -1
  142. data/lib/playbook/engine.rb +1 -0
  143. data/lib/playbook/version.rb +1 -1
  144. data/lib/tasks/changelog.rake +14 -0
  145. data/lib/tasks/pb_release.rake +14 -3
  146. metadata +35 -81
  147. data/app/controllers/playbook/guides_controller.rb +0 -11
  148. data/app/controllers/playbook/pages_controller.rb +0 -99
  149. data/app/controllers/playbook/samples_controller.rb +0 -40
  150. data/app/pb_kits/playbook/packs/application.js +0 -55
  151. data/app/pb_kits/playbook/packs/examples.js +0 -182
  152. data/app/pb_kits/playbook/packs/main.scss +0 -12
  153. data/app/pb_kits/playbook/packs/samples.js +0 -21
  154. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  155. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  156. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -146
  157. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  158. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  159. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  160. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  161. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  162. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -148
  163. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -15
  164. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -88
  165. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  166. data/app/pb_kits/playbook/pb_background/_background.html.erb +0 -14
  167. data/app/pb_kits/playbook/pb_background/_background.jsx +0 -64
  168. data/app/pb_kits/playbook/pb_background/_background.scss +0 -15
  169. data/app/pb_kits/playbook/pb_background/background.rb +0 -36
  170. data/app/pb_kits/playbook/pb_background/docs/_background_default.html.erb +0 -41
  171. data/app/pb_kits/playbook/pb_background/docs/_background_default.jsx +0 -75
  172. data/app/pb_kits/playbook/pb_background/docs/example.yml +0 -8
  173. data/app/pb_kits/playbook/pb_background/docs/index.js +0 -1
  174. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.html.erb +0 -11
  175. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical.jsx +0 -29
  176. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.html.erb +0 -11
  177. data/app/pb_kits/playbook/pb_button_toolbar/docs/_button_toolbar_vertical_secondary.jsx +0 -34
  178. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.html.erb +0 -4
  179. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.jsx +0 -13
  180. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_allow_input.md +0 -1
  181. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.html.erb +0 -4
  182. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dark.jsx +0 -13
  183. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_summary.jsx +0 -45
  184. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_summary.jsx +0 -27
  185. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  186. data/app/views/layouts/playbook/_nav.html.erb +0 -37
  187. data/app/views/layouts/playbook/_sidebar.html.erb +0 -51
  188. data/app/views/layouts/playbook/application.html.erb +0 -26
  189. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  190. data/app/views/layouts/playbook/grid.html.slim +0 -10
  191. data/app/views/layouts/playbook/samples.html.erb +0 -19
  192. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  193. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  194. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  195. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  196. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  197. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  198. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  199. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  200. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  201. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  202. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  203. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  204. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  205. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  206. data/app/views/playbook/pages/grid.html.slim +0 -2
  207. data/app/views/playbook/pages/home.html.slim +0 -4
  208. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  209. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  210. data/app/views/playbook/pages/kits.html.erb +0 -12
  211. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  212. data/app/views/playbook/pages/principles.html.slim +0 -3
  213. data/app/views/playbook/pages/tokens.html.slim +0 -15
  214. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
  215. data/app/views/playbook/pages/utilities.html.slim +0 -116
  216. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  217. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  218. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  219. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  220. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  221. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  222. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  223. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  224. data/app/views/playbook/samples/registration/index.jsx +0 -476
  225. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,81 +0,0 @@
1
- <%= pb_rails("layout", props: {full: true, position: "left", size: "xl", collapse: "md"}) do %>
2
- <%= pb_rails("layout/sidebar") do %>
3
- <br>
4
- <%= pb_rails("user", props: {
5
- name: "Jon Zazula",
6
- title: "User Experience Designer",
7
- orientation: "horizontal",
8
- align: "left",
9
- margin_left: "md",
10
- size: "md",
11
- avatar_url: "https://s3-hq-f5.powerhrg.com/nitro-production/avatars/55553/badge/business-technology-jonathan-zazula.jpg?AWSAccessKeyId=IWSW00NEQHMEYQTLZ7E9&Signature=S0EN3l5sfIr7yk442Q2MeledXGc%3D&Expires=3161514974"
12
- }) %>
13
-
14
- <br>
15
- <hr style="height:1px;border:none;color:#e4e8f0;background-color:#e4e8f0;margin: 15px;" />
16
-
17
- <%= pb_rails("nav", props: {variant: "subtle"}) do %>
18
- <%= pb_rails("nav/item", props: { icon_left: "city", text: "City", link: "#" }) %>
19
- <%= pb_rails("nav/item", props: { icon_left: "user-friends", text: "People", link: "#", icon_right: "angle-down" }) %>
20
- <%= pb_rails("nav/item", props: { icon_left: "user-tie", text: "Growth Dashboard", link: "#", active: true }) %>
21
- <%= pb_rails("nav/item", props: { icon_left: "clock", text: "History", link: "#" }) %>
22
- <%= pb_rails("nav/item", props: { icon_left: "clipboard", text: "Memos", link: "#", icon_right: "angle-down" }) %>
23
- <%= pb_rails("nav/item", props: { icon_left: "phone", text: "Contacts", link: "#" }) %>
24
- <% end %>
25
- <% end %>
26
-
27
- <%= pb_rails("layout/body") do %>
28
-
29
- <% data = [{
30
- name: 'Installation',
31
- data: [154175]
32
- }, {
33
- name: 'Manufacturing',
34
- data: [40434]
35
- }, {
36
- name: 'Sales & Distribution',
37
- data: [39387]
38
- }, {
39
- name: 'Project Development',
40
- data: [34227]
41
- }, {
42
- name: 'Other',
43
- data: [18111]
44
- }] %>
45
-
46
- <%= pb_rails("bar_graph", props: {
47
- axis_title: 'Number of Employees',
48
- chart_data: data,
49
- id: "bar-test",
50
- point_start: 2012,
51
- subtitle: 'Source: thesolarfoundation.com',
52
- title: 'Solar Employment Growth by Sector, 2010-2016',
53
- padding_top: "md"
54
- }) %>
55
-
56
- <% data2 = [{
57
- name: 'Installation',
58
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175]
59
- }, {
60
- name: 'Manufacturing',
61
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434]
62
- }, {
63
- name: 'Sales & Distribution',
64
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387]
65
- }, {
66
- name: 'Project Development',
67
- data: [nil, nil, 7988, 12169, 15112, 22452, 34400, 34227]
68
- }, {
69
- name: 'Other',
70
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111]
71
- }] %>
72
-
73
- <%= pb_rails("line_graph", props: { id: "line-test", gradient: false, chart_data: data2, point_start: 1, title: 'Solar Employment Growth by Sector, 2010-2016', subtitle: 'Source: thesolarfoundation.com', axis_title: 'Number of Employees' } ) %>
74
- <% end %>
75
- <% end %>
76
-
77
-
78
-
79
-
80
-
81
-
@@ -1,130 +0,0 @@
1
- import React from 'react'
2
- import { BarGraph, LineGraph, Nav, User } from '../../../../pb_kits/playbook'
3
- import NavItem from '../../../../pb_kits/playbook/pb_nav/_item.jsx'
4
-
5
- const chartData = [
6
- {
7
- name: 'Installation',
8
- data: [154175],
9
- },
10
- {
11
- name: 'Manufacturing',
12
- data: [40434],
13
- },
14
- {
15
- name: 'Sales & Distribution',
16
- data: [39387],
17
- },
18
- {
19
- name: 'Project Development',
20
- data: [34227],
21
- },
22
- {
23
- name: 'Other',
24
- data: [18111],
25
- },
26
- ]
27
-
28
- const chartData2 = [
29
- {
30
- name: 'Installation',
31
- data: [43934, 52503, 57177, 69658, 97031, 119931, 137133, 154175],
32
- },
33
- {
34
- name: 'Manufacturing',
35
- data: [24916, 24064, 29742, 29851, 32490, 30282, 38121, 40434],
36
- },
37
- {
38
- name: 'Sales & Distribution',
39
- data: [11744, 17722, 16005, 19771, 20185, 24377, 32147, 39387],
40
- },
41
- {
42
- name: 'Project Development',
43
- data: [null, null, 7988, 12169, 15112, 22452, 34400, 34227],
44
- },
45
- {
46
- name: 'Other',
47
- data: [12908, 5948, 8105, 11248, 8989, 11816, 18274, 18111],
48
- },
49
- ]
50
-
51
- const Dashboards = () => (
52
- <div>
53
- <div className="pb_layout_kit_size_xl_left_light full layout_left_collapse_md">
54
- <div className="layout_sidebar">
55
- <br />
56
- <User
57
- align="left"
58
- avatarUrl="https://s3-hq-f5.powerhrg.com/nitro-production/avatars/55553/badge/business-technology-jonathan-zazula.jpg?AWSAccessKeyId=IWSW00NEQHMEYQTLZ7E9&Signature=S0EN3l5sfIr7yk442Q2MeledXGc%3D&Expires=3161514974"
59
- name="Jon Zazula"
60
- orientation="horizontal"
61
- size="md"
62
- title="User Experience Designer"
63
- />
64
- <br />
65
- <hr
66
- style={{
67
- height: '1px',
68
- border: 'none',
69
- color: '#e4e8f0',
70
- backgroundColor: '#e4e8f0',
71
- margin: '15px',
72
- }}
73
- />
74
- <Nav variant="subtle">
75
- <NavItem
76
- iconLeft="city"
77
- link="#"
78
- text="City"
79
- />
80
- <NavItem
81
- iconLeft="user-friends"
82
- link="#"
83
- text="People"
84
- />
85
- <NavItem
86
- active
87
- iconLeft="user-tie"
88
- link="#"
89
- text="Growth Dashboard"
90
- />
91
- <NavItem
92
- iconLeft="clock"
93
- link="#"
94
- text="History"
95
- />
96
- <NavItem
97
- iconLeft="clipboard"
98
- link="#"
99
- text="Memos"
100
- />
101
- <NavItem
102
- iconLeft="phone"
103
- link="#"
104
- text="Contacts"
105
- />
106
- </Nav>
107
- </div>
108
- <div className="layout_body">
109
- <BarGraph
110
- axisTitle="Number of Employees"
111
- chartData={chartData}
112
- id="bar-test"
113
- pointStart={2012}
114
- subTitle="Source: thesolarfoundation.com"
115
- title="Solar Employment Growth by Sector, 2010-2016"
116
- />
117
- <LineGraph
118
- axisTitle="Number of Employees"
119
- chartData={chartData2}
120
- id="line-test"
121
- pointStart={1}
122
- subTitle="Source: thesolarfoundation.com"
123
- title="Solar Employment Growth by Sector, 2010-2016"
124
- />
125
- </div>
126
- </div>
127
- </div>
128
- )
129
-
130
- export default Dashboards
@@ -1,348 +0,0 @@
1
- <!-- START TOP AREA -->
2
- <%= pb_rails("flex", props: {classname: "flex-container", spacing: "between", margin_top: "md", margin_x: "md" }) do %>
3
- <%= pb_rails("flex/flex_item") do %>
4
- <%= pb_rails("title", props: { text: "Prospective Clients", tag: "h3", size: 3 }) %>
5
- <% end %>
6
- <%= pb_rails("flex/flex_item") do %>
7
- <%= pb_rails("button", props: { text: "Add Client" }) %>
8
- <% end %>
9
- <% end %>
10
- <!-- END TOP AREA -->
11
-
12
- <!-- START FILTER -->
13
- <%= pb_rails("filter", props: {
14
- id:"2",
15
- filters: [
16
- {name: "start date", value: "Aug 01, 2020"},
17
- {name: "end date", value: "Aug 03, 2020"}
18
-
19
- ],
20
- sort_menu: [
21
- {item:"Date Created", link:"#", active: true, direction:"desc"},
22
- {item:"Assignee", link:"#", active: false},
23
- {item:"Contact", link:"#", active: false},
24
- {item:"Inquiry Source", link:"#", active: false},
25
-
26
- ],
27
- results: 546,
28
- template: "single",
29
- margin_y: "md",
30
- margin_x: "md"
31
- }) do%>
32
- <%
33
- example_collection = [
34
- OpenStruct.new(name: "Alabama", value: 1),
35
- OpenStruct.new(name: "Alaska", value: 2),
36
- OpenStruct.new(name: "Arizona", value: 3),
37
- OpenStruct.new(name: "Arkansas", value: 4),
38
- OpenStruct.new(name: "California", value: 5),
39
- OpenStruct.new(name: "Colorado", value: 6),
40
- OpenStruct.new(name: "Connecticut", value: 7),
41
- OpenStruct.new(name: "Delaware", value: 8),
42
- OpenStruct.new(name: "Florida", value: 9),
43
- OpenStruct.new(name: "Georgia", value: 10),
44
- ]
45
- %>
46
-
47
- <%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
48
-
49
- <%= pb_rails("flex") do %>
50
- <%= pb_rails("body", props: {classname: "flex-item"}) do %>
51
- <%= pb_rails("text_input", props: { label: "Start Date", value: "Aug 01, 2020", margin_right: "sm" }) %>
52
- <% end %>
53
- <%= pb_rails("body", props: {classname: "flex-item"}) do %>
54
- <%= pb_rails("text_input", props: { label: "End Date", value: "Aug 3, 2020" }) %>
55
- <% end %>
56
- <% end %>
57
-
58
- <%= form.actions do |action| %>
59
-
60
- <%= pb_rails("flex", props: {classname: "flex-container", spacing: "between"}) do %>
61
- <%= pb_rails("flex/flex_item") do %>
62
- <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
63
- <% end %>
64
- <%= pb_rails("flex/flex_item") do %>
65
- <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
66
- <% end %>
67
- <% end %>
68
-
69
-
70
- <% end %>
71
- <% end %>
72
-
73
- <% end %>
74
- <!-- END FILTER -->
75
-
76
- <!-- START TABlE -->
77
-
78
- <%= pb_rails("flex", props: {orientation: "column", horizontal: "stretch", margin_x: "md"}) do %>
79
- <%= pb_rails("table", props: { size: "sm" }) do %>
80
- <thead>
81
- <tr>
82
- <th>Contact</th>
83
- <th>Date Created</th>
84
- <th>Inquiry Source</th>
85
- <th>Lead Status</th>
86
- <th>Quote</th>
87
- <th>Assignee</th>
88
- <th>Actions</th>
89
- </tr>
90
- </thead>
91
- <tbody>
92
- <tr>
93
- <td>
94
- <%= pb_rails("person_contact", props: {
95
- first_name: "Jesse",
96
- last_name: "Cortez",
97
- contacts: [
98
- {
99
- contact_type: "cell",
100
- contact_value: "3832919348"
101
- },
102
- {
103
- contact_type: "email",
104
- contact_value: "jesse.cortez@gmail.com"
105
- }
106
- ]
107
- }) %>
108
- </td>
109
- <td>
110
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
111
- </td>
112
- <td>
113
- <%= pb_rails("body", props: { text: "Email" }) %>
114
- <%= pb_rails("caption", props: { text: "hello@companyname.com", size: 'xs' }) %>
115
- </td>
116
- <td>
117
- <%= pb_rails("progress_pills", props: { steps: 4, active: 0, title:"Status:", value:"Not Started" }) %>
118
- </td>
119
- <td>
120
- <%= pb_rails("currency", props: { amount: "729.63", size: "sm" }) %>
121
- </td>
122
- <td>
123
- <%= pb_rails("body", props: { text: "Unassigned" }) %>
124
- </td>
125
- <td>
126
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
127
- </td>
128
- </tr>
129
- <tr>
130
- <td>
131
- <%= pb_rails("person_contact", props: {
132
- first_name: "Bill",
133
- last_name: "Buchanan",
134
- contacts: [
135
- {
136
- contact_type: "cell",
137
- contact_value: "8313455824"
138
- },
139
- {
140
- contact_type: "email",
141
- contact_value: "billbuch@yahoo.com"
142
- }
143
- ]
144
- }) %>
145
- </td>
146
- <td>
147
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
148
- </td>
149
- <td>
150
- <%= pb_rails("body", props: { text: "Social Media" }) %>
151
- <%= pb_rails("caption", props: { text: "Facebook", size: 'xs' }) %>
152
- </td>
153
- <td>
154
- <%= pb_rails("progress_pills", props: { steps: 4, active: 3, title:"Status:", value:"Negotiation" }) %>
155
- </td>
156
- <td>
157
- <%= pb_rails("currency", props: { amount: "534.40", size: "sm" }) %>
158
- </td>
159
- <td>
160
- <%= pb_rails("user", props: {
161
- name: "Anna Black",
162
- title: "Project Coordinator",
163
- orientation: "horizontal",
164
- align: "left",
165
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
166
- }) %>
167
- </td>
168
- <td>
169
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
170
- </td>
171
- </tr>
172
- <tr>
173
- <td>
174
- <%= pb_rails("person_contact", props: {
175
- first_name: "Effie",
176
- last_name: "Guzman",
177
- contacts: [
178
- {
179
- contact_type: "cell",
180
- contact_value: "1582430782"
181
- },
182
- {
183
- contact_type: "email",
184
- contact_value: "effieguzman@comcast.net"
185
- }
186
- ]
187
- }) %>
188
- </td>
189
- <td>
190
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
191
- </td>
192
- <td>
193
- <%= pb_rails("body", props: { text: "Online Quote" }) %>
194
- <%= pb_rails("caption", props: { text: "Landing Page", size: 'xs' }) %>
195
- </td>
196
- <td>
197
- <%= pb_rails("progress_pills", props: { steps: 4, active: 4, title:"Status:", value:"Contract" }) %>
198
- </td>
199
- <td>
200
- <%= pb_rails("currency", props: { amount: "392.26", size: "sm" }) %>
201
- </td>
202
- <td>
203
- <%= pb_rails("user", props: {
204
- name: "Anna Black",
205
- title: "Project Coordinator",
206
- orientation: "horizontal",
207
- align: "left",
208
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
209
- }) %>
210
- </td>
211
- <td>
212
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
213
- </td>
214
- </tr>
215
- <tr>
216
- <td>
217
- <%= pb_rails("person_contact", props: {
218
- first_name: "Rodney",
219
- last_name: "Boone",
220
- contacts: [
221
- {
222
- contact_type: "cell",
223
- contact_value: "3859275970"
224
- },
225
- {
226
- contact_type: "email",
227
- contact_value: "rodneyboone@gmail.com"
228
- }
229
- ]
230
- }) %>
231
- </td>
232
- <td>
233
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
234
- </td>
235
- <td>
236
- <%= pb_rails("body", props: { text: "Internal" }) %>
237
- <%= pb_rails("caption", props: { text: "Referral", size: 'xs' }) %>
238
- </td>
239
- <td>
240
- <%= pb_rails("progress_pills", props: { steps: 4, active: 4, title:"Status:", value:"Contract" }) %>
241
- </td>
242
- <td>
243
- <%= pb_rails("currency", props: { amount: "342.86", size: "sm" }) %>
244
- </td>
245
- <td>
246
- <%= pb_rails("user", props: {
247
- name: "Anna Black",
248
- title: "Project Coordinator",
249
- orientation: "horizontal",
250
- align: "left",
251
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
252
- }) %>
253
- </td>
254
- <td>
255
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
256
- </td>
257
- </tr>
258
- <tr>
259
- <td>
260
- <%= pb_rails("person_contact", props: {
261
- first_name: "Barbara",
262
- last_name: "Maxwell",
263
- contacts: [
264
- {
265
- contact_type: "cell",
266
- contact_value: "2849186943"
267
- },
268
- {
269
- contact_type: "email",
270
- contact_value: "barbaramaxwell4@yahoo.com"
271
- }
272
- ]
273
- }) %>
274
- </td>
275
- <td>
276
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
277
- </td>
278
- <td>
279
- <%= pb_rails("body", props: { text: "Online Quote" }) %>
280
- <%= pb_rails("caption", props: { text: "Main Website", size: 'xs' }) %>
281
- </td>
282
- <td>
283
- <%= pb_rails("progress_pills", props: { steps: 4, active: 3, title:"Status:", value:"Negotiation" }) %>
284
- </td>
285
- <td>
286
- <%= pb_rails("currency", props: { amount: "145.01", size: "sm" }) %>
287
- </td>
288
- <td>
289
- <%= pb_rails("user", props: {
290
- name: "Anna Black",
291
- title: "Project Coordinator",
292
- orientation: "horizontal",
293
- align: "left",
294
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
295
- }) %>
296
- </td>
297
- <td>
298
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
299
- </td>
300
- </tr>
301
- <tr>
302
- <td>
303
- <%= pb_rails("person_contact", props: {
304
- first_name: "Ellen",
305
- last_name: "Thornton",
306
- contacts: [
307
- {
308
- contact_type: "cell",
309
- contact_value: "6884927492"
310
- },
311
- {
312
- contact_type: "email",
313
- contact_value: "ellen.thornton@gmail.com"
314
- }
315
- ]
316
- }) %>
317
- </td>
318
- <td>
319
- <%= pb_rails("date", props: { date: "2012-08-02T15:49:29Z", size: "xs" }) %>
320
- </td>
321
- <td>
322
- <%= pb_rails("body", props: { text: "Social Media" }) %>
323
- <%= pb_rails("caption", props: { text: "Instagram", size: 'xs' }) %>
324
- </td>
325
- <td>
326
- <%= pb_rails("progress_pills", props: { steps: 4, active: 3, title:"Status:", value:"Negotiation" }) %>
327
- </td>
328
- <td>
329
- <%= pb_rails("currency", props: { amount: "25.27", size: "sm" }) %>
330
- </td>
331
- <td>
332
- <%= pb_rails("user", props: {
333
- name: "Anna Black",
334
- title: "Project Coordinator",
335
- orientation: "horizontal",
336
- align: "left",
337
- avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
338
- }) %>
339
- </td>
340
- <td>
341
- <%= pb_rails("circle_icon_button", props: { variant: "secondary", icon: "ellipsis-h" }) %>
342
- </td>
343
- </tr>
344
- </tbody>
345
- <% end %>
346
- <% end %>
347
-
348
- <!-- END TABLE -->