bullet_train-themes-tailwind_css 1.7.3 → 1.7.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a7d5852d9e6fb449df8430d2dcd3950c5f3cee8f38c0692fda79698db4ad9fd
4
- data.tar.gz: 8b345973b8691246e6ea64f33db1038c14a8e27ab164dc12bd6008ebfb85752b
3
+ metadata.gz: 753740b09cb5a46630eeb44e3afddef46fecefea49c7cc896d08d1ea150e1b22
4
+ data.tar.gz: f38b0eabc06c91f278818314c292f5c65532d9a0741135756577667fa751e971
5
5
  SHA512:
6
- metadata.gz: 2169adeb90ed059e1e18b4874e8512ee74036f712d7ab0edee6818fc37988bfcf3b32bb81564dca0d6ebccee462510dab9160f8b8f8cafb38f54ec3c01613c59
7
- data.tar.gz: 9a0014000eef93726454c08d6ea7df11e2224358eeb40cd017ccc228f8a9c0c95102842b745a22521b33a90616284470dd3ed60ad88dfa7514f6b346614f3186
6
+ metadata.gz: beb40a99d186f42409acbd87f8359dc0f5c567f8f2bd725dd9a0f81c28878e1492b20c4caef90be845df4173bad257f11e845b4d6e9f9b370abd5af1723a0832
7
+ data.tar.gz: 964e8460e658bb21ec49941506c90ae91d61bd3582715061637a412d20c49a0c7ae73d89e7a0b0ed84ac3ab418a56f7a6f0d2935f4f70a399a82ca47ae5f3d3a
@@ -5,16 +5,15 @@ form ||= current_fields_form
5
5
  # TODO: We need to do this because `options` is currently an array of strings.
6
6
  # i.e. - ["One", "Two", "Three"]
7
7
  if defined?(options) && options.is_a?(Array)
8
- button_field_buttons = options
8
+ button_field_options = options
9
9
  options = defined?(html_options) ? html_options : {}
10
10
  ActiveSupport::Deprecation.new.warn(
11
11
  "`options` will be replaced with `button_field_options` in a later version. " \
12
- "Please pass all of the strings you want to appear in your buttons to `button_field_buttons`."
12
+ "Please pass all of the strings you want to appear in your buttons to `button_field_options`."
13
13
  )
14
14
  end
15
15
 
16
16
  options ||= {}
17
- button_field_buttons ||= {}
18
17
  other_options ||= {}
19
18
 
20
19
  if defined?(html_options)
@@ -27,7 +26,7 @@ if defined?(html_options)
27
26
  )
28
27
  end
29
28
 
30
- button_field_options = options_for(form, method) if button_field_buttons.empty?
29
+ button_field_options ||= options_for(form, method)
31
30
 
32
31
  options[:data] ||= {}
33
32
  options[:data]["#{stimulus_controller}-target"] = 'shadowField'
@@ -1,7 +1,7 @@
1
1
  module BulletTrain
2
2
  module Themes
3
3
  module TailwindCss
4
- VERSION = "1.7.3"
4
+ VERSION = "1.7.4"
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.7.3
4
+ version: 1.7.4
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-05-06 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: standard