coveragebook_components 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1153) hide show
  1. checksums.yaml +7 -0
  2. data/app/assets/build/coco/app.css +3427 -0
  3. data/app/assets/build/coco/app.dev.css +3427 -0
  4. data/app/assets/build/coco/app.dev.js +24891 -0
  5. data/app/assets/build/coco/app.js +24871 -0
  6. data/app/assets/build/coco/book.css +992 -0
  7. data/app/assets/build/coco/book.dev.css +992 -0
  8. data/app/assets/build/coco/book.dev.js +19840 -0
  9. data/app/assets/build/coco/book.js +19840 -0
  10. data/app/assets/build/coco/icons/accessibility.svg +1 -0
  11. data/app/assets/build/coco/icons/activity.svg +1 -0
  12. data/app/assets/build/coco/icons/air-vent.svg +1 -0
  13. data/app/assets/build/coco/icons/airplay.svg +1 -0
  14. data/app/assets/build/coco/icons/alarm-check.svg +1 -0
  15. data/app/assets/build/coco/icons/alarm-clock-off.svg +1 -0
  16. data/app/assets/build/coco/icons/alarm-clock.svg +1 -0
  17. data/app/assets/build/coco/icons/alarm-minus.svg +1 -0
  18. data/app/assets/build/coco/icons/alarm-plus.svg +1 -0
  19. data/app/assets/build/coco/icons/album.svg +1 -0
  20. data/app/assets/build/coco/icons/alert-circle.svg +1 -0
  21. data/app/assets/build/coco/icons/alert-octagon.svg +1 -0
  22. data/app/assets/build/coco/icons/alert-triangle.svg +1 -0
  23. data/app/assets/build/coco/icons/align-center-horizontal.svg +1 -0
  24. data/app/assets/build/coco/icons/align-center-vertical.svg +1 -0
  25. data/app/assets/build/coco/icons/align-center.svg +1 -0
  26. data/app/assets/build/coco/icons/align-end-horizontal.svg +1 -0
  27. data/app/assets/build/coco/icons/align-end-vertical.svg +1 -0
  28. data/app/assets/build/coco/icons/align-horizontal-distribute-center.svg +1 -0
  29. data/app/assets/build/coco/icons/align-horizontal-distribute-end.svg +1 -0
  30. data/app/assets/build/coco/icons/align-horizontal-distribute-start.svg +1 -0
  31. data/app/assets/build/coco/icons/align-horizontal-justify-center.svg +1 -0
  32. data/app/assets/build/coco/icons/align-horizontal-justify-end.svg +1 -0
  33. data/app/assets/build/coco/icons/align-horizontal-justify-start.svg +1 -0
  34. data/app/assets/build/coco/icons/align-horizontal-space-around.svg +1 -0
  35. data/app/assets/build/coco/icons/align-horizontal-space-between.svg +1 -0
  36. data/app/assets/build/coco/icons/align-justify.svg +1 -0
  37. data/app/assets/build/coco/icons/align-left.svg +1 -0
  38. data/app/assets/build/coco/icons/align-right.svg +1 -0
  39. data/app/assets/build/coco/icons/align-start-horizontal.svg +1 -0
  40. data/app/assets/build/coco/icons/align-start-vertical.svg +1 -0
  41. data/app/assets/build/coco/icons/align-vertical-distribute-center.svg +1 -0
  42. data/app/assets/build/coco/icons/align-vertical-distribute-end.svg +1 -0
  43. data/app/assets/build/coco/icons/align-vertical-distribute-start.svg +1 -0
  44. data/app/assets/build/coco/icons/align-vertical-justify-center.svg +1 -0
  45. data/app/assets/build/coco/icons/align-vertical-justify-end.svg +1 -0
  46. data/app/assets/build/coco/icons/align-vertical-justify-start.svg +1 -0
  47. data/app/assets/build/coco/icons/align-vertical-space-around.svg +1 -0
  48. data/app/assets/build/coco/icons/align-vertical-space-between.svg +1 -0
  49. data/app/assets/build/coco/icons/anchor.svg +1 -0
  50. data/app/assets/build/coco/icons/angry.svg +1 -0
  51. data/app/assets/build/coco/icons/annoyed.svg +1 -0
  52. data/app/assets/build/coco/icons/aperture.svg +1 -0
  53. data/app/assets/build/coco/icons/apple.svg +1 -0
  54. data/app/assets/build/coco/icons/archive-restore.svg +1 -0
  55. data/app/assets/build/coco/icons/archive.svg +1 -0
  56. data/app/assets/build/coco/icons/armchair.svg +1 -0
  57. data/app/assets/build/coco/icons/arrow-big-down.svg +1 -0
  58. data/app/assets/build/coco/icons/arrow-big-left.svg +1 -0
  59. data/app/assets/build/coco/icons/arrow-big-right.svg +1 -0
  60. data/app/assets/build/coco/icons/arrow-big-up.svg +1 -0
  61. data/app/assets/build/coco/icons/arrow-down-circle.svg +1 -0
  62. data/app/assets/build/coco/icons/arrow-down-left.svg +1 -0
  63. data/app/assets/build/coco/icons/arrow-down-right.svg +1 -0
  64. data/app/assets/build/coco/icons/arrow-down.svg +1 -0
  65. data/app/assets/build/coco/icons/arrow-left-circle.svg +1 -0
  66. data/app/assets/build/coco/icons/arrow-left-right.svg +1 -0
  67. data/app/assets/build/coco/icons/arrow-left.svg +1 -0
  68. data/app/assets/build/coco/icons/arrow-right-circle.svg +1 -0
  69. data/app/assets/build/coco/icons/arrow-right.svg +1 -0
  70. data/app/assets/build/coco/icons/arrow-up-circle.svg +1 -0
  71. data/app/assets/build/coco/icons/arrow-up-down.svg +1 -0
  72. data/app/assets/build/coco/icons/arrow-up-left.svg +1 -0
  73. data/app/assets/build/coco/icons/arrow-up-right.svg +1 -0
  74. data/app/assets/build/coco/icons/arrow-up.svg +1 -0
  75. data/app/assets/build/coco/icons/asterisk.svg +1 -0
  76. data/app/assets/build/coco/icons/at-sign.svg +1 -0
  77. data/app/assets/build/coco/icons/award.svg +1 -0
  78. data/app/assets/build/coco/icons/axe.svg +1 -0
  79. data/app/assets/build/coco/icons/axis-3d.svg +1 -0
  80. data/app/assets/build/coco/icons/baby.svg +1 -0
  81. data/app/assets/build/coco/icons/backpack.svg +1 -0
  82. data/app/assets/build/coco/icons/baggage-claim.svg +1 -0
  83. data/app/assets/build/coco/icons/banana.svg +1 -0
  84. data/app/assets/build/coco/icons/banknote.svg +1 -0
  85. data/app/assets/build/coco/icons/bar-chart-2.svg +1 -0
  86. data/app/assets/build/coco/icons/bar-chart-3.svg +1 -0
  87. data/app/assets/build/coco/icons/bar-chart-4.svg +1 -0
  88. data/app/assets/build/coco/icons/bar-chart-horizontal.svg +1 -0
  89. data/app/assets/build/coco/icons/bar-chart.svg +1 -0
  90. data/app/assets/build/coco/icons/baseline.svg +1 -0
  91. data/app/assets/build/coco/icons/bath.svg +1 -0
  92. data/app/assets/build/coco/icons/battery-charging.svg +1 -0
  93. data/app/assets/build/coco/icons/battery-full.svg +1 -0
  94. data/app/assets/build/coco/icons/battery-low.svg +1 -0
  95. data/app/assets/build/coco/icons/battery-medium.svg +1 -0
  96. data/app/assets/build/coco/icons/battery-warning.svg +1 -0
  97. data/app/assets/build/coco/icons/battery.svg +1 -0
  98. data/app/assets/build/coco/icons/beaker.svg +1 -0
  99. data/app/assets/build/coco/icons/bean-off.svg +1 -0
  100. data/app/assets/build/coco/icons/bean.svg +1 -0
  101. data/app/assets/build/coco/icons/bed-double.svg +1 -0
  102. data/app/assets/build/coco/icons/bed-single.svg +1 -0
  103. data/app/assets/build/coco/icons/bed.svg +1 -0
  104. data/app/assets/build/coco/icons/beef.svg +1 -0
  105. data/app/assets/build/coco/icons/beer.svg +1 -0
  106. data/app/assets/build/coco/icons/bell-minus.svg +1 -0
  107. data/app/assets/build/coco/icons/bell-off.svg +1 -0
  108. data/app/assets/build/coco/icons/bell-plus.svg +1 -0
  109. data/app/assets/build/coco/icons/bell-ring.svg +1 -0
  110. data/app/assets/build/coco/icons/bell.svg +1 -0
  111. data/app/assets/build/coco/icons/bike.svg +1 -0
  112. data/app/assets/build/coco/icons/binary.svg +1 -0
  113. data/app/assets/build/coco/icons/bitcoin.svg +1 -0
  114. data/app/assets/build/coco/icons/bluetooth-connected.svg +1 -0
  115. data/app/assets/build/coco/icons/bluetooth-off.svg +1 -0
  116. data/app/assets/build/coco/icons/bluetooth-searching.svg +1 -0
  117. data/app/assets/build/coco/icons/bluetooth.svg +1 -0
  118. data/app/assets/build/coco/icons/bold.svg +1 -0
  119. data/app/assets/build/coco/icons/bomb.svg +1 -0
  120. data/app/assets/build/coco/icons/bone.svg +1 -0
  121. data/app/assets/build/coco/icons/book-open-check.svg +1 -0
  122. data/app/assets/build/coco/icons/book-open.svg +1 -0
  123. data/app/assets/build/coco/icons/book.svg +1 -0
  124. data/app/assets/build/coco/icons/bookmark-minus.svg +1 -0
  125. data/app/assets/build/coco/icons/bookmark-plus.svg +1 -0
  126. data/app/assets/build/coco/icons/bookmark.svg +1 -0
  127. data/app/assets/build/coco/icons/bot.svg +1 -0
  128. data/app/assets/build/coco/icons/box-select.svg +1 -0
  129. data/app/assets/build/coco/icons/box.svg +1 -0
  130. data/app/assets/build/coco/icons/boxes.svg +1 -0
  131. data/app/assets/build/coco/icons/briefcase.svg +1 -0
  132. data/app/assets/build/coco/icons/brush.svg +1 -0
  133. data/app/assets/build/coco/icons/bug.svg +1 -0
  134. data/app/assets/build/coco/icons/building-2.svg +1 -0
  135. data/app/assets/build/coco/icons/building.svg +1 -0
  136. data/app/assets/build/coco/icons/bus.svg +1 -0
  137. data/app/assets/build/coco/icons/cake.svg +1 -0
  138. data/app/assets/build/coco/icons/calculator.svg +1 -0
  139. data/app/assets/build/coco/icons/calendar-check-2.svg +1 -0
  140. data/app/assets/build/coco/icons/calendar-check.svg +1 -0
  141. data/app/assets/build/coco/icons/calendar-clock.svg +1 -0
  142. data/app/assets/build/coco/icons/calendar-days.svg +1 -0
  143. data/app/assets/build/coco/icons/calendar-heart.svg +1 -0
  144. data/app/assets/build/coco/icons/calendar-minus.svg +1 -0
  145. data/app/assets/build/coco/icons/calendar-off.svg +1 -0
  146. data/app/assets/build/coco/icons/calendar-plus.svg +1 -0
  147. data/app/assets/build/coco/icons/calendar-range.svg +1 -0
  148. data/app/assets/build/coco/icons/calendar-search.svg +1 -0
  149. data/app/assets/build/coco/icons/calendar-x-2.svg +1 -0
  150. data/app/assets/build/coco/icons/calendar-x.svg +1 -0
  151. data/app/assets/build/coco/icons/calendar.svg +1 -0
  152. data/app/assets/build/coco/icons/camera-off.svg +1 -0
  153. data/app/assets/build/coco/icons/camera.svg +1 -0
  154. data/app/assets/build/coco/icons/candy-off.svg +1 -0
  155. data/app/assets/build/coco/icons/candy.svg +1 -0
  156. data/app/assets/build/coco/icons/car.svg +1 -0
  157. data/app/assets/build/coco/icons/carrot.svg +1 -0
  158. data/app/assets/build/coco/icons/cast.svg +1 -0
  159. data/app/assets/build/coco/icons/cat.svg +1 -0
  160. data/app/assets/build/coco/icons/check-check.svg +1 -0
  161. data/app/assets/build/coco/icons/check-circle-2.svg +1 -0
  162. data/app/assets/build/coco/icons/check-circle.svg +1 -0
  163. data/app/assets/build/coco/icons/check-square.svg +1 -0
  164. data/app/assets/build/coco/icons/check.svg +1 -0
  165. data/app/assets/build/coco/icons/chef-hat.svg +1 -0
  166. data/app/assets/build/coco/icons/cherry.svg +1 -0
  167. data/app/assets/build/coco/icons/chevron-down.svg +1 -0
  168. data/app/assets/build/coco/icons/chevron-first.svg +1 -0
  169. data/app/assets/build/coco/icons/chevron-last.svg +1 -0
  170. data/app/assets/build/coco/icons/chevron-left.svg +1 -0
  171. data/app/assets/build/coco/icons/chevron-right.svg +1 -0
  172. data/app/assets/build/coco/icons/chevron-up.svg +1 -0
  173. data/app/assets/build/coco/icons/chevrons-down-up.svg +1 -0
  174. data/app/assets/build/coco/icons/chevrons-down.svg +1 -0
  175. data/app/assets/build/coco/icons/chevrons-left-right.svg +1 -0
  176. data/app/assets/build/coco/icons/chevrons-left.svg +1 -0
  177. data/app/assets/build/coco/icons/chevrons-right-left.svg +1 -0
  178. data/app/assets/build/coco/icons/chevrons-right.svg +1 -0
  179. data/app/assets/build/coco/icons/chevrons-up-down.svg +1 -0
  180. data/app/assets/build/coco/icons/chevrons-up.svg +1 -0
  181. data/app/assets/build/coco/icons/chrome.svg +1 -0
  182. data/app/assets/build/coco/icons/cigarette-off.svg +1 -0
  183. data/app/assets/build/coco/icons/cigarette.svg +1 -0
  184. data/app/assets/build/coco/icons/circle-dot.svg +1 -0
  185. data/app/assets/build/coco/icons/circle-ellipsis.svg +1 -0
  186. data/app/assets/build/coco/icons/circle-slashed.svg +1 -0
  187. data/app/assets/build/coco/icons/circle.svg +1 -0
  188. data/app/assets/build/coco/icons/citrus.svg +1 -0
  189. data/app/assets/build/coco/icons/clapperboard.svg +1 -0
  190. data/app/assets/build/coco/icons/clipboard-check.svg +1 -0
  191. data/app/assets/build/coco/icons/clipboard-copy.svg +1 -0
  192. data/app/assets/build/coco/icons/clipboard-edit.svg +1 -0
  193. data/app/assets/build/coco/icons/clipboard-list.svg +1 -0
  194. data/app/assets/build/coco/icons/clipboard-signature.svg +1 -0
  195. data/app/assets/build/coco/icons/clipboard-type.svg +1 -0
  196. data/app/assets/build/coco/icons/clipboard-x.svg +1 -0
  197. data/app/assets/build/coco/icons/clipboard.svg +1 -0
  198. data/app/assets/build/coco/icons/clock-1.svg +1 -0
  199. data/app/assets/build/coco/icons/clock-10.svg +1 -0
  200. data/app/assets/build/coco/icons/clock-11.svg +1 -0
  201. data/app/assets/build/coco/icons/clock-12.svg +1 -0
  202. data/app/assets/build/coco/icons/clock-2.svg +1 -0
  203. data/app/assets/build/coco/icons/clock-3.svg +1 -0
  204. data/app/assets/build/coco/icons/clock-4.svg +1 -0
  205. data/app/assets/build/coco/icons/clock-5.svg +1 -0
  206. data/app/assets/build/coco/icons/clock-6.svg +1 -0
  207. data/app/assets/build/coco/icons/clock-7.svg +1 -0
  208. data/app/assets/build/coco/icons/clock-8.svg +1 -0
  209. data/app/assets/build/coco/icons/clock-9.svg +1 -0
  210. data/app/assets/build/coco/icons/clock.svg +1 -0
  211. data/app/assets/build/coco/icons/cloud-cog.svg +1 -0
  212. data/app/assets/build/coco/icons/cloud-drizzle.svg +1 -0
  213. data/app/assets/build/coco/icons/cloud-fog.svg +1 -0
  214. data/app/assets/build/coco/icons/cloud-hail.svg +1 -0
  215. data/app/assets/build/coco/icons/cloud-lightning.svg +1 -0
  216. data/app/assets/build/coco/icons/cloud-moon-rain.svg +1 -0
  217. data/app/assets/build/coco/icons/cloud-moon.svg +1 -0
  218. data/app/assets/build/coco/icons/cloud-off.svg +1 -0
  219. data/app/assets/build/coco/icons/cloud-rain-wind.svg +1 -0
  220. data/app/assets/build/coco/icons/cloud-rain.svg +1 -0
  221. data/app/assets/build/coco/icons/cloud-snow.svg +1 -0
  222. data/app/assets/build/coco/icons/cloud-sun-rain.svg +1 -0
  223. data/app/assets/build/coco/icons/cloud-sun.svg +1 -0
  224. data/app/assets/build/coco/icons/cloud.svg +1 -0
  225. data/app/assets/build/coco/icons/cloudy.svg +1 -0
  226. data/app/assets/build/coco/icons/clover.svg +1 -0
  227. data/app/assets/build/coco/icons/code-2.svg +1 -0
  228. data/app/assets/build/coco/icons/code.svg +1 -0
  229. data/app/assets/build/coco/icons/codepen.svg +1 -0
  230. data/app/assets/build/coco/icons/codesandbox.svg +1 -0
  231. data/app/assets/build/coco/icons/coffee.svg +1 -0
  232. data/app/assets/build/coco/icons/cog.svg +1 -0
  233. data/app/assets/build/coco/icons/coins.svg +1 -0
  234. data/app/assets/build/coco/icons/columns.svg +1 -0
  235. data/app/assets/build/coco/icons/command.svg +1 -0
  236. data/app/assets/build/coco/icons/compass.svg +1 -0
  237. data/app/assets/build/coco/icons/component.svg +1 -0
  238. data/app/assets/build/coco/icons/concierge-bell.svg +1 -0
  239. data/app/assets/build/coco/icons/contact.svg +1 -0
  240. data/app/assets/build/coco/icons/contrast.svg +1 -0
  241. data/app/assets/build/coco/icons/cookie.svg +1 -0
  242. data/app/assets/build/coco/icons/copy.svg +1 -0
  243. data/app/assets/build/coco/icons/copyleft.svg +1 -0
  244. data/app/assets/build/coco/icons/copyright.svg +1 -0
  245. data/app/assets/build/coco/icons/corner-down-left.svg +1 -0
  246. data/app/assets/build/coco/icons/corner-down-right.svg +1 -0
  247. data/app/assets/build/coco/icons/corner-left-down.svg +1 -0
  248. data/app/assets/build/coco/icons/corner-left-up.svg +1 -0
  249. data/app/assets/build/coco/icons/corner-right-down.svg +1 -0
  250. data/app/assets/build/coco/icons/corner-right-up.svg +1 -0
  251. data/app/assets/build/coco/icons/corner-up-left.svg +1 -0
  252. data/app/assets/build/coco/icons/corner-up-right.svg +1 -0
  253. data/app/assets/build/coco/icons/cpu.svg +1 -0
  254. data/app/assets/build/coco/icons/creative-commons.svg +1 -0
  255. data/app/assets/build/coco/icons/credit-card.svg +1 -0
  256. data/app/assets/build/coco/icons/croissant.svg +1 -0
  257. data/app/assets/build/coco/icons/crop.svg +1 -0
  258. data/app/assets/build/coco/icons/cross.svg +1 -0
  259. data/app/assets/build/coco/icons/crosshair.svg +1 -0
  260. data/app/assets/build/coco/icons/crown.svg +1 -0
  261. data/app/assets/build/coco/icons/cup-soda.svg +1 -0
  262. data/app/assets/build/coco/icons/curly-braces.svg +1 -0
  263. data/app/assets/build/coco/icons/currency.svg +1 -0
  264. data/app/assets/build/coco/icons/database-backup.svg +1 -0
  265. data/app/assets/build/coco/icons/database.svg +1 -0
  266. data/app/assets/build/coco/icons/delete.svg +1 -0
  267. data/app/assets/build/coco/icons/diamond.svg +1 -0
  268. data/app/assets/build/coco/icons/dice-1.svg +1 -0
  269. data/app/assets/build/coco/icons/dice-2.svg +1 -0
  270. data/app/assets/build/coco/icons/dice-3.svg +1 -0
  271. data/app/assets/build/coco/icons/dice-4.svg +1 -0
  272. data/app/assets/build/coco/icons/dice-5.svg +1 -0
  273. data/app/assets/build/coco/icons/dice-6.svg +1 -0
  274. data/app/assets/build/coco/icons/dices.svg +1 -0
  275. data/app/assets/build/coco/icons/diff.svg +1 -0
  276. data/app/assets/build/coco/icons/disc.svg +1 -0
  277. data/app/assets/build/coco/icons/divide-circle.svg +1 -0
  278. data/app/assets/build/coco/icons/divide-square.svg +1 -0
  279. data/app/assets/build/coco/icons/divide.svg +1 -0
  280. data/app/assets/build/coco/icons/dna-off.svg +1 -0
  281. data/app/assets/build/coco/icons/dna.svg +1 -0
  282. data/app/assets/build/coco/icons/dog.svg +1 -0
  283. data/app/assets/build/coco/icons/dollar-sign.svg +1 -0
  284. data/app/assets/build/coco/icons/download-cloud.svg +1 -0
  285. data/app/assets/build/coco/icons/download.svg +1 -0
  286. data/app/assets/build/coco/icons/dribbble.svg +1 -0
  287. data/app/assets/build/coco/icons/droplet.svg +1 -0
  288. data/app/assets/build/coco/icons/droplets.svg +1 -0
  289. data/app/assets/build/coco/icons/drumstick.svg +1 -0
  290. data/app/assets/build/coco/icons/dumbbell.svg +1 -0
  291. data/app/assets/build/coco/icons/ear-off.svg +1 -0
  292. data/app/assets/build/coco/icons/ear.svg +1 -0
  293. data/app/assets/build/coco/icons/edit-2.svg +1 -0
  294. data/app/assets/build/coco/icons/edit-3.svg +1 -0
  295. data/app/assets/build/coco/icons/edit.svg +1 -0
  296. data/app/assets/build/coco/icons/egg-fried.svg +1 -0
  297. data/app/assets/build/coco/icons/egg-off.svg +1 -0
  298. data/app/assets/build/coco/icons/egg.svg +1 -0
  299. data/app/assets/build/coco/icons/equal-not.svg +1 -0
  300. data/app/assets/build/coco/icons/equal.svg +1 -0
  301. data/app/assets/build/coco/icons/eraser.svg +1 -0
  302. data/app/assets/build/coco/icons/euro.svg +1 -0
  303. data/app/assets/build/coco/icons/expand.svg +1 -0
  304. data/app/assets/build/coco/icons/external-link.svg +1 -0
  305. data/app/assets/build/coco/icons/eye-off.svg +1 -0
  306. data/app/assets/build/coco/icons/eye.svg +1 -0
  307. data/app/assets/build/coco/icons/facebook.svg +1 -0
  308. data/app/assets/build/coco/icons/factory.svg +1 -0
  309. data/app/assets/build/coco/icons/fan.svg +1 -0
  310. data/app/assets/build/coco/icons/fast-forward.svg +1 -0
  311. data/app/assets/build/coco/icons/feather.svg +1 -0
  312. data/app/assets/build/coco/icons/figma.svg +1 -0
  313. data/app/assets/build/coco/icons/file-archive.svg +1 -0
  314. data/app/assets/build/coco/icons/file-audio-2.svg +1 -0
  315. data/app/assets/build/coco/icons/file-audio.svg +1 -0
  316. data/app/assets/build/coco/icons/file-axis-3d.svg +1 -0
  317. data/app/assets/build/coco/icons/file-badge-2.svg +1 -0
  318. data/app/assets/build/coco/icons/file-badge.svg +1 -0
  319. data/app/assets/build/coco/icons/file-bar-chart-2.svg +1 -0
  320. data/app/assets/build/coco/icons/file-bar-chart.svg +1 -0
  321. data/app/assets/build/coco/icons/file-box.svg +1 -0
  322. data/app/assets/build/coco/icons/file-check-2.svg +1 -0
  323. data/app/assets/build/coco/icons/file-check.svg +1 -0
  324. data/app/assets/build/coco/icons/file-clock.svg +1 -0
  325. data/app/assets/build/coco/icons/file-code.svg +1 -0
  326. data/app/assets/build/coco/icons/file-cog-2.svg +1 -0
  327. data/app/assets/build/coco/icons/file-cog.svg +1 -0
  328. data/app/assets/build/coco/icons/file-diff.svg +1 -0
  329. data/app/assets/build/coco/icons/file-digit.svg +1 -0
  330. data/app/assets/build/coco/icons/file-down.svg +1 -0
  331. data/app/assets/build/coco/icons/file-edit.svg +1 -0
  332. data/app/assets/build/coco/icons/file-heart.svg +1 -0
  333. data/app/assets/build/coco/icons/file-image.svg +1 -0
  334. data/app/assets/build/coco/icons/file-input.svg +1 -0
  335. data/app/assets/build/coco/icons/file-json-2.svg +1 -0
  336. data/app/assets/build/coco/icons/file-json.svg +1 -0
  337. data/app/assets/build/coco/icons/file-key-2.svg +1 -0
  338. data/app/assets/build/coco/icons/file-key.svg +1 -0
  339. data/app/assets/build/coco/icons/file-line-chart.svg +1 -0
  340. data/app/assets/build/coco/icons/file-lock-2.svg +1 -0
  341. data/app/assets/build/coco/icons/file-lock.svg +1 -0
  342. data/app/assets/build/coco/icons/file-minus-2.svg +1 -0
  343. data/app/assets/build/coco/icons/file-minus.svg +1 -0
  344. data/app/assets/build/coco/icons/file-output.svg +1 -0
  345. data/app/assets/build/coco/icons/file-pie-chart.svg +1 -0
  346. data/app/assets/build/coco/icons/file-plus-2.svg +1 -0
  347. data/app/assets/build/coco/icons/file-plus.svg +1 -0
  348. data/app/assets/build/coco/icons/file-question.svg +1 -0
  349. data/app/assets/build/coco/icons/file-scan.svg +1 -0
  350. data/app/assets/build/coco/icons/file-search-2.svg +1 -0
  351. data/app/assets/build/coco/icons/file-search.svg +1 -0
  352. data/app/assets/build/coco/icons/file-signature.svg +1 -0
  353. data/app/assets/build/coco/icons/file-spreadsheet.svg +1 -0
  354. data/app/assets/build/coco/icons/file-symlink.svg +1 -0
  355. data/app/assets/build/coco/icons/file-terminal.svg +1 -0
  356. data/app/assets/build/coco/icons/file-text.svg +1 -0
  357. data/app/assets/build/coco/icons/file-type-2.svg +1 -0
  358. data/app/assets/build/coco/icons/file-type.svg +1 -0
  359. data/app/assets/build/coco/icons/file-up.svg +1 -0
  360. data/app/assets/build/coco/icons/file-video-2.svg +1 -0
  361. data/app/assets/build/coco/icons/file-video.svg +1 -0
  362. data/app/assets/build/coco/icons/file-volume-2.svg +1 -0
  363. data/app/assets/build/coco/icons/file-volume.svg +1 -0
  364. data/app/assets/build/coco/icons/file-warning.svg +1 -0
  365. data/app/assets/build/coco/icons/file-x-2.svg +1 -0
  366. data/app/assets/build/coco/icons/file-x.svg +1 -0
  367. data/app/assets/build/coco/icons/file.svg +1 -0
  368. data/app/assets/build/coco/icons/files.svg +1 -0
  369. data/app/assets/build/coco/icons/film.svg +1 -0
  370. data/app/assets/build/coco/icons/filter.svg +1 -0
  371. data/app/assets/build/coco/icons/fingerprint.svg +1 -0
  372. data/app/assets/build/coco/icons/fish-off.svg +1 -0
  373. data/app/assets/build/coco/icons/fish.svg +1 -0
  374. data/app/assets/build/coco/icons/flag-off.svg +1 -0
  375. data/app/assets/build/coco/icons/flag-triangle-left.svg +1 -0
  376. data/app/assets/build/coco/icons/flag-triangle-right.svg +1 -0
  377. data/app/assets/build/coco/icons/flag.svg +1 -0
  378. data/app/assets/build/coco/icons/flame.svg +1 -0
  379. data/app/assets/build/coco/icons/flashlight-off.svg +1 -0
  380. data/app/assets/build/coco/icons/flashlight.svg +1 -0
  381. data/app/assets/build/coco/icons/flask-conical-off.svg +1 -0
  382. data/app/assets/build/coco/icons/flask-conical.svg +1 -0
  383. data/app/assets/build/coco/icons/flask-round.svg +1 -0
  384. data/app/assets/build/coco/icons/flip-horizontal-2.svg +1 -0
  385. data/app/assets/build/coco/icons/flip-horizontal.svg +1 -0
  386. data/app/assets/build/coco/icons/flip-vertical-2.svg +1 -0
  387. data/app/assets/build/coco/icons/flip-vertical.svg +1 -0
  388. data/app/assets/build/coco/icons/flower-2.svg +1 -0
  389. data/app/assets/build/coco/icons/flower.svg +1 -0
  390. data/app/assets/build/coco/icons/focus.svg +1 -0
  391. data/app/assets/build/coco/icons/folder-archive.svg +1 -0
  392. data/app/assets/build/coco/icons/folder-check.svg +1 -0
  393. data/app/assets/build/coco/icons/folder-clock.svg +1 -0
  394. data/app/assets/build/coco/icons/folder-closed.svg +1 -0
  395. data/app/assets/build/coco/icons/folder-cog-2.svg +1 -0
  396. data/app/assets/build/coco/icons/folder-cog.svg +1 -0
  397. data/app/assets/build/coco/icons/folder-down.svg +1 -0
  398. data/app/assets/build/coco/icons/folder-edit.svg +1 -0
  399. data/app/assets/build/coco/icons/folder-heart.svg +1 -0
  400. data/app/assets/build/coco/icons/folder-input.svg +1 -0
  401. data/app/assets/build/coco/icons/folder-key.svg +1 -0
  402. data/app/assets/build/coco/icons/folder-lock.svg +1 -0
  403. data/app/assets/build/coco/icons/folder-minus.svg +1 -0
  404. data/app/assets/build/coco/icons/folder-open.svg +1 -0
  405. data/app/assets/build/coco/icons/folder-output.svg +1 -0
  406. data/app/assets/build/coco/icons/folder-plus.svg +1 -0
  407. data/app/assets/build/coco/icons/folder-search-2.svg +1 -0
  408. data/app/assets/build/coco/icons/folder-search.svg +1 -0
  409. data/app/assets/build/coco/icons/folder-symlink.svg +1 -0
  410. data/app/assets/build/coco/icons/folder-tree.svg +1 -0
  411. data/app/assets/build/coco/icons/folder-up.svg +1 -0
  412. data/app/assets/build/coco/icons/folder-x.svg +1 -0
  413. data/app/assets/build/coco/icons/folder.svg +1 -0
  414. data/app/assets/build/coco/icons/folders.svg +1 -0
  415. data/app/assets/build/coco/icons/form-input.svg +1 -0
  416. data/app/assets/build/coco/icons/forward.svg +1 -0
  417. data/app/assets/build/coco/icons/frame.svg +1 -0
  418. data/app/assets/build/coco/icons/framer.svg +1 -0
  419. data/app/assets/build/coco/icons/frown.svg +1 -0
  420. data/app/assets/build/coco/icons/fuel.svg +1 -0
  421. data/app/assets/build/coco/icons/function-square.svg +1 -0
  422. data/app/assets/build/coco/icons/gamepad-2.svg +1 -0
  423. data/app/assets/build/coco/icons/gamepad.svg +1 -0
  424. data/app/assets/build/coco/icons/gauge.svg +1 -0
  425. data/app/assets/build/coco/icons/gavel.svg +1 -0
  426. data/app/assets/build/coco/icons/gem.svg +1 -0
  427. data/app/assets/build/coco/icons/ghost.svg +1 -0
  428. data/app/assets/build/coco/icons/gift.svg +1 -0
  429. data/app/assets/build/coco/icons/git-branch-plus.svg +1 -0
  430. data/app/assets/build/coco/icons/git-branch.svg +1 -0
  431. data/app/assets/build/coco/icons/git-commit.svg +1 -0
  432. data/app/assets/build/coco/icons/git-compare.svg +1 -0
  433. data/app/assets/build/coco/icons/git-fork.svg +1 -0
  434. data/app/assets/build/coco/icons/git-merge.svg +1 -0
  435. data/app/assets/build/coco/icons/git-pull-request-closed.svg +1 -0
  436. data/app/assets/build/coco/icons/git-pull-request-draft.svg +1 -0
  437. data/app/assets/build/coco/icons/git-pull-request.svg +1 -0
  438. data/app/assets/build/coco/icons/github.svg +1 -0
  439. data/app/assets/build/coco/icons/gitlab.svg +1 -0
  440. data/app/assets/build/coco/icons/glass-water.svg +1 -0
  441. data/app/assets/build/coco/icons/glasses.svg +1 -0
  442. data/app/assets/build/coco/icons/globe-2.svg +1 -0
  443. data/app/assets/build/coco/icons/globe.svg +1 -0
  444. data/app/assets/build/coco/icons/grab.svg +1 -0
  445. data/app/assets/build/coco/icons/graduation-cap.svg +1 -0
  446. data/app/assets/build/coco/icons/grape.svg +1 -0
  447. data/app/assets/build/coco/icons/grid.svg +1 -0
  448. data/app/assets/build/coco/icons/grip-horizontal.svg +1 -0
  449. data/app/assets/build/coco/icons/grip-vertical.svg +1 -0
  450. data/app/assets/build/coco/icons/grip.svg +1 -0
  451. data/app/assets/build/coco/icons/hammer.svg +1 -0
  452. data/app/assets/build/coco/icons/hand-metal.svg +1 -0
  453. data/app/assets/build/coco/icons/hand.svg +1 -0
  454. data/app/assets/build/coco/icons/hard-drive.svg +1 -0
  455. data/app/assets/build/coco/icons/hard-hat.svg +1 -0
  456. data/app/assets/build/coco/icons/hash.svg +1 -0
  457. data/app/assets/build/coco/icons/haze.svg +1 -0
  458. data/app/assets/build/coco/icons/heading-1.svg +1 -0
  459. data/app/assets/build/coco/icons/heading-2.svg +1 -0
  460. data/app/assets/build/coco/icons/heading-3.svg +1 -0
  461. data/app/assets/build/coco/icons/heading-4.svg +1 -0
  462. data/app/assets/build/coco/icons/heading-5.svg +1 -0
  463. data/app/assets/build/coco/icons/heading-6.svg +1 -0
  464. data/app/assets/build/coco/icons/heading.svg +1 -0
  465. data/app/assets/build/coco/icons/headphones.svg +1 -0
  466. data/app/assets/build/coco/icons/heart-crack.svg +1 -0
  467. data/app/assets/build/coco/icons/heart-handshake.svg +1 -0
  468. data/app/assets/build/coco/icons/heart-off.svg +1 -0
  469. data/app/assets/build/coco/icons/heart-pulse.svg +1 -0
  470. data/app/assets/build/coco/icons/heart.svg +1 -0
  471. data/app/assets/build/coco/icons/help-circle.svg +1 -0
  472. data/app/assets/build/coco/icons/hexagon.svg +1 -0
  473. data/app/assets/build/coco/icons/highlighter.svg +1 -0
  474. data/app/assets/build/coco/icons/history.svg +1 -0
  475. data/app/assets/build/coco/icons/home.svg +1 -0
  476. data/app/assets/build/coco/icons/hop-off.svg +1 -0
  477. data/app/assets/build/coco/icons/hop.svg +1 -0
  478. data/app/assets/build/coco/icons/hourglass.svg +1 -0
  479. data/app/assets/build/coco/icons/ice-cream-2.svg +1 -0
  480. data/app/assets/build/coco/icons/ice-cream.svg +1 -0
  481. data/app/assets/build/coco/icons/image-minus.svg +1 -0
  482. data/app/assets/build/coco/icons/image-off.svg +1 -0
  483. data/app/assets/build/coco/icons/image-plus.svg +1 -0
  484. data/app/assets/build/coco/icons/image.svg +1 -0
  485. data/app/assets/build/coco/icons/import.svg +1 -0
  486. data/app/assets/build/coco/icons/inbox.svg +1 -0
  487. data/app/assets/build/coco/icons/indent.svg +1 -0
  488. data/app/assets/build/coco/icons/indian-rupee.svg +1 -0
  489. data/app/assets/build/coco/icons/infinity.svg +1 -0
  490. data/app/assets/build/coco/icons/info.svg +1 -0
  491. data/app/assets/build/coco/icons/inspect.svg +1 -0
  492. data/app/assets/build/coco/icons/instagram.svg +1 -0
  493. data/app/assets/build/coco/icons/italic.svg +1 -0
  494. data/app/assets/build/coco/icons/japanese-yen.svg +1 -0
  495. data/app/assets/build/coco/icons/joystick.svg +1 -0
  496. data/app/assets/build/coco/icons/key.svg +1 -0
  497. data/app/assets/build/coco/icons/keyboard.svg +1 -0
  498. data/app/assets/build/coco/icons/lamp-ceiling.svg +1 -0
  499. data/app/assets/build/coco/icons/lamp-desk.svg +1 -0
  500. data/app/assets/build/coco/icons/lamp-floor.svg +1 -0
  501. data/app/assets/build/coco/icons/lamp-wall-down.svg +1 -0
  502. data/app/assets/build/coco/icons/lamp-wall-up.svg +1 -0
  503. data/app/assets/build/coco/icons/lamp.svg +1 -0
  504. data/app/assets/build/coco/icons/landmark.svg +1 -0
  505. data/app/assets/build/coco/icons/languages.svg +1 -0
  506. data/app/assets/build/coco/icons/laptop-2.svg +1 -0
  507. data/app/assets/build/coco/icons/laptop.svg +1 -0
  508. data/app/assets/build/coco/icons/lasso-select.svg +1 -0
  509. data/app/assets/build/coco/icons/lasso.svg +1 -0
  510. data/app/assets/build/coco/icons/laugh.svg +1 -0
  511. data/app/assets/build/coco/icons/layers.svg +1 -0
  512. data/app/assets/build/coco/icons/layout-dashboard.svg +1 -0
  513. data/app/assets/build/coco/icons/layout-grid.svg +1 -0
  514. data/app/assets/build/coco/icons/layout-list.svg +1 -0
  515. data/app/assets/build/coco/icons/layout-template.svg +1 -0
  516. data/app/assets/build/coco/icons/layout.svg +1 -0
  517. data/app/assets/build/coco/icons/leaf.svg +1 -0
  518. data/app/assets/build/coco/icons/library.svg +1 -0
  519. data/app/assets/build/coco/icons/life-buoy.svg +1 -0
  520. data/app/assets/build/coco/icons/lightbulb-off.svg +1 -0
  521. data/app/assets/build/coco/icons/lightbulb.svg +1 -0
  522. data/app/assets/build/coco/icons/line-chart.svg +1 -0
  523. data/app/assets/build/coco/icons/link-2-off.svg +1 -0
  524. data/app/assets/build/coco/icons/link-2.svg +1 -0
  525. data/app/assets/build/coco/icons/link.svg +1 -0
  526. data/app/assets/build/coco/icons/linkedin.svg +1 -0
  527. data/app/assets/build/coco/icons/list-checks.svg +1 -0
  528. data/app/assets/build/coco/icons/list-end.svg +1 -0
  529. data/app/assets/build/coco/icons/list-minus.svg +1 -0
  530. data/app/assets/build/coco/icons/list-music.svg +1 -0
  531. data/app/assets/build/coco/icons/list-ordered.svg +1 -0
  532. data/app/assets/build/coco/icons/list-plus.svg +1 -0
  533. data/app/assets/build/coco/icons/list-start.svg +1 -0
  534. data/app/assets/build/coco/icons/list-video.svg +1 -0
  535. data/app/assets/build/coco/icons/list-x.svg +1 -0
  536. data/app/assets/build/coco/icons/list.svg +1 -0
  537. data/app/assets/build/coco/icons/loader-2.svg +1 -0
  538. data/app/assets/build/coco/icons/loader.svg +1 -0
  539. data/app/assets/build/coco/icons/locate-fixed.svg +1 -0
  540. data/app/assets/build/coco/icons/locate-off.svg +1 -0
  541. data/app/assets/build/coco/icons/locate.svg +1 -0
  542. data/app/assets/build/coco/icons/lock.svg +1 -0
  543. data/app/assets/build/coco/icons/log-in.svg +1 -0
  544. data/app/assets/build/coco/icons/log-out.svg +1 -0
  545. data/app/assets/build/coco/icons/luggage.svg +1 -0
  546. data/app/assets/build/coco/icons/magnet.svg +1 -0
  547. data/app/assets/build/coco/icons/mail-check.svg +1 -0
  548. data/app/assets/build/coco/icons/mail-minus.svg +1 -0
  549. data/app/assets/build/coco/icons/mail-open.svg +1 -0
  550. data/app/assets/build/coco/icons/mail-plus.svg +1 -0
  551. data/app/assets/build/coco/icons/mail-question.svg +1 -0
  552. data/app/assets/build/coco/icons/mail-search.svg +1 -0
  553. data/app/assets/build/coco/icons/mail-warning.svg +1 -0
  554. data/app/assets/build/coco/icons/mail-x.svg +1 -0
  555. data/app/assets/build/coco/icons/mail.svg +1 -0
  556. data/app/assets/build/coco/icons/mails.svg +1 -0
  557. data/app/assets/build/coco/icons/map-pin-off.svg +1 -0
  558. data/app/assets/build/coco/icons/map-pin.svg +1 -0
  559. data/app/assets/build/coco/icons/map.svg +1 -0
  560. data/app/assets/build/coco/icons/martini.svg +1 -0
  561. data/app/assets/build/coco/icons/maximize-2.svg +1 -0
  562. data/app/assets/build/coco/icons/maximize.svg +1 -0
  563. data/app/assets/build/coco/icons/medal.svg +1 -0
  564. data/app/assets/build/coco/icons/megaphone-off.svg +1 -0
  565. data/app/assets/build/coco/icons/megaphone.svg +1 -0
  566. data/app/assets/build/coco/icons/meh.svg +1 -0
  567. data/app/assets/build/coco/icons/menu.svg +1 -0
  568. data/app/assets/build/coco/icons/message-circle.svg +1 -0
  569. data/app/assets/build/coco/icons/message-square.svg +1 -0
  570. data/app/assets/build/coco/icons/mic-2.svg +1 -0
  571. data/app/assets/build/coco/icons/mic-off.svg +1 -0
  572. data/app/assets/build/coco/icons/mic.svg +1 -0
  573. data/app/assets/build/coco/icons/microscope.svg +1 -0
  574. data/app/assets/build/coco/icons/microwave.svg +1 -0
  575. data/app/assets/build/coco/icons/milestone.svg +1 -0
  576. data/app/assets/build/coco/icons/milk-off.svg +1 -0
  577. data/app/assets/build/coco/icons/milk.svg +1 -0
  578. data/app/assets/build/coco/icons/minimize-2.svg +1 -0
  579. data/app/assets/build/coco/icons/minimize.svg +1 -0
  580. data/app/assets/build/coco/icons/minus-circle.svg +1 -0
  581. data/app/assets/build/coco/icons/minus-square.svg +1 -0
  582. data/app/assets/build/coco/icons/minus.svg +1 -0
  583. data/app/assets/build/coco/icons/monitor-off.svg +1 -0
  584. data/app/assets/build/coco/icons/monitor-smartphone.svg +1 -0
  585. data/app/assets/build/coco/icons/monitor-speaker.svg +1 -0
  586. data/app/assets/build/coco/icons/monitor.svg +1 -0
  587. data/app/assets/build/coco/icons/moon.svg +1 -0
  588. data/app/assets/build/coco/icons/more-horizontal.svg +1 -0
  589. data/app/assets/build/coco/icons/more-vertical.svg +1 -0
  590. data/app/assets/build/coco/icons/mountain-snow.svg +1 -0
  591. data/app/assets/build/coco/icons/mountain.svg +1 -0
  592. data/app/assets/build/coco/icons/mouse-pointer-2.svg +1 -0
  593. data/app/assets/build/coco/icons/mouse-pointer-click.svg +1 -0
  594. data/app/assets/build/coco/icons/mouse-pointer.svg +1 -0
  595. data/app/assets/build/coco/icons/mouse.svg +1 -0
  596. data/app/assets/build/coco/icons/move-3d.svg +1 -0
  597. data/app/assets/build/coco/icons/move-diagonal-2.svg +1 -0
  598. data/app/assets/build/coco/icons/move-diagonal.svg +1 -0
  599. data/app/assets/build/coco/icons/move-horizontal.svg +1 -0
  600. data/app/assets/build/coco/icons/move-vertical.svg +1 -0
  601. data/app/assets/build/coco/icons/move.svg +1 -0
  602. data/app/assets/build/coco/icons/music-2.svg +1 -0
  603. data/app/assets/build/coco/icons/music-3.svg +1 -0
  604. data/app/assets/build/coco/icons/music-4.svg +1 -0
  605. data/app/assets/build/coco/icons/music.svg +1 -0
  606. data/app/assets/build/coco/icons/navigation-2-off.svg +1 -0
  607. data/app/assets/build/coco/icons/navigation-2.svg +1 -0
  608. data/app/assets/build/coco/icons/navigation-off.svg +1 -0
  609. data/app/assets/build/coco/icons/navigation.svg +1 -0
  610. data/app/assets/build/coco/icons/network.svg +1 -0
  611. data/app/assets/build/coco/icons/newspaper.svg +1 -0
  612. data/app/assets/build/coco/icons/nut-off.svg +1 -0
  613. data/app/assets/build/coco/icons/nut.svg +1 -0
  614. data/app/assets/build/coco/icons/octagon.svg +1 -0
  615. data/app/assets/build/coco/icons/option.svg +1 -0
  616. data/app/assets/build/coco/icons/outdent.svg +1 -0
  617. data/app/assets/build/coco/icons/package-2.svg +1 -0
  618. data/app/assets/build/coco/icons/package-check.svg +1 -0
  619. data/app/assets/build/coco/icons/package-minus.svg +1 -0
  620. data/app/assets/build/coco/icons/package-open.svg +1 -0
  621. data/app/assets/build/coco/icons/package-plus.svg +1 -0
  622. data/app/assets/build/coco/icons/package-search.svg +1 -0
  623. data/app/assets/build/coco/icons/package-x.svg +1 -0
  624. data/app/assets/build/coco/icons/package.svg +1 -0
  625. data/app/assets/build/coco/icons/paint-bucket.svg +1 -0
  626. data/app/assets/build/coco/icons/paintbrush-2.svg +1 -0
  627. data/app/assets/build/coco/icons/paintbrush.svg +1 -0
  628. data/app/assets/build/coco/icons/palette.svg +1 -0
  629. data/app/assets/build/coco/icons/palmtree.svg +1 -0
  630. data/app/assets/build/coco/icons/paperclip.svg +1 -0
  631. data/app/assets/build/coco/icons/party-popper.svg +1 -0
  632. data/app/assets/build/coco/icons/pause-circle.svg +1 -0
  633. data/app/assets/build/coco/icons/pause-octagon.svg +1 -0
  634. data/app/assets/build/coco/icons/pause.svg +1 -0
  635. data/app/assets/build/coco/icons/pen-tool.svg +1 -0
  636. data/app/assets/build/coco/icons/pencil.svg +1 -0
  637. data/app/assets/build/coco/icons/percent.svg +1 -0
  638. data/app/assets/build/coco/icons/person-standing.svg +1 -0
  639. data/app/assets/build/coco/icons/phone-call.svg +1 -0
  640. data/app/assets/build/coco/icons/phone-forwarded.svg +1 -0
  641. data/app/assets/build/coco/icons/phone-incoming.svg +1 -0
  642. data/app/assets/build/coco/icons/phone-missed.svg +1 -0
  643. data/app/assets/build/coco/icons/phone-off.svg +1 -0
  644. data/app/assets/build/coco/icons/phone-outgoing.svg +1 -0
  645. data/app/assets/build/coco/icons/phone.svg +1 -0
  646. data/app/assets/build/coco/icons/picture-in-picture-2.svg +1 -0
  647. data/app/assets/build/coco/icons/picture-in-picture.svg +1 -0
  648. data/app/assets/build/coco/icons/pie-chart.svg +1 -0
  649. data/app/assets/build/coco/icons/piggy-bank.svg +1 -0
  650. data/app/assets/build/coco/icons/pilcrow.svg +1 -0
  651. data/app/assets/build/coco/icons/pin-off.svg +1 -0
  652. data/app/assets/build/coco/icons/pin.svg +1 -0
  653. data/app/assets/build/coco/icons/pipette.svg +1 -0
  654. data/app/assets/build/coco/icons/pizza.svg +1 -0
  655. data/app/assets/build/coco/icons/plane.svg +1 -0
  656. data/app/assets/build/coco/icons/play-circle.svg +1 -0
  657. data/app/assets/build/coco/icons/play.svg +1 -0
  658. data/app/assets/build/coco/icons/plug-2.svg +1 -0
  659. data/app/assets/build/coco/icons/plug-zap.svg +1 -0
  660. data/app/assets/build/coco/icons/plug.svg +1 -0
  661. data/app/assets/build/coco/icons/plus-circle.svg +1 -0
  662. data/app/assets/build/coco/icons/plus-square.svg +1 -0
  663. data/app/assets/build/coco/icons/plus.svg +1 -0
  664. data/app/assets/build/coco/icons/pocket.svg +1 -0
  665. data/app/assets/build/coco/icons/podcast.svg +1 -0
  666. data/app/assets/build/coco/icons/pointer.svg +1 -0
  667. data/app/assets/build/coco/icons/pound-sterling.svg +1 -0
  668. data/app/assets/build/coco/icons/power-off.svg +1 -0
  669. data/app/assets/build/coco/icons/power.svg +1 -0
  670. data/app/assets/build/coco/icons/printer.svg +1 -0
  671. data/app/assets/build/coco/icons/puzzle.svg +1 -0
  672. data/app/assets/build/coco/icons/qr-code.svg +1 -0
  673. data/app/assets/build/coco/icons/quote.svg +1 -0
  674. data/app/assets/build/coco/icons/radio-receiver.svg +1 -0
  675. data/app/assets/build/coco/icons/radio.svg +1 -0
  676. data/app/assets/build/coco/icons/rectangle-horizontal.svg +1 -0
  677. data/app/assets/build/coco/icons/rectangle-vertical.svg +1 -0
  678. data/app/assets/build/coco/icons/recycle.svg +1 -0
  679. data/app/assets/build/coco/icons/redo-2.svg +1 -0
  680. data/app/assets/build/coco/icons/redo.svg +1 -0
  681. data/app/assets/build/coco/icons/refresh-ccw.svg +1 -0
  682. data/app/assets/build/coco/icons/refresh-cw.svg +1 -0
  683. data/app/assets/build/coco/icons/refrigerator.svg +1 -0
  684. data/app/assets/build/coco/icons/regex.svg +1 -0
  685. data/app/assets/build/coco/icons/remove-formatting.svg +1 -0
  686. data/app/assets/build/coco/icons/repeat-1.svg +1 -0
  687. data/app/assets/build/coco/icons/repeat.svg +1 -0
  688. data/app/assets/build/coco/icons/reply-all.svg +1 -0
  689. data/app/assets/build/coco/icons/reply.svg +1 -0
  690. data/app/assets/build/coco/icons/rewind.svg +1 -0
  691. data/app/assets/build/coco/icons/rocket.svg +1 -0
  692. data/app/assets/build/coco/icons/rocking-chair.svg +1 -0
  693. data/app/assets/build/coco/icons/rotate-3d.svg +1 -0
  694. data/app/assets/build/coco/icons/rotate-ccw.svg +1 -0
  695. data/app/assets/build/coco/icons/rotate-cw.svg +1 -0
  696. data/app/assets/build/coco/icons/rss.svg +1 -0
  697. data/app/assets/build/coco/icons/ruler.svg +1 -0
  698. data/app/assets/build/coco/icons/russian-ruble.svg +1 -0
  699. data/app/assets/build/coco/icons/sailboat.svg +1 -0
  700. data/app/assets/build/coco/icons/salad.svg +1 -0
  701. data/app/assets/build/coco/icons/sandwich.svg +1 -0
  702. data/app/assets/build/coco/icons/save.svg +1 -0
  703. data/app/assets/build/coco/icons/scale-3d.svg +1 -0
  704. data/app/assets/build/coco/icons/scale.svg +1 -0
  705. data/app/assets/build/coco/icons/scaling.svg +1 -0
  706. data/app/assets/build/coco/icons/scan-face.svg +1 -0
  707. data/app/assets/build/coco/icons/scan-line.svg +1 -0
  708. data/app/assets/build/coco/icons/scan.svg +1 -0
  709. data/app/assets/build/coco/icons/scissors.svg +1 -0
  710. data/app/assets/build/coco/icons/screen-share-off.svg +1 -0
  711. data/app/assets/build/coco/icons/screen-share.svg +1 -0
  712. data/app/assets/build/coco/icons/scroll.svg +1 -0
  713. data/app/assets/build/coco/icons/search.svg +1 -0
  714. data/app/assets/build/coco/icons/send.svg +1 -0
  715. data/app/assets/build/coco/icons/separator-horizontal.svg +1 -0
  716. data/app/assets/build/coco/icons/separator-vertical.svg +1 -0
  717. data/app/assets/build/coco/icons/server-cog.svg +1 -0
  718. data/app/assets/build/coco/icons/server-crash.svg +1 -0
  719. data/app/assets/build/coco/icons/server-off.svg +1 -0
  720. data/app/assets/build/coco/icons/server.svg +1 -0
  721. data/app/assets/build/coco/icons/settings-2.svg +1 -0
  722. data/app/assets/build/coco/icons/settings.svg +1 -0
  723. data/app/assets/build/coco/icons/share-2.svg +1 -0
  724. data/app/assets/build/coco/icons/share.svg +1 -0
  725. data/app/assets/build/coco/icons/sheet.svg +1 -0
  726. data/app/assets/build/coco/icons/shield-alert.svg +1 -0
  727. data/app/assets/build/coco/icons/shield-check.svg +1 -0
  728. data/app/assets/build/coco/icons/shield-close.svg +1 -0
  729. data/app/assets/build/coco/icons/shield-off.svg +1 -0
  730. data/app/assets/build/coco/icons/shield.svg +1 -0
  731. data/app/assets/build/coco/icons/shirt.svg +1 -0
  732. data/app/assets/build/coco/icons/shopping-bag.svg +1 -0
  733. data/app/assets/build/coco/icons/shopping-cart.svg +1 -0
  734. data/app/assets/build/coco/icons/shovel.svg +1 -0
  735. data/app/assets/build/coco/icons/shower-head.svg +1 -0
  736. data/app/assets/build/coco/icons/shrink.svg +1 -0
  737. data/app/assets/build/coco/icons/shrub.svg +1 -0
  738. data/app/assets/build/coco/icons/shuffle.svg +1 -0
  739. data/app/assets/build/coco/icons/sidebar-close.svg +1 -0
  740. data/app/assets/build/coco/icons/sidebar-open.svg +1 -0
  741. data/app/assets/build/coco/icons/sidebar.svg +1 -0
  742. data/app/assets/build/coco/icons/sigma.svg +1 -0
  743. data/app/assets/build/coco/icons/signal-high.svg +1 -0
  744. data/app/assets/build/coco/icons/signal-low.svg +1 -0
  745. data/app/assets/build/coco/icons/signal-medium.svg +1 -0
  746. data/app/assets/build/coco/icons/signal-zero.svg +1 -0
  747. data/app/assets/build/coco/icons/signal.svg +1 -0
  748. data/app/assets/build/coco/icons/siren.svg +1 -0
  749. data/app/assets/build/coco/icons/skip-back.svg +1 -0
  750. data/app/assets/build/coco/icons/skip-forward.svg +1 -0
  751. data/app/assets/build/coco/icons/skull.svg +1 -0
  752. data/app/assets/build/coco/icons/slack.svg +1 -0
  753. data/app/assets/build/coco/icons/slash.svg +1 -0
  754. data/app/assets/build/coco/icons/slice.svg +1 -0
  755. data/app/assets/build/coco/icons/sliders-horizontal.svg +1 -0
  756. data/app/assets/build/coco/icons/sliders.svg +1 -0
  757. data/app/assets/build/coco/icons/smartphone-charging.svg +1 -0
  758. data/app/assets/build/coco/icons/smartphone.svg +1 -0
  759. data/app/assets/build/coco/icons/smile-plus.svg +1 -0
  760. data/app/assets/build/coco/icons/smile.svg +1 -0
  761. data/app/assets/build/coco/icons/snowflake.svg +1 -0
  762. data/app/assets/build/coco/icons/sofa.svg +1 -0
  763. data/app/assets/build/coco/icons/sort-asc.svg +1 -0
  764. data/app/assets/build/coco/icons/sort-desc.svg +1 -0
  765. data/app/assets/build/coco/icons/soup.svg +1 -0
  766. data/app/assets/build/coco/icons/speaker.svg +1 -0
  767. data/app/assets/build/coco/icons/spline.svg +1 -0
  768. data/app/assets/build/coco/icons/sprout.svg +1 -0
  769. data/app/assets/build/coco/icons/square.svg +1 -0
  770. data/app/assets/build/coco/icons/star-half.svg +1 -0
  771. data/app/assets/build/coco/icons/star-off.svg +1 -0
  772. data/app/assets/build/coco/icons/star.svg +1 -0
  773. data/app/assets/build/coco/icons/stethoscope.svg +1 -0
  774. data/app/assets/build/coco/icons/sticker.svg +1 -0
  775. data/app/assets/build/coco/icons/sticky-note.svg +1 -0
  776. data/app/assets/build/coco/icons/stop-circle.svg +1 -0
  777. data/app/assets/build/coco/icons/stretch-horizontal.svg +1 -0
  778. data/app/assets/build/coco/icons/stretch-vertical.svg +1 -0
  779. data/app/assets/build/coco/icons/strikethrough.svg +1 -0
  780. data/app/assets/build/coco/icons/subscript.svg +1 -0
  781. data/app/assets/build/coco/icons/subtitles.svg +1 -0
  782. data/app/assets/build/coco/icons/sun-dim.svg +1 -0
  783. data/app/assets/build/coco/icons/sun-medium.svg +1 -0
  784. data/app/assets/build/coco/icons/sun-moon.svg +1 -0
  785. data/app/assets/build/coco/icons/sun-snow.svg +1 -0
  786. data/app/assets/build/coco/icons/sun.svg +1 -0
  787. data/app/assets/build/coco/icons/sunrise.svg +1 -0
  788. data/app/assets/build/coco/icons/sunset.svg +1 -0
  789. data/app/assets/build/coco/icons/superscript.svg +1 -0
  790. data/app/assets/build/coco/icons/swiss-franc.svg +1 -0
  791. data/app/assets/build/coco/icons/switch-camera.svg +1 -0
  792. data/app/assets/build/coco/icons/sword.svg +1 -0
  793. data/app/assets/build/coco/icons/swords.svg +1 -0
  794. data/app/assets/build/coco/icons/syringe.svg +1 -0
  795. data/app/assets/build/coco/icons/table-2.svg +1 -0
  796. data/app/assets/build/coco/icons/table.svg +1 -0
  797. data/app/assets/build/coco/icons/tablet.svg +1 -0
  798. data/app/assets/build/coco/icons/tag.svg +1 -0
  799. data/app/assets/build/coco/icons/tags.svg +1 -0
  800. data/app/assets/build/coco/icons/target.svg +1 -0
  801. data/app/assets/build/coco/icons/tent.svg +1 -0
  802. data/app/assets/build/coco/icons/terminal-square.svg +1 -0
  803. data/app/assets/build/coco/icons/terminal.svg +1 -0
  804. data/app/assets/build/coco/icons/text-cursor-input.svg +1 -0
  805. data/app/assets/build/coco/icons/text-cursor.svg +1 -0
  806. data/app/assets/build/coco/icons/thermometer-snowflake.svg +1 -0
  807. data/app/assets/build/coco/icons/thermometer-sun.svg +1 -0
  808. data/app/assets/build/coco/icons/thermometer.svg +1 -0
  809. data/app/assets/build/coco/icons/thumbs-down.svg +1 -0
  810. data/app/assets/build/coco/icons/thumbs-up.svg +1 -0
  811. data/app/assets/build/coco/icons/ticket.svg +1 -0
  812. data/app/assets/build/coco/icons/timer-off.svg +1 -0
  813. data/app/assets/build/coco/icons/timer-reset.svg +1 -0
  814. data/app/assets/build/coco/icons/timer.svg +1 -0
  815. data/app/assets/build/coco/icons/toggle-left.svg +1 -0
  816. data/app/assets/build/coco/icons/toggle-right.svg +1 -0
  817. data/app/assets/build/coco/icons/tornado.svg +1 -0
  818. data/app/assets/build/coco/icons/toy-brick.svg +1 -0
  819. data/app/assets/build/coco/icons/train.svg +1 -0
  820. data/app/assets/build/coco/icons/trash-2.svg +1 -0
  821. data/app/assets/build/coco/icons/trash.svg +1 -0
  822. data/app/assets/build/coco/icons/tree-deciduous.svg +1 -0
  823. data/app/assets/build/coco/icons/tree-pine.svg +1 -0
  824. data/app/assets/build/coco/icons/trees.svg +1 -0
  825. data/app/assets/build/coco/icons/trello.svg +1 -0
  826. data/app/assets/build/coco/icons/trending-down.svg +1 -0
  827. data/app/assets/build/coco/icons/trending-up.svg +1 -0
  828. data/app/assets/build/coco/icons/triangle.svg +1 -0
  829. data/app/assets/build/coco/icons/trophy.svg +1 -0
  830. data/app/assets/build/coco/icons/truck.svg +1 -0
  831. data/app/assets/build/coco/icons/tv-2.svg +1 -0
  832. data/app/assets/build/coco/icons/tv.svg +1 -0
  833. data/app/assets/build/coco/icons/twitch.svg +1 -0
  834. data/app/assets/build/coco/icons/twitter.svg +1 -0
  835. data/app/assets/build/coco/icons/type.svg +1 -0
  836. data/app/assets/build/coco/icons/umbrella.svg +1 -0
  837. data/app/assets/build/coco/icons/underline.svg +1 -0
  838. data/app/assets/build/coco/icons/undo-2.svg +1 -0
  839. data/app/assets/build/coco/icons/undo.svg +1 -0
  840. data/app/assets/build/coco/icons/unlink-2.svg +1 -0
  841. data/app/assets/build/coco/icons/unlink.svg +1 -0
  842. data/app/assets/build/coco/icons/unlock.svg +1 -0
  843. data/app/assets/build/coco/icons/upload-cloud.svg +1 -0
  844. data/app/assets/build/coco/icons/upload.svg +1 -0
  845. data/app/assets/build/coco/icons/usb.svg +1 -0
  846. data/app/assets/build/coco/icons/user-check.svg +1 -0
  847. data/app/assets/build/coco/icons/user-cog.svg +1 -0
  848. data/app/assets/build/coco/icons/user-minus.svg +1 -0
  849. data/app/assets/build/coco/icons/user-plus.svg +1 -0
  850. data/app/assets/build/coco/icons/user-x.svg +1 -0
  851. data/app/assets/build/coco/icons/user.svg +1 -0
  852. data/app/assets/build/coco/icons/users.svg +1 -0
  853. data/app/assets/build/coco/icons/utensils-crossed.svg +1 -0
  854. data/app/assets/build/coco/icons/utensils.svg +1 -0
  855. data/app/assets/build/coco/icons/vegan.svg +1 -0
  856. data/app/assets/build/coco/icons/venetian-mask.svg +1 -0
  857. data/app/assets/build/coco/icons/verified.svg +1 -0
  858. data/app/assets/build/coco/icons/vibrate-off.svg +1 -0
  859. data/app/assets/build/coco/icons/vibrate.svg +1 -0
  860. data/app/assets/build/coco/icons/video-off.svg +1 -0
  861. data/app/assets/build/coco/icons/video.svg +1 -0
  862. data/app/assets/build/coco/icons/view.svg +1 -0
  863. data/app/assets/build/coco/icons/voicemail.svg +1 -0
  864. data/app/assets/build/coco/icons/volume-1.svg +1 -0
  865. data/app/assets/build/coco/icons/volume-2.svg +1 -0
  866. data/app/assets/build/coco/icons/volume-x.svg +1 -0
  867. data/app/assets/build/coco/icons/volume.svg +1 -0
  868. data/app/assets/build/coco/icons/vote.svg +1 -0
  869. data/app/assets/build/coco/icons/wallet.svg +1 -0
  870. data/app/assets/build/coco/icons/wand-2.svg +1 -0
  871. data/app/assets/build/coco/icons/wand.svg +1 -0
  872. data/app/assets/build/coco/icons/watch.svg +1 -0
  873. data/app/assets/build/coco/icons/waves.svg +1 -0
  874. data/app/assets/build/coco/icons/webcam.svg +1 -0
  875. data/app/assets/build/coco/icons/webhook.svg +1 -0
  876. data/app/assets/build/coco/icons/wheat-off.svg +1 -0
  877. data/app/assets/build/coco/icons/wheat.svg +1 -0
  878. data/app/assets/build/coco/icons/wifi-off.svg +1 -0
  879. data/app/assets/build/coco/icons/wifi.svg +1 -0
  880. data/app/assets/build/coco/icons/wind.svg +1 -0
  881. data/app/assets/build/coco/icons/wine-off.svg +1 -0
  882. data/app/assets/build/coco/icons/wine.svg +1 -0
  883. data/app/assets/build/coco/icons/wrap-text.svg +1 -0
  884. data/app/assets/build/coco/icons/wrench.svg +1 -0
  885. data/app/assets/build/coco/icons/x-circle.svg +1 -0
  886. data/app/assets/build/coco/icons/x-octagon.svg +1 -0
  887. data/app/assets/build/coco/icons/x-square.svg +1 -0
  888. data/app/assets/build/coco/icons/x.svg +1 -0
  889. data/app/assets/build/coco/icons/youtube.svg +1 -0
  890. data/app/assets/build/coco/icons/zap-off.svg +1 -0
  891. data/app/assets/build/coco/icons/zap.svg +1 -0
  892. data/app/assets/build/coco/icons/zoom-in.svg +1 -0
  893. data/app/assets/build/coco/icons/zoom-out.svg +1 -0
  894. data/app/assets/build/coco/img/coveragebook-landscape-white.svg +7 -0
  895. data/app/assets/build/coco/img/coveragebook-logomark-white.svg +3 -0
  896. data/app/assets/build/coco/img/slide-bg.jpg +0 -0
  897. data/app/assets/config/coco/manifest.js +1 -0
  898. data/app/assets/css/app/config.css +1 -0
  899. data/app/assets/css/app/tippy.css +15 -0
  900. data/app/assets/css/app/utilities.css +13 -0
  901. data/app/assets/css/app.css +9 -0
  902. data/app/assets/css/base/base.css +24 -0
  903. data/app/assets/css/base/components/coco.css +17 -0
  904. data/app/assets/css/base/components/dropdown.css +7 -0
  905. data/app/assets/css/base/components/tooltip.css +19 -0
  906. data/app/assets/css/base/utils/colors.css +30 -0
  907. data/app/assets/css/base/utils/icons.css +15 -0
  908. data/app/assets/css/book/config.css +1 -0
  909. data/app/assets/css/book.css +4 -0
  910. data/app/assets/css/libs/tippy.css +23 -0
  911. data/app/assets/img/coveragebook-landscape-white.svg +7 -0
  912. data/app/assets/img/coveragebook-logomark-white.svg +3 -0
  913. data/app/assets/img/slide-bg.jpg +0 -0
  914. data/app/assets/js/app/components.js +4 -0
  915. data/app/assets/js/app/mixins/dropdown.js +18 -0
  916. data/app/assets/js/app/mixins/index.js +3 -0
  917. data/app/assets/js/app.js +10 -0
  918. data/app/assets/js/base/components.js +4 -0
  919. data/app/assets/js/base/mixins/attr-observer.js +54 -0
  920. data/app/assets/js/base/mixins/attrs.js +58 -0
  921. data/app/assets/js/base/mixins/dropdown.js +69 -0
  922. data/app/assets/js/base/mixins/index.js +17 -0
  923. data/app/assets/js/base/mixins/options.js +76 -0
  924. data/app/assets/js/base/mixins/size-observer.js +34 -0
  925. data/app/assets/js/base/mixins/tooltip.js +81 -0
  926. data/app/assets/js/base/mixins/undo.js +89 -0
  927. data/app/assets/js/base/setup.js +9 -0
  928. data/app/assets/js/book/components.js +4 -0
  929. data/app/assets/js/book.js +4 -0
  930. data/app/assets/js/coco.js +53 -0
  931. data/app/assets/js/helpers/alpine.js +34 -0
  932. data/app/assets/js/helpers/color.js +51 -0
  933. data/app/assets/js/helpers/dom.js +41 -0
  934. data/app/assets/js/helpers/file.js +11 -0
  935. data/app/assets/js/helpers/lang.js +46 -0
  936. data/app/assets/js/helpers/path.js +5 -0
  937. data/app/assets/js/helpers/screenshot.js +26 -0
  938. data/app/assets/js/helpers/turbo_events.js +13 -0
  939. data/app/assets/js/libs/alpine/index.js +37 -0
  940. data/app/assets/js/libs/alpine/plugins/destroy.js +9 -0
  941. data/app/assets/js/libs/alpine/plugins/dimensions.js +40 -0
  942. data/app/assets/js/libs/alpine/plugins/dropdown.js +88 -0
  943. data/app/assets/js/libs/alpine/plugins/notification.js +98 -0
  944. data/app/assets/js/libs/alpine/plugins/options.js +95 -0
  945. data/app/assets/js/libs/alpine/plugins/tooltip.js +74 -0
  946. data/app/assets/js/libs/alpine/utils/tippy_modifiers.js +39 -0
  947. data/app/assets/js/libs/tippy/index.js +12 -0
  948. data/app/assets/js/libs/tippy/plugins/hide_on_esc.js +23 -0
  949. data/app/components/coco/app/blocks/banner/banner.css +5 -0
  950. data/app/components/coco/app/blocks/banner/banner.rb +8 -0
  951. data/app/components/coco/app/blocks/nav_bar/nav_bar.css +51 -0
  952. data/app/components/coco/app/blocks/nav_bar/nav_bar.html.erb +23 -0
  953. data/app/components/coco/app/blocks/nav_bar/nav_bar.js +31 -0
  954. data/app/components/coco/app/blocks/nav_bar/nav_bar.rb +19 -0
  955. data/app/components/coco/app/blocks/nav_drawer/nav_drawer.css +9 -0
  956. data/app/components/coco/app/blocks/nav_drawer/nav_drawer.html.erb +8 -0
  957. data/app/components/coco/app/blocks/nav_drawer/nav_drawer.js +7 -0
  958. data/app/components/coco/app/blocks/nav_drawer/nav_drawer.rb +9 -0
  959. data/app/components/coco/app/blocks/slat/slat.css +9 -0
  960. data/app/components/coco/app/blocks/slat/slat.rb +13 -0
  961. data/app/components/coco/app/blocks/slide_editor/slide_editor.css +71 -0
  962. data/app/components/coco/app/blocks/slide_editor/slide_editor.html.erb +235 -0
  963. data/app/components/coco/app/blocks/slide_editor/slide_editor.js +178 -0
  964. data/app/components/coco/app/blocks/slide_editor/slide_editor.rb +126 -0
  965. data/app/components/coco/app/elements/alert/alert.css +258 -0
  966. data/app/components/coco/app/elements/alert/alert.html.erb +70 -0
  967. data/app/components/coco/app/elements/alert/alert.js +39 -0
  968. data/app/components/coco/app/elements/alert/alert.rb +72 -0
  969. data/app/components/coco/app/elements/button/button.css +442 -0
  970. data/app/components/coco/app/elements/button/button.rb +62 -0
  971. data/app/components/coco/app/elements/button_group/button_group.css +20 -0
  972. data/app/components/coco/app/elements/button_group/button_group.html.erb +11 -0
  973. data/app/components/coco/app/elements/button_group/button_group.js +82 -0
  974. data/app/components/coco/app/elements/button_group/button_group.rb +28 -0
  975. data/app/components/coco/app/elements/color_picker/color_picker.css +153 -0
  976. data/app/components/coco/app/elements/color_picker/color_picker.html.erb +65 -0
  977. data/app/components/coco/app/elements/color_picker/color_picker.js +102 -0
  978. data/app/components/coco/app/elements/color_picker/color_picker.rb +53 -0
  979. data/app/components/coco/app/elements/color_picker_button/color_picker_button.css +18 -0
  980. data/app/components/coco/app/elements/color_picker_button/color_picker_button.html.erb +23 -0
  981. data/app/components/coco/app/elements/color_picker_button/color_picker_button.js +27 -0
  982. data/app/components/coco/app/elements/color_picker_button/color_picker_button.rb +71 -0
  983. data/app/components/coco/app/elements/confirm_panel/confirm_panel.css +10 -0
  984. data/app/components/coco/app/elements/confirm_panel/confirm_panel.html.erb +17 -0
  985. data/app/components/coco/app/elements/confirm_panel/confirm_panel.js +13 -0
  986. data/app/components/coco/app/elements/confirm_panel/confirm_panel.rb +23 -0
  987. data/app/components/coco/app/elements/form_button/form_button.css +10 -0
  988. data/app/components/coco/app/elements/form_button/form_button.html.erb +12 -0
  989. data/app/components/coco/app/elements/form_button/form_button.rb +47 -0
  990. data/app/components/coco/app/elements/image_picker/image_picker.css +109 -0
  991. data/app/components/coco/app/elements/image_picker/image_picker.html.erb +37 -0
  992. data/app/components/coco/app/elements/image_picker/image_picker.js +49 -0
  993. data/app/components/coco/app/elements/image_picker/image_picker.rb +34 -0
  994. data/app/components/coco/app/elements/image_picker_button/image_picker_button.css +14 -0
  995. data/app/components/coco/app/elements/image_picker_button/image_picker_button.html.erb +20 -0
  996. data/app/components/coco/app/elements/image_picker_button/image_picker_button.js +67 -0
  997. data/app/components/coco/app/elements/image_picker_button/image_picker_button.rb +85 -0
  998. data/app/components/coco/app/elements/link/link.css +60 -0
  999. data/app/components/coco/app/elements/link/link.rb +14 -0
  1000. data/app/components/coco/app/elements/menu/menu.css +65 -0
  1001. data/app/components/coco/app/elements/menu/menu.html.erb +9 -0
  1002. data/app/components/coco/app/elements/menu/menu.rb +40 -0
  1003. data/app/components/coco/app/elements/menu_button/menu_button.css +28 -0
  1004. data/app/components/coco/app/elements/menu_button/menu_button.html.erb +11 -0
  1005. data/app/components/coco/app/elements/menu_button/menu_button.js +6 -0
  1006. data/app/components/coco/app/elements/menu_button/menu_button.rb +36 -0
  1007. data/app/components/coco/app/elements/notice/notice.css +5 -0
  1008. data/app/components/coco/app/elements/notice/notice.html.erb +5 -0
  1009. data/app/components/coco/app/elements/notice/notice.js +5 -0
  1010. data/app/components/coco/app/elements/notice/notice.rb +22 -0
  1011. data/app/components/coco/app/elements/seamless_textarea/seamless_textarea.css +30 -0
  1012. data/app/components/coco/app/elements/seamless_textarea/seamless_textarea.html.erb +12 -0
  1013. data/app/components/coco/app/elements/seamless_textarea/seamless_textarea.js +37 -0
  1014. data/app/components/coco/app/elements/seamless_textarea/seamless_textarea.rb +44 -0
  1015. data/app/components/coco/app/elements/snackbar/snackbar.css +105 -0
  1016. data/app/components/coco/app/elements/snackbar/snackbar.html.erb +36 -0
  1017. data/app/components/coco/app/elements/snackbar/snackbar.js +25 -0
  1018. data/app/components/coco/app/elements/snackbar/snackbar.rb +38 -0
  1019. data/app/components/coco/app/elements/system_banner/system_banner.css +4 -0
  1020. data/app/components/coco/app/elements/system_banner/system_banner.html.erb +5 -0
  1021. data/app/components/coco/app/elements/system_banner/system_banner.js +5 -0
  1022. data/app/components/coco/app/elements/system_banner/system_banner.rb +29 -0
  1023. data/app/components/coco/app/elements/toast/toast.css +43 -0
  1024. data/app/components/coco/app/elements/toast/toast.html.erb +9 -0
  1025. data/app/components/coco/app/elements/toast/toast.js +26 -0
  1026. data/app/components/coco/app/elements/toast/toast.rb +23 -0
  1027. data/app/components/coco/app/elements/toolbar/toolbar.css +19 -0
  1028. data/app/components/coco/app/elements/toolbar/toolbar.html.erb +10 -0
  1029. data/app/components/coco/app/elements/toolbar/toolbar.js +49 -0
  1030. data/app/components/coco/app/elements/toolbar/toolbar.rb +41 -0
  1031. data/app/components/coco/app/fields/button_component.rb +16 -0
  1032. data/app/components/coco/app/fields/check_box_component.rb +9 -0
  1033. data/app/components/coco/app/fields/collection_check_boxes_component.rb +9 -0
  1034. data/app/components/coco/app/fields/collection_radio_buttons_component.rb +9 -0
  1035. data/app/components/coco/app/fields/collection_select_component.rb +9 -0
  1036. data/app/components/coco/app/fields/color_field_component.rb +9 -0
  1037. data/app/components/coco/app/fields/date_field_component.rb +9 -0
  1038. data/app/components/coco/app/fields/date_select_component.rb +9 -0
  1039. data/app/components/coco/app/fields/datetime_local_field_component.rb +9 -0
  1040. data/app/components/coco/app/fields/datetime_select_component.rb +9 -0
  1041. data/app/components/coco/app/fields/email_field_component.rb +9 -0
  1042. data/app/components/coco/app/fields/error_message_component.rb +9 -0
  1043. data/app/components/coco/app/fields/file_field_component.rb +9 -0
  1044. data/app/components/coco/app/fields/grouped_collection_select_component.rb +9 -0
  1045. data/app/components/coco/app/fields/hint_component.rb +9 -0
  1046. data/app/components/coco/app/fields/label_component.rb +9 -0
  1047. data/app/components/coco/app/fields/month_field_component.rb +9 -0
  1048. data/app/components/coco/app/fields/number_field_component.rb +9 -0
  1049. data/app/components/coco/app/fields/password_field_component.rb +9 -0
  1050. data/app/components/coco/app/fields/radio_button_component.rb +9 -0
  1051. data/app/components/coco/app/fields/range_field_component.rb +9 -0
  1052. data/app/components/coco/app/fields/search_field_component.rb +9 -0
  1053. data/app/components/coco/app/fields/select_component.rb +9 -0
  1054. data/app/components/coco/app/fields/submit_component.rb +15 -0
  1055. data/app/components/coco/app/fields/telephone_field_component.rb +9 -0
  1056. data/app/components/coco/app/fields/text_area_component.rb +9 -0
  1057. data/app/components/coco/app/fields/text_field_component.rb +9 -0
  1058. data/app/components/coco/app/fields/time_field_component.rb +9 -0
  1059. data/app/components/coco/app/fields/time_select_component.rb +9 -0
  1060. data/app/components/coco/app/fields/time_zone_select_component.rb +9 -0
  1061. data/app/components/coco/app/fields/url_field_component.rb +9 -0
  1062. data/app/components/coco/app/fields/week_field_component.rb +9 -0
  1063. data/app/components/coco/app/fields/weekday_select_component.rb +9 -0
  1064. data/app/components/coco/app/layouts/application/application.css +9 -0
  1065. data/app/components/coco/app/layouts/application/application.html.erb +9 -0
  1066. data/app/components/coco/app/layouts/application/application.rb +12 -0
  1067. data/app/components/coco/base/button/button.css +76 -0
  1068. data/app/components/coco/base/button/button.html.erb +73 -0
  1069. data/app/components/coco/base/button/button.js +187 -0
  1070. data/app/components/coco/base/button/button.rb +228 -0
  1071. data/app/components/coco/base/content/content.rb +12 -0
  1072. data/app/components/coco/base/dropdown/dropdown.css +10 -0
  1073. data/app/components/coco/base/dropdown/dropdown.html.erb +8 -0
  1074. data/app/components/coco/base/dropdown/dropdown.js +7 -0
  1075. data/app/components/coco/base/dropdown/dropdown.rb +7 -0
  1076. data/app/components/coco/base/embeds/youtube/youtube.css +9 -0
  1077. data/app/components/coco/base/embeds/youtube/youtube.html.erb +3 -0
  1078. data/app/components/coco/base/embeds/youtube/youtube.rb +20 -0
  1079. data/app/components/coco/base/icon/icon.css +51 -0
  1080. data/app/components/coco/base/icon/icon.html.erb +8 -0
  1081. data/app/components/coco/base/icon/icon.js +27 -0
  1082. data/app/components/coco/base/icon/icon.rb +38 -0
  1083. data/app/components/coco/base/image/image.css +5 -0
  1084. data/app/components/coco/base/image/image.rb +17 -0
  1085. data/app/components/coco/base/image_uploader/image_uploader.css +13 -0
  1086. data/app/components/coco/base/image_uploader/image_uploader.html.erb +18 -0
  1087. data/app/components/coco/base/image_uploader/image_uploader.js +84 -0
  1088. data/app/components/coco/base/image_uploader/image_uploader.rb +32 -0
  1089. data/app/components/coco/base/link/link.css +25 -0
  1090. data/app/components/coco/base/link/link.rb +20 -0
  1091. data/app/components/coco/base/placeholder/placeholder.css +17 -0
  1092. data/app/components/coco/base/placeholder/placeholder.html.erb +7 -0
  1093. data/app/components/coco/base/placeholder/placeholder.rb +7 -0
  1094. data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.css +107 -0
  1095. data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.html.erb +24 -0
  1096. data/app/components/coco/book/blocks/slides/editable_slide/editable_slide.rb +49 -0
  1097. data/app/components/coco/book/blocks/slides/media_slide/media_slide.css +7 -0
  1098. data/app/components/coco/book/blocks/slides/media_slide/media_slide.html.erb +3 -0
  1099. data/app/components/coco/book/blocks/slides/media_slide/media_slide.rb +16 -0
  1100. data/app/components/coco/component.rb +109 -0
  1101. data/app/components/coco/concerns/accepts_options.rb +31 -0
  1102. data/app/components/coco/concerns/accepts_tag_attributes.rb +61 -0
  1103. data/app/components/coco/concerns/accepts_theme.rb +19 -0
  1104. data/app/components/coco/concerns/acts_as_button_group.rb +59 -0
  1105. data/app/components/coco/concerns/acts_as_field_with_html_options.rb +15 -0
  1106. data/app/components/coco/concerns/acts_as_field_with_options.rb +16 -0
  1107. data/app/components/coco/concerns/acts_as_link.rb +19 -0
  1108. data/app/components/coco/concerns/acts_as_notification.rb +16 -0
  1109. data/app/components/coco/concerns/extendable.rb +16 -0
  1110. data/app/components/coco/concerns/has_name.rb +34 -0
  1111. data/app/components/coco/concerns/with_dropdown.rb +15 -0
  1112. data/app/components/coco/concerns/with_dropdown_options.rb +17 -0
  1113. data/app/components/coco/concerns/with_icon.rb +28 -0
  1114. data/app/components/coco/concerns/with_tooltip.rb +25 -0
  1115. data/app/components/coco/concerns/wraps_component.rb +43 -0
  1116. data/app/components/coco/presented_component.rb +31 -0
  1117. data/app/components/coco/tag.rb +51 -0
  1118. data/app/helpers/coco/alpine_helper.rb +63 -0
  1119. data/app/helpers/coco/app_helper.rb +86 -0
  1120. data/app/helpers/coco/base_helper.rb +28 -0
  1121. data/app/helpers/coco/book_helper.rb +11 -0
  1122. data/app/helpers/coco/component_helper.rb +15 -0
  1123. data/app/helpers/coco/format_helper.rb +11 -0
  1124. data/app/helpers/coco/helpers.rb +7 -0
  1125. data/app/helpers/coco/integration_helper.rb +19 -0
  1126. data/app/helpers/coco/tag_helper.rb +18 -0
  1127. data/app/helpers/coco/url_helper.rb +32 -0
  1128. data/lib/coco/action_view_helper.rb +134 -0
  1129. data/lib/coco/app_form_builder.rb +3 -0
  1130. data/lib/coco/component_resolver.rb +37 -0
  1131. data/lib/coco/engine.rb +43 -0
  1132. data/lib/coco/options/group.rb +185 -0
  1133. data/lib/coco/options/item.rb +29 -0
  1134. data/lib/coco/options/option.rb +58 -0
  1135. data/lib/coco/preview.rb +12 -0
  1136. data/lib/coco/test_helpers.rb +42 -0
  1137. data/lib/coco.rb +3 -0
  1138. data/lib/coveragebook_components.rb +18 -0
  1139. data/lib/generators/coco/USAGE +11 -0
  1140. data/lib/generators/coco/coco_generator.rb +93 -0
  1141. data/lib/generators/coco/templates/component.css.tt +5 -0
  1142. data/lib/generators/coco/templates/component.html.erb.tt +3 -0
  1143. data/lib/generators/coco/templates/component.js.tt +7 -0
  1144. data/lib/generators/coco/templates/component.rb.tt +6 -0
  1145. data/lib/generators/coco/templates/preview.rb.tt +9 -0
  1146. data/lib/generators/coco/templates/test.rb.tt +10 -0
  1147. data/lib/scripts/esbuild-plugin-build-icons.js +60 -0
  1148. data/lib/scripts/esbuild-plugin-clean.js +97 -0
  1149. data/lib/scripts/esbuild-plugin-import-glob.js +61 -0
  1150. data/lib/scripts/map-aliased-path.js +25 -0
  1151. data/lib/scripts/postcss-import-alias-glob.cjs +96 -0
  1152. data/lib/tasks/coco_tasks.rake +52 -0
  1153. metadata +1236 -0
