bullet_train-themes-tailwind_css 1.7.2 → 1.7.4

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: 99f8699378053a6869e08982f6935b06ac618ba1295b29f732f745017c6fcfc9
4
- data.tar.gz: ee8a6566dc505acb890865427d3754ef39dc1b4a1a645ae6e72305befd8526a4
3
+ metadata.gz: 753740b09cb5a46630eeb44e3afddef46fecefea49c7cc896d08d1ea150e1b22
4
+ data.tar.gz: f38b0eabc06c91f278818314c292f5c65532d9a0741135756577667fa751e971
5
5
  SHA512:
6
- metadata.gz: 15e64bfe0f28269d1e5087cc73ed9f3bfeb9d09e64c3b82f6c1b59158d5a5df5aaddfc4003447e39918cfcda1c388d7d85c4a94500d16122c53971944dd7c4e1
7
- data.tar.gz: 02327b41894884adadb20a0af8becc11c65093cf70d3b8a69a4d951684902729a4b90b5436966fe0b8a6d803745bb64855589330d08ecc3581575245de85d646
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.2"
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.2
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-04-05 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