playbook_ui 6.4.0 → 7.0.0.pre.alpha5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +0 -2
  3. data/app/helpers/playbook/pb_kit_helper.rb +1 -0
  4. data/app/pb_kits/playbook/_playbook.scss +1 -0
  5. data/app/pb_kits/playbook/index.js +4 -0
  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.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_body/_body.scss +1 -17
  10. data/app/pb_kits/playbook/pb_body/body.rb +1 -1
  11. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +17 -31
  12. data/app/pb_kits/playbook/pb_button_toolbar/_button_toolbar.scss +8 -16
  13. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -1
  14. data/app/pb_kits/playbook/pb_checkbox/_checkbox.scss +6 -12
  15. data/app/pb_kits/playbook/pb_date/docs/_date_default.jsx +18 -0
  16. data/app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx +2 -2
  17. data/app/pb_kits/playbook/pb_date/docs/example.yml +2 -1
  18. data/app/pb_kits/playbook/pb_date/docs/index.js +1 -1
  19. data/app/pb_kits/playbook/pb_distribution_bar/_distribution_bar.html.erb +1 -8
  20. data/app/pb_kits/playbook/pb_file_upload/_file_upload.jsx +1 -1
  21. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +2 -5
  22. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.html.erb +1 -3
  23. data/app/pb_kits/playbook/pb_icon/docs/_icon_default_dark.jsx +5 -7
  24. data/app/pb_kits/playbook/pb_legend/_legend.html.erb +1 -11
  25. data/app/pb_kits/playbook/pb_line_graph/_line_graph.html.erb +1 -13
  26. data/app/pb_kits/playbook/pb_line_graph/line_graph.rb +1 -1
  27. data/app/pb_kits/playbook/pb_nav/_horizontal_nav.scss +4 -6
  28. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -7
  29. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +14 -18
  30. data/app/pb_kits/playbook/pb_person_contact/_person_contact.jsx +7 -6
  31. data/app/pb_kits/playbook/pb_person_contact/docs/_person_contact_with_wrong_numbers.jsx +1 -0
  32. data/app/pb_kits/playbook/pb_radio/_radio.scss +4 -9
  33. data/app/pb_kits/playbook/pb_select/_select.scss +4 -8
  34. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +3 -6
  35. data/app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx +5 -9
  36. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx +5 -9
  37. data/app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss +37 -35
  38. data/app/pb_kits/playbook/pb_table/styles/_hover.scss +12 -15
  39. data/app/pb_kits/playbook/pb_table/styles/_mobile.scss +4 -6
  40. data/app/pb_kits/playbook/pb_table/styles/_table-dark.scss +4 -6
  41. data/app/pb_kits/playbook/pb_title_detail/_title_detail.jsx +4 -4
  42. data/app/pb_kits/playbook/pb_typeahead/_typeahead.scss +2 -4
  43. data/app/pb_kits/playbook/react_rails_kits.js +5 -0
  44. data/app/pb_kits/playbook/tokens/_colors.scss +22 -23
  45. data/app/pb_kits/playbook/tokens/_typography.scss +5 -5
  46. data/app/pb_kits/playbook/tokens/index.scss +11 -0
  47. data/app/pb_kits/playbook/vendor.js +5 -0
  48. data/lib/playbook/engine.rb +1 -0
  49. data/lib/playbook/version.rb +1 -1
  50. data/lib/tasks/pb_release.rake +3 -0
  51. metadata +6 -63
  52. data/app/controllers/playbook/guides_controller.rb +0 -11
  53. data/app/controllers/playbook/pages_controller.rb +0 -79
  54. data/app/controllers/playbook/samples_controller.rb +0 -40
  55. data/app/pb_kits/playbook/packs/application.js +0 -55
  56. data/app/pb_kits/playbook/packs/examples.js +0 -175
  57. data/app/pb_kits/playbook/packs/main.scss +0 -12
  58. data/app/pb_kits/playbook/packs/samples.js +0 -21
  59. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  60. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  61. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  62. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -10
  63. data/app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss +0 -7
  64. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  65. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  66. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  67. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -189
  68. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  69. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  70. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  71. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  72. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  73. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  74. data/app/views/layouts/playbook/application.html.slim +0 -22
  75. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  76. data/app/views/layouts/playbook/grid.html.slim +0 -10
  77. data/app/views/layouts/playbook/samples.html.erb +0 -19
  78. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  79. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  80. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  81. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  82. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  83. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  84. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  85. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  86. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  87. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  88. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  89. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  90. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  91. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  92. data/app/views/playbook/pages/grid.html.slim +0 -2
  93. data/app/views/playbook/pages/home.html.slim +0 -4
  94. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  95. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  96. data/app/views/playbook/pages/kits.html.erb +0 -12
  97. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  98. data/app/views/playbook/pages/principles.html.slim +0 -3
  99. data/app/views/playbook/pages/tokens.html.slim +0 -15
  100. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -61
  101. data/app/views/playbook/pages/utilities.html.slim +0 -116
  102. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  103. data/app/views/playbook/samples/collection_detail/index.html.erb +0 -169
  104. data/app/views/playbook/samples/collection_detail/index.jsx +0 -372
  105. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  106. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  107. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  108. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  109. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  110. data/app/views/playbook/samples/registration/index.jsx +0 -476
  111. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -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
  }
