ariadne_view_components 0.0.3 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -7
  3. data/app/assets/builds/ariadne_view_components.css +1874 -0
  4. data/app/assets/config/manifest.js +2 -0
  5. data/app/assets/javascripts/ariadne.d.ts +1 -0
  6. data/app/assets/javascripts/ariadne_view_components.js +1 -1
  7. data/app/assets/javascripts/ariadne_view_components.js.map +1 -1
  8. data/app/assets/javascripts/clipboard-copy-component.d.ts +4 -0
  9. data/app/assets/javascripts/slideover-component.d.ts +9 -0
  10. data/app/assets/javascripts/time_ago_component.d.ts +1 -0
  11. data/app/assets/javascripts/tooltip-component.d.ts +24 -0
  12. data/app/assets/stylesheets/application.ariadne_view_components.css +5 -0
  13. data/app/assets/stylesheets/tooltip-component.css +37 -0
  14. data/app/components/ariadne/ariadne.d.ts +1 -0
  15. data/app/components/ariadne/ariadne.js +9 -0
  16. data/app/components/ariadne/ariadne.ts +8 -9
  17. data/app/components/ariadne/base_button.rb +10 -8
  18. data/app/components/ariadne/blankslate_component.html.erb +26 -0
  19. data/app/components/ariadne/blankslate_component.rb +151 -0
  20. data/app/components/ariadne/body_component.rb +30 -0
  21. data/app/components/ariadne/button_component.html.erb +1 -1
  22. data/app/components/ariadne/button_component.rb +9 -11
  23. data/app/components/ariadne/clipboard-copy-component.d.ts +4 -0
  24. data/app/components/ariadne/clipboard-copy-component.js +18 -0
  25. data/app/components/ariadne/{clipboard_copy_component.ts → clipboard-copy-component.ts} +0 -0
  26. data/app/components/ariadne/clipboard_copy_component.d.ts +4 -0
  27. data/app/components/ariadne/clipboard_copy_component.html.erb +2 -2
  28. data/app/components/ariadne/clipboard_copy_component.js +18 -0
  29. data/app/components/ariadne/clipboard_copy_component.rb +45 -5
  30. data/app/components/ariadne/comment_component.html.erb +25 -0
  31. data/app/components/ariadne/comment_component.rb +45 -0
  32. data/app/components/ariadne/component.rb +6 -1
  33. data/app/components/ariadne/container_component.html.erb +3 -0
  34. data/app/components/ariadne/container_component.rb +25 -0
  35. data/app/components/ariadne/flash_component.rb +9 -9
  36. data/app/components/ariadne/flex_component.rb +51 -0
  37. data/app/components/ariadne/footer_component.html.erb +7 -0
  38. data/app/components/ariadne/footer_component.rb +23 -0
  39. data/app/components/ariadne/grid_component.html.erb +26 -0
  40. data/app/components/ariadne/grid_component.rb +66 -0
  41. data/app/components/ariadne/header_component.html.erb +29 -0
  42. data/app/components/ariadne/header_component.rb +114 -0
  43. data/app/components/ariadne/heading_component.rb +3 -3
  44. data/app/components/ariadne/heroicon_component.html.erb +2 -5
  45. data/app/components/ariadne/heroicon_component.rb +20 -7
  46. data/app/components/ariadne/image_component.rb +5 -3
  47. data/app/components/ariadne/inline_flex_component.html.erb +5 -0
  48. data/app/components/ariadne/inline_flex_component.rb +65 -0
  49. data/app/components/ariadne/link_component.rb +65 -0
  50. data/app/components/ariadne/list_component.html.erb +15 -0
  51. data/app/components/ariadne/list_component.rb +67 -0
  52. data/app/components/ariadne/main_component.rb +32 -0
  53. data/app/components/ariadne/pill_component.html.erb +3 -0
  54. data/app/components/ariadne/pill_component.rb +30 -0
  55. data/app/components/ariadne/slideover-component.d.ts +9 -0
  56. data/app/components/ariadne/slideover-component.js +20 -0
  57. data/app/components/ariadne/slideover-component.ts +26 -0
  58. data/app/components/ariadne/slideover_component.d.ts +9 -0
  59. data/app/components/ariadne/slideover_component.html.erb +11 -0
  60. data/app/components/ariadne/slideover_component.js +19 -0
  61. data/app/components/ariadne/slideover_component.rb +81 -0
  62. data/app/components/ariadne/time_ago_component.d.ts +1 -0
  63. data/app/components/ariadne/time_ago_component.js +1 -0
  64. data/app/components/ariadne/time_ago_component.rb +56 -0
  65. data/app/components/ariadne/time_ago_component.ts +1 -0
  66. data/app/components/ariadne/timeline_component.html.erb +19 -0
  67. data/app/components/ariadne/timeline_component.rb +34 -0
  68. data/app/components/ariadne/tooltip-component.d.ts +24 -0
  69. data/app/components/ariadne/tooltip-component.js +42 -0
  70. data/app/components/ariadne/tooltip-component.ts +57 -0
  71. data/app/components/ariadne/tooltip_component.html.erb +4 -0
  72. data/app/components/ariadne/tooltip_component.rb +34 -31
  73. data/app/lib/ariadne/action_view_extensions/form_helper.rb +23 -0
  74. data/app/lib/ariadne/form_builder.rb +71 -0
  75. data/lib/ariadne/classify.rb +4 -90
  76. data/lib/ariadne/view_components/engine.rb +8 -0
  77. data/lib/ariadne/view_components/version.rb +1 -1
  78. data/lib/ariadne/view_components.rb +31 -29
  79. data/lib/rubocop/cop/ariadne/ariadne_heroicon.rb +2 -2
  80. data/lib/tasks/docs.rake +52 -58
  81. data/static/arguments.yml +290 -17
  82. data/static/audited_at.json +18 -0
  83. data/static/classes.yml +189 -1
  84. data/static/constants.json +173 -30
  85. data/static/statuses.json +18 -0
  86. metadata +77 -9
  87. data/app/assets/stylesheets/application.tailwind.css +0 -3
  88. data/lib/tasks/tailwind.rake +0 -31
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "Ariadne::BaseButton": {
3
3
  "DEFAULT_CLASSES": "inline-flex items-center px-4 py-2 text-sm border border-gray-300 shadow-sm text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",
4
- "DEFAULT_SIZE": "m",
4
+ "DEFAULT_SIZE": "md",
5
5
  "DEFAULT_TAG": "button",
6
6
  "DEFAULT_TYPE": "button",
7
7
  "SIZE_CLASS_MAPPINGS": {
8
8
  "xs": "inline-flex items-center px-2.5 py-1.5 text-xs font-medium rounded",
9
- "s": "inline-flex items-center px-3 py-2 text-sm leading-4 font-medium rounded-m",
10
- "m": "inline-flex items-center px-4 py-2 text-sm font-medium rounded-md",
11
- "l": "inline-flex items-center px-4 py-2 text-base font-medium rounded-md",
9
+ "sm": "inline-flex items-center px-3 py-2 text-sm leading-4 font-medium rounded-m",
10
+ "md": "inline-flex items-center px-4 py-2 text-sm font-medium rounded-md",
11
+ "lg": "inline-flex items-center px-4 py-2 text-base font-medium rounded-md",
12
12
  "xl": "inline-flex items-center px-6 py-3 text-base font-medium rounded-md"
13
13
  },
14
14
  "TAG_OPTIONS": [
@@ -21,11 +21,12 @@
21
21
  "reset",
22
22
  "submit"
23
23
  ],
24
+ "TYPE_SUBMIT": "submit",
24
25
  "VALID_SIZES": [
25
26
  "xs",
26
- "s",
27
- "m",
28
- "l",
27
+ "sm",
28
+ "md",
29
+ "lg",
29
30
  "xl"
30
31
  ]
31
32
  },
