ui_components 0.1.1 → 0.1.2

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 (105) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/ui_components/controllers/countdown_controller.js +55 -0
  3. data/app/components/documentation/body/example_preview_component.rb +1 -1
  4. data/app/components/documentation/body_component.html.erb +1 -1
  5. data/app/components/documentation/body_component.rb +4 -4
  6. data/app/components/ui_components/daisy_ui/action/button_component.rb +13 -13
  7. data/app/components/ui_components/daisy_ui/action/dropdown/anchor_component.rb +1 -11
  8. data/app/components/ui_components/daisy_ui/action/dropdown/card/item_component.rb +20 -0
  9. data/app/components/ui_components/daisy_ui/action/dropdown/card_component.rb +4 -14
  10. data/app/components/ui_components/daisy_ui/action/dropdown/menu/item_component.rb +32 -0
  11. data/app/components/ui_components/daisy_ui/action/dropdown/menu_component.rb +2 -12
  12. data/app/components/ui_components/daisy_ui/action/dropdown_component.rb +12 -12
  13. data/app/components/ui_components/daisy_ui/action/modal/anchor_component.rb +1 -11
  14. data/app/components/ui_components/daisy_ui/action/modal/dialog/box/action/item_component.rb +0 -9
  15. data/app/components/ui_components/daisy_ui/action/modal/dialog/box/action_component.rb +0 -9
  16. data/app/components/ui_components/daisy_ui/action/modal/dialog/box/body_component.rb +0 -9
  17. data/app/components/ui_components/daisy_ui/action/modal/dialog/box/close_component.rb +0 -9
  18. data/app/components/ui_components/daisy_ui/action/modal/dialog/box/title_component.rb +0 -9
  19. data/app/components/ui_components/daisy_ui/action/modal/dialog/box_component.rb +0 -9
  20. data/app/components/ui_components/daisy_ui/action/modal/dialog_component.rb +2 -12
  21. data/app/components/ui_components/daisy_ui/action/swap/off_component.rb +0 -9
  22. data/app/components/ui_components/daisy_ui/action/swap/on_component.rb +0 -9
  23. data/app/components/ui_components/daisy_ui/action/swap_component.rb +6 -6
  24. data/app/components/ui_components/daisy_ui/base_component.rb +24 -3
  25. data/app/components/ui_components/daisy_ui/data_display/accordion/item/anchor_component.rb +20 -0
  26. data/app/components/ui_components/daisy_ui/data_display/accordion/item/body_component.rb +20 -0
  27. data/app/components/ui_components/daisy_ui/data_display/accordion/item_component.rb +15 -15
  28. data/app/components/ui_components/daisy_ui/data_display/avatar/item/box_component.rb +63 -0
  29. data/app/components/ui_components/daisy_ui/data_display/avatar/item_component.rb +8 -8
  30. data/app/components/ui_components/daisy_ui/data_display/badge_component.rb +7 -7
  31. data/app/components/ui_components/daisy_ui/data_display/card/body/action_component.rb +20 -0
  32. data/app/components/ui_components/daisy_ui/data_display/card/body/context_component.rb +17 -0
  33. data/app/components/ui_components/daisy_ui/data_display/card/body/title_component.rb +20 -0
  34. data/app/components/ui_components/daisy_ui/data_display/card/body_component.rb +34 -0
  35. data/app/components/ui_components/daisy_ui/data_display/card/figure_component.rb +15 -0
  36. data/app/components/ui_components/daisy_ui/data_display/card_component.rb +83 -0
  37. data/app/components/ui_components/daisy_ui/data_display/carousel/indicator_component.rb +18 -0
  38. data/app/components/ui_components/daisy_ui/data_display/carousel/item/passer_component.rb +20 -0
  39. data/app/components/ui_components/daisy_ui/data_display/carousel/item_component.rb +26 -0
  40. data/app/components/ui_components/daisy_ui/data_display/carousel_component.rb +63 -0
  41. data/app/components/ui_components/daisy_ui/data_display/chat/bubble_component.rb +42 -0
  42. data/app/components/ui_components/daisy_ui/data_display/chat/footer_component.rb +18 -0
  43. data/app/components/ui_components/daisy_ui/data_display/chat/header_component.rb +18 -0
  44. data/app/components/ui_components/daisy_ui/data_display/chat_component.rb +58 -0
  45. data/app/components/ui_components/daisy_ui/data_display/countdown/item_component.rb +49 -0
  46. data/app/components/ui_components/daisy_ui/data_display/countdown_component.rb +37 -0
  47. data/app/components/ui_components/daisy_ui/data_display/{accordion/anchor_component.rb → diff/item1_component.rb} +5 -8
  48. data/app/components/ui_components/daisy_ui/data_display/{accordion/body_component.rb → diff/item2_component.rb} +6 -8
  49. data/app/components/ui_components/daisy_ui/data_display/diff/resizer_component.rb +25 -0
  50. data/app/components/ui_components/daisy_ui/data_display/diff_component.rb +35 -0
  51. data/app/components/ui_components/daisy_ui/data_display/kbd_component.rb +40 -0
  52. data/app/components/ui_components/daisy_ui/data_display/list/item_component.rb +40 -0
  53. data/app/components/ui_components/daisy_ui/data_display/list_component.rb +22 -0
  54. data/app/components/ui_components/daisy_ui/data_display/stat/item/action_component.rb +20 -0
  55. data/app/components/ui_components/daisy_ui/data_display/stat/item/description_component.rb +20 -0
  56. data/app/components/ui_components/daisy_ui/data_display/stat/item/figure_component.rb +24 -0
  57. data/app/components/ui_components/daisy_ui/data_display/stat/item/title_component.rb +20 -0
  58. data/app/components/ui_components/daisy_ui/data_display/stat/item/value_component.rb +20 -0
  59. data/app/components/ui_components/daisy_ui/data_display/stat/item_component.rb +39 -0
  60. data/app/components/ui_components/daisy_ui/data_display/stat_component.rb +50 -0
  61. data/app/components/ui_components/daisy_ui/data_display/status_component.rb +59 -0
  62. data/app/components/ui_components/daisy_ui/data_display/table/item/body_component.rb +23 -0
  63. data/app/components/ui_components/daisy_ui/data_display/table/item/foot_component.rb +23 -0
  64. data/app/components/ui_components/daisy_ui/data_display/table/item/head_component.rb +23 -0
  65. data/app/components/ui_components/daisy_ui/data_display/table/item/row/data_component.rb +19 -0
  66. data/app/components/ui_components/daisy_ui/data_display/table/item/row/header_component.rb +19 -0
  67. data/app/components/ui_components/daisy_ui/data_display/table/item/row_component.rb +32 -0
  68. data/app/components/ui_components/daisy_ui/data_display/table/item_component.rb +29 -0
  69. data/app/components/ui_components/daisy_ui/data_display/table_component.rb +72 -0
  70. data/app/components/ui_components/daisy_ui/data_display/timeline/item/item_end_component.rb +44 -0
  71. data/app/components/ui_components/daisy_ui/data_display/timeline/item/item_middle_component.rb +20 -0
  72. data/app/components/ui_components/daisy_ui/data_display/timeline/item/item_start_component.rb +44 -0
  73. data/app/components/ui_components/daisy_ui/data_display/timeline/item/line_component.rb +17 -0
  74. data/app/components/ui_components/daisy_ui/data_display/timeline/item_component.rb +40 -0
  75. data/app/components/ui_components/daisy_ui/data_display/timeline_component.rb +50 -0
  76. data/app/controllers/ui_components/daisy_ui/data_display_components_controller.rb +22 -0
  77. data/app/helpers/data_display/carousel_helper.rb +13 -0
  78. data/app/views/ui_components/daisy_ui/action_components/button.html.erb +35 -33
  79. data/app/views/ui_components/daisy_ui/action_components/dropdown.html.erb +38 -25
  80. data/app/views/ui_components/daisy_ui/action_components/modal.html.erb +31 -18
  81. data/app/views/ui_components/daisy_ui/action_components/swap.html.erb +31 -17
  82. data/app/views/ui_components/daisy_ui/data_display_components/accordion.html.erb +59 -105
  83. data/app/views/ui_components/daisy_ui/data_display_components/avatar.html.erb +40 -27
  84. data/app/views/ui_components/daisy_ui/data_display_components/badge.html.erb +45 -42
  85. data/app/views/ui_components/daisy_ui/data_display_components/card.html.erb +302 -0
  86. data/app/views/ui_components/daisy_ui/data_display_components/carousel.html.erb +303 -0
  87. data/app/views/ui_components/daisy_ui/data_display_components/chat.html.erb +190 -0
  88. data/app/views/ui_components/daisy_ui/data_display_components/countdown.html.erb +211 -0
  89. data/app/views/ui_components/daisy_ui/data_display_components/diff.html.erb +69 -0
  90. data/app/views/ui_components/daisy_ui/data_display_components/kbd.html.erb +157 -0
  91. data/app/views/ui_components/daisy_ui/data_display_components/list.html.erb +247 -0
  92. data/app/views/ui_components/daisy_ui/data_display_components/stat.html.erb +208 -0
  93. data/app/views/ui_components/daisy_ui/data_display_components/status.html.erb +93 -0
  94. data/app/views/ui_components/daisy_ui/data_display_components/table.html.erb +358 -0
  95. data/app/views/ui_components/daisy_ui/data_display_components/timeline.html.erb +431 -0
  96. data/app/views/ui_components/daisy_ui/home/index.html.erb +11 -0
  97. data/config/routes.rb +13 -2
  98. data/lib/tasks/ui_components_tasks.rake +0 -3
  99. data/lib/ui_components/config/daisy_ui_class_names.rb +3 -2
  100. data/lib/ui_components/config/tailwind_class_names.rb +27 -4
  101. data/lib/ui_components/version.rb +1 -1
  102. metadata +65 -7
  103. data/app/components/ui_components/daisy_ui/action/dropdown/card_item_component.rb +0 -29
  104. data/app/components/ui_components/daisy_ui/action/dropdown/list_item_component.rb +0 -30
  105. data/app/components/ui_components/daisy_ui/data_display/avatar/box_component.rb +0 -61
