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.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +227 -209
- data/app/assets/javascripts/better_ui/controllers/navbar_controller.js +138 -0
- data/app/assets/javascripts/better_ui/controllers/sidebar_controller.js +211 -0
- data/app/assets/javascripts/better_ui/controllers/toast_controller.js +161 -0
- data/app/assets/javascripts/better_ui/index.js +159 -0
- data/app/assets/javascripts/better_ui/toast_manager.js +77 -0
- data/app/assets/stylesheets/better_ui/application.css +30 -0
- data/app/components/better_ui/application/alert_component.html.erb +27 -0
- data/app/components/better_ui/application/alert_component.rb +202 -0
- data/app/components/better_ui/application/card_component.html.erb +24 -0
- data/app/components/better_ui/application/card_component.rb +53 -0
- data/app/components/better_ui/application/card_container_component.html.erb +8 -0
- data/app/components/better_ui/application/card_container_component.rb +14 -0
- data/app/components/better_ui/application/header_component.html.erb +88 -0
- data/app/components/better_ui/application/header_component.rb +188 -0
- data/app/components/better_ui/application/navbar_component.html.erb +294 -0
- data/app/components/better_ui/application/navbar_component.rb +249 -0
- data/app/components/better_ui/application/sidebar_component.html.erb +207 -0
- data/app/components/better_ui/application/sidebar_component.rb +318 -0
- data/app/components/better_ui/application/toast_component.html.erb +35 -0
- data/app/components/better_ui/application/toast_component.rb +223 -0
- data/app/components/better_ui/general/avatar_component.html.erb +19 -0
- data/app/components/better_ui/general/avatar_component.rb +171 -0
- data/app/components/better_ui/general/badge_component.html.erb +19 -0
- data/app/components/better_ui/general/badge_component.rb +123 -0
- data/app/components/better_ui/general/{breadcrumb/component.html.erb → breadcrumb_component.html.erb} +4 -4
- data/app/components/better_ui/general/breadcrumb_component.rb +130 -0
- data/app/components/better_ui/general/{button/component.html.erb → button_component.html.erb} +7 -7
- data/app/components/better_ui/general/button_component.rb +162 -0
- data/app/components/better_ui/general/heading_component.html.erb +25 -0
- data/app/components/better_ui/general/heading_component.rb +148 -0
- data/app/components/better_ui/general/icon_component.html.erb +2 -0
- data/app/components/better_ui/general/icon_component.rb +100 -0
- data/app/components/better_ui/general/link_component.html.erb +17 -0
- data/app/components/better_ui/general/link_component.rb +132 -0
- data/app/components/better_ui/general/panel_component.html.erb +27 -0
- data/app/components/better_ui/general/panel_component.rb +103 -0
- data/app/components/better_ui/general/spinner_component.html.erb +15 -0
- data/app/components/better_ui/general/spinner_component.rb +79 -0
- data/app/components/better_ui/general/table_component.html.erb +73 -0
- data/app/components/better_ui/general/table_component.rb +167 -0
- data/app/components/better_ui/theme_helper.rb +171 -0
- data/app/controllers/better_ui/application_controller.rb +1 -0
- data/app/controllers/better_ui/docs_controller.rb +34 -0
- data/app/views/components/better_ui/general/table/_custom_body_row.html.erb +17 -0
- data/app/views/components/better_ui/general/table/_custom_footer_rows.html.erb +17 -0
- data/app/views/components/better_ui/general/table/_custom_header_rows.html.erb +12 -0
- data/app/views/layouts/component_preview.html.erb +32 -0
- data/config/initializers/lookbook.rb +12 -12
- data/config/routes.rb +13 -0
- data/lib/better_ui/engine.rb +36 -5
- data/lib/better_ui/version.rb +1 -1
- data/lib/better_ui.rb +24 -4
- data/lib/generators/better_ui/stylesheet_generator.rb +96 -0
- data/lib/generators/better_ui/templates/README +56 -0
- data/lib/generators/better_ui/templates/components/_avatar.scss +151 -0
- data/lib/generators/better_ui/templates/components/_badge.scss +142 -0
- data/lib/generators/better_ui/templates/components/_breadcrumb.scss +107 -0
- data/lib/generators/better_ui/templates/components/_button.scss +106 -0
- data/lib/generators/better_ui/templates/components/_card.scss +69 -0
- data/lib/generators/better_ui/templates/components/_heading.scss +180 -0
- data/lib/generators/better_ui/templates/components/_icon.scss +90 -0
- data/lib/generators/better_ui/templates/components/_link.scss +130 -0
- data/lib/generators/better_ui/templates/components/_panel.scss +144 -0
- data/lib/generators/better_ui/templates/components/_spinner.scss +132 -0
- data/lib/generators/better_ui/templates/components/_table.scss +105 -0
- data/lib/generators/better_ui/templates/components/_variables.scss +33 -0
- data/lib/generators/better_ui/templates/components_stylesheet.scss +66 -0
- metadata +145 -156
- data/app/components/better_ui/application/card/component.html.erb +0 -20
- data/app/components/better_ui/application/card/component.rb +0 -214
- data/app/components/better_ui/application/main/component.html.erb +0 -9
- data/app/components/better_ui/application/main/component.rb +0 -123
- data/app/components/better_ui/application/navbar/component.html.erb +0 -92
- data/app/components/better_ui/application/navbar/component.rb +0 -136
- data/app/components/better_ui/application/sidebar/component.html.erb +0 -227
- data/app/components/better_ui/application/sidebar/component.rb +0 -130
- data/app/components/better_ui/general/accordion/component.html.erb +0 -5
- data/app/components/better_ui/general/accordion/component.rb +0 -92
- data/app/components/better_ui/general/accordion/item_component.html.erb +0 -12
- data/app/components/better_ui/general/accordion/item_component.rb +0 -176
- data/app/components/better_ui/general/alert/component.html.erb +0 -32
- data/app/components/better_ui/general/alert/component.rb +0 -242
- data/app/components/better_ui/general/avatar/component.html.erb +0 -20
- data/app/components/better_ui/general/avatar/component.rb +0 -301
- data/app/components/better_ui/general/badge/component.html.erb +0 -23
- data/app/components/better_ui/general/badge/component.rb +0 -248
- data/app/components/better_ui/general/breadcrumb/component.rb +0 -187
- data/app/components/better_ui/general/button/component.rb +0 -214
- data/app/components/better_ui/general/divider/component.html.erb +0 -10
- data/app/components/better_ui/general/divider/component.rb +0 -226
- data/app/components/better_ui/general/dropdown/component.html.erb +0 -25
- data/app/components/better_ui/general/dropdown/component.rb +0 -170
- data/app/components/better_ui/general/dropdown/divider_component.html.erb +0 -1
- data/app/components/better_ui/general/dropdown/divider_component.rb +0 -41
- data/app/components/better_ui/general/dropdown/item_component.html.erb +0 -6
- data/app/components/better_ui/general/dropdown/item_component.rb +0 -119
- data/app/components/better_ui/general/field/component.html.erb +0 -27
- data/app/components/better_ui/general/field/component.rb +0 -37
- data/app/components/better_ui/general/heading/component.html.erb +0 -22
- data/app/components/better_ui/general/heading/component.rb +0 -257
- data/app/components/better_ui/general/icon/component.html.erb +0 -7
- data/app/components/better_ui/general/icon/component.rb +0 -239
- data/app/components/better_ui/general/input/checkbox/component.html.erb +0 -5
- data/app/components/better_ui/general/input/checkbox/component.rb +0 -238
- data/app/components/better_ui/general/input/datetime/component.html.erb +0 -5
- data/app/components/better_ui/general/input/datetime/component.rb +0 -223
- data/app/components/better_ui/general/input/radio/component.html.erb +0 -5
- data/app/components/better_ui/general/input/radio/component.rb +0 -230
- data/app/components/better_ui/general/input/select/component.html.erb +0 -16
- data/app/components/better_ui/general/input/select/component.rb +0 -184
- data/app/components/better_ui/general/input/select/select_component.html.erb +0 -5
- data/app/components/better_ui/general/input/select/select_component.rb +0 -37
- data/app/components/better_ui/general/input/text/component.html.erb +0 -5
- data/app/components/better_ui/general/input/text/component.rb +0 -171
- data/app/components/better_ui/general/input/textarea/component.html.erb +0 -5
- data/app/components/better_ui/general/input/textarea/component.rb +0 -166
- data/app/components/better_ui/general/link/component.html.erb +0 -18
- data/app/components/better_ui/general/link/component.rb +0 -258
- data/app/components/better_ui/general/modal/component.html.erb +0 -5
- data/app/components/better_ui/general/modal/component.rb +0 -47
- data/app/components/better_ui/general/modal/modal_component.html.erb +0 -52
- data/app/components/better_ui/general/modal/modal_component.rb +0 -160
- data/app/components/better_ui/general/pagination/component.html.erb +0 -85
- data/app/components/better_ui/general/pagination/component.rb +0 -216
- data/app/components/better_ui/general/panel/component.html.erb +0 -28
- data/app/components/better_ui/general/panel/component.rb +0 -249
- data/app/components/better_ui/general/progress/component.html.erb +0 -11
- data/app/components/better_ui/general/progress/component.rb +0 -160
- data/app/components/better_ui/general/spinner/component.html.erb +0 -35
- data/app/components/better_ui/general/spinner/component.rb +0 -93
- data/app/components/better_ui/general/table/component.html.erb +0 -5
- data/app/components/better_ui/general/table/component.rb +0 -217
- data/app/components/better_ui/general/table/tbody_component.html.erb +0 -3
- data/app/components/better_ui/general/table/tbody_component.rb +0 -30
- data/app/components/better_ui/general/table/td_component.html.erb +0 -3
- data/app/components/better_ui/general/table/td_component.rb +0 -44
- data/app/components/better_ui/general/table/tfoot_component.html.erb +0 -3
- data/app/components/better_ui/general/table/tfoot_component.rb +0 -28
- data/app/components/better_ui/general/table/th_component.html.erb +0 -6
- data/app/components/better_ui/general/table/th_component.rb +0 -51
- data/app/components/better_ui/general/table/thead_component.html.erb +0 -3
- data/app/components/better_ui/general/table/thead_component.rb +0 -28
- data/app/components/better_ui/general/table/tr_component.html.erb +0 -3
- data/app/components/better_ui/general/table/tr_component.rb +0 -30
- data/app/components/better_ui/general/tabs/component.html.erb +0 -11
- data/app/components/better_ui/general/tabs/component.rb +0 -120
- data/app/components/better_ui/general/tabs/panel_component.html.erb +0 -3
- data/app/components/better_ui/general/tabs/panel_component.rb +0 -37
- data/app/components/better_ui/general/tabs/tab_component.html.erb +0 -13
- data/app/components/better_ui/general/tabs/tab_component.rb +0 -111
- data/app/components/better_ui/general/tag/component.html.erb +0 -3
- data/app/components/better_ui/general/tag/component.rb +0 -104
- data/app/components/better_ui/general/tooltip/component.html.erb +0 -7
- data/app/components/better_ui/general/tooltip/component.rb +0 -239
- data/app/helpers/better_ui/application/components/card/card_helper.rb +0 -96
- data/app/helpers/better_ui/application/components/card.rb +0 -11
- data/app/helpers/better_ui/application/components/main/main_helper.rb +0 -64
- data/app/helpers/better_ui/application/components/navbar/navbar_helper.rb +0 -77
- data/app/helpers/better_ui/application/components/sidebar/sidebar_helper.rb +0 -51
- data/app/helpers/better_ui/application_helper.rb +0 -55
- data/app/helpers/better_ui/general/components/accordion/accordion_helper.rb +0 -73
- data/app/helpers/better_ui/general/components/accordion.rb +0 -11
- data/app/helpers/better_ui/general/components/alert/alert_helper.rb +0 -57
- data/app/helpers/better_ui/general/components/avatar/avatar_helper.rb +0 -29
- data/app/helpers/better_ui/general/components/badge/badge_helper.rb +0 -53
- data/app/helpers/better_ui/general/components/breadcrumb/breadcrumb_helper.rb +0 -37
- data/app/helpers/better_ui/general/components/button/button_helper.rb +0 -65
- data/app/helpers/better_ui/general/components/container/container_helper.rb +0 -60
- data/app/helpers/better_ui/general/components/divider/divider_helper.rb +0 -63
- data/app/helpers/better_ui/general/components/dropdown/divider_helper.rb +0 -32
- data/app/helpers/better_ui/general/components/dropdown/dropdown_helper.rb +0 -79
- data/app/helpers/better_ui/general/components/dropdown/item_helper.rb +0 -62
- data/app/helpers/better_ui/general/components/field/field_helper.rb +0 -26
- data/app/helpers/better_ui/general/components/heading/heading_helper.rb +0 -72
- data/app/helpers/better_ui/general/components/icon/icon_helper.rb +0 -16
- data/app/helpers/better_ui/general/components/input/checkbox/checkbox_helper.rb +0 -81
- data/app/helpers/better_ui/general/components/input/datetime/datetime_helper.rb +0 -91
- data/app/helpers/better_ui/general/components/input/radio/radio_helper.rb +0 -79
- data/app/helpers/better_ui/general/components/input/radio_group/radio_group_helper.rb +0 -124
- data/app/helpers/better_ui/general/components/input/select/select_helper.rb +0 -70
- data/app/helpers/better_ui/general/components/input/text/text_helper.rb +0 -138
- data/app/helpers/better_ui/general/components/input/textarea/textarea_helper.rb +0 -73
- data/app/helpers/better_ui/general/components/link/link_helper.rb +0 -89
- data/app/helpers/better_ui/general/components/modal/modal_helper.rb +0 -85
- data/app/helpers/better_ui/general/components/modal.rb +0 -11
- data/app/helpers/better_ui/general/components/pagination/pagination_helper.rb +0 -82
- data/app/helpers/better_ui/general/components/panel/panel_helper.rb +0 -83
- data/app/helpers/better_ui/general/components/progress/progress_helper.rb +0 -53
- data/app/helpers/better_ui/general/components/spinner/spinner_helper.rb +0 -19
- data/app/helpers/better_ui/general/components/table/table_helper.rb +0 -53
- data/app/helpers/better_ui/general/components/table/tbody_helper.rb +0 -13
- data/app/helpers/better_ui/general/components/table/td_helper.rb +0 -19
- data/app/helpers/better_ui/general/components/table/tfoot_helper.rb +0 -13
- data/app/helpers/better_ui/general/components/table/th_helper.rb +0 -19
- data/app/helpers/better_ui/general/components/table/thead_helper.rb +0 -13
- data/app/helpers/better_ui/general/components/table/tr_helper.rb +0 -13
- data/app/helpers/better_ui/general/components/tabs/panel_helper.rb +0 -62
- data/app/helpers/better_ui/general/components/tabs/tab_helper.rb +0 -55
- data/app/helpers/better_ui/general/components/tabs/tabs_helper.rb +0 -95
- data/app/helpers/better_ui/general/components/tag/tag_helper.rb +0 -26
- data/app/helpers/better_ui/general/components/tooltip/tooltip_helper.rb +0 -60
- data/app/views/layouts/better_ui/application.html.erb +0 -17
- data/lib/better_ui/railtie.rb +0 -20
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* ==============================
|
|
2
|
+
* Spinner Component
|
|
3
|
+
* ============================== */
|
|
4
|
+
|
|
5
|
+
/* Stile base */
|
|
6
|
+
.bui-spinner {
|
|
7
|
+
@apply inline-flex flex-col items-center justify-center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* Animazione dello spinner */
|
|
11
|
+
.bui-spinner-animation {
|
|
12
|
+
@apply inline-block rounded-full animate-spin;
|
|
13
|
+
border-top-color: transparent;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Base per il contenuto */
|
|
17
|
+
.bui-spinner-label {
|
|
18
|
+
@apply mt-2 text-center;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.bui-spinner-content {
|
|
22
|
+
@apply mt-4;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/* Modalità fullscreen */
|
|
26
|
+
.bui-spinner-fullscreen {
|
|
27
|
+
@apply fixed inset-0 flex items-center justify-center z-50 bg-black bg-opacity-50;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Varianti di dimensione */
|
|
31
|
+
.bui-spinner-small .bui-spinner-animation {
|
|
32
|
+
@apply w-5 h-5 border-2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.bui-spinner-medium .bui-spinner-animation {
|
|
36
|
+
@apply w-8 h-8 border-3;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.bui-spinner-large .bui-spinner-animation {
|
|
40
|
+
@apply w-12 h-12 border-4;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/* Varianti di colore */
|
|
44
|
+
.bui-spinner-default {
|
|
45
|
+
.bui-spinner-animation {
|
|
46
|
+
@apply border-gray-200 border-t-gray-800;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.bui-spinner-label {
|
|
50
|
+
@apply text-gray-800;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.bui-spinner-white {
|
|
55
|
+
.bui-spinner-animation {
|
|
56
|
+
@apply border-gray-100 border-t-white;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.bui-spinner-label {
|
|
60
|
+
@apply text-white;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.bui-spinner-red {
|
|
65
|
+
.bui-spinner-animation {
|
|
66
|
+
@apply border-red-100 border-t-red-600;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.bui-spinner-label {
|
|
70
|
+
@apply text-red-600;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.bui-spinner-rose {
|
|
75
|
+
.bui-spinner-animation {
|
|
76
|
+
@apply border-rose-100 border-t-rose-600;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.bui-spinner-label {
|
|
80
|
+
@apply text-rose-600;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.bui-spinner-orange {
|
|
85
|
+
.bui-spinner-animation {
|
|
86
|
+
@apply border-orange-100 border-t-orange-500;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.bui-spinner-label {
|
|
90
|
+
@apply text-orange-500;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.bui-spinner-green {
|
|
95
|
+
.bui-spinner-animation {
|
|
96
|
+
@apply border-green-100 border-t-green-600;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.bui-spinner-label {
|
|
100
|
+
@apply text-green-600;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.bui-spinner-blue {
|
|
105
|
+
.bui-spinner-animation {
|
|
106
|
+
@apply border-blue-100 border-t-blue-600;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.bui-spinner-label {
|
|
110
|
+
@apply text-blue-600;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bui-spinner-yellow {
|
|
115
|
+
.bui-spinner-animation {
|
|
116
|
+
@apply border-yellow-100 border-t-yellow-500;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.bui-spinner-label {
|
|
120
|
+
@apply text-yellow-500;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.bui-spinner-violet {
|
|
125
|
+
.bui-spinner-animation {
|
|
126
|
+
@apply border-violet-100 border-t-violet-600;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.bui-spinner-label {
|
|
130
|
+
@apply text-violet-600;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/* ==============================
|
|
2
|
+
* Table Component
|
|
3
|
+
* ============================== */
|
|
4
|
+
|
|
5
|
+
/* Contenitore e base */
|
|
6
|
+
.bui-table-container {
|
|
7
|
+
@apply overflow-hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.bui-table-base {
|
|
11
|
+
@apply w-full;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.bui-table-bordered {
|
|
15
|
+
@apply border-collapse;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Bordi arrotondati */
|
|
19
|
+
.bui-table-radius-none { @apply rounded-none; }
|
|
20
|
+
.bui-table-radius-small { @apply rounded-md; }
|
|
21
|
+
.bui-table-radius-medium { @apply rounded-lg; }
|
|
22
|
+
.bui-table-radius-large { @apply rounded-xl; }
|
|
23
|
+
.bui-table-radius-full { @apply rounded-3xl; }
|
|
24
|
+
|
|
25
|
+
/* Celle e righe */
|
|
26
|
+
.bui-table-cell {
|
|
27
|
+
@apply px-4 py-3;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.bui-table-cell-compact {
|
|
31
|
+
@apply px-2 py-1 text-sm;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.bui-table-cell-bordered {
|
|
35
|
+
@apply border;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Stili per le righe */
|
|
39
|
+
.bui-table-row-hover tr:hover td {
|
|
40
|
+
@apply bg-opacity-10 bg-gray-500;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.bui-table-row-striped tr:nth-child(odd) td {
|
|
44
|
+
@apply bg-gray-50;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.bui-table-row-alternate {
|
|
48
|
+
@apply bg-gray-50;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Caption */
|
|
52
|
+
.bui-table-caption {
|
|
53
|
+
@apply p-3 font-medium;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.bui-table-caption-bordered {
|
|
57
|
+
@apply border-b;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* Header */
|
|
61
|
+
.bui-table-header th {
|
|
62
|
+
@apply font-semibold;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Footer */
|
|
66
|
+
.bui-table-footer td {
|
|
67
|
+
@apply font-semibold;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bui-table-footer-cell {
|
|
71
|
+
@apply bg-opacity-90;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Varianti bordi */
|
|
75
|
+
.bui-table-border-default { @apply border-gray-900; }
|
|
76
|
+
.bui-table-border-white { @apply border-gray-200; }
|
|
77
|
+
.bui-table-border-red { @apply border-red-600; }
|
|
78
|
+
.bui-table-border-rose { @apply border-rose-600; }
|
|
79
|
+
.bui-table-border-orange { @apply border-orange-600; }
|
|
80
|
+
.bui-table-border-green { @apply border-green-600; }
|
|
81
|
+
.bui-table-border-blue { @apply border-blue-600; }
|
|
82
|
+
.bui-table-border-yellow { @apply border-yellow-600; }
|
|
83
|
+
.bui-table-border-violet { @apply border-violet-600; }
|
|
84
|
+
|
|
85
|
+
/* Varianti background */
|
|
86
|
+
.bui-table-bg-default { @apply bg-black; }
|
|
87
|
+
.bui-table-bg-white { @apply bg-white; }
|
|
88
|
+
.bui-table-bg-red { @apply bg-red-500; }
|
|
89
|
+
.bui-table-bg-rose { @apply bg-rose-500; }
|
|
90
|
+
.bui-table-bg-orange { @apply bg-orange-500; }
|
|
91
|
+
.bui-table-bg-green { @apply bg-green-500; }
|
|
92
|
+
.bui-table-bg-blue { @apply bg-blue-500; }
|
|
93
|
+
.bui-table-bg-yellow { @apply bg-yellow-500; }
|
|
94
|
+
.bui-table-bg-violet { @apply bg-violet-500; }
|
|
95
|
+
|
|
96
|
+
/* Varianti testo */
|
|
97
|
+
.bui-table-text-default { @apply text-white; }
|
|
98
|
+
.bui-table-text-white { @apply text-black; }
|
|
99
|
+
.bui-table-text-red { @apply text-white; }
|
|
100
|
+
.bui-table-text-rose { @apply text-white; }
|
|
101
|
+
.bui-table-text-orange { @apply text-white; }
|
|
102
|
+
.bui-table-text-green { @apply text-white; }
|
|
103
|
+
.bui-table-text-blue { @apply text-white; }
|
|
104
|
+
.bui-table-text-yellow { @apply text-black; }
|
|
105
|
+
.bui-table-text-violet { @apply text-white; }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* ==============================
|
|
2
|
+
* Variables
|
|
3
|
+
* ============================== */
|
|
4
|
+
|
|
5
|
+
/* Colori principali - usa i colori di Tailwind */
|
|
6
|
+
$bui-primary: theme('colors.blue.500') !default;
|
|
7
|
+
$bui-primary-hover: theme('colors.blue.600') !default;
|
|
8
|
+
$bui-secondary: theme('colors.gray.500') !default;
|
|
9
|
+
$bui-secondary-hover: theme('colors.gray.600') !default;
|
|
10
|
+
$bui-success: theme('colors.emerald.500') !default;
|
|
11
|
+
$bui-warning: theme('colors.amber.500') !default;
|
|
12
|
+
$bui-danger: theme('colors.red.500') !default;
|
|
13
|
+
$bui-info: theme('colors.blue.500') !default;
|
|
14
|
+
|
|
15
|
+
/* Spaziature - usa gli spacing di Tailwind */
|
|
16
|
+
$bui-spacing-xs: theme('spacing.1') !default;
|
|
17
|
+
$bui-spacing-sm: theme('spacing.2') !default;
|
|
18
|
+
$bui-spacing-md: theme('spacing.4') !default;
|
|
19
|
+
$bui-spacing-lg: theme('spacing.6') !default;
|
|
20
|
+
$bui-spacing-xl: theme('spacing.8') !default;
|
|
21
|
+
|
|
22
|
+
/* Tipografia - usa i font di Tailwind */
|
|
23
|
+
$bui-font-family: theme('fontFamily.sans') !default;
|
|
24
|
+
$bui-font-size-sm: theme('fontSize.sm[0]') !default;
|
|
25
|
+
$bui-font-size-base: theme('fontSize.base[0]') !default;
|
|
26
|
+
$bui-font-size-lg: theme('fontSize.lg[0]') !default;
|
|
27
|
+
$bui-font-size-xl: theme('fontSize.xl[0]') !default;
|
|
28
|
+
|
|
29
|
+
/* Border radius - usa i radius di Tailwind */
|
|
30
|
+
$bui-radius-sm: theme('borderRadius.sm') !default;
|
|
31
|
+
$bui-radius-md: theme('borderRadius.md') !default;
|
|
32
|
+
$bui-radius-lg: theme('borderRadius.lg') !default;
|
|
33
|
+
$bui-radius-full: theme('borderRadius.full') !default;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* <%= options[:prefix] %>_better_ui_components.scss
|
|
3
|
+
* Foglio di stile SCSS per la personalizzazione dei componenti di BetterUi
|
|
4
|
+
* Generato il: <%= Time.now.strftime('%d/%m/%Y %H:%M') %>
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* INDICE:
|
|
9
|
+
* 1. Variabili
|
|
10
|
+
* 2. Componenti generali
|
|
11
|
+
* 3. Componenti applicativi
|
|
12
|
+
* 4. Personalizzazioni
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/*==================================
|
|
16
|
+
IMPORTAZIONE COMPONENTI E VARIABILI
|
|
17
|
+
====================================*/
|
|
18
|
+
/* Importa le variabili */
|
|
19
|
+
@import "components/variables";
|
|
20
|
+
|
|
21
|
+
@layer components {
|
|
22
|
+
/*==================================
|
|
23
|
+
COMPONENTI GENERALI
|
|
24
|
+
====================================*/
|
|
25
|
+
|
|
26
|
+
/* Importa il componente Bottone */
|
|
27
|
+
@import "components/button";
|
|
28
|
+
|
|
29
|
+
/* Importa il componente Heading */
|
|
30
|
+
@import "components/heading";
|
|
31
|
+
|
|
32
|
+
/* Importa il componente Breadcrumb */
|
|
33
|
+
@import "components/breadcrumb";
|
|
34
|
+
|
|
35
|
+
/* Importa il componente Link */
|
|
36
|
+
@import "components/link";
|
|
37
|
+
|
|
38
|
+
/* Importa il componente Panel */
|
|
39
|
+
@import "components/panel";
|
|
40
|
+
|
|
41
|
+
/* Importa il componente Icon */
|
|
42
|
+
@import "components/icon";
|
|
43
|
+
|
|
44
|
+
/* Importa il componente Table */
|
|
45
|
+
@import "components/table";
|
|
46
|
+
|
|
47
|
+
/* Importa il componente Spinner */
|
|
48
|
+
@import "components/spinner";
|
|
49
|
+
|
|
50
|
+
/* Importa il componente Badge */
|
|
51
|
+
@import "components/badge";
|
|
52
|
+
|
|
53
|
+
/* Importa il componente Avatar */
|
|
54
|
+
@import "components/avatar";
|
|
55
|
+
|
|
56
|
+
/*==================================
|
|
57
|
+
COMPONENTI APPLICATIVI
|
|
58
|
+
====================================*/
|
|
59
|
+
/* Importa il componente Card */
|
|
60
|
+
@import "components/card";
|
|
61
|
+
|
|
62
|
+
/*==================================
|
|
63
|
+
PERSONALIZZAZIONI
|
|
64
|
+
====================================*/
|
|
65
|
+
/* Qui è possibile aggiungere personalizzazioni specifiche */
|
|
66
|
+
}
|