rails-active-ui 0.2.2 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/datatables.css +15 -0
  3. data/app/assets/stylesheets.css +5 -1
  4. data/app/blocks/resource_list_block.rb +153 -0
  5. data/app/components/back_button_component.rb +34 -0
  6. data/app/components/button_component.rb +4 -2
  7. data/app/components/button_to_component.rb +3 -4
  8. data/app/components/column_component.rb +1 -1
  9. data/app/components/container_component.rb +1 -1
  10. data/app/components/dropdown_component.rb +8 -2
  11. data/app/components/grid_component.rb +5 -1
  12. data/app/components/link_to_component.rb +23 -0
  13. data/app/components/menu_item_component.rb +5 -1
  14. data/app/components/message_component.rb +3 -1
  15. data/app/components/modal_component.rb +23 -3
  16. data/app/components/paragraph_component.rb +13 -0
  17. data/app/components/row_component.rb +1 -1
  18. data/app/components/table_row_component.rb +3 -5
  19. data/app/components/template_component.rb +13 -0
  20. data/app/helpers/component_helper.rb +122 -76
  21. data/app/helpers/fui_helper.rb +37 -0
  22. data/app/javascript/datatables.js +10 -0
  23. data/app/javascript/ui/controllers/fui_datatable_controller.js +35 -0
  24. data/app/javascript/ui/controllers/fui_dropdown_controller.js +8 -1
  25. data/app/javascript/ui/controllers/fui_item_list_controller.js +40 -0
  26. data/app/javascript/ui/controllers/navigation_controller.js +23 -0
  27. data/app/javascript/ui/index.js +11 -0
  28. data/app/lib/component.rb +1 -1
  29. data/config/importmap.rb +3 -0
  30. data/config/initializers/ruby_template_handler.rb +4 -1
  31. data/formantic-ui/components/accordion.css +369 -0
  32. data/formantic-ui/components/accordion.js +595 -0
  33. data/formantic-ui/components/accordion.min.css +9 -0
  34. data/formantic-ui/components/accordion.min.js +11 -0
  35. data/formantic-ui/components/ad.css +264 -0
  36. data/formantic-ui/components/ad.min.css +10 -0
  37. data/formantic-ui/components/api.js +1225 -0
  38. data/formantic-ui/components/api.min.js +11 -0
  39. data/formantic-ui/components/breadcrumb.css +135 -0
  40. data/formantic-ui/components/breadcrumb.min.css +9 -0
  41. data/formantic-ui/components/button.css +4058 -0
  42. data/formantic-ui/components/button.min.css +9 -0
  43. data/formantic-ui/components/calendar.css +327 -0
  44. data/formantic-ui/components/calendar.js +2045 -0
  45. data/formantic-ui/components/calendar.min.css +9 -0
  46. data/formantic-ui/components/calendar.min.js +11 -0
  47. data/formantic-ui/components/card.css +1881 -0
  48. data/formantic-ui/components/card.min.css +9 -0
  49. data/formantic-ui/components/checkbox.css +785 -0
  50. data/formantic-ui/components/checkbox.js +888 -0
  51. data/formantic-ui/components/checkbox.min.css +9 -0
  52. data/formantic-ui/components/checkbox.min.js +11 -0
  53. data/formantic-ui/components/comment.css +283 -0
  54. data/formantic-ui/components/comment.min.css +9 -0
  55. data/formantic-ui/components/container.css +300 -0
  56. data/formantic-ui/components/container.min.css +9 -0
  57. data/formantic-ui/components/dimmer.css +367 -0
  58. data/formantic-ui/components/dimmer.js +732 -0
  59. data/formantic-ui/components/dimmer.min.css +9 -0
  60. data/formantic-ui/components/dimmer.min.js +11 -0
  61. data/formantic-ui/components/divider.css +287 -0
  62. data/formantic-ui/components/divider.min.css +9 -0
  63. data/formantic-ui/components/dropdown.css +2087 -0
  64. data/formantic-ui/components/dropdown.js +4432 -0
  65. data/formantic-ui/components/dropdown.min.css +9 -0
  66. data/formantic-ui/components/dropdown.min.js +11 -0
  67. data/formantic-ui/components/embed.css +155 -0
  68. data/formantic-ui/components/embed.js +688 -0
  69. data/formantic-ui/components/embed.min.css +9 -0
  70. data/formantic-ui/components/embed.min.js +11 -0
  71. data/formantic-ui/components/emoji.css +15311 -0
  72. data/formantic-ui/components/emoji.min.css +9 -0
  73. data/formantic-ui/components/feed.css +799 -0
  74. data/formantic-ui/components/feed.min.css +9 -0
  75. data/formantic-ui/components/flag.css +1149 -0
  76. data/formantic-ui/components/flag.min.css +9 -0
  77. data/formantic-ui/components/flyout.css +546 -0
  78. data/formantic-ui/components/flyout.js +1551 -0
  79. data/formantic-ui/components/flyout.min.css +9 -0
  80. data/formantic-ui/components/flyout.min.js +11 -0
  81. data/formantic-ui/components/form.css +1885 -0
  82. data/formantic-ui/components/form.js +2199 -0
  83. data/formantic-ui/components/form.min.css +9 -0
  84. data/formantic-ui/components/form.min.js +11 -0
  85. data/formantic-ui/components/grid.css +1952 -0
  86. data/formantic-ui/components/grid.min.css +9 -0
  87. data/formantic-ui/components/header.css +778 -0
  88. data/formantic-ui/components/header.min.css +9 -0
  89. data/formantic-ui/components/icon.css +7066 -0
  90. data/formantic-ui/components/icon.min.css +9 -0
  91. data/formantic-ui/components/image.css +315 -0
  92. data/formantic-ui/components/image.min.css +9 -0
  93. data/formantic-ui/components/input.css +1566 -0
  94. data/formantic-ui/components/input.min.css +9 -0
  95. data/formantic-ui/components/item.css +534 -0
  96. data/formantic-ui/components/item.min.css +9 -0
  97. data/formantic-ui/components/label.css +2114 -0
  98. data/formantic-ui/components/label.min.css +9 -0
  99. data/formantic-ui/components/list.css +955 -0
  100. data/formantic-ui/components/list.min.css +9 -0
  101. data/formantic-ui/components/loader.css +787 -0
  102. data/formantic-ui/components/loader.min.css +9 -0
  103. data/formantic-ui/components/menu.css +2131 -0
  104. data/formantic-ui/components/menu.min.css +9 -0
  105. data/formantic-ui/components/message.css +619 -0
  106. data/formantic-ui/components/message.min.css +9 -0
  107. data/formantic-ui/components/modal.css +779 -0
  108. data/formantic-ui/components/modal.js +1637 -0
  109. data/formantic-ui/components/modal.min.css +9 -0
  110. data/formantic-ui/components/modal.min.js +11 -0
  111. data/formantic-ui/components/nag.css +290 -0
  112. data/formantic-ui/components/nag.js +566 -0
  113. data/formantic-ui/components/nag.min.css +9 -0
  114. data/formantic-ui/components/nag.min.js +11 -0
  115. data/formantic-ui/components/placeholder.css +228 -0
  116. data/formantic-ui/components/placeholder.min.css +9 -0
  117. data/formantic-ui/components/popup.css +1184 -0
  118. data/formantic-ui/components/popup.js +1561 -0
  119. data/formantic-ui/components/popup.min.css +9 -0
  120. data/formantic-ui/components/popup.min.js +11 -0
  121. data/formantic-ui/components/progress.css +761 -0
  122. data/formantic-ui/components/progress.js +979 -0
  123. data/formantic-ui/components/progress.min.css +9 -0
  124. data/formantic-ui/components/progress.min.js +11 -0
  125. data/formantic-ui/components/rail.css +147 -0
  126. data/formantic-ui/components/rail.min.css +9 -0
  127. data/formantic-ui/components/rating.css +414 -0
  128. data/formantic-ui/components/rating.js +540 -0
  129. data/formantic-ui/components/rating.min.css +9 -0
  130. data/formantic-ui/components/rating.min.js +11 -0
  131. data/formantic-ui/components/reset.css +386 -0
  132. data/formantic-ui/components/reset.min.css +9 -0
  133. data/formantic-ui/components/reveal.css +277 -0
  134. data/formantic-ui/components/reveal.min.css +9 -0
  135. data/formantic-ui/components/search.css +541 -0
  136. data/formantic-ui/components/search.js +1641 -0
  137. data/formantic-ui/components/search.min.css +9 -0
  138. data/formantic-ui/components/search.min.js +11 -0
  139. data/formantic-ui/components/segment.css +1053 -0
  140. data/formantic-ui/components/segment.min.css +9 -0
  141. data/formantic-ui/components/shape.css +144 -0
  142. data/formantic-ui/components/shape.js +797 -0
  143. data/formantic-ui/components/shape.min.css +9 -0
  144. data/formantic-ui/components/shape.min.js +11 -0
  145. data/formantic-ui/components/sidebar.css +539 -0
  146. data/formantic-ui/components/sidebar.js +1054 -0
  147. data/formantic-ui/components/sidebar.min.css +9 -0
  148. data/formantic-ui/components/sidebar.min.js +11 -0
  149. data/formantic-ui/components/site.css +286 -0
  150. data/formantic-ui/components/site.js +455 -0
  151. data/formantic-ui/components/site.min.css +9 -0
  152. data/formantic-ui/components/site.min.js +11 -0
  153. data/formantic-ui/components/slider.css +926 -0
  154. data/formantic-ui/components/slider.js +1546 -0
  155. data/formantic-ui/components/slider.min.css +9 -0
  156. data/formantic-ui/components/slider.min.js +11 -0
  157. data/formantic-ui/components/state.js +697 -0
  158. data/formantic-ui/components/state.min.js +11 -0
  159. data/formantic-ui/components/statistic.css +586 -0
  160. data/formantic-ui/components/statistic.min.css +9 -0
  161. data/formantic-ui/components/step.css +1538 -0
  162. data/formantic-ui/components/step.min.css +9 -0
  163. data/formantic-ui/components/sticky.css +73 -0
  164. data/formantic-ui/components/sticky.js +917 -0
  165. data/formantic-ui/components/sticky.min.css +9 -0
  166. data/formantic-ui/components/sticky.min.js +11 -0
  167. data/formantic-ui/components/tab.css +84 -0
  168. data/formantic-ui/components/tab.js +967 -0
  169. data/formantic-ui/components/tab.min.css +9 -0
  170. data/formantic-ui/components/tab.min.js +11 -0
  171. data/formantic-ui/components/table.css +3473 -0
  172. data/formantic-ui/components/table.min.css +9 -0
  173. data/formantic-ui/components/text.css +155 -0
  174. data/formantic-ui/components/text.min.css +9 -0
  175. data/formantic-ui/components/toast.css +751 -0
  176. data/formantic-ui/components/toast.js +964 -0
  177. data/formantic-ui/components/toast.min.css +9 -0
  178. data/formantic-ui/components/toast.min.js +11 -0
  179. data/formantic-ui/components/transition.css +1148 -0
  180. data/formantic-ui/components/transition.js +1034 -0
  181. data/formantic-ui/components/transition.min.css +9 -0
  182. data/formantic-ui/components/transition.min.js +11 -0
  183. data/formantic-ui/components/visibility.js +1292 -0
  184. data/formantic-ui/components/visibility.min.js +11 -0
  185. data/formantic-ui/semantic.css +78485 -0
  186. data/formantic-ui/semantic.js +31036 -0
  187. data/formantic-ui/semantic.min.css +11 -0
  188. data/formantic-ui/semantic.min.js +11 -0
  189. data/formantic-ui/themes/basic/assets/fonts/LICENSE.txt +91 -0
  190. data/formantic-ui/themes/basic/assets/fonts/icons.woff +0 -0
  191. data/formantic-ui/themes/basic/assets/fonts/icons.woff2 +0 -0
  192. data/formantic-ui/themes/default/assets/fonts/LICENSE_Lato.txt +94 -0
  193. data/formantic-ui/themes/default/assets/fonts/LICENSE_icons.txt +165 -0
  194. data/formantic-ui/themes/default/assets/fonts/Lato-Bold.woff +0 -0
  195. data/formantic-ui/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
  196. data/formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
  197. data/formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
  198. data/formantic-ui/themes/default/assets/fonts/Lato-Italic.woff +0 -0
  199. data/formantic-ui/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
  200. data/formantic-ui/themes/default/assets/fonts/Lato-Regular.woff +0 -0
  201. data/formantic-ui/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
  202. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
  203. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
  204. data/formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
  205. data/formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
  206. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
  207. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
  208. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
  209. data/formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
  210. data/formantic-ui/themes/default/assets/fonts/brand-icons.woff +0 -0
  211. data/formantic-ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
  212. data/formantic-ui/themes/default/assets/fonts/icons.woff +0 -0
  213. data/formantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
  214. data/formantic-ui/themes/default/assets/fonts/outline-icons.woff +0 -0
  215. data/formantic-ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
  216. data/formantic-ui/themes/famfamfam/assets/images/flags.png +0 -0
  217. data/formantic-ui/themes/github/assets/fonts/LICENSE.txt +94 -0
  218. data/formantic-ui/themes/github/assets/fonts/octicons.woff +0 -0
  219. data/formantic-ui/themes/github/assets/fonts/octicons.woff2 +0 -0
  220. data/formantic-ui/themes/material/assets/fonts/LICENSE.txt +202 -0
  221. data/formantic-ui/themes/material/assets/fonts/icons.woff +0 -0
  222. data/formantic-ui/themes/material/assets/fonts/icons.woff2 +0 -0
  223. data/lib/ui/engine.rb +7 -2
  224. data/lib/ui/version.rb +1 -1
  225. metadata +205 -7
  226. data/app/components/link_component.rb +0 -23
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
data/lib/ui/engine.rb CHANGED
@@ -3,7 +3,10 @@
3
3
  module Ui
