ariadne_view_components 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -0
  3. data/app/assets/builds/ariadne_view_components.css +2243 -0
  4. data/app/assets/javascripts/ariadne_view_components.js +2 -2
  5. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  6. data/app/assets/javascripts/rich-text-area-component.d.ts +2 -0
  7. data/app/components/ariadne/ariadne-form-with.d.ts +20 -0
  8. data/app/components/ariadne/ariadne-form-with.js +85 -0
  9. data/app/components/ariadne/ariadne-form.d.ts +22 -0
  10. data/app/components/ariadne/ariadne-form.js +84 -0
  11. data/app/components/ariadne/ariadne.d.ts +2 -0
  12. data/app/components/ariadne/ariadne.js +16 -0
  13. data/app/components/ariadne/base_button.rb +2 -2
  14. data/app/components/ariadne/clipboard-copy-component.d.ts +4 -0
  15. data/app/components/ariadne/clipboard-copy-component.js +18 -0
  16. data/app/components/ariadne/clipboard_copy_component.d.ts +4 -0
  17. data/app/components/ariadne/clipboard_copy_component.js +18 -0
  18. data/app/components/ariadne/comment_component.html.erb +2 -2
  19. data/app/components/ariadne/component.rb +4 -0
  20. data/app/components/ariadne/inline_flex_component.rb +2 -2
  21. data/app/components/ariadne/panel_bar_component.html.erb +1 -1
  22. data/app/components/ariadne/panel_bar_component.rb +1 -0
  23. data/app/components/ariadne/rich-text-area-component.d.ts +6 -0
  24. data/app/components/ariadne/rich-text-area-component.js +36 -0
  25. data/app/components/ariadne/rich-text-area-component.ts +22 -9
  26. data/app/components/ariadne/rich_text_area_component.html.erb +1 -1
  27. data/app/components/ariadne/slideover-component.d.ts +9 -0
  28. data/app/components/ariadne/slideover-component.js +10 -0
  29. data/app/components/ariadne/slideover-component.ts +0 -9
  30. data/app/components/ariadne/slideover_component.d.ts +9 -0
  31. data/app/components/ariadne/slideover_component.html.erb +6 -8
  32. data/app/components/ariadne/slideover_component.js +19 -0
  33. data/app/components/ariadne/slideover_component.rb +9 -24
  34. data/app/components/ariadne/tab-component.js +1 -0
  35. data/app/components/ariadne/tab-container-component copy.d.ts +1 -0
  36. data/app/components/ariadne/tab-container-component copy.js +23 -0
  37. data/app/components/ariadne/tab-container-component.d.ts +1 -0
  38. data/app/components/ariadne/tab-container-component.js +23 -0
  39. data/app/components/ariadne/tab-nav-component.d.ts +9 -0
  40. data/app/components/ariadne/tab-nav-component.js +32 -0
  41. data/app/components/ariadne/tab_component.rb +0 -1
  42. data/app/components/ariadne/tab_container_component.erb +1 -1
  43. data/app/components/ariadne/tab_container_component.rb +2 -1
  44. data/app/components/ariadne/tabs-component.d.ts +0 -0
  45. data/app/components/ariadne/tabs-component.js +1 -0
  46. data/app/components/ariadne/time-ago-component.d.ts +1 -0
  47. data/app/components/ariadne/time-ago-component.js +1 -0
  48. data/app/components/ariadne/time_ago_component.d.ts +1 -0
  49. data/app/components/ariadne/time_ago_component.js +1 -0
  50. data/app/components/ariadne/tooltip-component.d.ts +24 -0
  51. data/app/components/ariadne/tooltip-component.js +42 -0
  52. data/lib/ariadne/view_components/version.rb +1 -1
  53. data/static/arguments.yml +0 -4
  54. data/static/classes.yml +3 -5
  55. data/static/constants.json +7 -8
  56. metadata +38 -6
@@ -12,43 +12,29 @@ module Ariadne
12
12
  DIRECTION_X_LEFT = :xl
