playbook_ui 7.0.0.pre.alpha9 → 7.0.1.pre.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (259) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +4 -0
  3. data/app/controllers/playbook/guides_controller.rb +11 -0
  4. data/app/controllers/playbook/pages_controller.rb +90 -0
  5. data/app/controllers/playbook/samples_controller.rb +40 -0
  6. data/app/helpers/playbook/application_helper.rb +19 -0
  7. data/app/helpers/playbook/pb_doc_helper.rb +1 -0
  8. data/app/helpers/playbook/pb_kit_helper.rb +18 -3
  9. data/app/pb_kits/playbook/_playbook.scss +0 -1
  10. data/app/pb_kits/playbook/config/_kit_example.html.erb +3 -3
  11. data/app/pb_kits/playbook/config/_kit_ui.html.erb +2 -1
  12. data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +10 -12
  13. data/app/pb_kits/playbook/index.js +0 -4
  14. data/app/pb_kits/playbook/packs/application.js +55 -0
  15. data/app/pb_kits/playbook/packs/examples.js +175 -0
  16. data/app/pb_kits/playbook/packs/main.scss +12 -0
  17. data/app/pb_kits/playbook/packs/samples.js +21 -0
  18. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +72 -0
  19. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +43 -0
  20. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +146 -0
  21. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +10 -0
  22. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +7 -0
  23. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +531 -0
  24. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +92 -0
  25. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +15 -0
  26. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +133 -0
  27. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +15 -0
  28. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +88 -0
  29. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +72 -0
  30. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +8 -3
  31. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +6 -1
  32. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_monogram.jsx +6 -1
  33. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +5 -1
  34. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +3 -1
  35. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -1
  36. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -1
  37. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +5 -1
  38. data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +1 -9
  39. data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +0 -4
  40. data/app/pb_kits/playbook/pb_badge/docs/_badge_colors.jsx +19 -1
  41. data/app/pb_kits/playbook/pb_badge/docs/_badge_default.jsx +4 -1
  42. data/app/pb_kits/playbook/pb_badge/docs/_badge_rounded.jsx +4 -1
  43. data/app/pb_kits/playbook/pb_badge/docs/example.yml +1 -2
  44. data/app/pb_kits/playbook/pb_badge/docs/index.js +0 -1
  45. data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.html.erb +12 -1
  46. data/app/pb_kits/playbook/pb_bar_graph/bar_graph.rb +1 -1
  47. data/app/pb_kits/playbook/pb_body/_body.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
  49. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  50. data/app/pb_kits/playbook/pb_body/docs/_body_block.jsx +2 -2
  51. data/app/pb_kits/playbook/pb_body/docs/_body_light.jsx +6 -1
  52. data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -4
  53. data/app/pb_kits/playbook/pb_body/docs/index.js +0 -1
  54. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +17 -31
  55. data/app/pb_kits/playbook/pb_button/docs/_button_accessibility.jsx +2 -1
  56. data/app/pb_kits/playbook/pb_button/docs/_button_block_content.jsx +2 -1
  57. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +5 -7
  58. data/app/pb_kits/playbook/pb_button/docs/_button_full_width.jsx +2 -1
  59. data/app/pb_kits/playbook/pb_button/docs/_button_link.jsx +4 -1
  60. data/app/pb_kits/playbook/pb_button/docs/_button_loading.jsx +4 -1
  61. data/app/pb_kits/playbook/pb_button/docs/_button_options.jsx +2 -1
  62. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  63. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  64. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
  65. data/app/pb_kits/playbook/pb_caption/_caption.jsx +1 -3
  66. data/app/pb_kits/playbook/pb_caption/_caption.scss +0 -3
  67. data/app/pb_kits/playbook/pb_caption/caption.rb +1 -4
  68. data/app/pb_kits/playbook/pb_caption/docs/_caption_light.jsx +7 -2
  69. data/app/pb_kits/playbook/pb_caption/docs/example.yml +2 -6
  70. data/app/pb_kits/playbook/pb_caption/docs/index.js +0 -2
  71. data/app/pb_kits/playbook/pb_card/_card.scss +0 -3
  72. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
  73. data/app/pb_kits/playbook/pb_card/docs/_card_border_none.jsx +7 -4
  74. data/app/pb_kits/playbook/pb_card/docs/_card_content.jsx +3 -3
  75. data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +39 -13
  76. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.jsx +13 -4
  77. data/app/pb_kits/playbook/pb_card/docs/_card_light.jsx +2 -2
  78. data/app/pb_kits/playbook/pb_card/docs/_card_padding.jsx +37 -7
  79. data/app/pb_kits/playbook/pb_card/docs/_card_selected.jsx +8 -3
  80. data/app/pb_kits/playbook/pb_card/docs/_card_separator.jsx +13 -4
  81. data/app/pb_kits/playbook/pb_card/docs/_card_shadow.jsx +25 -5
  82. data/app/pb_kits/playbook/pb_card/docs/example.yml +0 -2
  83. data/app/pb_kits/playbook/pb_card/docs/index.js +0 -1
  84. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
  85. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_checked.jsx +2 -1
  86. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_custom.jsx +5 -2
  87. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_default.jsx +2 -1
  88. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_error.jsx +2 -1
  89. data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +0 -4
  90. data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -2
  91. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_click.jsx +2 -1
  92. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_default.jsx +5 -1
  93. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_link.jsx +3 -1
  94. data/app/pb_kits/playbook/pb_circle_icon_button/docs/example.yml +0 -2
  95. data/app/pb_kits/playbook/pb_circle_icon_button/docs/index.js +0 -1
  96. data/app/pb_kits/playbook/pb_contact/docs/_contact_default.jsx +6 -1
  97. data/app/pb_kits/playbook/pb_contact/docs/_contact_with_detail.jsx +5 -1
  98. data/app/pb_kits/playbook/pb_currency/docs/_currency_large.jsx +4 -1
  99. data/app/pb_kits/playbook/pb_currency/docs/_currency_medium.jsx +4 -1
  100. data/app/pb_kits/playbook/pb_currency/docs/_currency_small.jsx +4 -1
  101. data/app/pb_kits/playbook/pb_currency/docs/example.yml +1 -2
  102. data/app/pb_kits/playbook/pb_currency/docs/index.js +0 -1
  103. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_align.jsx +4 -1
  104. data/app/pb_kits/playbook/pb_dashboard_value/docs/_dashboard_value_default.jsx +4 -1
  105. data/app/pb_kits/playbook/pb_date/_date.html.erb +8 -32
  106. data/app/pb_kits/playbook/pb_date/_date.jsx +67 -76
  107. data/app/pb_kits/playbook/pb_date/_date.scss +0 -25
  108. data/app/pb_kits/playbook/pb_date/date.rb +11 -20
  109. data/app/pb_kits/playbook/pb_date/docs/_date_default.html.erb +9 -1
  110. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +28 -0
  111. data/app/pb_kits/playbook/pb_date/docs/_description.md +0 -2
  112. data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -6
  113. data/app/pb_kits/playbook/pb_date/docs/index.js +1 -3
  114. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_dark.jsx +1 -1
  115. data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_default.jsx +1 -1
  116. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +8 -1
  117. data/app/pb_kits/playbook/pb_distribution_bar/distribution_bar.rb +0 -7
  118. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +1 -1
  119. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
  120. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_default.jsx +5 -1
  121. data/app/pb_kits/playbook/pb_hashtag/docs/example.yml +0 -2
  122. data/app/pb_kits/playbook/pb_hashtag/docs/index.js +0 -1
  123. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_emphasis.jsx +3 -1
  124. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_modified.jsx +2 -1
  125. data/app/pb_kits/playbook/pb_home_address_street/docs/example.yml +1 -3
  126. data/app/pb_kits/playbook/pb_home_address_street/docs/index.js +0 -1
  127. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
  128. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
  129. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +13 -1
  130. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  131. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +28 -6
  132. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
  133. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +42 -18
  134. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_default.jsx +13 -4
  135. data/app/pb_kits/playbook/pb_online_status/docs/example.yml +1 -2
  136. data/app/pb_kits/playbook/pb_online_status/docs/index.js +0 -1
  137. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +6 -7
  138. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +0 -1
  139. data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
  140. data/app/pb_kits/playbook/pb_select/_select.scss +4 -8
  141. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
  142. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
  143. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
  144. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
  145. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
  146. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
  147. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
  148. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +4 -4
  149. data/app/pb_kits/playbook/pb_time/_time.jsx +5 -7
  150. data/app/pb_kits/playbook/pb_time/docs/_time_dark.jsx +2 -0
  151. data/app/pb_kits/playbook/pb_time/docs/_time_default.jsx +3 -1
  152. data/app/pb_kits/playbook/pb_time/docs/_time_timestamp.jsx +3 -0
  153. data/app/pb_kits/playbook/pb_time/docs/example.yml +0 -1
  154. data/app/pb_kits/playbook/pb_time/docs/index.js +0 -1
  155. data/app/pb_kits/playbook/pb_title/_title.jsx +1 -1
  156. data/app/pb_kits/playbook/pb_title/_title.scss +5 -5
  157. data/app/pb_kits/playbook/pb_title/docs/example.yml +0 -2
  158. data/app/pb_kits/playbook/pb_title/docs/index.js +0 -1
  159. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  160. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -4
  161. data/app/pb_kits/playbook/tokens/_colors.scss +24 -23
  162. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  163. data/app/pb_kits/playbook/vendor.js +0 -5
  164. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +2 -0
  165. data/app/views/layouts/playbook/_nav.html.erb +35 -0
  166. data/app/views/layouts/playbook/_sidebar.html.erb +51 -0
  167. data/app/views/layouts/playbook/application.html.erb +26 -0
  168. data/app/views/layouts/playbook/fullscreen.html.slim +10 -0
  169. data/app/views/layouts/playbook/grid.html.slim +10 -0
  170. data/app/views/layouts/playbook/samples.html.erb +19 -0
  171. data/app/views/playbook/guides/create_kit.html.slim +16 -0
  172. data/app/views/playbook/guides/create_kit/_file_naming.html.md +2 -0
  173. data/app/views/playbook/guides/create_kit/_generator.html.md +6 -0
  174. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +2 -0
  175. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +2 -0
  176. data/app/views/playbook/guides/create_kit/_kit_react.html.md +2 -0
  177. data/app/views/playbook/guides/create_kit/_layout.html.md +2 -0
  178. data/app/views/playbook/guides/create_kit/_view_objects.html.md +2 -0
  179. data/app/views/playbook/guides/create_kit/_writing_sass.md +10 -0
  180. data/app/views/playbook/guides/use_nitro.html.slim +6 -0
  181. data/app/views/playbook/guides/use_nitro/_local.html.md +2 -0
  182. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +2 -0
  183. data/app/views/playbook/guides/use_nitro/_versions.html.md +2 -0
  184. data/app/views/playbook/pages/fullscreen.html.slim +10 -0
  185. data/app/views/playbook/pages/grid.html.slim +2 -0
  186. data/app/views/playbook/pages/home.html.slim +4 -0
  187. data/app/views/playbook/pages/kit_category_show.html.erb +14 -0
  188. data/app/views/playbook/pages/kit_show.html.erb +33 -0
  189. data/app/views/playbook/pages/kits.html.erb +12 -0
  190. data/app/views/playbook/pages/principals/_getting_started.html.md +30 -0
  191. data/app/views/playbook/pages/principles.html.slim +3 -0
  192. data/app/views/playbook/pages/tokens.html.slim +15 -0
  193. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +61 -0
  194. data/app/views/playbook/pages/utilities.html.slim +116 -0
  195. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +15 -0
  196. data/app/views/playbook/samples/collection_detail/index.html.erb +169 -0
  197. data/app/views/playbook/samples/collection_detail/index.jsx +372 -0
  198. data/app/views/playbook/samples/dashboards/index.html.erb +81 -0
  199. data/app/views/playbook/samples/dashboards/index.jsx +130 -0
  200. data/app/views/playbook/samples/filter_table/index.html.erb +348 -0
  201. data/app/views/playbook/samples/filter_table/index.jsx +433 -0
  202. data/app/views/playbook/samples/registration/index.html.erb +316 -0
  203. data/app/views/playbook/samples/registration/index.jsx +476 -0
  204. data/app/views/playbook/samples/sample_show.html.erb +36 -0
  205. data/lib/playbook/engine.rb +0 -1
  206. data/lib/playbook/version.rb +1 -1
  207. data/lib/tasks/pb_release.rake +0 -3
  208. metadata +64 -55
  209. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.html.erb +0 -17
  210. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions_dark.jsx +0 -21
  211. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.html.erb +0 -9
  212. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_dark.jsx +0 -14
  213. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.html.erb +0 -15
  214. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click_dark.jsx +0 -16
  215. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.html.erb +0 -31
  216. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement_dark.jsx +0 -33
  217. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip_dark.html.erb +0 -12
  218. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.html.erb +0 -124
  219. data/app/pb_kits/playbook/pb_badge/docs/_badge_dark.jsx +0 -160
  220. data/app/pb_kits/playbook/pb_body/docs/_body_dark.html.erb +0 -28
  221. data/app/pb_kits/playbook/pb_body/docs/_body_dark.jsx +0 -35
  222. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.html.erb +0 -22
  223. data/app/pb_kits/playbook/pb_button/docs/_button_default_dark.jsx +0 -28
  224. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.html.erb +0 -3
  225. data/app/pb_kits/playbook/pb_caption/docs/_caption_dark.jsx +0 -25
  226. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.html.erb +0 -1
  227. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.jsx +0 -16
  228. data/app/pb_kits/playbook/pb_caption/docs/_caption_variants.md +0 -3
  229. data/app/pb_kits/playbook/pb_card/docs/_card_dark.html.erb +0 -3
  230. data/app/pb_kits/playbook/pb_card/docs/_card_dark.jsx +0 -12
  231. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.html.erb +0 -4
  232. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark.jsx +0 -17
  233. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.html.erb +0 -7
  234. data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_dark_error.jsx +0 -18
  235. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.html.erb +0 -29
  236. data/app/pb_kits/playbook/pb_circle_icon_button/docs/_circle_icon_button_dark.jsx +0 -38
  237. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.html.erb +0 -23
  238. data/app/pb_kits/playbook/pb_currency/docs/_currency_dark.jsx +0 -32
  239. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb +0 -24
  240. data/app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx +0 -32
  241. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +0 -20
  242. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.md +0 -3
  243. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb +0 -51
  244. data/app/pb_kits/playbook/pb_date/docs/_date_timezone.md +0 -6
  245. data/app/pb_kits/playbook/pb_date/docs/_date_variants.html.erb +0 -27
  246. data/app/pb_kits/playbook/pb_date/docs/_date_variants.jsx +0 -39
  247. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.html.erb +0 -13
  248. data/app/pb_kits/playbook/pb_hashtag/docs/_hashtag_dark.jsx +0 -41
  249. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.html.erb +0 -12
  250. data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_dark.jsx +0 -20
  251. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.html.erb +0 -9
  252. data/app/pb_kits/playbook/pb_online_status/docs/_online_status_dark.jsx +0 -28
  253. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.jsx +0 -59
  254. data/app/pb_kits/playbook/pb_time/docs/_time_timezone.md +0 -11
  255. data/app/pb_kits/playbook/pb_title/docs/_title_variants.html.erb +0 -1
  256. data/app/pb_kits/playbook/pb_title/docs/_title_variants.jsx +0 -17
  257. data/app/pb_kits/playbook/pb_title/docs/_title_variants.md +0 -3
  258. data/app/pb_kits/playbook/react_rails_kits.js +0 -5
  259. data/app/pb_kits/playbook/tokens/index.scss +0 -11