@@ -0,0 +1,134 @@
1
+ module Coco
2
+ module ActionViewHelper
3
+ include ActionView::Helpers::UrlHelper
4
+ extend self
5
+
6
+ def convert_options_to_data_attributes(options, html_options)
7
+ if html_options
8
+ html_options = html_options.stringify_keys
9
+ html_options["data-remote"] = "true" if link_to_remote_options?(options) || link_to_remote_options?(html_options)
10
+
11
+ method = html_options.delete("method")
12
+
13
+ add_method_to_attributes!(html_options, method) if method
14
+
15
+ html_options
16
+ else
17
+ link_to_remote_options?(options) ? {"data-remote" => "true"} : {}
18
+ end
19
+ end
20
+
21
+ def url_target(name, options)
22
+ if name.respond_to?(:model_name) && options.is_a?(Hash) && options.empty?
23
+ url_for(name)
24
+ else
25
+ url_for(options)
26
+ end
27
+ end
28
+
29
+ def link_to_remote_options?(options)
30
+ if options.is_a?(Hash)
31
+ options.delete("remote") || options.delete(:remote)
32
+ end
33
+ end
34
+
35
+ def add_method_to_attributes!(html_options, method)
36
+ if method_not_get_method?(method) && !html_options["rel"]&.match?(/nofollow/)
37
+ html_options["rel"] = if html_options["rel"].blank?
38
+ "nofollow"
39
+ else
40
+ "#{html_options["rel"]} nofollow"
41
+ end
42
+ end
43
+ html_options["data-method"] = method
44
+ end
45
+
46
+ def method_for_options(options)
47
+ if options.is_a?(Array)
48
+ method_for_options(options.last)
49
+ elsif options.respond_to?(:persisted?)
50
+ options.persisted? ? :patch : :post
51
+ elsif options.respond_to?(:to_model)
52
+ method_for_options(options.to_model)
53
+ end
54
+ end
55
+
56
+ STRINGIFIED_COMMON_METHODS = {
57
+ get: "get",
58
+ delete: "delete",
59
+ patch: "patch",
60
+ post: "post",
61
+ put: "put"
62
+ }.freeze
63
+
64
+ def method_not_get_method?(method)
65
+ return false unless method
66
+ (STRINGIFIED_COMMON_METHODS[method] || method.to_s.downcase) != "get"
67
+ end
68
+
69
+ def token_tag(token = nil, form_options: {})
70
+ if token != false && defined?(protect_against_forgery?) && protect_against_forgery?
71
+ token =
72
+ if token == true || token.nil?
73
+ form_authenticity_token(form_options: form_options.merge(authenticity_token: token))
74
+ else
75
+ token
76
+ end
77
+ tag(:input, type: "hidden", name: request_forgery_protection_token.to_s, value: token, autocomplete: "off")
78
+ else
79
+ ""
80
+ end
81
+ end
82
+
83
+ def method_tag(method)
84
+ tag("input", type: "hidden", name: "_method", value: method.to_s, autocomplete: "off")
85
+ end
86
+
87
+ # Returns an array of hashes each containing :name and :value keys
88
+ # suitable for use as the names and values of form input fields:
89
+ #
90
+ # to_form_params(name: 'David', nationality: 'Danish')
91
+ # # => [{name: 'name', value: 'David'}, {name: 'nationality', value: 'Danish'}]
92
+ #
93
+ # to_form_params(country: { name: 'Denmark' })
94
+ # # => [{name: 'country[name]', value: 'Denmark'}]
95
+ #
96
+ # to_form_params(countries: ['Denmark', 'Sweden']})
97
+ # # => [{name: 'countries[]', value: 'Denmark'}, {name: 'countries[]', value: 'Sweden'}]
98
+ #
99
+ # An optional namespace can be passed to enclose key names:
100
+ #
101
+ # to_form_params({ name: 'Denmark' }, 'country')
102
+ # # => [{name: 'country[name]', value: 'Denmark'}]
103
+ def to_form_params(attribute, namespace = nil)
104
+ attribute = if attribute.respond_to?(:permitted?)
105
+ attribute.to_h
106
+ else
107
+ attribute
108
+ end
109
+
110
+ params = []
111
+ case attribute
112
+ when Hash
113
+ attribute.each do |key, value|
114
+ prefix = namespace ? "#{namespace}[#{key}]" : key
115
+ params.push(*to_form_params(value, prefix))
116
+ end
117
+ when Array
118
+ array_prefix = "#{namespace}[]"
119
+ attribute.each do |value|
120
+ params.push(*to_form_params(value, array_prefix))
121
+ end
122
+ else
123
+ params << {name: namespace.to_s, value: attribute.to_param}
124
+ end
125
+
126
+ params.sort_by { |pair| pair[:name] }
127
+ end
128
+
129
+ def remove_trailing_slash!(url_string)
130
+ trailing_index = (url_string.index("?") || 0) - 1
131
+ url_string[trailing_index] = "" if url_string[trailing_index] == "/"
132
+ end
133
+ end
134
+ end
@@ -0,0 +1,3 @@
1
+ class Coco::AppFormBuilder < ViewComponent::Form::Builder
2
+ namespace "Coco::App::Fields"
3
+ end
@@ -0,0 +1,37 @@
1
+ module Coco
2
+ class ComponentResolver
3
+ CLASS_CACHE = {}
4
+
5
+ delegate_missing_to :@klass
6
+
7
+ def initialize(klass, *args, **kwargs)
8
+ @klass = klass
9
+ @args = args
10
+ @kwargs = kwargs
11
+ end
12
+
13
+ def render_in(view_context, ...)
14
+ view_context.render(instance, ...)
15
+ end
16
+
17
+ def instance
18
+ @_instance ||= @klass.new(*@args, **@kwargs)
19
+ end
20
+
21
+ class << self
22
+ def new(target, *args, **kwargs)
23
+ klass = target.is_a?(String) ? lookup_class(target) : target
24
+
25
+ if args.any? || kwargs.any?
26
+ klass.new(*args, **kwargs)
27
+ else
28
+ super(klass, *args, **kwargs)
29
+ end
30
+ end
31
+
32
+ def lookup_class(path)
33
+ CLASS_CACHE[path] ||= path.tr("-", "_").camelize.constantize
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,43 @@
1
+ require "rails/engine"
2
+ require "view_component"
3
+
4
+ module Coco
5
+ class Engine < ::Rails::Engine
6
+ isolate_namespace Coco
7
+
8
+ COLLAPSE_DIRS = %w[base]
9
+
10
+ config.autoload_paths += %W[
11
+ #{root}/app/components
12
+ #{root}/app/helpers
13
+ ]
14
+
15
+ initializer "coco.autoloading" do |app|
16
+ coco_dir = "#{root}/app/components/coco"
17
+
18
+ app.autoloaders.each do |autoloader|
19
+ COLLAPSE_DIRS.each do |path|
20
+ autoloader.collapse("#{coco_dir}/#{path}")
21
+ end
22
+
23
+ Dir.glob("#{coco_dir}/base/**/*.rb").each do |path|
24
+ autoloader.collapse(File.dirname(path))
25
+ end
26
+
27
+ Dir.glob("#{coco_dir}/{app,book}/{blocks,elements,layouts}/**/*.rb").each do |path|
28
+ autoloader.collapse(File.dirname(path))
29
+ end
30
+ end
31
+
32
+ Rails.application.config.to_prepare do
33
+ Rails.autoloaders.main.eager_load_dir(coco_dir)
34
+ end
35
+ end
36
+
37
+ initializer "coco.assets" do |app|
38
+ if app.config.respond_to?(:assets)
39
+ app.config.assets.precompile += %w[coco/manifest.js *.svg]
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,185 @@
1
+ module Coco
2
+ module Options
3
+ class Group
4
+ include Options::Item
5
+
6
+ attr_accessor :shorthand
7
+ attr_reader :name, :items
8
+
9
+ def initialize(name, shorthand: nil, **kwargs)
10
+ @name = name.to_sym
11
+ @shorthand = shorthand&.to_sym
12
+ @alias = kwargs.fetch(:alias, nil)
13
+ @private = kwargs.fetch(:private, false)
14
+ @items = []
15
+ end
16
+
17
+ def accepts_option(...)
18
+ if block_given?
19
+ subgroup = Group.new(...)
20
+ yield subgroup
21
+ add_group(subgroup)
22
+ else
23
+ add_option(...)
24
+ end
25
+ end
26
+
27
+ def add_option(...)
28
+ items << Option.new(...)
29
+ end
30
+
31
+ def add_group(...)
32
+ items << Group.new(...)
33
+ end
34
+
35
+ # Like #dig... but for options.
36
+ #
37
+ # get_option(:size)
38
+ # get_option(:dropdown, :placement)
39
+ def get_option(*args)
40
+ option_name = args.pop.to_sym
41
+ group = get_group(*args)
42
+ group.items.find { _1.name == option_name && _1.is_a?(Option) }
43
+ end
44
+
45
+ def get_option!(*args)
46
+ get_option(*args) || raise("Unknown option: `#{args.join(", ")}`")
47
+ end
48
+
49
+ def option?(...)
50
+ !!get_option(...)
51
+ end
52
+
53
+ def get_option_value(...)
54
+ get_option!(...).value
55
+ end
56
+
57
+ def set_option_value(*args, value)
58
+ if option?(*args)
59
+ get_option(*args).value = value
60
+ elsif group?(*args)
61
+ group = get_group(*args)
62
+ if group.shorthand
63
+ group.set_option_value(group.shorthand, value)
64
+ end
65
+ end
66
+ end
67
+
68
+ def option_value_equals?(*args, check)
69
+ get_option_value(*args) == check
70
+ end
71
+
72
+ def merge_option_values(*args, values, overwrite: true)
73
+ get_group!(*args).items.each do |item|
74
+ if values.key?(item.name)
75
+ value = values[item.name]
76
+ if item.is_a?(Option)
77
+ item.value = value if overwrite || item.undefined?
78
+ elsif value.is_a?(Hash) || item.shorthand
79
+ value = value.is_a?(Hash) ? value : [[item.shorthand, value]].to_h
80
+ item.merge_option_values(value, overwrite: overwrite)
81
+ end
82
+ end
83
+ end
84
+ end
85
+
86
+ # Like #dig... but for groups.
87
+ def get_group(*args)
88
+ current = args.any? ? nil : self
89
+ args.each do |group_name|
90
+ next_group = (current || self).groups.find { _1.name == group_name.to_sym }
91
+ current = next_group || break
92
+ end
93
+ current
94
+ end
95
+
96
+ def get_group!(*args)
97
+ get_group(*args) || raise("Unknown group: `#{args.join(", ")}`")
98
+ end
99
+
100
+ def group?(...)
101
+ !!get_group(...)
102
+ end
103
+
104
+ def validate_required!
105
+ items.map(&:validate_required!)
106
+ end
107
+
108
+ def option_names
109
+ items.map(&:name)
110
+ end
111
+
112
+ def values
113
+ items.map do |item|
114
+ [item.name, item.is_a?(Option) ? item.value : item.values]
115
+ end.to_h
116
+ end
117
+
118
+ def public_items
119
+ items.filter(&:public?)
120
+ end
121
+
122
+ def flattened_attribute_values(key_prefix = nil)
123
+ public_items.each_with_object([]) do |item, values|
124
+ key = [key_prefix, item.html_alias].compact.join("-")
125
+ if item.is_a?(Option)
126
+ item.value.nil? ? values : values.push([key, item.value])
127
+ else
128
+ values.push(*item.flattened_attribute_values(key).to_a)
129
+ end
130
+ end.to_h
131
+ end
132
+
133
+ def to_h
134
+ {
135
+ name: name,
136
+ alias: @alias,
137
+ shorthand: shorthand,
138
+ options: items.map(&:to_h)
139
+ }
140
+ end
141
+
142
+ def clone
143
+ Group.from_h(to_h)
144
+ end
145
+
146
+ protected
147
+
148
+ # All options in this group.
149
+ # Does not include options in subgroups.
150
+ def options
151
+ items.filter { _1.is_a?(Option) }
152
+ end
153
+
154
+ # All groups in this group
155
+ # Does not include groups in subgroups.
156
+ def groups
157
+ items.filter { _1.is_a?(Group) }
158
+ end
159
+
160
+ class << self
161
+ # Recursively create an options tree from a hash.
162
+ #
163
+ # {
164
+ # name: :root,
165
+ # options: [
166
+ # { name: :size, default: "md" },
167
+ # { name: :dropdown, options: [{name: :placement, from: [:left, :right]}] }
168
+ # }
169
+ # }
170
+ def from_h(data)
171
+ group = Group.new(data.fetch(:name), **data.except(:options, :name))
172
+ data.fetch(:options, []).each do |option|
173
+ if option.key?(:options)
174
+ subgroup = Group.from_h(option)
175
+ group.add_group(subgroup)
176
+ else
177
+ group.add_option(option.fetch(:name), **option.except(:name))
178
+ end
179
+ end
180
+ group
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end
@@ -0,0 +1,29 @@
1
+ module Coco
2
+ module Options
3
+ module Item
4
+ extend ActiveSupport::Concern
5
+
6
+ def alias
7
+ @alias || name
8
+ end
9
+
10
+ def html_alias
11
+ self.alias.to_s.tr("_", "-")
12
+ end
13
+
14
+ def private?
15
+ @private == true
16
+ end
17
+
18
+ def public?
19
+ !private?
20
+ end
21
+
22
+ class_methods do
23
+ def new(arg, **opts)
24
+ arg.is_a?(self) ? arg : super(arg, **opts)
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -0,0 +1,58 @@
1
+ module Coco
2
+ module Options
3
+ class Option
4
+ include Options::Item
5
+
6
+ attr_accessor :default
7
+ attr_reader :from, :name
8
+
9
+ def initialize(name, required: false, value: :undefined, from: nil, **kwargs)
10
+ @name = name.to_sym
11
+ @required = required
12
+ @value = value
13
+ @from = Array(from)
14
+ @private = kwargs.fetch(:private, false)
15
+ @default = kwargs.fetch(:default, nil)
16
+ @alias = kwargs.fetch(:alias, nil)
17
+ end
18
+
19
+ def validate_required!
20
+ if required? && undefined?
21
+ raise ArgumentError, "The `#{name}` option requires a value"
22
+ end
23
+ end
24
+
25
+ def required?
26
+ @required == true
27
+ end
28
+
29
+ def undefined?
30
+ @value == :undefined
31
+ end
32
+
33
+ def value
34
+ undefined? ? default : @value
35
+ end
36
+
37
+ def value=(val)
38
+ if from.any? && !from.include?(val)
39
+ raise ArgumentError, "`#{val}` is not a valid #{name} value.\n\tAvailable options: #{from}"
40
+ end
41
+ @value = val
42
+ end
43
+
44
+ def to_h
45
+ h = {
46
+ name: name,
47
+ alias: @alias,
48
+ required: required?,
49
+ private: private?,
50
+ from: from,
51
+ default: default
52
+ }
53
+ h[:value] = @value unless undefined?
54
+ h
55
+ end
56
+ end
57
+ end
58
+ end
@@ -0,0 +1,12 @@
1
+ module Coco
2
+ class Preview < ViewComponent::Preview
3
+ include Coco::Helpers
4
+
5
+ protected
6
+
7
+ def icon_names
8
+ @_icons ||= icon_data_file = File.join(File.dirname(__FILE__), "../../config/icons.json")
9
+ JSON.parse(File.read(icon_data_file)).map { _1.tr("-", "_") }
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,42 @@
1
+ module Coco
2
+ module TestHelpers
3
+ NESTED_TAG_ATTRS = %w[data test_data x]
4
+
5
+ def create_class(name, parent)
6
+ klass = Class.new(parent)
7
+ Object.const_set(name, klass)
8
+ klass
9
+ end
10
+
11
+ def assert_component_selector(name, text: nil, visible: nil, **opts)
12
+ assert_selector(component_selector(name, **opts), text: text, visible: visible)
13
+ end
14
+
15
+ def component_selector(name, **opts)
16
+ attr_selector = build_attr_selector(opts.except(:append, :tag))
17
+ "#{opts[:tag]}[data-component='#{name}']#{attr_selector}#{opts[:append]}".strip
18
+ end
19
+
20
+ def build_attr_selector(attrs)
21
+ tag_attrs = attrs.except(*NESTED_TAG_ATTRS)
22
+ NESTED_TAG_ATTRS.each do |key|
23
+ subattrs = attrs.fetch(key, {})
24
+ tag_attrs.merge!(prefix_keys(subattrs, key))
25
+ end
26
+ attrs.reduce("") do |str, (key, value)|
27
+ if value.is_a?(Hash)
28
+ value.each do |k, v|
29
+ str += "[#{key}-#{k}='#{v}']"
30
+ end
31
+ else
32
+ str += "[#{key}='#{value}']"
33
+ end
34
+ str
35
+ end
36
+ end
37
+
38
+ def prefix_keys(attrs, prefix)
39
+ attrs.transform_keys! { [prefix, _1].map(&:to_s).join("-").tr("_", "-") }
40
+ end
41
+ end
42
+ end
data/lib/coco.rb ADDED
@@ -0,0 +1,3 @@
1
+ module Coco
2
+ VERSION = "0.5.0"
3
+ end
@@ -0,0 +1,18 @@
1
+ require "zeitwerk"
2
+ require "coco"
3
+ require "coco/engine"
4
+
5
+ loader = Zeitwerk::Loader.for_gem
6
+ loader.ignore("#{__dir__}/coco.rb")
7
+ loader.ignore("#{__dir__}/coveragebook_components.rb")
8
+ loader.push_dir("#{__dir__}/coco", namespace: Coco)
9
+ loader.ignore("#{__dir__}/generators")
10
+ loader.setup
11
+
12
+ module CoveragebookComponents
13
+ class << self
14
+ def version
15
+ Coco::VERSION
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,11 @@
1
+ Description:
2
+ Generates a new Coco component with test and preview
3
+
4
+ Example:
5
+ rails generate coco App::Elements::Button
6
+
7
+ Creates the component class and associated files
8
+ app/components/coco/app/elements/button/component.rb
9
+ app/components/coco/app/elements/button/component.html.erb
10
+ lookbook/app/previews/app/elements/button_component_preview.rb
11
+ test/components/coco/app/elements/button_component_test.rb
@@ -0,0 +1,93 @@
1
+ class CocoGenerator < Rails::Generators::NamedBase
2
+ source_root File.expand_path("templates", __dir__)
3
+
4
+ argument :attributes, type: :array, default: [], banner: "attribute"
5
+
6
+ def create_component_file
7
+ template "component.rb", component_file_path
8
+ end
9
+
10
+ def create_template_file
11
+ template "component.html.erb", template_file_path
12
+ end
13
+
14
+ def create_css_file
15
+ template "component.css", css_file_path
16
+ end
17
+
18
+ def create_js_file
19
+ template "component.js", js_file_path
20
+ end
21
+
22
+ def create_preview_file
23
+ template "preview.rb", preview_file_path
24
+ end
25
+
26
+ def create_test_file
27
+ template "test.rb", test_file_path
28
+ end
29
+
30
+ private
31
+
32
+ def component_dir
33
+ File.join("app/components", class_path, file_name)
34
+ end
35
+
36
+ def component_file_path
37
+ File.join(component_dir, "component.rb")
38
+ end
39
+
40
+ def template_file_path
41
+ File.join(component_dir, "component.html.erb")
42
+ end
43
+
44
+ def js_file_path
45
+ File.join(component_dir, "component.js")
46
+ end
47
+
48
+ def css_file_path
49
+ File.join(component_dir, "component.css")
50
+ end
51
+
52
+ def preview_file_path
53
+ File.join("lookbook/app/previews", class_path_no_coco, "#{file_name}_component_preview.rb")
54
+ end
55
+
56
+ def test_file_path
57
+ File.join("test/components", class_path_no_coco, "#{file_name}_component_test.rb")
58
+ end
59
+
60
+ def modules_count
61
+ class_namespace_modules.size
62
+ end
63
+
64
+ def indent(level)
65
+ level.times.collect { "\t" }.join
66
+ end
67
+
68
+ def zeitwerk_class_name
69
+ class_name.split("::").filter { !%w[Elements Blocks Layouts Base].include?(_1) }.join("::")
70
+ end
71
+
72
+ def class_path_no_coco
73
+ class_path.drop(1)
74
+ end
75
+
76
+ def component_class
77
+ class_name.split("::").last.to_s
78
+ end
79
+
80
+ def class_namespace_modules
81
+ parts = class_name.split("::")
82
+ parts.first parts.size - 1
83
+ end
84
+
85
+ def component_ref
86
+ parts = class_name.delete_prefix("Base::").underscore.dasherize.downcase.split("/")
87
+ parts.many? ? [parts.first, parts.last].join("-") : parts.first
88
+ end
89
+
90
+ def component_js_name
91
+ component_ref.tr("-", "_").camelize(:lower)
92
+ end
93
+ end
@@ -0,0 +1,5 @@
1
+ @layer components {
2
+ [data-coco][data-component="<%= component_ref %>"] {
3
+ /* CSS here */
4
+ }
5
+ }
@@ -0,0 +1,3 @@
1
+ <%%= render component_tag(x: { data: "<%= component_js_name %>" }) do %>
2
+ <%%= content %>
3
+ <%% end %>
@@ -0,0 +1,7 @@
1
+ import { CocoComponent } from "@js/coco";
2
+
3
+ export default CocoComponent("<%= component_js_name %>", () => {
4
+ return {
5
+ // Alpine data properties
6
+ };
7
+ });