@@ -47,11 +48,23 @@
47
48
  "wbr"
48
49
  ]
49
50
  },
51
+ "Ariadne::BlankslateComponent": {
52
+ "DEFAULT_CLASSES": "max-w-7xl mx-auto text-center py-12 px-4 sm:px-6 lg:py-16 lg:px-8",
53
+ "DEFAULT_HEADING_CLASSES": "text-3xl font-extrabold tracking-tight text-gray-900 sm:text-4xl",
54
+ "DEFAULT_IMAGE_SIZE": 56,
55
+ "DEFAULT_TAG": "div",
56
+ "TAG_OPTIONS": [
57
+ "div"
58
+ ]
59
+ },
60
+ "Ariadne::BodyComponent": {
61
+ "DEFAULT_CLASSES": "flex flex-col min-h-screen"
62
+ },
50
63
  "Ariadne::ButtonComponent": {
51
64
  "DEFAULT_SCHEME": "default",
52
65
  "LINK_SCHEME": "link",
53
66
  "SCHEME_CLASS_MAPPINGS": {
54
- "default": "text-blue-800 bg-blue-50 hover:bg-blue-100 border-blue-300 focus:ring-offset-blue-50 focus:ring-blue-600",
67
+ "default": "text-purple-800 bg-purple-50 hover:bg-purple-100 border-purple-300 focus:ring-offset-purple-50 focus:ring-purple-600",
55
68
  "info": "text-blue-800 bg-blue-50 hover:bg-blue-100 border-blue-300 focus:ring-offset-blue-50 focus:ring-blue-600",
56
69
  "success": "text-green-800 bg-green-50 hover:bg-green-100 border-green-300 focus:ring-offset-green-50 focus:ring-green-600",
57
70
  "warning": "text-yellow-800 bg-yellow-50 hover:bg-yellow-100 border-yellow-300 focus:ring-offset-yellow-50 focus:ring-yellow-600",
@@ -66,10 +79,31 @@
66
79
  ]
67
80
  },
