irelia 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (248) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -10
  3. data/Rakefile +18 -4
  4. data/app/assets/config/irelia_manifest.js +2 -2
  5. data/app/assets/dist/javascripts/irelia.js +1 -0
  6. data/app/assets/dist/stylesheets/irelia.css +1 -0
  7. data/app/assets/src/main.js +2 -0
  8. data/app/assets/src/main.pcss +245 -0
  9. data/app/components/index.js +7 -0
  10. data/app/components/index.pcss +38 -0
  11. data/app/components/irelia/app_shell/component.html.erb +18 -0
  12. data/app/components/irelia/app_shell/component.rb +14 -0
  13. data/app/components/irelia/app_shell/index.pcss +20 -0
  14. data/app/{frontend/components/page/header → components/irelia/app_shell}/preview.rb +1 -1
  15. data/app/components/irelia/app_shell/previews/default.html.erb +21 -0
  16. data/app/components/irelia/avatar/component.html.erb +3 -0
  17. data/app/components/irelia/avatar/component.rb +16 -0
  18. data/app/components/irelia/avatar/index.pcss +8 -0
  19. data/{lib/generators/view_component/templates/preview.rb.tt → app/components/irelia/avatar/preview.rb} +1 -1
  20. data/app/components/irelia/breadcrumbs/component.html.erb +12 -0
  21. data/app/components/irelia/breadcrumbs/component.rb +18 -0
  22. data/app/components/irelia/breadcrumbs/index.pcss +16 -0
  23. data/app/{frontend/components/page/container → components/irelia/breadcrumbs}/preview.rb +1 -1
  24. data/app/components/irelia/button/component.html.erb +27 -0
  25. data/app/components/irelia/button/component.rb +40 -0
  26. data/app/components/irelia/button/index.pcss +57 -0
  27. data/app/components/irelia/button/preview.rb +79 -0
  28. data/app/components/irelia/card/component.html.erb +5 -0
  29. data/app/components/irelia/card/component.rb +15 -0
  30. data/app/components/irelia/card/index.pcss +9 -0
  31. data/app/components/irelia/card/preview.rb +18 -0
  32. data/app/components/irelia/component.rb +55 -0
  33. data/app/components/irelia/component_preview.rb +7 -0
  34. data/app/components/irelia/container/component.rb +30 -0
  35. data/app/components/irelia/container/index.pcss +45 -0
  36. data/app/components/irelia/container/preview.rb +18 -0
  37. data/app/components/irelia/div/component.html.erb +3 -0
  38. data/app/components/irelia/div/component.rb +15 -0
  39. data/app/components/irelia/div/index.pcss +7 -0
  40. data/app/components/irelia/divider/component.html.erb +7 -0
  41. data/app/components/irelia/divider/component.rb +10 -0
  42. data/app/components/irelia/divider/index.pcss +15 -0
  43. data/app/components/irelia/dropdown/component.html.erb +17 -0
  44. data/app/components/irelia/dropdown/component.rb +52 -0
  45. data/app/components/irelia/dropdown/controller.js +14 -0
  46. data/app/components/irelia/dropdown/index.pcss +37 -0
  47. data/app/components/irelia/dropdown/preview.rb +42 -0
  48. data/app/components/irelia/dropdown/previews/direction_up.html.erb +10 -0
  49. data/app/components/irelia/empty_collection/component.html.erb +19 -0
  50. data/app/components/irelia/empty_collection/component.rb +15 -0
  51. data/app/components/irelia/empty_collection/index.pcss +23 -0
  52. data/app/components/irelia/empty_collection/preview.rb +9 -0
  53. data/app/components/irelia/flex/component.html.erb +3 -0
  54. data/app/components/irelia/flex/component.rb +21 -0
  55. data/app/components/irelia/flex/index.pcss +37 -0
  56. data/app/components/irelia/form/base/component.rb +51 -0
  57. data/app/components/irelia/form/base/index.pcss +7 -0
  58. data/app/components/irelia/form/email_field/component.html.erb +3 -0
  59. data/app/components/irelia/form/email_field/component.rb +10 -0
  60. data/app/components/irelia/form/email_field/index.pcss +7 -0
  61. data/app/{frontend/components/page/breadcrumbs → components/irelia/form/email_field}/preview.rb +1 -1
  62. data/app/components/irelia/form/email_field/previews/default.html.erb +3 -0
  63. data/app/components/irelia/form/group/component.html.erb +19 -0
  64. data/app/components/irelia/form/group/component.rb +26 -0
  65. data/app/components/irelia/form/group/index.pcss +32 -0
  66. data/app/components/irelia/form/password_field/component.html.erb +3 -0
  67. data/app/components/irelia/form/password_field/component.rb +10 -0
  68. data/app/components/irelia/form/password_field/index.pcss +7 -0
  69. data/app/components/irelia/form/password_field/preview.rb +9 -0
  70. data/app/components/irelia/form/password_field/previews/default.html.erb +3 -0
  71. data/app/components/irelia/form/select/component.html.erb +3 -0
  72. data/app/components/irelia/form/select/component.rb +18 -0
  73. data/app/components/irelia/form/select/index.pcss +7 -0
  74. data/app/components/irelia/form/select/preview.rb +9 -0
  75. data/app/components/irelia/form/select/previews/default.html.erb +3 -0
  76. data/app/components/irelia/form/text_field/component.html.erb +3 -0
  77. data/app/components/irelia/form/text_field/component.rb +10 -0
  78. data/app/components/irelia/form/text_field/index.pcss +7 -0
  79. data/app/components/irelia/form/text_field/preview.rb +9 -0
  80. data/app/components/irelia/form/text_field/previews/default.html.erb +3 -0
  81. data/app/components/irelia/html/component.html.erb +3 -0
  82. data/app/components/irelia/html/component.rb +10 -0
  83. data/app/components/irelia/html/index.pcss +16 -0
  84. data/app/components/irelia/html/preview.rb +9 -0
  85. data/app/components/irelia/icon/component.rb +18 -0
  86. data/app/components/irelia/icon/index.pcss +7 -0
  87. data/app/components/irelia/icon/preview.rb +10 -0
  88. data/app/components/irelia/icon/previews/font_awesome.html.erb +23 -0
  89. data/app/components/irelia/modal/component.html.erb +28 -0
  90. data/app/components/irelia/modal/component.rb +29 -0
  91. data/app/components/irelia/modal/controller.js +50 -0
  92. data/app/components/irelia/modal/index.pcss +41 -0
  93. data/app/{frontend/components/navbar/select_account → components/irelia/modal}/preview.rb +5 -2
  94. data/app/components/irelia/modal/previews/remote_content.html.erb +6 -0
  95. data/app/components/irelia/modal/previews/static_content.html.erb +4 -0
  96. data/app/components/irelia/navbar/brand/component.rb +25 -0
  97. data/app/components/irelia/navbar/brand/index.pcss +9 -0
  98. data/app/components/irelia/navbar/brand/preview.rb +10 -0
  99. data/app/components/irelia/navbar/component.html.erb +10 -0
  100. data/app/components/irelia/navbar/component.rb +20 -0
  101. data/app/components/irelia/navbar/index.pcss +13 -0
  102. data/app/components/irelia/navbar/navigation/component.html.erb +5 -0
  103. data/app/components/irelia/navbar/navigation/component.rb +15 -0
  104. data/app/components/irelia/navbar/navigation/index.pcss +9 -0
  105. data/app/components/irelia/navbar/navigation/link/component.html.erb +5 -0
  106. data/app/components/irelia/navbar/navigation/link/component.rb +18 -0
  107. data/app/components/irelia/navbar/navigation/link/index.pcss +13 -0
  108. data/app/components/irelia/navbar/navigation/link/preview.rb +10 -0
  109. data/app/components/irelia/navbar/navigation/preview.rb +15 -0
  110. data/app/components/irelia/navbar/preview.rb +17 -0
  111. data/app/components/irelia/navbar/previews/default.html.erb +19 -0
  112. data/app/components/irelia/navbar/previews/full_width.html.erb +19 -0
  113. data/app/components/irelia/navbar/previews/navigation_right.html.erb +19 -0
  114. data/app/components/irelia/navbar/section/component.html.erb +3 -0
  115. data/app/components/irelia/navbar/section/component.rb +13 -0
  116. data/app/components/irelia/navbar/section/index.pcss +8 -0
  117. data/app/components/irelia/navbar/separator/component.rb +14 -0
  118. data/app/components/irelia/navbar/separator/index.pcss +8 -0
  119. data/app/components/irelia/navigation/component.html.erb +7 -0
  120. data/app/components/irelia/navigation/component.rb +23 -0
  121. data/app/components/irelia/navigation/index.pcss +7 -0
  122. data/app/components/irelia/navigation/preview.rb +14 -0
  123. data/app/components/irelia/notification/component.html.erb +9 -0
  124. data/app/components/irelia/notification/component.rb +27 -0
  125. data/app/components/irelia/notification/index.pcss +41 -0
  126. data/app/components/irelia/notification/preview.rb +22 -0
  127. data/app/components/irelia/page_header/component.html.erb +15 -0
  128. data/app/components/irelia/page_header/component.rb +17 -0
  129. data/app/components/irelia/page_header/index.pcss +36 -0
  130. data/app/components/irelia/page_header/preview.rb +13 -0
  131. data/app/components/irelia/sidebar/brand/component.html.erb +6 -0
  132. data/app/components/irelia/sidebar/brand/component.rb +19 -0
  133. data/app/components/irelia/sidebar/brand/index.pcss +13 -0
  134. data/app/components/irelia/sidebar/brand/preview.rb +10 -0
  135. data/app/components/irelia/sidebar/component.html.erb +8 -0
  136. data/app/components/irelia/sidebar/component.rb +16 -0
  137. data/app/components/irelia/sidebar/index.pcss +12 -0
  138. data/app/components/irelia/sidebar/navigation/component.html.erb +5 -0
  139. data/app/components/irelia/sidebar/navigation/component.rb +12 -0
  140. data/app/components/irelia/sidebar/navigation/index.pcss +8 -0
  141. data/app/components/irelia/sidebar/navigation/link/component.html.erb +10 -0
  142. data/app/components/irelia/sidebar/navigation/link/component.rb +26 -0
  143. data/app/components/irelia/sidebar/navigation/link/index.pcss +20 -0
  144. data/app/components/irelia/sidebar/navigation/link/preview.rb +14 -0
  145. data/app/components/irelia/sidebar/navigation/preview.rb +16 -0
  146. data/app/components/irelia/sidebar/preview.rb +9 -0
  147. data/app/components/irelia/sidebar/previews/default.html.erb +12 -0
  148. data/app/components/irelia/sidebar/section/component.html.erb +3 -0
  149. data/app/components/irelia/sidebar/section/component.rb +16 -0
  150. data/app/components/irelia/sidebar/section/index.pcss +11 -0
  151. data/app/components/irelia/split_screen/component.html.erb +8 -0
  152. data/app/components/irelia/split_screen/component.rb +18 -0
  153. data/app/components/irelia/split_screen/index.pcss +35 -0
  154. data/app/components/irelia/split_screen/preview.rb +12 -0
  155. data/app/components/irelia/stack/component.html.erb +3 -0
  156. data/app/components/irelia/stack/component.rb +21 -0
  157. data/app/components/irelia/stack/index.pcss +25 -0
  158. data/app/components/irelia/stack/preview.rb +47 -0
  159. data/app/components/irelia/stack/previews/default.html.erb +5 -0
  160. data/app/components/irelia/stack/previews/horizontal.html.erb +5 -0
  161. data/app/components/irelia/stack/previews/vertical.html.erb +5 -0
  162. data/app/components/irelia/table/component.html.erb +23 -0
  163. data/app/components/irelia/table/component.rb +31 -0
  164. data/app/components/irelia/table/index.pcss +32 -0
  165. data/app/components/irelia/table/preview.rb +9 -0
  166. data/app/components/irelia/table/previews/default.html.erb +19 -0
  167. data/app/components/irelia/table/row/component.html.erb +5 -0
  168. data/app/components/irelia/table/row/component.rb +34 -0
  169. data/app/components/irelia/table/row/index.pcss +7 -0
  170. data/app/helpers/irelia/components_helper.rb +62 -0
  171. data/app/helpers/irelia/form_helper.rb +9 -0
  172. data/app/helpers/irelia/head_helper.rb +7 -0
  173. data/app/views/irelia/_head.html.erb +25 -0
  174. data/lib/irelia/config.rb +18 -0
  175. data/lib/irelia/engine.rb +13 -11
  176. data/lib/irelia/form_builder.rb +48 -0
  177. data/lib/irelia/options/fixed.rb +26 -0
  178. data/lib/irelia/options/flex/direction.rb +22 -0
  179. data/lib/irelia/options/flex/gap.rb +25 -0
  180. data/lib/irelia/options/flex/grow.rb +21 -0
  181. data/lib/irelia/options/flex/items.rb +25 -0
  182. data/lib/irelia/options/flex/justify.rb +27 -0
  183. data/lib/irelia/options/padding.rb +46 -0
  184. data/lib/irelia/options/text_formatting.rb +30 -0
  185. data/lib/irelia/options/width.rb +19 -0
  186. data/lib/irelia/version.rb +1 -1
  187. data/lib/irelia.rb +20 -24
  188. metadata +199 -168
  189. data/app/frontend/components/application_view_component.rb +0 -5
  190. data/app/frontend/components/application_view_component_preview.rb +0 -5
  191. data/app/frontend/components/navbar/button/component.html.erb +0 -8
  192. data/app/frontend/components/navbar/button/component.rb +0 -13
  193. data/app/frontend/components/navbar/button/preview.rb +0 -12
  194. data/app/frontend/components/navbar/container/component.html.erb +0 -5
  195. data/app/frontend/components/navbar/container/component.rb +0 -8
  196. data/app/frontend/components/navbar/container/preview.rb +0 -12
  197. data/app/frontend/components/navbar/dark_mode_switcher/component.html.erb +0 -4
  198. data/app/frontend/components/navbar/dark_mode_switcher/component.rb +0 -8
  199. data/app/frontend/components/navbar/dark_mode_switcher/preview.rb +0 -12
  200. data/app/frontend/components/navbar/menu_items/component.html.erb +0 -3
  201. data/app/frontend/components/navbar/menu_items/component.rb +0 -8
  202. data/app/frontend/components/navbar/menu_items/preview.rb +0 -12
  203. data/app/frontend/components/navbar/navlink/component.html.erb +0 -8
  204. data/app/frontend/components/navbar/navlink/component.rb +0 -13
  205. data/app/frontend/components/navbar/navlink/preview.rb +0 -12
  206. data/app/frontend/components/navbar/right_section/component.html.erb +0 -3
  207. data/app/frontend/components/navbar/right_section/component.rb +0 -8
  208. data/app/frontend/components/navbar/right_section/preview.rb +0 -12
  209. data/app/frontend/components/navbar/select_account/component.html.erb +0 -36
  210. data/app/frontend/components/navbar/select_account/component.rb +0 -6
  211. data/app/frontend/components/navbar/separator/component.html.erb +0 -1
  212. data/app/frontend/components/navbar/separator/component.rb +0 -7
  213. data/app/frontend/components/navbar/separator/preview.rb +0 -12
  214. data/app/frontend/components/page/breadcrumbs/component.html.erb +0 -16
  215. data/app/frontend/components/page/breadcrumbs/component.rb +0 -6
  216. data/app/frontend/components/page/container/component.html.erb +0 -3
  217. data/app/frontend/components/page/container/component.rb +0 -4
  218. data/app/frontend/components/page/header/component.html.erb +0 -12
  219. data/app/frontend/components/page/header/component.rb +0 -6
  220. data/app/helpers/navbar_helper.rb +0 -35
  221. data/app/helpers/page_helper.rb +0 -15
  222. data/app/javascript/controllers/dark_mode_switcher_controller.js +0 -20
  223. data/app/javascript/controllers/dropdown_controller.js +0 -3
  224. data/app/views/devise/registrations/new.html.erb +0 -21
  225. data/app/views/devise/sessions/new.html.erb +0 -18
  226. data/app/views/layouts/application.html.erb +0 -11
  227. data/app/views/layouts/devise.html.erb +0 -23
  228. data/app/views/layouts/mailer.html.erb +0 -13
  229. data/app/views/layouts/mailer.text.erb +0 -1
  230. data/app/views/layouts/teamable.html.erb +0 -31
  231. data/app/views/shared/_head.html.erb +0 -26
  232. data/app/views/shared/_navbar.html.erb +0 -30
  233. data/app/views/shared/_navbar_logo.html.erb +0 -3
  234. data/app/views/teamable/accounts/new.html.erb +0 -10
  235. data/app/views/teamable/setup/new.html.erb +0 -8
  236. data/app/views/teamable/shared/_form.html.erb +0 -4
  237. data/config/importmap.rb +0 -7
  238. data/config/initializers/devise.rb +0 -313
  239. data/config/initializers/simple_form.rb +0 -148
  240. data/config/initializers/view_component.rb +0 -18
  241. data/lib/generators/irelia/install_generator.rb +0 -19
  242. data/lib/generators/templates/irelia.rb +0 -14
  243. data/lib/generators/view_component/USAGE +0 -15
  244. data/lib/generators/view_component/templates/component.html.erb.tt +0 -1
  245. data/lib/generators/view_component/templates/component.rb.tt +0 -8
  246. data/lib/generators/view_component/templates/component_system_test.rb.tt +0 -13
  247. data/lib/generators/view_component/templates/component_test.rb.tt +0 -19
  248. data/lib/generators/view_component/view_component_generator.rb +0 -53
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: irelia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - KIQR
7
+ - Rasmus Kjellberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-10 00:00:00.000000000 Z
11
+ date: 2024-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: devise
14
+ name: view_component
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.9'
19
+ version: '3.12'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '4.9'
26
+ version: '3.12'
27
27
  - !ruby/object:Gem::Dependency
