ariadne_view_components 0.0.42-x64-mingw-ucrt → 0.0.44-x64-mingw-ucrt

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/app/assets/javascripts/ariadne-form.d.ts +22 -0
  4. data/app/assets/javascripts/ariadne.d.ts +2 -0
  5. data/app/assets/javascripts/ariadne_view_components.js +8 -0
  6. data/app/assets/javascripts/ariadne_view_components.js.map +1 -0
  7. data/app/assets/javascripts/clipboard_copy_component/clipboard-copy-component.d.ts +4 -0
  8. data/app/assets/javascripts/rich_text_area_component/rich-text-area-component.d.ts +6 -0
  9. data/app/assets/javascripts/slideover_component/slideover-component.d.ts +9 -0
  10. data/app/assets/javascripts/tab_container_component/tab-container-component.d.ts +1 -0
  11. data/app/assets/javascripts/tab_nav_component/tab-nav-component.d.ts +9 -0
  12. data/app/assets/javascripts/time_ago_component/time-ago-component.d.ts +1 -0
  13. data/app/assets/javascripts/tooltip_component/tooltip-component.d.ts +24 -0
  14. data/app/components/ariadne/ariadne-form.d.ts +22 -0
  15. data/app/components/ariadne/ariadne-form.js +85 -0
  16. data/app/components/ariadne/ariadne-form.ts +96 -0
  17. data/app/components/ariadne/ariadne.d.ts +2 -0
  18. data/app/components/ariadne/ariadne.js +16 -0
  19. data/app/components/ariadne/ariadne.ts +21 -0
  20. data/app/components/ariadne/avatar_component.rb +81 -0
  21. data/app/components/ariadne/avatar_stack_component/avatar_stack_component.html.erb +12 -0
  22. data/app/components/ariadne/avatar_stack_component.rb +75 -0
  23. data/app/components/ariadne/base_button.rb +70 -0
  24. data/app/components/ariadne/base_component.rb +37 -0
  25. data/app/components/ariadne/blankslate_component/blankslate_component.html.erb +26 -0
  26. data/app/components/ariadne/blankslate_component.rb +148 -0
  27. data/app/components/ariadne/body_component.rb +30 -0
  28. data/app/components/ariadne/button_component/button_component.html.erb +4 -0
  29. data/app/components/ariadne/button_component.rb +165 -0
  30. data/app/components/ariadne/clipboard_copy_component/clipboard-copy-component.d.ts +4 -0
  31. data/app/components/ariadne/clipboard_copy_component/clipboard-copy-component.js +18 -0
  32. data/app/components/ariadne/clipboard_copy_component/clipboard-copy-component.ts +19 -0
  33. data/app/components/ariadne/clipboard_copy_component/clipboard_copy_component.html.erb +9 -0
  34. data/app/components/ariadne/clipboard_copy_component.rb +90 -0
  35. data/app/components/ariadne/comment_component/comment_component.html.erb +37 -0
  36. data/app/components/ariadne/comment_component.rb +71 -0
  37. data/app/components/ariadne/component.rb +127 -0
  38. data/app/components/ariadne/container_component/container_component.html.erb +3 -0
  39. data/app/components/ariadne/container_component.rb +25 -0
  40. data/app/components/ariadne/content.rb +12 -0
  41. data/app/components/ariadne/counter_component.rb +100 -0
  42. data/app/components/ariadne/details_component/details_component.html.erb +4 -0
  43. data/app/components/ariadne/details_component.rb +81 -0
  44. data/app/components/ariadne/dropdown/menu_component.html.erb +20 -0
  45. data/app/components/ariadne/dropdown/menu_component.rb +101 -0
  46. data/app/components/ariadne/dropdown/menu_component.ts +1 -0
  47. data/app/components/ariadne/dropdown_component/dropdown_component.html.erb +8 -0
  48. data/app/components/ariadne/dropdown_component.rb +172 -0
  49. data/app/components/ariadne/flash_component/flash_component.html.erb +31 -0
  50. data/app/components/ariadne/flash_component.rb +128 -0
  51. data/app/components/ariadne/flex_component/flex_component.html.erb +5 -0
  52. data/app/components/ariadne/flex_component.rb +56 -0
  53. data/app/components/ariadne/footer_component/footer_component.html.erb +7 -0
  54. data/app/components/ariadne/footer_component.rb +23 -0
  55. data/app/components/ariadne/grid_component/grid_component.html.erb +26 -0
  56. data/app/components/ariadne/grid_component.rb +67 -0
  57. data/app/components/ariadne/header_component/header_component.html.erb +29 -0
  58. data/app/components/ariadne/header_component.rb +111 -0
  59. data/app/components/ariadne/heading_component.rb +49 -0
  60. data/app/components/ariadne/heroicon_component/heroicon_component.html.erb +4 -0
  61. data/app/components/ariadne/heroicon_component.rb +166 -0
  62. data/app/components/ariadne/image_component.rb +53 -0
  63. data/app/components/ariadne/inline_flex_component/inline_flex_component.html.erb +6 -0
  64. data/app/components/ariadne/inline_flex_component.rb +72 -0
  65. data/app/components/ariadne/link_component.rb +65 -0
  66. data/app/components/ariadne/list_component/list_component.html.erb +6 -0
  67. data/app/components/ariadne/list_component.rb +70 -0
  68. data/app/components/ariadne/narrow_container_component/narrow_container_component.html.erb +3 -0
  69. data/app/components/ariadne/narrow_container_component.rb +30 -0
  70. data/app/components/ariadne/panel_bar_component/panel_bar_component.html.erb +20 -0
  71. data/app/components/ariadne/panel_bar_component.rb +80 -0
  72. data/app/components/ariadne/pill_component/pill_component.html.erb +3 -0
  73. data/app/components/ariadne/pill_component.rb +44 -0
  74. data/app/components/ariadne/rich_text_area_component/rich-text-area-component.d.ts +6 -0
  75. data/app/components/ariadne/rich_text_area_component/rich-text-area-component.js +38 -0
  76. data/app/components/ariadne/rich_text_area_component/rich-text-area-component.ts +47 -0
  77. data/app/components/ariadne/rich_text_area_component/rich_text_area_component.html.erb +6 -0
  78. data/app/components/ariadne/rich_text_area_component.rb +35 -0
  79. data/app/components/ariadne/slideover_component/slideover-component.d.ts +9 -0
  80. data/app/components/ariadne/slideover_component/slideover-component.js +11 -0
  81. data/app/components/ariadne/slideover_component/slideover-component.ts +17 -0
  82. data/app/components/ariadne/slideover_component/slideover_component.html.erb +9 -0
  83. data/app/components/ariadne/slideover_component.rb +66 -0
  84. data/app/components/ariadne/tab_component/tab_component.html.erb +3 -0
  85. data/app/components/ariadne/tab_component.rb +98 -0
  86. data/app/components/ariadne/tab_container_component/tab-container-component.d.ts +1 -0
  87. data/app/components/ariadne/tab_container_component/tab-container-component.js +23 -0
  88. data/app/components/ariadne/tab_container_component/tab-container-component.ts +24 -0
  89. data/app/components/ariadne/tab_container_component.erb +10 -0
  90. data/app/components/ariadne/tab_container_component.rb +68 -0
  91. data/app/components/ariadne/tab_nav_component/tab-nav-component.d.ts +9 -0
  92. data/app/components/ariadne/tab_nav_component/tab-nav-component.js +33 -0
  93. data/app/components/ariadne/tab_nav_component/tab-nav-component.ts +34 -0
  94. data/app/components/ariadne/tab_nav_component/tab_nav_component.html.erb +7 -0
  95. data/app/components/ariadne/tab_nav_component.rb +72 -0
  96. data/app/components/ariadne/table_nav_component/table_nav_component.html.erb +52 -0
  97. data/app/components/ariadne/table_nav_component.rb +338 -0
  98. data/app/components/ariadne/text.rb +25 -0
  99. data/app/components/ariadne/time_ago_component/time-ago-component.d.ts +1 -0
  100. data/app/components/ariadne/time_ago_component/time-ago-component.js +1 -0
  101. data/app/components/ariadne/time_ago_component/time-ago-component.ts +1 -0
  102. data/app/components/ariadne/time_ago_component.rb +56 -0
  103. data/app/components/ariadne/timeline_component/timeline_component.html.erb +19 -0
  104. data/app/components/ariadne/timeline_component.rb +34 -0
  105. data/app/components/ariadne/tooltip_component/tooltip-component.d.ts +24 -0
  106. data/app/components/ariadne/tooltip_component/tooltip-component.js +43 -0
  107. data/app/components/ariadne/tooltip_component/tooltip-component.ts +57 -0
  108. data/app/components/ariadne/tooltip_component/tooltip_component.html.erb +4 -0
  109. data/app/components/ariadne/tooltip_component.rb +108 -0
  110. data/lib/ariadne/view_components/engine.rb +0 -22
  111. data/lib/ariadne/view_components/version.rb +1 -1
  112. data/lib/tasks/build.rake +0 -6
  113. data/tailwind.config.js +10 -15
  114. metadata +109 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29f3e77527446b65bd2b9866b612b140ddce2f335c8eccd6018c94e28837fb46
