ariadne_view_components 0.0.26 → 0.0.27

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: adeff84184c3bec8e0a8abe8df6a724a6fbcdcc298fdd95d7f6c5210ec948a55
4
- data.tar.gz: 3edc825556974c0b5fa364e1e7fdcc819ed83b2cf86ab3570e4fc65ad83732ce
3
+ metadata.gz: db0f0e7e7643e0f5035081f7651aad6729f9fb3b450ca1c3aa839d2646169722
4
+ data.tar.gz: 41d7dd5fd9395b3b7987ed80ed643ea0dc2048cb4881363a9ba2645783bd9fbf
5
5
  SHA512:
6
- metadata.gz: 19c1649abf5b38c60ade54785ccd96bc7b510dd9ea400cfff37f8b5cd3910ac935137b83853cd8727ea5dd4552ec8ae1234f9cf1967dbc3d48109023bc1b90e0
7
- data.tar.gz: b6817265900497ccd41d00df228bb3ecc81447b541350d21a2be3a0dfccea492c2ca857ac332b574ff26a0f77ba43ae92b4aa26c9f9c8eb3b87643db55afbd30
6
+ metadata.gz: 794cb38235d7b718041ba20c41699840a1fd30a2f74a7075944b4243fe2b82470195acb7e1481a346b0aebd7386a4e1e173ee84217872e62115f48a6d502e633
7
+ data.tar.gz: ddbcad39d1363fc873284f497578d66b5b8baea874666c243a4c1883ac9b5beab5d460165c0ce3138256a082be02954738d8bc168b3a41bf1e37318b2c093f8b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.27](https://github.com/yettoapp/ariadne/tree/v0.0.27) (2022-12-22)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.26...v0.0.27)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Change comment var names [\#113](https://github.com/yettoapp/ariadne/pull/113) ([gjtorikian](https://github.com/gjtorikian))
10
+ - Bump @tiptap/extension-paragraph from 2.0.0-beta.207 to 2.0.0-beta.209 [\#112](https://github.com/yettoapp/ariadne/pull/112) ([dependabot[bot]](https://github.com/apps/dependabot))
11
+ - Bump @tiptap/extension-text from 2.0.0-beta.207 to 2.0.0-beta.209 [\#111](https://github.com/yettoapp/ariadne/pull/111) ([dependabot[bot]](https://github.com/apps/dependabot))
12
+ - Bump @tiptap/extension-document from 2.0.0-beta.207 to 2.0.0-beta.209 [\#110](https://github.com/yettoapp/ariadne/pull/110) ([dependabot[bot]](https://github.com/apps/dependabot))
13
+ - Bump @rollup/plugin-replace from 5.0.1 to 5.0.2 [\#109](https://github.com/yettoapp/ariadne/pull/109) ([dependabot[bot]](https://github.com/apps/dependabot))
14
+ - Bump @tiptap/core from 2.0.0-beta.207 to 2.0.0-beta.209 [\#108](https://github.com/yettoapp/ariadne/pull/108) ([dependabot[bot]](https://github.com/apps/dependabot))
15
+ - Bump @tiptap/extension-history from 2.0.0-beta.207 to 2.0.0-beta.209 [\#107](https://github.com/yettoapp/ariadne/pull/107) ([dependabot[bot]](https://github.com/apps/dependabot))
16
+ - Bump @tiptap/extension-gapcursor from 2.0.0-beta.207 to 2.0.0-beta.209 [\#106](https://github.com/yettoapp/ariadne/pull/106) ([dependabot[bot]](https://github.com/apps/dependabot))
17
+ - Bump @tiptap/extension-hard-break from 2.0.0-beta.207 to 2.0.0-beta.209 [\#105](https://github.com/yettoapp/ariadne/pull/105) ([dependabot[bot]](https://github.com/apps/dependabot))
18
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.207 to 2.0.0-beta.209 [\#104](https://github.com/yettoapp/ariadne/pull/104) ([dependabot[bot]](https://github.com/apps/dependabot))
19
+ - Bump lit-html from 2.4.0 to 2.5.0 [\#102](https://github.com/yettoapp/ariadne/pull/102) ([dependabot[bot]](https://github.com/apps/dependabot))
20
+ - Bump @tiptap/extension-history from 2.0.0-beta.205 to 2.0.0-beta.207 [\#101](https://github.com/yettoapp/ariadne/pull/101) ([dependabot[bot]](https://github.com/apps/dependabot))
21
+ - Bump @tiptap/extension-document from 2.0.0-beta.205 to 2.0.0-beta.207 [\#100](https://github.com/yettoapp/ariadne/pull/100) ([dependabot[bot]](https://github.com/apps/dependabot))
22
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.205 to 2.0.0-beta.207 [\#99](https://github.com/yettoapp/ariadne/pull/99) ([dependabot[bot]](https://github.com/apps/dependabot))
23
+ - Bump @tiptap/core from 2.0.0-beta.205 to 2.0.0-beta.207 [\#98](https://github.com/yettoapp/ariadne/pull/98) ([dependabot[bot]](https://github.com/apps/dependabot))
24
+ - Bump @tiptap/extension-text from 2.0.0-beta.205 to 2.0.0-beta.207 [\#97](https://github.com/yettoapp/ariadne/pull/97) ([dependabot[bot]](https://github.com/apps/dependabot))
25
+ - Bump @tiptap/extension-hard-break from 2.0.0-beta.205 to 2.0.0-beta.207 [\#96](https://github.com/yettoapp/ariadne/pull/96) ([dependabot[bot]](https://github.com/apps/dependabot))
26
+ - Bump @tiptap/extension-gapcursor from 2.0.0-beta.205 to 2.0.0-beta.207 [\#95](https://github.com/yettoapp/ariadne/pull/95) ([dependabot[bot]](https://github.com/apps/dependabot))
27
+ - Bump @tiptap/extension-paragraph from 2.0.0-beta.205 to 2.0.0-beta.207 [\#94](https://github.com/yettoapp/ariadne/pull/94) ([dependabot[bot]](https://github.com/apps/dependabot))
28
+ - Bump @tiptap/extension-hard-break from 2.0.0-beta.204 to 2.0.0-beta.205 [\#93](https://github.com/yettoapp/ariadne/pull/93) ([dependabot[bot]](https://github.com/apps/dependabot))
29
+ - Bump @tiptap/extension-gapcursor from 2.0.0-beta.204 to 2.0.0-beta.205 [\#92](https://github.com/yettoapp/ariadne/pull/92) ([dependabot[bot]](https://github.com/apps/dependabot))
30
+ - Bump @tiptap/extension-history from 2.0.0-beta.204 to 2.0.0-beta.205 [\#91](https://github.com/yettoapp/ariadne/pull/91) ([dependabot[bot]](https://github.com/apps/dependabot))
31
+ - Bump @tiptap/extension-document from 2.0.0-beta.204 to 2.0.0-beta.205 [\#90](https://github.com/yettoapp/ariadne/pull/90) ([dependabot[bot]](https://github.com/apps/dependabot))
32
+ - Bump @tiptap/extension-text from 2.0.0-beta.204 to 2.0.0-beta.205 [\#89](https://github.com/yettoapp/ariadne/pull/89) ([dependabot[bot]](https://github.com/apps/dependabot))
33
+ - Bump @tiptap/extension-paragraph from 2.0.0-beta.204 to 2.0.0-beta.205 [\#88](https://github.com/yettoapp/ariadne/pull/88) ([dependabot[bot]](https://github.com/apps/dependabot))
34
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.204 to 2.0.0-beta.205 [\#87](https://github.com/yettoapp/ariadne/pull/87) ([dependabot[bot]](https://github.com/apps/dependabot))
35
+ - Bump @tiptap/core from 2.0.0-beta.204 to 2.0.0-beta.205 [\#86](https://github.com/yettoapp/ariadne/pull/86) ([dependabot[bot]](https://github.com/apps/dependabot))
36
+ - Bump @hotwired/stimulus from 3.2.0 to 3.2.1 [\#85](https://github.com/yettoapp/ariadne/pull/85) ([dependabot[bot]](https://github.com/apps/dependabot))
37
+ - Bump @github/time-elements from 3.6.0 to 4.0.0 [\#84](https://github.com/yettoapp/ariadne/pull/84) ([dependabot[bot]](https://github.com/apps/dependabot))
38
+ - Apply mt-0 to flash banners [\#82](https://github.com/yettoapp/ariadne/pull/82) ([gjtorikian](https://github.com/gjtorikian))
39
+ - Bump @github/time-elements from 3.5.1 to 3.6.0 [\#81](https://github.com/yettoapp/ariadne/pull/81) ([dependabot[bot]](https://github.com/apps/dependabot))
40
+ - Bump @hotwired/stimulus from 3.1.1 to 3.2.0 [\#80](https://github.com/yettoapp/ariadne/pull/80) ([dependabot[bot]](https://github.com/apps/dependabot))
41
+ - Bump @tiptap/extension-history from 2.0.0-beta.203 to 2.0.0-beta.204 [\#79](https://github.com/yettoapp/ariadne/pull/79) ([dependabot[bot]](https://github.com/apps/dependabot))
42
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.203 to 2.0.0-beta.204 [\#78](https://github.com/yettoapp/ariadne/pull/78) ([dependabot[bot]](https://github.com/apps/dependabot))
43
+ - Bump @tiptap/extension-paragraph from 2.0.0-beta.202 to 2.0.0-beta.204 [\#77](https://github.com/yettoapp/ariadne/pull/77) ([dependabot[bot]](https://github.com/apps/dependabot))
44
+ - Bump @tiptap/extension-hard-break from 2.0.0-beta.202 to 2.0.0-beta.204 [\#76](https://github.com/yettoapp/ariadne/pull/76) ([dependabot[bot]](https://github.com/apps/dependabot))
45
+ - Bump @tiptap/extension-document from 2.0.0-beta.202 to 2.0.0-beta.204 [\#75](https://github.com/yettoapp/ariadne/pull/75) ([dependabot[bot]](https://github.com/apps/dependabot))
46
+ - Bump @tiptap/extension-gapcursor from 2.0.0-beta.202 to 2.0.0-beta.204 [\#74](https://github.com/yettoapp/ariadne/pull/74) ([dependabot[bot]](https://github.com/apps/dependabot))
47
+ - Bump @tiptap/core from 2.0.0-beta.203 to 2.0.0-beta.204 [\#73](https://github.com/yettoapp/ariadne/pull/73) ([dependabot[bot]](https://github.com/apps/dependabot))
48
+ - Bump @tiptap/extension-text from 2.0.0-beta.203 to 2.0.0-beta.204 [\#72](https://github.com/yettoapp/ariadne/pull/72) ([dependabot[bot]](https://github.com/apps/dependabot))
49
+ - Bump @tiptap/extension-text from 2.0.0-beta.202 to 2.0.0-beta.203 [\#67](https://github.com/yettoapp/ariadne/pull/67) ([dependabot[bot]](https://github.com/apps/dependabot))
50
+ - Bump @tiptap/core from 2.0.0-beta.202 to 2.0.0-beta.203 [\#66](https://github.com/yettoapp/ariadne/pull/66) ([dependabot[bot]](https://github.com/apps/dependabot))
51
+ - Bump @tiptap/extension-history from 2.0.0-beta.202 to 2.0.0-beta.203 [\#65](https://github.com/yettoapp/ariadne/pull/65) ([dependabot[bot]](https://github.com/apps/dependabot))
52
+ - Bump @tiptap/extension-dropcursor from 2.0.0-beta.202 to 2.0.0-beta.203 [\#64](https://github.com/yettoapp/ariadne/pull/64) ([dependabot[bot]](https://github.com/apps/dependabot))
53
+ - Bump @github/time-elements from 3.4.1 to 3.5.1 [\#63](https://github.com/yettoapp/ariadne/pull/63) ([dependabot[bot]](https://github.com/apps/dependabot))
54
+ - Bump stimulus-use from 0.51.0 to 0.51.1 [\#62](https://github.com/yettoapp/ariadne/pull/62) ([dependabot[bot]](https://github.com/apps/dependabot))
55
+ - Bump @github/time-elements from 3.4.0 to 3.4.1 [\#61](https://github.com/yettoapp/ariadne/pull/61) ([dependabot[bot]](https://github.com/apps/dependabot))
56
+ - Bump @github/time-elements from 3.3.0 to 3.4.0 [\#60](https://github.com/yettoapp/ariadne/pull/60) ([dependabot[bot]](https://github.com/apps/dependabot))
57
+ - Bump @github/time-elements from 3.2.5 to 3.3.0 [\#59](https://github.com/yettoapp/ariadne/pull/59) ([dependabot[bot]](https://github.com/apps/dependabot))
58
+ - Bump @github/time-elements from 3.2.4 to 3.2.5 [\#58](https://github.com/yettoapp/ariadne/pull/58) ([dependabot[bot]](https://github.com/apps/dependabot))
59
+
3
60
  ## [v0.0.26](https://github.com/yettoapp/ariadne/tree/v0.0.26) (2022-11-14)
4
61
 
5
62
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/0.0.25...v0.0.26)
@@ -5,8 +5,8 @@
5
5
  <% tab.panel(attributes: {:"data-public" => true}) do %>
6
6
  <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
7
7
  <div class="ariadne-overflow-hidden ariadne-border ariadne-border-slate-300 ariadne-shadow-sm">
8
- <%= hidden_field_tag 'message_public', true %>
9
- <%= render(Ariadne::RichTextAreaComponent.new(name: :public_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
8
+ <%= hidden_field_tag 'message_is_public', true %>
9
+ <%= render(Ariadne::RichTextAreaComponent.new(name: :message_public_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
10
10
  <% comment_box.submit { @submit } %>
11
11
  </div>
12
12
  <div class="ariadne-py-2 ariadne-flex ariadne-justify-end">
@@ -20,8 +20,8 @@
20
20
  <% tab.panel do %>
21
21
  <%= ariadne_form_with(url: @url, method: @method, classes: @classes, attributes: @attributes) do |comment_box| %>
22
22
  <div class="ariadne-overflow-hidden ariadne-border ariadne-border-gray-300 ariadne-shadow-sm">
23
- <%= hidden_field_tag 'message_public', false %>
24
- <%= render(Ariadne::RichTextAreaComponent.new(name: :internal_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
23
+ <%= hidden_field_tag 'message_is_public', false %>
24
+ <%= render(Ariadne::RichTextAreaComponent.new(name: :message_internal_bodytext, sr_label: "Select reply type", attributes: { required: true})) %>
25
25
  <% comment_box.submit { @submit } %>
26
26
  </div>
27
27
  <div class="ariadne-py-2 ariadne-flex ariadne-justify-end">
@@ -7,6 +7,8 @@ module Ariadne
7
7
 
8
8
  DEFAULT_SCHEME = :default
9
9
 
10
+ DEFAULT_CLASSES = "ariadne-mt-0"
11
+
10
12
  DISMISSIBLE_SCHEME_CLASS_MAPPINGS = {
11
13
  default: "ariadne-text-slate-500 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
12
14
  info: "ariadne-text-slate-500 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
@@ -103,6 +105,7 @@ module Ariadne
103
105
  @scheme = fetch_or_raise(VALID_CONTENT_SCHEMES, scheme)
104
106
 
105
107
  @classes = class_names(
108
+ DEFAULT_CLASSES,
106
109
  CONTENT_SCHEME_CLASS_MAPPINGS[@scheme],
107
110
  classes,
108
111
  )
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.26"
5
+ VERSION = "0.0.27"
6
6
  end
7
7
  end
@@ -36,8 +36,8 @@ module Ariadne
36
36
  # all of its constants.
37
37
  def generate_constants
38
38
  Ariadne::Component.descendants.sort_by(&:name).each_with_object({}) do |component, mem|
39
- mem[component.to_s] = component.constants(false).sort.each_with_object({}) do |constant, h|
40
- h[constant] = component.const_get(constant)
39
+ mem[component.to_s] = component.constants(false).sort.index_with do |constant|
40
+ component.const_get(constant)
41
41
  end
42
42
  end
43
43
  end
data/lib/tasks/docs.rake CHANGED
@@ -458,5 +458,5 @@ def require_js_path(component)
458
458
  end
459
459
 
460
460
  def status_module?(component)
461
- (["Alpha", "Beta"] & component.name.split("::")).any?
461
+ ["Alpha", "Beta"].intersect?(component.name.split("::"))
462
462
  end
@@ -225,6 +225,7 @@
225
225
  "warning": "ariadne-text-yellow-700",
226
226
  "danger": "ariadne-text-red-700"
227
227
  },
228
+ "DEFAULT_CLASSES": "ariadne-mt-0",
228
229
  "DEFAULT_SCHEME": "default",
229
230
  "DISMISSIBLE_SCHEME_CLASS_MAPPINGS": {
230
231
  "default": "ariadne-text-slate-500 ariadne-bg-blue-50 hover:ariadne-bg-blue-100 focus:ariadne-ring-offset-blue-50 focus:ariadne-ring-blue-600",
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.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-14 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
269
269
  - !ruby/object:Gem::Version
270
270
  version: '0'
271
271
  requirements: []
272
- rubygems_version: 3.3.7
272
+ rubygems_version: 3.3.26
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: ViewComponents for the Ariadne Design System