13
13
  VALID_DIRECTIONS = [DIRECTION_Y_DOWN, DIRECTION_X_LEFT].freeze
14
14
 
15
- DEFAULT_CLASSES = ""
15
+ DEFAULT_CLASSES = "ariadne-flex ariadne-flex-col"
16
16
 
17
17
  DEFAULT_BUTTON_CLASSES = "ariadne-inline-flex ariadne-items-center ariadne-shadow-sm ariadne-px-4 ariadne-py-1.5 ariadne-pb-2 ariadne-text-sm ariadne-leading-5 ariadne-font-medium ariadne-rounded-full " + Ariadne::ButtonComponent::SCHEME_CLASS_MAPPINGS[:default]
18
- renders_one :open_button, lambda { |label:, classes: "", attributes: {}, text_classes: ""|
19
- actual_classes = class_names(DEFAULT_BUTTON_CLASSES, classes)
18
+ renders_one :open_button, lambda { |selected: false, classes: "", attributes: {}|
19
+ actual_classes = class_names(DEFAULT_BUTTON_CLASSES, classes, selected ? "" : BASE_HIDDEN_CLASS)
20
20
 
21
21
  attributes[:id] ||= "btnOpen"
22
22
  attributes[:"data-slideover-component-target"] ||= "slidePanel"
23
23
  attributes[:"data-action"] ||= "click->slideover-component#toggle"
24
24
  attributes[:type] ||= "submit"
25
25
 
26
- icon = case @direction
27
- when DIRECTION_Y_DOWN
28
- :"chevron-double-down"
29
- end
30
-
31
- render(Ariadne::BaseComponent.new(tag: :button, classes: actual_classes, attributes: attributes)) do
32
- render(Ariadne::HeroiconComponent.new(icon: icon, size: :sm, variant: HeroiconsHelper::Icon::VARIANT_SOLID, attributes: { "data-slideover-component-target" => "slide-panel" }, text_classes: text_classes)) { label }
33
- end
26
+ Ariadne::ButtonComponent.new(classes: actual_classes, attributes: attributes)
34
27
  }
35
28
 
36
- renders_one :close_button, lambda { |label:, classes: "", attributes: {}, text_classes: ""|
37
- actual_classes = class_names(DEFAULT_BUTTON_CLASSES, classes)
29
+ renders_one :close_button, lambda { |selected: false, classes: "", attributes: {}|
30
+ actual_classes = class_names(DEFAULT_BUTTON_CLASSES, classes, selected ? "" : BASE_HIDDEN_CLASS)
38
31
 
39
32
  attributes[:id] ||= "btnClose"
40
33
  attributes[:"data-slideover-component-target"] ||= "slidePanel"
41
34
  attributes[:"data-action"] ||= "click->slideover-component#toggle"
42
35
  attributes[:type] ||= "submit"
43
36
 
44
- icon = case @direction
45
- when DIRECTION_Y_DOWN
46
- :"chevron-double-up"
47
- end
48
-
49
- render(Ariadne::BaseComponent.new(tag: :button, classes: actual_classes, attributes: attributes)) do
50
- render(Ariadne::HeroiconComponent.new(icon: icon, size: :sm, variant: HeroiconsHelper::Icon::VARIANT_SOLID, attributes: { "data-slideover-component-target" => "slide-panel" }, text_classes: text_classes)) { label }
51
- end
37
+ Ariadne::ButtonComponent.new(classes: actual_classes, attributes: attributes)
52
38
  }
53
39
 
54
40
  # @example Default
@@ -57,12 +43,11 @@ module Ariadne
57
43
  #
58
44
  # @param tag [Symbol, String] The rendered tag name.
59
45
  # @param direction [Symbol] <%= one_of(Ariadne::SlideoverComponent::VALID_DIRECTIONS) %>
60
- # @param form_id [String] The ID of any `form` tag to submit when the button is clicked.
61
46
  # @param open_text [String] The text to use to open the slideover.
62
47
  # @param close_text [String] The text to use to close the slideover.
63
48
  # @param classes [String] <%= link_to_classes_docs %>
64
49
  # @param attributes [Hash] <%= link_to_attributes_docs %>
65
- def initialize(tag: DEFAULT_TAG, direction:, form_id: nil, open_text: "Open", close_text: "Close", classes: "", attributes: {})
50
+ def initialize(tag: DEFAULT_TAG, direction:, open_text: "Open", close_text: "Close", classes: "", attributes: {})
66
51
  @tag = check_incoming_tag(DEFAULT_TAG, tag)
67
52
  @classes = class_names(
68
53
  DEFAULT_CLASSES,
@@ -70,12 +55,12 @@ module Ariadne
70
55
  )
71
56
 
72
57
  @direction = fetch_or_raise(VALID_DIRECTIONS, direction)
73
- @form_id = form_id
74
58
 
75
59
  @open_text = open_text
76
60
  @close_text = close_text
77
61
  @attributes = attributes
78
62
  @attributes[:"data-controller"] = "slideover-component"
63
+ @attributes[:"data-slideover-component-target"] = "expandWrapper"
79
64
  end
80
65
  end
81
66
  end
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ import '@github/tab-container-element';
@@ -0,0 +1,23 @@
1
+ import '@github/tab-container-element';
2
+ // // keep in sync with tab_container_component.rb
3
+ // const DEFAULT_SELECTED_CLASSES: string[] = ['ariadne-border-indigo-500', 'ariadne-text-indigo-600']
4
+ // const DEFAULT_UNSELECTED_CLASSES: string[] = [
5
+ // 'ariadne-text-gray-500',
6
+ // 'hover:ariadne-text-gray-700',
7
+ // 'hover:ariadne-border-gray-300'
8
+ // ]
9
+ for (const tabContainer of document.getElementsByTagName('tab-container')) {
10
+ tabContainer.addEventListener('tab-container-change', function (event) {
11
+ var _a;
12
+ const newPanel = event.detail.relatedTarget;
13
+ const tabContainer = newPanel.closest('tab-container');
14
+ const tabList = tabContainer.firstElementChild;
15
+ const currentTab = tabList.querySelector('[aria-selected="true"]');
16
+ const tabId = (_a = newPanel.getAttribute('id')) === null || _a === void 0 ? void 0 : _a.split('-').slice(1).join('-');
17
+ const newTab = tabList.querySelector(`#${tabId}`);
18
+ currentTab.classList.remove(...DEFAULT_SELECTED_CLASSES);
19
+ currentTab.classList.add(...DEFAULT_UNSELECTED_CLASSES);
20
+ newTab.classList.add(...DEFAULT_SELECTED_CLASSES);
21
+ newTab.classList.remove(...DEFAULT_UNSELECTED_CLASSES);
22
+ });
23
+ }
@@ -0,0 +1 @@
1
+ import '@github/tab-container-element';
@@ -0,0 +1,23 @@
1
+ import '@github/tab-container-element';
2
+ // keep in sync with tab_container_component.rb
3
+ const DEFAULT_SELECTED_CLASSES = ['ariadne-border-indigo-500', 'ariadne-text-indigo-600'];
4
+ const DEFAULT_UNSELECTED_CLASSES = [
5
+ 'ariadne-text-gray-500',
6
+ 'hover:ariadne-text-gray-700',
7
+ 'hover:ariadne-border-gray-300'
8
+ ];
9
+ for (const tabContainer of document.getElementsByTagName('tab-container')) {
10
+ tabContainer.addEventListener('tab-container-change', function (event) {
11
+ var _a;
12
+ const newPanel = event.detail.relatedTarget;
13
+ const tabContainer = newPanel.closest('tab-container');
14
+ const tabList = tabContainer.firstElementChild;
15
+ const currentTab = tabList.querySelector('[aria-selected="true"]');
16
+ const tabId = (_a = newPanel.getAttribute('id')) === null || _a === void 0 ? void 0 : _a.split('-').slice(1).join('-');
17
+ const newTab = tabList.querySelector(`#${tabId}`);
18
+ currentTab.classList.remove(...DEFAULT_SELECTED_CLASSES);
19
+ currentTab.classList.add(...DEFAULT_UNSELECTED_CLASSES);
20
+ newTab.classList.add(...DEFAULT_SELECTED_CLASSES);
21
+ newTab.classList.remove(...DEFAULT_UNSELECTED_CLASSES);
22
+ });
23
+ }
@@ -0,0 +1,9 @@
1
+ import { Controller } from '@hotwired/stimulus';
2
+ export default class TabNavComponent extends Controller {
3
+ static targets: string[];
4
+ readonly tabTargets: [HTMLAnchorElement];
5
+ SELECTED_CLASSES: string[];
6
+ UNSELECTED_CLASSES: string[];
7
+ connect(): void;
8
+ toggle(event: Event): void;
9
+ }
@@ -0,0 +1,32 @@
1
+ import { Controller } from '@hotwired/stimulus';
2
+ export default class TabNavComponent extends Controller {
3
+ constructor() {
4
+ super(...arguments);
5
+ // keep in synch with tab_nav_component
6
+ this.SELECTED_CLASSES = ['ariadne-border-indigo-500', 'ariadne-text-indigo-600'];
7
+ this.UNSELECTED_CLASSES = ['ariadne-text-gray-500', 'hover:ariadne-text-gray-700', 'hover:ariadne-border-gray-300'];
8
+ }
9
+ connect() {
10
+ for (const tab of this.tabTargets) {
11
+ if (tab.hasAttribute('aria-current')) {
12
+ tab.classList.add(...this.SELECTED_CLASSES);
13
+ tab.classList.remove(...this.UNSELECTED_CLASSES);
14
+ }
15
+ }
16
+ }
17
+ toggle(event) {
18
+ for (const tab of this.tabTargets) {
19
+ if (tab === event.target) {
20
+ tab.setAttribute('aria-current', 'page');
21
+ tab.classList.add(...this.SELECTED_CLASSES);
22
+ tab.classList.remove(...this.UNSELECTED_CLASSES);
23
+ }
24
+ else if (tab.hasAttribute('aria-current')) {
25
+ tab.removeAttribute('aria-current');
26
+ tab.classList.add(...this.UNSELECTED_CLASSES);
27
+ tab.classList.remove(...this.SELECTED_CLASSES);
28
+ }
29
+ }
30
+ }
31
+ }
32
+ TabNavComponent.targets = ['tab'];
@@ -21,7 +21,6 @@ module Ariadne
21
21
  attributes[:id] = @panel_id
22
22
  tag = :div
23
23
  attributes[:role] ||= :tabpanel
24
- attributes[:tabindex] = 0
25
24
  attributes[:hidden] = true unless @selected
26
25
 
27
26
  label_present = aria("label", attributes) || aria("labelledby", attributes)
@@ -1,5 +1,5 @@
1
1
  <%= render(Ariadne::BaseComponent.new(tag: @tag, classes: @classes, attributes: @attributes)) do |component| %>
2
- <div role="tablist">
2
+ <div role="tablist" class="ariadne-bg-neutral-50">
3
3
  <% tabs.each do |tab| %>
4
4
  <%= tab %>
5
5
  <% end %>
@@ -9,7 +9,7 @@ module Ariadne
9
9
 
10
10
  DEFAULT_CLASSES = ""
11
11
 
12
- DEFAULT_SELECTED_CLASSES = "ariadne-border-indigo-500 ariadne-text-indigo-600"
12
+ DEFAULT_SELECTED_CLASSES = "ariadne-bg-white ariadne-border-indigo-500 ariadne-text-indigo-600"
13
13
  DEFAULT_UNSELECTED_CLASSES = "ariadne-text-gray-500 hover:ariadne-text-gray-700 hover:ariadne-border-gray-300"
14
14
 
15
15
  # Tabs and panels to be rendered.
@@ -20,6 +20,7 @@ module Ariadne
20
20
  # @param attributes [Hash] <%= link_to_attributes_docs %>
21
21
  renders_many :tabs, lambda { |id: "", selected: false, classes: "", attributes: {}|
22
22
  actual_classes = class_names(selected ? DEFAULT_SELECTED_CLASSES : DEFAULT_UNSELECTED_CLASSES, classes)
23
+
23
24
  Ariadne::TabComponent.new(
24
25
  id: id,
25
26
  selected: selected,
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ import '@github/time-elements';
@@ -0,0 +1 @@
1
+ import '@github/time-elements';
@@ -0,0 +1 @@
1
+ import '@github/time-elements';
@@ -0,0 +1 @@
1
+ import '@github/time-elements';
@@ -0,0 +1,24 @@
1
+ import { Controller } from '@hotwired/stimulus';
2
+ import type { Instance, Placement } from '@popperjs/core';
3
+ export default class TooltipComponent extends Controller {
4
+ static targets: string[];
5
+ readonly triggerTarget: HTMLElement;
6
+ readonly tooltipTarget: HTMLElement;
7
+ static values: {
8
+ placement: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ offset: {
13
+ type: ArrayConstructor;
14
+ default: number[];
15
+ };
16
+ };
17
+ readonly placementValue: Placement;
18
+ readonly offsetValue: Array<number>;
19
+ popperInstance: Instance;
20
+ connect(): void;
21
+ disconnect(): void;
22
+ show(): void;
23
+ hide(): void;
24
+ }
@@ -0,0 +1,42 @@
1
+ import { Controller } from '@hotwired/stimulus';
2
+ import { createPopper } from '@popperjs/core';
3
+ export default class TooltipComponent extends Controller {
4
+ // Create a new Popper instance
5
+ connect() {
6
+ this.popperInstance = createPopper(this.triggerTarget, this.tooltipTarget, {
7
+ placement: this.placementValue,
8
+ modifiers: [
9
+ {
10
+ name: 'offset',
11
+ options: {
12
+ offset: this.offsetValue
13
+ }
14
+ }
15
+ ]
16
+ });
17
+ }
18
+ // Destroy the Popper instance
19
+ disconnect() {
20
+ if (this.popperInstance) {
21
+ this.popperInstance.destroy();
22
+ }
23
+ }
24
+ show() {
25
+ this.tooltipTarget.setAttribute('data-tooltip-show', '');
26
+ this.tooltipTarget.classList.remove('ariadne-invisible');
27
+ // We need to tell Popper to update the tooltip position
28
+ // after we show the tooltip, otherwise it will be incorrect
29
+ this.popperInstance.update();
30
+ this.dispatch('shown', { detail: { trigger: this.triggerTarget, tooltip: this.tooltipTarget } });
31
+ }
32
+ hide() {
33
+ this.tooltipTarget.removeAttribute('data-tooltip-show');
34
+ this.tooltipTarget.classList.add('ariadne-invisible');
35
+ this.dispatch('ariadne-hidden', { detail: { trigger: this.triggerTarget, tooltip: this.tooltipTarget } });
36
+ }
37
+ }
38
+ TooltipComponent.targets = ['trigger', 'tooltip'];
39
+ TooltipComponent.values = {
40
+ placement: { type: String, default: 'top' },
41
+ offset: { type: Array, default: [0, 8] }
42
+ };
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ariadne
4
4
  module ViewComponents
5
- VERSION = "0.0.18"
5
+ VERSION = "0.0.19"
6
6
  end
7
7
  end
data/static/arguments.yml CHANGED
@@ -554,10 +554,6 @@
554
554
  type: Symbol
555
555
  default: N/A
556
556
  description: One of `:xl` and `:yd`.
557
- - name: form_id
558
- type: String
559
- default: "`nil`"
560
- description: The ID of any `form` tag to submit when the button is clicked.
561
557
  - name: open_text
562
558
  type: String
563
559
  default: '`"Open"`'
data/static/classes.yml CHANGED
@@ -12,7 +12,6 @@
12
12
  - ".ariadne-flex"
13
13
  - ".ariadne--space-x-2"
14
14
  - ".ariadne-overflow-hidden"
15
- - ".ariadne-inline-flex"
16
15
  - ".ariadne-items-center"
17
16
  - ".ariadne-border"
18
17
  - ".ariadne-shadow-sm"
@@ -79,6 +78,7 @@
79
78
  - ".focus:ariadne-ring-offset-red-50"
80
79
  - ".focus:ariadne-ring-red-600"
81
80
  - ".ariadne-text-yellow-600"
81
+ - ".ariadne-inline-flex"
82
82
  - ".ariadne-p-1"
83
83
  - ".ariadne-border-transparent"
84
84
  - ".ariadne-invisible"
@@ -99,6 +99,7 @@
99
99
  - ".ariadne-shadow"
100
100
  - ".ariadne-py-5"
101
101
  - ".ariadne-px-5"
102
+ - ".ariadne-bg-neutral-50"
102
103
  - ".ariadne-text-gray-500"
103
104
  - ".hover:ariadne-text-gray-700"
104
105
  - ".hover:ariadne-border-gray-300"
@@ -110,9 +111,6 @@
110
111
  - ".ariadne-text-indigo-600"
111
112
  - ".ariadne-space-y-8"
112
113
  - ".sm:ariadne-space-y-5"
113
- - ".focus-within:ariadne-border-indigo-500"
114
- - ".focus-within:ariadne-ring-1"
115
- - ".focus-within:ariadne-ring-indigo-500"
116
114
  - ".tiptap-editor"
117
115
  - ".ariadne-mt-2"
118
116
  - ".ariadne-justify-end"
@@ -170,9 +168,9 @@
170
168
  - ".ariadne-py-0.5"
171
169
  - ".ariadne-text-black"
172
170
  - ".ariadne-hidden"
173
- - ".ariadne-pb-4"
174
171
  - ".ariadne-list-none"
175
172
  - ".ariadne-divide-gray-200"
173
+ - ".ariadne-pb-4"
176
174
  - ".ariadne-text-lg"
177
175
  - ".ariadne-pt-6"
178
176
  - ".ariadne-flow-root"
@@ -37,8 +37,8 @@
37
37
  ]
38
38
  },
39
39
  "Ariadne::BaseButton": {
40
- "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-border ariadne-shadow-sm focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2",
41
- "DEFAULT_NUDE_CLASSES": "ariadne-inline-flex focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2",
40
+ "DEFAULT_CLASSES": "ariadne-items-center ariadne-border ariadne-shadow-sm focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2",
41
+ "DEFAULT_NUDE_CLASSES": "focus:ariadne-outline-none focus:ariadne-ring-2 focus:ariadne-ring-offset-2",
42
42
  "DEFAULT_SIZE": "md",
43
43
  "DEFAULT_TAG": "button",
44
44
  "DEFAULT_TYPE": "button",
@@ -136,8 +136,7 @@
136
136
  "DEFAULT_TAG": "clipboard-copy"
137
137
  },
138
138
  "Ariadne::CommentComponent": {
139
- "DEFAULT_CLASSES": "ariadne-bg-internal-message ariadne-border-gray-300 ariadne-border ariadne-shadow ariadne-py-5 ariadne-px-5 ariadne-rounded-md ",
140
- "DEFAULT_INTERNAL_CLASSES": "ariadne-bg-internal-message",
139
+ "DEFAULT_CLASSES": "ariadne-bg-white ariadne-border-gray-300 ariadne-border ariadne-shadow ariadne-py-5 ariadne-px-5 ariadne-rounded-md ",
141
140
  "DEFAULT_TAG": "div",
142
141
  "TAG_OPTIONS": [
143
142
  "div"
@@ -405,9 +404,9 @@
405
404
  },
406
405
  "Ariadne::InlineFlexComponent": {
407
406
  "DEFAULT_CLASSES": "ariadne-inline-flex ariadne-items-baseline",
408
- "DEFAULT_LABEL_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium ariadne-text-gray-900",
407
+ "DEFAULT_LABEL_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium",
409
408
  "DEFAULT_TAG": "span",
410
- "DEFAULT_TEXT_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium ariadne-text-gray-900",
409
+ "DEFAULT_TEXT_CLASSES": "ariadne-pl-2 ariadne-text-sm ariadne-font-medium",
411
410
  "DEFAULT_TEXT_CLOSED_CLASSES": "ariadne-text-state-closed",
412
411
  "DEFAULT_TEXT_OPEN_CLASSES": "ariadne-text-state-open",
413
412
  "STATE_CLOSED_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"ariadne-stroke-state-closed ariadne-fill-state-closed \" stroke=\"currentColor\" stroke-width=\"2\" fill=\"none\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"></circle>\n</svg>\n",
@@ -466,7 +465,7 @@
466
465
  },
467
466
  "Ariadne::SlideoverComponent": {
468
467
  "DEFAULT_BUTTON_CLASSES": "ariadne-inline-flex ariadne-items-center ariadne-shadow-sm ariadne-px-4 ariadne-py-1.5 ariadne-pb-2 ariadne-text-sm ariadne-leading-5 ariadne-font-medium ariadne-rounded-full ariadne-text-purple-800 ariadne-bg-purple-50 hover:ariadne-bg-purple-100 ariadne-border-purple-300 focus:ariadne-ring-offset-purple-50 focus:ariadne-ring-purple-600",
469
- "DEFAULT_CLASSES": "",
468
+ "DEFAULT_CLASSES": "ariadne-flex ariadne-flex-col",
470
469
  "DEFAULT_TAG": "div",
471
470
  "DIRECTION_X_LEFT": "xl",
472
471
  "DIRECTION_Y_DOWN": "yd",
@@ -488,7 +487,7 @@
488
487
  },
489
488
  "Ariadne::TabContainerComponent": {
490
489
  "DEFAULT_CLASSES": "",
491
- "DEFAULT_SELECTED_CLASSES": "ariadne-border-indigo-500 ariadne-text-indigo-600",
490
+ "DEFAULT_SELECTED_CLASSES": "ariadne-bg-white ariadne-border-indigo-500 ariadne-text-indigo-600",
492
491
  "DEFAULT_TAG": "tab-container",
493
492
  "DEFAULT_UNSELECTED_CLASSES": "ariadne-text-gray-500 hover:ariadne-text-gray-700 hover:ariadne-border-gray-300"
494
493
  },
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.18
4
+ version: 0.0.19
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
- date: 2022-10-07 00:00:00.000000000 Z
11
+ date: 2022-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tailwind_merge
@@ -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:
@@ -108,6 +108,7 @@ extra_rdoc_files: []
108
108
  files:
109
109
  - LICENSE.txt
110
110
  - README.md
111
+ - app/assets/builds/ariadne_view_components.css
111
112
  - app/assets/config/manifest.js
112
113
  - app/assets/javascripts/ariadne-form-with.d.ts
113
114
  - app/assets/javascripts/ariadne-form.d.ts
@@ -127,7 +128,13 @@ files:
127
128
  - app/assets/stylesheets/dropdown.css
128
129
  - app/assets/stylesheets/prosemirror.css
129
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
130
135
  - app/components/ariadne/ariadne-form.ts
136
+ - app/components/ariadne/ariadne.d.ts
137
+ - app/components/ariadne/ariadne.js
131
138
  - app/components/ariadne/ariadne.ts
132
139
  - app/components/ariadne/avatar_component.rb
133
140
  - app/components/ariadne/avatar_stack_component.html.erb
@@ -139,8 +146,12 @@ files:
139
146
  - app/components/ariadne/body_component.rb
140
147
  - app/components/ariadne/button_component.html.erb
141
148
  - app/components/ariadne/button_component.rb
149
+ - app/components/ariadne/clipboard-copy-component.d.ts
150
+ - app/components/ariadne/clipboard-copy-component.js
142
151
  - app/components/ariadne/clipboard-copy-component.ts
152
+ - app/components/ariadne/clipboard_copy_component.d.ts
143
153
  - app/components/ariadne/clipboard_copy_component.html.erb
154
+ - app/components/ariadne/clipboard_copy_component.js
144
155
  - app/components/ariadne/clipboard_copy_component.rb
145
156
  - app/components/ariadne/comment_component.html.erb
146
157
  - app/components/ariadne/comment_component.rb
@@ -180,13 +191,26 @@ files:
180
191
  - app/components/ariadne/panel_bar_component.rb
181
192
  - app/components/ariadne/pill_component.html.erb
182
193
  - 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
183
196
  - app/components/ariadne/rich-text-area-component.ts
184
197
  - app/components/ariadne/rich_text_area_component.html.erb
185
198
  - app/components/ariadne/rich_text_area_component.rb
199
+ - app/components/ariadne/slideover-component.d.ts
200
+ - app/components/ariadne/slideover-component.js
186
201
  - app/components/ariadne/slideover-component.ts
202
+ - app/components/ariadne/slideover_component.d.ts
187
203
  - app/components/ariadne/slideover_component.html.erb
204
+ - app/components/ariadne/slideover_component.js
188
205
  - 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
189
211
  - app/components/ariadne/tab-container-component.ts
212
+ - app/components/ariadne/tab-nav-component.d.ts
213
+ - app/components/ariadne/tab-nav-component.js
190
214
  - app/components/ariadne/tab-nav-component.ts
191
215
  - app/components/ariadne/tab_component.html.erb
192
216
  - app/components/ariadne/tab_component.rb
@@ -196,11 +220,19 @@ files:
196
220
  - app/components/ariadne/tab_nav_component.rb
197
221
  - app/components/ariadne/table_nav_component.html.erb
198
222
  - app/components/ariadne/table_nav_component.rb
223
+ - app/components/ariadne/tabs-component.d.ts
224
+ - app/components/ariadne/tabs-component.js
199
225
  - app/components/ariadne/text.rb
226
+ - app/components/ariadne/time-ago-component.d.ts
227
+ - app/components/ariadne/time-ago-component.js
200
228
  - app/components/ariadne/time-ago-component.ts
229
+ - app/components/ariadne/time_ago_component.d.ts
230
+ - app/components/ariadne/time_ago_component.js
201
231
  - app/components/ariadne/time_ago_component.rb
202
232
  - app/components/ariadne/timeline_component.html.erb
203
233
  - app/components/ariadne/timeline_component.rb
234
+ - app/components/ariadne/tooltip-component.d.ts
235
+ - app/components/ariadne/tooltip-component.js
204
236
  - app/components/ariadne/tooltip-component.ts
205
237
  - app/components/ariadne/tooltip_component.html.erb
206
238
  - app/components/ariadne/tooltip_component.rb
@@ -251,7 +283,7 @@ licenses:
251
283
  - MIT
252
284
  metadata:
253
285
  allowed_push_host: https://rubygems.org
254
- post_install_message:
286
+ post_install_message:
255
287
  rdoc_options: []
256
288
  require_paths:
257
289
  - lib
@@ -270,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
302
  version: '0'
271
303
  requirements: []
272
304
  rubygems_version: 3.3.7
273
- signing_key:
305
+ signing_key:
274
306
  specification_version: 4
275
307
  summary: ViewComponents for the Ariadne Design System
276
308
  test_files: []