bullet_train-themes-tailwind_css 1.12.1 → 1.12.3

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: 0e39e6c76c26b6c64206ff8b4052af22ebe963de71d39cd9477d0669f819526b
4
- data.tar.gz: d2cc1f35bee124c91a39f4c9b32cf0d1feb12e1b6d4c28b34c2b8b03dbf52c49
3
+ metadata.gz: 314765445853581000c3551d5db3096bede27ae61bded2d266ea4af90d9088d9
4
+ data.tar.gz: 37f472b68163d8d44c80874a3c7b00eead68e10d9035b9360c42ba08dc048fca
5
5
  SHA512:
6
- metadata.gz: a63a278f88a891d831c72125706410be552771edcb70f69de0323b9a70dd60412e27f833eafe33d2033dda21f7c50625d115ba50f4a857c55ee6764e5adcdfb1
7
- data.tar.gz: c93baff5c923129af255d0870149ac7ec07d728439db0ed49e1f25f6c051731011d8fbb7df581c4314dd7b9df13621067da27133bbb12190cc82a9a62a9f1d43
6
+ metadata.gz: 8a9d678b35126f5796b735035419feefe2387dbc05b65035d1f591e8294bfdf01d2b64f07693c1a5f0efa40853c425c031096c471d90b55cd838379f867d6fed
7
+ data.tar.gz: cfe73f6383d4f31eba817b403345a6c89779fb46ecc0c7ee7dbb56b0b12546f5880a6fde119b5e71f3ed393d8ce09cadc1ef0f866d18afe3961d711ee38de641
@@ -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.1"
4
+ VERSION = "1.12.3"
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.1
4
+ version: 1.12.3
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-16 00:00:00.000000000 Z
11
+ date: 2024-12-20 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