@@ -0,0 +1,358 @@
1
+ <% component = UiComponents::DaisyUi::DataDisplay::TableComponent %>
2
+
3
+ <div class="grid grid-cols gap-16 p-2 mt-6 mb-36">
4
+ <div class="mb-2">
5
+ <h1 class="font-bold mb-2"># Data display > Table</h1>
6
+ <ul class="bg-base-100 rounded-box shadow-md p-2">
7
+ <%= link_to "< Status", daisy_ui_status_path, class: "link link-primary m-2" %>
8
+ <%= link_to "Home", daisy_ui_path, class: "link link-primary m-2" %>
9
+ <%= link_to "Timeline >", daisy_ui_timeline_path, class: "link link-primary m-2" %>
10
+ </ul>
11
+ </div>
12
+
13
+ <div class="divider"></div>
14
+
15
+ <%= render DocumentationComponent.new do |doc| %>
16
+ <%= doc.with_header { "# Table" } %>
17
+ <%= doc.with_body(preview_options: { css_class: "w-lg" }) do |body| %>
18
+ <%= body.with_preview_example(
19
+ source: <<~ERB
20
+ <div class="overflow-x-auto">
21
+ <$= render #{component}.new do |table| $>
22
+ <$= table.with_item do |item| $>
23
+ <$= item.with_head do |head| $>
24
+ <$= head.with_row do |row| $>
25
+ <$= row.with_header $>
26
+ <$= row.with_header_content("Name") $>
27
+ <$= row.with_header_content("Job") $>
28
+ <$= row.with_header_content("Favorite Color") $>
29
+ <$ end $>
30
+ <$ end $>
31
+
32
+ <$= item.with_body do |body| $>
33
+ <$= body.with_row do |row| $>
34
+ <$= row.with_header_content("1") $>
35
+ <$= row.with_datum_content("Cy Ganderton") $>
36
+ <$= row.with_datum_content("Quality Control Specialist") $>
37
+ <$= row.with_datum_content("Blue") $>
38
+ <$ end $>
39
+
40
+ <$= body.with_row do |row| $>
41
+ <$= row.with_header_content("2") $>
42
+ <$= row.with_datum_content("Hart Hagerty") $>
43
+ <$= row.with_datum_content("Desktop Support Technician") $>
44
+ <$= row.with_datum_content("Purple") $>
45
+ <$ end $>
46
+
47
+ <$= body.with_row do |row| $>
48
+ <$= row.with_header_content("3") $>
49
+ <$= row.with_datum_content("Brice Swyre") $>
50
+ <$= row.with_datum_content("Tax Accountant") $>
51
+ <$= row.with_datum_content("Red") $>
52
+ <$ end $>
53
+ <$ end $>
54
+ <$ end $>
55
+ <$ end $>
56
+ </div>
57
+ ERB
58
+ ) %>
59
+ <% end %>
60
+ <% end %>
61
+
62
+ <%= render DocumentationComponent.new do |doc| %>
63
+ <%= doc.with_header { "# Zebra" } %>
64
+ <%= doc.with_body(preview_options: { css_class: "w-lg" }) do |body| %>
65
+ <%= body.with_preview_example(
66
+ source: <<~ERB
67
+ <div class="overflow-x-auto">
68
+ <$= render #{component}.new(zebra: true) do |table| $>
69
+ <$= table.with_item do |item| $>
70
+ <$= item.with_head do |head| $>
71
+ <$= head.with_row do |row| $>
72
+ <$= row.with_header $>
73
+ <$= row.with_header_content("Name") $>
74
+ <$= row.with_header_content("Job") $>
75
+ <$= row.with_header_content("Favorite Color") $>
76
+ <$ end $>
77
+ <$ end $>
78
+
79
+ <$= item.with_body do |body| $>
80
+ <$= body.with_row do |row| $>
81
+ <$= row.with_header_content("1") $>
82
+ <$= row.with_datum_content("Cy Ganderton") $>
83
+ <$= row.with_datum_content("Quality Control Specialist") $>
84
+ <$= row.with_datum_content("Blue") $>
85
+ <$ end $>
86
+
87
+ <$= body.with_row do |row| $>
88
+ <$= row.with_header_content("2") $>
89
+ <$= row.with_datum_content("Hart Hagerty") $>
90
+ <$= row.with_datum_content("Desktop Support Technician") $>
91
+ <$= row.with_datum_content("Purple") $>
92
+ <$ end $>
93
+
94
+ <$= body.with_row do |row| $>
95
+ <$= row.with_header_content("3") $>
96
+ <$= row.with_datum_content("Brice Swyre") $>
97
+ <$= row.with_datum_content("Tax Accountant") $>
98
+ <$= row.with_datum_content("Red") $>
99
+ <$ end $>
100
+ <$ end $>
101
+ <$ end $>
102
+ <$ end $>
103
+ </div>
104
+ ERB
105
+ ) %>
106
+ <% end %>
107
+ <% end %>
108
+
109
+ <% sizes = { 'xs' => 'Xsmall', 'sm' => 'Small', 'md' => 'Medium', 'lg' => 'Large', 'xl' => 'Xlarge' } %>
110
+
111
+ <% sizes.each do |key, value| %>
112
+ <%= render DocumentationComponent.new do |doc| %>
113
+ <%= doc.with_header { "# Table #{value} #{'(default)' if key == "md"}" } %>
114
+ <%= doc.with_body do |body| %>
115
+ <%= body.with_preview_example(
116
+ source: <<~ERB
117
+ <div class="overflow-x-auto">
118
+ <$= render #{component}.new(size: "#{key}") do |table| $>
119
+ <$= table.with_item do |item| $>
120
+ <$= item.with_head do |head| $>
121
+ <$= head.with_row do |row| $>
122
+ <$= row.with_header $>
123
+ <$= row.with_header_content("Name") $>
124
+ <$= row.with_header_content("Job") $>
125
+ <$= row.with_header_content("company") $>
126
+ <$= row.with_header_content("location") $>
127
+ <$= row.with_header_content("Last Login") $>
128
+ <$= row.with_header_content("Favorite Color") $>
129
+ <$ end $>
130
+ <$ end $>
131
+
132
+ <$= item.with_body do |body| $>
133
+ <$= body.with_row do |row| $>
134
+ <$= row.with_header_content("1") $>
135
+ <$= row.with_datum_content("Cy Ganderton") $>
136
+ <$= row.with_datum_content("Quality Control Specialist") $>
137
+ <$= row.with_datum_content("Littel, Schaden and Vandervort ") $>
138
+ <$= row.with_datum_content("Canada") $>
139
+ <$= row.with_datum_content("12/16/2020") $>
140
+ <$= row.with_datum_content("Blue") $>
141
+ <$ end $>
142
+
143
+ <$= body.with_row do |row| $>
144
+ <$= row.with_header_content("2") $>
145
+ <$= row.with_datum_content("Hart Hagerty") $>
146
+ <$= row.with_datum_content("Desktop Support Technician") $>
147
+ <$= row.with_datum_content("Zemlak, Daniel and Leannon") $>
148
+ <$= row.with_datum_content("United States") $>
149
+ <$= row.with_datum_content("12/5/2020") $>
150
+ <$= row.with_datum_content("Purple") $>
151
+ <$ end $>
152
+
153
+ <$= body.with_row do |row| $>
154
+ <$= row.with_header_content("3") $>
155
+ <$= row.with_datum_content("Brice Swyre") $>
156
+ <$= row.with_datum_content("Tax Accountant") $>
157
+ <$= row.with_datum_content("Carroll Group") $>
158
+ <$= row.with_datum_content("China") $>
159
+ <$= row.with_datum_content("8/15/2020") $>
160
+ <$= row.with_datum_content("Red") $>
161
+ <$ end $>
162
+ <$ end $>
163
+
164
+ <$= item.with_foot do |foot| $>
165
+ <$= foot.with_row do |row| $>
166
+ <$= row.with_header $>
167
+ <$= row.with_header_content("Name") $>
168
+ <$= row.with_header_content("Job") $>
169
+ <$= row.with_header_content("company") $>
170
+ <$= row.with_header_content("location") $>
171
+ <$= row.with_header_content("Last Login") $>
172
+ <$= row.with_header_content("Favorite Color") $>
173
+ <$ end $>
174
+ <$ end $>
175
+ <$ end $>
176
+ <$ end $>
177
+ </div>
178
+ ERB
179
+ ) %>
180
+ <% end %>
181
+ <% end %>
182
+ <% end %>
183
+
184
+ <%= render DocumentationComponent.new do |doc| %>
185
+ <%= doc.with_header { "# Table with pinned-rows" } %>
186
+ <%= doc.with_body(preview_options: { css_class: "w-96" }) do |body| %>
187
+ <%= body.with_preview_example(
188
+ source: <<~ERB
189
+ <div class="h-46 overflow-x-auto">
190
+ <$= render #{component}.new(pinned_rows: true, css_class: "bg-base-200") do |table| $>
191
+ <$= table.with_item do |item| $>
192
+ <$= item.with_head do |head| $>
193
+ <$= head.with_row do |row| $>
194
+ <$= row.with_header_content("A") $>
195
+ <$ end $>
196
+ <$ end $>
197
+
198
+ <$= item.with_body do |body| $>
199
+ <$= body.with_row do |row| $>
200
+ <$= row.with_header_content("Ant-Man") $>
201
+ <$ end $>
202
+ <$= body.with_row do |row| $>
203
+ <$= row.with_header_content("Aquaman") $>
204
+ <$ end $>
205
+ <$= body.with_row do |row| $>
206
+ <$= row.with_header_content("Asterix") $>
207
+ <$ end $>
208
+ <$= body.with_row do |row| $>
209
+ <$= row.with_header_content("The Atom") $>
210
+ <$ end $>
211
+ <$= body.with_row do |row| $>
212
+ <$= row.with_header_content("The Avengers") $>
213
+ <$ end $>
214
+ <$ end $>
215
+ <$ end $>
216
+
217
+ <$= table.with_item do |item| $>
218
+ <$= item.with_head do |head| $>
219
+ <$= head.with_row do |row| $>
220
+ <$= row.with_header_content("B") $>
221
+ <$ end $>
222
+ <$ end $>
223
+
224
+ <$= item.with_body do |body| $>
225
+ <$= body.with_row do |row| $>
226
+ <$= row.with_header_content("Batgirl") $>
227
+ <$ end $>
228
+ <$= body.with_row do |row| $>
229
+ <$= row.with_header_content("Batman") $>
230
+ <$ end $>
231
+ <$= body.with_row do |row| $>
232
+ <$= row.with_header_content("Batwoman") $>
233
+ <$ end $>
234
+ <$= body.with_row do |row| $>
235
+ <$= row.with_header_content("Black Canary") $>
236
+ <$ end $>
237
+ <$= body.with_row do |row| $>
238
+ <$= row.with_header_content("Black Panther") $>
239
+ <$ end $>
240
+ <$ end $>
241
+ <$ end $>
242
+
243
+ <$= table.with_item do |item| $>
244
+ <$= item.with_head do |head| $>
245
+ <$= head.with_row do |row| $>
246
+ <$= row.with_header_content("C") $>
247
+ <$ end $>
248
+ <$ end $>
249
+
250
+ <$= item.with_body do |body| $>
251
+ <$= body.with_row do |row| $>
252
+ <$= row.with_header_content("Captain America") $>
253
+ <$ end $>
254
+ <$= body.with_row do |row| $>
255
+ <$= row.with_header_content("Captain Marvel") $>
256
+ <$ end $>
257
+ <$= body.with_row do |row| $>
258
+ <$= row.with_header_content("Catwoman") $>
259
+ <$ end $>
260
+ <$= body.with_row do |row| $>
261
+ <$= row.with_header_content("Conan the Barbarian") $>
262
+ <$ end $>
263
+ <$ end $>
264
+ <$ end $>
265
+ <$ end $>
266
+ </div>
267
+ ERB
268
+ ) %>
269
+ <% end %>
270
+ <% end %>
271
+
272
+ <%= render DocumentationComponent.new do |doc| %>
273
+ <%= doc.with_header { "# Table with pinned-rows and pinned-cols" } %>
274
+ <%= doc.with_body(preview_options: { css_class: "w-96" }) do |body| %>
275
+ <%= body.with_preview_example(
276
+ source: <<~ERB
277
+ <div class="h-46 overflow-x-auto">
278
+ <$= render #{component}.new(size: "xs", pinned_rows: true, pinned_cols: true) do |table| $>
279
+ <$= table.with_item do |item| $>
280
+ <$= item.with_head do |head| $>
281
+ <$= head.with_row do |row| $>
282
+ <$= row.with_header_content("") $>
283
+ <$= row.with_header_content("Name") $>
284
+ <$= row.with_header_content("Job") $>
285
+ <$= row.with_header_content("company") $>
286
+ <$= row.with_header_content("location") $>
287
+ <$= row.with_header_content("Last Login") $>
288
+ <$= row.with_header_content("Favorite Color") $>
289
+ <$= row.with_header_content("") $>
290
+ <$ end $>
291
+ <$ end $>
292
+
293
+ <$= item.with_body do |body| $>
294
+ <$= body.with_row do |row| $>
295
+ <$= row.with_header_content("1") $>
296
+ <$= row.with_header_content("Cy Ganderton") $>
297
+ <$= row.with_header_content("Quality Control Specialist") $>
298
+ <$= row.with_header_content("Littel, Schaden and Vandervort") $>
299
+ <$= row.with_header_content("Canada") $>
300
+ <$= row.with_header_content("12/16/2020") $>
301
+ <$= row.with_header_content("Blue") $>
302
+ <$= row.with_header_content("1") $>
303
+ <$ end $>
304
+
305
+ <$= body.with_row do |row| $>
306
+ <$= row.with_header_content("2") $>
307
+ <$= row.with_header_content("Hart Hagerty") $>
308
+ <$= row.with_header_content("Desktop Support Technician") $>
309
+ <$= row.with_header_content("Zemlak, Daniel and Leanno") $>
310
+ <$= row.with_header_content("United States") $>
311
+ <$= row.with_header_content("12/5/2020") $>
312
+ <$= row.with_header_content("Purple") $>
313
+ <$= row.with_header_content("2") $>
314
+ <$ end $>
315
+
316
+ <$= body.with_row do |row| $>
317
+ <$= row.with_header_content("3") $>
318
+ <$= row.with_header_content("Brice Swyre") $>
319
+ <$= row.with_header_content("Tax Accountant") $>
320
+ <$= row.with_header_content("Carroll Group") $>
321
+ <$= row.with_header_content("China") $>
322
+ <$= row.with_header_content("8/15/2020") $>
323
+ <$= row.with_header_content("Red") $>
324
+ <$= row.with_header_content("3") $>
325
+ <$ end $>
326
+ <$ end $>
327
+
328
+ <$= item.with_foot do |foot| $>
329
+ <$= foot.with_row do |row| $>
330
+ <$= row.with_header_content("") $>
331
+ <$= row.with_header_content("Name") $>
332
+ <$= row.with_header_content("Job") $>
333
+ <$= row.with_header_content("company") $>
334
+ <$= row.with_header_content("location") $>
335
+ <$= row.with_header_content("Last Login") $>
336
+ <$= row.with_header_content("Favorite Color") $>
337
+ <$= row.with_header_content("") $>
338
+ <$ end $>
339
+ <$ end $>
340
+ <$ end $>
341
+ <$ end $>
342
+ </div>
343
+ ERB
344
+ ) %>
345
+ <% end %>
346
+ <% end %>
347
+
348
+ <div class="divider"></div>
349
+
350
+ <div class="mb-2">
351
+ <h1 class="font-bold mb-2"># Data display > Table</h1>
352
+ <ul class="bg-base-100 rounded-box shadow-md p-2">
353
+ <%= link_to "< Status", daisy_ui_status_path, class: "link link-primary m-2" %>
354
+ <%= link_to "Home", daisy_ui_path, class: "link link-primary m-2" %>
355
+ <%= link_to "Timeline >", daisy_ui_timeline_path, class: "link link-primary m-2" %>
356
+ </ul>
357
+ </div>
358
+ </div>