ariadne_view_components 0.0.20-aarch64-linux → 0.0.21-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.20"
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,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.20
4
+ version: 0.0.21
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Garen J. Torikian