28
- name: dry-configurable
28
+ name: view_component-contrib
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: 0.2.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: 0.2.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-initializer
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,106 +53,22 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.1'
55
55
  - !ruby/object:Gem::Dependency
56
- name: importmap-rails
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.1.6
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 1.1.6
69
- - !ruby/object:Gem::Dependency
70
- name: loaf
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.10.0
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.10.0
83
- - !ruby/object:Gem::Dependency
84
- name: meta-tags
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '2.20'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '2.20'
97
- - !ruby/object:Gem::Dependency
98
- name: simple_form
56
+ name: lookbook
99
57
  requirement: !ruby/object:Gem::Requirement
100
58
  requirements:
101
59
  - - "~>"
102
60
  - !ruby/object:Gem::Version
103
- version: 5.3.0
61
+ version: 2.3.1
104
62
  type: :runtime
105
63
  prerelease: false
106
64
  version_requirements: !ruby/object:Gem::Requirement
107
65
  requirements:
108
66
  - - "~>"
109
67
  - !ruby/object:Gem::Version
110
- version: 5.3.0
111
- - !ruby/object:Gem::Dependency
112
- name: teamable
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 0.2.0
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: 0.2.0
125
- - !ruby/object:Gem::Dependency
126
- name: view_component
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '3.11'
132
- type: :runtime
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '3.11'
139
- - !ruby/object:Gem::Dependency
140
- name: view_component-contrib
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: 0.2.2
146
- type: :runtime
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: 0.2.2
153
- description: A starter kit for building SaaS applications in Ruby on Rails.
68
+ version: 2.3.1
69
+ description: View components, assets and styles built with Tailwind CSS for KIQR.
154
70
  email:
