playbook_ui 5.0.3 → 5.1.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/index.js +4 -0
  3. data/app/pb_kits/playbook/pb_filter/templates/_default.html.erb +1 -1
  4. data/app/pb_kits/playbook/pb_popover/_popover.html.erb +2 -2
  5. data/app/pb_kits/playbook/pb_popover/_popover.jsx +3 -3
  6. data/app/pb_kits/playbook/pb_popover/_popover.scss +21 -19
  7. data/app/pb_kits/playbook/pb_popover/index.js +1 -6
  8. data/app/pb_kits/playbook/tokens/index.scss +12 -0
  9. data/lib/playbook/version.rb +1 -1
  10. data/lib/tasks/pb_release.rake +3 -0
  11. metadata +5 -72
  12. data/app/assets/images/clark.jpg +0 -0
  13. data/app/assets/images/giant.jpg +0 -0
  14. data/app/assets/images/pb-caret.svg +0 -1
  15. data/app/assets/images/pb-check.svg +0 -11
  16. data/app/assets/images/pb.logo.svg +0 -28
  17. data/app/controllers/playbook/application_controller.rb +0 -13
  18. data/app/controllers/playbook/guides_controller.rb +0 -11
  19. data/app/controllers/playbook/pages_controller.rb +0 -79
  20. data/app/controllers/playbook/samples_controller.rb +0 -40
  21. data/app/pb_kits/playbook/config/_kit_example.html.erb +0 -9
  22. data/app/pb_kits/playbook/config/_kit_samples_list.html.erb +0 -3
  23. data/app/pb_kits/playbook/config/_kit_ui.html.erb +0 -40
  24. data/app/pb_kits/playbook/config/_pb_kit_api.html.erb +0 -18
  25. data/app/pb_kits/playbook/data/menu.yml +0 -93
  26. data/app/pb_kits/playbook/packs/application.js +0 -55
  27. data/app/pb_kits/playbook/packs/examples.js +0 -174
  28. data/app/pb_kits/playbook/packs/main.scss +0 -12
  29. data/app/pb_kits/playbook/packs/samples.js +0 -19
  30. data/app/pb_kits/playbook/packs/site_styles/_samples.scss +0 -72
  31. data/app/pb_kits/playbook/packs/site_styles/_scaffold.scss +0 -43
  32. data/app/pb_kits/playbook/packs/site_styles/_site-style.scss +0 -135
  33. data/app/pb_kits/playbook/packs/site_styles/docs/_all.scss +0 -9
  34. data/app/pb_kits/playbook/packs/site_styles/docs/_code_snippet.scss +0 -531
  35. data/app/pb_kits/playbook/packs/site_styles/docs/_color_utilities.scss +0 -92
  36. data/app/pb_kits/playbook/packs/site_styles/docs/_flex_examples.scss +0 -15
  37. data/app/pb_kits/playbook/packs/site_styles/docs/_kit_doc.scss +0 -190
  38. data/app/pb_kits/playbook/packs/site_styles/docs/_kits_examples.scss +0 -18
  39. data/app/pb_kits/playbook/packs/site_styles/docs/_markdown.scss +0 -82
  40. data/app/pb_kits/playbook/packs/site_styles/docs/_spacing_tokens.scss +0 -72
  41. data/app/views/layouts/playbook/_mobile_hamburger.html.erb +0 -2
  42. data/app/views/layouts/playbook/_nav.html.erb +0 -13
  43. data/app/views/layouts/playbook/_sidebar.html.erb +0 -52
  44. data/app/views/layouts/playbook/application.html.slim +0 -22
  45. data/app/views/layouts/playbook/fullscreen.html.slim +0 -10
  46. data/app/views/layouts/playbook/grid.html.slim +0 -10
  47. data/app/views/layouts/playbook/samples.html.erb +0 -18
  48. data/app/views/playbook/guides/create_kit/_file_naming.html.md +0 -2
  49. data/app/views/playbook/guides/create_kit/_generator.html.md +0 -6
  50. data/app/views/playbook/guides/create_kit/_kit_examples.html.md +0 -2
  51. data/app/views/playbook/guides/create_kit/_kit_rails.html.md +0 -2
  52. data/app/views/playbook/guides/create_kit/_kit_react.html.md +0 -2
  53. data/app/views/playbook/guides/create_kit/_layout.html.md +0 -2
  54. data/app/views/playbook/guides/create_kit/_view_objects.html.md +0 -2
  55. data/app/views/playbook/guides/create_kit/_writing_sass.md +0 -10
  56. data/app/views/playbook/guides/create_kit.html.slim +0 -16
  57. data/app/views/playbook/guides/use_nitro/_local.html.md +0 -2
  58. data/app/views/playbook/guides/use_nitro/_nitro_components.html.md +0 -2
  59. data/app/views/playbook/guides/use_nitro/_versions.html.md +0 -2
  60. data/app/views/playbook/guides/use_nitro.html.slim +0 -6
  61. data/app/views/playbook/pages/fullscreen.html.slim +0 -10
  62. data/app/views/playbook/pages/grid.html.slim +0 -2
  63. data/app/views/playbook/pages/home.html.slim +0 -4
  64. data/app/views/playbook/pages/kit_category_show.html.erb +0 -14
  65. data/app/views/playbook/pages/kit_show.html.erb +0 -33
  66. data/app/views/playbook/pages/kits.html.erb +0 -12
  67. data/app/views/playbook/pages/principals/_getting_started.html.md +0 -30
  68. data/app/views/playbook/pages/principles.html.slim +0 -3
  69. data/app/views/playbook/pages/tokens/_pb_doc_spacing.html.slim +0 -17
  70. data/app/views/playbook/pages/tokens.html.slim +0 -15
  71. data/app/views/playbook/pages/utilities/_pb_doc_color.html.slim +0 -15
  72. data/app/views/playbook/pages/utilities.html.slim +0 -116
  73. data/app/views/playbook/samples/dashboards/index.html.erb +0 -81
  74. data/app/views/playbook/samples/dashboards/index.jsx +0 -130
  75. data/app/views/playbook/samples/filter_table/index.html.erb +0 -348
  76. data/app/views/playbook/samples/filter_table/index.jsx +0 -433
  77. data/app/views/playbook/samples/registration/index.html.erb +0 -316
  78. data/app/views/playbook/samples/registration/index.jsx +0 -476
  79. data/app/views/playbook/samples/sample_show.html.erb +0 -36
