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,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
|
+
}
|