4
4
  class Engine < ::Rails::Engine
5
5
  initializer "ui.autoload_paths" do |app|
6
- app.config.autoload_paths += [ root.join("app", "lib").to_s ]
6
+ app.config.autoload_paths += [
7
+ root.join("app", "lib").to_s,
8
+ root.join("app", "blocks").to_s
9
+ ]
7
10
  end
8
11
 
9
12
  initializer "ui.assets" do |app|
@@ -17,8 +20,10 @@ module Ui
17
20
  end
18
21
  end
19
22
 
20
- initializer "ui.helpers" do
23
+ initializer "ui.helpers", after: :load_config_initializers do
21
24
  ActiveSupport.on_load(:action_view) do
25
+ require_dependency "component_helper"
26
+ require_dependency "fui_helper"
22
27
  include ComponentHelper
23
28
  include FuiHelper
24
29
  end
data/lib/ui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ui
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-active-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nathan
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-03-26 00:00:00.000000000 Z
10
+ date: 1980-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -39,10 +38,13 @@ extensions: []
39
38
  extra_rdoc_files: []
40
39
  files:
41
40
  - Rakefile
41
+ - app/assets/datatables.css
42
42
  - app/assets/stylesheets.css
43
+ - app/blocks/resource_list_block.rb
43
44
  - app/components/accordion_component.rb
