omnira-ui 0.2.0 → 0.3.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.
- package/components/ui/ActivityGauge/ActivityGauge.module.css +109 -0
- package/components/ui/ActivityGauge/ActivityGauge.tsx +87 -0
- package/components/ui/ActivityGauge/index.ts +2 -0
- package/components/ui/Calendar/Calendar.module.css +492 -0
- package/components/ui/Calendar/Calendar.tsx +445 -0
- package/components/ui/Calendar/config.ts +130 -0
- package/components/ui/Calendar/index.ts +4 -0
- package/components/ui/CardHeader/CardHeader.module.css +79 -0
- package/components/ui/CardHeader/CardHeader.tsx +45 -0
- package/components/ui/CardHeader/index.ts +2 -0
- package/components/ui/EmptyState/EmptyState.module.css +65 -0
- package/components/ui/EmptyState/EmptyState.tsx +37 -0
- package/components/ui/EmptyState/index.ts +2 -0
- package/components/ui/Metric/Metric.module.css +140 -0
- package/components/ui/Metric/Metric.tsx +78 -0
- package/components/ui/Metric/index.ts +2 -0
- package/components/ui/PageHeader/PageHeader.module.css +128 -0
- package/components/ui/PageHeader/PageHeader.tsx +61 -0
- package/components/ui/PageHeader/index.ts +2 -0
- package/components/ui/Table/Table.module.css +444 -0
- package/components/ui/Table/Table.tsx +547 -0
- package/components/ui/Table/customers.json +74 -0
- package/components/ui/Table/index.ts +14 -0
- package/components/ui/Table/invoices.json +92 -0
- package/components/ui/Table/orders.json +108 -0
- package/components/ui/Table/team-members.json +130 -0
- package/components/ui/Table/uploaded-files.json +53 -0
- package/package.json +1 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
Activity Gauge — Glassmorphism Styles
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
.gaugeCard {
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 16px;
|
|
10
|
+
padding: 24px;
|
|
11
|
+
border-radius: var(--radius-lg);
|
|
12
|
+
background: var(--color-bg-card);
|
|
13
|
+
border: 1px solid var(--color-border-standard);
|
|
14
|
+
box-shadow: var(--shadow-card);
|
|
15
|
+
backdrop-filter: var(--blur-standard);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* ── SVG Gauge ── */
|
|
19
|
+
|
|
20
|
+
.gaugeWrapper {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.gaugeSvg {
|
|
28
|
+
transform: rotate(-90deg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.gaugeTrack {
|
|
32
|
+
fill: none;
|
|
33
|
+
stroke: var(--color-bg-elevated);
|
|
34
|
+
stroke-linecap: round;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.gaugeFill {
|
|
38
|
+
fill: none;
|
|
39
|
+
stroke-linecap: round;
|
|
40
|
+
transition: stroke-dashoffset 0.6s ease;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.gaugeFillLime {
|
|
44
|
+
stroke: var(--color-lime);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.gaugeFillInfo {
|
|
48
|
+
stroke: var(--color-info);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.gaugeFillWarning {
|
|
52
|
+
stroke: var(--color-warning);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.gaugeFillError {
|
|
56
|
+
stroke: var(--color-error);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.gaugeFillSuccess {
|
|
60
|
+
stroke: var(--color-success);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* ── Center label ── */
|
|
64
|
+
|
|
65
|
+
.gaugeCenter {
|
|
66
|
+
position: absolute;
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: column;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.gaugeValue {
|
|
74
|
+
font-family: var(--font-display);
|
|
75
|
+
font-size: 28px;
|
|
76
|
+
font-weight: 700;
|
|
77
|
+
color: var(--color-text-primary);
|
|
78
|
+
line-height: 1;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.gaugeUnit {
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
color: var(--color-text-tertiary);
|
|
84
|
+
margin-top: 2px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* ── Footer ── */
|
|
88
|
+
|
|
89
|
+
.gaugeLabel {
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
color: var(--color-text-secondary);
|
|
93
|
+
text-align: center;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.gaugeDescription {
|
|
97
|
+
font-size: 12px;
|
|
98
|
+
color: var(--color-text-tertiary);
|
|
99
|
+
text-align: center;
|
|
100
|
+
margin-top: -8px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* ── Grid layout for demos ── */
|
|
104
|
+
|
|
105
|
+
.gaugeGrid {
|
|
106
|
+
display: grid;
|
|
107
|
+
grid-template-columns: repeat(4, 1fr);
|
|
108
|
+
gap: 16px;
|
|
109
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { cn } from "@/lib/cn";
|
|
2
|
+
import styles from "./ActivityGauge.module.css";
|
|
3
|
+
|
|
4
|
+
/* ── Types ── */
|
|
5
|
+
|
|
6
|
+
export type GaugeColor = "lime" | "info" | "warning" | "error" | "success";
|
|
7
|
+
|
|
8
|
+
export interface ActivityGaugeProps {
|
|
9
|
+
value: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
label?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
unit?: string;
|
|
14
|
+
color?: GaugeColor;
|
|
15
|
+
size?: number;
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* ── Helpers ── */
|
|
21
|
+
|
|
22
|
+
function getColorClass(color: GaugeColor) {
|
|
23
|
+
switch (color) {
|
|
24
|
+
case "lime": return styles.gaugeFillLime;
|
|
25
|
+
case "info": return styles.gaugeFillInfo;
|
|
26
|
+
case "warning": return styles.gaugeFillWarning;
|
|
27
|
+
case "error": return styles.gaugeFillError;
|
|
28
|
+
case "success": return styles.gaugeFillSuccess;
|
|
29
|
+
default: return styles.gaugeFillLime;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* ── Component ── */
|
|
34
|
+
|
|
35
|
+
export function ActivityGauge({
|
|
36
|
+
value,
|
|
37
|
+
max = 100,
|
|
38
|
+
label,
|
|
39
|
+
description,
|
|
40
|
+
unit = "%",
|
|
41
|
+
color = "lime",
|
|
42
|
+
size = 140,
|
|
43
|
+
strokeWidth = 10,
|
|
44
|
+
className,
|
|
45
|
+
}: ActivityGaugeProps) {
|
|
46
|
+
const radius = (size - strokeWidth) / 2;
|
|
47
|
+
const circumference = 2 * Math.PI * radius;
|
|
48
|
+
const percentage = Math.min(value / max, 1);
|
|
49
|
+
const offset = circumference * (1 - percentage);
|
|
50
|
+
const displayValue = unit === "%" ? Math.round(percentage * 100) : value;
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<div className={cn(styles.gaugeCard, className)}>
|
|
54
|
+
<div className={styles.gaugeWrapper} style={{ width: size, height: size }}>
|
|
55
|
+
<svg
|
|
56
|
+
className={styles.gaugeSvg}
|
|
57
|
+
width={size}
|
|
58
|
+
height={size}
|
|
59
|
+
viewBox={`0 0 ${size} ${size}`}
|
|
60
|
+
>
|
|
61
|
+
<circle
|
|
62
|
+
className={styles.gaugeTrack}
|
|
63
|
+
cx={size / 2}
|
|
64
|
+
cy={size / 2}
|
|
65
|
+
r={radius}
|
|
66
|
+
strokeWidth={strokeWidth}
|
|
67
|
+
/>
|
|
68
|
+
<circle
|
|
69
|
+
className={cn(styles.gaugeFill, getColorClass(color))}
|
|
70
|
+
cx={size / 2}
|
|
71
|
+
cy={size / 2}
|
|
72
|
+
r={radius}
|
|
73
|
+
strokeWidth={strokeWidth}
|
|
74
|
+
strokeDasharray={circumference}
|
|
75
|
+
strokeDashoffset={offset}
|
|
76
|
+
/>
|
|
77
|
+
</svg>
|
|
78
|
+
<div className={styles.gaugeCenter}>
|
|
79
|
+
<span className={styles.gaugeValue}>{displayValue}</span>
|
|
80
|
+
<span className={styles.gaugeUnit}>{unit}</span>
|
|
81
|
+
</div>
|
|
82
|
+
</div>
|
|
83
|
+
{label && <span className={styles.gaugeLabel}>{label}</span>}
|
|
84
|
+
{description && <span className={styles.gaugeDescription}>{description}</span>}
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
/* ============================================
|
|
2
|
+
Calendar — Glassmorphism Styles
|
|
3
|
+
============================================ */
|
|
4
|
+
|
|
5
|
+
.calendarRoot {
|
|
6
|
+
width: 100%;
|
|
7
|
+
border-radius: var(--radius-lg);
|
|
8
|
+
background: var(--color-bg-card);
|
|
9
|
+
border: 1px solid var(--color-border-standard);
|
|
10
|
+
box-shadow: var(--shadow-card);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* ── Toolbar ── */
|
|
15
|
+
|
|
16
|
+
.toolbar {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
justify-content: space-between;
|
|
20
|
+
padding: 16px 20px;
|
|
21
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.toolbarLeft {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.toolbarTitle {
|
|
31
|
+
font-family: var(--font-display);
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
color: var(--color-text-primary);
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
min-width: 180px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.toolbarNav {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
gap: 4px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.viewTabs {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 4px;
|
|
49
|
+
padding: 4px;
|
|
50
|
+
border-radius: var(--radius-full);
|
|
51
|
+
background: var(--color-bg-secondary);
|
|
52
|
+
border: 1px solid var(--color-border-subtle);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.viewTab {
|
|
56
|
+
padding: 6px 18px;
|
|
57
|
+
border-radius: var(--radius-full);
|
|
58
|
+
border: none;
|
|
59
|
+
background: transparent;
|
|
60
|
+
color: var(--color-text-tertiary);
|
|
61
|
+
font-size: 13px;
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
transition: color 0.15s ease, background 0.2s ease;
|
|
65
|
+
outline: none;
|
|
66
|
+
font-family: inherit;
|
|
67
|
+
white-space: nowrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.viewTab:hover {
|
|
71
|
+
color: var(--color-text-secondary);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.viewTabActive {
|
|
75
|
+
background: var(--color-bg-elevated);
|
|
76
|
+
color: var(--color-text-primary);
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* ── Month View ── */
|
|
82
|
+
|
|
83
|
+
.monthGrid {
|
|
84
|
+
display: grid;
|
|
85
|
+
grid-template-columns: repeat(7, 1fr);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.monthDayHeader {
|
|
89
|
+
padding: 10px 0;
|
|
90
|
+
text-align: center;
|
|
91
|
+
font-size: 12px;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
color: var(--color-text-tertiary);
|
|
94
|
+
text-transform: uppercase;
|
|
95
|
+
letter-spacing: 0.5px;
|
|
96
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.monthCell {
|
|
100
|
+
min-height: 100px;
|
|
101
|
+
padding: 6px;
|
|
102
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
103
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
104
|
+
cursor: default;
|
|
105
|
+
transition: background 0.15s ease;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.monthCell:nth-child(7n) {
|
|
109
|
+
border-right: none;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.monthCell:hover {
|
|
113
|
+
background: var(--color-bg-hover);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.monthCellOutside {
|
|
117
|
+
opacity: 0.35;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.monthCellToday {
|
|
121
|
+
background: var(--color-bg-lime-subtle);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.monthCellToday:hover {
|
|
125
|
+
background: var(--color-bg-lime-medium);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.monthDayNumber {
|
|
129
|
+
display: inline-flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
width: 26px;
|
|
133
|
+
height: 26px;
|
|
134
|
+
border-radius: var(--radius-full);
|
|
135
|
+
font-size: 13px;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
color: var(--color-text-secondary);
|
|
138
|
+
margin-bottom: 4px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.monthDayNumberToday {
|
|
142
|
+
background: var(--color-lime);
|
|
143
|
+
color: var(--color-lime-text);
|
|
144
|
+
font-weight: 700;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.monthEvent {
|
|
148
|
+
display: block;
|
|
149
|
+
padding: 2px 6px;
|
|
150
|
+
margin-bottom: 2px;
|
|
151
|
+
border-radius: 4px;
|
|
152
|
+
font-size: 11px;
|
|
153
|
+
font-weight: 500;
|
|
154
|
+
line-height: 1.4;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
text-overflow: ellipsis;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
transition: opacity 0.15s ease;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.monthEvent:hover {
|
|
163
|
+
opacity: 0.85;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.monthEventMore {
|
|
167
|
+
font-size: 11px;
|
|
168
|
+
font-weight: 600;
|
|
169
|
+
color: var(--color-text-tertiary);
|
|
170
|
+
padding: 2px 6px;
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.monthEventMore:hover {
|
|
175
|
+
color: var(--color-text-secondary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/* ── Event Colors ── */
|
|
179
|
+
|
|
180
|
+
.eventLime {
|
|
181
|
+
background: var(--color-bg-lime-medium);
|
|
182
|
+
color: var(--color-lime);
|
|
183
|
+
border-left: 2px solid var(--color-lime);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.eventInfo {
|
|
187
|
+
background: var(--color-info-bg);
|
|
188
|
+
color: var(--color-info);
|
|
189
|
+
border-left: 2px solid var(--color-info);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.eventWarning {
|
|
193
|
+
background: var(--color-warning-bg);
|
|
194
|
+
color: var(--color-warning);
|
|
195
|
+
border-left: 2px solid var(--color-warning);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.eventError {
|
|
199
|
+
background: var(--color-error-bg);
|
|
200
|
+
color: var(--color-error);
|
|
201
|
+
border-left: 2px solid var(--color-error);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.eventSuccess {
|
|
205
|
+
background: var(--color-success-bg);
|
|
206
|
+
color: var(--color-success);
|
|
207
|
+
border-left: 2px solid var(--color-success);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.eventAccent {
|
|
211
|
+
background: var(--color-bg-lime-subtle);
|
|
212
|
+
color: var(--color-text-primary);
|
|
213
|
+
border-left: 2px solid var(--color-border-lime-strong);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/* ── Week View ── */
|
|
217
|
+
|
|
218
|
+
.weekWrapper {
|
|
219
|
+
display: flex;
|
|
220
|
+
flex-direction: column;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.weekHeaderRow {
|
|
224
|
+
display: grid;
|
|
225
|
+
grid-template-columns: 60px repeat(7, 1fr);
|
|
226
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.weekHeaderGutter {
|
|
230
|
+
padding: 10px 0;
|
|
231
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.weekHeaderCell {
|
|
235
|
+
padding: 10px 0;
|
|
236
|
+
text-align: center;
|
|
237
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.weekHeaderCell:last-child {
|
|
241
|
+
border-right: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.weekHeaderDow {
|
|
245
|
+
font-size: 11px;
|
|
246
|
+
font-weight: 600;
|
|
247
|
+
color: var(--color-text-tertiary);
|
|
248
|
+
text-transform: uppercase;
|
|
249
|
+
letter-spacing: 0.5px;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.weekHeaderDate {
|
|
253
|
+
font-size: 20px;
|
|
254
|
+
font-weight: 700;
|
|
255
|
+
color: var(--color-text-secondary);
|
|
256
|
+
line-height: 1.3;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.weekHeaderDateToday {
|
|
260
|
+
display: inline-flex;
|
|
261
|
+
align-items: center;
|
|
262
|
+
justify-content: center;
|
|
263
|
+
width: 34px;
|
|
264
|
+
height: 34px;
|
|
265
|
+
border-radius: var(--radius-full);
|
|
266
|
+
background: var(--color-lime);
|
|
267
|
+
color: var(--color-lime-text);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.weekBody {
|
|
271
|
+
display: grid;
|
|
272
|
+
grid-template-columns: 60px repeat(7, 1fr);
|
|
273
|
+
max-height: 600px;
|
|
274
|
+
overflow-y: auto;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.weekTimeGutter {
|
|
278
|
+
display: flex;
|
|
279
|
+
flex-direction: column;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.weekTimeLabel {
|
|
283
|
+
height: 60px;
|
|
284
|
+
display: flex;
|
|
285
|
+
align-items: flex-start;
|
|
286
|
+
justify-content: center;
|
|
287
|
+
padding-top: 0;
|
|
288
|
+
font-size: 11px;
|
|
289
|
+
font-weight: 500;
|
|
290
|
+
color: var(--color-text-tertiary);
|
|
291
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
292
|
+
transform: translateY(-8px);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.weekDayColumn {
|
|
296
|
+
position: relative;
|
|
297
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.weekDayColumn:last-child {
|
|
301
|
+
border-right: none;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.weekHourSlot {
|
|
305
|
+
height: 60px;
|
|
306
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.weekHourSlot:hover {
|
|
310
|
+
background: var(--color-bg-hover);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.weekEvent {
|
|
314
|
+
position: absolute;
|
|
315
|
+
left: 2px;
|
|
316
|
+
right: 2px;
|
|
317
|
+
border-radius: 6px;
|
|
318
|
+
padding: 4px 8px;
|
|
319
|
+
font-size: 11px;
|
|
320
|
+
font-weight: 500;
|
|
321
|
+
overflow: hidden;
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
z-index: 1;
|
|
324
|
+
transition: opacity 0.15s ease;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.weekEvent:hover {
|
|
328
|
+
opacity: 0.85;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.weekEventTitle {
|
|
332
|
+
font-weight: 600;
|
|
333
|
+
line-height: 1.3;
|
|
334
|
+
white-space: nowrap;
|
|
335
|
+
overflow: hidden;
|
|
336
|
+
text-overflow: ellipsis;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.weekEventTime {
|
|
340
|
+
font-size: 10px;
|
|
341
|
+
opacity: 0.8;
|
|
342
|
+
margin-top: 1px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
/* ── Day View ── */
|
|
346
|
+
|
|
347
|
+
.dayWrapper {
|
|
348
|
+
display: flex;
|
|
349
|
+
flex-direction: column;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.dayHeaderRow {
|
|
353
|
+
display: grid;
|
|
354
|
+
grid-template-columns: 60px 1fr;
|
|
355
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.dayHeaderGutter {
|
|
359
|
+
padding: 10px 0;
|
|
360
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.dayHeaderCell {
|
|
364
|
+
padding: 10px 16px;
|
|
365
|
+
display: flex;
|
|
366
|
+
align-items: center;
|
|
367
|
+
gap: 12px;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.dayHeaderDow {
|
|
371
|
+
font-size: 12px;
|
|
372
|
+
font-weight: 600;
|
|
373
|
+
color: var(--color-text-tertiary);
|
|
374
|
+
text-transform: uppercase;
|
|
375
|
+
letter-spacing: 0.5px;
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.dayHeaderDate {
|
|
379
|
+
font-size: 24px;
|
|
380
|
+
font-weight: 700;
|
|
381
|
+
color: var(--color-text-primary);
|
|
382
|
+
line-height: 1;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.dayHeaderDateToday {
|
|
386
|
+
display: inline-flex;
|
|
387
|
+
align-items: center;
|
|
388
|
+
justify-content: center;
|
|
389
|
+
width: 40px;
|
|
390
|
+
height: 40px;
|
|
391
|
+
border-radius: var(--radius-full);
|
|
392
|
+
background: var(--color-lime);
|
|
393
|
+
color: var(--color-lime-text);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.dayBody {
|
|
397
|
+
display: grid;
|
|
398
|
+
grid-template-columns: 60px 1fr;
|
|
399
|
+
max-height: 600px;
|
|
400
|
+
overflow-y: auto;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.dayTimeGutter {
|
|
404
|
+
display: flex;
|
|
405
|
+
flex-direction: column;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.dayTimeLabel {
|
|
409
|
+
height: 60px;
|
|
410
|
+
display: flex;
|
|
411
|
+
align-items: flex-start;
|
|
412
|
+
justify-content: center;
|
|
413
|
+
padding-top: 0;
|
|
414
|
+
font-size: 11px;
|
|
415
|
+
font-weight: 500;
|
|
416
|
+
color: var(--color-text-tertiary);
|
|
417
|
+
border-right: 1px solid var(--color-border-subtle);
|
|
418
|
+
transform: translateY(-8px);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.dayColumn {
|
|
422
|
+
position: relative;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.dayHourSlot {
|
|
426
|
+
height: 60px;
|
|
427
|
+
border-bottom: 1px solid var(--color-border-subtle);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.dayHourSlot:hover {
|
|
431
|
+
background: var(--color-bg-hover);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.dayEvent {
|
|
435
|
+
position: absolute;
|
|
436
|
+
left: 4px;
|
|
437
|
+
right: 4px;
|
|
438
|
+
border-radius: 8px;
|
|
439
|
+
padding: 8px 12px;
|
|
440
|
+
font-size: 12px;
|
|
441
|
+
font-weight: 500;
|
|
442
|
+
overflow: hidden;
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
z-index: 1;
|
|
445
|
+
transition: opacity 0.15s ease;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.dayEvent:hover {
|
|
449
|
+
opacity: 0.85;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.dayEventTitle {
|
|
453
|
+
font-weight: 600;
|
|
454
|
+
font-size: 13px;
|
|
455
|
+
line-height: 1.3;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.dayEventTime {
|
|
459
|
+
font-size: 11px;
|
|
460
|
+
opacity: 0.8;
|
|
461
|
+
margin-top: 2px;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.dayEventDescription {
|
|
465
|
+
font-size: 11px;
|
|
466
|
+
opacity: 0.7;
|
|
467
|
+
margin-top: 4px;
|
|
468
|
+
line-height: 1.3;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/* ── Current Time Indicator ── */
|
|
472
|
+
|
|
473
|
+
.nowIndicator {
|
|
474
|
+
position: absolute;
|
|
475
|
+
left: 0;
|
|
476
|
+
right: 0;
|
|
477
|
+
height: 2px;
|
|
478
|
+
background: var(--color-error);
|
|
479
|
+
z-index: 2;
|
|
480
|
+
pointer-events: none;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.nowIndicator::before {
|
|
484
|
+
content: "";
|
|
485
|
+
position: absolute;
|
|
486
|
+
left: -4px;
|
|
487
|
+
top: -3px;
|
|
488
|
+
width: 8px;
|
|
489
|
+
height: 8px;
|
|
490
|
+
border-radius: 50%;
|
|
491
|
+
background: var(--color-error);
|
|
492
|
+
}
|