bullet_train-themes-light 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: a8d23d208e9e6764101a16fa058c43c5f1b2ca03aa7dfa167629c0c22fbf8987
|
4
|
+
data.tar.gz: 0d55814b00869f72d7895be379827c6f9ca7d272818926fbb4d23517946a61bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21be45c5372766aa9a4836bee30f7a680aa6c09de995d71110ee7dc141487722a1cb6f28f621d3b35d200dbbfe4e9f2bdfc52b2ffffcc0d33deb6f9789025779
|
7
|
+
data.tar.gz: aa1b28e1db344ca2773cff8d7f47289b52a31740c498f91067f56e8ff0fa30e16e61cafa9945c84ebb9cd3f129b18a480de4db7463a2981aca94b325fff50c66
|
@@ -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.2
|
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: []
|