155
- - hello@kiqr.dev
71
+ - 2277443+kjellberg@users.noreply.github.com
156
72
  executables: []
157
73
  extensions: []
158
74
  extra_rdoc_files: []
@@ -161,81 +77,196 @@ files:
161
77
  - README.md
162
78
  - Rakefile
163
79
  - app/assets/config/irelia_manifest.js
164
- - app/frontend/components/application_view_component.rb
165
- - app/frontend/components/application_view_component_preview.rb
166
- - app/frontend/components/navbar/button/component.html.erb
167
- - app/frontend/components/navbar/button/component.rb
168
- - app/frontend/components/navbar/button/preview.rb
169
- - app/frontend/components/navbar/container/component.html.erb
170
- - app/frontend/components/navbar/container/component.rb
171
- - app/frontend/components/navbar/container/preview.rb
172
- - app/frontend/components/navbar/dark_mode_switcher/component.html.erb
173
- - app/frontend/components/navbar/dark_mode_switcher/component.rb
174
- - app/frontend/components/navbar/dark_mode_switcher/preview.rb
175
- - app/frontend/components/navbar/menu_items/component.html.erb
176
- - app/frontend/components/navbar/menu_items/component.rb
177
- - app/frontend/components/navbar/menu_items/preview.rb
178
- - app/frontend/components/navbar/navlink/component.html.erb
179
- - app/frontend/components/navbar/navlink/component.rb
180
- - app/frontend/components/navbar/navlink/preview.rb
181
- - app/frontend/components/navbar/right_section/component.html.erb
182
- - app/frontend/components/navbar/right_section/component.rb
183
- - app/frontend/components/navbar/right_section/preview.rb
184
- - app/frontend/components/navbar/select_account/component.html.erb
185
- - app/frontend/components/navbar/select_account/component.rb
186
- - app/frontend/components/navbar/select_account/preview.rb
187
- - app/frontend/components/navbar/separator/component.html.erb
188
- - app/frontend/components/navbar/separator/component.rb
189
- - app/frontend/components/navbar/separator/preview.rb
190
- - app/frontend/components/page/breadcrumbs/component.html.erb
191
- - app/frontend/components/page/breadcrumbs/component.rb
192
- - app/frontend/components/page/breadcrumbs/preview.rb
193
- - app/frontend/components/page/container/component.html.erb
194
- - app/frontend/components/page/container/component.rb
195
- - app/frontend/components/page/container/preview.rb
196
- - app/frontend/components/page/header/component.html.erb
197
- - app/frontend/components/page/header/component.rb
198
- - app/frontend/components/page/header/preview.rb
199
- - app/helpers/navbar_helper.rb
200
- - app/helpers/page_helper.rb
201
- - app/javascript/controllers/dark_mode_switcher_controller.js
202
- - app/javascript/controllers/dropdown_controller.js
203
- - app/views/devise/registrations/new.html.erb
204
- - app/views/devise/sessions/new.html.erb
205
- - app/views/layouts/application.html.erb
206
- - app/views/layouts/devise.html.erb
207
- - app/views/layouts/mailer.html.erb
208
- - app/views/layouts/mailer.text.erb
209
- - app/views/layouts/teamable.html.erb
210
- - app/views/shared/_head.html.erb
211
- - app/views/shared/_navbar.html.erb
212
- - app/views/shared/_navbar_logo.html.erb
213
- - app/views/teamable/accounts/new.html.erb
214
- - app/views/teamable/setup/new.html.erb
215
- - app/views/teamable/shared/_form.html.erb
216
- - config/importmap.rb
217
- - config/initializers/devise.rb
218
- - config/initializers/simple_form.rb
219
- - config/initializers/view_component.rb
220
- - lib/generators/irelia/install_generator.rb
221
- - lib/generators/templates/irelia.rb
222
- - lib/generators/view_component/USAGE
223
- - lib/generators/view_component/templates/component.html.erb.tt
224
- - lib/generators/view_component/templates/component.rb.tt
225
- - lib/generators/view_component/templates/component_system_test.rb.tt
226
- - lib/generators/view_component/templates/component_test.rb.tt
227
- - lib/generators/view_component/templates/preview.rb.tt
228
- - lib/generators/view_component/view_component_generator.rb
80
+ - app/assets/dist/javascripts/irelia.js
81
+ - app/assets/dist/stylesheets/irelia.css
82
+ - app/assets/src/main.js
83
+ - app/assets/src/main.pcss
84
+ - app/components/index.js
85
+ - app/components/index.pcss
86
+ - app/components/irelia/app_shell/component.html.erb
87
+ - app/components/irelia/app_shell/component.rb
88
+ - app/components/irelia/app_shell/index.pcss
89
+ - app/components/irelia/app_shell/preview.rb
90
+ - app/components/irelia/app_shell/previews/default.html.erb
91
+ - app/components/irelia/avatar/component.html.erb
92
+ - app/components/irelia/avatar/component.rb
93
+ - app/components/irelia/avatar/index.pcss
94
+ - app/components/irelia/avatar/preview.rb
95
+ - app/components/irelia/breadcrumbs/component.html.erb
96
+ - app/components/irelia/breadcrumbs/component.rb
97
+ - app/components/irelia/breadcrumbs/index.pcss
98
+ - app/components/irelia/breadcrumbs/preview.rb
99
+ - app/components/irelia/button/component.html.erb
100
+ - app/components/irelia/button/component.rb
101
+ - app/components/irelia/button/index.pcss
102
+ - app/components/irelia/button/preview.rb
103
+ - app/components/irelia/card/component.html.erb
104
+ - app/components/irelia/card/component.rb
105
+ - app/components/irelia/card/index.pcss
106
+ - app/components/irelia/card/preview.rb
107
+ - app/components/irelia/component.rb
108
+ - app/components/irelia/component_preview.rb
109
+ - app/components/irelia/container/component.rb
110
+ - app/components/irelia/container/index.pcss
111
+ - app/components/irelia/container/preview.rb
112
+ - app/components/irelia/div/component.html.erb
113
+ - app/components/irelia/div/component.rb
114
+ - app/components/irelia/div/index.pcss
115
+ - app/components/irelia/divider/component.html.erb
116
+ - app/components/irelia/divider/component.rb
117
+ - app/components/irelia/divider/index.pcss
118
+ - app/components/irelia/dropdown/component.html.erb
119
+ - app/components/irelia/dropdown/component.rb
120
+ - app/components/irelia/dropdown/controller.js
121
+ - app/components/irelia/dropdown/index.pcss
122
+ - app/components/irelia/dropdown/preview.rb
123
+ - app/components/irelia/dropdown/previews/direction_up.html.erb
124
+ - app/components/irelia/empty_collection/component.html.erb
125
+ - app/components/irelia/empty_collection/component.rb
126
+ - app/components/irelia/empty_collection/index.pcss
127
+ - app/components/irelia/empty_collection/preview.rb
128
+ - app/components/irelia/flex/component.html.erb
129
+ - app/components/irelia/flex/component.rb
130
+ - app/components/irelia/flex/index.pcss
131
+ - app/components/irelia/form/base/component.rb
132
+ - app/components/irelia/form/base/index.pcss
133
+ - app/components/irelia/form/email_field/component.html.erb
134
+ - app/components/irelia/form/email_field/component.rb
135
+ - app/components/irelia/form/email_field/index.pcss
136
+ - app/components/irelia/form/email_field/preview.rb
137
+ - app/components/irelia/form/email_field/previews/default.html.erb
138
+ - app/components/irelia/form/group/component.html.erb
139
+ - app/components/irelia/form/group/component.rb
140
+ - app/components/irelia/form/group/index.pcss
141
+ - app/components/irelia/form/password_field/component.html.erb
142
+ - app/components/irelia/form/password_field/component.rb
143
+ - app/components/irelia/form/password_field/index.pcss
144
+ - app/components/irelia/form/password_field/preview.rb
145
+ - app/components/irelia/form/password_field/previews/default.html.erb
146
+ - app/components/irelia/form/select/component.html.erb
147
+ - app/components/irelia/form/select/component.rb
148
+ - app/components/irelia/form/select/index.pcss
149
+ - app/components/irelia/form/select/preview.rb
150
+ - app/components/irelia/form/select/previews/default.html.erb
151
+ - app/components/irelia/form/text_field/component.html.erb
152
+ - app/components/irelia/form/text_field/component.rb
153
+ - app/components/irelia/form/text_field/index.pcss
154
+ - app/components/irelia/form/text_field/preview.rb
155
+ - app/components/irelia/form/text_field/previews/default.html.erb
156
+ - app/components/irelia/html/component.html.erb
157
+ - app/components/irelia/html/component.rb
158
+ - app/components/irelia/html/index.pcss
159
+ - app/components/irelia/html/preview.rb
160
+ - app/components/irelia/icon/component.rb
161
+ - app/components/irelia/icon/index.pcss
162
+ - app/components/irelia/icon/preview.rb
163
+ - app/components/irelia/icon/previews/font_awesome.html.erb
164
+ - app/components/irelia/modal/component.html.erb
165
+ - app/components/irelia/modal/component.rb
166
+ - app/components/irelia/modal/controller.js
167
+ - app/components/irelia/modal/index.pcss
168
+ - app/components/irelia/modal/preview.rb
169
+ - app/components/irelia/modal/previews/remote_content.html.erb
170
+ - app/components/irelia/modal/previews/static_content.html.erb
171
+ - app/components/irelia/navbar/brand/component.rb
172
+ - app/components/irelia/navbar/brand/index.pcss
173
+ - app/components/irelia/navbar/brand/preview.rb
174
+ - app/components/irelia/navbar/component.html.erb
175
+ - app/components/irelia/navbar/component.rb
176
+ - app/components/irelia/navbar/index.pcss
177
+ - app/components/irelia/navbar/navigation/component.html.erb
178
+ - app/components/irelia/navbar/navigation/component.rb
179
+ - app/components/irelia/navbar/navigation/index.pcss
180
+ - app/components/irelia/navbar/navigation/link/component.html.erb
181
+ - app/components/irelia/navbar/navigation/link/component.rb
182
+ - app/components/irelia/navbar/navigation/link/index.pcss
183
+ - app/components/irelia/navbar/navigation/link/preview.rb
184
+ - app/components/irelia/navbar/navigation/preview.rb
185
+ - app/components/irelia/navbar/preview.rb
186
+ - app/components/irelia/navbar/previews/default.html.erb
187
+ - app/components/irelia/navbar/previews/full_width.html.erb
188
+ - app/components/irelia/navbar/previews/navigation_right.html.erb
189
+ - app/components/irelia/navbar/section/component.html.erb
190
+ - app/components/irelia/navbar/section/component.rb
191
+ - app/components/irelia/navbar/section/index.pcss
192
+ - app/components/irelia/navbar/separator/component.rb
193
+ - app/components/irelia/navbar/separator/index.pcss
194
+ - app/components/irelia/navigation/component.html.erb
195
+ - app/components/irelia/navigation/component.rb
196
+ - app/components/irelia/navigation/index.pcss
197
+ - app/components/irelia/navigation/preview.rb
198
+ - app/components/irelia/notification/component.html.erb
199
+ - app/components/irelia/notification/component.rb
200
+ - app/components/irelia/notification/index.pcss
201
+ - app/components/irelia/notification/preview.rb
202
+ - app/components/irelia/page_header/component.html.erb
203
+ - app/components/irelia/page_header/component.rb
204
+ - app/components/irelia/page_header/index.pcss
205
+ - app/components/irelia/page_header/preview.rb
206
+ - app/components/irelia/sidebar/brand/component.html.erb
207
+ - app/components/irelia/sidebar/brand/component.rb
208
+ - app/components/irelia/sidebar/brand/index.pcss
209
+ - app/components/irelia/sidebar/brand/preview.rb
210
+ - app/components/irelia/sidebar/component.html.erb
211
+ - app/components/irelia/sidebar/component.rb
212
+ - app/components/irelia/sidebar/index.pcss
213
+ - app/components/irelia/sidebar/navigation/component.html.erb
214
+ - app/components/irelia/sidebar/navigation/component.rb
215
+ - app/components/irelia/sidebar/navigation/index.pcss
216
+ - app/components/irelia/sidebar/navigation/link/component.html.erb
217
+ - app/components/irelia/sidebar/navigation/link/component.rb
218
+ - app/components/irelia/sidebar/navigation/link/index.pcss
219
+ - app/components/irelia/sidebar/navigation/link/preview.rb
220
+ - app/components/irelia/sidebar/navigation/preview.rb
221
+ - app/components/irelia/sidebar/preview.rb
222
+ - app/components/irelia/sidebar/previews/default.html.erb
223
+ - app/components/irelia/sidebar/section/component.html.erb
224
+ - app/components/irelia/sidebar/section/component.rb
225
+ - app/components/irelia/sidebar/section/index.pcss
226
+ - app/components/irelia/split_screen/component.html.erb
227
+ - app/components/irelia/split_screen/component.rb
228
+ - app/components/irelia/split_screen/index.pcss
229
+ - app/components/irelia/split_screen/preview.rb
230
+ - app/components/irelia/stack/component.html.erb
231
+ - app/components/irelia/stack/component.rb
232
+ - app/components/irelia/stack/index.pcss
233
+ - app/components/irelia/stack/preview.rb
234
+ - app/components/irelia/stack/previews/default.html.erb
235
+ - app/components/irelia/stack/previews/horizontal.html.erb
236
+ - app/components/irelia/stack/previews/vertical.html.erb
237
+ - app/components/irelia/table/component.html.erb
238
+ - app/components/irelia/table/component.rb
239
+ - app/components/irelia/table/index.pcss
240
+ - app/components/irelia/table/preview.rb
241
+ - app/components/irelia/table/previews/default.html.erb
242
+ - app/components/irelia/table/row/component.html.erb
243
+ - app/components/irelia/table/row/component.rb
244
+ - app/components/irelia/table/row/index.pcss
245
+ - app/helpers/irelia/components_helper.rb
246
+ - app/helpers/irelia/form_helper.rb
247
+ - app/helpers/irelia/head_helper.rb
248
+ - app/views/irelia/_head.html.erb
229
249
  - lib/irelia.rb
