omnira-ui 0.2.0 → 0.3.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 (29) hide show
  1. package/cli/omnira-init.mjs +197 -16
  2. package/components/ui/ActivityGauge/ActivityGauge.module.css +109 -0
  3. package/components/ui/ActivityGauge/ActivityGauge.tsx +87 -0
  4. package/components/ui/ActivityGauge/index.ts +2 -0
  5. package/components/ui/Calendar/Calendar.module.css +492 -0
  6. package/components/ui/Calendar/Calendar.tsx +445 -0
  7. package/components/ui/Calendar/config.ts +130 -0
  8. package/components/ui/Calendar/index.ts +4 -0
  9. package/components/ui/CardHeader/CardHeader.module.css +79 -0
  10. package/components/ui/CardHeader/CardHeader.tsx +45 -0
  11. package/components/ui/CardHeader/index.ts +2 -0
  12. package/components/ui/EmptyState/EmptyState.module.css +65 -0
  13. package/components/ui/EmptyState/EmptyState.tsx +37 -0
  14. package/components/ui/EmptyState/index.ts +2 -0
  15. package/components/ui/Metric/Metric.module.css +140 -0
  16. package/components/ui/Metric/Metric.tsx +78 -0
  17. package/components/ui/Metric/index.ts +2 -0
  18. package/components/ui/PageHeader/PageHeader.module.css +128 -0
  19. package/components/ui/PageHeader/PageHeader.tsx +61 -0
  20. package/components/ui/PageHeader/index.ts +2 -0
  21. package/components/ui/Table/Table.module.css +444 -0
  22. package/components/ui/Table/Table.tsx +547 -0
  23. package/components/ui/Table/customers.json +74 -0
  24. package/components/ui/Table/index.ts +14 -0
  25. package/components/ui/Table/invoices.json +92 -0
  26. package/components/ui/Table/orders.json +108 -0
  27. package/components/ui/Table/team-members.json +130 -0
  28. package/components/ui/Table/uploaded-files.json +53 -0
  29. package/package.json +1 -1
@@ -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
+ }