68
81
  "Ariadne::ClipboardCopyComponent": {
69
- "DATA_ACTION": "click->clipboard_copy_component#copy",
70
- "DATA_CONTROLLER": "clipboard_copy_component",
82
+ "DATA_ACTION": "click->clipboard-copy-component#copy",
83
+ "DATA_CONTROLLER": "clipboard-copy-component",
84
+ "DATA_CONTROLLERS": {
85
+ "data-controller": "clipboard-copy-component",
86
+ "data-action": "click->clipboard-copy-component#copy"
87
+ },
88
+ "DATA_CONTROLLERS_WITH_TOOLTIPS": {
89
+ "data-controller": "clipboard-copy-component tooltip-component",
90
+ "data-action": "click->clipboard-copy-component#copy mouseover->tooltip-component#show mouseout->tooltip-component#hide",
91
+ "data-tooltip-component-target": "trigger"
92
+ },
93
+ "DEFAULT_CLASSES": " cursor-pointer underline decoration-double font-semibold hover:text-button-text-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
71
94
  "DEFAULT_TAG": "clipboard-copy"
72
95
  },
96
+ "Ariadne::CommentComponent": {
97
+ "DEFAULT_CLASSES": "",
98
+ "DEFAULT_TAB_CLASSES": "text-gray-500 hover:text-gray-900 bg-white hover:bg-gray-100 px-3 py-1.5 border border-transparent text-sm font-medium rounded-md",
99
+ "DEFAULT_TAG": "form",
100
+ "TAG_OPTIONS": [
101
+ "form"
102
+ ]
103
+ },
104
+ "Ariadne::ContainerComponent": {
105
+ "DEFAULT_CLASSES": "px-4 sm:px-6 lg:px-8"
106
+ },
73
107
  "Ariadne::Content": {
74
108
  },