4
- data.tar.gz: 5e8f8b4adad2bb12716390870a326bdd37b5e0a5a9f07f27c216948237058193
3
+ metadata.gz: 7c34e82ba02483a196ce7b7dfafbf5a7f1c98e453a2760b5308514ed02267456
4
+ data.tar.gz: 03145a8367988c81a8d4a633c8e4e35668d28c34c6b1b2d01bbdaf22c037f927
5
5
  SHA512:
6
- metadata.gz: 32b4e5aeb8251ee6f765c39009550b3c9acfcde373d15182f910057751953484adcb9f743443171f1299feb5901669b541c9962b5ddf0a0566dcf8222161db34
7
- data.tar.gz: a8eaf0ca4c5e893fad166adac6fbabeadc4277c315b7172f88524479c5362470a6cb104261f265faef5e05da55f03aec7e2c8450c93c56794efb6a85264cabdb
6
+ metadata.gz: 0c4125c28028b6ed7322926279be96713d7a2c8feef351c7f68ab4e02cac6dd344061c439b0621185c14d91f9aa04c4fa1cc94c3d573048dd5505645e1dd8427
7
+ data.tar.gz: 7530677c403aec574baf0874de2c3e5b7b6245cbd7bcd245c3c39035aebea32a6341ca55f7eca8590b3e2313df1d62d50d4b827cb3d4fb8e23ee4b9ed28af66f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.0.43](https://github.com/yettoapp/ariadne/tree/v0.0.43) (2023-05-02)
4
+
5
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.42...v0.0.43)
6
+
7
+ ## [v0.0.42](https://github.com/yettoapp/ariadne/tree/v0.0.42) (2023-05-02)
8
+
9
+ [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.41...v0.0.42)
10
+
11
+ **Merged pull requests:**
12
+
13
+ - build\(deps-dev\): bump @typescript-eslint/parser from 5.36.1 to 5.59.2 [\#297](https://github.com/yettoapp/ariadne/pull/297) ([dependabot[bot]](https://github.com/apps/dependabot))
14
+
3
15
  ## [v0.0.41](https://github.com/yettoapp/ariadne/tree/v0.0.41) (2023-05-01)
4
16
 
5
17
  [Full Changelog](https://github.com/yettoapp/ariadne/compare/v0.0.40...v0.0.41)
@@ -0,0 +1,22 @@
1
+ import { Controller } from '@hotwired/stimulus';
2
+ import type { TemplateResult } from 'lit-html';
3
+ type HTMLFormField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
4
+ export default class AriadneFormWith extends Controller {
5
+ static targets: string[];
6
+ readonly formFieldTargets: [HTMLFormField];
7
+ connect(): void;
8
+ disconnect(): void;
9
+ onBlur: (event: Event) => void;
10
+ onSubmit: (event: Event) => void;
11
+ validateForm(): boolean;
12
+ validateField(field: HTMLFormField): boolean;
13
+ shouldValidateField(field: HTMLFormField): boolean;
14
+ refreshErrorForInvalidField(field: HTMLFormField, isValid: boolean): void;
15
+ removeExistingErrorMessage(field: HTMLFormField): void;
16
+ showErrorForInvalidField(field: HTMLFormField): void;
17
+ buildFieldErrorHtml(field: HTMLFormField): string;
18
+ get formFields(): HTMLFormField[];
19
+ get firstInvalidField(): HTMLFormField | undefined;
20
+ getRenderString: (data: TemplateResult) => string;
21
+ }
22
+ export {};
@@ -0,0 +1,2 @@
1
+ import './tab_container_component/tab-container-component';
2
+ import './time_ago_component/time-ago-component';