@moontra/moonui-pro 2.5.14 → 2.6.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.
@@ -1,99 +1,35 @@
1
- /* Calendar Component Styles */
1
+ /* Calendar Component Styles - Custom Implementation */
2
2
  .moonui-calendar {
3
- --calendar-cell-size: 2.25rem; /* 36px */
4
- --calendar-cell-size-sm: 2rem; /* 32px on mobile */
3
+ width: 100%;
5
4
  }
6
5
 
7
- /* Mobile responsive calendar */
6
+ /* Mobile adjustments */
8
7
  @media (max-width: 640px) {
9
8
  .moonui-calendar {
10
- --calendar-cell-size: var(--calendar-cell-size-sm);
11
- }
12
-
13
- /* Stack months vertically on mobile */
14
- .moonui-calendar .months {
15
- flex-direction: column !important;
9
+ font-size: 0.875rem;
16
10
  }
17
11
 
18
- /* Adjust cell sizes for mobile */
19
- .moonui-calendar .rdp-cell,
20
- .moonui-calendar .rdp-day {
21
- width: var(--calendar-cell-size) !important;
22
- height: var(--calendar-cell-size) !important;
12
+ .moonui-calendar button {
13
+ font-size: 0.8125rem;
23
14
  }
24
15
  }
25
16
 
26
- /* Fix day names alignment */
27
- .moonui-calendar .rdp-head_cell {
28
- width: var(--calendar-cell-size);
29
- height: var(--calendar-cell-size);
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- font-size: 0.75rem;
34
- font-weight: 500;
35
- text-transform: uppercase;
36
- color: var(--muted-foreground);
37
- }
38
-
39
- /* Fix calendar grid */
40
- .moonui-calendar .rdp-tbody {
41
- display: flex;
42
- flex-direction: column;
43
- gap: 0.25rem;
44
- }
45
-
46
- .moonui-calendar .rdp-row {
47
- display: flex;
48
- gap: 0.25rem;
49
- margin: 0;
50
- }
51
-
52
- .moonui-calendar .rdp-cell {
53
- width: var(--calendar-cell-size);
54
- height: var(--calendar-cell-size);
55
- padding: 0;
56
- text-align: center;
57
- }
58
-
59
- .moonui-calendar .rdp-day {
60
- width: 100%;
61
- height: 100%;
62
- display: flex;
63
- align-items: center;
64
- justify-content: center;
65
- border-radius: 0.375rem;
66
- font-size: 0.875rem;
67
- cursor: pointer;
68
- transition: all 0.2s;
69
- }
70
-
71
- /* Range selection styles */
72
- .moonui-calendar .rdp-day_range_middle {
73
- border-radius: 0 !important;
74
- background-color: var(--accent);
75
- color: var(--accent-foreground);
76
- }
77
-
78
- .moonui-calendar .rdp-day_range_start {
79
- border-top-right-radius: 0 !important;
80
- border-bottom-right-radius: 0 !important;
81
- }
82
-
83
- .moonui-calendar .rdp-day_range_end {
84
- border-top-left-radius: 0 !important;
85
- border-bottom-left-radius: 0 !important;
86
- }
87
-
88
17
  /* Popover responsive */
89
18
  @media (max-width: 640px) {
90
19
  .time-range-popover {
91
20
  max-width: calc(100vw - 2rem) !important;
21
+ margin: 0 auto;
92
22
  }
93
23
 
94
- .time-range-popover .preset-column {
95
- border-right: none !important;
96
- border-bottom: 1px solid var(--border) !important;
97
- min-width: 100% !important;
24
+ /* Make calendar months stack vertically on mobile */
25
+ .moonui-calendar .grid-cols-7 {
26
+ font-size: 0.75rem;
27
+ }
28
+ }
29
+
30
+ /* Ensure proper layout on desktop */
31
+ @media (min-width: 641px) {
32
+ .time-range-popover {
33
+ min-width: 640px;
98
34
  }
99
35
  }