ariadne_view_components 0.0.10-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (130) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +49 -0
  3. data/README.md +73 -0
  4. data/app/assets/config/manifest.js +2 -0
  5. data/app/assets/javascripts/ariadne-form-with.d.ts +20 -0
  6. data/app/assets/javascripts/ariadne-form.d.ts +22 -0
  7. data/app/assets/javascripts/ariadne.d.ts +1 -0
  8. data/app/assets/javascripts/ariadne_view_components.js +8 -0
  9. data/app/assets/javascripts/ariadne_view_components.js.map +1 -0
  10. data/app/assets/javascripts/clipboard-copy-component.d.ts +4 -0
  11. data/app/assets/javascripts/comment-component.d.ts +13 -0
  12. data/app/assets/javascripts/rich-text-area-component.d.ts +4 -0
  13. data/app/assets/javascripts/slideover-component.d.ts +9 -0
  14. data/app/assets/javascripts/time-ago-component.d.ts +1 -0
  15. data/app/assets/javascripts/time_ago_component.d.ts +1 -0
  16. data/app/assets/javascripts/tooltip-component.d.ts +24 -0
  17. data/app/assets/stylesheets/ariadne_view_components.css +6 -0
  18. data/app/assets/stylesheets/prosemirror.css +323 -0
  19. data/app/assets/stylesheets/tooltip-component.css +37 -0
  20. data/app/components/ariadne/ariadne-form.ts +96 -0
  21. data/app/components/ariadne/ariadne.ts +20 -0
  22. data/app/components/ariadne/base_button.rb +61 -0
  23. data/app/components/ariadne/base_component.rb +37 -0
  24. data/app/components/ariadne/blankslate_component.html.erb +26 -0
  25. data/app/components/ariadne/blankslate_component.rb +146 -0
  26. data/app/components/ariadne/body_component.rb +30 -0
  27. data/app/components/ariadne/button_component.html.erb +4 -0
  28. data/app/components/ariadne/button_component.rb +157 -0
  29. data/app/components/ariadne/clipboard-copy-component.ts +19 -0
  30. data/app/components/ariadne/clipboard_copy_component.html.erb +9 -0
  31. data/app/components/ariadne/clipboard_copy_component.rb +90 -0
  32. data/app/components/ariadne/comment-component.ts +55 -0
  33. data/app/components/ariadne/comment_component.html.erb +22 -0
  34. data/app/components/ariadne/comment_component.rb +57 -0
  35. data/app/components/ariadne/component.rb +128 -0
  36. data/app/components/ariadne/container_component.html.erb +3 -0
  37. data/app/components/ariadne/container_component.rb +25 -0
  38. data/app/components/ariadne/content.rb +12 -0
  39. data/app/components/ariadne/counter_component.rb +100 -0
  40. data/app/components/ariadne/flash_component.html.erb +31 -0
  41. data/app/components/ariadne/flash_component.rb +125 -0
  42. data/app/components/ariadne/flex_component.rb +49 -0
  43. data/app/components/ariadne/footer_component.html.erb +7 -0
  44. data/app/components/ariadne/footer_component.rb +23 -0
  45. data/app/components/ariadne/grid_component.html.erb +26 -0
  46. data/app/components/ariadne/grid_component.rb +66 -0
  47. data/app/components/ariadne/header_component.html.erb +29 -0
  48. data/app/components/ariadne/header_component.rb +114 -0
  49. data/app/components/ariadne/heading_component.rb +49 -0
  50. data/app/components/ariadne/heroicon_component.html.erb +4 -0
  51. data/app/components/ariadne/heroicon_component.rb +129 -0
  52. data/app/components/ariadne/image_component.rb +53 -0
  53. data/app/components/ariadne/inline_flex_component.html.erb +5 -0
  54. data/app/components/ariadne/inline_flex_component.rb +65 -0
  55. data/app/components/ariadne/link_component.rb +65 -0
  56. data/app/components/ariadne/list_component.html.erb +15 -0
  57. data/app/components/ariadne/list_component.rb +68 -0
  58. data/app/components/ariadne/main_component.rb +32 -0
  59. data/app/components/ariadne/narrow_container_component.html.erb +3 -0
  60. data/app/components/ariadne/narrow_container_component.rb +30 -0
  61. data/app/components/ariadne/panel_bar_component.html.erb +20 -0
  62. data/app/components/ariadne/panel_bar_component.rb +79 -0
  63. data/app/components/ariadne/pill_component.html.erb +3 -0
  64. data/app/components/ariadne/pill_component.rb +30 -0
  65. data/app/components/ariadne/rich-text-area-component.ts +32 -0
  66. data/app/components/ariadne/rich_text_area_component.html.erb +6 -0
  67. data/app/components/ariadne/rich_text_area_component.rb +35 -0
  68. data/app/components/ariadne/slideover-component.ts +26 -0
  69. data/app/components/ariadne/slideover_component.html.erb +11 -0
  70. data/app/components/ariadne/slideover_component.rb +81 -0
  71. data/app/components/ariadne/tab_bar_component.html.erb +3 -0
  72. data/app/components/ariadne/tab_bar_component.rb +45 -0
  73. data/app/components/ariadne/tab_component.html.erb +7 -0
  74. data/app/components/ariadne/tab_component.rb +43 -0
  75. data/app/components/ariadne/text.rb +25 -0
  76. data/app/components/ariadne/time-ago-component.ts +1 -0
  77. data/app/components/ariadne/time_ago_component.rb +56 -0
  78. data/app/components/ariadne/timeline_component.html.erb +19 -0
  79. data/app/components/ariadne/timeline_component.rb +34 -0
  80. data/app/components/ariadne/tooltip-component.ts +57 -0
  81. data/app/components/ariadne/tooltip_component.html.erb +4 -0
  82. data/app/components/ariadne/tooltip_component.rb +108 -0
  83. data/app/lib/ariadne/action_view_extensions/form_helper.rb +26 -0
  84. data/app/lib/ariadne/audited/dsl.rb +32 -0
  85. data/app/lib/ariadne/class_name_helper.rb +22 -0
  86. data/app/lib/ariadne/fetch_or_fallback_helper.rb +102 -0
  87. data/app/lib/ariadne/form_builder.rb +71 -0
  88. data/app/lib/ariadne/icon_helper.rb +47 -0
  89. data/app/lib/ariadne/join_style_arguments_helper.rb +14 -0
  90. data/app/lib/ariadne/logger_helper.rb +23 -0
  91. data/app/lib/ariadne/status/dsl.rb +41 -0
  92. data/app/lib/ariadne/tab_nav_helper.rb +35 -0
  93. data/app/lib/ariadne/tabbed_component_helper.rb +39 -0
  94. data/app/lib/ariadne/test_selector_helper.rb +20 -0
  95. data/app/lib/ariadne/underline_nav_helper.rb +44 -0
  96. data/app/lib/ariadne/view_helper.rb +22 -0
  97. data/exe/aarch64-linux/tailwindcss +0 -0
  98. data/exe/tailwindcss +21 -0
  99. data/lib/ariadne/view_components/commands.rb +90 -0
  100. data/lib/ariadne/view_components/constants.rb +53 -0
  101. data/lib/ariadne/view_components/engine.rb +75 -0
  102. data/lib/ariadne/view_components/linters.rb +3 -0
  103. data/lib/ariadne/view_components/statuses.rb +14 -0
  104. data/lib/ariadne/view_components/upstream.rb +20 -0
  105. data/lib/ariadne/view_components/version.rb +7 -0
  106. data/lib/ariadne/view_components.rb +61 -0
  107. data/lib/rubocop/config/default.yml +8 -0
  108. data/lib/rubocop/cop/ariadne/base_cop.rb +26 -0
  109. data/lib/rubocop/cop/ariadne/no_tag_memoize.rb +44 -0
  110. data/lib/rubocop/cop/ariadne.rb +3 -0
  111. data/lib/tasks/ariadne_view_components.rake +48 -0
  112. data/lib/tasks/build.rake +30 -0
  113. data/lib/tasks/coverage.rake +19 -0
  114. data/lib/tasks/custom_utilities.yml +310 -0
  115. data/lib/tasks/docs.rake +524 -0
  116. data/lib/tasks/helpers/ast_processor.rb +44 -0
  117. data/lib/tasks/helpers/ast_traverser.rb +77 -0
  118. data/lib/tasks/static.rake +15 -0
  119. data/lib/yard/docs_helper.rb +83 -0
  120. data/lib/yard/renders_many_handler.rb +19 -0
  121. data/lib/yard/renders_one_handler.rb +19 -0
  122. data/static/arguments.yml +619 -0
  123. data/static/assets/view-components.svg +18 -0
  124. data/static/audited_at.json +38 -0
  125. data/static/classes.yml +291 -0
  126. data/static/constants.json +426 -0
  127. data/static/statuses.json +38 -0
  128. data/static/tailwindcss.yml +727 -0
  129. data/tailwind.config.js +65 -0
  130. metadata +264 -0
