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,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_dependency "playbook/application_controller"
4
- require "yaml"
5
-
6
- module Playbook
7
- class SamplesController < ApplicationController
8
- before_action :set_sample, only: %i[sample_show_rails sample_show_react]
9
-
10
- layout "playbook/samples"
11
-
12
- def samples
13
- params[:type] ||= "rails"
14
- @type = params[:type]
15
- end
16
-
17
- def sample_show_rails
18
- params[:type] ||= "rails"
19
- @type = params[:type]
20
- render template: "playbook/samples/sample_show"
21
- end
22
-
23
- def sample_show_react
24
- params[:type] ||= "react"
25
- @type = params[:type]
26
- render template: "playbook/samples/sample_show"
27
- end
28
-
29
- private
30
-
31
- def set_sample
32
- menu = MENU["samples"].map { |link| link.is_a?(Hash) ? link.first.last : link }
33
- if menu.flatten.include?(params[:name])
34
- @sample = params[:name]
35
- else
36
- redirect_to root_path, flash: { error: "That kit does not exist" }
37
- end
38
- end
39
- end
40
- end
@@ -1,55 +0,0 @@
1
- import '../../../../fonts/fontawesome-min.js'
2
- import '../../../../fonts/regular-min.js'
3
- import './main.scss'
4
- import '../vendor.js'
5
-
6
- // Move to separate file
7
- window.$(document).on('click', '[data-toggle]', function(e) {
8
- e.preventDefault()
9
-
10
- var kitContainer = window.$(this).closest('.pb--doc')
11
- var toggleTarget = window.$(this).data('toggle')
12
-
13
- window
14
- .$(kitContainer)
15
- .find('[data-action="toggle"]')
16
- .hide()
17
- window
18
- .$(kitContainer)
19
- .find('[data-togglable="' + toggleTarget + '"]')
20
- .show()
21
- })
22
-
23
- window.$(document).ready(() => {
24
- $('.compress').hide()
25
-
26
- window.$(document).on('click', '.toggle-button', (e) => {
27
- e.preventDefault()
28
- $('.pb--codeCopy').toggleClass('close')
29
- })
30
-
31
- $('.expand').click(() => {
32
- $('.sample-nav').hide()
33
- $('.compress').show()
34
- })
35
-
36
- $('.compress').click(() => {
37
- $('.sample-nav').show()
38
- $('.compress').hide()
39
- })
40
-
41
- const setClipboard = (value) => {
42
- var tempInput = document.createElement('textarea')
43
- tempInput.style = 'position: absolute; left: -1000px; top: -1000px'
44
- tempInput.value = value
45
- document.body.appendChild(tempInput)
46
- tempInput.select()
47
- document.execCommand('copy')
48
- document.body.removeChild(tempInput)
49
- }
50
-
51
- $('.copy-clipboard').click(() => {
52
- var copyText = document.querySelector('.hiddenCodeforCopy').textContent
53
- setClipboard(copyText)
54
- })
55
- })
@@ -1,182 +0,0 @@
1
- // ===========================================
2
- // Generated file from kit generator.
3
- //
4
- // KIT EXAMPLES
5
- // ===========================================
6
-
7
- import WebpackerReact from 'webpacker-react'
8
-
9
- //
10
- // ===========================================
11
- // ===========================================
12
- // Generated file from kit generator.
13
- // KIT EXAMPLES
14
-
15
- import '../pb_form/pb_form_validation'
16
- import * as Avatar from 'pb_avatar/docs'
17
- import * as AvatarActionButton from 'pb_avatar_action_button/docs'
18
- import * as Background from 'pb_background/docs'
19
- import * as Badge from 'pb_badge/docs'
20
- import * as BarGraph from 'pb_bar_graph/docs'
21
- import * as Body from 'pb_body/docs'
22
- import * as Button from 'pb_button/docs'
23
- import * as ButtonToolbar from 'pb_button_toolbar/docs'
24
- import * as Caption from 'pb_caption/docs'
25
- import * as Card from 'pb_card/docs'
26
- import * as Checkbox from 'pb_checkbox/docs'
27
- import * as CircleChart from 'pb_circle_chart/docs'
28
- import * as CircleIconButton from 'pb_circle_icon_button/docs'
29
- import * as Contact from 'pb_contact/docs'
30
- import * as Currency from 'pb_currency/docs'
31
- import * as DashboardValue from 'pb_dashboard_value/docs'
32
- import * as Date from 'pb_date/docs'
33
- import * as DatePicker from 'pb_date_picker/docs'
34
- import * as DateRangeInline from 'pb_date_range_inline/docs'
35
- import * as DateRangeStacked from 'pb_date_range_stacked/docs'
36
- import * as DateStacked from 'pb_date_stacked/docs'
37
- import * as DateTimeStacked from 'pb_date_time_stacked/docs'
38
- import * as DateYearStacked from 'pb_date_year_stacked/docs'
39
- import * as DistributionBar from 'pb_distribution_bar/docs'
40
- import * as FileUpload from 'pb_file_upload/docs'
41
- import * as Filter from 'pb_filter/docs'
42
- import * as FixedConfirmationToast from 'pb_fixed_confirmation_toast/docs'
43
- import * as Flex from 'pb_flex/docs'
44
- import * as FormPill from 'pb_form_pill/docs'
45
- import * as Gauge from 'pb_gauge/docs'
46
- import * as Hashtag from 'pb_hashtag/docs'
47
- import * as Highlight from 'pb_highlight/docs'
48
- import * as HomeAddressStreet from 'pb_home_address_street/docs'
49
- import * as Icon from 'pb_icon/docs'
50
- import * as IconCircle from 'pb_icon_circle/docs'
51
- import * as IconValue from 'pb_icon_value/docs'
52
- import * as Image from 'pb_image/docs'
53
- import * as LabelPill from 'pb_label_pill/docs'
54
- import * as LabelValue from 'pb_label_value/docs'
55
- import * as Layout from 'pb_layout/docs'
56
- import * as Legend from 'pb_legend/docs'
57
- import * as LineGraph from 'pb_line_graph/docs'
58
- import * as List from 'pb_list/docs'
59
- import * as LoadingInline from 'pb_loading_inline/docs'
60
- import * as Message from 'pb_message/docs'
61
- import * as MultipleUsers from 'pb_multiple_users/docs'
62
- import * as MultipleUsersStacked from 'pb_multiple_users_stacked/docs'
63
- import * as Nav from 'pb_nav/docs'
64
- import * as OnlineStatus from 'pb_online_status/docs'
65
- import * as PbReactPopover from 'pb_popover/docs'
66
- import * as Person from 'pb_person/docs'
67
- import * as PersonContact from 'pb_person_contact/docs'
68
- import * as Pill from 'pb_pill/docs'
69
- import * as ProgressPills from 'pb_progress_pills/docs'
70
- import * as ProgressSimple from 'pb_progress_simple/docs'
71
- import * as ProgressStep from 'pb_progress_step/docs'
72
- import * as Radio from 'pb_radio/docs'
73
- import * as SectionSeparator from 'pb_section_separator/docs'
74
- import * as Select from 'pb_select/docs'
75
- import * as SelectableCard from 'pb_selectable_card/docs'
76
- import * as SelectableCardIcon from 'pb_selectable_card_icon/docs'
77
- import * as SelectableIcon from 'pb_selectable_icon/docs'
78
- import * as Source from 'pb_source/docs'
79
- import * as StarRating from 'pb_star_rating/docs'
80
- import * as StatChange from 'pb_stat_change/docs'
81
- import * as StatValue from 'pb_stat_value/docs'
82
- import * as Table from 'pb_table/docs'
83
- import * as Textarea from 'pb_textarea/docs'
84
- import * as TextInput from 'pb_text_input/docs'
85
- import * as Time from 'pb_time/docs'
86
- import * as Timeline from 'pb_timeline/docs'
87
- import * as TimeStacked from 'pb_time_stacked/docs'
88
- import * as Timestamp from 'pb_timestamp/docs'
89
- import * as TimeRangeInline from 'pb_time_range_inline/docs'
90
- import * as Title from 'pb_title/docs'
91
- import * as TitleCount from 'pb_title_count/docs'
92
- import * as TitleDetail from 'pb_title_detail/docs'
93
- import * as Typeahead from 'pb_typeahead/docs'
94
- import * as Toggle from 'pb_toggle/docs'
95
- import * as User from 'pb_user/docs'
96
- import * as UserBadge from 'pb_user_badge/docs'
97
- import * as WeekdayStacked from 'pb_weekday_stacked/docs'
98
-
99
- WebpackerReact.setup({
100
- ...Avatar,
101
- ...AvatarActionButton,
102
- ...Background,
103
- ...Badge,
104
- ...BarGraph,
105
- ...Body,
106
- ...Button,
107
- ...ButtonToolbar,
108
- ...Caption,
109
- ...Card,
110
- ...Checkbox,
111
- ...CircleChart,
112
- ...CircleIconButton,
113
- ...Contact,
114
- ...Currency,
115
- ...DashboardValue,
116
- ...Date,
117
- ...DatePicker,
118
- ...DateRangeInline,
119
- ...DateRangeStacked,
120
- ...DateStacked,
121
- ...DateTimeStacked,
122
- ...DateYearStacked,
123
- ...DistributionBar,
124
- ...FileUpload,
125
- ...Filter,
126
- ...FixedConfirmationToast,
127
- ...Flex,
128
- ...FormPill,
129
- ...Gauge,
130
- ...Hashtag,
131
- ...Highlight,
132
- ...HomeAddressStreet,
133
- ...Icon,
134
- ...IconCircle,
135
- ...IconValue,
136
- ...Image,
137
- ...LabelPill,
138
- ...LabelValue,
139
- ...Layout,
140
- ...Legend,
141
- ...LineGraph,
142
- ...List,
143
- ...LoadingInline,
144
- ...Message,
145
- ...MultipleUsers,
146
- ...MultipleUsersStacked,
147
- ...Nav,
148
- ...OnlineStatus,
149
- ...PbReactPopover,
150
- ...Person,
151
- ...PersonContact,
152
- ...Pill,
153
- ...ProgressPills,
154
- ...ProgressSimple,
155
- ...ProgressStep,
156
- ...Radio,
157
- ...SectionSeparator,
158
- ...Select,
159
- ...SelectableCard,
160
- ...SelectableIcon,
161
- ...SelectableCardIcon,
162
- ...Source,
163
- ...StarRating,
164
- ...StatChange,
165
- ...StatValue,
166
- ...Table,
167
- ...Textarea,
168
- ...TextInput,
169
- ...Time,
170
- ...Timeline,
171
- ...TimeStacked,
172
- ...Timestamp,
173
- ...TimeRangeInline,
174
- ...Title,
175
- ...TitleCount,
176
- ...TitleDetail,
177
- ...Typeahead,
178
- ...Toggle,
179
- ...User,
180
- ...UserBadge,
181
- ...WeekdayStacked,
182
- })
@@ -1,12 +0,0 @@
1
- // SCAFFOLD
2
- @import "site_styles/scaffold";
3
-
4
- // KITS
5
- @import "../playbook";
6
-
7
- // APP STYLES
8
- @import "site_styles/site-style";
9
- @import "site_styles/docs/all";
10
-
11
- // FULL PAGE EXAMPLE STYLES
12
- @import "site_styles/samples";
@@ -1,21 +0,0 @@
1
- // ===========================================
2
- // Generated file from kit generator.
3
- //
4
- // ===========================================
5
-
6
- import WebpackerReact from 'webpacker-react'
7
-
8
- //
9
- // ===========================================
10
- // ===========================================
11
- // Generated file from kit generator.
12
-
13
- import Dashboards from '../../../views/playbook/samples/dashboards/index.jsx'
14
- import FilterTable from '../../../views/playbook/samples/filter_table/index.jsx'
15
- import Registration from '../../../views/playbook/samples/registration/index.jsx'
16
- import CollectionDetail from '../../../views/playbook/samples/collection_detail/index.jsx'
17
-
18
- WebpackerReact.setup({ Dashboards })
19
- WebpackerReact.setup({ FilterTable })
20
- WebpackerReact.setup({ Registration })
21
- WebpackerReact.setup({ CollectionDetail })
@@ -1,72 +0,0 @@
1
- .sample-layout {
2
- overflow-y: hidden;
3
- .sample {
4
- padding-left: 50px;
5
- border-bottom: 0px;
6
- }
7
- .code-controls {
8
- .pb_nav_list_item_text {
9
- color: white !important;
10
- }
11
- .pb_nav_list_kit_item {
12
- .pb_nav_list_item_link {
13
- border-color: transparent !important;
14
- }
15
- }
16
- }
17
-
18
- .sample-nav {
19
- padding: 0 25px;
20
- background: #172257;
21
- display: flex;
22
- width: 100%;
23
- flex-basis: 200px;
24
-
25
- }
26
-
27
- .sample-actions {
28
- display: flex;
29
- align-items: center;
30
- justify-content: center;
31
-
32
- &-right {
33
- margin-left: auto;
34
- order: 2;
35
- display: flex;
36
- align-items: center;
37
- justify-content: center;
38
- .items {
39
- padding: 5px;
40
- }
41
- }
42
- }
43
- .pb--doc {
44
- margin-bottom: 0px;
45
- }
46
- .pb--codeCopy {
47
- border: 0px;
48
- position: fixed;
49
- width: 100%;
50
- height: calc(50vh - 45px);
51
- bottom: 0;
52
- left: 0;
53
- transition: all .4s;
54
- border-radius: 0 0 6px 6px;
55
- }
56
-
57
- .pb--codeCopy.close {
58
- top: 100%;
59
- height: 0px;
60
- transition: all .4s;
61
- }
62
- .compress {
63
- position: absolute;
64
- top: 15px;
65
- right: 30px;
66
- display: none;
67
- z-index: 4;
68
- }
69
- .hiddenCodeforCopy {
70
- display: none;
71
- }
72
- }
@@ -1,43 +0,0 @@
1
- @import "../../tokens/fonts";
2
- @import "../../tokens/typography";
3
- @import "../../tokens/colors";
4
- @import "../../utilities/colors";
5
-
6
- * {
7
- box-sizing: border-box;
8
- margin: 0;
9
- padding: 0;
10
- &:before,
11
- &:after {
12
- box-sizing: border-box;
13
- }
14
- }
15
-
16
- html {
17
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
18
- height: 100vh;
19
- }
20
-
21
- body {
22
- font-family: $font_family_base;
23
- font-size: $font_base;
24
- line-height: 1.5;
25
- background-color: $bg-light;
26
- height: 100%;
27
- letter-spacing: $lspace_normal;
28
- font-weight: $regular;
29
- font-style: normal;
30
- text-rendering: optimizeLegibility;
31
- -moz-font-feature-settings: "liga" on;
32
- color: $charcoal;
33
- margin: 0 !important;
34
- padding: 0 !important;
35
- box-sizing: border-box;
36
- min-height: 100vh;
37
- padding: 50px; // REMOVE AFTER STYLED
38
- }
39
-
40
- a {
41
- text-decoration: none;
42
- color: $primary;
43
- }
@@ -1,146 +0,0 @@
1
- @import "../../tokens/colors";
2
- @import "../../tokens/spacing";
3
- @import "../../tokens/screen_sizes";
4
- @import "../../tokens/border_radius";
5
- @import "../../tokens/shadows";
6
-
7
- $selector: ".pb--page";
8
-
9
- body {
10
- overflow-x: hidden;
11
- }
12
-
13
- .pb--page {
14
- &--topNav {
15
- flex: 0 0;
16
- padding: 20px 30px;
17
- background: $white;
18
- h1 {
19
- display: flex;
20
- align-items: center;
21
- img {
22
- display: flex;
23
- }
24
- }
25
- &.dark{
26
- background: tint(#0a0527, 10);
27
- }
28
- }
29
-
30
- &--content {
31
- min-height: calc(100vh - 89px);
32
- @include break_at(breakpoint("lg")) {
33
- grid-template-columns: auto !important;
34
- }
35
- &--main {
36
- flex-grow: 1;
37
- padding: 40px 60px;
38
- height: calc(100vh - 89px);
39
- overflow: auto;
40
- @include break_at(breakpoint("lg")) {
41
- padding: $space-lg $space-xl;
42
- }
43
- &.dark{
44
- background: #0a0527;
45
- }
46
- }
47
- }
48
- &--hamburger, &--checkbox {
49
- position: absolute;
50
- right: $space-xl;
51
- top: 30px;
52
- display: none;
53
- font-size: $space-xl;
54
- width: 30px;
55
- height: 30px;
56
- color: $primary;
57
- cursor: pointer;
58
- @include break_at(breakpoint("lg")) {
59
- display: block;
60
- }
61
- }
62
- &--checkbox {
63
- opacity: 0;
64
- ~ #{$selector}--sideNav {
65
- @include break_at(breakpoint("lg")) {
66
- position: absolute;
67
- transform-origin: 0% 0%;
68
- transform: translate(100%, 0);
69
- transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
70
- border-radius: $border_rad_heavier;
71
- box-shadow: $shadow_deepest;
72
- top: 100px;
73
- right: 0;
74
- width: auto !important;
75
- z-index: 1000;
76
- }
77
- }
78
- &:checked ~ #{$selector}--sideNav {
79
- @include break_at(breakpoint("lg")) {
80
- transform: translate(-10%, 0);
81
- }
82
- }
83
- }
84
-
85
- &--sideNav {
86
- height: calc(100vh - 89px);
87
- overflow: auto;
88
- .category_section {
89
- &.active {
90
- padding: $space_xs 0;
91
- background: $bg_light;
92
- }
93
- .sub_category {
94
- padding-left: $space_md;
95
- }
96
- }
97
- &[class*=dark]{
98
- border-color:$border_dark;
99
- }
100
- }
101
- }
102
- #toggle-modes{
103
- display: flex;
104
- margin-right: 80px;
105
- }
106
- // Nav Tabs switch between Rails and React
107
- .pb--kit-type-nav {
108
- margin: 20px 0 30px;
109
- line-height: 34px;
110
- border-bottom: 2px solid rgba($border_light, 0.6);
111
-
112
- &.sample {
113
- margin: 0;
114
- border-bottom: 2px solid rgba(228, 232, 240, 0.6);
115
- background: rgb(23, 34, 87) !important;
116
- }
117
-
118
- a {
119
- padding: 0 10px;
120
- line-height: 34px;
121
- font-size: 14px;
122
- font-weight: 400;
123
- display: inline-block;
124
- position: relative;
125
-
126
- &::after {
127
- content: "";
128
- width: 100%;
129
- height: 3px;
130
- background: transparent;
131
- position: absolute;
132
- bottom: -2px;
133
- left: 0;
134
- border-radius: 1px;
135
- transition: all 0.2s ease;
136
- }
137
-
138
- &.active {
139
- font-weight: 600;
140
-
141
- &::after {
142
- background: $primary;
143
- }
144
- }
145
- }
146
- }