ariadne_view_components 0.0.19 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +113 -0
  3. data/app/assets/javascripts/ariadne_view_components.js +1 -1
  4. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  5. data/app/components/ariadne/avatar_stack_component.html.erb +1 -1
  6. data/app/components/ariadne/details_component.rb +1 -1
  7. data/app/components/ariadne/grid_component.rb +1 -1
  8. data/app/components/ariadne/heroicon_component.rb +2 -2
  9. data/app/components/ariadne/rich-text-area-component.ts +1 -0
  10. data/lib/ariadne/view_components/version.rb +1 -1
  11. data/static/arguments.yml +1 -1
  12. data/static/classes.yml +0 -3
  13. data/static/constants.json +6 -6
  14. metadata +6 -37
  15. data/app/assets/builds/ariadne_view_components.css +0 -2243
  16. data/app/components/ariadne/ariadne-form-with.d.ts +0 -20
  17. data/app/components/ariadne/ariadne-form-with.js +0 -85
  18. data/app/components/ariadne/ariadne-form.d.ts +0 -22
  19. data/app/components/ariadne/ariadne-form.js +0 -84
  20. data/app/components/ariadne/ariadne.d.ts +0 -2
  21. data/app/components/ariadne/ariadne.js +0 -16
  22. data/app/components/ariadne/clipboard-copy-component.d.ts +0 -4
  23. data/app/components/ariadne/clipboard-copy-component.js +0 -18
  24. data/app/components/ariadne/clipboard_copy_component.d.ts +0 -4
  25. data/app/components/ariadne/clipboard_copy_component.js +0 -18
  26. data/app/components/ariadne/rich-text-area-component.d.ts +0 -6
  27. data/app/components/ariadne/rich-text-area-component.js +0 -36
  28. data/app/components/ariadne/slideover-component.d.ts +0 -9
  29. data/app/components/ariadne/slideover-component.js +0 -10
  30. data/app/components/ariadne/slideover_component.d.ts +0 -9
  31. data/app/components/ariadne/slideover_component.js +0 -19
  32. data/app/components/ariadne/tab-component.js +0 -1
  33. data/app/components/ariadne/tab-container-component copy.d.ts +0 -1
  34. data/app/components/ariadne/tab-container-component copy.js +0 -23
  35. data/app/components/ariadne/tab-container-component.d.ts +0 -1
  36. data/app/components/ariadne/tab-container-component.js +0 -23
  37. data/app/components/ariadne/tab-nav-component.d.ts +0 -9
  38. data/app/components/ariadne/tab-nav-component.js +0 -32
  39. data/app/components/ariadne/tabs-component.d.ts +0 -0
  40. data/app/components/ariadne/tabs-component.js +0 -1
  41. data/app/components/ariadne/time-ago-component.d.ts +0 -1
  42. data/app/components/ariadne/time-ago-component.js +0 -1
  43. data/app/components/ariadne/time_ago_component.d.ts +0 -1
  44. data/app/components/ariadne/time_ago_component.js +0 -1
  45. data/app/components/ariadne/tooltip-component.d.ts +0 -24
  46. data/app/components/ariadne/tooltip-component.js +0 -42
@@ -1,5 +1,5 @@
1
1
  <%= render Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes) do %>
2
- <%if tooltipped? %>
2
+ <% if tooltipped? %>
3
3
  <%= tooltip.to_s %>
4
4
  <% avatars.each_with_index do |avatar, i| %>
5
5
  <%= avatar %>
@@ -28,7 +28,7 @@ module Ariadne
28
28
  Ariadne::Content.new
29
29
  }
30
30
 
31
- DEFAULT_BODY_CLASSES = "ariadne-absolute ariadne-right-0 ariadne-z-10 ariadne-mt-2 ariadne-w-56 ariadne-origin-top-right ariadne-divide-y ariadne-divide-gray-100 ariadne-rounded-md ariadne-bg-white ariadne-shadow-lg ariadne-ring-1 ariadne-ring-black ariadne-ring-opacity-5 focus:ariadne-outline-none"
31
+ DEFAULT_BODY_CLASSES = "ariadne-absolute ariadne-mt-2 ariadne-w-56 ariadne-divide-y ariadne-divide-gray-100 ariadne-rounded-md ariadne-bg-white ariadne-shadow-lg ariadne-ring-1 ariadne-ring-black ariadne-ring-opacity-5 focus:ariadne-outline-none"
32
32
  # Use the Body slot as the main content to be shown when triggered by the Summary.