44
45
  - app/components/ad_component.rb
45
46
  - app/components/api_component.rb
47
+ - app/components/back_button_component.rb
46
48
  - app/components/breadcrumb_component.rb
47
49
  - app/components/button_component.rb
48
50
  - app/components/button_to_component.rb
@@ -75,7 +77,7 @@ files:
75
77
  - app/components/item_component.rb
76
78
  - app/components/item_group_component.rb
77
79
  - app/components/label_component.rb
78
- - app/components/link_component.rb
80
+ - app/components/link_to_component.rb
79
81
  - app/components/list_component.rb
80
82
  - app/components/loader_component.rb
81
83
  - app/components/menu_component.rb
@@ -84,6 +86,7 @@ files:
84
86
  - app/components/modal_component.rb
85
87
  - app/components/nag_component.rb
86
88
  - app/components/overlay_component.rb
89
+ - app/components/paragraph_component.rb
87
90
  - app/components/placeholder_component.rb
88
91
  - app/components/popup_component.rb
89
92
  - app/components/progress_component.rb
@@ -112,6 +115,7 @@ files:
112
115
  - app/components/table_cell_component.rb
113
116
  - app/components/table_component.rb
114
117
  - app/components/table_row_component.rb
118
+ - app/components/template_component.rb
115
119
  - app/components/text_component.rb