@@ -1,190 +0,0 @@
1
- @import "../../../tokens/colors";
2
-
3
- .pb--doc {
4
- margin-bottom: 20px;
5
- border: 1px solid $border-light;
6
- border-radius: 6px;
7
- box-shadow: 0 4px 10px $shadow;
8
- background: $white;
9
-
10
- &-demo-row {
11
- width: 100%;
12
- display: flex;
13
- justify-content: space-around;
14
- align-items: center;
15
- margin: 50px 0;
16
- flex-wrap: wrap;
17
-
18
- & > div {
19
- margin: 20px 0;
20
- }
21
- }
22
-
23
- .pb--close-toggle {
24
- position: absolute;
25
- right: 10px;
26
- top: 10px;
27
- background: rgba($white, 0.8);
28
- padding: 0 10px;
29
- border-radius: 2px;
30
- height: 22px;
31
- display: flex;
32
- justify-content: center;
33
- align-items: center;
34
- font-size: 12px;
35
- font-weight: 600;
36
- z-index: 100;
37
- }
38
-
39
- .pb--kit-example, .pb--kit-example-markdown {
40
- padding: calc(2rem + 4px) 2rem 1rem;
41
- }
42
-
43
- .pb--kit-example {
44
- position: relative;
45
-
46
- &::after {
47
- content: '';
48
- width: 100%;
49
- height: 4px;
50
- background: $border-light;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- }
55
- }
56
-
57
- .pb--codeControls {
58
- ul {
59
- height: 45px;
60
- display: flex;
61
- justify-content: flex-end;
62
- align-items: center;
63
- list-style: none;
64
- margin: 0;
65
- padding: 0 20px;
66
-
67
- li {
68
- font-size: 12px;
69
- margin: 0;
70
- padding: 0;
71
- position: relative;
72
-
73
- a {
74
- color: $primary_action;
75
- padding: 0 10px;
76
- line-height: 45px;
77
- display: inline-block;
78
- }
79
-
80
- &::after {
81
- content: '';
82
- position: absolute;
83
- bottom: 0;
84
- left: 0;
85
- width: 100%;
86
- height: 2px;
87
- opacity: 0.9;
88
- background-color: transparent;
89
- }
90
-
91
- &.active {
92
- font-weight: 600;
93
-
94
- &::after {
95
- background-color: $primary_action;
96
- opacity: 0.2;
97
- }
98
- }
99
- }
100
- }
101
- }
102
-
103
- .pb--codeCopy {
104
- padding: 20px 40px;
105
- background: $bg_dark;
106
- position: relative;
107
- border-top: 1px solid $border-light;
108
- display: none;
109
- overflow-x: auto;
110
- border-radius: 0 0 6px 6px;
111
- }
112
-
113
- &.dark_ui {
114
- background: $bg_dark;
115
-
116
- .pb--kit-example {
117
- color: $white;
118
-
119
- &::after {
120
- background: $border-dark;
121
- }
122
- }
123
- .pb--codeCopy {
124
- border-color: $border-dark;
125
- }
126
- .pb--codeControls {
127
- ul {
128
- li {
129
- a {
130
- color: $primary_action;
131
- }
132
- }
133
- }
134
- }
135
- }
136
- }
137
-
138
- .pb--propsTable {
139
- position: relative;
140
- margin: 40px 0 0;
141
- background: $card_light;
142
- color: #faf6e4;
143
- padding: 10px 30px 10px 30px;
144
- border: 1px solid $border-light;
145
-
146
- &--table {
147
- width: 100%;
148
- border-collapse: collapse;
149
- margin-bottom: 10px;
150
-
151
- tr {
152
- padding: 10px;
153
-
154
- th {
155
- text-align: left;
156
- padding: 10px 10px 5px 10px;
157
- color: $text_lt_light;
158
- opacity: 0.7;
159
- font-size: 12px;
160
- text-transform: uppercase;
161
- }
162
-
163
- td {
164
- border-bottom: 1px solid $border-light;
165
- padding: 5px 10px;
166
- font-size: 14px;
167
- color: $text_lt_light;
168
- font-weight: 600;
169
- }
170
-
171
- &:last-child {
172
- td {
173
- border-bottom-width: 0;
174
- }
175
- }
176
- }
177
-
178
- &--notset {
179
- font-size: 12px;
180
- opacity: 0.4;
181
- font-style: italic;
182
- position: relative;
183
- font-weight: 400;
184
-
185
- &:after {
186
- content: "not set";
187
- }
188
- }
189
- }
190
- }
@@ -1,18 +0,0 @@
1
- @import "../../../tokens/colors";
2
-
3
- .pb--kits {
4
- .pb--docItem {
5
- margin: 0 0 40px 0;
6
-
7
- .pb--docItem-ui {
8
- .pb--doc {
9
- box-shadow: 0 0 0 transparent;
10
- padding: 0;
11
- margin: 10px 0;
12
- .pb--kit-example {
13
- padding: 24px 30px 20px;
14
- }
15
- }
16
- }
17
- }
18
- }
@@ -1,82 +0,0 @@
1
- @import "../../../pb_title/title_mixin";
2
- @import "../../../tokens/spacing";
3
-
4
- .markdown {
5
- h1 {
6
- @include pb_title_1;
7
- margin: 1rem 0;
8
- }
9
-
10
- h2 {
11
- @include pb_title_2;
12
- margin: 1rem 0;
13
- }
14
-
15
- h3 {
16
- @include pb_title_3;
17
- margin: 1rem 0;
18
- }
19
- h4 {
20
- @include pb_title_4;
21
- margin: 1rem 0;
22
- }
23
- h5 {
24
- margin: 1rem 0;
25
- }
26
- h6 {
27
- margin: 1rem 0;
28
- }
29
-
30
- hr {
31
- margin: 2rem 0;
32
- }
33
- p{
34
- margin: 1.5rem 0;
35
- }
36
- code {
37
- background: #122b3b;
38
- color: #faf6e4;
39
- padding: 0.1rem 0.3rem;
40
- margin: 0 5px;
41
- box-shadow: 0 2px 10px $shadow;
42
- border-radius: 0.25rem;
43
- overflow: hidden;
44
- font-size: 14px;
45
- }
46
-
47
- body {
48
- font-size: 1rem;
49
- }
50
-
51
- ul, ol {
52
- margin: 0;
53
- padding: 0;
54
- list-style: none;
55
- }
56
- ol {
57
- counter-reset: list-counter;
58
- li:before {
59
- content: counter(list-counter);
60
- counter-increment: list-counter;
61
- display: block;
62
- width: 20px;
63
- flex: 0 0 20px;
64
- text-align: left;
65
- color: $text_lt_default;
66
- font-weight: $bold;
67
- margin-right: $space-sm;
68
- }
69
- }
70
- li {
71
- border-bottom: 1px solid $border_light;
72
- padding: $space-sm 0;
73
- display: flex;
74
- align-items: left;
75
- &:last-child {
76
- border-bottom: 0;
77
- // padding-bottom: 0;
78
- }
79
- }
80
-
81
-
82
- }
@@ -1,72 +0,0 @@
1
- @import "../../../tokens/colors";
2
- @import "../../../tokens/spacing";
3
-
4
- ul {
5
- &.pb--tokens-spacing {
6
- list-style: none;
7
- display: flex;
8
- justify-content: flex-start;
9
- align-items: center;
10
- margin: 5px 0 20px 0;
11
- background: white;
12
- border-radius: 4px;
13
- border: 1px solid $border-light;
14
- padding: 10px;
15
-
16
- li {
17
- border-radius: 4px;
18
- margin: 10px 5px;
19
- position: relative;
20
-
21
- & > div {
22
- width: 80px;
23
- height: 80px;
24
- margin: 20px 15px 45px;
25
- position: relative;
26
- border: 1px solid;
27
-
28
- border-color: $royal;
29
- align-content: center;
30
- }
31
- &::before {
32
- content: attr(data-name);
33
- width: 100%;
34
- position: absolute;
35
- top: 105px;
36
- left: 0;
37
- text-align: center;
38
- font-size: 14px;
39
- font-weight: 600;
40
-
41
- }
42
- &::after {
43
- content: attr(data-variable);
44
- width: 100%;
45
- position: absolute;
46
- top: 124px;
47
- left: 0;
48
- text-align: center;
49
- font-size: 12px;
50
- opacity: 0.7;
51
-
52
- }
53
-
54
- &.dark {
55
- background: $bg_dark;
56
- color: $white;
57
- }
58
-
59
- &:first-child {
60
- margin-left: 0;
61
- }
62
- }
63
- }
64
- }
65
-
66
- @each $name, $value in $spaces{
67
- div.pb--spacing_#{$name}{
68
- width: #{$value};
69
- height: 78px;
70
- background: $shadow;
71
- }
72
- }
@@ -1,2 +0,0 @@
1
- <%= pb_rails("icon", props: { icon: "bars", classname: "pb--page--hamburger" }) %>
2
- <input type="checkbox" class="pb--page--checkbox" />
@@ -1,13 +0,0 @@
1
- <div class="pb--page--topNav">
2
- <h1>
3
- <%= link_to root_url do %>
4
- <%= image_tag("pb.logo.svg") %>
5
- <% end %>
6
- &nbsp;
7
- <%= pb_rails("caption", props: { tag: "span", text: Playbook::VERSION }) %>
8
- </h1>
9
- </div>
10
- <% flash.each do |name, msg| %>
11
- <% name = "success" if name == "notice" %>
12
- <%= pb_rails("fixed_confirmation_toast", props: { text: msg, status: name }) %>
13
- <% end %>
@@ -1,52 +0,0 @@
1
- <br>
2
- <%= pb_rails("nav", props: {
3
- title: "Kits",
4
- link: all_link(@type),
5
- variant: "subtle"
6
- }) do %>
7
- <% pb_rails("nav/item", props: {
8
- text: "All",
9
- link: all_link(@type),
10
- active: all_active(controller_name, action_name)
11
- }) %>
12
- <% MENU["kits"].each do |link| %>
13
- <% if link.is_a?(Hash) %>
14
- <div class="category_section">
15
- <%= pb_rails("nav/item", props: {
16
- active: category_active(@category, link),
17
- classname: "category",
18
- icon_right: "angle-down",
19
- link: category_link(@type, link)
20
- }) do %>
21
- <%= pb_kit_title(nav_hash_category(link)) %>
22
- <% end %>
23
- <%= pb_rails("nav", props: { variant: "subtle", classname: "sub_category"}) do %>
24
- <% nav_hash_array(link).each do |sub_link| %>
25
- <%= pb_rails("nav/item", props: {
26
- text: pb_kit_title(sub_link),
27
- link: sub_category_link(@type, sub_link),
28
- active: sub_category_active(@kit, sub_link)
29
- }) %>
30
- <% end %>
31
- <% end %>
32
- </div>
33
- <% else %>
34
- <%= pb_rails("nav/item", props: {
35
- text: pb_kit_title(link),
36
- link: kit_link(@type, link),
37
- active: kit_active(@kit, link)
38
- }) %>
39
- <% end %>
40
- <% end %>
41
- <% end %>
42
- <br>
43
- <%= pb_rails("section_separator") %>
44
- <br>
45
- <%= pb_rails("nav", props: {title: "Tokens", link: utilities_path}) do %>
46
- <% color_active = (controller_name == 'pages' && action_name == 'utilities') ? true : false %>
47
- <%= pb_rails("nav/item", props: { text: "Colors", link: utilities_path, active: color_active }) %>
48
- <% spacing_active = (controller_name == 'pages' && action_name == 'tokens') ? true : false %>
49
- <%= pb_rails("nav/item", props: { text: "Spacing", link: tokens_path, active: spacing_active }) %>
50
- <% end %>
51
- <br>
52
- <br>
@@ -1,22 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Playbook Design System
5
- = csrf_meta_tags
6
- = csp_meta_tag
7
- = stylesheet_packs_with_chunks_tag 'main'
8
- meta content="user-scalable=0, initial-scale=1.0, minimum-scale=1" name="viewport"
9
-
10
- body
11
- = render 'layouts/playbook/nav'
12
- = pb_rails("layout", props: {classname: "pb--page--content"})
13
- = render 'layouts/playbook/mobile_hamburger'
14
- = pb_rails("layout/sidebar", props: { classname: "pb--page--sideNav" })
15
- = render 'layouts/playbook/sidebar'
16
- = pb_rails("layout/body")
17
- .pb--page--content--main
18
- = yield
19
-
20
- = javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"
21
- = javascript_packs_with_chunks_tag 'application', 'examples'
22
- = yield :pb_js
@@ -1,10 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Playbook Design System
5
- = csrf_meta_tags
6
- = csp_meta_tag
7
- = stylesheet_packs_with_chunks_tag 'main'
8
- = javascript_packs_with_chunks_tag 'application'
9
- body
10
- = yield
@@ -1,10 +0,0 @@
1
- doctype html
2
- html
3
- head
4
- title Playbook Design System
5
- = csrf_meta_tags
6
- = csp_meta_tag
7
- = stylesheet_packs_with_chunks_tag 'main'
8
- = javascript_packs_with_chunks_tag 'application'
9
- body
10
- = yield
@@ -1,18 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Full Screen Examples</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
- <%= stylesheet_packs_with_chunks_tag 'main' %>
8
- </head>
9
- <body>
10
- <div class="sample-layout">
11
- <%= yield %>
12
- </div>
13
- </body>
14
-
15
- <%= javascript_include_tag "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js" %>
16
- <%= javascript_packs_with_chunks_tag 'application', 'examples', 'samples' %>
17
- <%= yield :pb_js %>
18
- </html>
@@ -1,2 +0,0 @@
1
- ## File Naming
2
- How files should be named
@@ -1,6 +0,0 @@
1
- ## Kit Generator
2
- Create a basic kit through the generator to speed up kit development.
3
-
4
- ```
5
- rails g kit my_new_kit
6
- ```
@@ -1,2 +0,0 @@
1
- ## Examples
2
- Understand how to create examples
@@ -1,2 +0,0 @@
1
- ## Rails Partial
2
- How to setup kit partial
@@ -1,2 +0,0 @@
1
- ## React Component
2
- How to setup kit component for react
@@ -1,2 +0,0 @@
1
- ## Layout and structure
2
- A a kit should be able to function without external utility classes and libraries. A kit should handle layout for it’s children.
@@ -1,2 +0,0 @@
1
- ## View Objects
2
- Understanding view objects
@@ -1,10 +0,0 @@
1
- ## Writing Sass
2
- ---
3
- #### Class names, chaining, and SASS
4
- A kit should be named using prefixed complex classes to try and avoid naming collision and style bleed. Class chaining should be avoided if possible.
5
-
6
- ---
7
-
8
- 1. Use extend a class using & when possible and avoid class chaining when possible.
9
- 2. When you must use a chained class try to avoid setting multiple properties.
10
- 3. If your using chained classes have simple names make sure they don't collide with our utilities, and try to nest them under a parent class to avoid bleed
@@ -1,16 +0,0 @@
1
- .markdown
2
- = render 'playbook/guides/create_kit/generator'
3
- br
4
- = render 'playbook/guides/create_kit/view_objects'
5
- br
6
- = render 'playbook/guides/create_kit/kit_rails'
7
- br
8
- = render 'playbook/guides/create_kit/kit_react'
9
- br
10
- = render 'playbook/guides/create_kit/kit_examples'
11
- br
12
- = render 'playbook/guides/create_kit/file_naming'
13
- br
14
- = render 'playbook/guides/create_kit/layout'
15
- br
16
- = render 'playbook/guides/create_kit/writing_sass'
@@ -1,2 +0,0 @@
1
- ## Local Development
2
- How to use on local development environment
@@ -1,2 +0,0 @@
1
- ## Nitro Components
2
- How to add to Nitro Component
@@ -1,2 +0,0 @@
1
- ## Versions
2
- How to update version
@@ -1,6 +0,0 @@
1
- .markdown
2
- = render 'playbook/guides/use_nitro/nitro_components'
3
- br
4
- = render 'playbook/guides/use_nitro/local'
5
- br
6
- = render 'playbook/guides/use_nitro/versions'
@@ -1,10 +0,0 @@
1
- = pb_rails("layout", props: {full: true, size: "md"})
2
- = pb_rails("layout/sidebar")
3
- h1 Sidebar
4
- = pb_rails("layout/body")
5
-
6
- = pb_rails("layout", props: {position: "right", size: "xl", collapse: "xl", full: true})
7
- = pb_rails("layout/sidebar")
8
- h1 Sidebar
9
- = pb_rails("layout/body")
10
- h1 Body
@@ -1,2 +0,0 @@
1
- h1 Grid Test Example
2
- = pb_react("image", props: {"url": "https://images.unsplash.com/photo-1546554137-f86b9593a222?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=634&q=80"})
@@ -1,4 +0,0 @@
1
-
2
- / PagesController.action_methods
3
-
4
- h1 Welcome to Playbook
@@ -1,14 +0,0 @@
1
- <div class="pb--kits">
2
- <%= pb_rails("title", props: { text: pb_kit_title(@category), tag: "h1", size: 1 }) %>
3
- <br>
4
- <div class="pb--kit-type-nav">
5
- <%= pb_rails("nav", props: { orientation: "horizontal" }) do %>
6
- <%= pb_rails("nav/item", props: { text: "Rails", link: kit_category_show_path(@category, type: 'rails'), active: @type == 'rails' }) %>
7
- <%= pb_rails("nav/item", props: { text: "React", link: kit_category_show_path(@category, type: 'react'), active: @type == 'react' }) %>
8
- <% end %>
9
- <%= pb_rails("section_separator") %>
10
- </div>
11
- <br>
12
- <br>
13
- <%= pb_category_kits(category_kits: @category_kits, type: @type) %>
14
- </div>
@@ -1,33 +0,0 @@
1
- <div class="pb--kit-show #{@kit}-kit">
2
- <%= pb_rails("title", props: { text: pb_kit_title(@kit), tag: "h1", size: 1 }) %>
3
- <div class="markdown">
4
- <%= markdown(get_kit_description(@kit)) %>
5
- </div>
6
- </div>
7
- <div>
8
- <div class="pb--kit-type-nav">
9
- <%= pb_rails("nav", props: { orientation: "horizontal" }) do %>
10
- <% if has_kit_type?(@kit, "rails") %>
11
- <%= pb_rails("nav/item", props: { text: "Rails", link: kit_show_rails_path(@kit), active: action_name == 'kit_show_rails' }) %>
12
- <% end %>
13
- <% if has_kit_type?(@kit, "react") %>
14
- <%= pb_rails("nav/item", props: { text: "React", link: kit_show_reacts_path(@kit), active: action_name == 'kit_show_react' }) %>
15
- <% end %>
16
- <% end %>
17
- <%= pb_rails("section_separator") %>
18
- </div>
19
- <% if (action_name == "kit_show_rails") %>
20
- <%= pb_kit(kit: @kit) %>
21
- <div class="markdown">
22
- <br>
23
- <%= markdown(get_kit_footer(@kit)) %>
24
- </div>
25
- <%= pb_kit_api(@kit) %>
26
- <% else %>
27
- <%= pb_kit(kit: @kit, type: "react") %>
28
- <div class="markdown">
29
- <br>
30
- <%= markdown(get_kit_footer(@kit)) %>
31
- </div>
32
- <% end %>
33
- </div>
@@ -1,12 +0,0 @@
1
- <div class="pb--kits">
2
- <%= pb_rails("title", props: { text: "Kits", tag: "h1", size: 1 }) %>
3
- <br>
4
- <%= pb_rails("nav", props: { orientation: "horizontal" }) do %>
5
- <%= pb_rails("nav/item", props: { text: "Rails", link: kits_path('', type: 'rails'), active: @type == 'rails' }) %>
6
- <%= pb_rails("nav/item", props: { text: "React", link: kits_path('', type: 'react'), active: @type == 'react' }) %>
7
- <% end %>
8
- <%= pb_rails("section_separator") %>
9
- <br>
10
- <br>
11
- <%= pb_kits(type: @type) %>
12
- </div>