ariadne_view_components 0.0.17-arm64-darwin → 0.0.20-arm64-darwin
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +104 -0
- data/README.md +3 -0
- data/app/assets/javascripts/ariadne_view_components.js +2 -2
- data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
- data/app/assets/javascripts/rich-text-area-component.d.ts +2 -0
- data/app/components/ariadne/base_button.rb +2 -2
- data/app/components/ariadne/comment_component.html.erb +31 -37
- data/app/components/ariadne/comment_component.rb +9 -7
- data/app/components/ariadne/component.rb +4 -0
- data/app/components/ariadne/inline_flex_component.rb +2 -2
- data/app/components/ariadne/panel_bar_component.html.erb +1 -1
- data/app/components/ariadne/panel_bar_component.rb +1 -0
- data/app/components/ariadne/rich-text-area-component.ts +23 -10
- data/app/components/ariadne/rich_text_area_component.html.erb +1 -1
- data/app/components/ariadne/slideover-component.ts +0 -9
- data/app/components/ariadne/slideover_component.html.erb +6 -8
- data/app/components/ariadne/slideover_component.rb +9 -24
- data/app/components/ariadne/tab_component.rb +0 -1
- data/app/components/ariadne/tab_container_component.erb +2 -4
- data/app/components/ariadne/tab_container_component.rb +2 -1
- data/app/lib/ariadne/action_view_extensions/form_helper.rb +1 -1
- data/lib/ariadne/view_components/version.rb +1 -1
- data/static/arguments.yml +2 -6
- data/static/classes.yml +7 -13
- data/static/constants.json +10 -10
- metadata +3 -3
- data/app/components/ariadne/comment-component.ts +0 -37
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.20
|
5
5
|
platform: arm64-darwin
|
6
6
|
authors:
|
7
7
|
- Garen J. Torikian
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tailwind_merge
|
@@ -106,6 +106,7 @@ executables:
|
|
106
106
|
extensions: []
|
107
107
|
extra_rdoc_files: []
|
108
108
|
files:
|
109
|
+
- CHANGELOG.md
|
109
110
|
- LICENSE.txt
|
110
111
|
- README.md
|
111
112
|
- app/assets/config/manifest.js
|
@@ -142,7 +143,6 @@ files:
|
|
142
143
|
- app/components/ariadne/clipboard-copy-component.ts
|
143
144
|
- app/components/ariadne/clipboard_copy_component.html.erb
|
144
145
|
- app/components/ariadne/clipboard_copy_component.rb
|
145
|
-
- app/components/ariadne/comment-component.ts
|
146
146
|
- app/components/ariadne/comment_component.html.erb
|
147
147
|
- app/components/ariadne/comment_component.rb
|
148
148
|
- app/components/ariadne/component.rb
|
@@ -1,37 +0,0 @@
|
|
1
|
-
// import {Controller} from '@hotwired/stimulus'
|
2
|
-
|
3
|
-
// export default class CommentComponent extends Controller {
|
4
|
-
// static targets = ['tab', 'tabBarComponent']
|
5
|
-
|
6
|
-
// declare readonly commentComponentTarget: HTMLDivElement
|
7
|
-
// declare readonly tabBarComponentTarget: HTMLElement // technically a `nav but typescript can't find it?
|
8
|
-
// declare readonly tabTargets: [HTMLButtonElement]
|
9
|
-
|
10
|
-
// // keep in sync with comment_component.rb
|
11
|
-
// SELECTED_TAB_CLASSES = ['ariadne-border-indigo-500', 'ariadne-text-indigo-600']
|
12
|
-
// PUBLIC_BACKGROUND_COLOR = 'ariadne-bg-white'
|
13
|
-
// INTERNAL_BACKGROUND_COLOR = 'ariadne-bg-internal-message'
|
14
|
-
|
15
|
-
// toggleTab() {
|
16
|
-
// for (const tab of this.tabTargets) {
|
17
|
-
// if (tab.hasAttribute('aria-selected')) {
|
18
|
-
// tab.classList.remove(...this.SELECTED_TAB_CLASSES)
|
19
|
-
// this.toggleBackgrounds(tab, false)
|
20
|
-
// tab.removeAttribute('aria-selected')
|
21
|
-
// } else {
|
22
|
-
// tab.setAttribute('aria-selected', 'true')
|
23
|
-
// tab.classList.add(...this.SELECTED_TAB_CLASSES)
|
24
|
-
// this.toggleBackgrounds(tab, true)
|
25
|
-
// }
|
26
|
-
// }
|
27
|
-
// }
|
28
|
-
// toggleBackgrounds(tab: HTMLButtonElement, publicComment: boolean) {
|
29
|
-
// if (publicComment) {
|
30
|
-
// this.tabBarComponentTarget.classList.add(this.PUBLIC_BACKGROUND_COLOR)
|
31
|
-
// this.tabBarComponentTarget.classList.remove(this.INTERNAL_BACKGROUND_COLOR)
|
32
|
-
|
33
|
-
// this.tabBarComponentTarget.classList.remove(this.PUBLIC_BACKGROUND_COLOR)
|
34
|
-
// this.tabBarComponentTarget.classList.add(this.INTERNAL_BACKGROUND_COLOR)
|
35
|
-
// }
|
36
|
-
// }
|
37
|
-
// }
|