116
120
  - app/components/toast_component.rb
117
121
  - app/components/transition_component.rb
@@ -128,6 +132,7 @@ files:
128
132
  - app/javascript/calendar.min.js
129
133
  - app/javascript/checkbox.js
130
134
  - app/javascript/checkbox.min.js
135
+ - app/javascript/datatables.js
131
136
  - app/javascript/dimmer.js
132
137
  - app/javascript/dimmer.min.js
133
138
  - app/javascript/dropdown.js
@@ -174,12 +179,14 @@ files:
174
179
  - app/javascript/ui/controllers/fui_api_controller.js
175
180
  - app/javascript/ui/controllers/fui_calendar_controller.js
176
181
  - app/javascript/ui/controllers/fui_checkbox_controller.js
182
+ - app/javascript/ui/controllers/fui_datatable_controller.js
177
183
  - app/javascript/ui/controllers/fui_dimmer_controller.js
178
184
  - app/javascript/ui/controllers/fui_dropdown_controller.js
179
185
  - app/javascript/ui/controllers/fui_embed_controller.js
180
186
  - app/javascript/ui/controllers/fui_emoji_picker_controller.js
181
187
  - app/javascript/ui/controllers/fui_flyout_controller.js
182
188
  - app/javascript/ui/controllers/fui_form_controller.js