75
109
  "Ariadne::CounterComponent": {
@@ -120,6 +154,41 @@
120
154
  "danger"
121
155
  ]
122
156
  },
157
+ "Ariadne::FlexComponent": {
158
+ "DEFAULT_CLASSES": "flex",
159
+ "DEFAULT_TAG": "div",
160
+ "TAG_OPTIONS": [
161
+ "div"
162
+ ],
163
+ "VALID_TYPES": [
164
+ "row",
165
+ "column",
166
+ "row_reverse",
167
+ "column_reverse"
168
+ ]
169
+ },
170
+ "Ariadne::FooterComponent": {
171
+ "DEFAULT_CLASSES": "py-5"
172
+ },
173
+ "Ariadne::GridComponent": {
174
+ "DEFAULT_CLASSES": "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",
175
+ "DEFAULT_LINK_COLOR_CLASSES": "text-button-text-color bg-button-bg-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
176
+ "Item": "Ariadne::GridComponent::Item"
177
+ },
178
+ "Ariadne::GridComponent::Item": {
179
+ "DEFAULT_ACTION_LINK_CLASSES": "text-button-text-color relative -mr-px w-0 flex-1 inline-flex items-center justify-center py-4 text-sm font-medium border border-transparent rounded-bl-lg rounded-lg",
180
+ "DEFAULT_ENTRY_CLASSES": "group flex-1 flex flex-col p-8 hover:bg-button-hover-color hover:text-gray-500 rounded-lg",
181
+ "DEFAULT_ITEM_CLASSES": "flex flex-col text-center rounded-lg shadow my-4 text-black-700 border-black"
182
+ },
183
+ "Ariadne::HeaderComponent": {
184
+ "DEFAULT_CLASSES": "sticky top-0 z-50 px-4 py-5 bg-white shadow-sm shadow-slate-900/5 transition duration-500",
185
+ "DEFAULT_IMAGE_LOGO_CLASSES": "h-10 w-auto",
186
+ "DEFAULT_NAV_LINK_CLASSES": "inline-block rounded-lg py-1 px-2 text-sm text-slate-700 hover:bg-slate-100 hover:text-slate-900",
187
+ "DEFAULT_PROFILE_LINK_CLASSES": "group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
188
+ "DEFAULT_SIGNUP_LINK_CLASSES": "group inline-flex items-center justify-center rounded-full py-2 px-4 text-sm font-semibold focus:outline-none focus-visible:outline-2 focus-visible:outline-offset-2",
189
+ "DEFAULT_TEXT_LOGO_CLASSES": "flex items-center font-bold text-xl",
190
+ "LINK_CLASSES": "rounded-lg py-1 px-2 text-slate-700 hover:bg-slate-100 hover:text-slate-900"
191
+ },
123
192
  "Ariadne::HeadingComponent": {
124
193
  "TAG_OPTIONS": [
125
194
  "h1",
@@ -130,12 +199,13 @@
130
199
  "h6"
131
200
  ],
132
201
  "TAG_TO_CLASSES": {
133
- "h1": "font-bold leading-7 sm:text-3xl sm:truncate",
134
- "h2": "text-3xl font-extrabold text-gray-900",
135
- "h3": "text-2xl font-extrabold text-gray-900"
202
+ "h1": "font-bold leading-7 sm:text-3xl",
203
+ "h2": "text-3xl font-extrabold",
204
+ "h3": "text-2xl font-extrabold"
136
205
  }
137
206
  },