33
33
  #
34
34
  # @param tag [Symbol] The tag to use for the body/ <%= one_of(Ariadne::DetailsComponent::VALID_BODY_TAGS) %>
@@ -40,7 +40,7 @@ module Ariadne
40
40
  }
41
41
 
42
42
  DEFAULT_ACTION_LINK_CLASSES = "ariadne-relative ariadne--mr-px ariadne-w-0 ariadne-flex-1 ariadne-inline-flex ariadne-items-center ariadne-justify-center ariadne-py-4 ariadne-text-sm ariadne-font-medium ariadne-border ariadne-border-transparent"
43
- DEFAULT_ACTION_LINK_COLORS = "hover:ariadne-text-gray-500"
43
+ DEFAULT_ACTION_LINK_COLORS = "ariadne-h-full hover:ariadne-text-gray-500"
44
44
  renders_many :actions, lambda { |href:, icon:, label:, size: Ariadne::HeroiconComponent::SIZE_DEFAULT, variant: HeroiconsHelper::Icon::VARIANT_SOLID, classes: "", attributes: {}, text_classes: ""|
45
45
  actual_classes = class_names(DEFAULT_ACTION_LINK_CLASSES, DEFAULT_ACTION_LINK_COLORS, classes)
46
46
  render(Ariadne::LinkComponent.new(href: href, classes: actual_classes, attributes: attributes)) do
@@ -11,13 +11,13 @@ module Ariadne
11
11
  include IconHelper
12
12
  include HeroiconsHelper
13
13
 
14
- SIZE_MICRO = :mu
14
+ SIZE_XSMALL = :xs
15
15
  SIZE_SMALL = :sm
16
16
  SIZE_DEFAULT = :md
17
17
  SIZE_LARGE = :lg
18
18
 
19
19
  SIZE_MAPPINGS = {
20
- SIZE_MICRO => 16,
20
+ SIZE_XSMALL => 16,
21
21
  SIZE_SMALL => 20,
22
22
  SIZE_DEFAULT => 24,
23
23
  SIZE_LARGE => 128,
@@ -38,6 +38,7 @@ export default class RichTextArea extends Controller {
38
38
 
39
39
  parentForm?.addEventListener('submit', () => {
40
40
  tiptapValueContainer.setAttribute('value', pmEditor.getText() || '')
41
+ pmEditor.commands.clearContent() // TODO: test this
41
42
  })
42
43
  }
43
44
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.19"
5
+ VERSION = "0.0.21"
6
6
  end
7
7
  end
data/static/arguments.yml CHANGED
@@ -386,7 +386,7 @@
386
386
  - name: size
387
387
  type: Symbol
388
388
  default: "`:md`"
389
- description: One of `:mu` (`16`), `:sm` (`20`), `:md` (`24`), or `:lg` (`128`).
389
+ description: One of `:xs` (`16`), `:sm` (`20`), `:md` (`24`), or `:lg` (`128`).
390
390
  - name: attributes
391
391
  type: Hash
392
392
  default: "`{}`"
data/static/classes.yml CHANGED
@@ -115,10 +115,7 @@
115
115
  - ".ariadne-mt-2"
116
116
  - ".ariadne-justify-end"
117
117
  - ".ariadne__details-reset"
118
- - ".ariadne-right-0"
119
- - ".ariadne-z-10"
120
118
  - ".ariadne-w-56"
121
- - ".ariadne-origin-top-right"
122
119
  - ".ariadne-divide-y"
123
120
  - ".ariadne-divide-gray-100"
124
121
  - ".ariadne-shadow-lg"
@@ -151,7 +151,7 @@
151
151
  "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-p-1 ariadne-border ariadne-border-transparent ariadne-rounded-full ariadne-shadow-sm focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2"
152
152
  },
153
153
  "Ariadne::DetailsComponent": {
154
- "DEFAULT_BODY_CLASSES": "ariadne-absolute ariadne-right-0 ariadne-z-10 ariadne-mt-2 ariadne-w-56 ariadne-origin-top-right ariadne-divide-y ariadne-divide-gray-100 ariadne-rounded-md ariadne-bg-white ariadne-shadow-lg ariadne-ring-1 ariadne-ring-black ariadne-ring-opacity-5 focus:ariadne-outline-none",
154
+ "DEFAULT_BODY_CLASSES": "ariadne-absolute ariadne-mt-2 ariadne-w-56 ariadne-divide-y ariadne-divide-gray-100 ariadne-rounded-md ariadne-bg-white ariadne-shadow-lg ariadne-ring-1 ariadne-ring-black ariadne-ring-opacity-5 focus:ariadne-outline-none",
155
155
  "DEFAULT_BODY_TAG": "div",
156
156
  "DEFAULT_CLASSES": "",
157
157
  "DEFAULT_TAG": "details",
@@ -278,7 +278,7 @@
278
278
  },
279
279
  "Ariadne::GridComponent::GridItem": {
280
280
  "DEFAULT_ACTION_LINK_CLASSES": "ariadne-relative ariadne--mr-px ariadne-w-0 ariadne-flex-1 ariadne-inline-flex ariadne-items-center ariadne-justify-center ariadne-py-4 ariadne-text-sm ariadne-font-medium ariadne-border ariadne-border-transparent",
281
- "DEFAULT_ACTION_LINK_COLORS": "hover:ariadne-text-gray-500",
281
+ "DEFAULT_ACTION_LINK_COLORS": "ariadne-h-full hover:ariadne-text-gray-500",
282
282
  "DEFAULT_ENTRY_CLASSES": "ariadne-group ariadne-flex-1 ariadne-flex ariadne-flex-col ariadne-p-8 hover:ariadne-text-gray-500",
283
283
  "DEFAULT_ITEM_CLASSES": "ariadne-flex ariadne-flex-col ariadne-text-center ariadne-rounded-lg ariadne-shadow text-black-700 ariadne-border-black"
284
284
  },
@@ -385,19 +385,19 @@
385
385
  "SIZE_DEFAULT": "md",
386
386
  "SIZE_LARGE": "lg",
387
387
  "SIZE_MAPPINGS": {
388
- "mu": 16,
388
+ "xs": 16,
389
389
  "sm": 20,
390
390
  "md": 24,
391
391
  "lg": 128
392
392
  },
393
- "SIZE_MICRO": "mu",
394
393
  "SIZE_OPTIONS": [
395
- "mu",
394
+ "xs",
396
395
  "sm",
397
396
  "md",
398
397
  "lg"
399
398
  ],
400
- "SIZE_SMALL": "sm"
399
+ "SIZE_SMALL": "sm",
400
+ "SIZE_XSMALL": "xs"
401
401
  },