@@ -45,15 +45,11 @@ const SelectableIcon = ({
45
45
  const ariaProps = buildAriaProps(aria)
46
46
  const dataProps = buildDataProps(data)
47
47
 
48
- const classes = classnames(
49
- buildCss('pb_selectable_icon_kit', {
50
- checked: checked,
51
- disabled: disabled,
52
- enabled: !disabled,
53
- }),
54
- globalProps(props),
55
- className
56
- )
48
+ const classes = classnames(buildCss('pb_selectable_icon_kit',
49
+ { 'checked': checked,
50
+ 'disabled': disabled,
51
+ 'enabled': !disabled },
52
+ className), globalProps(props))
57
53
 
58
54
  const inputType = multi === false ? 'radio' : 'checkbox'
59
55
 
@@ -1,80 +1,82 @@
1
- @import "../tokens/transition";
2
-
3
1
  [class^=pb_selectable_icon] {
4
2
 
5
- text-align: center;
6
- cursor: pointer;
7
- transition: all $transition_short ease;
8
- @media (hover:hover) {
9
- &:hover * {
10
- transition: all $transition_short ease;
11
- transform: translateY(-2px);
12
- }
13
- }
3
+ text-align: center;
4
+ cursor: pointer;
14
5
 
15
- * {
16
- cursor: pointer;
17
- }
6
+ :hover * {
7
+ filter: drop-shadow(0 0 8px rgba($shadow, 0.25));
8
+ transition-duration: $transition_short;
9
+ transition-timing-function: $easeIn;
10
+ }
18
11
 
19
- h4 {
20
- margin-top: $space_xs !important;
21
- user-select: none;
22
- transition: color $transition_short ease;
23
- }
12
+ * {
13
+ cursor: pointer;
14
+ }
24
15
 
25
- label {
26
- transition: color $transition_short ease;
27
- }
16
+ h4 {
17
+ margin-top: $space_xs !important;
18
+ user-select: none;
19
+ }
28
20
 
29
- &[class*=_disabled] {
21
+ &[class*=_disabled] {
30
22
  opacity: $opacity_6;
31
23
  cursor: not-allowed;
24
+
32
25
  * {
33
- cursor: not-allowed;
26
+ cursor: not-allowed;
34
27
  }
35
28
  }
36
29
 
37
- input[type="checkbox"],
38
- input[type="radio"] {
30
+ input[type="checkbox"],
31
+ input[type="radio"] {
39
32
  -webkit-appearance: none;
40
33
  -moz-appearance: none;
41
34
  display: none;
42
35
  appearance: none;
43
- transition: color $transition_short ease;
36
+
37
+ transition-property: color;
38
+ transition-duration: $transition_short;
44
39
 
45
40
  &:checked ~ label * {
46
- transition: color $transition_short ease;
41
+ transition-timing-function: $easeIn;
47
42
  color: $primary;
48
43
  }
49
44
 
50
45
  &:not(:checked) ~ label {
51
- transition: color $transition_short ease;
46
+ transition-timing-function: $easeOut;
52
47
  color: $slate;
53
48
 
49
+ h4 {
50
+ transition-delay: .15s;
51
+ }
54
52
  }
55
53
  }
56
54
 
57
55
 
58
- &.dark {
56
+ &.dark {
57
+
59
58
  input[type="checkbox"],
60
59
  input[type="radio"] {
61
60
  -webkit-appearance: none;
62
61
  -moz-appearance: none;
63
62
  display: none;
64
63
  appearance: none;
65
- transition: color $transition_short ease;
66
-
64
+
65
+ transition-property: color;
66
+ transition-duration: $transition_short;
67
+
68
+
67
69
  &:checked ~ label * {
68
- transition: color $transition_short ease;
70
+ transition-timing-function: $easeIn;
69
71
  color: $active_dark !important;
70
72
  }
71
73
 
72
74
  &:not(:checked) ~ label {
73
- transition: color $transition_short ease;
75
+ transition-timing-function: $easeOut;
74
76
  color: $text_dk_lighter;
75
77
 
76
78
  h4 {
77
- transition: color $transition_short ease;
79
+ transition-delay: .15s;
78
80
  color: $text_dk_default;
79
81
  }
80
82
  }
@@ -19,16 +19,14 @@ $transition-speed: 0.2s;
19
19
  transition: all $transition-speed ease;
20
20
  }
21
21
 
22
- @media (hover:hover) {
23
- &:hover {
24
- box-shadow: 0 2px 10px 0 rgba($slate, $opacity-6);
22
+ &:hover {
23
+ box-shadow: 0 2px 10px 0 rgba($slate, $opacity-6);
25
24
 
26
- td {
27
- background: $white;
28
- border-color: darken($border_light, 10%);
29
- border-top-width: 1px;
30
- border-top-color: transparent;
31
- }
25
+ td {
26
+ background: $white;
27
+ border-color: darken($border_light, 10%);
28
+ border-top-width: 1px;
29
+ border-top-color: transparent;
32
30
  }
33
31
  }
34
32
  }
@@ -40,12 +38,11 @@ $transition-speed: 0.2s;
40
38
  border-top-color: $border_light;
41
39
  border-top-width: 1px;
42
40
  }
43
- @media (hover:hover) {
44
- &:hover {
45
- td {
46
- border-top-width: 1px;
47
- border-top-color: $border_light;
48
- }
41
+
42
+ &:hover {
43
+ td {
44
+ border-top-width: 1px;
45
+ border-top-color: $border_light;
49
46
  }
50
47
  }
51
48
  }
@@ -91,12 +91,10 @@
91
91
  }
92
92
  }
93
93
  }
94
- @media (hover:hover) {
95
- &:hover {
96
- tbody {
97
- tr {
98
- box-shadow: 0 0 0 $white !important;
99
- }
94
+ &:hover {
95
+ tbody {
96
+ tr {
97
+ box-shadow: 0 0 0 $white !important;
100
98
  }
101
99
  }
102
100
  }
@@ -42,12 +42,10 @@ $table-dark-card-bg: $bg_dark;
42
42
  &:not(.no-hover) {
43
43
  tbody {
44
44
  tr {
45
- @media (hover:hover) {
46
- &:hover {
47
- td {
48
- border-color: $border_dark !important;
49
- background: $bg_dark;
50
- }
45
+ &:hover {
46
+ td {
47
+ border-color: $border_dark !important;
48
+ background: $bg_dark;
51
49
  }
52
50
  }
53
51
  }
@@ -17,7 +17,7 @@
17
17
  @include pb_body_light;
18
18
  }
19
19
 
20
- input {
20
+ > input:first-child {
21
21
  @include pb_textarea_light;
22
22
  @include pb_title_4;
23
23
  overflow: hidden;
@@ -38,7 +38,7 @@
38
38
  @include pb_body_light_dark;
39
39
  }
40
40
 
41
- input {
41
+ > input:first-child {
42
42
  @include pb_textarea_dark;
43
43
  @include pb_title_4;
44
44
  @include pb_title_dark;
@@ -54,7 +54,7 @@
54
54
 
55
55
  &.error {
56
56
  .text_input_wrapper {
57
- input {
57
+ > input:first-child {
58
58
  border-color: $error_dark;
59
59
  }
60
60
  }
@@ -66,7 +66,7 @@
66
66
  [class*=pb_body_kit] {
67
67
  margin-top: $space_xs / 2;
68
68
  }
69
- input {
69
+ > input:first-child {
70
70
  border-color: $error;
71
71
  }
72
72
  }
@@ -10,24 +10,24 @@ import { globalProps } from '../utilities/globalProps.js'
10
10
  import { Body, Icon, Title } from '../'
11
11
 
12
12
  type TimeProps = {
13
- align?: 'left' | 'center' | 'right',
13
+ align?: 'left" | "center' | 'right',
14
14
  className?: string | array<string>,
15
15
  data?: string,
16
16
  date: string,
17
17
  id?: string,
18
+ showTimezone?: boolean,
18
19
  size?: 'lg' | 'sm' | 'xs',
19
- timeZone?: string,
20
20
  }
21
21
 
22
22
  const Time = (props: TimeProps) => {
23
- const { align, className, date, size, timeZone } = props
23
+ const { align, className, date, showTimezone, size } = props
24
24
  const classes = classnames(
25
25
  className,
26
26
  buildCss('pb_time_kit', align, size),
27
27
  globalProps(props)
28
28
  )
29
29
 
30
- const dateTimestamp = new DateTime({ value: date, zone: timeZone })
30
+ const dateTimestamp = new DateTime({ value: date })
31
31
 
32
32
  return (
33
33
  <div className={classes}>
@@ -53,9 +53,7 @@ const Time = (props: TimeProps) => {
53
53
  text={dateTimestamp.toTimeWithMeridian()}
54
54
  />
55
55
  </If>
56
- <If condition={timeZone !== undefined}>
57
- <span className="pb_time_timezone">{dateTimestamp.toTimezone()}</span>
58
- </If>
56
+ { showTimezone && <span className="pb_time_timezone">{dateTimestamp.toTimezone()}</span> }
59
57
  </span>
60
58
  </time>
61
59
  </span>
@@ -12,12 +12,14 @@ const TimeDark = () => {
12
12
  <Time
13
13
  dark
14
14
  date={new Date()}
15
+ showTimezone
15
16
  size="lg"
16
17
  />
17
18
  <br />
18
19
  <Time
19
20
  dark
20
21
  date={new Date()}
22
+ showTimezone
21
23
  />
22
24
  </div>
23
25
  )
@@ -6,17 +6,19 @@ const TimeDefault = () => {
6
6
  <div>
7
7
  <Time
8
8
  date={new Date()}
9
+ showTimezone
9
10
  size="lg"
10
- timeZone="America/New_York"
11
11
  />
12
12
  <br />
13
13
  <Time
14
14
  date={new Date().getTime()}
15
+ showTimezone
15
16
  size="sm"
16
17
  />
17
18
  <br />
18
19
  <Time
19
20
  date="2012-08-02T09:49:29Z"
21
+ showTimezone
20
22
  size="xs"
21
23
  />
22
24
  </div>
@@ -6,6 +6,7 @@ const TimeStamp = () => {
6
6
  <div>
7
7
  <Time
8
8
  date={new Date()}
9
+ showTimezone
9
10
  size="sm"
10
11
  />
11
12
 
@@ -13,6 +14,7 @@ const TimeStamp = () => {
13
14
 
14
15
  <Time
15
16
  date={new Date().getTime()}
17
+ showTimezone
16
18
  size="sm"
17
19
  />
18
20
 
@@ -20,6 +22,7 @@ const TimeStamp = () => {
20
22
 
21
23
  <Time
22
24
  date="2012-08-02T15:49:29Z"
25
+ showTimezone
23
26
  size="sm"
24
27
  />
25
28
  </div>
@@ -7,6 +7,5 @@ examples:
7
7
  react:
8
8
  - time_default: Sizes
9
9
  - time_timestamp: Timestamp Values
10
- - time_timezone: Handling Timezones
11
10
  - time_align: Alignment
12
11
  - time_dark: Dark
@@ -2,4 +2,3 @@ export { default as TimeDefault } from './_time_default.jsx'
2
2
  export { default as TimeTimestamp } from './_time_timestamp.jsx'
3
3
  export { default as TimeAlign } from './_time_align.jsx'
4
4
  export { default as TimeDark } from './_time_dark.jsx'
5
- export { default as TimeTimezone } from './_time_timezone.jsx'
@@ -14,7 +14,7 @@ type TitleProps = {
14
14
  size?: 1 | 2 | 3 | 4,
15
15
  tag?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div" | "span",
16
16
  text?: string,
17
- variant?: null | "link",
17
+ variant?: null | "primary",
18
18
  }
19
19
 
20
20
  const Title = (props: TitleProps) => {
@@ -16,14 +16,14 @@
16
16
 
17
17
  &[class*=_4] {
18
18
  @include pb_title_4;
19
-
20
- &[class*=_link] {
21
- color: $primary;
22
- }
23
-
24
19
  }
25
20
 
26
21
  &.dark {
27
22
  @include pb_title_dark;
28
23
  }
24
+
25
+ &[class*=_link] {
26
+ color: $primary;
27
+ }
28
+
29
29
  }
@@ -1,9 +1,7 @@
1
1
  examples:
2
2
  rails:
3
3
  - title_light: Light UI
4
- - title_variants: Variants
5
4
  - title_dark: Dark UI
6
5
  react:
7
6
  - title_light: Light UI
8
- - title_variants: Variants
9
7
  - title_dark: Dark UI
@@ -1,3 +1,2 @@
1
1
  export { default as TitleLight } from './_title_light.jsx'
2
2
  export { default as TitleDark } from './_title_dark.jsx'
3
- export { default as TitleVariants } from './_title_variants.jsx'
@@ -10,11 +10,11 @@ import { buildCss, buildDataProps } from '../utilities/props'
10
10
 
11
11
  type TitleDetailProps = {
12
12
  align?: "left" | "center" | "right",
13
- className?: string,
13
+ className?: String,
14
14
  data?: object,
15
- detail: string,
16
- id?: string,
17
- title: string,
15
+ detail: String,
16
+ id?: String,
17
+ title: String,
18
18
  }
19
19
 
20
20
  const TitleDetail = (props: TitleDetailProps) => {
@@ -25,10 +25,8 @@
25
25
  .pb_item_kit {
26
26
  padding: ($space_xs + 2) 0;
27
27
 
28
- @media (hover:hover) {
29
- &:hover {
30
- background-color: $bg_light;
31
- }
28
+ &:hover {
29
+ background-color: $bg_light;
32
30
  }
33
31
  }
34
32
 
@@ -1,10 +1,10 @@
1
1
  @import "./opacity";
2
2
 
3
- /*=====================================
4
- Base colors should not be documented.
5
- Only document color use.
3
+ //=====================================
4
+ // Base colors should not be documented.
5
+ // Only document color use.
6
6
 
7
- Colors -----------------------------*/
7
+ // Colors -----------------------------
8
8
  $royal: #0056CF;
9
9
  $purple: #9E64E9;
10
10
  $teal: #00C4D7;
@@ -22,11 +22,11 @@ $colors: (
22
22
  orange: $orange
23
23
  );
24
24
 
25
- /* Specialty Gradient -----------------*/
25
+ // Specialty Gradient -----------------
26
26
  $gradient_start: #1C75F2;
27
27
  $gradient_end: $royal;
28
28
 
29
- /* Interface colors -------------------*/
29
+ // Interface colors -------------------
30
30
  $white: #FFFFFF;
31
31
  $silver: #F3F7FB;
32
32
  $slate: #C1CDD6;
@@ -42,7 +42,7 @@ $interface_colors: (
42
42
 
43
43
  );
44
44
 
45
- /* Main colors ------------------------*/
45
+ // Main colors ------------------------
46
46
  $primary: $royal;
47
47
  $secondary: $yellow;
48
48
  $tertiary: $purple;
@@ -51,17 +51,17 @@ $main_colors: (
51
51
  secondary: $secondary,
52
52
  tertiary: $tertiary
53
53
  );
54
- /*=====================================
54
+ //=====================================
55
55
 
56
- Background colors ------------------*/
56
+ // Background colors ------------------
57
57
  $bg_light: $silver;
58
- $bg_dark: #172257;
58
+ $bg_dark: #0a0527;
59
59
  $background_colors: (
60
60
  bg_light: $bg_light,
61
61
  bg_dark: $bg_dark
62
62
  );
63
63
 
64
- /* Card colors ------------------*/
64
+ // Card colors ------------------
65
65
  $card_light: $white;
66
66
  $card_dark: rgba($white, $opacity_1);
67
67
  $card_colors: (
@@ -74,15 +74,15 @@ $action_colors: (
74
74
  primary_action: $primary-action
75
75
  );
76
76
 
77
- /* Active colors ----------------------*/
77
+ // Active colors ----------------------
78
78
  $active_light: lighten(#E5F2FF, 3.5%);
79
- $active_dark: #0082ff;
79
+ $active_dark: #0082ff;
80
80
  $active_colors: (
81
81
  active_light: $active_light,
82
82
  active_dark: $active_dark
83
83
  );
84
84
 
85
- /* Hover colors -----------------------*/
85
+ // Hover colors -----------------------
86
86
  $hover_light: darken($silver, 5%);
87
87
  $hover_dark: rgba($white, $opacity_2);
88
88
  $hover_colors: (
@@ -90,7 +90,7 @@ $hover_colors: (
90
90
  hover_dark: $hover_dark
91
91
  );
92
92
 
93
- /* Focus colors -----------------------*/
93
+ // Focus colors -----------------------
94
94
  $focus_input_light: rgba($active_light, $opacity_5);
95
95
  $focus_input_dark: rgba(#144075, $opacity_5);
96
96
  $focus_input_colors: (
@@ -98,7 +98,7 @@ $focus_input_colors: (
98
98
  focus_input_dark: $focus_input_dark
99
99
  );
100
100
 
101
- /* Border colors ----------------------*/
101
+ // Border colors ----------------------
102
102
  $border_light: #E4E8F0;
103
103
  $border_dark: rgba($white, $opacity_1);
104
104
  $border_colors: (
@@ -106,13 +106,13 @@ $border_colors: (
106
106
  border_dark: $border_dark
107
107
  );
108
108
 
109
- /* Shadow colors ----------------------*/
109
+ // Shadow colors ----------------------
110
110
  $shadow: rgba(#3C6AAC, $opacity_2);
111
111
  $shadow_colors: (
112
112
  shadow: $shadow,
113
113
  );
114
114
 
115
- /* Text colors ------------------------*/
115
+ // Text colors ------------------------
116
116
  $text_lt_default: $charcoal;
117
117
  $text_lt_light: #919EAB;
118
118
  $text_lt_lighter: $slate;
@@ -128,7 +128,7 @@ $text_colors: (
128
128
  text_dk_lighter: $text_dk_lighter
129
129
  );
130
130
 
131
- /* Data colors ------------------------*/
131
+ // Data colors ------------------------
132
132
  $data_1: $royal;
133
133
  $data_2: $yellow;
134
134
  $data_3: $purple;
@@ -148,7 +148,7 @@ $data_colors: (
148
148
  data_8: $data_8
149
149
  );
150
150
 
151
- /* Status colors ----------------------*/
151
+ // Status colors ----------------------
152
152
  $success: $green;
153
153
  $warning: $yellow;
154
154
  $error: $red;
@@ -174,10 +174,10 @@ $status_color_text: (
174
174
  primary: $primary
175
175
  );
176
176
 
177
- /* Link colors ------------------------*/
177
+ // Link colors ------------------------
178
178
  $primary_action: $primary;
179
179
 
180
- /* Product colors ---------------------*/
180
+ // Product colors ---------------------
181
181
  $windows: $royal;
182
182
  $siding: $yellow;
183
183
  $doors: $teal;
@@ -195,7 +195,7 @@ $product_colors: (
195
195
  insulation: $insulation
196
196
  );
197
197
 
198
- /* Category colors ---------------------*/
198
+ // Category colors ---------------------
199
199
  $category_1: $royal;
200
200
  $category_2: #0CD2E5;
201
201
  $category_3: $yellow;
@@ -252,6 +252,7 @@ $transparent: transparent;
252
252
  }
253
253
 
254
254
  :export {
255
+
255
256
  @mixin export-colors($colors-list) {
256
257
  @each $name, $color in $colors-list {
257
258
  #{$name}: $color;