better_ui 0.3.0 → 0.5.0

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.

Potentially problematic release.


This version of better_ui might be problematic. Click here for more details.

Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/README.md +227 -209
  4. data/app/assets/javascripts/better_ui/controllers/navbar_controller.js +138 -0
  5. data/app/assets/javascripts/better_ui/controllers/sidebar_controller.js +211 -0
  6. data/app/assets/javascripts/better_ui/controllers/toast_controller.js +161 -0
  7. data/app/assets/javascripts/better_ui/index.js +159 -0
  8. data/app/assets/javascripts/better_ui/toast_manager.js +77 -0
  9. data/app/assets/stylesheets/better_ui/application.css +30 -0
  10. data/app/components/better_ui/application/alert_component.html.erb +27 -0
  11. data/app/components/better_ui/application/alert_component.rb +202 -0
  12. data/app/components/better_ui/application/card_component.html.erb +24 -0
  13. data/app/components/better_ui/application/card_component.rb +53 -0
  14. data/app/components/better_ui/application/card_container_component.html.erb +8 -0
  15. data/app/components/better_ui/application/card_container_component.rb +14 -0
  16. data/app/components/better_ui/application/header_component.html.erb +88 -0
  17. data/app/components/better_ui/application/header_component.rb +188 -0
  18. data/app/components/better_ui/application/navbar_component.html.erb +294 -0
  19. data/app/components/better_ui/application/navbar_component.rb +249 -0
  20. data/app/components/better_ui/application/sidebar_component.html.erb +207 -0
  21. data/app/components/better_ui/application/sidebar_component.rb +318 -0
  22. data/app/components/better_ui/application/toast_component.html.erb +35 -0
  23. data/app/components/better_ui/application/toast_component.rb +223 -0
  24. data/app/components/better_ui/general/avatar_component.html.erb +19 -0
  25. data/app/components/better_ui/general/avatar_component.rb +171 -0
  26. data/app/components/better_ui/general/badge_component.html.erb +19 -0
  27. data/app/components/better_ui/general/badge_component.rb +123 -0
  28. data/app/components/better_ui/general/{breadcrumb/component.html.erb → breadcrumb_component.html.erb} +4 -4
  29. data/app/components/better_ui/general/breadcrumb_component.rb +130 -0
  30. data/app/components/better_ui/general/{button/component.html.erb → button_component.html.erb} +7 -7
  31. data/app/components/better_ui/general/button_component.rb +162 -0
  32. data/app/components/better_ui/general/heading_component.html.erb +25 -0
  33. data/app/components/better_ui/general/heading_component.rb +148 -0
  34. data/app/components/better_ui/general/icon_component.html.erb +2 -0
  35. data/app/components/better_ui/general/icon_component.rb +100 -0
  36. data/app/components/better_ui/general/link_component.html.erb +17 -0
  37. data/app/components/better_ui/general/link_component.rb +132 -0
  38. data/app/components/better_ui/general/panel_component.html.erb +27 -0
  39. data/app/components/better_ui/general/panel_component.rb +103 -0
  40. data/app/components/better_ui/general/spinner_component.html.erb +15 -0
  41. data/app/components/better_ui/general/spinner_component.rb +79 -0
  42. data/app/components/better_ui/general/table_component.html.erb +73 -0
  43. data/app/components/better_ui/general/table_component.rb +167 -0
  44. data/app/components/better_ui/theme_helper.rb +171 -0
  45. data/app/controllers/better_ui/application_controller.rb +1 -0
  46. data/app/controllers/better_ui/docs_controller.rb +34 -0
  47. data/app/views/components/better_ui/general/table/_custom_body_row.html.erb +17 -0
  48. data/app/views/components/better_ui/general/table/_custom_footer_rows.html.erb +17 -0
  49. data/app/views/components/better_ui/general/table/_custom_header_rows.html.erb +12 -0
  50. data/app/views/layouts/component_preview.html.erb +32 -0
  51. data/config/initializers/lookbook.rb +12 -12
  52. data/config/routes.rb +13 -0
  53. data/lib/better_ui/engine.rb +36 -5
  54. data/lib/better_ui/version.rb +1 -1
  55. data/lib/better_ui.rb +24 -4
  56. data/lib/generators/better_ui/stylesheet_generator.rb +96 -0
  57. data/lib/generators/better_ui/templates/README +56 -0
  58. data/lib/generators/better_ui/templates/components/_avatar.scss +151 -0
  59. data/lib/generators/better_ui/templates/components/_badge.scss +142 -0
  60. data/lib/generators/better_ui/templates/components/_breadcrumb.scss +107 -0
  61. data/lib/generators/better_ui/templates/components/_button.scss +106 -0
  62. data/lib/generators/better_ui/templates/components/_card.scss +69 -0
  63. data/lib/generators/better_ui/templates/components/_heading.scss +180 -0
  64. data/lib/generators/better_ui/templates/components/_icon.scss +90 -0
  65. data/lib/generators/better_ui/templates/components/_link.scss +130 -0
  66. data/lib/generators/better_ui/templates/components/_panel.scss +144 -0
  67. data/lib/generators/better_ui/templates/components/_spinner.scss +132 -0
  68. data/lib/generators/better_ui/templates/components/_table.scss +105 -0
  69. data/lib/generators/better_ui/templates/components/_variables.scss +33 -0
  70. data/lib/generators/better_ui/templates/components_stylesheet.scss +66 -0
  71. metadata +145 -156
  72. data/app/components/better_ui/application/card/component.html.erb +0 -20
  73. data/app/components/better_ui/application/card/component.rb +0 -214
  74. data/app/components/better_ui/application/main/component.html.erb +0 -9
  75. data/app/components/better_ui/application/main/component.rb +0 -123
  76. data/app/components/better_ui/application/navbar/component.html.erb +0 -92
  77. data/app/components/better_ui/application/navbar/component.rb +0 -136
  78. data/app/components/better_ui/application/sidebar/component.html.erb +0 -227
  79. data/app/components/better_ui/application/sidebar/component.rb +0 -130
  80. data/app/components/better_ui/general/accordion/component.html.erb +0 -5
  81. data/app/components/better_ui/general/accordion/component.rb +0 -92
  82. data/app/components/better_ui/general/accordion/item_component.html.erb +0 -12
  83. data/app/components/better_ui/general/accordion/item_component.rb +0 -176
  84. data/app/components/better_ui/general/alert/component.html.erb +0 -32
  85. data/app/components/better_ui/general/alert/component.rb +0 -242
  86. data/app/components/better_ui/general/avatar/component.html.erb +0 -20
  87. data/app/components/better_ui/general/avatar/component.rb +0 -301
  88. data/app/components/better_ui/general/badge/component.html.erb +0 -23
  89. data/app/components/better_ui/general/badge/component.rb +0 -248
  90. data/app/components/better_ui/general/breadcrumb/component.rb +0 -187
  91. data/app/components/better_ui/general/button/component.rb +0 -214
  92. data/app/components/better_ui/general/divider/component.html.erb +0 -10
  93. data/app/components/better_ui/general/divider/component.rb +0 -226
  94. data/app/components/better_ui/general/dropdown/component.html.erb +0 -25
  95. data/app/components/better_ui/general/dropdown/component.rb +0 -170
  96. data/app/components/better_ui/general/dropdown/divider_component.html.erb +0 -1
  97. data/app/components/better_ui/general/dropdown/divider_component.rb +0 -41
  98. data/app/components/better_ui/general/dropdown/item_component.html.erb +0 -6
  99. data/app/components/better_ui/general/dropdown/item_component.rb +0 -119
  100. data/app/components/better_ui/general/field/component.html.erb +0 -27
  101. data/app/components/better_ui/general/field/component.rb +0 -37
  102. data/app/components/better_ui/general/heading/component.html.erb +0 -22
  103. data/app/components/better_ui/general/heading/component.rb +0 -257
  104. data/app/components/better_ui/general/icon/component.html.erb +0 -7
  105. data/app/components/better_ui/general/icon/component.rb +0 -239
  106. data/app/components/better_ui/general/input/checkbox/component.html.erb +0 -5
  107. data/app/components/better_ui/general/input/checkbox/component.rb +0 -238
  108. data/app/components/better_ui/general/input/datetime/component.html.erb +0 -5
  109. data/app/components/better_ui/general/input/datetime/component.rb +0 -223
  110. data/app/components/better_ui/general/input/radio/component.html.erb +0 -5
  111. data/app/components/better_ui/general/input/radio/component.rb +0 -230
  112. data/app/components/better_ui/general/input/select/component.html.erb +0 -16
  113. data/app/components/better_ui/general/input/select/component.rb +0 -184
  114. data/app/components/better_ui/general/input/select/select_component.html.erb +0 -5
  115. data/app/components/better_ui/general/input/select/select_component.rb +0 -37
  116. data/app/components/better_ui/general/input/text/component.html.erb +0 -5
  117. data/app/components/better_ui/general/input/text/component.rb +0 -171
  118. data/app/components/better_ui/general/input/textarea/component.html.erb +0 -5
  119. data/app/components/better_ui/general/input/textarea/component.rb +0 -166
  120. data/app/components/better_ui/general/link/component.html.erb +0 -18
  121. data/app/components/better_ui/general/link/component.rb +0 -258
  122. data/app/components/better_ui/general/modal/component.html.erb +0 -5
  123. data/app/components/better_ui/general/modal/component.rb +0 -47
  124. data/app/components/better_ui/general/modal/modal_component.html.erb +0 -52
  125. data/app/components/better_ui/general/modal/modal_component.rb +0 -160
  126. data/app/components/better_ui/general/pagination/component.html.erb +0 -85
  127. data/app/components/better_ui/general/pagination/component.rb +0 -216
  128. data/app/components/better_ui/general/panel/component.html.erb +0 -28
  129. data/app/components/better_ui/general/panel/component.rb +0 -249
  130. data/app/components/better_ui/general/progress/component.html.erb +0 -11
  131. data/app/components/better_ui/general/progress/component.rb +0 -160
  132. data/app/components/better_ui/general/spinner/component.html.erb +0 -35
  133. data/app/components/better_ui/general/spinner/component.rb +0 -93
  134. data/app/components/better_ui/general/table/component.html.erb +0 -5
  135. data/app/components/better_ui/general/table/component.rb +0 -217
  136. data/app/components/better_ui/general/table/tbody_component.html.erb +0 -3
  137. data/app/components/better_ui/general/table/tbody_component.rb +0 -30
  138. data/app/components/better_ui/general/table/td_component.html.erb +0 -3
  139. data/app/components/better_ui/general/table/td_component.rb +0 -44
  140. data/app/components/better_ui/general/table/tfoot_component.html.erb +0 -3
  141. data/app/components/better_ui/general/table/tfoot_component.rb +0 -28
  142. data/app/components/better_ui/general/table/th_component.html.erb +0 -6
  143. data/app/components/better_ui/general/table/th_component.rb +0 -51
  144. data/app/components/better_ui/general/table/thead_component.html.erb +0 -3
  145. data/app/components/better_ui/general/table/thead_component.rb +0 -28
  146. data/app/components/better_ui/general/table/tr_component.html.erb +0 -3
  147. data/app/components/better_ui/general/table/tr_component.rb +0 -30
  148. data/app/components/better_ui/general/tabs/component.html.erb +0 -11
  149. data/app/components/better_ui/general/tabs/component.rb +0 -120
  150. data/app/components/better_ui/general/tabs/panel_component.html.erb +0 -3
  151. data/app/components/better_ui/general/tabs/panel_component.rb +0 -37
  152. data/app/components/better_ui/general/tabs/tab_component.html.erb +0 -13
  153. data/app/components/better_ui/general/tabs/tab_component.rb +0 -111
  154. data/app/components/better_ui/general/tag/component.html.erb +0 -3
  155. data/app/components/better_ui/general/tag/component.rb +0 -104
  156. data/app/components/better_ui/general/tooltip/component.html.erb +0 -7
  157. data/app/components/better_ui/general/tooltip/component.rb +0 -239
  158. data/app/helpers/better_ui/application/components/card/card_helper.rb +0 -96
  159. data/app/helpers/better_ui/application/components/card.rb +0 -11
  160. data/app/helpers/better_ui/application/components/main/main_helper.rb +0 -64
  161. data/app/helpers/better_ui/application/components/navbar/navbar_helper.rb +0 -77
  162. data/app/helpers/better_ui/application/components/sidebar/sidebar_helper.rb +0 -51
  163. data/app/helpers/better_ui/application_helper.rb +0 -55
  164. data/app/helpers/better_ui/general/components/accordion/accordion_helper.rb +0 -73
  165. data/app/helpers/better_ui/general/components/accordion.rb +0 -11
  166. data/app/helpers/better_ui/general/components/alert/alert_helper.rb +0 -57
  167. data/app/helpers/better_ui/general/components/avatar/avatar_helper.rb +0 -29
  168. data/app/helpers/better_ui/general/components/badge/badge_helper.rb +0 -53
  169. data/app/helpers/better_ui/general/components/breadcrumb/breadcrumb_helper.rb +0 -37
  170. data/app/helpers/better_ui/general/components/button/button_helper.rb +0 -65
  171. data/app/helpers/better_ui/general/components/container/container_helper.rb +0 -60
  172. data/app/helpers/better_ui/general/components/divider/divider_helper.rb +0 -63
  173. data/app/helpers/better_ui/general/components/dropdown/divider_helper.rb +0 -32
  174. data/app/helpers/better_ui/general/components/dropdown/dropdown_helper.rb +0 -79
  175. data/app/helpers/better_ui/general/components/dropdown/item_helper.rb +0 -62
  176. data/app/helpers/better_ui/general/components/field/field_helper.rb +0 -26
  177. data/app/helpers/better_ui/general/components/heading/heading_helper.rb +0 -72
  178. data/app/helpers/better_ui/general/components/icon/icon_helper.rb +0 -16
  179. data/app/helpers/better_ui/general/components/input/checkbox/checkbox_helper.rb +0 -81
  180. data/app/helpers/better_ui/general/components/input/datetime/datetime_helper.rb +0 -91
  181. data/app/helpers/better_ui/general/components/input/radio/radio_helper.rb +0 -79
  182. data/app/helpers/better_ui/general/components/input/radio_group/radio_group_helper.rb +0 -124
  183. data/app/helpers/better_ui/general/components/input/select/select_helper.rb +0 -70
  184. data/app/helpers/better_ui/general/components/input/text/text_helper.rb +0 -138
  185. data/app/helpers/better_ui/general/components/input/textarea/textarea_helper.rb +0 -73
  186. data/app/helpers/better_ui/general/components/link/link_helper.rb +0 -89
  187. data/app/helpers/better_ui/general/components/modal/modal_helper.rb +0 -85
  188. data/app/helpers/better_ui/general/components/modal.rb +0 -11
  189. data/app/helpers/better_ui/general/components/pagination/pagination_helper.rb +0 -82
  190. data/app/helpers/better_ui/general/components/panel/panel_helper.rb +0 -83
  191. data/app/helpers/better_ui/general/components/progress/progress_helper.rb +0 -53
  192. data/app/helpers/better_ui/general/components/spinner/spinner_helper.rb +0 -19
  193. data/app/helpers/better_ui/general/components/table/table_helper.rb +0 -53
  194. data/app/helpers/better_ui/general/components/table/tbody_helper.rb +0 -13
  195. data/app/helpers/better_ui/general/components/table/td_helper.rb +0 -19
  196. data/app/helpers/better_ui/general/components/table/tfoot_helper.rb +0 -13
  197. data/app/helpers/better_ui/general/components/table/th_helper.rb +0 -19
  198. data/app/helpers/better_ui/general/components/table/thead_helper.rb +0 -13
  199. data/app/helpers/better_ui/general/components/table/tr_helper.rb +0 -13
  200. data/app/helpers/better_ui/general/components/tabs/panel_helper.rb +0 -62
  201. data/app/helpers/better_ui/general/components/tabs/tab_helper.rb +0 -55
  202. data/app/helpers/better_ui/general/components/tabs/tabs_helper.rb +0 -95
  203. data/app/helpers/better_ui/general/components/tag/tag_helper.rb +0 -26
  204. data/app/helpers/better_ui/general/components/tooltip/tooltip_helper.rb +0 -60
  205. data/app/views/layouts/better_ui/application.html.erb +0 -17
  206. data/lib/better_ui/railtie.rb +0 -20