250
+ - lib/irelia/config.rb
230
251
  - lib/irelia/engine.rb
252
+ - lib/irelia/form_builder.rb
253
+ - lib/irelia/options/fixed.rb
254
+ - lib/irelia/options/flex/direction.rb
255
+ - lib/irelia/options/flex/gap.rb
256
+ - lib/irelia/options/flex/grow.rb
257
+ - lib/irelia/options/flex/items.rb
258
+ - lib/irelia/options/flex/justify.rb
259
+ - lib/irelia/options/padding.rb
260
+ - lib/irelia/options/text_formatting.rb
261
+ - lib/irelia/options/width.rb
231
262
  - lib/irelia/version.rb
232
- homepage: https://github.com/kiqr/irelia-core
263
+ homepage: https://kiqr.dev
233
264
  licenses:
234
265
  - MIT
235
266
  metadata:
236
- homepage_uri: https://github.com/kiqr/irelia-core
237
- source_code_uri: https://github.com/kiqr/irelia-framework
238
- changelog_uri: https://github.com/kiqr/irelia-framework/blob/main/irelia-core/CHANGELOG.md
267
+ homepage_uri: https://kiqr.dev
268
+ source_code_uri: https://github.com/kiqr/irelia
269
+ changelog_uri: https://github.com/kiqr/irelia
239
270
  post_install_message:
240
271
  rdoc_options: []
241
272
  require_paths:
@@ -254,5 +285,5 @@ requirements: []
254
285
  rubygems_version: 3.5.6
255
286
  signing_key:
256
287
  specification_version: 4
257
- summary: Ruby on Rails starter kit
288
+ summary: Default theme for KIQR
258
289
  test_files: []
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationViewComponent < ViewComponentContrib::Base
4
- extend Dry::Initializer
5
- end
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- class ApplicationViewComponentPreview < ViewComponentContrib::Preview::Base
4
- self.abstract_class = true
5
- end
@@ -1,8 +0,0 @@
1
- <%= button_to target, class: "inline-flex items-center gap-x-1 py-3 px-4 text-sm leading-3 justify-center rounded transition bg-white hover:bg-neutral-50 dark:bg-dark-900 dark:hover:bg-dark-800 dark:text-neutral-200 whitespace-nowrap cursor-pointer #{custom_class}", method: method do %>
2
- <% if icon.present? %>
3
- <i class="<%= icon %> w-3 h-3"></i>
4
- <% end %>
5
- <% if text.present? %>
6
- <span class="ml-1"><%= text %></span>
7
- <% end %>
8
- <% end %>
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Button
5
- class Component < ApplicationViewComponent
6
- option :target # required
7
- option :method, default: proc { :get }
8
- option :icon, optional: true # FontAwesome icon class
9
- option :text, optional: true
10
- option :custom_class, optional: true
11
- end
12
- end
13
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Button
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end
@@ -1,5 +0,0 @@
1
- <section class="flex sticky left-0 right-0 top-0 z-50 h-[60px] relative bg-white dark:bg-dark-900 gap-x-8 z-40 items-center border-b dark:border-b-dark-700">
2
- <div class="container max-w-[1200px] mx-auto px-8 flex items-center h-[60px] gap-x-8">
3
- <%= content %>
4
- </div>
5
- </section>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Container
5
- class Component < ApplicationViewComponent
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Container
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end
@@ -1,4 +0,0 @@
1
- <button data-controller="dark-mode-switcher" data-action="click->dark-mode-switcher#toggle" class="inline-flex items-center gap-x-1 py-3 px-4 text-sm leading-3 justify-center rounded transition bg-white hover:bg-neutral-50 dark:bg-dark-900 dark:hover:bg-dark-800 dark:text-neutral-200 whitespace-nowrap cursor-pointer">
2
- <i class="fa fa-lightbulb hidden dark:inline"></i>
3
- <i class="fa fa-moon inline dark:hidden"></i>
4
- </button>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module DarkModeSwitcher
5
- class Component < ApplicationViewComponent
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module DarkModeSwitcher
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end
@@ -1,3 +0,0 @@
1
- <nav class="flex items-center gap-x-8">
2
- <%= content %>
3
- </nav>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module MenuItems
5
- class Component < ApplicationViewComponent
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module MenuItems
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end
@@ -1,8 +0,0 @@
1
- <%= link_to target, class: "flex items-center px-2 text-sm h-[60px] border-y-2 border-transparent #{active ? "font-bold text-primary-700" : "hover:text-black dark:hover:text-white" } #{custom_class}" do %>
2
- <% if icon.present? %>
3
- <i class="<%= icon %> w-4 h-4 <%= "mr-3" if text %>"></i>
4
- <% end %>
5
- <% if text.present? %>
6
- <span><%= text %></span>
7
- <% end %>
8
- <% end %>
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Navlink
5
- class Component < ApplicationViewComponent
6
- option :target # required
7
- option :active, optional: true, default: false
8
- option :text, optional: true
9
- option :custom_class, optional: true
10
- option :icon, optional: true
11
- end
12
- end
13
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module Navlink
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end
@@ -1,3 +0,0 @@
1
- <div class="ml-auto flex items-center gap-x-4">
2
- <%= content %>
3
- </div>
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module RightSection
5
- class Component < ApplicationViewComponent
6
- end
7
- end
8
- end
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Navbar
4
- module RightSection
5
- class Preview < ApplicationViewComponentPreview
6
- # You can specify the container class for the default template
7
- # self.container_class = "w-1/2 border border-gray-300"
8
-
9
- def default; end
10
- end
11
- end
12
- end