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.
Files changed (120) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -1
  3. data/app/assets/stylesheets/breadcrumbs.css +21 -0
  4. data/app/assets/stylesheets/combobox.css +36 -1
  5. data/app/assets/stylesheets/drawer.css +15 -0
  6. data/app/assets/stylesheets/menu_button.css +155 -0
  7. data/app/assets/stylesheets/separator.css +20 -0
  8. data/app/assets/stylesheets/sidebar.css +12 -0
  9. data/app/assets/stylesheets/stats.css +101 -0
  10. data/app/assets/tailwind/maquina_components_engine/engine.css +3 -0
  11. data/app/helpers/maquina_components/combobox_helper.rb +2 -1
  12. data/app/helpers/maquina_components/components_helper.rb +33 -0
  13. data/app/helpers/maquina_components/icons_helper.rb +58 -0
  14. data/app/javascript/controllers/breadcrumb_controller.js +39 -30
  15. data/app/javascript/controllers/combobox_controller.js +9 -0
  16. data/app/javascript/controllers/drawer_controller.js +43 -9
  17. data/app/javascript/controllers/drawer_trigger_controller.js +33 -3
  18. data/app/javascript/controllers/menu_button_controller.js +107 -29
  19. data/app/javascript/controllers/sidebar_controller.js +6 -8
  20. data/app/javascript/controllers/sidebar_trigger_controller.js +33 -4
  21. data/app/javascript/controllers/toaster_controller.js +12 -0
  22. data/app/views/components/_alert.html.erb +3 -1
  23. data/app/views/components/_badge.html.erb +7 -1
  24. data/app/views/components/_breadcrumbs.html.erb +1 -1
  25. data/app/views/components/_calendar.html.erb +1 -1
  26. data/app/views/components/_card.html.erb +1 -1
  27. data/app/views/components/_combobox.html.erb +3 -2
  28. data/app/views/components/_date_picker.html.erb +4 -3
  29. data/app/views/components/_drawer.html.erb +8 -2
  30. data/app/views/components/_dropdown.html.erb +21 -24
  31. data/app/views/components/_dropdown_menu.html.erb +1 -1
  32. data/app/views/components/_empty.html.erb +1 -1
  33. data/app/views/components/_header.html.erb +1 -1
  34. data/app/views/components/_menu_button.html.erb +29 -34
  35. data/app/views/components/_pagination.html.erb +1 -1
  36. data/app/views/components/_separator.html.erb +9 -10
  37. data/app/views/components/_sidebar.html.erb +1 -1
  38. data/app/views/components/_simple_table.html.erb +3 -1
  39. data/app/views/components/_table.html.erb +1 -1
  40. data/app/views/components/_toast.html.erb +6 -1
  41. data/app/views/components/_toaster.html.erb +1 -1
  42. data/app/views/components/_toggle_group.html.erb +1 -1
  43. data/app/views/components/alert/_description.html.erb +1 -1
  44. data/app/views/components/alert/_title.html.erb +1 -1
  45. data/app/views/components/breadcrumbs/_ellipsis.html.erb +1 -1
  46. data/app/views/components/breadcrumbs/_item.html.erb +1 -1
  47. data/app/views/components/breadcrumbs/_link.html.erb +1 -1
  48. data/app/views/components/breadcrumbs/_list.html.erb +1 -1
  49. data/app/views/components/breadcrumbs/_page.html.erb +1 -1
  50. data/app/views/components/breadcrumbs/_separator.html.erb +1 -1
  51. data/app/views/components/calendar/_header.html.erb +1 -1
  52. data/app/views/components/calendar/_week.html.erb +1 -1
  53. data/app/views/components/card/_action.html.erb +1 -1
  54. data/app/views/components/card/_content.html.erb +1 -1
  55. data/app/views/components/card/_description.html.erb +1 -1
  56. data/app/views/components/card/_footer.html.erb +1 -1
  57. data/app/views/components/card/_header.html.erb +1 -1
  58. data/app/views/components/card/_title.html.erb +1 -1
  59. data/app/views/components/combobox/_content.html.erb +1 -1
  60. data/app/views/components/combobox/_empty.html.erb +3 -3
  61. data/app/views/components/combobox/_group.html.erb +1 -1
  62. data/app/views/components/combobox/_input.html.erb +1 -1
  63. data/app/views/components/combobox/_label.html.erb +1 -1
  64. data/app/views/components/combobox/_list.html.erb +1 -1
  65. data/app/views/components/combobox/_option.html.erb +1 -1
  66. data/app/views/components/combobox/_separator.html.erb +1 -1
  67. data/app/views/components/combobox/_trigger.html.erb +1 -1
  68. data/app/views/components/drawer/_close.html.erb +1 -1
  69. data/app/views/components/drawer/_content.html.erb +1 -1
  70. data/app/views/components/drawer/_footer.html.erb +1 -1
  71. data/app/views/components/drawer/_header.html.erb +2 -2
  72. data/app/views/components/drawer/_provider.html.erb +2 -2
  73. data/app/views/components/drawer/_trigger.html.erb +1 -1
  74. data/app/views/components/dropdown_menu/_content.html.erb +1 -1
  75. data/app/views/components/dropdown_menu/_group.html.erb +1 -1
  76. data/app/views/components/dropdown_menu/_item.html.erb +1 -1
  77. data/app/views/components/dropdown_menu/_label.html.erb +3 -7
  78. data/app/views/components/dropdown_menu/_separator.html.erb +1 -1
  79. data/app/views/components/dropdown_menu/_shortcut.html.erb +3 -7
  80. data/app/views/components/dropdown_menu/_trigger.html.erb +1 -1
  81. data/app/views/components/empty/_content.html.erb +1 -1
  82. data/app/views/components/empty/_description.html.erb +3 -7
  83. data/app/views/components/empty/_header.html.erb +1 -1
  84. data/app/views/components/empty/_media.html.erb +5 -3
  85. data/app/views/components/empty/_title.html.erb +3 -7
  86. data/app/views/components/pagination/_content.html.erb +1 -1
  87. data/app/views/components/pagination/_item.html.erb +1 -1
  88. data/app/views/components/pagination/_link.html.erb +1 -1
  89. data/app/views/components/pagination/_next.html.erb +1 -1
  90. data/app/views/components/pagination/_previous.html.erb +1 -1
  91. data/app/views/components/sidebar/_content.html.erb +1 -1
  92. data/app/views/components/sidebar/_footer.html.erb +1 -1
  93. data/app/views/components/sidebar/_group.html.erb +1 -1
  94. data/app/views/components/sidebar/_header.html.erb +1 -1
  95. data/app/views/components/sidebar/_inset.html.erb +1 -1
  96. data/app/views/components/sidebar/_menu.html.erb +1 -1
  97. data/app/views/components/sidebar/_menu_button.html.erb +1 -1
  98. data/app/views/components/sidebar/_menu_item.html.erb +1 -1
  99. data/app/views/components/sidebar/_menu_link.html.erb +4 -7
  100. data/app/views/components/sidebar/_provider.html.erb +1 -1
  101. data/app/views/components/sidebar/_trigger.html.erb +1 -1
  102. data/app/views/components/stats/_stats_card.html.erb +32 -92
  103. data/app/views/components/stats/_stats_grid.html.erb +18 -24
  104. data/app/views/components/table/_body.html.erb +1 -1
  105. data/app/views/components/table/_caption.html.erb +3 -3
  106. data/app/views/components/table/_cell.html.erb +3 -3
  107. data/app/views/components/table/_footer.html.erb +1 -1
  108. data/app/views/components/table/_head.html.erb +3 -3
  109. data/app/views/components/table/_header.html.erb +1 -1
  110. data/app/views/components/table/_row.html.erb +1 -1
  111. data/app/views/components/toast/_action.html.erb +1 -1
  112. data/app/views/components/toast/_description.html.erb +1 -1
  113. data/app/views/components/toast/_title.html.erb +1 -1
  114. data/app/views/components/toggle_group/_item.html.erb +1 -1
  115. data/lib/generators/maquina_components/install/templates/maquina_components_helper.rb.tt +1 -0
  116. data/lib/maquina-components.rb +5 -0
  117. data/lib/maquina_components/engine.rb +7 -3
  118. data/lib/maquina_components/version.rb +1 -1
  119. metadata +33 -2
  120. 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
- }