bullet_train-themes-tailwind_css 1.12.0 → 1.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a15fa206944aec9822e546654e051d175b657cac4f74090cacb48589343f562
4
- data.tar.gz: e923acbf3e314f4fa69f9f104c9d35a2b9c93753bd37082fabf90aae61eaf14f
3
+ metadata.gz: 323a83a6d622ac267f6317ec0ef22c880e2ed9209c9c00dd45be909cbcde1b68
4
+ data.tar.gz: f0621f89bc448c20932cf60b3d51c2897d410377203031dc4e1395cd997bbc39
5
5
  SHA512:
6
- metadata.gz: b4408c8150127ea666b4522d0cda0fc7ae2e842ce2881432c923fe61c3fba45577d89545eb586d2e12ed05008f26dd7bb9ca638dae1f0be6a54b703a3a0cfa75
7
- data.tar.gz: 01c0cdb3b0e37967010b43dfc83db8fad8e978291ceb007ae96441c0f1f735cd58f77017e95aafa535fe667fe0284648b9c927d4f3810c5926e0189b6d19bceb
6
+ metadata.gz: 9f5bdcdd84e75747062c504d0c30b41cc6714072e22d30978d622a07661914df150b1ade7bd7a13e90e1b135c6c07e78b53e926b7d582ab75d6bd3ca1b18e02a
7
+ data.tar.gz: b6cc19f30a18b8c01442e7e4a700810089a67861ff86d3c25d456f5e9528529cedc10541490ee7997e28f2e8f325fcacea6aaeea69000a88eed3cfdcaaad7f49
@@ -0,0 +1,17 @@
1
+ <%
2
+ form ||= current_fields_form
3
+ options ||= {}
4
+ other_options ||= {}
5
+
6
+ # We supress the lable from the main field partial so that it doesn't show up at all.
7
+ # We use supress_label instead of hide_label, becase we don't even want it ther for
8
+ # screen readers. The `option` partial will already include a clickable lable next to
9
+ # the checkbox and there's no need to have a double label for screen readers.
10
+ other_options[:supress_label] = true
11
+ %>
12
+
13
+ <%= render 'shared/fields/field', form: form, method: method, options: options, other_options: other_options do %>
14
+ <% content_for :field do %>
15
+ <%= render 'shared/fields/option', method: method, single_check_box: true %>
16
+ <% end %>
17
+ <% end %>
@@ -31,7 +31,7 @@ options[:class] += " #{append_class}"
31
31
  <% if form %>
32
32
  <div class="flex items-center">
33
33
  <%= form.check_box method, options %>
34
- <%= form.label method, class: 'ml-2' %>
34
+ <%= form.label method, class: 'pl-2' %>
35
35
  </div>
36
36
  <% else %>
37
37
  <% value = options.delete(:value) %>
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module TailwindCss
4
- VERSION = "1.12.0"
4
+ VERSION = "1.12.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes-tailwind_css
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
11
+ date: 2024-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard
@@ -85,6 +85,7 @@ files:
85
85
  - app/views/themes/tailwind_css/fields/_active_storage_image.html.erb
86
86
  - app/views/themes/tailwind_css/fields/_address_field.html.erb
87
87
  - app/views/themes/tailwind_css/fields/_buttons.html.erb
88
+ - app/views/themes/tailwind_css/fields/_checkbox.html.erb
88
89
  - app/views/themes/tailwind_css/fields/_cloudinary_image.html.erb
89
90
  - app/views/themes/tailwind_css/fields/_color_picker.html.erb
90
91
  - app/views/themes/tailwind_css/fields/_date_and_time_field.html.erb