138
207
  "Ariadne::HeroiconComponent": {
208
+ "DEFAULT_TEXT_CLASSES": "pl-2",
139
209
  "PRELOADED_ICONS": [
140
210
  {
141
211
  "name": "bell",
@@ -177,6 +247,10 @@
177
247
  "name": "mail",
178
248
  "variant": "outline"
179
249
  },
250
+ {
251
+ "name": "menu",
252
+ "variant": "outline"
253
+ },
180
254
  {
181
255
  "name": "pencil",
182
256
  "variant": "outline"
@@ -206,38 +280,107 @@
206
280
  "variant": "outline"
207
281
  }
208
282
  ],
209
- "SIZE_DEFAULT": "small",
283
+ "SIZE_DEFAULT": "sm",
284
+ "SIZE_LARGE": "lg",
210
285
  "SIZE_MAPPINGS": {
211
- "small": 16,
212
- "medium": 24
286
+ "sm": 16,
287
+ "md": 24,
288
+ "lg": 128
213
289
  },
214
- "SIZE_MEDIUM": "medium",
290
+ "SIZE_MEDIUM": "md",
215
291
  "SIZE_OPTIONS": [
216
- "small",
217
- "medium"
292
+ "sm",
293
+ "md",
294
+ "lg"
218
295
  ]
219
296
  },
220
297
  "Ariadne::ImageComponent": {
298
+ "DEFAULT_TAG": "img"
299
+ },
300
+ "Ariadne::InlineFlexComponent": {
301
+ "DEFAULT_CLASSES": "inline-flex items-baseline",
302
+ "DEFAULT_LABEL_CLASSES": "pl-2 text-sm font-medium text-gray-900",
303
+ "DEFAULT_TAG": "span",
304
+ "DEFAULT_TEXT_CLASSES": "pl-2 text-sm font-medium text-gray-900",
305
+ "DEFAULT_TEXT_CLOSED_CLASSES": "text-state-closed",
306
+ "DEFAULT_TEXT_OPEN_CLASSES": "text-state-open",
307
+ "STATE_CLOSED_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"stroke-state-closed 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",
308
+ "STATE_OPEN_SVG": "<svg viewBox=\"0 0 24 24\" width=\"12\" height=\"12\" class=\"stroke-state-open\" 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",
309
+ "STATE_OPTIONS": [
310
+ "closed",
311
+ "open"
312
+ ]
313
+ },
314
+ "Ariadne::LinkComponent": {
315
+ "DEFAULT_ACTIONABLE_CLASSES": " cursor-pointer underline decoration-double font-semibold hover:text-button-text-color focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-purple-500",
316
+ "DEFAULT_CLASSES": "cursor-pointer",
317
+ "DEFAULT_TAG": "a",
318
+ "TAG_OPTIONS": [
319
+ "a",
320
+ "span"
321
+ ]
322
+ },
323
+ "Ariadne::ListComponent": {
324
+ "DEFAULT_UL_CLASSES": "divide-y divide-gray-300",
325
+ "Item": "Ariadne::ListComponent::Item"
326
+ },
327
+ "Ariadne::ListComponent::Item": {
328
+ "DEFAULT_ITEM_CLASSES": "relative p-1.5 focus:ring-2 focus:ring-offset-2 focus:ring-purple-500 hover:bg-button-hover-color"
329
+ },
330
+ "Ariadne::MainComponent": {
331
+ "DEFAULT_CLASSES": "flex-auto"
332
+ },
333
+ "Ariadne::PillComponent": {
334
+ "DEFAULT_CLASSES": "flex-shrink-0 inline-block px-2 py-0.5 text-xs font-medium rounded-full",
335
+ "DEFAULT_TAG": "span",
336
+ "TAG_OPTIONS": [
337
+ "span"
338
+ ]
339
+ },
340
+ "Ariadne::SlideoverComponent": {
341
+ "DEFAULT_BUTTON_CLASSES": "inline-flex items-center shadow-sm px-4 py-1.5 pb-2 text-sm leading-5 font-medium rounded-full text-purple-800 bg-purple-50 hover:bg-purple-100 border-purple-300 focus:ring-offset-purple-50 focus:ring-purple-600",
342
+ "DEFAULT_CLASSES": "",
343
+ "DEFAULT_TAG": "div",
344
+ "DIRECTION_X_LEFT": "xl",
345
+ "DIRECTION_Y_DOWN": "yd",
346
+ "TAG_OPTIONS": [
347
+ "div"
348
+ ],
349
+ "VALID_DIRECTIONS": [
350
+ "yd",
351
+ "xl"
352
+ ]
221
353
  },
