ariadne_view_components 0.0.83.3 → 0.0.85
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/ariadne_view_components.js +7 -7
- data/app/assets/javascripts/ariadne_view_components.js.br +0 -0
- data/app/assets/javascripts/ariadne_view_components.js.gz +0 -0
- data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
- data/app/assets/stylesheets/ariadne_view_components.css +1 -1
- data/app/assets/stylesheets/ariadne_view_components.css.br +0 -0
- data/app/assets/stylesheets/ariadne_view_components.css.gz +0 -0
- data/app/components/ariadne/form/group/component.html.erb +1 -1
- data/app/components/ariadne/form/group/component.rb +8 -0
- data/app/components/ariadne/ui/badge/component.html.erb +1 -1
- data/app/components/ariadne/ui/badge/component.rb +18 -16
- data/app/components/ariadne/ui/toggle/component.html.erb +7 -0
- data/app/components/ariadne/ui/toggle/component.rb +124 -0
- data/app/components/ariadne/ui/toggle/component.ts +133 -0
- data/lib/ariadne/forms/dsl/form_object.rb +0 -4
- data/lib/ariadne/forms/dsl/input_methods.rb +4 -0
- data/lib/ariadne/forms/dsl/{badge.rb → status.rb} +6 -3
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +6 -3
@@ -4,7 +4,7 @@ module Ariadne
|
|
4
4
|
module Forms
|
5
5
|
module Dsl
|
6
6
|
# :nodoc:
|
7
|
-
class
|
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
|
-
|
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
|
-
:
|
29
|
+
:status
|
27
30
|
end
|
28
31
|
|
29
32
|
def input?
|
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.
|
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-
|
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
|