@@ -0,0 +1,69 @@
1
+ /* ==============================
2
+ * Card Component
3
+ * ============================== */
4
+
5
+ /* Struttura di base */
6
+ .bui-card-base {
7
+ @apply bg-white border shadow-sm overflow-hidden;
8
+ }
9
+
10
+ /* Contenuto */
11
+ .bui-card-content {
12
+ @apply p-4;
13
+ }
14
+
15
+ /* Intestazione */
16
+ .bui-card-header {
17
+ @apply p-4 border-b;
18
+ }
19
+
20
+ /* Piè di pagina */
21
+ .bui-card-footer {
22
+ @apply p-4 border-t;
23
+ }
24
+
25
+ /* Corpo */
26
+ .bui-card-body {
27
+ @apply flex flex-col;
28
+ }
29
+
30
+ /* Titolo */
31
+ .bui-card-title {
32
+ @apply text-lg font-medium;
33
+ }
34
+
35
+ /* Valore */
36
+ .bui-card-value {
37
+ @apply text-2xl font-bold mt-2;
38
+ }
39
+
40
+ /* Valore di riferimento */
41
+ .bui-card-value-from {
42
+ @apply text-sm text-gray-500 mt-1;
43
+ }
44
+
45
+ /* Trend */
46
+ .bui-card-trend {
47
+ @apply mt-2 inline-flex items-center px-2 py-1 text-xs font-medium rounded;
48
+ }
49
+
50
+ /* Opzioni di border-radius */
51
+ .bui-card-radius-none {
52
+ @apply rounded-none;
53
+ }
54
+
55
+ .bui-card-radius-small {
56
+ @apply rounded-md;
57
+ }
58
+
59
+ .bui-card-radius-medium {
60
+ @apply rounded-lg;
61
+ }
62
+
63
+ .bui-card-radius-large {
64
+ @apply rounded-xl;
65
+ }
66
+
67
+ .bui-card-radius-full {
68
+ @apply rounded-full;
69
+ }
@@ -0,0 +1,180 @@
1
+ /* ==============================
2
+ * Heading Component
3
+ * ============================== */
4
+
5
+ /* Varianti di colore per le intestazioni */
6
+ .bui-header-default-heading {
7
+ @apply text-gray-900;
8
+ }
9
+
10
+ .bui-header-default-subtitle {
11
+ @apply text-gray-600;
12
+ }
13
+
14
+ .bui-header-default-divider {
15
+ @apply border-gray-200;
16
+ }
17
+
18
+ .bui-header-white-heading {
19
+ @apply text-gray-100;
20
+ }
21
+
22
+ .bui-header-white-subtitle {
23
+ @apply text-gray-300;
24
+ }
25
+
26
+ .bui-header-white-divider {
27
+ @apply border-gray-200;
28
+ }
29
+
30
+ .bui-header-red-heading {
31
+ @apply text-red-700;
32
+ }
33
+
34
+ .bui-header-red-subtitle {
35
+ @apply text-red-500;
36
+ }
37
+
38
+ .bui-header-red-divider {
39
+ @apply border-red-300;
40
+ }
41
+
42
+ .bui-header-rose-heading {
43
+ @apply text-rose-700;
44
+ }
45
+
46
+ .bui-header-rose-subtitle {
47
+ @apply text-rose-500;
48
+ }
49
+
50
+ .bui-header-rose-divider {
51
+ @apply border-rose-300;
52
+ }
53
+
54
+ .bui-header-orange-heading {
55
+ @apply text-orange-700;
56
+ }
57
+
58
+ .bui-header-orange-subtitle {
59
+ @apply text-orange-500;
60
+ }
61
+
62
+ .bui-header-orange-divider {
63
+ @apply border-orange-300;
64
+ }
65
+
66
+ .bui-header-green-heading {
67
+ @apply text-green-700;
68
+ }
69
+
70
+ .bui-header-green-subtitle {
71
+ @apply text-green-500;
72
+ }
73
+
74
+ .bui-header-green-divider {
75
+ @apply border-green-300;
76
+ }
77
+
78
+ .bui-header-blue-heading {
79
+ @apply text-blue-700;
80
+ }
81
+
82
+ .bui-header-blue-subtitle {
83
+ @apply text-blue-500;
84
+ }
85
+
86
+ .bui-header-blue-divider {
87
+ @apply border-blue-300;
88
+ }
89
+
90
+ .bui-header-yellow-heading {
91
+ @apply text-yellow-700;
92
+ }
93
+
94
+ .bui-header-yellow-subtitle {
95
+ @apply text-yellow-500;
96
+ }
97
+
98
+ .bui-header-yellow-divider {
99
+ @apply border-yellow-300;
100
+ }
101
+
102
+ .bui-header-violet-heading {
103
+ @apply text-violet-700;
104
+ }
105
+
106
+ .bui-header-violet-subtitle {
107
+ @apply text-violet-500;
108
+ }
109
+
110
+ .bui-header-violet-divider {
111
+ @apply border-violet-300;
112
+ }
113
+
114
+ /* Classi per le dimensioni dell'intestazione */
115
+ .bui-header-small-heading {
116
+ @apply text-xl;
117
+ }
118
+
119
+ .bui-header-small-subtitle {
120
+ @apply text-base;
121
+ }
122
+
123
+ .bui-header-medium-heading {
124
+ @apply text-2xl;
125
+ }
126
+
127
+ .bui-header-medium-subtitle {
128
+ @apply text-lg;
129
+ }
130
+
131
+ .bui-header-large-heading {
132
+ @apply text-3xl;
133
+ }
134
+
135
+ .bui-header-large-subtitle {
136
+ @apply text-xl;
137
+ }
138
+
139
+ /* Classi per l'allineamento dell'intestazione */
140
+ .bui-header-left {
141
+ @apply text-left;
142
+ }
143
+
144
+ .bui-header-center {
145
+ @apply text-center;
146
+ }
147
+
148
+ .bui-header-right {
149
+ @apply text-right;
150
+ }
151
+
152
+ /* Stili comuni */
153
+ .bui-header-heading-base {
154
+ @apply font-bold;
155
+ }
156
+
157
+ .bui-header-subtitle-base {
158
+ @apply mt-1;
159
+ }
160
+
161
+ .bui-header-divider-base {
162
+ @apply border-t mt-2;
163
+ }
164
+
165
+ .bui-header-container-base {
166
+ @apply mb-4;
167
+ }
168
+
169
+ .bui-header-container-with-divider {
170
+ @apply mb-4 pb-2;
171
+ }
172
+
173
+ /* Stili per le icone */
174
+ .bui-header-icon-container {
175
+ @apply inline-flex items-center;
176
+ }
177
+
178
+ .bui-header-icon-wrapper {
179
+ @apply mr-2;
180
+ }
@@ -0,0 +1,90 @@
1
+ /* ==============================
2
+ * Icon Component
3
+ * ============================== */
4
+
5
+ /* Stili di base e presentazione */
6
+ .bui-icon-base {
7
+ @apply inline-block;
8
+ }
9
+
10
+ /* Varianti di stile */
11
+ .bui-icon-solid {
12
+ @apply fas;
13
+ }
14
+
15
+ .bui-icon-regular {
16
+ @apply far;
17
+ }
18
+
19
+ .bui-icon-light {
20
+ @apply fal;
21
+ }
22
+
23
+ .bui-icon-brands {
24
+ @apply fab;
25
+ }
26
+
27
+ .bui-icon-duotone {
28
+ @apply fad;
29
+ }
30
+
31
+ /* Dimensioni */
32
+ .bui-icon-xsmall {
33
+ @apply fa-xs;
34
+ }
35
+
36
+ .bui-icon-small {
37
+ @apply fa-sm;
38
+ }
39
+
40
+ .bui-icon-medium {
41
+ /* Default di Font Awesome, non richiede classi aggiuntive */
42
+ }
43
+
44
+ .bui-icon-large {
45
+ @apply fa-lg;
46
+ }
47
+
48
+ .bui-icon-xlarge {
49
+ @apply fa-xl;
50
+ }
51
+
52
+ /* Rotazioni */
53
+ .bui-icon-rotate-90 {
54
+ @apply fa-rotate-90;
55
+ }
56
+
57
+ .bui-icon-rotate-180 {
58
+ @apply fa-rotate-180;
59
+ }
60
+
61
+ .bui-icon-rotate-270 {
62
+ @apply fa-rotate-270;
63
+ }
64
+
65
+ /* Flip */
66
+ .bui-icon-flip-horizontal {
67
+ @apply fa-flip-horizontal;
68
+ }
69
+
70
+ .bui-icon-flip-vertical {
71
+ @apply fa-flip-vertical;
72
+ }
73
+
74
+ /* Animazioni */
75
+ .bui-icon-spin {
76
+ @apply fa-spin;
77
+ }
78
+
79
+ .bui-icon-pulse {
80
+ @apply fa-pulse;
81
+ }
82
+
83
+ /* Altre opzioni */
84
+ .bui-icon-fw {
85
+ @apply fa-fw;
86
+ }
87
+
88
+ .bui-icon-border {
89
+ @apply fa-border;
90
+ }
@@ -0,0 +1,130 @@
1
+ /* ==============================
2
+ * Link Component
3
+ * ============================== */
4
+
5
+ /* Classe base per i link */
6
+ .bui-link-base {
7
+ @apply flex items-center;
8
+ }
9
+
10
+ /* Contenitore icona */
11
+ .bui-link-icon-wrapper {
12
+ @apply mr-1.5;
13
+ }
14
+
15
+ /* Temi di colore - Default */
16
+ .bui-link-default-link {
17
+ @apply text-gray-300 hover:text-white;
18
+ }
19
+
20
+ .bui-link-default-active {
21
+ @apply text-white font-medium;
22
+ }
23
+
24
+ .bui-link-default-text {
25
+ @apply text-white;
26
+ }
27
+
28
+ /* Temi di colore - White */
29
+ .bui-link-white-link {
30
+ @apply text-gray-600 hover:text-gray-900;
31
+ }
32
+
33
+ .bui-link-white-active {
34
+ @apply text-black font-medium;
35
+ }
36
+
37
+ .bui-link-white-text {
38
+ @apply text-black;
39
+ }
40
+
41
+ /* Temi di colore - Red */
42
+ .bui-link-red-link {
43
+ @apply text-red-200 hover:text-white;
44
+ }
45
+
46
+ .bui-link-red-active {
47
+ @apply text-white font-medium;
48
+ }
49
+
50
+ .bui-link-red-text {
51
+ @apply text-white;
52
+ }
53
+
54
+ /* Temi di colore - Rose */
55
+ .bui-link-rose-link {
56
+ @apply text-rose-200 hover:text-white;
57
+ }
58
+
59
+ .bui-link-rose-active {
60
+ @apply text-white font-medium;
61
+ }
62
+
63
+ .bui-link-rose-text {
64
+ @apply text-white;
65
+ }
66
+
67
+ /* Temi di colore - Orange */
68
+ .bui-link-orange-link {
69
+ @apply text-orange-200 hover:text-white;
70
+ }
71
+
72
+ .bui-link-orange-active {
73
+ @apply text-white font-medium;
74
+ }
75
+
76
+ .bui-link-orange-text {
77
+ @apply text-white;
78
+ }
79
+
80
+ /* Temi di colore - Green */
81
+ .bui-link-green-link {
82
+ @apply text-green-200 hover:text-white;
83
+ }
84
+
85
+ .bui-link-green-active {
86
+ @apply text-white font-medium;
87
+ }
88
+
89
+ .bui-link-green-text {
90
+ @apply text-white;
91
+ }
92
+
93
+ /* Temi di colore - Blue */
94
+ .bui-link-blue-link {
95
+ @apply text-blue-200 hover:text-white;
96
+ }
97
+
98
+ .bui-link-blue-active {
99
+ @apply text-white font-medium;
100
+ }
101
+
102
+ .bui-link-blue-text {
103
+ @apply text-white;
104
+ }
105
+
106
+ /* Temi di colore - Yellow */
107
+ .bui-link-yellow-link {
108
+ @apply text-yellow-700 hover:text-black;
109
+ }
110
+
111
+ .bui-link-yellow-active {
112
+ @apply text-black font-medium;
113
+ }
114
+
115
+ .bui-link-yellow-text {
116
+ @apply text-black;
117
+ }
118
+
119
+ /* Temi di colore - Violet */
120
+ .bui-link-violet-link {
121
+ @apply text-violet-200 hover:text-white;
122
+ }
123
+
124
+ .bui-link-violet-active {
125
+ @apply text-white font-medium;
126
+ }
127
+
128
+ .bui-link-violet-text {
129
+ @apply text-white;
130
+ }
@@ -0,0 +1,144 @@
1
+ /* ==============================
2
+ * Panel Component
3
+ * ============================== */
4
+
5
+ /* Struttura di base */
6
+ .bui-panel-base {
7
+ @apply border shadow-sm;
8
+ }
9
+
10
+ /* Intestazione */
11
+ .bui-panel-header {
12
+ @apply px-4 py-3 border-b;
13
+ }
14
+
15
+ /* Corpo */
16
+ .bui-panel-body {
17
+ @apply p-4;
18
+ }
19
+
20
+ .bui-panel-body-content {
21
+ @apply overflow-x-auto break-words;
22
+ }
23
+
24
+ /* Piè di pagina */
25
+ .bui-panel-footer {
26
+ @apply px-4 py-3 border-t;
27
+ }
28
+
29
+ /* Titolo */
30
+ .bui-panel-title {
31
+ @apply text-lg font-medium;
32
+ }
33
+
34
+ /* Opzioni di padding */
35
+ .bui-panel-padding-none {
36
+ @apply p-0;
37
+ }
38
+
39
+ .bui-panel-padding-small {
40
+ @apply p-2;
41
+ }
42
+
43
+ .bui-panel-padding-medium {
44
+ @apply p-4;
45
+ }
46
+
47
+ .bui-panel-padding-large {
48
+ @apply p-6;
49
+ }
50
+
51
+ /* Opzioni di border-radius */
52
+ .bui-panel-radius-none {
53
+ @apply rounded-none;
54
+ }
55
+
56
+ .bui-panel-radius-small {
57
+ @apply rounded-md;
58
+ }
59
+
60
+ .bui-panel-radius-medium {
61
+ @apply rounded-lg;
62
+ }
63
+
64
+ .bui-panel-radius-large {
65
+ @apply rounded-xl;
66
+ }
67
+
68
+ .bui-panel-radius-full {
69
+ @apply rounded-full;
70
+ }
71
+
72
+ /* Temi di colore per header */
73
+ .bui-panel-default-header {
74
+ @apply bg-black text-white;
75
+ }
76
+
77
+ .bui-panel-white-header {
78
+ @apply bg-white text-black;
79
+ }
80
+
81
+ .bui-panel-red-header {
82
+ @apply bg-red-500 text-white;
83
+ }
84
+
85
+ .bui-panel-rose-header {
86
+ @apply bg-rose-500 text-white;
87
+ }
88
+
89
+ .bui-panel-orange-header {
90
+ @apply bg-orange-500 text-white;
91
+ }
92
+
93
+ .bui-panel-green-header {
94
+ @apply bg-green-500 text-white;
95
+ }
96
+
97
+ .bui-panel-blue-header {
98
+ @apply bg-blue-500 text-white;
99
+ }
100
+
101
+ .bui-panel-yellow-header {
102
+ @apply bg-yellow-500 text-black;
103
+ }
104
+
105
+ .bui-panel-violet-header {
106
+ @apply bg-violet-500 text-white;
107
+ }
108
+
109
+ /* Temi di colore per footer */
110
+ .bui-panel-default-footer {
111
+ @apply bg-black text-white;
112
+ }
113
+
114
+ .bui-panel-white-footer {
115
+ @apply bg-white text-black;
116
+ }
117
+
118
+ .bui-panel-red-footer {
119
+ @apply bg-red-500 text-white;
120
+ }
121
+
122
+ .bui-panel-rose-footer {
123
+ @apply bg-rose-500 text-white;
124
+ }
125
+
126
+ .bui-panel-orange-footer {
127
+ @apply bg-orange-500 text-white;
128
+ }
129
+
130
+ .bui-panel-green-footer {
131
+ @apply bg-green-500 text-white;
132
+ }
133
+
134
+ .bui-panel-blue-footer {
135
+ @apply bg-blue-500 text-white;
136
+ }
137
+
138
+ .bui-panel-yellow-footer {
139
+ @apply bg-yellow-500 text-black;
140
+ }
141
+
142
+ .bui-panel-violet-footer {
143
+ @apply bg-violet-500 text-white;
144
+ }