402
402
  "Ariadne::ImageComponent": {
403
403
  "DEFAULT_TAG": "img"
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2022-10-12 00:00:00.000000000 Z
@@ -98,7 +98,7 @@ dependencies:
98
98
  - - "<"
99
99
  - !ruby/object:Gem::Version
100
100
  version: '3.0'
101
- description:
101
+ description:
102
102
  email:
103
103
  - gjtorikian@yettoapp.com
104
104
  executables:
@@ -106,9 +106,9 @@ executables:
106
106
  extensions: []
107
107
  extra_rdoc_files: []
108
108
  files:
109
+ - CHANGELOG.md
109
110
  - LICENSE.txt
110
111
  - README.md
111
- - app/assets/builds/ariadne_view_components.css
112
112
  - app/assets/config/manifest.js
113
113
  - app/assets/javascripts/ariadne-form-with.d.ts
114
114
  - app/assets/javascripts/ariadne-form.d.ts
@@ -128,13 +128,7 @@ files:
128
128
  - app/assets/stylesheets/dropdown.css
129
129
  - app/assets/stylesheets/prosemirror.css
130
130
  - app/assets/stylesheets/tooltip-component.css
131
- - app/components/ariadne/ariadne-form-with.d.ts
132
- - app/components/ariadne/ariadne-form-with.js
133
- - app/components/ariadne/ariadne-form.d.ts
134
- - app/components/ariadne/ariadne-form.js
135
131
  - app/components/ariadne/ariadne-form.ts
136
- - app/components/ariadne/ariadne.d.ts
137
- - app/components/ariadne/ariadne.js
138
132
  - app/components/ariadne/ariadne.ts
139
133
  - app/components/ariadne/avatar_component.rb
140
134
  - app/components/ariadne/avatar_stack_component.html.erb
@@ -146,12 +140,8 @@ files:
146
140
  - app/components/ariadne/body_component.rb
147
141
  - app/components/ariadne/button_component.html.erb
148
142
  - app/components/ariadne/button_component.rb
149
- - app/components/ariadne/clipboard-copy-component.d.ts
150
- - app/components/ariadne/clipboard-copy-component.js
151
143
  - app/components/ariadne/clipboard-copy-component.ts
152
- - app/components/ariadne/clipboard_copy_component.d.ts
153
144
  - app/components/ariadne/clipboard_copy_component.html.erb
154
- - app/components/ariadne/clipboard_copy_component.js
155
145
  - app/components/ariadne/clipboard_copy_component.rb
156
146
  - app/components/ariadne/comment_component.html.erb
157
147
  - app/components/ariadne/comment_component.rb
@@ -191,26 +181,13 @@ files:
191
181
  - app/components/ariadne/panel_bar_component.rb
192
182
  - app/components/ariadne/pill_component.html.erb
193
183
  - app/components/ariadne/pill_component.rb
194
- - app/components/ariadne/rich-text-area-component.d.ts
195
- - app/components/ariadne/rich-text-area-component.js
196
184
  - app/components/ariadne/rich-text-area-component.ts
197
185
  - app/components/ariadne/rich_text_area_component.html.erb
198
186
  - app/components/ariadne/rich_text_area_component.rb
199
- - app/components/ariadne/slideover-component.d.ts
200
- - app/components/ariadne/slideover-component.js
201
187
  - app/components/ariadne/slideover-component.ts
202
- - app/components/ariadne/slideover_component.d.ts
203
188
  - app/components/ariadne/slideover_component.html.erb
204
- - app/components/ariadne/slideover_component.js
205
189
  - app/components/ariadne/slideover_component.rb
206
- - app/components/ariadne/tab-component.js
207
- - app/components/ariadne/tab-container-component copy.d.ts
208
- - app/components/ariadne/tab-container-component copy.js
209
- - app/components/ariadne/tab-container-component.d.ts
210
- - app/components/ariadne/tab-container-component.js
211
190
  - app/components/ariadne/tab-container-component.ts
212
- - app/components/ariadne/tab-nav-component.d.ts
213
- - app/components/ariadne/tab-nav-component.js
214
191
  - app/components/ariadne/tab-nav-component.ts
215
192
  - app/components/ariadne/tab_component.html.erb
216
193
  - app/components/ariadne/tab_component.rb
@@ -220,19 +197,11 @@ files:
220
197
  - app/components/ariadne/tab_nav_component.rb
221
198
  - app/components/ariadne/table_nav_component.html.erb
222
199
  - app/components/ariadne/table_nav_component.rb
223
- - app/components/ariadne/tabs-component.d.ts
224
- - app/components/ariadne/tabs-component.js
225
200
  - app/components/ariadne/text.rb
226
- - app/components/ariadne/time-ago-component.d.ts
227
- - app/components/ariadne/time-ago-component.js
228
201
  - app/components/ariadne/time-ago-component.ts
229
- - app/components/ariadne/time_ago_component.d.ts
230
- - app/components/ariadne/time_ago_component.js
231
202
  - app/components/ariadne/time_ago_component.rb
232
203
  - app/components/ariadne/timeline_component.html.erb
233
204
  - app/components/ariadne/timeline_component.rb
234
- - app/components/ariadne/tooltip-component.d.ts
235
- - app/components/ariadne/tooltip-component.js
236
205
  - app/components/ariadne/tooltip-component.ts
237
206
  - app/components/ariadne/tooltip_component.html.erb
238
207
  - app/components/ariadne/tooltip_component.rb
@@ -283,7 +252,7 @@ licenses:
283
252
  - MIT
284
253
  metadata:
285
254
  allowed_push_host: https://rubygems.org
286
- post_install_message:
255
+ post_install_message:
287
256
  rdoc_options: []
288
257
  require_paths:
289
258
  - lib
@@ -302,7 +271,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
271
  version: '0'
303
272
  requirements: []
304
273
  rubygems_version: 3.3.7
305
- signing_key:
274
+ signing_key:
306
275
  specification_version: 4
307
276
  summary: ViewComponents for the Ariadne Design System
308
277
  test_files: []