ariadne_view_components 0.0.86.1 → 0.0.86.2
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 +2 -0
- data/app/assets/javascripts/ariadne_view_components.js +1 -1
- 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/components/ariadne/{ui → form}/toggle/component.rb +3 -1
- data/lib/ariadne/view_components/version.rb +1 -1
- metadata +4 -4
- /data/app/components/ariadne/{ui → form}/toggle/component.html.erb +0 -0
- /data/app/components/ariadne/{ui → form}/toggle/component.ts +0 -0
@@ -2,12 +2,14 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Ariadne
|
5
|
-
module
|
5
|
+
module Form
|
6
6
|
module Toggle
|
7
7
|
class Component < Ariadne::BaseComponent
|
8
8
|
option :size, default: proc { :md }
|
9
9
|
option :reversed, default: proc { false }
|
10
10
|
|
11
|
+
include Tooltipable
|
12
|
+
|
11
13
|
# @param form_url [String] The URL to POST to when the toggle switch is toggled. If `nil`, the toggle switch will not make any requests.
|
12
14
|
# @param csrf_token [String] A CSRF token that will be sent to the server as "authenticity_token" when the toggle switch is toggled. Unused if `src` is `nil`.
|
13
15
|
# @param checked [Boolean] Whether the toggle switch is on or off.
|
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.86.
|
4
|
+
version: 0.0.86.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
@@ -159,6 +159,9 @@ files:
|
|
159
159
|
- app/components/ariadne/form/separator/component.rb
|
160
160
|
- app/components/ariadne/form/text_field/component.html.erb
|
161
161
|
- app/components/ariadne/form/text_field/component.rb
|
162
|
+
- app/components/ariadne/form/toggle/component.html.erb
|
163
|
+
- app/components/ariadne/form/toggle/component.rb
|
164
|
+
- app/components/ariadne/form/toggle/component.ts
|
162
165
|
- app/components/ariadne/form/toggle_group/component.html.erb
|
163
166
|
- app/components/ariadne/form/toggle_group/component.rb
|
164
167
|
- app/components/ariadne/form/toggle_group/option/component.html.erb
|
@@ -261,9 +264,6 @@ files:
|
|
261
264
|
- app/components/ariadne/ui/time_ago/component.rb
|
262
265
|
- app/components/ariadne/ui/time_ago/component.ts
|
263
266
|
- app/components/ariadne/ui/time_ago/en.yml
|
264
|
-
- app/components/ariadne/ui/toggle/component.html.erb
|
265
|
-
- app/components/ariadne/ui/toggle/component.rb
|
266
|
-
- app/components/ariadne/ui/toggle/component.ts
|
267
267
|
- app/components/ariadne/ui/typography/component.html.erb
|
268
268
|
- app/components/ariadne/ui/typography/component.rb
|
269
269
|
- app/frontend/ariadne/index.ts
|
File without changes
|
File without changes
|