ariadne_view_components 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +68 -0
  4. data/app/assets/javascripts/ariadne_view_components.js +2 -0
  5. data/app/assets/javascripts/ariadne_view_components.js.map +1 -0
  6. data/app/assets/stylesheets/application.tailwind.css +3 -0
  7. data/app/components/ariadne/ariadne.ts +14 -0
  8. data/app/components/ariadne/base_button.rb +60 -0
  9. data/app/components/ariadne/base_component.rb +155 -0
  10. data/app/components/ariadne/button_component.html.erb +4 -0
  11. data/app/components/ariadne/button_component.rb +158 -0
  12. data/app/components/ariadne/clipboard_copy_component.html.erb +8 -0
  13. data/app/components/ariadne/clipboard_copy_component.rb +50 -0
  14. data/app/components/ariadne/clipboard_copy_component.ts +19 -0
  15. data/app/components/ariadne/component.rb +123 -0
  16. data/app/components/ariadne/content.rb +12 -0
  17. data/app/components/ariadne/counter_component.rb +100 -0
  18. data/app/components/ariadne/flash_component.html.erb +31 -0
  19. data/app/components/ariadne/flash_component.rb +125 -0
  20. data/app/components/ariadne/heading_component.rb +49 -0
  21. data/app/components/ariadne/heroicon_component.html.erb +7 -0
  22. data/app/components/ariadne/heroicon_component.rb +116 -0
  23. data/app/components/ariadne/image_component.rb +51 -0
  24. data/app/components/ariadne/text.rb +25 -0
  25. data/app/components/ariadne/tooltip_component.rb +105 -0
  26. data/app/lib/ariadne/audited/dsl.rb +32 -0
  27. data/app/lib/ariadne/class_name_helper.rb +22 -0
  28. data/app/lib/ariadne/fetch_or_fallback_helper.rb +100 -0
  29. data/app/lib/ariadne/icon_helper.rb +47 -0
  30. data/app/lib/ariadne/join_style_arguments_helper.rb +14 -0
  31. data/app/lib/ariadne/logger_helper.rb +23 -0
  32. data/app/lib/ariadne/status/dsl.rb +41 -0
  33. data/app/lib/ariadne/tab_nav_helper.rb +35 -0
  34. data/app/lib/ariadne/tabbed_component_helper.rb +39 -0
  35. data/app/lib/ariadne/test_selector_helper.rb +20 -0
  36. data/app/lib/ariadne/underline_nav_helper.rb +44 -0
  37. data/app/lib/ariadne/view_helper.rb +22 -0
  38. data/lib/ariadne/classify/utilities.rb +199 -0
  39. data/lib/ariadne/classify/utilities.yml +1817 -0
  40. data/lib/ariadne/classify/validation.rb +18 -0
  41. data/lib/ariadne/classify.rb +210 -0
  42. data/lib/ariadne/view_components/constants.rb +53 -0
  43. data/lib/ariadne/view_components/engine.rb +30 -0
  44. data/lib/ariadne/view_components/linters.rb +3 -0
  45. data/lib/ariadne/view_components/statuses.rb +14 -0
  46. data/lib/ariadne/view_components/version.rb +7 -0
  47. data/lib/ariadne/view_components.rb +59 -0
  48. data/lib/rubocop/config/default.yml +14 -0
  49. data/lib/rubocop/cop/ariadne/ariadne_heroicon.rb +252 -0
  50. data/lib/rubocop/cop/ariadne/base_cop.rb +26 -0
  51. data/lib/rubocop/cop/ariadne/component_name_migration.rb +35 -0
  52. data/lib/rubocop/cop/ariadne/no_tag_memoize.rb +43 -0
  53. data/lib/rubocop/cop/ariadne/system_argument_instead_of_class.rb +57 -0
  54. data/lib/rubocop/cop/ariadne.rb +3 -0
  55. data/lib/tasks/ariadne_view_components.rake +47 -0
  56. data/lib/tasks/coverage.rake +19 -0
  57. data/lib/tasks/custom_utilities.yml +310 -0
  58. data/lib/tasks/docs.rake +525 -0
  59. data/lib/tasks/helpers/ast_processor.rb +44 -0
  60. data/lib/tasks/helpers/ast_traverser.rb +77 -0
  61. data/lib/tasks/static.rake +15 -0
  62. data/lib/tasks/tailwind.rake +31 -0
  63. data/lib/tasks/utilities.rake +121 -0
  64. data/lib/yard/docs_helper.rb +83 -0
  65. data/lib/yard/renders_many_handler.rb +19 -0
  66. data/lib/yard/renders_one_handler.rb +19 -0
  67. data/static/arguments.yml +251 -0
  68. data/static/assets/view-components.svg +18 -0
  69. data/static/audited_at.json +14 -0
  70. data/static/classes.yml +89 -0
  71. data/static/constants.json +243 -0
  72. data/static/statuses.json +14 -0
  73. data/static/tailwindcss.yml +727 -0
  74. metadata +193 -0
