ariadne_view_components 0.0.32-x64-mingw-ucrt → 0.0.34-x64-mingw-ucrt

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: b9beb02c0e158d85453bef6fdd570a9b8f2f4d58d717377442549dee37ca5b64
4
- data.tar.gz: 297449ba5dfa9904ac5fece03e7b01b13cee617d45c241413e929bfddc219bf6
3
+ metadata.gz: 878fb0b2c4ee8299a36d8ba007c44c314452db795f9ea3bc2026452fdad95483
4
+ data.tar.gz: 60f95a97917306108aaa283482e8fa4d6d2487bbc8c8a3aac99473d0d04bf6da
5
5
  SHA512:
6
- metadata.gz: 84b6ac53919c35d241b90e4b4eb03b148f0761a0b1884d870ffb196733795440489f24327d38617bd5f1ee415f210b3a5150bda4faf30eb77dc26fd9624830ca
7
- data.tar.gz: 900121446e92101db29039b1455570a1fb87a79c877c45ece793ac201b1d5698eac4a2cd61be96593356f11c01cbacbc93cb6a8bec3445db8442042e43fd1655
6
+ metadata.gz: 0f697adb35f0522c3a3be9e31a09bc09bbb786497ee3f73dd505bf5b46e921bed19b0b6377cf3151b75a2fbba0e1407d59382664a42a1e005bf41e51524d68f1
7
+ data.tar.gz: 75fd6867e31caa5eba510192e0124fccbe972bb0f8747cee4d53ef09e42287f78ff77fe654fdb83ec95f88390bdfb3a8236de0a2da90e2c385e7997baed9f7c9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.34](https://github.com/yettoapp/ariadne/tree/v0.0.34) (2023-03-21)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.33...v0.0.34)
6
+
7
+ ## [v0.0.33](https://github.com/yettoapp/ariadne/tree/v0.0.33) (2023-03-21)
8
+
9
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.32...v0.0.33)
10
+
3
11
  ## [v0.0.32](https://github.com/yettoapp/ariadne/tree/v0.0.32) (2023-03-21)
4
12
 
5
13
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.31...v0.0.32)
@@ -2,6 +2,9 @@
2
2
 
3
3
  module Ariadne
4
4
  # :nodoc:
5
+ # Many of the form methods simply call out to the corresponding ActionView::Helpers::FormBuilder methods,
6
+ # documented at https://api.rubyonrails.org/classes/ActionView/Helpers/FormBuilder.html, with
7
+ # default Tailwind classes applied.
5
8
  class FormBuilder < ActionView::Helpers::FormBuilder
6
9
  include ClassNameHelper
7
10
 
@@ -27,9 +30,9 @@ module Ariadne
27
30
  end
28
31
 
29
32
  DEFAULT_LABEL_CLASSES = "ariadne-block ariadne-text-sm ariadne-font-medium ariadne-text-gray-700 ariadne-pl-2"
30
- def label(object_name, content, options = {}, &block)
33
+ def label(method, text = nil, options = {}, &block)
31
34
  options[:class] = class_names(DEFAULT_LABEL_CLASSES, options.delete(:classes))
32
- super(object_name, content, options, &block)
35
+ super(method, text, options, &block)
33
36
  end
34
37
 
35
38
  DEFAULT_TEXT_CLASSES = "ariadne-shadow-sm focus:ariadne-ring-slate-500 focus:ariadne-border-slate-500 ariadne-block ariadne-w-full sm:ariadne-text-sm ariadne-border-gray-300 ariadne-rounded-md"
@@ -39,15 +42,15 @@ module Ariadne
39
42
  end
40
43
 
41
44
  DEFAULT_CHECKBOX_CLASSES = "focus:ariadne-ring-slate-500 ariadne-h-4 ariadne-w-4 ariadne-text-slate-600 ariadne-border-slate-300 ariadne-rounded"
42
- def check_box(object_name, method, options = {}, checked_value = "1", unchecked_value = "0")
45
+ def check_box(method, options = {}, checked_value = "1", unchecked_value = "0")
43
46
  options[:class] = class_names(DEFAULT_CHECKBOX_CLASSES, options.delete(:classes))
44
- super(object_name, method, options, checked_value, unchecked_value)
47
+ super(method, options, checked_value, unchecked_value)
45
48
  end
46
49
 
47
50
  DEFAULT_RADIO_CLASSES = "focus:ariadne-ring-slate-500 ariadne-h-4 ariadne-w-4 ariadne-text-slate-600 ariadne-border-gray-300 ariadne-rounded"
48
- def radio_button(object_name, method, tag_value, options = {})
51
+ def radio_button(method, tag_value, options = {})
49
52
  options[:class] = class_names(DEFAULT_RADIO_CLASSES, options.delete(:classes))
50
- super(object_name, method, tag_value, **options)
53
+ super(method, tag_value, **options)
51
54
  end
52
55
 
53
56
  DEFAULT_TEXTAREA_CLASSES = "ariadne-shadow-sm focus:ariadne-ring-slate-500 focus:ariadne-border-slate-500 ariadne-block ariadne-w-full sm:ariadne-text-sm ariadne-border ariadne-border-gray-300 ariadne-rounded-md"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.32"
5
+ VERSION = "0.0.34"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.34
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Garen J. Torikian