playbook_ui 7.0.0.pre.alpha9 → 7.0.1.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (258) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +2 -0
  3. data/app/controllers/playbook/guides_controller.rb +11 -0
  4. data/app/controllers/playbook/pages_controller.rb +109 -0
  5. data/app/controllers/playbook/samples_controller.rb +40 -0
  6. data/app/helpers/playbook/pb_doc_helper.rb +1 -0
  7. data/app/helpers/playbook/pb_kit_helper.rb +20 -3
  8. data/app/pb_kits/playbook/_playbook.scss +0 -1
  9. data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
  10. data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
  11. data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
  12. data/app/pb_kits/playbook/index.js +0 -4
  13. data/app/pb_kits/playbook/packs/application.js +55 -0
  14. data/app/pb_kits/playbook/packs/examples.js +175 -0
  15. data/app/pb_kits/playbook/packs/main.scss +12 -0
  16. data/app/pb_kits/playbook/packs/samples.js +21 -0
  17. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
  18. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
  19. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
  20. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
  21. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
  22. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
  23. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
  24. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
  25. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +133 -0
  26. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
  27. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
  28. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
  29. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +8 -3
  30. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
  31. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
  32. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
  33. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
  34. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
  35. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
  36. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
  37. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
  38. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
  39. data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
  40. data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
  41. data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
  42. data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
  43. data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
  44. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
  45. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  46. data/app/pb_kits/playbook/pb_body/_body.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
  48. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  49. data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
  50. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
  51. data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
  52. data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
  53. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +17 -31
  54. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
  55. data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
  56. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +5 -7
  57. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
  58. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
  59. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
  60. data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
  61. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  62. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  63. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
  64. data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -3
  65. data/app/pb_kits/playbook/pb_caption/_caption.scss +0 -3
  66. data/app/pb_kits/playbook/pb_caption/caption.rb +1 -4
  67. data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
  68. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
  69. data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -2
  70. data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
  71. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
  72. data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
  73. data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
  74. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
  75. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
  76. data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
  77. data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
  78. data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
  79. data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
  80. data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
  81. data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
  82. data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
  83. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
  84. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
  85. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
  86. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
  87. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
  88. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -4
  89. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
  90. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
  91. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
  92. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
  93. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
  94. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
  95. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
  96. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
  97. data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
  98. data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
  99. data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
  100. data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
  101. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  102. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
  103. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
  104. data/app/pb_kits/playbook/pb_date/_date.html.erb +8 -32
  105. data/app/pb_kits/playbook/pb_date/_date.jsx +67 -76
  106. data/app/pb_kits/playbook/pb_date/_date.scss +0 -25
  107. data/app/pb_kits/playbook/pb_date/date.rb +11 -20
  108. data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +9 -1
  109. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +28 -0
  110. data/app/pb_kits/playbook/pb_date/docs/_description.md +0 -2
  111. data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -6
  112. data/app/pb_kits/playbook/pb_date/docs/index.js +1 -3
  113. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
  114. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
  115. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
  116. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
  117. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +1 -1
  118. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
  119. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
  120. data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
  121. data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
  122. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
  123. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
  124. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
  125. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
  126. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
  127. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
  128. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
  129. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  130. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +28 -6
  131. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
  132. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +42 -18
  133. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
  134. data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
  135. data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
  136. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +6 -7
  137. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
  138. data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
  139. data/app/pb_kits/playbook/pb_select/_select.scss +4 -8
  140. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
  141. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
  142. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
  143. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
  144. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
  145. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
  146. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
  147. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
  148. data/app/pb_kits/playbook/pb_time/_time.jsx +5 -7
  149. data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +2 -0
  150. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +3 -1
  151. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -0
  152. data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -1
  153. data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
  154. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
  155. data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
  156. data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
  157. data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
  158. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  159. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -4
  160. data/app/pb_kits/playbook/tokens/_colors.scss +24 -23
  161. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  162. data/app/pb_kits/playbook/vendor.js +0 -5
  163. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
  164. data/app/views/layouts/playbook/_nav.html.erb +33 -0
  165. data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
  166. data/app/views/layouts/playbook/application.html.erb +26 -0
  167. data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
  168. data/app/views/layouts/playbook/grid.html.slim +10 -0
  169. data/app/views/layouts/playbook/samples.html.erb +19 -0
  170. data/app/views/playbook/guides/create_kit.html.slim +16 -0
  171. data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
  172. data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
  173. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
  174. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
  175. data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
  176. data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
  177. data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
  178. data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
  179. data/app/views/playbook/guides/use_nitro.html.slim +6 -0
  180. data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
  181. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
  182. data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
  183. data/app/views/playbook/pages/fullscreen.html.slim +10 -0
  184. data/app/views/playbook/pages/grid.html.slim +2 -0
  185. data/app/views/playbook/pages/home.html.slim +4 -0
  186. data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
  187. data/app/views/playbook/pages/kit_show.html.erb +33 -0
  188. data/app/views/playbook/pages/kits.html.erb +12 -0
  189. data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
  190. data/app/views/playbook/pages/principles.html.slim +3 -0
  191. data/app/views/playbook/pages/tokens.html.slim +15 -0
  192. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
  193. data/app/views/playbook/pages/utilities.html.slim +116 -0
  194. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
  195. data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
  196. data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
  197. data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
  198. data/app/views/playbook/samples/dashboards/index.jsx +130 -0
  199. data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
  200. data/app/views/playbook/samples/filter_table/index.jsx +433 -0
  201. data/app/views/playbook/samples/registration/index.html.erb +316 -0
  202. data/app/views/playbook/samples/registration/index.jsx +476 -0
  203. data/app/views/playbook/samples/sample_show.html.erb +36 -0
  204. data/lib/playbook/engine.rb +0 -1
  205. data/lib/playbook/version.rb +1 -1
  206. data/lib/tasks/pb_release.rake +0 -3
  207. metadata +64 -55
  208. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
  209. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
  210. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
  211. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
  212. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
  213. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
  214. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
  215. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
  216. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
  217. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
  218. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
  219. data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
  220. data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
  221. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
  222. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -28
  223. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
  224. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
  225. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +0 -1
  226. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +0 -16
  227. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +0 -3
  228. data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
  229. data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
  230. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
  231. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
  232. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
  233. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
  234. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
  235. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
  236. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
  237. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
  238. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +0 -24
  239. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +0 -32
  240. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +0 -20
  241. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.md +0 -3
  242. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +0 -51
  243. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +0 -6
  244. data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +0 -27
  245. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +0 -39
  246. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
  247. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
  248. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
  249. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
  250. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
  251. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
  252. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +0 -59
  253. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +0 -11
  254. data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +0 -1
  255. data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +0 -17
  256. data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +0 -3
  257. data/app/pb_kits/playbook/react_rails_kits.js +0 -5
  258. data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -1,7 +1,6 @@
