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,431 @@
1
+ <% component = UiComponents::DaisyUi::DataDisplay::TimelineComponent %>
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 > Timeline</h1>
6
+ <ul class="bg-base-100 rounded-box shadow-md p-2">
7
+ <%= link_to "< Table", daisy_ui_table_path, class: "link link-primary m-2" %>
8
+ <%= link_to "Home", daisy_ui_path, class: "link link-primary m-2" %>
9
+ </ul>
10
+ </div>
11
+
12
+ <div class="divider"></div>
13
+
14
+ <% aligns = { "horizontal" => "Horizontal", "vertical" => "Vertical" } %>
15
+
16
+ <% aligns.each do |key, value| %>
17
+ <%= render DocumentationComponent.new do |doc| %>
18
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with text on both sides and icon" } %>
19
+ <%= doc.with_body do |body| %>
20
+ <%= body.with_preview_example(
21
+ source: <<~ERB
22
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
23
+ <$= timeline.with_item do |item| $>
24
+ <$= item.with_item_start_content("1984") $>
25
+ <$= item.with_item_middle do $>
26
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
27
+ <$ end $>
28
+ <$= item.with_item_end(box: true).with_content("First Macintosh computer") $>
29
+ <$= item.with_line_end $>
30
+ <$ end $>
31
+
32
+ <$= timeline.with_item do |item| $>
33
+ <$= item.with_line_start $>
34
+ <$= item.with_item_start_content("1998") $>
35
+ <$= item.with_item_middle do $>
36
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
37
+ <$ end $>
38
+ <$= item.with_item_end(box: true).with_content("iMac") $>
39
+ <$= item.with_line_end $>
40
+ <$ end $>
41
+
42
+ <$= timeline.with_item do |item| $>
43
+ <$= item.with_line_start $>
44
+ <$= item.with_item_start_content("2001") $>
45
+ <$= item.with_item_middle do $>
46
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
47
+ <$ end $>
48
+ <$= item.with_item_end(box: true).with_content("iPod") $>
49
+ <$= item.with_line_end $>
50
+ <$ end $>
51
+
52
+ <$= timeline.with_item do |item| $>
53
+ <$= item.with_line_start $>
54
+ <$= item.with_item_start_content("2007") $>
55
+ <$= item.with_item_middle do $>
56
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
57
+ <$ end $>
58
+ <$= item.with_item_end(box: true).with_content("iPhone") $>
59
+ <$= item.with_line_end $>
60
+ <$ end $>
61
+
62
+ <$= timeline.with_item do |item| $>
63
+ <$= item.with_line_start $>
64
+ <$= item.with_item_start_content("2015") $>
65
+ <$= item.with_item_middle do $>
66
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
67
+ <$ end $>
68
+ <$= item.with_item_end(box: true).with_content("Apple Watch") $>
69
+ <$ end $>
70
+ <$ end $>
71
+ ERB
72
+ ) %>
73
+ <% end %>
74
+ <% end %>
75
+
76
+ <%= render DocumentationComponent.new do |doc| %>
77
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with bottom side only" } %>
78
+ <%= doc.with_body do |body| %>
79
+ <%= body.with_preview_example(
80
+ source: <<~ERB
81
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
82
+ <$= timeline.with_item do |item| $>
83
+ <$= item.with_item_middle do $>
84
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
85
+ <$ end $>
86
+ <$= item.with_item_end(box: true).with_content("First Macintosh computer") $>
87
+ <$= item.with_line_end $>
88
+ <$ end $>
89
+
90
+ <$= timeline.with_item do |item| $>
91
+ <$= item.with_line_start $>
92
+ <$= item.with_item_middle do $>
93
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
94
+ <$ end $>
95
+ <$= item.with_item_end(box: true).with_content("iMac") $>
96
+ <$= item.with_line_end $>
97
+ <$ end $>
98
+
99
+ <$= timeline.with_item do |item| $>
100
+ <$= item.with_line_start $>
101
+ <$= item.with_item_middle do $>
102
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
103
+ <$ end $>
104
+ <$= item.with_item_end(box: true).with_content("iPod") $>
105
+ <$= item.with_line_end $>
106
+ <$ end $>
107
+
108
+ <$= timeline.with_item do |item| $>
109
+ <$= item.with_line_start $>
110
+ <$= item.with_item_middle do $>
111
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
112
+ <$ end $>
113
+ <$= item.with_item_end(box: true).with_content("iPhone") $>
114
+ <$= item.with_line_end $>
115
+ <$ end $>
116
+
117
+ <$= timeline.with_item do |item| $>
118
+ <$= item.with_line_start $>
119
+ <$= item.with_item_middle do $>
120
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
121
+ <$ end $>
122
+ <$= item.with_item_end(box: true).with_content("Apple Watch") $>
123
+ <$ end $>
124
+ <$ end $>
125
+ ERB
126
+ ) %>
127
+ <% end %>
128
+ <% end %>
129
+
130
+ <%= render DocumentationComponent.new do |doc| %>
131
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with top side only" } %>
132
+ <%= doc.with_body do |body| %>
133
+ <%= body.with_preview_example(
134
+ source: <<~ERB
135
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
136
+ <$= timeline.with_item do |item| $>
137
+ <$= item.with_item_start(box: true).with_content("First Macintosh computer") $>
138
+ <$= item.with_item_middle do $>
139
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
140
+ <$ end $>
141
+ <$= item.with_line_end $>
142
+ <$ end $>
143
+
144
+ <$= timeline.with_item do |item| $>
145
+ <$= item.with_line_start $>
146
+ <$= item.with_item_start(box: true).with_content("iMac") $>
147
+ <$= item.with_item_middle do $>
148
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
149
+ <$ end $>
150
+ <$= item.with_line_end $>
151
+ <$ end $>
152
+
153
+ <$= timeline.with_item do |item| $>
154
+ <$= item.with_line_start $>
155
+ <$= item.with_item_start(box: true).with_content("iPod") $>
156
+ <$= item.with_item_middle do $>
157
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
158
+ <$ end $>
159
+ <$= item.with_line_end $>
160
+ <$ end $>
161
+
162
+ <$= timeline.with_item do |item| $>
163
+ <$= item.with_line_start $>
164
+ <<$= item.with_item_start(box: true).with_content("iPhone") $>
165
+ <$= item.with_item_middle do $>
166
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
167
+ <$ end $>
168
+ <$= item.with_line_end $>
169
+ <$ end $>
170
+
171
+ <$= timeline.with_item do |item| $>
172
+ <$= item.with_line_start $>
173
+ <$= item.with_item_start(box: true).with_content("Apple Watch") $>
174
+ <$= item.with_item_middle do $>
175
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
176
+ <$ end $>
177
+ <$ end $>
178
+ <$ end $>
179
+ ERB
180
+ ) %>
181
+ <% end %>
182
+ <% end %>
183
+
184
+ <%= render DocumentationComponent.new do |doc| %>
185
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with different sides" } %>
186
+ <%= doc.with_body do |body| %>
187
+ <%= body.with_preview_example(
188
+ source: <<~ERB
189
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
190
+ <$= timeline.with_item do |item| $>
191
+ <$= item.with_item_start(box: true).with_content("First Macintosh computer") $>
192
+ <$= item.with_item_middle do $>
193
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
194
+ <$ end $>
195
+ <$= item.with_line_end $>
196
+ <$ end $>
197
+
198
+ <$= timeline.with_item do |item| $>
199
+ <$= item.with_line_start $>
200
+ <$= item.with_item_middle do $>
201
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
202
+ <$ end $>
203
+ <$= item.with_item_end(box: true).with_content("iMac") $>
204
+ <$= item.with_line_end $>
205
+ <$ end $>
206
+
207
+ <$= timeline.with_item do |item| $>
208
+ <$= item.with_line_start $>
209
+ <$= item.with_item_start(box: true).with_content("iPod") $>
210
+ <$= item.with_item_middle do $>
211
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
212
+ <$ end $>
213
+ <$= item.with_line_end $>
214
+ <$ end $>
215
+
216
+ <$= timeline.with_item do |item| $>
217
+ <$= item.with_line_start $>
218
+ <$= item.with_item_middle do $>
219
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
220
+ <$ end $>
221
+ <$= item.with_item_end(box: true).with_content("iPhone") $>
222
+ <$= item.with_line_end $>
223
+ <$ end $>
224
+
225
+ <$= timeline.with_item do |item| $>
226
+ <$= item.with_line_start $>
227
+ <$= item.with_item_start(box: true).with_content("Apple Watch") $>
228
+ <$= item.with_item_middle do $>
229
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
230
+ <$ end $>
231
+ <$ end $>
232
+ <$ end $>
233
+ ERB
234
+ ) %>
235
+ <% end %>
236
+ <% end %>
237
+
238
+ <%= render DocumentationComponent.new do |doc| %>
239
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with colorful lines" } %>
240
+ <%= doc.with_body do |body| %>
241
+ <%= body.with_preview_example(
242
+ source: <<~ERB
243
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
244
+ <$= timeline.with_item do |item| $>
245
+ <$= item.with_item_start(box: true).with_content("First Macintosh computer") $>
246
+ <$= item.with_item_middle do $>
247
+ <svg class="text-primary" xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
248
+ <$ end $>
249
+ <$= item.with_line_end(css_class: "bg-primary") $>
250
+ <$ end $>
251
+
252
+ <$= timeline.with_item do |item| $>
253
+ <$= item.with_line_start(css_class: "bg-primary") $>
254
+ <$= item.with_item_middle do $>
255
+ <svg class="text-primary" xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
256
+ <$ end $>
257
+ <$= item.with_item_end(box: true).with_content("iMac") $>
258
+ <$= item.with_line_end(css_class: "bg-primary") $>
259
+ <$ end $>
260
+
261
+ <$= timeline.with_item do |item| $>
262
+ <$= item.with_line_start(css_class: "bg-primary") $>
263
+ <$= item.with_item_start(box: true).with_content("iPod") $>
264
+ <$= item.with_item_middle do $>
265
+ <svg class="text-primary" xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
266
+ <$ end $>
267
+ <$= item.with_line_end $>
268
+ <$ end $>
269
+
270
+ <$= timeline.with_item do |item| $>
271
+ <$= item.with_line_start $>
272
+ <$= item.with_item_middle do $>
273
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
274
+ <$ end $>
275
+ <$= item.with_item_end(box: true).with_content("iPhone") $>
276
+ <$= item.with_line_end $>
277
+ <$ end $>
278
+
279
+ <$= timeline.with_item do |item| $>
280
+ <$= item.with_line_start $>
281
+ <$= item.with_item_start(box: true).with_content("Apple Watch") $>
282
+ <$= item.with_item_middle do $>
283
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
284
+ <$ end $>
285
+ <$ end $>
286
+ <$ end $>
287
+ ERB
288
+ ) %>
289
+ <% end %>
290
+ <% end %>
291
+
292
+ <%= render DocumentationComponent.new do |doc| %>
293
+ <%= doc.with_header { "# #{key == "vertical" ? value : "#{value} (default)"} timeline with different sides" } %>
294
+ <%= doc.with_body do |body| %>
295
+ <%= body.with_preview_example(
296
+ source: <<~ERB
297
+ <$= render #{component}.new#{"(vertical: true)" if key == "vertical"} do |timeline| $>
298
+ <$= timeline.with_item do |item| $>
299
+ <$= item.with_item_start(box: true).with_content("First Macintosh computer") $>
300
+ <$= item.with_line_end $>
301
+ <$ end $>
302
+
303
+ <$= timeline.with_item do |item| $>
304
+ <$= item.with_line_start $>
305
+ <$= item.with_item_end(box: true).with_content("iMac") $>
306
+ <$= item.with_line_end $>
307
+ <$ end $>
308
+
309
+ <$= timeline.with_item do |item| $>
310
+ <$= item.with_line_start $>
311
+ <$= item.with_item_start(box: true).with_content("iPod") $>
312
+ <$= item.with_line_end $>
313
+ <$ end $>
314
+
315
+ <$= timeline.with_item do |item| $>
316
+ <$= item.with_line_start $>
317
+ <$= item.with_item_end(box: true).with_content("iPhone") $>
318
+ <$= item.with_line_end $>
319
+ <$ end $>
320
+
321
+ <$= timeline.with_item do |item| $>
322
+ <$= item.with_line_start $>
323
+ <$= item.with_item_start(box: true).with_content("Apple Watch") $>
324
+ <$ end $>
325
+ <$ end $>
326
+ ERB
327
+ ) %>
328
+ <% end %>
329
+ <% end %>
330
+ <% end %>
331
+
332
+ <%= render DocumentationComponent.new do |doc| %>
333
+ <%= doc.with_header { "# Timeline with icon snapped to the start" } %>
334
+ <%= doc.with_body do |body| %>
335
+ <%= body.with_preview_example(
336
+ source: <<~ERB
337
+ <$= render #{component}.new(vertical: true, css_class: "timeline-snap-icon max-md:timeline-compact") do |timeline| $>
338
+ <$= timeline.with_item do |item| $>
339
+ <$= item.with_item_start(css_class: "mb-10 md:text-end") do $>
340
+ <time class="font-mono italic">1984</time>
341
+ <div class="text-lg font-black">First Macintosh computer</div>
342
+ The Apple Macintosh—later rebranded as the Macintosh 128K—is the original Apple Macintosh
343
+ personal computer. It played a pivotal role in establishing desktop publishing as a general
344
+ office function. The motherboard, a 9 in (23 cm) CRT monitor, and a floppy drive were housed
345
+ in a beige case with integrated carrying handle; it came with a keyboard and single-button
346
+ mouse.
347
+ <$ end $>
348
+ <$= item.with_item_middle do $>
349
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
350
+ <$ end $>
351
+ <$= item.with_line_end $>
352
+ <$ end $>
353
+
354
+ <$= timeline.with_item do |item| $>
355
+ <$= item.with_line_start $>
356
+ <$= item.with_item_middle do $>
357
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
358
+ <$ end $>
359
+ <$= item.with_item_end(css_class: "md:mb-10") do $>
360
+ <time class="font-mono italic">1998</time>
361
+ <div class="text-lg font-black">iMac</div>
362
+ iMac is a family of all-in-one Mac desktop computers designed and built by Apple Inc. It has
363
+ been the primary part of Apple's consumer desktop offerings since its debut in August 1998,
364
+ and has evolved through seven distinct forms
365
+ <$ end $>
366
+ <$= item.with_line_end $>
367
+ <$ end $>
368
+
369
+ <$= timeline.with_item do |item| $>
370
+ <$= item.with_line_start $>
371
+ <$= item.with_item_start(css_class: "mb-10 md:text-end") do $>
372
+ <time class="font-mono italic">2001</time>
373
+ <div class="text-lg font-black">iPod</div>
374
+ The iPod is a discontinued series of portable media players and multi-purpose mobile devices
375
+ designed and marketed by Apple Inc. The first version was released on October 23, 2001, about
376
+ 8+1⁄2 months after the Macintosh version of iTunes was released. Apple sold an estimated 450
377
+ million iPod products as of 2022. Apple discontinued the iPod product line on May 10, 2022. At
378
+ over 20 years, the iPod brand is the oldest to be discontinued by Apple
379
+ <$ end $>
380
+ <$= item.with_item_middle do $>
381
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
382
+ <$ end $>
383
+ <$= item.with_line_end $>
384
+ <$ end $>
385
+
386
+ <$= timeline.with_item do |item| $>
387
+ <$= item.with_line_start $>
388
+ <$= item.with_item_middle do $>
389
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
390
+ <$ end $>
391
+ <$= item.with_item_end(css_class: "md:mb-10") do $>
392
+ <time class="font-mono italic">2007</time>
393
+ <div class="text-lg font-black">iPhone</div>
394
+ iPhone is a line of smartphones produced by Apple Inc. that use Apple's own iOS mobile
395
+ operating system. The first-generation iPhone was announced by then-Apple CEO Steve Jobs on
396
+ January 9, 2007. Since then, Apple has annually released new iPhone models and iOS updates. As
397
+ of November 1, 2018, more than 2.2 billion iPhones had been sold. As of 2022, the iPhone
398
+ accounts for 15.6% of global smartphone market share
399
+ <$ end $>
400
+ <$= item.with_line_end $>
401
+ <$ end $>
402
+
403
+ <$= timeline.with_item do |item| $>
404
+ <$= item.with_line_start $>
405
+ <$= item.with_item_start(css_class: "mb-10 md:text-end") do $>
406
+ <time class="font-mono italic">2015</time>
407
+ <div class="text-lg font-black">Apple Watch</div>
408
+ The Apple Watch is a line of smartwatches produced by Apple Inc. It incorporates fitness
409
+ tracking, health-oriented capabilities, and wireless telecommunication, and integrates with
410
+ iOS and other Apple products and services
411
+ <$ end $>
412
+ <$= item.with_item_middle do $>
413
+ <svg xmlns="http://www.w3.org/2000/svg" height="20px" viewBox="0 -960 960 960" width="20px" fill="currentColor"><path d="m424-296 282-282-56-56-226 226-114-114-56 56 170 170Zm56 216q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"/></svg>
414
+ <$ end $>
415
+ <$ end $>
416
+ <$ end $>
417
+ ERB
418
+ ) %>
419
+ <% end %>
420
+ <% end %>
421
+
422
+ <div class="divider"></div>
423
+
424
+ <div class="mb-2">
425
+ <h1 class="font-bold mb-2"># Data display > Timeline</h1>
426
+ <ul class="bg-base-100 rounded-box shadow-md p-2">
427
+ <%= link_to "< Table", daisy_ui_table_path, class: "link link-primary m-2" %>
428
+ <%= link_to "Home", daisy_ui_path, class: "link link-primary m-2" %>
429
+ </ul>
430
+ </div>
431
+ </div>
@@ -15,6 +15,17 @@
15
15
  <%= link_to "Accordion", daisy_ui_accordion_path, class: "link link-primary m-2" %>
16
16
  <%= link_to "Avatar", daisy_ui_avatar_path, class: "link link-primary m-2" %>
17
17
  <%= link_to "Badge", daisy_ui_badge_path, class: "link link-primary m-2" %>
18
+ <%= link_to "Card", daisy_ui_card_path, class: "link link-primary m-2" %>
19
+ <%= link_to "Carousel", daisy_ui_carousel_path, class: "link link-primary m-2" %>
20
+ <%= link_to "Chat Bubble", daisy_ui_chat_path, class: "link link-primary m-2" %>
21
+ <%= link_to "Countdown", daisy_ui_countdown_path, class: "link link-primary m-2" %>
22
+ <%= link_to "Diff", daisy_ui_diff_path, class: "link link-primary m-2" %>
23
+ <%= link_to "Kbd", daisy_ui_kbd_path, class: "link link-primary m-2" %>
24
+ <%= link_to "List", daisy_ui_list_path, class: "link link-primary m-2" %>
25
+ <%= link_to "Stat", daisy_ui_stat_path, class: "link link-primary m-2" %>
26
+ <%= link_to "Status", daisy_ui_status_path, class: "link link-primary m-2" %>
27
+ <%= link_to "Table", daisy_ui_table_path, class: "link link-primary m-2" %>
28
+ <%= link_to "Timeline", daisy_ui_timeline_path, class: "link link-primary m-2" %>
18
29
  </ul>
19
30
  </div>
20
31
  </div>
data/config/routes.rb CHANGED
@@ -3,7 +3,7 @@ UiComponents::Engine.routes.draw do
3
3
  namespace :daisy_ui do
4
4
  get '/', to: "home#index"
5
5
 
6
- # Actions
6
+ # 4 - Actions
7
7
  scope controller: :action_components do
8
8
  get "button"
9
9
  get "dropdown"
@@ -11,11 +11,22 @@ UiComponents::Engine.routes.draw do
11
11
  get "swap"
12
12
  end
13
13
 
14
- # Dara Display
14
+ # 14 - Dara Display
15
15
  scope controller: :data_display_components do
16
16
  get "accordion"
17
17
  get "avatar"
18
18
  get "badge"
19
+ get "card"
20
+ get "carousel"
21
+ get "chat"
22
+ get "countdown"
23
+ get "diff"
24
+ get "kbd"
25
+ get "list"
26
+ get "stat"
27
+ get "status"
28
+ get "table"
29
+ get "timeline"
19
30
  end
20
31
  end
21
32
  end
@@ -22,9 +22,6 @@ namespace :ui_components do
22
22
  UiComponents::Config.inject_into_file(file_path: Rails.root.join(".gitignore"),
23
23
  file_data: "safelist.txt")
24
24
 
25
- # Building tailwindcss assets
26
- # Rake::Task["tailwindcss:build"].invoke
27
-
28
25
  # Add engine for routes.rb
29
26
  UiComponents::Config.inject_into_routes(file_path: Rails.root.join("config/routes.rb"),
30
27
  route_line: 'mount UiComponents::Engine, at: "/"')
@@ -5,7 +5,7 @@ module UiComponents
5
5
  module DaisyUiClassNames
6
6
  DAISY_UI_COMPONENTS = {
7
7
  action: %w[button dropdown modal swap],
8
- data_display: %w[accordion avatar badge]
8
+ data_display: %w[accordion avatar badge card carousel chat countdown diff kbd list stat status table timeline]
9
9
  }.freeze
10
10
 
11
11
  class << self
@@ -19,7 +19,8 @@ module UiComponents
19
19
  private
20
20
 
21
21
  def other_class_names
22
- %w[link link-primary join join-vertical avatar-group -space-x-6 text-info]
22
+ %w[link link-primary join join-vertical avatar-group -space-x-6 text-info divider chat-image list-col-grow list-col-wrap
23
+ max-md:timeline-compact]
23
24
  end
24
25
 
25
26
  def get_component_classes(scope:, components:)
@@ -5,36 +5,59 @@ module UiComponents
5
5
  module TailwindClassNames
6
6
  class << self
7
7
  def all
8
+ layout +
8
9
  flexbox_and_grid +
9
10
  spacing +
10
11
  sizing +
11
12
  typography +
13
+ backgrounds +
12
14
  borders +
15
+ effects +
16
+ transitions_and_animation +
13
17
  svg
14
18
  end
15
19
 
16
20
  private
17
21
 
22
+ def layout
23
+ %w[relative aspect-16/9 overflow-x-auto]
24
+ end
25
+
18
26
  def flexbox_and_grid
19
- %w[grid grid-cols gap-16]
27
+ %w[grid grid-cols grid-flow-col gap-y-4 gap-1 gap-2 gap-5 gap-12 gap-16 flex flex-col auto-cols-max items-center justify-center
28
+ place-content-center place-items-center inline-grid *:[grid-area:1/1]]
20
29
  end
21
30
 
22
31
  def spacing
23
- %w[p-2 m-2 mt-6 mb-36]
32
+ %w[p-2 py-2 p-4 px-10 pt-10 pb-2 my-1 m-2 mt-6 mb-36 mb-10 md:mb-10 space-x-4]
24
33
  end
25
34
 
26
35
  def sizing
27
- %w[w-8 w-10 w-12 w-16 w-20 w-32 h-10]
36
+ %w[w-8 w-10 w-12 w-16 w-20 w-30 w-32 w-64 w-72 w-96 w-lg w-full w-1/2 max-w-md min-w-2xs max-w-4xl h-10 h-96 h-full size-5 size-6
37
+ size-10 h-46 max-h-98]
28
38
  end
29
39
 
30
40
  def typography
31
- %w[text-xl font-semibold text-center]
41
+ %w[text-xs text-xl text-2xl text-3xl text-5xl text-6xl text-9xl font-semibold font-mono text-center font-black tracking-wide
42
+ uppercase text-4xl font-thin tabular-nums text-primary italic md:text-end]
43
+ end
44
+
45
+ def backgrounds
46
+ %w[bg-primary]
32
47
  end
33
48
 
34
49
  def borders
35
50
  %w[rounded rounded-xl rounded-full]
36
51
  end
37
52
 
53
+ def effects
54
+ %w[opacity-30 opacity-60]
55
+ end
56
+
57
+ def transitions_and_animation
58
+ %w[animate-ping animate-bounce]
59
+ end
60
+
38
61
  def svg
39
62
  %w[fill-current]
40
63
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UiComponents
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end