222
354
  "Ariadne::Text": {
223
355
  "DEFAULT_TAG": "span"
224
356
  },
357
+ "Ariadne::TimeAgoComponent": {
358
+ "DEFAULT_CLASSES": "whitespace-nowrap",
359
+ "DEFAULT_TAG": "time-ago",
360
+ "TAG_OPTIONS": [
361
+ "time-ago"
362
+ ]
363
+ },
364
+ "Ariadne::TimelineComponent": {
365
+ "DEFAULT_CLASSES": "",
366
+ "DEFAULT_TAG": "div"
367
+ },
225
368
  "Ariadne::TooltipComponent": {
226
- "DIRECTION_DEFAULT": "s",
227
- "DIRECTION_OPTIONS": [
228
- "s",
229
- "n",
230
- "e",
231
- "w",
232
- "ne",
233
- "nw",
234
- "se",
235
- "sw"
236
- ],
369
+ "DATA_ACTION": "mouseover->tooltip-component#show mouseout->tooltip-component#hide",
370
+ "DATA_CONTROLLER": "tooltip-component",
371
+ "DEFAULT_CLASSES": "invisible absolute bg-slate-900 text-white font-semibold max-w-xs py-1 px-2 rounded z-max",
372
+ "DEFAULT_PLACEMENT": "top",
373
+ "DEFAULT_TAG": "tooltip",
237
374
  "TYPE_DEFAULT": "description",
238
375
  "TYPE_OPTIONS": [
239
376
  "label",
240
377
  "description"
378
+ ],
379
+ "VALID_PLACEMENTS": [
380
+ "top",
381
+ "right",
382
+ "bottom",
383
+ "left"
241
384
  ]
242
385
  }
243
386
  }
data/static/statuses.json CHANGED
@@ -1,14 +1,32 @@
1
1
  {
2
2
  "Ariadne::BaseButton": "stable",
3
3
  "Ariadne::BaseComponent": "stable",
4
+ "Ariadne::BlankslateComponent": "stable",
5
+ "Ariadne::BodyComponent": "stable",
4
6
  "Ariadne::ButtonComponent": "stable",
5
7
  "Ariadne::ClipboardCopyComponent": "stable",
8
+ "Ariadne::CommentComponent": "stable",
9
+ "Ariadne::ContainerComponent": "stable",
6
10
  "Ariadne::Content": "stable",
7
11
  "Ariadne::CounterComponent": "stable",
8
12
  "Ariadne::FlashComponent": "stable",
13
+ "Ariadne::FlexComponent": "stable",
14
+ "Ariadne::FooterComponent": "stable",
15
+ "Ariadne::GridComponent": "stable",
16
+ "Ariadne::GridComponent::Item": "stable",
17
+ "Ariadne::HeaderComponent": "stable",
9
18
  "Ariadne::HeadingComponent": "stable",
10
19
  "Ariadne::HeroiconComponent": "stable",
11
20
  "Ariadne::ImageComponent": "stable",
21
+ "Ariadne::InlineFlexComponent": "stable",
22
+ "Ariadne::LinkComponent": "stable",
23
+ "Ariadne::ListComponent": "stable",
24
+ "Ariadne::ListComponent::Item": "stable",
25
+ "Ariadne::MainComponent": "stable",
26
+ "Ariadne::PillComponent": "stable",
27
+ "Ariadne::SlideoverComponent": "stable",
12
28
  "Ariadne::Text": "stable",
29
+ "Ariadne::TimeAgoComponent": "stable",
30
+ "Ariadne::TimelineComponent": "stable",
13
31
  "Ariadne::TooltipComponent": "stable"
14
32
  }
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ariadne_view_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen J. Torikian
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2022-08-17 00:00:00.000000000 Z
12
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'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: actionview
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +98,7 @@ dependencies:
84
98
  - - "<"