@@ -0,0 +1,65 @@
1
+ const defaultTheme = require('tailwindcss/defaultTheme')
2
+ const colors = require('tailwindcss/colors')
3
+
4
+ const CLASS_YML_REGEX = /^- "\.([\S-]+)"$/
5
+
6
+ // for classes in hashes
7
+ const CLASS_MAPPINGS = '(?:\\S+|:\\"[\\S-]+\\"): \\"([\\S -]+)\\"'
8
+ // for classes in constants
9
+ const CLASS_CONSTANT = '[A-Z_]+ = \\"([\\S -]+)\\"'
10
+ const CLASS_RB_REGEX = new RegExp(`(?:${CLASS_MAPPINGS}|${CLASS_CONSTANT})'`, 'g')
11
+
12
+ module.exports = {
13
+ prefix: 'ariadne-',
14
+ content: {
15
+ files: [
16
+ './public/*.html',
17
+ './app/assets/javascripts/**/*.js',
18
+ './app/components/**/*.erb',
19
+ './app/components/**/*.rb',
20
+ './app/lib/ariadne',
21
+ './static/classes.yml'
22
+ ],
23
+ extract: {
24
+ yml: content => {
25
+ const matches = content.match(CLASS_YML_REGEX)
26
+ return matches ? matches[1].split(/\s+/) : []
27
+ },
28
+ rb: content => {
29
+ const matches = content.match(CLASS_RB_REGEX)
30
+ return matches ? matches[1].split(/\s+/) : []
31
+ }
32
+ }
33
+ },
34
+ theme: {
35
+ extend: {
36
+ colors: {
37
+ 'billy-purple': '#a700a0',
38
+
39
+ 'state-closed': '#da1e28',
40
+ 'state-open': '#198038',
41
+
42
+ 'list-hover': colors.indigo['50'],
43
+ 'filter-panel': colors.amber['100'],
44
+
45
+ 'button-text-color': colors.indigo['700'],
46
+ 'button-bg-color': colors.indigo['100'],
47
+ 'button-hover-color': colors.indigo['200'],
48
+
49
+ 'internal-message': colors.amber['100']
50
+ },
51
+ fontFamily: {
52
+ sans: ['Inter var', ...defaultTheme.fontFamily.sans]
53
+ },
54
+ zIndex: {
55
+ max: '9999'
56
+ }
57
+ }
58
+ },
59
+ plugins: [
60
+ require('@tailwindcss/aspect-ratio'),
61
+ require('@tailwindcss/line-clamp'),
62
+ require('@tailwindcss/forms'),
63
+ require('@tailwindcss/typography')
64
+ ]
65
+ }
metadata ADDED
@@ -0,0 +1,264 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ariadne_view_components
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.10
5
+ platform: aarch64-linux
6
+ authors:
7
+ - Garen J. Torikian
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-09-12 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tailwind_merge
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: actionview
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '6.1'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '8.0'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '6.1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '8.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: activesupport
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '6.1'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '8.0'
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '6.1'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: '8.0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: heroicons_helper
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - "~>"
72
+ - !ruby/object:Gem::Version
73
+ version: '0.6'
74
+ type: :runtime
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - "~>"
79
+ - !ruby/object:Gem::Version
80
+ version: '0.6'
81
+ - !ruby/object:Gem::Dependency
82
+ name: view_component
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '2.0'
88
+ - - "<"
89
+ - !ruby/object:Gem::Version
90
+ version: '3.0'
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '2.0'
98
+ - - "<"
99
+ - !ruby/object:Gem::Version
100
+ version: '3.0'
101
+ description:
102
+ email:
103
+ - gjtorikian@yettoapp.com
104
+ executables:
105
+ - tailwindcss
106
+ extensions: []
107
+ extra_rdoc_files: []
108
+ files:
109
+ - LICENSE.txt
110
+ - README.md
111
+ - app/assets/config/manifest.js
112
+ - app/assets/javascripts/ariadne-form-with.d.ts
113
+ - app/assets/javascripts/ariadne-form.d.ts
114
+ - app/assets/javascripts/ariadne.d.ts
115
+ - app/assets/javascripts/ariadne_view_components.js
116
+ - app/assets/javascripts/ariadne_view_components.js.map
117
+ - app/assets/javascripts/clipboard-copy-component.d.ts
118
+ - app/assets/javascripts/comment-component.d.ts
119
+ - app/assets/javascripts/rich-text-area-component.d.ts
120
+ - app/assets/javascripts/slideover-component.d.ts
121
+ - app/assets/javascripts/time-ago-component.d.ts
122
+ - app/assets/javascripts/time_ago_component.d.ts
123
+ - app/assets/javascripts/tooltip-component.d.ts
124
+ - app/assets/stylesheets/ariadne_view_components.css
125
+ - app/assets/stylesheets/prosemirror.css
126
+ - app/assets/stylesheets/tooltip-component.css
127
+ - app/components/ariadne/ariadne-form.ts
128
+ - app/components/ariadne/ariadne.ts
129
+ - app/components/ariadne/base_button.rb
130
+ - app/components/ariadne/base_component.rb
131
+ - app/components/ariadne/blankslate_component.html.erb
132
+ - app/components/ariadne/blankslate_component.rb
133
+ - app/components/ariadne/body_component.rb
134
+ - app/components/ariadne/button_component.html.erb
135
+ - app/components/ariadne/button_component.rb
136
+ - app/components/ariadne/clipboard-copy-component.ts
137
+ - app/components/ariadne/clipboard_copy_component.html.erb
138
+ - app/components/ariadne/clipboard_copy_component.rb
139
+ - app/components/ariadne/comment-component.ts
140
+ - app/components/ariadne/comment_component.html.erb
141
+ - app/components/ariadne/comment_component.rb
142
+ - app/components/ariadne/component.rb
143
+ - app/components/ariadne/container_component.html.erb
144
+ - app/components/ariadne/container_component.rb
145
+ - app/components/ariadne/content.rb
146
+ - app/components/ariadne/counter_component.rb
147
+ - app/components/ariadne/flash_component.html.erb
148
+ - app/components/ariadne/flash_component.rb
149
+ - app/components/ariadne/flex_component.rb
150
+ - app/components/ariadne/footer_component.html.erb
151
+ - app/components/ariadne/footer_component.rb
152
+ - app/components/ariadne/grid_component.html.erb
153
+ - app/components/ariadne/grid_component.rb
154
+ - app/components/ariadne/header_component.html.erb
155
+ - app/components/ariadne/header_component.rb
156
+ - app/components/ariadne/heading_component.rb
157
+ - app/components/ariadne/heroicon_component.html.erb
158
+ - app/components/ariadne/heroicon_component.rb
159
+ - app/components/ariadne/image_component.rb
160
+ - app/components/ariadne/inline_flex_component.html.erb
161
+ - app/components/ariadne/inline_flex_component.rb
162
+ - app/components/ariadne/link_component.rb
163
+ - app/components/ariadne/list_component.html.erb
164
+ - app/components/ariadne/list_component.rb
165
+ - app/components/ariadne/main_component.rb
166
+ - app/components/ariadne/narrow_container_component.html.erb
167
+ - app/components/ariadne/narrow_container_component.rb
168
+ - app/components/ariadne/panel_bar_component.html.erb
169
+ - app/components/ariadne/panel_bar_component.rb
170
+ - app/components/ariadne/pill_component.html.erb
171
+ - app/components/ariadne/pill_component.rb
172
+ - app/components/ariadne/rich-text-area-component.ts
173
+ - app/components/ariadne/rich_text_area_component.html.erb
174
+ - app/components/ariadne/rich_text_area_component.rb
175
+ - app/components/ariadne/slideover-component.ts
176
+ - app/components/ariadne/slideover_component.html.erb
177
+ - app/components/ariadne/slideover_component.rb
178
+ - app/components/ariadne/tab_bar_component.html.erb
179
+ - app/components/ariadne/tab_bar_component.rb
180
+ - app/components/ariadne/tab_component.html.erb
181
+ - app/components/ariadne/tab_component.rb
182
+ - app/components/ariadne/text.rb
183
+ - app/components/ariadne/time-ago-component.ts
184
+ - app/components/ariadne/time_ago_component.rb
185
+ - app/components/ariadne/timeline_component.html.erb
186
+ - app/components/ariadne/timeline_component.rb
187
+ - app/components/ariadne/tooltip-component.ts
188
+ - app/components/ariadne/tooltip_component.html.erb
189
+ - app/components/ariadne/tooltip_component.rb
190
+ - app/lib/ariadne/action_view_extensions/form_helper.rb
191
+ - app/lib/ariadne/audited/dsl.rb
192
+ - app/lib/ariadne/class_name_helper.rb
193
+ - app/lib/ariadne/fetch_or_fallback_helper.rb
194
+ - app/lib/ariadne/form_builder.rb
195
+ - app/lib/ariadne/icon_helper.rb
196
+ - app/lib/ariadne/join_style_arguments_helper.rb
197
+ - app/lib/ariadne/logger_helper.rb
198
+ - app/lib/ariadne/status/dsl.rb
199
+ - app/lib/ariadne/tab_nav_helper.rb
200
+ - app/lib/ariadne/tabbed_component_helper.rb
201
+ - app/lib/ariadne/test_selector_helper.rb
202
+ - app/lib/ariadne/underline_nav_helper.rb
203
+ - app/lib/ariadne/view_helper.rb
204
+ - exe/aarch64-linux/tailwindcss
205
+ - exe/tailwindcss
206
+ - lib/ariadne/view_components.rb
207
+ - lib/ariadne/view_components/commands.rb
208
+ - lib/ariadne/view_components/constants.rb
209
+ - lib/ariadne/view_components/engine.rb
210
+ - lib/ariadne/view_components/linters.rb
211
+ - lib/ariadne/view_components/statuses.rb
212
+ - lib/ariadne/view_components/upstream.rb
213
+ - lib/ariadne/view_components/version.rb
214
+ - lib/rubocop/config/default.yml
215
+ - lib/rubocop/cop/ariadne.rb
216
+ - lib/rubocop/cop/ariadne/base_cop.rb
217
+ - lib/rubocop/cop/ariadne/no_tag_memoize.rb
218
+ - lib/tasks/ariadne_view_components.rake
219
+ - lib/tasks/build.rake
220
+ - lib/tasks/coverage.rake
221
+ - lib/tasks/custom_utilities.yml
222
+ - lib/tasks/docs.rake
223
+ - lib/tasks/helpers/ast_processor.rb
224
+ - lib/tasks/helpers/ast_traverser.rb
225
+ - lib/tasks/static.rake
226
+ - lib/yard/docs_helper.rb
227
+ - lib/yard/renders_many_handler.rb
228
+ - lib/yard/renders_one_handler.rb
229
+ - static/arguments.yml
230
+ - static/assets/view-components.svg
231
+ - static/audited_at.json
232
+ - static/classes.yml
233
+ - static/constants.json
234
+ - static/statuses.json
235
+ - static/tailwindcss.yml
236
+ - tailwind.config.js
237
+ homepage: https://github.com/yettoapp/ariadne/view_components
238
+ licenses:
239
+ - MIT
240
+ metadata:
241
+ allowed_push_host: https://rubygems.org
242
+ post_install_message:
243
+ rdoc_options: []
244
+ require_paths:
245
+ - lib
246
+ required_ruby_version: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '3.0'
251
+ - - "<"
252
+ - !ruby/object:Gem::Version
253
+ version: '4.0'
254
+ required_rubygems_version: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - ">="
257
+ - !ruby/object:Gem::Version
258
+ version: '0'
259
+ requirements: []
260
+ rubygems_version: 3.3.7
261
+ signing_key:
262
+ specification_version: 4
263
+ summary: ViewComponents for the Ariadne Design System
264
+ test_files: []