ariadne_view_components 0.0.83.3 → 0.0.85

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ module Ariadne
4
4
  module Forms
5
5
  module Dsl
6
6
  # :nodoc:
7
- class Badge
7
+ class Status
8
8
  include InputMethods
9
9
 
10
10
  attr_reader :builder, :form, :text, :options
@@ -19,11 +19,14 @@ module Ariadne
19
19
  end
20
20
 
21
21
  def to_component
22
- Ariadne::UI::Badge::Component.new(text: @text, **@options)
22
+ leading_visual_heroicon = @options.delete(:leading_visual_heroicon)
23
+ badge = Ariadne::UI::Badge::Component.new(text: @text, **@options)
24
+ badge.with_leading_visual_heroicon(**leading_visual_heroicon)
25
+ badge
23
26
  end
24
27
 
25
28
  def type
26
- :badge
29
+ :status
27
30
  end
28
31
 
29
32
  def input?
@@ -3,6 +3,6 @@
3
3
  # :nocov:
4
4
  module Ariadne
5
5
  module ViewComponents
6
- VERSION = "0.0.83.3"
6
+ VERSION = "0.0.85"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.83.3
4
+ version: 0.0.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge
@@ -235,6 +235,9 @@ files:
235
235
  - app/components/ariadne/ui/table/header/component.rb
236
236
  - app/components/ariadne/ui/table/row/component.html.erb
237
237
  - app/components/ariadne/ui/table/row/component.rb
238
+ - app/components/ariadne/ui/toggle/component.html.erb
239
+ - app/components/ariadne/ui/toggle/component.rb
240
+ - app/components/ariadne/ui/toggle/component.ts
238
241
  - app/components/ariadne/ui/typography/component.html.erb
239
242
  - app/components/ariadne/ui/typography/component.rb
240
243
  - app/frontend/ariadne/index.ts
@@ -261,7 +264,6 @@ files:
261
264
  - lib/ariadne/forms/base.rb
262
265
  - lib/ariadne/forms/buffer_rewriter.rb
263
266
  - lib/ariadne/forms/builder.rb
264
- - lib/ariadne/forms/dsl/badge.rb
265
267
  - lib/ariadne/forms/dsl/button_input.rb
266
268
  - lib/ariadne/forms/dsl/clipboard_copy_button.rb
267
269
  - lib/ariadne/forms/dsl/form_object.rb
@@ -273,6 +275,7 @@ files:
273
275
  - lib/ariadne/forms/dsl/radio_button_group_input.rb
274
276
  - lib/ariadne/forms/dsl/radio_button_input.rb
275
277
  - lib/ariadne/forms/dsl/select_input.rb
278
+ - lib/ariadne/forms/dsl/status.rb
276
279
  - lib/ariadne/forms/dsl/submit_button_input.rb
277
280
  - lib/ariadne/forms/dsl/text_field_input.rb
278
281
  - lib/ariadne/forms/utils.rb