maquina-components 0.5.0 → 0.5.1
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.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/app/assets/stylesheets/breadcrumbs.css +21 -0
- data/app/assets/stylesheets/combobox.css +36 -1
- data/app/assets/stylesheets/drawer.css +15 -0
- data/app/assets/stylesheets/menu_button.css +155 -0
- data/app/assets/stylesheets/separator.css +20 -0
- data/app/assets/stylesheets/sidebar.css +12 -0
- data/app/assets/stylesheets/stats.css +101 -0
- data/app/assets/tailwind/maquina_components_engine/engine.css +3 -0
- data/app/helpers/maquina_components/combobox_helper.rb +2 -1
- data/app/helpers/maquina_components/components_helper.rb +33 -0
- data/app/helpers/maquina_components/icons_helper.rb +58 -0
- data/app/javascript/controllers/breadcrumb_controller.js +39 -30
- data/app/javascript/controllers/combobox_controller.js +9 -0
- data/app/javascript/controllers/drawer_controller.js +43 -9
- data/app/javascript/controllers/drawer_trigger_controller.js +33 -3
- data/app/javascript/controllers/menu_button_controller.js +107 -29
- data/app/javascript/controllers/sidebar_controller.js +6 -8
- data/app/javascript/controllers/sidebar_trigger_controller.js +33 -4
- data/app/javascript/controllers/toaster_controller.js +12 -0
- data/app/views/components/_alert.html.erb +3 -1
- data/app/views/components/_badge.html.erb +7 -1
- data/app/views/components/_breadcrumbs.html.erb +1 -1
- data/app/views/components/_calendar.html.erb +1 -1
- data/app/views/components/_card.html.erb +1 -1
- data/app/views/components/_combobox.html.erb +3 -2
- data/app/views/components/_date_picker.html.erb +4 -3
- data/app/views/components/_drawer.html.erb +8 -2
- data/app/views/components/_dropdown.html.erb +21 -24
- data/app/views/components/_dropdown_menu.html.erb +1 -1
- data/app/views/components/_empty.html.erb +1 -1
- data/app/views/components/_header.html.erb +1 -1
- data/app/views/components/_menu_button.html.erb +29 -34
- data/app/views/components/_pagination.html.erb +1 -1
- data/app/views/components/_separator.html.erb +9 -10
- data/app/views/components/_sidebar.html.erb +1 -1
- data/app/views/components/_simple_table.html.erb +3 -1
- data/app/views/components/_table.html.erb +1 -1
- data/app/views/components/_toast.html.erb +6 -1
- data/app/views/components/_toaster.html.erb +1 -1
- data/app/views/components/_toggle_group.html.erb +1 -1
- data/app/views/components/alert/_description.html.erb +1 -1
- data/app/views/components/alert/_title.html.erb +1 -1
- data/app/views/components/breadcrumbs/_ellipsis.html.erb +1 -1
- data/app/views/components/breadcrumbs/_item.html.erb +1 -1
- data/app/views/components/breadcrumbs/_link.html.erb +1 -1
- data/app/views/components/breadcrumbs/_list.html.erb +1 -1
- data/app/views/components/breadcrumbs/_page.html.erb +1 -1
- data/app/views/components/breadcrumbs/_separator.html.erb +1 -1
- data/app/views/components/calendar/_header.html.erb +1 -1
- data/app/views/components/calendar/_week.html.erb +1 -1
- data/app/views/components/card/_action.html.erb +1 -1
- data/app/views/components/card/_content.html.erb +1 -1
- data/app/views/components/card/_description.html.erb +1 -1
- data/app/views/components/card/_footer.html.erb +1 -1
- data/app/views/components/card/_header.html.erb +1 -1
- data/app/views/components/card/_title.html.erb +1 -1
- data/app/views/components/combobox/_content.html.erb +1 -1
- data/app/views/components/combobox/_empty.html.erb +3 -3
- data/app/views/components/combobox/_group.html.erb +1 -1
- data/app/views/components/combobox/_input.html.erb +1 -1
- data/app/views/components/combobox/_label.html.erb +1 -1
- data/app/views/components/combobox/_list.html.erb +1 -1
- data/app/views/components/combobox/_option.html.erb +1 -1
- data/app/views/components/combobox/_separator.html.erb +1 -1
- data/app/views/components/combobox/_trigger.html.erb +1 -1
- data/app/views/components/drawer/_close.html.erb +1 -1
- data/app/views/components/drawer/_content.html.erb +1 -1
- data/app/views/components/drawer/_footer.html.erb +1 -1
- data/app/views/components/drawer/_header.html.erb +2 -2
- data/app/views/components/drawer/_provider.html.erb +2 -2
- data/app/views/components/drawer/_trigger.html.erb +1 -1
- data/app/views/components/dropdown_menu/_content.html.erb +1 -1
- data/app/views/components/dropdown_menu/_group.html.erb +1 -1
- data/app/views/components/dropdown_menu/_item.html.erb +1 -1
- data/app/views/components/dropdown_menu/_label.html.erb +3 -7
- data/app/views/components/dropdown_menu/_separator.html.erb +1 -1
- data/app/views/components/dropdown_menu/_shortcut.html.erb +3 -7
- data/app/views/components/dropdown_menu/_trigger.html.erb +1 -1
- data/app/views/components/empty/_content.html.erb +1 -1
- data/app/views/components/empty/_description.html.erb +3 -7
- data/app/views/components/empty/_header.html.erb +1 -1
- data/app/views/components/empty/_media.html.erb +5 -3
- data/app/views/components/empty/_title.html.erb +3 -7
- data/app/views/components/pagination/_content.html.erb +1 -1
- data/app/views/components/pagination/_item.html.erb +1 -1
- data/app/views/components/pagination/_link.html.erb +1 -1
- data/app/views/components/pagination/_next.html.erb +1 -1
- data/app/views/components/pagination/_previous.html.erb +1 -1
- data/app/views/components/sidebar/_content.html.erb +1 -1
- data/app/views/components/sidebar/_footer.html.erb +1 -1
- data/app/views/components/sidebar/_group.html.erb +1 -1
- data/app/views/components/sidebar/_header.html.erb +1 -1
- data/app/views/components/sidebar/_inset.html.erb +1 -1
- data/app/views/components/sidebar/_menu.html.erb +1 -1
- data/app/views/components/sidebar/_menu_button.html.erb +1 -1
- data/app/views/components/sidebar/_menu_item.html.erb +1 -1
- data/app/views/components/sidebar/_menu_link.html.erb +4 -7
- data/app/views/components/sidebar/_provider.html.erb +1 -1
- data/app/views/components/sidebar/_trigger.html.erb +1 -1
- data/app/views/components/stats/_stats_card.html.erb +32 -92
- data/app/views/components/stats/_stats_grid.html.erb +18 -24
- data/app/views/components/table/_body.html.erb +1 -1
- data/app/views/components/table/_caption.html.erb +3 -3
- data/app/views/components/table/_cell.html.erb +3 -3
- data/app/views/components/table/_footer.html.erb +1 -1
- data/app/views/components/table/_head.html.erb +3 -3
- data/app/views/components/table/_header.html.erb +1 -1
- data/app/views/components/table/_row.html.erb +1 -1
- data/app/views/components/toast/_action.html.erb +1 -1
- data/app/views/components/toast/_description.html.erb +1 -1
- data/app/views/components/toast/_title.html.erb +1 -1
- data/app/views/components/toggle_group/_item.html.erb +1 -1
- data/lib/generators/maquina_components/install/templates/maquina_components_helper.rb.tt +1 -0
- data/lib/maquina-components.rb +5 -0
- data/lib/maquina_components/engine.rb +7 -3
- data/lib/maquina_components/version.rb +1 -1
- metadata +33 -2
- data/app/assets/stylesheets/maquina_components.css +0 -178
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
/* Base animation utilities */
|
|
2
|
-
@utility animate-in {
|
|
3
|
-
animation-duration: var(--duration-normal);
|
|
4
|
-
animation-timing-function: var(--ease-out);
|
|
5
|
-
animation-fill-mode: forwards;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
@utility animate-out {
|
|
9
|
-
animation-duration: var(--duration-normal);
|
|
10
|
-
animation-timing-function: var(--ease-in);
|
|
11
|
-
animation-fill-mode: forwards;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Fade animations */
|
|
15
|
-
@keyframes fade-in-0 {
|
|
16
|
-
from {
|
|
17
|
-
opacity: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
to {
|
|
21
|
-
opacity: 1;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@keyframes fade-out-0 {
|
|
26
|
-
from {
|
|
27
|
-
opacity: 1;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
to {
|
|
31
|
-
opacity: 0;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@utility fade-in-0 {
|
|
36
|
-
animation-name: fade-in-0;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@utility fade-out-0 {
|
|
40
|
-
animation-name: fade-out-0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Zoom animations */
|
|
44
|
-
@keyframes zoom-in-95 {
|
|
45
|
-
from {
|
|
46
|
-
transform: scale(0.95);
|
|
47
|
-
opacity: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
to {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes zoom-out-95 {
|
|
57
|
-
from {
|
|
58
|
-
transform: scale(1);
|
|
59
|
-
opacity: 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
to {
|
|
63
|
-
transform: scale(0.95);
|
|
64
|
-
opacity: 0;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
@utility zoom-in-95 {
|
|
69
|
-
animation-name: zoom-in-95;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
@utility zoom-out-95 {
|
|
73
|
-
animation-name: zoom-out-95;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/* Slide animations with specific measurements */
|
|
77
|
-
@keyframes slide-in-from-top-2 {
|
|
78
|
-
from {
|
|
79
|
-
transform: translateY(-0.5rem);
|
|
80
|
-
opacity: 0;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
to {
|
|
84
|
-
transform: translateY(0);
|
|
85
|
-
opacity: 1;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@keyframes slide-in-from-bottom-2 {
|
|
90
|
-
from {
|
|
91
|
-
transform: translateY(0.5rem);
|
|
92
|
-
opacity: 0;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
to {
|
|
96
|
-
transform: translateY(0);
|
|
97
|
-
opacity: 1;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
@keyframes slide-in-from-left-2 {
|
|
102
|
-
from {
|
|
103
|
-
transform: translateX(-0.5rem);
|
|
104
|
-
opacity: 0;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
to {
|
|
108
|
-
transform: translateX(0);
|
|
109
|
-
opacity: 1;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
@keyframes slide-in-from-right-2 {
|
|
114
|
-
from {
|
|
115
|
-
transform: translateX(0.5rem);
|
|
116
|
-
opacity: 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
to {
|
|
120
|
-
transform: translateX(0);
|
|
121
|
-
opacity: 1;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
@utility slide-in-from-top-2 {
|
|
126
|
-
animation-name: slide-in-from-top-2;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@utility slide-in-from-bottom-2 {
|
|
130
|
-
animation-name: slide-in-from-bottom-2;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
@utility slide-in-from-left-2 {
|
|
134
|
-
animation-name: slide-in-from-left-2;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
@utility slide-in-from-right-2 {
|
|
138
|
-
animation-name: slide-in-from-right-2;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* Duration modifiers */
|
|
142
|
-
@utility duration-fast {
|
|
143
|
-
animation-duration: var(--duration-fast);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
@utility duration-normal {
|
|
147
|
-
animation-duration: var(--duration-normal);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
@utility duration-slow {
|
|
151
|
-
animation-duration: var(--duration-slow);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
/* Sidebar */
|
|
155
|
-
|
|
156
|
-
.sidebar-primary-button {
|
|
157
|
-
@apply flex w-full items-center gap-2 overflow-hidden rounded-md p-2
|
|
158
|
-
text-left outline-hidden ring-sidebar-ring transition-[width,height,padding]
|
|
159
|
-
focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50
|
|
160
|
-
group-has-data-[sidebar=menu-action]/menu-item:pr-8
|
|
161
|
-
aria-disabled:pointer-events-none aria-disabled:opacity-50
|
|
162
|
-
group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!
|
|
163
|
-
[&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 h-8 text-sm
|
|
164
|
-
bg-primary text-primary-foreground hover:bg-primary/90
|
|
165
|
-
hover:text-primary-foreground min-w-8 duration-200 ease-linear;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.sidebar-outline-button {
|
|
169
|
-
@apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md
|
|
170
|
-
text-sm font-medium transition-all disabled:pointer-events-none
|
|
171
|
-
disabled:opacity-50 [&_svg]:pointer-events-none
|
|
172
|
-
[&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none
|
|
173
|
-
focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]
|
|
174
|
-
aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40
|
|
175
|
-
aria-invalid:border-destructive border bg-background shadow-xs hover:bg-accent
|
|
176
|
-
hover:text-accent-foreground dark:bg-input/30 dark:border-input
|
|
177
|
-
dark:hover:bg-input/50 size-8 group-data-[collapsible=icon]:opacity-0;
|
|
178
|
-
}
|