lookbook 0.9.1 → 1.0.0.beta.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -859
- data/app/assets/lookbook/css/lookbook.css +55 -0
- data/app/assets/lookbook/css/themes/blue.css +42 -0
- data/app/assets/lookbook/css/themes/indigo.css +42 -0
- data/app/assets/lookbook/css/themes/zinc.css +42 -0
- data/app/assets/lookbook/css/{tooltip_theme.css → tooltip.css} +14 -8
- data/app/assets/lookbook/js/app.js +64 -63
- data/app/assets/lookbook/js/components/clipboard.js +47 -0
- data/app/assets/lookbook/js/components/tooltip.js +30 -0
- data/app/assets/lookbook/js/config.js +7 -4
- data/app/assets/lookbook/js/helpers/build.js +22 -0
- data/app/assets/lookbook/js/helpers/dom.js +45 -0
- data/app/assets/lookbook/js/helpers/layout.js +21 -0
- data/app/assets/lookbook/js/helpers/request.js +16 -0
- data/app/assets/lookbook/js/helpers/string.js +11 -0
- data/app/assets/lookbook/js/lib/socket.js +4 -3
- data/app/assets/lookbook/js/lib/tippy.js +8 -0
- data/app/assets/lookbook/js/lookbook.js +61 -0
- data/app/assets/lookbook/js/plugins/logger.js +39 -0
- data/app/assets/lookbook/js/stores/filter.js +2 -2
- data/app/assets/lookbook/js/stores/inspector.js +22 -16
- data/app/assets/lookbook/js/stores/layout.js +101 -5
- data/app/assets/lookbook/js/stores/nav.js +17 -16
- data/app/assets/lookbook/js/stores/pages.js +4 -2
- data/app/assets/lookbook/js/stores/settings.js +7 -0
- data/app/assets/lookbook/js/stores/workbench.js +29 -0
- data/app/components/lookbook/button/component.html.erb +28 -0
- data/app/components/lookbook/button/component.js +55 -0
- data/app/components/lookbook/button/component.rb +39 -0
- data/app/components/lookbook/button_group/component.html.erb +3 -0
- data/app/components/lookbook/button_group/component.rb +18 -0
- data/app/components/lookbook/code/component.css +57 -0
- data/app/components/lookbook/code/component.html.erb +10 -0
- data/app/components/lookbook/code/component.js +3 -0
- data/app/components/lookbook/code/component.rb +56 -0
- data/app/components/lookbook/code/highlight_github_light.css +217 -0
- data/app/components/lookbook/component.rb +41 -0
- data/app/components/lookbook/copy_button/component.html.erb +11 -0
- data/app/components/lookbook/copy_button/component.js +16 -0
- data/app/components/lookbook/copy_button/component.rb +23 -0
- data/app/components/lookbook/dimensions_display/component.html.erb +10 -0
- data/app/components/lookbook/dimensions_display/component.js +30 -0
- data/app/components/lookbook/dimensions_display/component.rb +18 -0
- data/app/components/lookbook/embed/component.html.erb +50 -0
- data/app/components/lookbook/embed/component.js +39 -0
- data/app/components/lookbook/embed/component.rb +22 -0
- data/app/components/lookbook/filter/component.html.erb +17 -0
- data/app/components/lookbook/filter/component.js +21 -0
- data/app/components/lookbook/filter/component.rb +15 -0
- data/app/components/lookbook/header/component.html.erb +79 -0
- data/app/components/lookbook/header/component.rb +9 -0
- data/app/components/lookbook/icon/component.css +11 -0
- data/app/components/lookbook/icon/component.html.erb +5 -0
- data/app/components/lookbook/icon/component.js +5 -0
- data/app/components/lookbook/icon/component.rb +23 -0
- data/app/components/lookbook/nav/component.html.erb +33 -0
- data/app/components/lookbook/nav/component.js +52 -0
- data/app/components/lookbook/nav/component.rb +37 -0
- data/app/components/lookbook/nav/item/component.html.erb +23 -0
- data/app/components/lookbook/nav/item/component.js +66 -0
- data/app/components/lookbook/nav/item/component.rb +84 -0
- data/app/components/lookbook/params_editor/component.html.erb +3 -0
- data/app/components/lookbook/params_editor/component.js +12 -0
- data/app/components/lookbook/params_editor/component.rb +11 -0
- data/app/components/lookbook/params_editor/field/component.html.erb +50 -0
- data/app/components/lookbook/params_editor/field/component.js +36 -0
- data/app/components/lookbook/params_editor/field/component.rb +41 -0
- data/app/components/lookbook/prose/component.css +12 -0
- data/app/components/lookbook/prose/component.html.erb +3 -0
- data/app/components/lookbook/prose/component.rb +26 -0
- data/app/components/lookbook/split_layout/component.html.erb +13 -0
- data/app/components/lookbook/split_layout/component.js +151 -0
- data/app/components/lookbook/split_layout/component.rb +11 -0
- data/app/components/lookbook/tabbed_content/component.html.erb +5 -0
- data/app/components/lookbook/tabbed_content/component.js +21 -0
- data/app/components/lookbook/tabbed_content/component.rb +20 -0
- data/app/components/lookbook/tabbed_content/section/component.html.erb +8 -0
- data/app/components/lookbook/tabbed_content/section/component.rb +9 -0
- data/app/components/lookbook/tabs/component.css +8 -0
- data/app/components/lookbook/tabs/component.html.erb +14 -0
- data/app/components/lookbook/tabs/component.js +107 -0
- data/app/components/lookbook/tabs/component.rb +30 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.html.erb +14 -0
- data/app/components/lookbook/tabs/dropdown_tab/component.rb +16 -0
- data/app/components/lookbook/tabs/tab/component.html.erb +18 -0
- data/app/components/lookbook/tabs/tab/component.rb +16 -0
- data/app/components/lookbook/tag_component.rb +29 -0
- data/app/components/lookbook/toolbar/component.css +16 -0
- data/app/components/lookbook/toolbar/component.html.erb +5 -0
- data/app/components/lookbook/toolbar/component.rb +26 -0
- data/app/components/lookbook/viewport/component.css +11 -0
- data/app/components/lookbook/viewport/component.html.erb +57 -0
- data/app/{assets/lookbook/js/components/preview-window.js → components/lookbook/viewport/component.js} +57 -14
- data/app/components/lookbook/viewport/component.rb +21 -0
- data/app/controllers/lookbook/application_controller.rb +16 -5
- data/app/controllers/lookbook/pages_controller.rb +18 -10
- data/app/controllers/lookbook/previews_controller.rb +62 -25
- data/app/helpers/lookbook/application_helper.rb +7 -3
- data/app/helpers/lookbook/component_helper.rb +22 -10
- data/app/helpers/lookbook/output_helper.rb +8 -4
- data/app/helpers/lookbook/page_helper.rb +13 -21
- data/app/views/layouts/lookbook/application.html.erb +76 -28
- data/app/views/layouts/lookbook/inspector.html.erb +7 -0
- data/app/views/layouts/lookbook/page.html.erb +53 -0
- data/app/views/layouts/lookbook/shell.html.erb +64 -0
- data/app/views/layouts/lookbook/skeleton.html.erb +27 -10
- data/app/views/layouts/lookbook/standalone.html.erb +5 -0
- data/app/views/lookbook/404.html.erb +15 -0
- data/app/views/lookbook/error.html.erb +34 -34
- data/app/views/lookbook/index.html.erb +11 -6
- data/app/views/lookbook/pages/show.html.erb +29 -93
- data/app/views/{layouts/lookbook → lookbook}/preview.html.erb +3 -5
- data/app/views/lookbook/previews/panels/_notes.html.erb +19 -25
- data/app/views/lookbook/previews/panels/_output.html.erb +7 -18
- data/app/views/lookbook/previews/panels/_params.html.erb +13 -15
- data/app/views/lookbook/previews/panels/_preview.html.erb +6 -52
- data/app/views/lookbook/previews/panels/_source.html.erb +7 -16
- data/app/views/lookbook/previews/show.html.erb +130 -24
- data/config/routes.rb +7 -7
- data/lib/lookbook/code_formatter.rb +37 -13
- data/lib/lookbook/collection.rb +19 -16
- data/lib/lookbook/config.rb +125 -0
- data/lib/lookbook/engine.rb +66 -59
- data/lib/lookbook/entity.rb +47 -0
- data/lib/lookbook/error.rb +1 -2
- data/lib/lookbook/features.rb +1 -1
- data/lib/lookbook/markdown.rb +3 -4
- data/lib/lookbook/page.rb +26 -43
- data/lib/lookbook/page_collection.rb +8 -0
- data/lib/lookbook/params.rb +14 -3
- data/lib/lookbook/preview.rb +16 -7
- data/lib/lookbook/preview_collection.rb +8 -0
- data/lib/lookbook/preview_controller.rb +6 -2
- data/lib/lookbook/preview_example.rb +5 -6
- data/lib/lookbook/preview_group.rb +4 -9
- data/lib/lookbook/{code_inspector.rb → source_inspector.rb} +2 -2
- data/lib/lookbook/theme.rb +22 -0
- data/lib/lookbook/utils.rb +11 -3
- data/lib/lookbook/version.rb +1 -1
- data/lib/lookbook.rb +4 -1
- data/lib/tasks/lookbook_tasks.rake +12 -0
- data/public/lookbook-assets/css/app.css +2340 -1
- data/public/lookbook-assets/css/app.css.map +11 -1
- data/public/lookbook-assets/css/lookbook.css +3040 -0
- data/public/lookbook-assets/css/lookbook.css.map +1 -0
- data/public/lookbook-assets/css/themes/blue.css +44 -0
- data/public/lookbook-assets/css/themes/blue.css.map +1 -0
- data/public/lookbook-assets/css/themes/indigo.css +44 -0
- data/public/lookbook-assets/css/themes/indigo.css.map +1 -0
- data/public/lookbook-assets/css/themes/zinc.css +44 -0
- data/public/lookbook-assets/css/themes/zinc.css.map +1 -0
- data/public/lookbook-assets/js/app.js +10861 -1
- data/public/lookbook-assets/js/app.js.map +2571 -1
- data/public/lookbook-assets/js/embed.js +895 -1
- data/public/lookbook-assets/js/embed.js.map +1 -1
- data/public/lookbook-assets/js/lookbook.js +13529 -0
- data/public/lookbook-assets/js/lookbook.js.map +1 -0
- metadata +128 -116
- data/app/assets/lookbook/css/app.css +0 -161
- data/app/assets/lookbook/css/code_theme.css +0 -214
- data/app/assets/lookbook/js/components/app.js +0 -55
- data/app/assets/lookbook/js/components/code.js +0 -5
- data/app/assets/lookbook/js/components/copy.js +0 -20
- data/app/assets/lookbook/js/components/embed.js +0 -89
- data/app/assets/lookbook/js/components/filter.js +0 -35
- data/app/assets/lookbook/js/components/inspector.js +0 -66
- data/app/assets/lookbook/js/components/nav-group.js +0 -47
- data/app/assets/lookbook/js/components/nav-item.js +0 -29
- data/app/assets/lookbook/js/components/nav.js +0 -28
- data/app/assets/lookbook/js/components/page-tabs.js +0 -9
- data/app/assets/lookbook/js/components/page.js +0 -25
- data/app/assets/lookbook/js/components/param.js +0 -34
- data/app/assets/lookbook/js/components/sidebar.js +0 -18
- data/app/assets/lookbook/js/components/sizes.js +0 -16
- data/app/assets/lookbook/js/components/splitter.js +0 -25
- data/app/assets/lookbook/js/components/tabs.js +0 -52
- data/app/assets/lookbook/js/lib/split.js +0 -15
- data/app/assets/lookbook/js/stores/sidebar.js +0 -26
- data/app/views/layouts/lookbook/basic.html.erb +0 -7
- data/app/views/lookbook/components/_branding.html.erb +0 -8
- data/app/views/lookbook/components/_code.html.erb +0 -17
- data/app/views/lookbook/components/_copy_button.html.erb +0 -11
- data/app/views/lookbook/components/_drawer.html.erb +0 -112
- data/app/views/lookbook/components/_embed.html.erb +0 -39
- data/app/views/lookbook/components/_errors.html.erb +0 -13
- data/app/views/lookbook/components/_filter.html.erb +0 -18
- data/app/views/lookbook/components/_header.html.erb +0 -6
- data/app/views/lookbook/components/_icon.html.erb +0 -5
- data/app/views/lookbook/components/_nav.html.erb +0 -16
- data/app/views/lookbook/components/_nav_collection.html.erb +0 -5
- data/app/views/lookbook/components/_nav_group.html.erb +0 -14
- data/app/views/lookbook/components/_nav_item.html.erb +0 -24
- data/app/views/lookbook/components/_nav_page.html.erb +0 -22
- data/app/views/lookbook/components/_nav_preview.html.erb +0 -13
- data/app/views/lookbook/components/_not_found.html.erb +0 -11
- data/app/views/lookbook/components/_param.html.erb +0 -21
- data/app/views/lookbook/components/_preview.html.erb +0 -77
- data/app/views/lookbook/components/_sidebar.html.erb +0 -69
- data/app/views/lookbook/pages/not_found.html.erb +0 -15
- data/app/views/lookbook/previews/error.html.erb +0 -1
- data/app/views/lookbook/previews/inputs/_select.html.erb +0 -7
- data/app/views/lookbook/previews/inputs/_text.html.erb +0 -8
- data/app/views/lookbook/previews/inputs/_textarea.html.erb +0 -8
- data/app/views/lookbook/previews/inputs/_toggle.html.erb +0 -13
- data/app/views/lookbook/previews/not_found.html.erb +0 -23
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lookbook
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0.beta.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Perkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actioncable
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activemodel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: railties
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -123,75 +137,19 @@ dependencies:
|
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '1.3'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
140
|
+
name: htmlentities
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
143
|
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
132
|
-
type: :
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.4'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: shoulda
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '4.0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '4.0'
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: warning
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.2'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '1.2'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: standard
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '1.1'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '1.1'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: capybara
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '3.3'
|
188
|
-
type: :development
|
145
|
+
version: 4.3.4
|
146
|
+
type: :runtime
|
189
147
|
prerelease: false
|
190
148
|
version_requirements: !ruby/object:Gem::Requirement
|
191
149
|
requirements:
|
192
150
|
- - "~>"
|
193
151
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
152
|
+
version: 4.3.4
|
195
153
|
description:
|
196
154
|
email:
|
197
155
|
executables: []
|
@@ -200,39 +158,102 @@ extra_rdoc_files: []
|
|
200
158
|
files:
|
201
159
|
- LICENSE.txt
|
202
160
|
- README.md
|
203
|
-
- app/assets/lookbook/css/
|
204
|
-
- app/assets/lookbook/css/
|
205
|
-
- app/assets/lookbook/css/
|
161
|
+
- app/assets/lookbook/css/lookbook.css
|
162
|
+
- app/assets/lookbook/css/themes/blue.css
|
163
|
+
- app/assets/lookbook/css/themes/indigo.css
|
164
|
+
- app/assets/lookbook/css/themes/zinc.css
|
165
|
+
- app/assets/lookbook/css/tooltip.css
|
206
166
|
- app/assets/lookbook/js/app.js
|
207
|
-
- app/assets/lookbook/js/components/
|
208
|
-
- app/assets/lookbook/js/components/
|
209
|
-
- app/assets/lookbook/js/components/copy.js
|
210
|
-
- app/assets/lookbook/js/components/embed.js
|
211
|
-
- app/assets/lookbook/js/components/filter.js
|
212
|
-
- app/assets/lookbook/js/components/inspector.js
|
213
|
-
- app/assets/lookbook/js/components/nav-group.js
|
214
|
-
- app/assets/lookbook/js/components/nav-item.js
|
215
|
-
- app/assets/lookbook/js/components/nav.js
|
216
|
-
- app/assets/lookbook/js/components/page-tabs.js
|
217
|
-
- app/assets/lookbook/js/components/page.js
|
218
|
-
- app/assets/lookbook/js/components/param.js
|
219
|
-
- app/assets/lookbook/js/components/preview-window.js
|
220
|
-
- app/assets/lookbook/js/components/sidebar.js
|
221
|
-
- app/assets/lookbook/js/components/sizes.js
|
222
|
-
- app/assets/lookbook/js/components/splitter.js
|
223
|
-
- app/assets/lookbook/js/components/tabs.js
|
167
|
+
- app/assets/lookbook/js/components/clipboard.js
|
168
|
+
- app/assets/lookbook/js/components/tooltip.js
|
224
169
|
- app/assets/lookbook/js/config.js
|
225
170
|
- app/assets/lookbook/js/embed.js
|
171
|
+
- app/assets/lookbook/js/helpers/build.js
|
172
|
+
- app/assets/lookbook/js/helpers/dom.js
|
173
|
+
- app/assets/lookbook/js/helpers/layout.js
|
174
|
+
- app/assets/lookbook/js/helpers/request.js
|
175
|
+
- app/assets/lookbook/js/helpers/string.js
|
226
176
|
- app/assets/lookbook/js/lib/socket.js
|
227
|
-
- app/assets/lookbook/js/lib/
|
177
|
+
- app/assets/lookbook/js/lib/tippy.js
|
178
|
+
- app/assets/lookbook/js/lookbook.js
|
179
|
+
- app/assets/lookbook/js/plugins/logger.js
|
228
180
|
- app/assets/lookbook/js/stores/filter.js
|
229
181
|
- app/assets/lookbook/js/stores/inspector.js
|
230
182
|
- app/assets/lookbook/js/stores/layout.js
|
231
183
|
- app/assets/lookbook/js/stores/nav.js
|
232
184
|
- app/assets/lookbook/js/stores/pages.js
|
233
|
-
- app/assets/lookbook/js/stores/
|
185
|
+
- app/assets/lookbook/js/stores/settings.js
|
186
|
+
- app/assets/lookbook/js/stores/workbench.js
|
234
187
|
- app/channels/lookbook/connection.rb
|
235
188
|
- app/channels/lookbook/reload_channel.rb
|
189
|
+
- app/components/lookbook/button/component.html.erb
|
190
|
+
- app/components/lookbook/button/component.js
|
191
|
+
- app/components/lookbook/button/component.rb
|
192
|
+
- app/components/lookbook/button_group/component.html.erb
|
193
|
+
- app/components/lookbook/button_group/component.rb
|
194
|
+
- app/components/lookbook/code/component.css
|
195
|
+
- app/components/lookbook/code/component.html.erb
|
196
|
+
- app/components/lookbook/code/component.js
|
197
|
+
- app/components/lookbook/code/component.rb
|
198
|
+
- app/components/lookbook/code/highlight_github_light.css
|
199
|
+
- app/components/lookbook/component.rb
|
200
|
+
- app/components/lookbook/copy_button/component.html.erb
|
201
|
+
- app/components/lookbook/copy_button/component.js
|
202
|
+
- app/components/lookbook/copy_button/component.rb
|
203
|
+
- app/components/lookbook/dimensions_display/component.html.erb
|
204
|
+
- app/components/lookbook/dimensions_display/component.js
|
205
|
+
- app/components/lookbook/dimensions_display/component.rb
|
206
|
+
- app/components/lookbook/embed/component.html.erb
|
207
|
+
- app/components/lookbook/embed/component.js
|
208
|
+
- app/components/lookbook/embed/component.rb
|
209
|
+
- app/components/lookbook/filter/component.html.erb
|
210
|
+
- app/components/lookbook/filter/component.js
|
211
|
+
- app/components/lookbook/filter/component.rb
|
212
|
+
- app/components/lookbook/header/component.html.erb
|
213
|
+
- app/components/lookbook/header/component.rb
|
214
|
+
- app/components/lookbook/icon/component.css
|
215
|
+
- app/components/lookbook/icon/component.html.erb
|
216
|
+
- app/components/lookbook/icon/component.js
|
217
|
+
- app/components/lookbook/icon/component.rb
|
218
|
+
- app/components/lookbook/nav/component.html.erb
|
219
|
+
- app/components/lookbook/nav/component.js
|
220
|
+
- app/components/lookbook/nav/component.rb
|
221
|
+
- app/components/lookbook/nav/item/component.html.erb
|
222
|
+
- app/components/lookbook/nav/item/component.js
|
223
|
+
- app/components/lookbook/nav/item/component.rb
|
224
|
+
- app/components/lookbook/params_editor/component.html.erb
|
225
|
+
- app/components/lookbook/params_editor/component.js
|
226
|
+
- app/components/lookbook/params_editor/component.rb
|
227
|
+
- app/components/lookbook/params_editor/field/component.html.erb
|
228
|
+
- app/components/lookbook/params_editor/field/component.js
|
229
|
+
- app/components/lookbook/params_editor/field/component.rb
|
230
|
+
- app/components/lookbook/prose/component.css
|
231
|
+
- app/components/lookbook/prose/component.html.erb
|
232
|
+
- app/components/lookbook/prose/component.rb
|
233
|
+
- app/components/lookbook/split_layout/component.html.erb
|
234
|
+
- app/components/lookbook/split_layout/component.js
|
235
|
+
- app/components/lookbook/split_layout/component.rb
|
236
|
+
- app/components/lookbook/tabbed_content/component.html.erb
|
237
|
+
- app/components/lookbook/tabbed_content/component.js
|
238
|
+
- app/components/lookbook/tabbed_content/component.rb
|
239
|
+
- app/components/lookbook/tabbed_content/section/component.html.erb
|
240
|
+
- app/components/lookbook/tabbed_content/section/component.rb
|
241
|
+
- app/components/lookbook/tabs/component.css
|
242
|
+
- app/components/lookbook/tabs/component.html.erb
|
243
|
+
- app/components/lookbook/tabs/component.js
|
244
|
+
- app/components/lookbook/tabs/component.rb
|
245
|
+
- app/components/lookbook/tabs/dropdown_tab/component.html.erb
|
246
|
+
- app/components/lookbook/tabs/dropdown_tab/component.rb
|
247
|
+
- app/components/lookbook/tabs/tab/component.html.erb
|
248
|
+
- app/components/lookbook/tabs/tab/component.rb
|
249
|
+
- app/components/lookbook/tag_component.rb
|
250
|
+
- app/components/lookbook/toolbar/component.css
|
251
|
+
- app/components/lookbook/toolbar/component.html.erb
|
252
|
+
- app/components/lookbook/toolbar/component.rb
|
253
|
+
- app/components/lookbook/viewport/component.css
|
254
|
+
- app/components/lookbook/viewport/component.html.erb
|
255
|
+
- app/components/lookbook/viewport/component.js
|
256
|
+
- app/components/lookbook/viewport/component.rb
|
236
257
|
- app/controllers/lookbook/application_controller.rb
|
237
258
|
- app/controllers/lookbook/page_controller.rb
|
238
259
|
- app/controllers/lookbook/pages_controller.rb
|
@@ -243,38 +264,16 @@ files:
|
|
243
264
|
- app/helpers/lookbook/page_helper.rb
|
244
265
|
- app/helpers/lookbook/preview_helper.rb
|
245
266
|
- app/views/layouts/lookbook/application.html.erb
|
246
|
-
- app/views/layouts/lookbook/
|
247
|
-
- app/views/layouts/lookbook/
|
267
|
+
- app/views/layouts/lookbook/inspector.html.erb
|
268
|
+
- app/views/layouts/lookbook/page.html.erb
|
269
|
+
- app/views/layouts/lookbook/shell.html.erb
|
248
270
|
- app/views/layouts/lookbook/skeleton.html.erb
|
249
|
-
- app/views/lookbook/
|
250
|
-
- app/views/lookbook/
|
251
|
-
- app/views/lookbook/components/_copy_button.html.erb
|
252
|
-
- app/views/lookbook/components/_drawer.html.erb
|
253
|
-
- app/views/lookbook/components/_embed.html.erb
|
254
|
-
- app/views/lookbook/components/_errors.html.erb
|
255
|
-
- app/views/lookbook/components/_filter.html.erb
|
256
|
-
- app/views/lookbook/components/_header.html.erb
|
257
|
-
- app/views/lookbook/components/_icon.html.erb
|
258
|
-
- app/views/lookbook/components/_nav.html.erb
|
259
|
-
- app/views/lookbook/components/_nav_collection.html.erb
|
260
|
-
- app/views/lookbook/components/_nav_group.html.erb
|
261
|
-
- app/views/lookbook/components/_nav_item.html.erb
|
262
|
-
- app/views/lookbook/components/_nav_page.html.erb
|
263
|
-
- app/views/lookbook/components/_nav_preview.html.erb
|
264
|
-
- app/views/lookbook/components/_not_found.html.erb
|
265
|
-
- app/views/lookbook/components/_param.html.erb
|
266
|
-
- app/views/lookbook/components/_preview.html.erb
|
267
|
-
- app/views/lookbook/components/_sidebar.html.erb
|
271
|
+
- app/views/layouts/lookbook/standalone.html.erb
|
272
|
+
- app/views/lookbook/404.html.erb
|
268
273
|
- app/views/lookbook/error.html.erb
|
269
274
|
- app/views/lookbook/index.html.erb
|
270
|
-
- app/views/lookbook/pages/not_found.html.erb
|
271
275
|
- app/views/lookbook/pages/show.html.erb
|
272
|
-
- app/views/lookbook/
|
273
|
-
- app/views/lookbook/previews/inputs/_select.html.erb
|
274
|
-
- app/views/lookbook/previews/inputs/_text.html.erb
|
275
|
-
- app/views/lookbook/previews/inputs/_textarea.html.erb
|
276
|
-
- app/views/lookbook/previews/inputs/_toggle.html.erb
|
277
|
-
- app/views/lookbook/previews/not_found.html.erb
|
276
|
+
- app/views/lookbook/preview.html.erb
|
278
277
|
- app/views/lookbook/previews/panels/_notes.html.erb
|
279
278
|
- app/views/lookbook/previews/panels/_output.html.erb
|
280
279
|
- app/views/lookbook/previews/panels/_params.html.erb
|
@@ -284,9 +283,10 @@ files:
|
|
284
283
|
- config/routes.rb
|
285
284
|
- lib/lookbook.rb
|
286
285
|
- lib/lookbook/code_formatter.rb
|
287
|
-
- lib/lookbook/code_inspector.rb
|
288
286
|
- lib/lookbook/collection.rb
|
287
|
+
- lib/lookbook/config.rb
|
289
288
|
- lib/lookbook/engine.rb
|
289
|
+
- lib/lookbook/entity.rb
|
290
290
|
- lib/lookbook/error.rb
|
291
291
|
- lib/lookbook/features.rb
|
292
292
|
- lib/lookbook/lang.rb
|
@@ -300,16 +300,28 @@ files:
|
|
300
300
|
- lib/lookbook/preview_controller.rb
|
301
301
|
- lib/lookbook/preview_example.rb
|
302
302
|
- lib/lookbook/preview_group.rb
|
303
|
+
- lib/lookbook/source_inspector.rb
|
304
|
+
- lib/lookbook/theme.rb
|
303
305
|
- lib/lookbook/utils.rb
|
304
306
|
- lib/lookbook/version.rb
|
305
307
|
- lib/tasks/lookbook_tasks.rake
|
306
308
|
- public/lookbook-assets/css/app.css
|
307
309
|
- public/lookbook-assets/css/app.css.map
|
310
|
+
- public/lookbook-assets/css/lookbook.css
|
311
|
+
- public/lookbook-assets/css/lookbook.css.map
|
312
|
+
- public/lookbook-assets/css/themes/blue.css
|
313
|
+
- public/lookbook-assets/css/themes/blue.css.map
|
314
|
+
- public/lookbook-assets/css/themes/indigo.css
|
315
|
+
- public/lookbook-assets/css/themes/indigo.css.map
|
316
|
+
- public/lookbook-assets/css/themes/zinc.css
|
317
|
+
- public/lookbook-assets/css/themes/zinc.css.map
|
308
318
|
- public/lookbook-assets/feather-sprite.svg
|
309
319
|
- public/lookbook-assets/js/app.js
|
310
320
|
- public/lookbook-assets/js/app.js.map
|
311
321
|
- public/lookbook-assets/js/embed.js
|
312
322
|
- public/lookbook-assets/js/embed.js.map
|
323
|
+
- public/lookbook-assets/js/lookbook.js
|
324
|
+
- public/lookbook-assets/js/lookbook.js.map
|
313
325
|
homepage: https://github.com/allmarkedup/lookbook
|
314
326
|
licenses:
|
315
327
|
- MIT
|
@@ -322,12 +334,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
322
334
|
requirements:
|
323
335
|
- - ">="
|
324
336
|
- !ruby/object:Gem::Version
|
325
|
-
version:
|
337
|
+
version: '0'
|
326
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
327
339
|
requirements:
|
328
|
-
- - "
|
340
|
+
- - ">"
|
329
341
|
- !ruby/object:Gem::Version
|
330
|
-
version:
|
342
|
+
version: 1.3.1
|
331
343
|
requirements: []
|
332
344
|
rubygems_version: 3.2.22
|
333
345
|
signing_key:
|
@@ -1,161 +0,0 @@
|
|
1
|
-
@import "tailwindcss/base";
|
2
|
-
@import "tailwindcss/components";
|
3
|
-
@import "tailwindcss/utilities";
|
4
|
-
@import "tippy.js/dist/tippy";
|
5
|
-
@import "tippy.js/dist/border";
|
6
|
-
@import "code_theme";
|
7
|
-
@import "tooltip_theme";
|
8
|
-
|
9
|
-
@layer base {
|
10
|
-
html {
|
11
|
-
scroll-behavior: smooth;
|
12
|
-
}
|
13
|
-
|
14
|
-
@media screen and (prefers-reduced-motion: reduce) {
|
15
|
-
html {
|
16
|
-
scroll-behavior: auto;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
|
20
|
-
[x-cloak] {
|
21
|
-
display: none !important;
|
22
|
-
}
|
23
|
-
|
24
|
-
pre[class*="language-"] {
|
25
|
-
padding: 0 !important;
|
26
|
-
margin: 0 !important;
|
27
|
-
}
|
28
|
-
|
29
|
-
.feather {
|
30
|
-
width: 24px;
|
31
|
-
height: 24px;
|
32
|
-
stroke: currentColor;
|
33
|
-
stroke-width: 2;
|
34
|
-
stroke-linecap: round;
|
35
|
-
stroke-linejoin: round;
|
36
|
-
fill: none;
|
37
|
-
}
|
38
|
-
|
39
|
-
::-webkit-scrollbar {
|
40
|
-
width: 8px;
|
41
|
-
height: 8px;
|
42
|
-
}
|
43
|
-
|
44
|
-
::-webkit-scrollbar-track {
|
45
|
-
background: transparent;
|
46
|
-
}
|
47
|
-
|
48
|
-
::-webkit-scrollbar-thumb {
|
49
|
-
@apply bg-gray-300 transition-colors;
|
50
|
-
border-radius: 6px;
|
51
|
-
border: 2px solid transparent;
|
52
|
-
background-clip: content-box;
|
53
|
-
}
|
54
|
-
|
55
|
-
::-webkit-scrollbar-thumb:hover {
|
56
|
-
@apply bg-gray-400;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
|
60
|
-
@layer components {
|
61
|
-
.unsectioned > nav > ul > li > div {
|
62
|
-
@apply py-1 border-b border-gray-300;
|
63
|
-
}
|
64
|
-
|
65
|
-
.nav-toggle {
|
66
|
-
@apply flex items-center cursor-pointer pr-3 hover:bg-gray-200 hover:bg-opacity-50;
|
67
|
-
}
|
68
|
-
|
69
|
-
.nav-label {
|
70
|
-
@apply truncate w-full whitespace-nowrap text-left select-none;
|
71
|
-
}
|
72
|
-
|
73
|
-
.code {
|
74
|
-
@apply font-mono;
|
75
|
-
}
|
76
|
-
|
77
|
-
.code pre {
|
78
|
-
@apply block;
|
79
|
-
}
|
80
|
-
|
81
|
-
.code.wrapped pre {
|
82
|
-
@apply whitespace-pre-wrap;
|
83
|
-
}
|
84
|
-
|
85
|
-
.code .line {
|
86
|
-
@apply leading-relaxed;
|
87
|
-
}
|
88
|
-
|
89
|
-
.code.numbered {
|
90
|
-
@apply relative;
|
91
|
-
}
|
92
|
-
|
93
|
-
.code.numbered:before {
|
94
|
-
content: "";
|
95
|
-
left: 2.7em;
|
96
|
-
@apply absolute top-0 bottom-0 border-r border-gray-200 z-10;
|
97
|
-
}
|
98
|
-
|
99
|
-
.code.numbered .line {
|
100
|
-
padding-left: calc(2.7em + 14px);
|
101
|
-
@apply relative;
|
102
|
-
}
|
103
|
-
|
104
|
-
.code .line-number {
|
105
|
-
display: inline-block;
|
106
|
-
width: calc(2.7em + 8px);
|
107
|
-
padding-top: 3px;
|
108
|
-
padding-bottom: 3px;
|
109
|
-
padding-right: 8px;
|
110
|
-
margin-right: 16px;
|
111
|
-
@apply font-mono text-right text-gray-400 flex-none text-xs absolute left-0;
|
112
|
-
}
|
113
|
-
|
114
|
-
.code .line-content {
|
115
|
-
@apply flex-none pr-4;
|
116
|
-
}
|
117
|
-
|
118
|
-
.code.focussed .line:not(.highlighted-line) *,
|
119
|
-
.code.focussed .line:not(.highlighted-line) .line-content * {
|
120
|
-
@apply !text-gray-700 !text-opacity-40;
|
121
|
-
}
|
122
|
-
|
123
|
-
.code.focussed .line:not(.highlighted-line) .line-number {
|
124
|
-
@apply !opacity-70;
|
125
|
-
}
|
126
|
-
|
127
|
-
.code.focussed .line.highlighted-line {
|
128
|
-
@apply bg-yellow-50;
|
129
|
-
}
|
130
|
-
|
131
|
-
.code.focussed .line.highlighted-line .line-number {
|
132
|
-
@apply text-gray-900;
|
133
|
-
}
|
134
|
-
|
135
|
-
.prose .code {
|
136
|
-
@apply !bg-white border border-gray-300 text-gray-600 my-8 rounded-md py-4 text-sm overflow-auto max-w-3xl w-full mx-auto;
|
137
|
-
}
|
138
|
-
|
139
|
-
.prose .code:not(.numbered) .line {
|
140
|
-
@apply px-4;
|
141
|
-
}
|
142
|
-
|
143
|
-
.prose .embed {
|
144
|
-
@apply my-8;
|
145
|
-
}
|
146
|
-
|
147
|
-
.resize-handle {
|
148
|
-
@apply flex items-center justify-center h-full w-full border-gray-300 bg-white hover:bg-indigo-100 hover:bg-opacity-20 text-gray-400 hover:text-gray-700 transition select-none touch-none;
|
149
|
-
}
|
150
|
-
}
|
151
|
-
|
152
|
-
@layer utilities {
|
153
|
-
.form-input {
|
154
|
-
@apply border-gray-300 text-gray-700 focus:ring-indigo-300 focus:border-indigo-300 rounded-sm text-sm w-full;
|
155
|
-
}
|
156
|
-
|
157
|
-
.checked-bg {
|
158
|
-
background-color: #ffffff;
|
159
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cg fill='%23f3f3f3' fill-opacity='1'%3E%3Cpath fill-rule='evenodd' d='M0 0h4v4H0V0zm4 4h4v4H4V4z'/%3E%3C/g%3E%3C/svg%3E");
|
160
|
-
}
|
161
|
-
}
|