1
1
  examples:
2
2
  rails:
3
3
  - card_light: Default
4
- - card_dark: Dark Cards
5
4
  - card_highlight: Highlight Cards
6
5
  - card_header: Header Cards
7
6
  - card_selected: Selected
@@ -12,7 +11,6 @@ examples:
12
11
  - card_border_none: No Border
13
12
  react:
14
13
  - card_light: Default
15
- - card_dark: Dark Cards
16
14
  - card_highlight: Highlight Cards
17
15
  - card_header: Header Cards
18
16
  - card_selected: Selected
@@ -6,5 +6,4 @@ export { default as CardPadding } from './_card_padding.jsx'
6
6
  export { default as CardShadow } from './_card_shadow.jsx'
7
7
  export { default as CardContent } from './_card_content.jsx'
8
8
  export { default as CardSeparator } from './_card_separator.jsx'
9
- export { default as CardDark } from './_card_dark.jsx'
10
9
  export { default as CardBorderNone } from './_card_border_none.jsx'
@@ -1,10 +1,8 @@
1
1
  @import "../tokens/colors";
2
- @import "../tokens/transition";
3
2
  $transition: $transition_cubic;
4
3
 
5
4
  [class^=pb_checkbox_kit] {
6
5
  display: inline-flex;
7
- cursor: pointer;
8
6
  .pb_checkbox_label {
9
7
  padding-left: $space_xs;
10
8
  cursor: pointer;
@@ -17,8 +15,7 @@ $transition: $transition_cubic;
17
15
  width: 22px;
18
16
  border: solid $border_light 2px;
19
17
  border-radius: $border_rad_light;
20
- transition: background $transition_default ease, border-color $transition_default ease;
21
- .check_icon {
18
+ .check_icon{
22
19
  opacity: 0;
23
20
  position: relative;
24
21
  top: -2px;
@@ -29,10 +26,9 @@ $transition: $transition_cubic;
29
26
 
30
27
  }
31
28
  }
32
- @media (hover:hover) {
33
- &:hover input ~ .pb_checkbox_checkmark {
34
- border-color: $primary_action;
35
- }
29
+
30
+ &:hover input ~ .pb_checkbox_checkmark {
31
+ border-color: $primary_action;
36
32
  }
37
33
 
38
34
  input {
@@ -62,10 +58,8 @@ $transition: $transition_cubic;
62
58
  border-color: $primary_action;
63
59
  }
64
60
 
65
- @media (hover:hover) {
66
- &:hover .pb_checkbox_checkmark {
67
- border-color: $primary_action;
68
- }
61
+ &:hover .pb_checkbox_checkmark {
62
+ border-color: $primary_action;
69
63
  }
70
64
 
71
65
  &.error {
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { Checkbox } from '../../'
3
3
 
4
- const CheckboxChecked = () => {
4
+ const CheckboxChecked = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Checkbox
8
+ {...props}
8
9
  checked
9
10
  name="checkbox-name"
10
11
  text="Checked Checkbox"
@@ -1,7 +1,7 @@
1
1
  import React, { useState } from 'react'
2
2
  import { Checkbox } from '../../'
3
3
 
4
- const CheckboxCustom = () => {
4
+ const CheckboxCustom = (props) => {
5
5
  const [checked, setChecked] = useState(false)
6
6
 
7
7
  const handleOnChange = () => {
@@ -14,7 +14,10 @@ const CheckboxCustom = () => {
14
14
  <br />
15
15
  <br />
16
16
  <div>
17
- <Checkbox text="Toggle Me">
17
+ <Checkbox
18
+ {...props}
19
+ text="Toggle Me"
20
+ >
18
21
  <input
19
22
  checked={checked}
20
23
  name="custom-name"
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { Checkbox } from '../../'
3
3
 
4
- const CheckboxDefault = () => {
4
+ const CheckboxDefault = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Checkbox
8
+ {...props}
8
9
  name="default name"
9
10
  text="Checkbox label"
10
11
  value="default value"
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { Checkbox } from '../..'
3
3
 
4
- const CheckboxError = () => {
4
+ const CheckboxError = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Checkbox
8
+ {...props}
8
9
  error
9
10
  name="default name"
10
11
  text="Checkbox label"
@@ -2,15 +2,11 @@ examples:
2
2
  rails:
3
3
  - checkbox_default: Default
4
4
  - checkbox_checked: Load as checked
5
- - checkbox_dark: Dark
6
5
  - checkbox_custom: Custom Checkbox
7
6
  - checkbox_error: Default w/ Error
8
- - checkbox_dark_error: Dark w/ Error
9
7
 
10
8
  react:
11
9
  - checkbox_default: Default
12
10
  - checkbox_checked: Load as checked
13
- - checkbox_dark: Dark
14
11
  - checkbox_custom: Custom Checkbox
15
12
  - checkbox_error: Default w/ Error
16
- - checkbox_dark_error: Dark w/ Error
@@ -1,6 +1,4 @@
1
1
  export { default as CheckboxDefault } from './_checkbox_default.jsx'
2
- export { default as CheckboxDark } from './_checkbox_dark.jsx'
3
2
  export { default as CheckboxCustom } from './_checkbox_custom.jsx'
4
3
  export { default as CheckboxError } from './_checkbox_error.jsx'
5
- export { default as CheckboxDarkError } from './_checkbox_dark_error.jsx'
6
4
  export { default as CheckboxChecked } from './_checkbox_checked.jsx'
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { CircleIconButton } from '../..'
3
3
 
4
- const CircleIconButtonClick = () => (
4
+ const CircleIconButtonClick = (props) => (
5
5
  <div>
6
6
  <CircleIconButton
7
+ {...props}
7
8
  icon="plus"
8
9
  onClick={() => alert('Click!')}
9
10
  variant="primary"
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { CircleIconButton } from '../../'
3
3
 
4
- const CircleIconButtonDefault = () => (
4
+ const CircleIconButtonDefault = (props) => (
5
5
  <div>
6
6
  <CircleIconButton
7
+ {...props}
7
8
  icon="plus"
8
9
  variant="primary"
9
10
  />
@@ -11,6 +12,7 @@ const CircleIconButtonDefault = () => (
11
12
  <br />
12
13
 
13
14
  <CircleIconButton
15
+ {...props}
14
16
  icon="pen"
15
17
  variant="secondary"
16
18
  />
@@ -18,6 +20,7 @@ const CircleIconButtonDefault = () => (
18
20
  <br />
19
21
 
20
22
  <CircleIconButton
23
+ {...props}
21
24
  disabled
22
25
  icon="times"
23
26
  />
@@ -25,6 +28,7 @@ const CircleIconButtonDefault = () => (
25
28
  <br />
26
29
 
27
30
  <CircleIconButton
31
+ {...props}
28
32
  icon="user"
29
33
  variant="link"
30
34
  />
@@ -1,9 +1,10 @@
1
1
  import React from 'react'
2
2
  import { CircleIconButton } from '../../'
3
3
 
4
- const CircleIconButtonLink = () => (
4
+ const CircleIconButtonLink = (props) => (
5
5
  <div>
6
6
  <CircleIconButton
7
+ {...props}
7
8
  icon="search"
8
9
  link="https://google.com"
9
10
  variant="primary"
@@ -13,6 +14,7 @@ const CircleIconButtonLink = () => (
13
14
  <br />
14
15
 
15
16
  <CircleIconButton
17
+ {...props}
16
18
  icon="window"
17
19
  link="https://google.com"
18
20
  newWindow
@@ -2,11 +2,9 @@ examples:
2
2
 
3
3
  rails:
4
4
  - circle_icon_button_default: Default
5
- - circle_icon_button_dark: Dark
6
5
  - circle_icon_button_link: Link
7
6
 
8
7
  react:
9
8
  - circle_icon_button_default: Default
10
9
  - circle_icon_button_click: Click Handler
11
- - circle_icon_button_dark: Dark
12
10
  - circle_icon_button_link: Link
@@ -1,4 +1,3 @@
1
1
  export { default as CircleIconButtonDefault } from './_circle_icon_button_default.jsx'
2
2
  export { default as CircleIconButtonClick } from './_circle_icon_button_click.jsx'
3
- export { default as CircleIconButtonDark } from './_circle_icon_button_dark.jsx'
4
3
  export { default as CircleIconButtonLink } from './_circle_icon_button_link.jsx'
@@ -1,26 +1,31 @@
1
1
  import React from 'react'
2
2
  import { Contact } from '../../'
3
3
 
4
- const ContactDefault = () => {
4
+ const ContactDefault = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Contact
8
+ {...props}
8
9
  contactType="cell"
9
10
  contactValue="349-185-9988"
10
11
  />
11
12
  <Contact
13
+ {...props}
12
14
  contactValue="5555555555"
13
15
  />
14
16
  <Contact
17
+ {...props}
15
18
  contactType="email"
16
19
  contactValue="email@example.com"
17
20
  />
18
21
  <Contact
22
+ {...props}
19
23
  contactType="work"
20
24
  contactValue="3245627482"
21
25
 
22
26
  />
23
27
  <Contact
28
+ {...props}
24
29
  contactType="work-cell"
25
30
  contactValue="3245627482"
26
31
  />
@@ -1,24 +1,28 @@
1
1
  import React from 'react'
2
2
  import { Contact } from '../../'
3
3
 
4
- const ContactDefault = () => {
4
+ const ContactDefault = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <Contact
8
+ {...props}
8
9
  contactDetail="Cell"
9
10
  contactType="cell"
10
11
  contactValue="349-185-9988"
11
12
  />
12
13
  <Contact
14
+ {...props}
13
15
  contactDetail="Home"
14
16
  contactValue="5555555555"
15
17
  />
16
18
  <Contact
19
+ {...props}
17
20
  contactDetail="Work"
18
21
  contactType="work"
19
22
  contactValue="3245627482"
20
23
  />
21
24
  <Contact
25
+ {...props}
22
26
  contactDetail="Work-Cell"
23
27
  contactType="work-cell"
24
28
  contactValue="3245627482"
@@ -1,14 +1,16 @@
1
1
  import React from 'react'
2
2
  import { Currency } from '../../'
3
3
 
4
- const CurrencyLarge = () => {
4
+ const CurrencyLarge = (props) => {
5
5
  return (
6
6
  <>
7
7
  <Currency
8
+ {...props}
8
9
  amount="2,000.50"
9
10
  size="lg"
10
11
  />
11
12
  <Currency
13
+ {...props}
12
14
  align="center"
13
15
  amount="342"
14
16
  label="Caption"
@@ -16,6 +18,7 @@ const CurrencyLarge = () => {
16
18
  symbol="€"
17
19
  />
18
20
  <Currency
21
+ {...props}
19
22
  align="right"
20
23
  amount="45"
21
24
  label="Caption"
@@ -1,15 +1,17 @@
1
1
  import React from 'react'
2
2
  import { Currency } from '../../'
3
3
 
4
- const CurrencyMedium = () => {
4
+ const CurrencyMedium = (props) => {
5
5
  return (
6
6
  <>
7
7
  <Currency
8
+ {...props}
8
9
  amount="2,000.50"
9
10
  label="Caption"
10
11
  size="md"
11
12
  />
12
13
  <Currency
14
+ {...props}
13
15
  align="center"
14
16
  amount="342"
15
17
  label="Caption"
@@ -17,6 +19,7 @@ const CurrencyMedium = () => {
17
19
  symbol="€"
18
20
  />
19
21
  <Currency
22
+ {...props}
20
23
  align="right"
21
24
  amount="45"
22
25
  label="Caption"
@@ -1,15 +1,17 @@
1
1
  import React from 'react'
2
2
  import { Currency } from '../../'
3
3
 
4
- const CurrencySmall = () => {
4
+ const CurrencySmall = (props) => {
5
5
  return (
6
6
  <>
7
7
  <Currency
8
+ {...props}
8
9
  amount="2,000.50"
9
10
  label="Caption"
10
11
  size="sm"
11
12
  />
12
13
  <Currency
14
+ {...props}
13
15
  align="center"
14
16
  amount="342"
15
17
  label="Caption"
@@ -17,6 +19,7 @@ const CurrencySmall = () => {
17
19
  symbol="€"
18
20
  />
19
21
  <Currency
22
+ {...props}
20
23
  align="right"
21
24
  amount="45"
22
25
  label="Caption"
@@ -4,9 +4,8 @@ examples:
4
4
  - currency_small: Small
5
5
  - currency_medium: Medium
6
6
  - currency_large: Large
7
- - currency_dark: Dark
7
+
8
8
  react:
9
9
  - currency_small: Small
10
10
  - currency_medium: Medium
11
11
  - currency_large: Large
12
- - currency_dark: Dark
@@ -1,4 +1,3 @@
1
1
  export { default as CurrencySmall } from './_currency_small.jsx'
2
2
  export { default as CurrencyLarge } from './_currency_large.jsx'
3
3
  export { default as CurrencyMedium } from './_currency_medium.jsx'
4
- export { default as CurrencyDark } from './_currency_dark.jsx'
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { DashboardValue } from '../../'
3
3
 
4
- const DashboardValueAlign = () => {
4
+ const DashboardValueAlign = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <DashboardValue
8
+ {...props}
8
9
  statChange={{ change: 'decrease', value: '26.1' }}
9
10
  statLabel="Top Title Value"
10
11
  statValue={{ value: '1,428', unit: 'appts' }}
@@ -14,6 +15,7 @@ const DashboardValueAlign = () => {
14
15
  <br />
15
16
 
16
17
  <DashboardValue
18
+ {...props}
17
19
  align="center"
18
20
  statChange={{ change: 'decrease', value: 56.1 }}
19
21
  statLabel="Top Title Value"
@@ -24,6 +26,7 @@ const DashboardValueAlign = () => {
24
26
  <br />
25
27
 
26
28
  <DashboardValue
29
+ {...props}
27
30
  align="right"
28
31
  statChange={{ change: 'decrease', value: 86 }}
29
32
  statLabel="Top Title Value"
@@ -1,10 +1,11 @@
1
1
  import React from 'react'
2
2
  import { DashboardValue } from '../../'
3
3
 
4
- const DashboardValueDefault = () => {
4
+ const DashboardValueDefault = (props) => {
5
5
  return (
6
6
  <div>
7
7
  <DashboardValue
8
+ {...props}
8
9
  statChange={{ change: 'decrease', value: '26.1' }}
9
10
  statLabel="Decreased Value"
10
11
  statValue={{ value: '1,428', unit: 'appts' }}
@@ -14,6 +15,7 @@ const DashboardValueDefault = () => {
14
15
  <br />
15
16
 
16
17
  <DashboardValue
18
+ {...props}
17
19
  statChange={{ change: 'increase', value: 56.1 }}
18
20
  statLabel="Increased Value"
19
21
  statValue={{ value: '938', unit: 'homes' }}
@@ -23,6 +25,7 @@ const DashboardValueDefault = () => {
23
25
  <br />
24
26
 
25
27
  <DashboardValue
28
+ {...props}
26
29
  statChange={{ value: 86 }}
27
30
  statLabel="Neutral Value"
28
31
  statValue={{ value: '261', unit: 'windows' }}