85
99
  - !ruby/object:Gem::Version
86
100
  version: '3.0'
87
- description:
101
+ description:
88
102
  email:
89
103
  - gjtorikian@yettoapp.com
90
104
  executables: []
@@ -93,31 +107,86 @@ extra_rdoc_files: []
93
107
  files:
94
108
  - LICENSE.txt
95
109
  - README.md
110
+ - app/assets/builds/ariadne_view_components.css
111
+ - app/assets/config/manifest.js
112
+ - app/assets/javascripts/ariadne.d.ts
96
113
  - app/assets/javascripts/ariadne_view_components.js
97
114
  - app/assets/javascripts/ariadne_view_components.js.map
98
- - app/assets/stylesheets/application.tailwind.css
115
+ - app/assets/javascripts/clipboard-copy-component.d.ts
116
+ - app/assets/javascripts/slideover-component.d.ts
117
+ - app/assets/javascripts/time_ago_component.d.ts
118
+ - app/assets/javascripts/tooltip-component.d.ts
119
+ - app/assets/stylesheets/application.ariadne_view_components.css
120
+ - app/assets/stylesheets/tooltip-component.css
121
+ - app/components/ariadne/ariadne.d.ts
122
+ - app/components/ariadne/ariadne.js
99
123
  - app/components/ariadne/ariadne.ts
100
124
  - app/components/ariadne/base_button.rb
101
125
  - app/components/ariadne/base_component.rb
126
+ - app/components/ariadne/blankslate_component.html.erb
127
+ - app/components/ariadne/blankslate_component.rb
128
+ - app/components/ariadne/body_component.rb
102
129
  - app/components/ariadne/button_component.html.erb
103
130
  - app/components/ariadne/button_component.rb
131
+ - app/components/ariadne/clipboard-copy-component.d.ts
132
+ - app/components/ariadne/clipboard-copy-component.js
133
+ - app/components/ariadne/clipboard-copy-component.ts
134
+ - app/components/ariadne/clipboard_copy_component.d.ts
104
135
  - app/components/ariadne/clipboard_copy_component.html.erb
136
+ - app/components/ariadne/clipboard_copy_component.js
105
137
  - app/components/ariadne/clipboard_copy_component.rb
106
- - app/components/ariadne/clipboard_copy_component.ts
138
+ - app/components/ariadne/comment_component.html.erb
139
+ - app/components/ariadne/comment_component.rb
107
140
  - app/components/ariadne/component.rb
141
+ - app/components/ariadne/container_component.html.erb
142
+ - app/components/ariadne/container_component.rb
108
143
  - app/components/ariadne/content.rb
109
144
  - app/components/ariadne/counter_component.rb
110
145
  - app/components/ariadne/flash_component.html.erb
111
146
  - app/components/ariadne/flash_component.rb
147
+ - app/components/ariadne/flex_component.rb
148
+ - app/components/ariadne/footer_component.html.erb
149
+ - app/components/ariadne/footer_component.rb
150
+ - app/components/ariadne/grid_component.html.erb
151
+ - app/components/ariadne/grid_component.rb
152
+ - app/components/ariadne/header_component.html.erb
153
+ - app/components/ariadne/header_component.rb
112
154
  - app/components/ariadne/heading_component.rb
113
155
  - app/components/ariadne/heroicon_component.html.erb
114
156
  - app/components/ariadne/heroicon_component.rb
115
157
  - app/components/ariadne/image_component.rb
