maquina-components 0.3.1 → 0.3.1.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/app/assets/stylesheets/badge.css +2 -2
- data/app/assets/stylesheets/form.css +1 -1
- data/app/javascript/controllers/calendar_controller.js +2 -1
- data/app/javascript/controllers/date_picker_controller.js +2 -1
- data/app/views/components/_calendar.html.erb +4 -3
- data/app/views/components/sidebar/_trigger.html.erb +1 -1
- data/lib/maquina_components/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b851df46a3afd618bc81e81319613ac295fb6b09fa5b68a3579f1508d3a07bda
|
|
4
|
+
data.tar.gz: e90010af3a12f9ffd8930201bc5b07a697cafa10da533e4ffeaa546bca8d6ec9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 023b264cbe15f2d62aa508a35dc3919827130f1382e795b02a31afdf4c7160218f2f784eaf3c6521f75fce9ab5f3e7a0068b4b6064e9fe28a321b4d105955533
|
|
7
|
+
data.tar.gz: 48606389939ad53c12e519e5d9d95b316cf083b492646c992c5a713eee5de1919fe218a860975350980619c2aba836d364ee10db32cccd75113045f159cdd5f3
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
|
|
57
57
|
/* Primary variant - brand color */
|
|
58
58
|
[data-component="badge"][data-variant="primary"] {
|
|
59
|
-
background-color: var(--primary
|
|
60
|
-
color: var(--primary-foreground
|
|
59
|
+
background-color: var(--primary);
|
|
60
|
+
color: var(--primary-foreground);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
[data-component="badge"][data-variant="primary"]:hover {
|
|
@@ -532,7 +532,7 @@
|
|
|
532
532
|
=================================================================== */
|
|
533
533
|
[data-form-part="error"] {
|
|
534
534
|
@apply text-sm font-medium;
|
|
535
|
-
color: var(--destructive);
|
|
535
|
+
color: var(--destructive-foreground);
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
/* Rails error wrapper compatibility */
|
|
@@ -72,7 +72,8 @@ export default class extends Controller {
|
|
|
72
72
|
|
|
73
73
|
// Update caption
|
|
74
74
|
if (caption) {
|
|
75
|
-
|
|
75
|
+
const locale = document.documentElement.lang || undefined
|
|
76
|
+
caption.textContent = firstOfMonth.toLocaleDateString(locale, { month: 'long', year: 'numeric' })
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
// Calculate start of calendar grid
|
|
@@ -176,7 +176,8 @@ export default class extends Controller {
|
|
|
176
176
|
? { month: "short", day: "numeric", year: "numeric" }
|
|
177
177
|
: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
const locale = document.documentElement.lang || undefined
|
|
180
|
+
return date.toLocaleDateString(locale, options)
|
|
180
181
|
} catch {
|
|
181
182
|
return dateStr
|
|
182
183
|
}
|
|
@@ -49,10 +49,11 @@
|
|
|
49
49
|
# Build weeks array
|
|
50
50
|
weeks = (calendar_start..calendar_end).each_slice(7).to_a
|
|
51
51
|
|
|
52
|
-
# Weekday names
|
|
52
|
+
# Weekday names (localized)
|
|
53
|
+
abbr_day_names = I18n.t('date.abbr_day_names')
|
|
53
54
|
weekday_names = week_starts_on == :monday ?
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
abbr_day_names.rotate(1) :
|
|
56
|
+
abbr_day_names
|
|
56
57
|
|
|
57
58
|
merged_data = (html_options.delete(:data) || {}).merge(
|
|
58
59
|
controller: "calendar",
|