189
+ - app/javascript/ui/controllers/fui_item_list_controller.js
183
190
  - app/javascript/ui/controllers/fui_modal_controller.js
184
191
  - app/javascript/ui/controllers/fui_nag_controller.js
185
192
  - app/javascript/ui/controllers/fui_popup_controller.js
@@ -196,6 +203,7 @@ files:
196
203
  - app/javascript/ui/controllers/fui_toast_controller.js
197
204
  - app/javascript/ui/controllers/fui_transition_controller.js
198
205
  - app/javascript/ui/controllers/fui_visibility_controller.js
206
+ - app/javascript/ui/controllers/navigation_controller.js
199
207
  - app/javascript/ui/index.js
200
208
  - app/javascript/visibility.js
201
209
  - app/javascript/visibility.min.js
@@ -203,6 +211,198 @@ files:
203
211
  - config/importmap.rb
204
212
  - config/initializers/ruby_template_handler.rb
205
213
  - config/routes.rb
214
+ - formantic-ui/components/accordion.css
215
+ - formantic-ui/components/accordion.js
216
+ - formantic-ui/components/accordion.min.css
217
+ - formantic-ui/components/accordion.min.js
218
+ - formantic-ui/components/ad.css
219
+ - formantic-ui/components/ad.min.css
220
+ - formantic-ui/components/api.js
221
+ - formantic-ui/components/api.min.js
222
+ - formantic-ui/components/breadcrumb.css
223
+ - formantic-ui/components/breadcrumb.min.css
224
+ - formantic-ui/components/button.css
225
+ - formantic-ui/components/button.min.css
226
+ - formantic-ui/components/calendar.css
227
+ - formantic-ui/components/calendar.js
228
+ - formantic-ui/components/calendar.min.css
229
+ - formantic-ui/components/calendar.min.js
230
+ - formantic-ui/components/card.css
231
+ - formantic-ui/components/card.min.css
232
+ - formantic-ui/components/checkbox.css
233
+ - formantic-ui/components/checkbox.js
234
+ - formantic-ui/components/checkbox.min.css
235
+ - formantic-ui/components/checkbox.min.js
236
+ - formantic-ui/components/comment.css
237
+ - formantic-ui/components/comment.min.css
238
+ - formantic-ui/components/container.css
239
+ - formantic-ui/components/container.min.css
240
+ - formantic-ui/components/dimmer.css
241
+ - formantic-ui/components/dimmer.js
242
+ - formantic-ui/components/dimmer.min.css
243
+ - formantic-ui/components/dimmer.min.js
244
+ - formantic-ui/components/divider.css
245
+ - formantic-ui/components/divider.min.css
246
+ - formantic-ui/components/dropdown.css
247
+ - formantic-ui/components/dropdown.js
248
+ - formantic-ui/components/dropdown.min.css
249
+ - formantic-ui/components/dropdown.min.js
250
+ - formantic-ui/components/embed.css
251
+ - formantic-ui/components/embed.js
252
+ - formantic-ui/components/embed.min.css
253
+ - formantic-ui/components/embed.min.js
254
+ - formantic-ui/components/emoji.css
255
+ - formantic-ui/components/emoji.min.css
256
+ - formantic-ui/components/feed.css
257
+ - formantic-ui/components/feed.min.css
258
+ - formantic-ui/components/flag.css
259
+ - formantic-ui/components/flag.min.css
260
+ - formantic-ui/components/flyout.css
261
+ - formantic-ui/components/flyout.js
262
+ - formantic-ui/components/flyout.min.css
263
+ - formantic-ui/components/flyout.min.js
264
+ - formantic-ui/components/form.css
265
+ - formantic-ui/components/form.js
266
+ - formantic-ui/components/form.min.css
267
+ - formantic-ui/components/form.min.js
268
+ - formantic-ui/components/grid.css
269
+ - formantic-ui/components/grid.min.css
270
+ - formantic-ui/components/header.css
271
+ - formantic-ui/components/header.min.css
272
+ - formantic-ui/components/icon.css
273
+ - formantic-ui/components/icon.min.css
274
+ - formantic-ui/components/image.css
275
+ - formantic-ui/components/image.min.css
276
+ - formantic-ui/components/input.css
277
+ - formantic-ui/components/input.min.css
278
+ - formantic-ui/components/item.css
279
+ - formantic-ui/components/item.min.css
280
+ - formantic-ui/components/label.css
281
+ - formantic-ui/components/label.min.css
282
+ - formantic-ui/components/list.css
283
+ - formantic-ui/components/list.min.css
284
+ - formantic-ui/components/loader.css
285
+ - formantic-ui/components/loader.min.css
286
+ - formantic-ui/components/menu.css
287
+ - formantic-ui/components/menu.min.css
288
+ - formantic-ui/components/message.css
289
+ - formantic-ui/components/message.min.css
290
+ - formantic-ui/components/modal.css
291
+ - formantic-ui/components/modal.js
292
+ - formantic-ui/components/modal.min.css
293
+ - formantic-ui/components/modal.min.js
294
+ - formantic-ui/components/nag.css
295
+ - formantic-ui/components/nag.js
296
+ - formantic-ui/components/nag.min.css
297
+ - formantic-ui/components/nag.min.js
298
+ - formantic-ui/components/placeholder.css
299
+ - formantic-ui/components/placeholder.min.css
300
+ - formantic-ui/components/popup.css
301
+ - formantic-ui/components/popup.js
302
+ - formantic-ui/components/popup.min.css
303
+ - formantic-ui/components/popup.min.js
304
+ - formantic-ui/components/progress.css
305
+ - formantic-ui/components/progress.js
306
+ - formantic-ui/components/progress.min.css
307
+ - formantic-ui/components/progress.min.js
308
+ - formantic-ui/components/rail.css
309
+ - formantic-ui/components/rail.min.css
310
+ - formantic-ui/components/rating.css
311
+ - formantic-ui/components/rating.js
312
+ - formantic-ui/components/rating.min.css
313
+ - formantic-ui/components/rating.min.js
314
+ - formantic-ui/components/reset.css
315
+ - formantic-ui/components/reset.min.css
316
+ - formantic-ui/components/reveal.css
317
+ - formantic-ui/components/reveal.min.css
318
+ - formantic-ui/components/search.css
319
+ - formantic-ui/components/search.js
320
+ - formantic-ui/components/search.min.css
321
+ - formantic-ui/components/search.min.js
322
+ - formantic-ui/components/segment.css
323
+ - formantic-ui/components/segment.min.css
324
+ - formantic-ui/components/shape.css
325
+ - formantic-ui/components/shape.js
326
+ - formantic-ui/components/shape.min.css
327
+ - formantic-ui/components/shape.min.js
328
+ - formantic-ui/components/sidebar.css
329
+ - formantic-ui/components/sidebar.js
330
+ - formantic-ui/components/sidebar.min.css
331
+ - formantic-ui/components/sidebar.min.js
332
+ - formantic-ui/components/site.css
333
+ - formantic-ui/components/site.js
334
+ - formantic-ui/components/site.min.css
335
+ - formantic-ui/components/site.min.js
336
+ - formantic-ui/components/slider.css
337
+ - formantic-ui/components/slider.js
338
+ - formantic-ui/components/slider.min.css
339
+ - formantic-ui/components/slider.min.js
340
+ - formantic-ui/components/state.js
341
+ - formantic-ui/components/state.min.js
342
+ - formantic-ui/components/statistic.css
343
+ - formantic-ui/components/statistic.min.css
344
+ - formantic-ui/components/step.css
345
+ - formantic-ui/components/step.min.css
346
+ - formantic-ui/components/sticky.css
347
+ - formantic-ui/components/sticky.js
348
+ - formantic-ui/components/sticky.min.css
349
+ - formantic-ui/components/sticky.min.js
350
+ - formantic-ui/components/tab.css
351
+ - formantic-ui/components/tab.js
352
+ - formantic-ui/components/tab.min.css
353
+ - formantic-ui/components/tab.min.js
354
+ - formantic-ui/components/table.css
355
+ - formantic-ui/components/table.min.css
356
+ - formantic-ui/components/text.css
357
+ - formantic-ui/components/text.min.css
358
+ - formantic-ui/components/toast.css
359
+ - formantic-ui/components/toast.js
360
+ - formantic-ui/components/toast.min.css
361
+ - formantic-ui/components/toast.min.js
362
+ - formantic-ui/components/transition.css
363
+ - formantic-ui/components/transition.js
364
+ - formantic-ui/components/transition.min.css
365
+ - formantic-ui/components/transition.min.js
366
+ - formantic-ui/components/visibility.js
367
+ - formantic-ui/components/visibility.min.js
368
+ - formantic-ui/semantic.css
369
+ - formantic-ui/semantic.js
370
+ - formantic-ui/semantic.min.css
371
+ - formantic-ui/semantic.min.js
372
+ - formantic-ui/themes/basic/assets/fonts/LICENSE.txt
373
+ - formantic-ui/themes/basic/assets/fonts/icons.woff
374
+ - formantic-ui/themes/basic/assets/fonts/icons.woff2
375
+ - formantic-ui/themes/default/assets/fonts/LICENSE_Lato.txt
376
+ - formantic-ui/themes/default/assets/fonts/LICENSE_icons.txt
377
+ - formantic-ui/themes/default/assets/fonts/Lato-Bold.woff
378
+ - formantic-ui/themes/default/assets/fonts/Lato-Bold.woff2
379
+ - formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff
380
+ - formantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2
381
+ - formantic-ui/themes/default/assets/fonts/Lato-Italic.woff
382
+ - formantic-ui/themes/default/assets/fonts/Lato-Italic.woff2
383
+ - formantic-ui/themes/default/assets/fonts/Lato-Regular.woff
384
+ - formantic-ui/themes/default/assets/fonts/Lato-Regular.woff2
385
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff
386
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2
387
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff
388
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2
389
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff
390
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2
391
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff
392
+ - formantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2
393
+ - formantic-ui/themes/default/assets/fonts/brand-icons.woff
394
+ - formantic-ui/themes/default/assets/fonts/brand-icons.woff2
395
+ - formantic-ui/themes/default/assets/fonts/icons.woff
396
+ - formantic-ui/themes/default/assets/fonts/icons.woff2
397
+ - formantic-ui/themes/default/assets/fonts/outline-icons.woff
398
+ - formantic-ui/themes/default/assets/fonts/outline-icons.woff2
399
+ - formantic-ui/themes/famfamfam/assets/images/flags.png
400
+ - formantic-ui/themes/github/assets/fonts/LICENSE.txt
401
+ - formantic-ui/themes/github/assets/fonts/octicons.woff
402
+ - formantic-ui/themes/github/assets/fonts/octicons.woff2
403
+ - formantic-ui/themes/material/assets/fonts/LICENSE.txt
404
+ - formantic-ui/themes/material/assets/fonts/icons.woff
405
+ - formantic-ui/themes/material/assets/fonts/icons.woff2
206
406
  - lib/rails-active-ui.rb