158
+ - app/components/ariadne/inline_flex_component.html.erb
159
+ - app/components/ariadne/inline_flex_component.rb
160
+ - app/components/ariadne/link_component.rb
161
+ - app/components/ariadne/list_component.html.erb
162
+ - app/components/ariadne/list_component.rb
163
+ - app/components/ariadne/main_component.rb
164
+ - app/components/ariadne/pill_component.html.erb
165
+ - app/components/ariadne/pill_component.rb
166
+ - app/components/ariadne/slideover-component.d.ts
167
+ - app/components/ariadne/slideover-component.js
168
+ - app/components/ariadne/slideover-component.ts
169
+ - app/components/ariadne/slideover_component.d.ts
170
+ - app/components/ariadne/slideover_component.html.erb
171
+ - app/components/ariadne/slideover_component.js
172
+ - app/components/ariadne/slideover_component.rb
116
173
  - app/components/ariadne/text.rb
174
+ - app/components/ariadne/time_ago_component.d.ts
175
+ - app/components/ariadne/time_ago_component.js
176
+ - app/components/ariadne/time_ago_component.rb
177
+ - app/components/ariadne/time_ago_component.ts
178
+ - app/components/ariadne/timeline_component.html.erb
179
+ - app/components/ariadne/timeline_component.rb
180
+ - app/components/ariadne/tooltip-component.d.ts
181
+ - app/components/ariadne/tooltip-component.js
182
+ - app/components/ariadne/tooltip-component.ts
183
+ - app/components/ariadne/tooltip_component.html.erb
117
184
  - app/components/ariadne/tooltip_component.rb
185
+ - app/lib/ariadne/action_view_extensions/form_helper.rb
118
186
  - app/lib/ariadne/audited/dsl.rb
119
187
  - app/lib/ariadne/class_name_helper.rb
120
188
  - app/lib/ariadne/fetch_or_fallback_helper.rb
189
+ - app/lib/ariadne/form_builder.rb
121
190
  - app/lib/ariadne/icon_helper.rb
122
191
  - app/lib/ariadne/join_style_arguments_helper.rb
123
192
  - app/lib/ariadne/logger_helper.rb
@@ -151,7 +220,6 @@ files:
151
220
  - lib/tasks/helpers/ast_processor.rb
152
221
  - lib/tasks/helpers/ast_traverser.rb
153
222
  - lib/tasks/static.rake
154
- - lib/tasks/tailwind.rake
155
223
  - lib/tasks/utilities.rake
156
224
  - lib/yard/docs_helper.rb
157
225
  - lib/yard/renders_many_handler.rb
@@ -168,7 +236,7 @@ licenses:
168
236
  - MIT
169
237
  metadata:
170
238
  allowed_push_host: https://rubygems.org
171
- post_install_message:
239
+ post_install_message:
172
240
  rdoc_options: []
173
241
  require_paths:
174
242
  - lib
@@ -187,7 +255,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
255
  version: '0'
188
256
  requirements: []
189
257
  rubygems_version: 3.3.7
190
- signing_key:
258
+ signing_key:
191
259
  specification_version: 4
192
260
  summary: ViewComponents for the Ariadne Design System
193
261
  test_files: []
@@ -1,3 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # "Hacks, but they work" ™
4
- if !defined?(Rails) || ENV.fetch("DOCS_BUILD", false).blank?
5
-
6
- # Spoof the Rails environment
7
- module Rails
8
- def self.root
9
- Pathname.new(File.join(File.dirname(__FILE__), "..", ".."))
10
- end
11
- end
12
-
13
- rule "" do |t|
14
- task_name = t.name
15
- if task_name == "assets:precompile"
16
- puts "Stubbing non-existent #{task_name}"
17
- else
18
- raise "No task named #{task_name}"
19
- end
20
- end
21
- end
22
-
23
- spec = Gem::Specification.find_by_name("tailwindcss-rails")
24
- load "#{spec.gem_dir}/lib/tasks/build.rake"
25
-
26
- Rake::Task["tailwindcss:build"].enhance do
27
- if File.exist?("app/assets/builds/tailwind.css")
28
- puts "Renaming tailwind.css to ariadne_view_components.css..."
29
- File.rename("app/assets/builds/tailwind.css", "app/assets/builds/ariadne_view_components.css")
30
- end
31
- end