metadata ADDED
@@ -0,0 +1,193 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ariadne_view_components
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Garen J. Torikian
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: actionview
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '6.1'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '8.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '6.1'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '8.0'
33
+ - !ruby/object:Gem::Dependency
34
+ name: activesupport
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '6.1'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '8.0'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: '6.1'
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '8.0'
53
+ - !ruby/object:Gem::Dependency
54
+ name: heroicons_helper
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.4'
60
+ type: :runtime
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - "~>"
65
+ - !ruby/object:Gem::Version
66
+ version: '0.4'
67
+ - !ruby/object:Gem::Dependency
68
+ name: view_component
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '2.0'
74
+ - - "<"
75
+ - !ruby/object:Gem::Version
76
+ version: '3.0'
77
+ type: :runtime
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: '2.0'
84
+ - - "<"
85
+ - !ruby/object:Gem::Version
86
+ version: '3.0'
87
+ description:
88
+ email:
89
+ - gjtorikian@yettoapp.com
90
+ executables: []
91
+ extensions: []
92
+ extra_rdoc_files: []
93
+ files:
94
+ - LICENSE.txt
95
+ - README.md
96
+ - app/assets/javascripts/ariadne_view_components.js
97
+ - app/assets/javascripts/ariadne_view_components.js.map
98
+ - app/assets/stylesheets/application.tailwind.css
99
+ - app/components/ariadne/ariadne.ts
100
+ - app/components/ariadne/base_button.rb
101
+ - app/components/ariadne/base_component.rb
102
+ - app/components/ariadne/button_component.html.erb
103
+ - app/components/ariadne/button_component.rb
104
+ - app/components/ariadne/clipboard_copy_component.html.erb
105
+ - app/components/ariadne/clipboard_copy_component.rb
106
+ - app/components/ariadne/clipboard_copy_component.ts
107
+ - app/components/ariadne/component.rb
108
+ - app/components/ariadne/content.rb
109
+ - app/components/ariadne/counter_component.rb
110
+ - app/components/ariadne/flash_component.html.erb
111
+ - app/components/ariadne/flash_component.rb
112
+ - app/components/ariadne/heading_component.rb
113
+ - app/components/ariadne/heroicon_component.html.erb
114
+ - app/components/ariadne/heroicon_component.rb
115
+ - app/components/ariadne/image_component.rb
116
+ - app/components/ariadne/text.rb
117
+ - app/components/ariadne/tooltip_component.rb
118
+ - app/lib/ariadne/audited/dsl.rb
119
+ - app/lib/ariadne/class_name_helper.rb
120
+ - app/lib/ariadne/fetch_or_fallback_helper.rb
121
+ - app/lib/ariadne/icon_helper.rb
122
+ - app/lib/ariadne/join_style_arguments_helper.rb
123
+ - app/lib/ariadne/logger_helper.rb
124
+ - app/lib/ariadne/status/dsl.rb
125
+ - app/lib/ariadne/tab_nav_helper.rb
126
+ - app/lib/ariadne/tabbed_component_helper.rb
127
+ - app/lib/ariadne/test_selector_helper.rb
128
+ - app/lib/ariadne/underline_nav_helper.rb
129
+ - app/lib/ariadne/view_helper.rb
130
+ - lib/ariadne/classify.rb
131
+ - lib/ariadne/classify/utilities.rb
132
+ - lib/ariadne/classify/utilities.yml
133
+ - lib/ariadne/classify/validation.rb
134
+ - lib/ariadne/view_components.rb
135
+ - lib/ariadne/view_components/constants.rb
136
+ - lib/ariadne/view_components/engine.rb
137
+ - lib/ariadne/view_components/linters.rb
138
+ - lib/ariadne/view_components/statuses.rb
139
+ - lib/ariadne/view_components/version.rb
140
+ - lib/rubocop/config/default.yml
141
+ - lib/rubocop/cop/ariadne.rb
142
+ - lib/rubocop/cop/ariadne/ariadne_heroicon.rb
143
+ - lib/rubocop/cop/ariadne/base_cop.rb
144
+ - lib/rubocop/cop/ariadne/component_name_migration.rb
145
+ - lib/rubocop/cop/ariadne/no_tag_memoize.rb
146
+ - lib/rubocop/cop/ariadne/system_argument_instead_of_class.rb
147
+ - lib/tasks/ariadne_view_components.rake
148
+ - lib/tasks/coverage.rake
149
+ - lib/tasks/custom_utilities.yml
150
+ - lib/tasks/docs.rake
151
+ - lib/tasks/helpers/ast_processor.rb
152
+ - lib/tasks/helpers/ast_traverser.rb
153
+ - lib/tasks/static.rake
154
+ - lib/tasks/tailwind.rake
155
+ - lib/tasks/utilities.rake
156
+ - lib/yard/docs_helper.rb
157
+ - lib/yard/renders_many_handler.rb
158
+ - lib/yard/renders_one_handler.rb
159
+ - static/arguments.yml
160
+ - static/assets/view-components.svg
161
+ - static/audited_at.json
162
+ - static/classes.yml
163
+ - static/constants.json
164
+ - static/statuses.json
165
+ - static/tailwindcss.yml
166
+ homepage: https://github.com/yettoapp/ariadne/view_components
167
+ licenses:
168
+ - MIT
169
+ metadata:
170
+ allowed_push_host: https://rubygems.org
171
+ post_install_message:
172
+ rdoc_options: []
173
+ require_paths:
174
+ - lib
175
+ required_ruby_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '2.7'
180
+ - - "<"
181
+ - !ruby/object:Gem::Version
182
+ version: '4.0'
183
+ required_rubygems_version: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ requirements: []
189
+ rubygems_version: 3.3.7
190
+ signing_key:
191
+ specification_version: 4
192
+ summary: ViewComponents for the Ariadne Design System
193
+ test_files: []