ariadne_view_components 0.0.33 → 0.0.34

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: baf9f9145936990232900edf133055bc30c028b3e1614f44bb893e7925ba6140
4
- data.tar.gz: 37411fe0c95a89f54c1658a03387c68a7f74de1bb36561b416ef861f7ce84122
3
+ metadata.gz: ba47f27045f9867720b8445367a097381c92b782a061fb8c23e1da44bd3db1ab
4
+ data.tar.gz: 015d0da3cf3396753d2947a5225987d55fd7c4571ef64cbbfabbb21647f10686
5
5
  SHA512:
6
- metadata.gz: 6d692725b55b3f5666cdb907c9e0130440fe6f85c4b98f0070700b6a2a1c276ff460f3a3b9fd2d01e3e5ca7e7599425c6cd365ff0a577075d954b018d328c26d
7
- data.tar.gz: 1f2ee59a1a76cc70fecf0899c613205f21e4d49b40c2fa59716e7b2922bf1e03c2a6882b9fbd7c8439fb49a173d7d0941043c9f0e2f2099a435e51363c2839cb
6
+ metadata.gz: 8a192de78dff47fab0ed7200fa1b6b868024286c841bac218c6595bb779e7e71334af96c9af5f00f92632a207fdbec8377b46513d22f2c68e084f464a72774cb
7
+ data.tar.gz: 6568aae1b56db86af05fa9e1acde5b324e4e3f9295da7103cb919a2663aa6fa31e00edba7c5ae64becfb10defd0f165d765aef692882de16360e320e01e20d9e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ## [v0.0.33](https://github.com/yettoapp/ariadne/tree/v0.0.33) (2023-03-21)
4
8
 
5
9
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.32...v0.0.33)
@@ -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"
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.33"
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.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian