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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1449d3d6edf1341e73d321b0821c1e3e355659022865465949ebf2202426d7b5
4
- data.tar.gz: ffbe3396ad981086e0979756e401942410a66e2257db71a0e21a3d7a674658ed
3
+ metadata.gz: b851df46a3afd618bc81e81319613ac295fb6b09fa5b68a3579f1508d3a07bda
4
+ data.tar.gz: e90010af3a12f9ffd8930201bc5b07a697cafa10da533e4ffeaa546bca8d6ec9
5
5
  SHA512:
6
- metadata.gz: ec918743d27c761eb32bdce4c3a7f79e02668ea649c6ee3cdf676408c8666866e5d1dddeb72ec725d8a1a0f738273091553d75214cadf0a3c18a1c6932795131
7
- data.tar.gz: 2ba3990b4ed9dfb77e03bf5f9734a355f48ee9a3903afb41cd1b8e00c5f022a17b3db790e774a9d4868b8d8bd663969d278f24fc5678441c37579662d693930f
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-color);
60
- color: var(--primary-foreground-color);
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
- caption.textContent = firstOfMonth.toLocaleDateString(undefined, { month: 'long', year: 'numeric' })
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
- return date.toLocaleDateString(undefined, options)
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
- %w[Mo Tu We Th Fr Sa Su] :
55
- %w[Su Mo Tu We Th Fr Sa]
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",
@@ -1,4 +1,4 @@
1
- <%# locals: (icon_name:, css_classes: "", **html_options) %>
1
+ <%# locals: (icon_name: :left_panel, css_classes: "", **html_options) %>
2
2
  <% merged_data = (html_options.delete(:data) || {}).merge(
3
3
  sidebar_part: :trigger,
4
4
  controller: "sidebar-trigger",
@@ -1,3 +1,3 @@
1
1
  module MaquinaComponents
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maquina-components
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Alberto Chávez