bullet_train-themes-light 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/showcase/engine/_head.html.erb +3 -0
- data/app/views/showcase/previews/field_partials/_about_field_partials.erb +23 -0
- data/app/views/showcase/previews/field_partials/_buttons.html.erb +13 -0
- data/app/views/showcase/previews/field_partials/_cloudinary_image.html.erb +6 -0
- data/app/views/showcase/previews/field_partials/_color_picker.html.erb +7 -0
- data/app/views/showcase/previews/field_partials/_date_and_time_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_date_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_email_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_emoji_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_file_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_number_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_options.html.erb +13 -0
- data/app/views/showcase/previews/field_partials/_password_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_phone_field.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_super_select.html.erb +9 -0
- data/app/views/showcase/previews/field_partials/_text_area.html.erb +5 -0
- data/app/views/showcase/previews/field_partials/_text_field.html.erb +10 -0
- data/app/views/showcase/previews/field_partials/_trix_editor.html.erb +5 -0
- data/lib/bullet_train/themes/light/version.rb +1 -1
- metadata +23 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b04caae6cc2431e82ef3bea27ae888c28d48e7d21aa69ea5b6b1603712ecd114
|
4
|
+
data.tar.gz: b430318a48804afbe617461bf564b34900264bb8b9d444e583d30b86e220ef3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 872483416e8ec76b973a4bab6b8ef44347e13a24914d2aa1285713d3dc67783d4ad5879ece18b8e619ba62ce82314731d1f24c8b7cc0b1d69e8f2d06f7f2249e
|
7
|
+
data.tar.gz: 2b7cc406e885fd8ad976a316a140467fb5d19c75570cc5a310812fc0f92fd144fc8d2e3069c30465421d372b615c65e22ee762cbe93377f4749274c296d93706
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<% showcase.description do %>
|
2
|
+
When you're building forms, use Bullet Train's Field Partials for your form fields. They DRY-up all the presentation logic without needing a third-party dependency like Formtastic.
|
3
|
+
<br/>
|
4
|
+
<br/>
|
5
|
+
Read much more about them in the extensive <a href="https://bullettrain.co/docs/field-partials" target="_blank">developer documentation</a>.
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<% form_with model: Scaffolding::CompletelyConcrete::TangibleThing.new, url: "#" do |form| %>
|
9
|
+
<% yield form %>
|
10
|
+
<% end %>
|
11
|
+
|
12
|
+
<%# To display further options use `showcase.options.x` as options with a block will clear the old options. See `_options.html.erb` for an example. %>
|
13
|
+
<% showcase.options do |o| %>
|
14
|
+
<% o.required :form, "Reference to the form object", type: "ActionView::Helpers::FormBuilder" %>
|
15
|
+
<% o.required :method, "Attribute of the model" %>
|
16
|
+
<% o.optional :options, "Options passed directly to the underlying Rails form field helper.", default: {} %>
|
17
|
+
<% o.optional :other_options, "Additional options for things like hiding labels, displaying specific error messages, etc.", default: {} %>
|
18
|
+
<% o.optional "other_options[:icon]", "Display an icon." %>
|
19
|
+
<% o.optional "other_options[:label]", "Display a specific field label." %>
|
20
|
+
<% o.optional "other_options[:hide_label]", "Hide the field label.", default: false %>
|
21
|
+
<% o.optional "other_options[:help]", "Display a specific help string." %>
|
22
|
+
<% o.optional "other_options[:error]", "Display a specific error string." %>
|
23
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Single Basic Button" do %>
|
3
|
+
<%= render "shared/fields/buttons", form: form, method: :button_value %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% showcase.sample "Multiple Buttons" do %>
|
7
|
+
<%= render "shared/fields/buttons", form: form, method: :multiple_button_values, multiple: true %>
|
8
|
+
<% end %>
|
9
|
+
|
10
|
+
<% showcase.sample "Boolean Button" do %>
|
11
|
+
<%= render "shared/fields/buttons", form: form, method: :boolean_button_value %>
|
12
|
+
<% end %>
|
13
|
+
<% end %>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Basic", description: "Requires an `ENV['CLOUDINARY_URL']` is set to render anything." do %>
|
3
|
+
<%= "ENV['CLOUDINARY_URL'] hasn't been set." unless cloudinary_enabled? %>
|
4
|
+
<%= render 'shared/fields/cloudinary_image', form: form, method: :cloudinary_image_value %>
|
5
|
+
<% end %>
|
6
|
+
<% end %>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Basic" do %>
|
3
|
+
<%= render 'shared/fields/color_picker', form: form,
|
4
|
+
method: :color_picker_value,
|
5
|
+
options: {color_picker_options: t('scaffolding/completely_concrete/tangible_things.fields.color_picker_value.options')} %>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Single Option" do %>
|
3
|
+
<%= render 'shared/fields/options', form: form, method: :option_value %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% showcase.sample "Multiple Option" do %>
|
7
|
+
<%= render 'shared/fields/options', form: form, method: :multiple_option_values, multiple: true, show_select_all_top: true %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<% showcase.options.optional :multiple, "Whether to select single or multiple values", default: false %>
|
12
|
+
<% showcase.options.optional :show_select_all_top, "Whether to put the select all toggle before the options", default: false %>
|
13
|
+
<% showcase.options.optional :show_select_all_bottom, "Whether to put the select all toggle after the options", default: false %>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Single Select" do %>
|
3
|
+
<%= render 'shared/fields/super_select', form: form, method: :super_select_value, other_options: {search: true} %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% showcase.sample "Multiple Select" do %>
|
7
|
+
<%= render 'shared/fields/super_select', form: form, method: :multiple_super_select_values, other_options: {search: true}, html_options: {multiple: true} %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%= render "showcase/previews/field_partials/about_field_partials", showcase: showcase do |form| %>
|
2
|
+
<% showcase.sample "Basic" do %>
|
3
|
+
<%= render 'shared/fields/text_field', form: form, method: :text_field_value %>
|
4
|
+
<% end %>
|
5
|
+
|
6
|
+
<% showcase.sample "With Icon" do %>
|
7
|
+
<%= render 'shared/fields/text_field', form: form, icon: 'Test', method: :text_field_value,
|
8
|
+
other_options: { label: 'New Label', hide_label: true, help: 'I am help text', error: "Error Text", icon: 'fal fa-sign-out ti ti-close' } %>
|
9
|
+
<% end %>
|
10
|
+
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bullet_train-themes-light
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Culver
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: standard
|
@@ -131,6 +131,23 @@ files:
|
|
131
131
|
- app/assets/stylesheets/tailwindcss/utilities.css
|
132
132
|
- app/javascript/application.light.js
|
133
133
|
- app/views/showcase/engine/_head.html.erb
|
134
|
+
- app/views/showcase/previews/field_partials/_about_field_partials.erb
|
135
|
+
- app/views/showcase/previews/field_partials/_buttons.html.erb
|
136
|
+
- app/views/showcase/previews/field_partials/_cloudinary_image.html.erb
|
137
|
+
- app/views/showcase/previews/field_partials/_color_picker.html.erb
|
138
|
+
- app/views/showcase/previews/field_partials/_date_and_time_field.html.erb
|
139
|
+
- app/views/showcase/previews/field_partials/_date_field.html.erb
|
140
|
+
- app/views/showcase/previews/field_partials/_email_field.html.erb
|
141
|
+
- app/views/showcase/previews/field_partials/_emoji_field.html.erb
|
142
|
+
- app/views/showcase/previews/field_partials/_file_field.html.erb
|
143
|
+
- app/views/showcase/previews/field_partials/_number_field.html.erb
|
144
|
+
- app/views/showcase/previews/field_partials/_options.html.erb
|
145
|
+
- app/views/showcase/previews/field_partials/_password_field.html.erb
|
146
|
+
- app/views/showcase/previews/field_partials/_phone_field.html.erb
|
147
|
+
- app/views/showcase/previews/field_partials/_super_select.html.erb
|
148
|
+
- app/views/showcase/previews/field_partials/_text_area.html.erb
|
149
|
+
- app/views/showcase/previews/field_partials/_text_field.html.erb
|
150
|
+
- app/views/showcase/previews/field_partials/_trix_editor.html.erb
|
134
151
|
- app/views/showcase/previews/partials/_alert.html.erb
|
135
152
|
- app/views/showcase/previews/partials/_box.html.erb
|
136
153
|
- app/views/showcase/previews/partials/_breadcrumb.html.erb
|
@@ -214,7 +231,7 @@ licenses:
|
|
214
231
|
metadata:
|
215
232
|
homepage_uri: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-themes-light
|
216
233
|
source_code_uri: https://github.com/bullet-train-co/bullet_train-core/tree/main/bullet_train-themes-light
|
217
|
-
post_install_message:
|
234
|
+
post_install_message:
|
218
235
|
rdoc_options: []
|
219
236
|
require_paths:
|
220
237
|
- lib
|
@@ -229,8 +246,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
229
246
|
- !ruby/object:Gem::Version
|
230
247
|
version: '0'
|
231
248
|
requirements: []
|
232
|
-
rubygems_version: 3.
|
233
|
-
signing_key:
|
249
|
+
rubygems_version: 3.4.10
|
250
|
+
signing_key:
|
234
251
|
specification_version: 4
|
235
252
|
summary: 'Bullet Train Themes: Light'
|
236
253
|
test_files: []
|