207
407
  - lib/rails_active_ui.rb
208
408
  - lib/tasks/ui_tasks.rake
@@ -216,7 +416,6 @@ metadata:
216
416
  homepage_uri: https://github.com/n-at-han-k/rails-active-ui
217
417
  source_code_uri: https://github.com/n-at-han-k/rails-active-ui/tree/main
218
418
  changelog_uri: https://github.com/n-at-han-k/rails-active-ui/blob/main/CHANGELOG.md
219
- post_install_message:
220
419
  rdoc_options: []
221
420
  require_paths:
222
421
  - lib
@@ -231,8 +430,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
430
  - !ruby/object:Gem::Version
232
431
  version: '0'
233
432
  requirements: []
234
- rubygems_version: 3.3.15
235
- signing_key:
433
+ rubygems_version: 3.7.2
236
434
  specification_version: 4
237
435
  summary: ActiveModel::Attributes-based view components
238
436
  test_files: []
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Link — anchor element.
4
- #
5
- # Usage:
6
- # Link(href: "/about") { text "About Us" }
7
- # Link(href: "/help", target: "_blank") { text "Help" }
8
-
9
- class LinkComponent < Component
10
- attribute :href, :string, default: "#"
11
- attribute :target, :string, default: nil
12
- attribute :rel, :string, default: nil
13
- attribute :css_class, :string, default: nil
14
-
15
- def to_s
16
- opts = { href: href }
17
- opts[:class] = css_class if css_class
18
- opts[:target] = target if target
19
- opts[:rel] = rel if rel
20
-
21
- tag.a(**merge_html_options(**opts)) { @content }
22
- end
23
- end