@@ -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
 
@@ -0,0 +1,5 @@
1
+ // React-Rendered Rails Kit Exports =====
2
+ export { default as BarGraph } from './pb_bar_graph/_bar_graph.jsx'
3
+ export { default as DistributionBar } from './pb_distribution_bar/_distribution_bar.jsx'
4
+ export { default as Legend } from './pb_legend/_legend.jsx'
5
+ export { default as LineGraph } from './pb_line_graph/_line_graph.jsx'
@@ -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,9 +51,9 @@ $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
58
  $bg_dark: #172257;
59
59
  $background_colors: (
@@ -61,7 +61,7 @@ $background_colors: (
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,7 +252,6 @@ $transparent: transparent;
252
252
  }
253
253
 
254
254
  :export {
255
-
256
255
  @mixin export-colors($colors-list) {
257
256
  @each $name, $color in $colors-list {
258
257
  #{$name}: $color;
@@ -2,7 +2,7 @@
2
2
  $font_family_base: "Proxima Nova", "Helvetica Neue", Helvetica, Arial, sans_serif;
3
3
 
4
4
 
5
- // CLEAN UP AND REMOVE
5
+ /* CLEAN UP AND REMOVE */
6
6
  $font_jumbo: 36px;
7
7
  $font_largest: 32px;
8
8
  $font_larger: 28px;
@@ -29,7 +29,7 @@ $text_smaller: $font_smaller;
29
29
  $text_smallest: $font_smallest;
30
30
 
31
31
 
32
- // Headings
32
+ /* Headings */
33
33
  $heading_1: 48px;
34
34
  $heading_2: 34px;
35
35
  $heading_3: $font_larger;
@@ -38,7 +38,7 @@ $heading_4: $font_base;
38
38
 
39
39
 
40
40
 
41
- // Letter Spacing
41
+ /* Letter Spacing */
42
42
  $lspace_tightest: _.1em;
43
43
  $lspace_tighter: _.07em;
44
44
  $lspace_tight: _.03em;
@@ -52,11 +52,11 @@ $lspace_super_loosest: .2em;
52
52
 
53
53
 
54
54
 
55
- // Standard Font Weights
55
+ /* Standard Font Weights */
56
56
  $bold: 600;
57
57
  $regular: 400;
58
58
 
59
- // Non_Standard Font Weights
59
+ /* Non_Standard Font Weights */
60
60
  $extrabold: 900;
61
61
  $boldest: 800;
62
62
  $bolder: 700;
@@ -0,0 +1,11 @@
1
+ @import "animation-curves";
2
+ @import "border_radius";
3
+ @import "colors";
4
+ @import "line_height";
5
+ @import "opacity";
6
+ @import "positioning";
7
+ @import "screen_sizes";
8
+ @import "shadows";
9
+ @import "spacing";
10
+ @import "transition";
11
+ @import "typography";
@@ -19,3 +19,8 @@ PbTypeahead.start()
19
19
 
20
20
  import PbTable from './pb_table'
21
21
  PbTable.start()
22
+
23
+ // React-Rendered Rails Kits =====
24
+ import WebpackerReact from 'webpacker-react'
25
+ import * as ReactRailsPBKits from './react_rails_kits.js'
26
+ WebpackerReact.setup({ ...ReactRailsPBKits })
@@ -21,6 +21,7 @@ module Playbook
21
21
  initializer "playbook_ui.add_view_paths", after: :add_view_paths do |_app|
22
22
  ActiveSupport.on_load(:action_controller) do
23
23
  append_view_path "#{Gem.loaded_specs['playbook_ui'].full_gem_path}/app/pb_kits/playbook"
24
+ append_view_path "#{Gem.loaded_specs['playbook_ui'].full_gem_path}/app/pb_kits/playbook/config"
24
25
  end
25
26
  end
26
27
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "6.4.0"
4
+ VERSION = "7.0.0.pre.alpha5"
5
5
  end
@@ -39,6 +39,9 @@ namespace :pb_release do
39
39
  puts "Updated Gemfile.lock"
40
40
  puts "\n\n"
41
41
 
42
+ puts "\nCreating dist files"
43
+ `yarn release`
44
+
42
45
  puts "Commit your changes and create a PR to merge to master"
43
46
  end
44
47
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 7.0.0.pre.alpha5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
@@ -401,9 +401,6 @@ files:
401
401
  - app/assets/images/pb-check.svg
402
402
  - app/assets/images/pb.logo.svg
403
403
  - app/controllers/playbook/application_controller.rb
404
- - app/controllers/playbook/guides_controller.rb
405
- - app/controllers/playbook/pages_controller.rb
406
- - app/controllers/playbook/samples_controller.rb
407
404
  - app/helpers/playbook/application_helper.rb
408
405
  - app/helpers/playbook/layout_helper.rb
409
406
  - app/helpers/playbook/pb_doc_helper.rb
@@ -417,22 +414,6 @@ files:
417
414
  - app/pb_kits/playbook/config/_pb_kit_api.html.erb
418
415
  - app/pb_kits/playbook/data/menu.yml
419
416
  - app/pb_kits/playbook/index.js
420
- - app/pb_kits/playbook/packs/application.js
421
- - app/pb_kits/playbook/packs/examples.js
422
- - app/pb_kits/playbook/packs/main.scss
423
- - app/pb_kits/playbook/packs/samples.js
424
- - app/pb_kits/playbook/packs/site_styles/_samples.scss
425
- - app/pb_kits/playbook/packs/site_styles/_scaffold.scss
426
- - app/pb_kits/playbook/packs/site_styles/_site-style.scss
427
- - app/pb_kits/playbook/packs/site_styles/docs/_all.scss
428
- - app/pb_kits/playbook/packs/site_styles/docs/_bg_light_doc_example.scss
429
- - app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss
430
- - app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss
431
- - app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss
432
- - app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss
433
- - app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss
434
- - app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss
435
- - app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss
436
417
  - app/pb_kits/playbook/pb_avatar/_avatar.html.erb
437
418
  - app/pb_kits/playbook/pb_avatar/_avatar.jsx
438
419
  - app/pb_kits/playbook/pb_avatar/_avatar.scss
@@ -705,6 +686,7 @@ files:
705
686
  - app/pb_kits/playbook/pb_date/docs/_date_alignment.html.erb
706
687
  - app/pb_kits/playbook/pb_date/docs/_date_alignment.jsx
707
688
  - app/pb_kits/playbook/pb_date/docs/_date_default.html.erb
689
+ - app/pb_kits/playbook/pb_date/docs/_date_default.jsx
708
690
  - app/pb_kits/playbook/pb_date/docs/_date_default_react.jsx
709
691
  - app/pb_kits/playbook/pb_date/docs/_date_default_react.md
710
692
  - app/pb_kits/playbook/pb_date/docs/_date_timezone.html.erb
@@ -1855,6 +1837,7 @@ files:
1855
1837
  - app/pb_kits/playbook/props/percentage.rb
1856
1838
  - app/pb_kits/playbook/props/proc.rb
1857
1839
  - app/pb_kits/playbook/props/string.rb
1840
+ - app/pb_kits/playbook/react_rails_kits.js
1858
1841
  - app/pb_kits/playbook/tokens/_animation-curves.scss
1859
1842
  - app/pb_kits/playbook/tokens/_border_radius.scss
1860
1843
  - app/pb_kits/playbook/tokens/_colors.scss
@@ -1867,6 +1850,7 @@ files:
1867
1850
  - app/pb_kits/playbook/tokens/_spacing.scss
1868
1851
  - app/pb_kits/playbook/tokens/_transition.scss
1869
1852
  - app/pb_kits/playbook/tokens/_typography.scss
1853
+ - app/pb_kits/playbook/tokens/index.scss
1870
1854
  - app/pb_kits/playbook/types.js
1871
1855
  - app/pb_kits/playbook/utilities/_background_colors.scss
1872
1856
  - app/pb_kits/playbook/utilities/_colors.scss
@@ -1875,47 +1859,6 @@ files:
1875
1859
  - app/pb_kits/playbook/utilities/props.js
1876
1860
  - app/pb_kits/playbook/utilities/text.js
1877
1861
  - app/pb_kits/playbook/vendor.js
1878
- - app/views/layouts/playbook/_mobile_hamburger.html.erb
1879
- - app/views/layouts/playbook/_nav.html.erb
1880
- - app/views/layouts/playbook/_sidebar.html.erb
1881
- - app/views/layouts/playbook/application.html.slim
1882
- - app/views/layouts/playbook/fullscreen.html.slim
1883
- - app/views/layouts/playbook/grid.html.slim
1884
- - app/views/layouts/playbook/samples.html.erb
1885
- - app/views/playbook/guides/create_kit.html.slim
1886
- - app/views/playbook/guides/create_kit/_file_naming.html.md
1887
- - app/views/playbook/guides/create_kit/_generator.html.md
1888
- - app/views/playbook/guides/create_kit/_kit_examples.html.md
1889
- - app/views/playbook/guides/create_kit/_kit_rails.html.md
1890
- - app/views/playbook/guides/create_kit/_kit_react.html.md
1891
- - app/views/playbook/guides/create_kit/_layout.html.md
1892
- - app/views/playbook/guides/create_kit/_view_objects.html.md
1893
- - app/views/playbook/guides/create_kit/_writing_sass.md
1894
- - app/views/playbook/guides/use_nitro.html.slim
1895
- - app/views/playbook/guides/use_nitro/_local.html.md
1896
- - app/views/playbook/guides/use_nitro/_nitro_components.html.md
1897
- - app/views/playbook/guides/use_nitro/_versions.html.md
1898
- - app/views/playbook/pages/fullscreen.html.slim
1899
- - app/views/playbook/pages/grid.html.slim
1900
- - app/views/playbook/pages/home.html.slim
1901
- - app/views/playbook/pages/kit_category_show.html.erb
1902
- - app/views/playbook/pages/kit_show.html.erb
1903
- - app/views/playbook/pages/kits.html.erb
1904
- - app/views/playbook/pages/principals/_getting_started.html.md
1905
- - app/views/playbook/pages/principles.html.slim
1906
- - app/views/playbook/pages/tokens.html.slim
1907
- - app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim
1908
- - app/views/playbook/pages/utilities.html.slim
1909
- - app/views/playbook/pages/utilities/_pb_doc_color.html.slim
1910
- - app/views/playbook/samples/collection_detail/index.html.erb
1911
- - app/views/playbook/samples/collection_detail/index.jsx
1912
- - app/views/playbook/samples/dashboards/index.html.erb
1913
- - app/views/playbook/samples/dashboards/index.jsx
1914
- - app/views/playbook/samples/filter_table/index.html.erb
1915
- - app/views/playbook/samples/filter_table/index.jsx
1916
- - app/views/playbook/samples/registration/index.html.erb
1917
- - app/views/playbook/samples/registration/index.jsx
1918
- - app/views/playbook/samples/sample_show.html.erb
1919
1862
  - fonts/fontawesome-min.js
1920
1863
  - fonts/regular-min.js
1921
1864
  - lib/generators/kit/USAGE
@@ -1950,9 +1893,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1950
1893
  version: '0'
1951
1894
  required_rubygems_version: !ruby/object:Gem::Requirement
1952
1895
  requirements:
1953
- - - ">="
1896
+ - - ">"
1954
1897
  - !ruby/object:Gem::Version
1955
- version: '0'
1898
+ version: 1.3.1
1956
1899
  requirements: []
1957
1900
  rubyforge_project:
1958
1901
  rubygems_version: 2.7.3
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_dependency "playbook/application_controller"
4
-
5
- module Playbook
6
- class GuidesController < ApplicationController
7
- def create_kit; end
8
-
9
- def use_nitro; end
10
- end
11
- end
@@ -1,79 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_dependency "playbook/application_controller"
4
- require "yaml"
5
-
6
- module Playbook
7
- class PagesController < ApplicationController
8
- before_action :set_kit, only: %i[kit_show_rails kit_show_react]
9
- before_action :ensure_kit_type_exists, only: %i[kit_show_rails kit_show_react]
10
- before_action :set_category, only: %i[kit_category_show_rails kit_category_show_react]
11
-
12
- def home; end
13
-
14
- def utilities; end
15
-
16
- def tokens; end
17
-
18
- def kits
19
- params[:type] ||= "react"
20
- @type = params[:type]
21
- end
22
-
23
- def principles; end
24
-
25
- def grid
26
- render layout: "layouts/playbook/grid"
27
- end
28
-
29
- def kit_show_rails
30
- render template: "playbook/pages/kit_show"
31
- end
32
-
33
- def kit_show_react
34
- render template: "playbook/pages/kit_show"
35
- end
36
-
37
- def kit_category_show_rails
38
- params[:type] ||= "rails"
39
- @type = params[:type]
40
- render template: "playbook/pages/kit_category_show"
41
- end
42
-
43
- def kit_category_show_react
44
- render template: "playbook/pages/kit_category_show"
45
- end
46
-
47
- private
48
-
49
- def set_category
50
- categories = MENU["kits"].map { |link| link.first.first if link.is_a?(Hash) }.compact
51
- @category = params[:name]
52
- if categories.flatten.include?(@category)
53
- @category_kits = MENU["kits"].map { |link| link.first.last if link.is_a?(Hash) && link.first.first == @category }.compact.flatten
54
- @kits = params[:name]
55
- else
56
- redirect_to root_path, flash: { error: "That kit does not exist" }
57
- end
58
- end
59
-
60
- def set_kit
61
- menu = MENU["kits"].map { |link| link.is_a?(Hash) ? link.first.last : link }
62
- if menu.flatten.include?(params[:name])
63
- @kit = params[:name]
64
- else
65
- redirect_to root_path, flash: { error: "That kit does not exist" }
66
- end
67
- end
68
-
69
- def ensure_kit_type_exists
70
- # TODO: unsure why we cannot simply use the helpers that are included in ApplicationController - fix this
71
- is_rails_kit = action_name == "kit_show_rails"
72
- files = is_rails_kit ? File.join("**", "*.erb") : File.join("**", "*.jsx")
73
- kit_files = Dir.glob(files, base: "#{Playbook::Engine.root}/app/pb_kits/playbook/pb_#{@kit}/docs").present?
74
- if !kit_files.present?
75
- redirect_to action: is_rails_kit ? "kit_show_react" : "kit_show_rails"
76
- end
77
- end
78
- end
79
- end