@rolldate/mcp 1.1.0 → 1.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.
@@ -3,35 +3,60 @@
3
3
  flex-direction: column;
4
4
  padding: 6px 11px;
5
5
  width: 360px;
6
- --rd-bg: #323232;
7
- --rd-border: #626262;
8
- --rd-text-primary: #e6e6e6;
9
- --rd-text-secondary: #848685;
10
- --rd-text-disabled: #515252;
11
- --rd-text-disabled-contrast: #a2a2a2;
12
- --rd-header-muted: #848685;
13
- --rd-weekday: #f7f7f7;
14
- --rd-hover-bg: #3e3e3e;
15
- --rd-hover-border: #686868;
16
- --rd-accent: #609ef1;
17
- --rd-accent-strong: #368cfd;
18
- --rd-accent-dark: #1e5093;
19
- --rd-accent-muted: #375985;
6
+ --rd-time-panel-w: 168px;
7
+ --rd-time-separator-gap: 11px;
8
+ --rd-time-item-h: 32px;
9
+ --rd-time-visible: 3;
10
+ --rd-bg: #232830;
11
+ --rd-border: #343b48;
12
+ --rd-text-primary: #f1f5f9;
13
+ --rd-text-secondary: #94a3b8;
14
+ --rd-text-disabled: #4b5563;
15
+ --rd-text-disabled-contrast: #64748b;
16
+ --rd-header-muted: #94a3b8;
17
+ --rd-weekday: #cbd5e1;
18
+ --rd-hover-bg: #2d3544;
19
+ --rd-hover-border: #475569;
20
+ --rd-accent: #60a5fa;
21
+ --rd-accent-strong: #2563eb;
22
+ --rd-accent-dark: #1d4ed8;
23
+ --rd-accent-muted: rgba(37, 99, 235, 0.18);
20
24
  --rd-range: #a78bfa;
21
25
  --rd-range-strong: #7c3aed;
22
26
  --rd-range-muted: #3d3558;
23
- --rd-button-icon: #fff;
27
+ --rd-button-icon: #cbd5e1;
24
28
  background: var(--rd-bg);
25
29
  border: 1px solid var(--rd-border);
26
30
  box-sizing: border-box;
27
31
  font-family: "Segoe UI", Arial, sans-serif;
28
32
  overscroll-behavior: contain;
29
- border-radius: 8px;
33
+ border-radius: 12px;
30
34
  }
31
35
  .RollDate__container * {
32
36
  box-sizing: border-box;
33
37
  }
38
+ .RollDate__container.RollDate__theme_main {
39
+ --rd-bg: #232830;
40
+ --rd-border: #343b48;
41
+ --rd-text-primary: #f1f5f9;
42
+ --rd-text-secondary: #94a3b8;
43
+ --rd-text-disabled: #4b5563;
44
+ --rd-text-disabled-contrast: #64748b;
45
+ --rd-header-muted: #94a3b8;
46
+ --rd-weekday: #cbd5e1;
47
+ --rd-hover-bg: #2d3544;
48
+ --rd-hover-border: #475569;
49
+ --rd-accent: #60a5fa;
50
+ --rd-accent-strong: #2563eb;
51
+ --rd-accent-dark: #1d4ed8;
52
+ --rd-accent-muted: rgba(37, 99, 235, 0.18);
53
+ --rd-range: #a78bfa;
54
+ --rd-range-strong: #7c3aed;
55
+ --rd-range-muted: #3d3558;
56
+ --rd-button-icon: #cbd5e1;
57
+ }
34
58
  .RollDate__container.RollDate__theme_dark {
59
+ --rd-time-item-h: 28px;
35
60
  --rd-bg: #323232;
36
61
  --rd-border: #626262;
37
62
  --rd-text-primary: #e6e6e6;
@@ -51,7 +76,23 @@
51
76
  --rd-range-muted: #3d3558;
52
77
  --rd-button-icon: #fff;
53
78
  }
79
+ .RollDate__container.RollDate__theme_dark .RollDate__time__viewport::before {
80
+ border-color: var(--rd-hover-border);
81
+ background: var(--rd-hover-bg);
82
+ }
83
+ .RollDate__container.RollDate__theme_dark .RollDate__time__item--active {
84
+ color: var(--rd-text-primary);
85
+ }
86
+ .RollDate__container.RollDate__theme_dark .RollDate__time__segment-btn--active {
87
+ background: var(--rd-hover-border);
88
+ color: var(--rd-text-primary);
89
+ }
90
+ .RollDate__container.RollDate__theme_dark .RollDate__time__segmented {
91
+ border-color: var(--rd-hover-border);
92
+ background: var(--rd-hover-bg);
93
+ }
54
94
  .RollDate__container.RollDate__theme_light {
95
+ --rd-time-item-h: 28px;
55
96
  --rd-bg: #ffffff;
56
97
  --rd-border: #d8dde6;
57
98
  --rd-text-primary: #1f2937;
@@ -71,6 +112,21 @@
71
112
  --rd-range-muted: #ede9fe;
72
113
  --rd-button-icon: #334155;
73
114
  }
115
+ .RollDate__container.RollDate__theme_light .RollDate__time__viewport::before {
116
+ border-color: var(--rd-hover-border);
117
+ background: var(--rd-hover-bg);
118
+ }
119
+ .RollDate__container.RollDate__theme_light .RollDate__time__item--active {
120
+ color: var(--rd-text-primary);
121
+ }
122
+ .RollDate__container.RollDate__theme_light .RollDate__time__segment-btn--active {
123
+ background: var(--rd-hover-border);
124
+ color: var(--rd-text-primary);
125
+ }
126
+ .RollDate__container.RollDate__theme_light .RollDate__time__segmented {
127
+ border-color: var(--rd-hover-border);
128
+ background: var(--rd-hover-bg);
129
+ }
74
130
  .RollDate__container.RollDate__calendar__type--days .RollDate__calendar__header {
75
131
  display: flex;
76
132
  }
@@ -105,6 +161,75 @@
105
161
  .RollDate__container.RollDate__calendar__type--years .RollDate__header__year, .RollDate__container.RollDate__calendar__type--years .RollDate__header__month {
106
162
  color: var(--rd-header-muted);
107
163
  }
164
+ .RollDate__container.RollDate__has-time .RollDate__time-separator {
165
+ flex-shrink: 0;
166
+ background: var(--rd-border);
167
+ }
168
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right {
169
+ --rd-time-visible: 5;
170
+ width: calc(360px + var(--rd-time-separator-gap) * 2 + 1px + var(--rd-time-panel-w));
171
+ }
172
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__content {
173
+ flex-direction: row;
174
+ align-items: stretch;
175
+ }
176
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__calendar {
177
+ flex: 0 0 338px;
178
+ width: 338px;
179
+ min-width: 338px;
180
+ max-width: 338px;
181
+ }
182
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time-separator {
183
+ flex: 0 0 1px;
184
+ width: 1px;
185
+ margin: 0 var(--rd-time-separator-gap);
186
+ align-self: stretch;
187
+ }
188
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time-panel {
189
+ flex: 0 0 var(--rd-time-panel-w);
190
+ width: var(--rd-time-panel-w);
191
+ display: flex;
192
+ align-items: center;
193
+ justify-content: center;
194
+ align-self: stretch;
195
+ padding: 8px 6px;
196
+ }
197
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom {
198
+ --rd-time-visible: 3;
199
+ }
200
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__content {
201
+ flex-direction: column;
202
+ }
203
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__calendar {
204
+ flex: 1 1 auto;
205
+ width: auto;
206
+ min-width: 0;
207
+ max-width: none;
208
+ }
209
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time-separator {
210
+ flex: 0 0 auto;
211
+ width: auto;
212
+ height: 1px;
213
+ margin: var(--rd-time-separator-gap) 0;
214
+ align-self: stretch;
215
+ }
216
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time-panel {
217
+ flex: 0 0 auto;
218
+ width: 100%;
219
+ display: flex;
220
+ align-items: center;
221
+ justify-content: center;
222
+ padding: 8px 4px 4px;
223
+ }
224
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time {
225
+ flex-direction: row;
226
+ align-items: center;
227
+ gap: 8px;
228
+ }
229
+ .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time__period {
230
+ width: auto;
231
+ max-width: none;
232
+ }
108
233
  .RollDate__header {
109
234
  flex: 0 0 auto;
110
235
  display: flex;
@@ -128,7 +253,10 @@
128
253
  flex: 1 0 auto;
129
254
  display: flex;
130
255
  flex-direction: column;
131
- height: 283px;
256
+ min-width: 0;
257
+ }
258
+ .RollDate__calendar > .RollDate__header {
259
+ flex: 0 0 auto;
132
260
  }
133
261
  .RollDate__calendar__switcher {
134
262
  display: flex;
@@ -158,7 +286,9 @@
158
286
  font-size: 12px;
159
287
  }
160
288
  .RollDate__calendar__body {
161
- flex: 1 0 0;
289
+ flex: 0 0 251px;
290
+ height: 251px;
291
+ min-height: 251px;
162
292
  overflow: hidden;
163
293
  touch-action: none;
164
294
  }
@@ -295,7 +425,8 @@
295
425
  display: flex;
296
426
  align-items: center;
297
427
  justify-content: center;
298
- height: 67px;
428
+ height: 59.75px;
429
+ min-height: 59.75px;
299
430
  font-size: 14px;
300
431
  color: var(--rd-text-secondary);
301
432
  cursor: pointer;
@@ -384,6 +515,15 @@
384
515
  border-color: var(--rd-range);
385
516
  background: var(--rd-range-muted);
386
517
  }
518
+ .RollDate__content {
519
+ display: flex;
520
+ flex-direction: column;
521
+ flex: 1 1 auto;
522
+ min-height: 0;
523
+ }
524
+ .RollDate__time-panel {
525
+ flex: 0 0 auto;
526
+ }
387
527
  .RollDate__footer {
388
528
  flex: 0 0 auto;
389
529
  margin-top: 10px;
@@ -403,108 +543,123 @@
403
543
  border: 1px solid var(--rd-border);
404
544
  background: var(--rd-hover-bg);
405
545
  color: var(--rd-text-primary);
406
- border-radius: 6px;
407
- padding: 7px 12px;
546
+ border-radius: 8px;
547
+ padding: 8px 16px;
408
548
  font-size: 12px;
409
549
  font-weight: 600;
410
550
  cursor: pointer;
411
- transition: background-color 0.2s, border-color 0.2s;
551
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s;
412
552
  }
413
553
  .RollDate__footer__button:hover {
414
554
  border-color: var(--rd-accent);
415
555
  background: var(--rd-accent-muted);
416
556
  }
557
+ .RollDate__footer__button--secondary {
558
+ border-color: var(--rd-border);
559
+ background: var(--rd-hover-bg);
560
+ color: var(--rd-text-primary);
561
+ }
562
+ .RollDate__footer__button--secondary:hover {
563
+ border-color: var(--rd-hover-border);
564
+ background: var(--rd-hover-bg);
565
+ color: var(--rd-text-primary);
566
+ }
567
+ .RollDate__footer__button--primary {
568
+ border-color: transparent;
569
+ background: var(--rd-accent-strong);
570
+ color: #fff;
571
+ }
572
+ .RollDate__footer__button--primary:hover {
573
+ border-color: transparent;
574
+ background: var(--rd-accent);
575
+ color: #fff;
576
+ }
417
577
  .RollDate__time {
418
578
  display: flex;
419
- flex-direction: row;
579
+ flex-direction: column;
420
580
  align-items: center;
421
581
  justify-content: center;
422
- gap: 10px;
423
- padding: 4px 0 2px;
582
+ gap: 8px;
424
583
  user-select: none;
584
+ width: 100%;
585
+ }
586
+ .RollDate__time:not(.RollDate__time--12h) .RollDate__time__period {
587
+ display: none;
588
+ }
589
+ .RollDate__time__period {
590
+ flex: 0 0 auto;
591
+ width: 100%;
592
+ max-width: 118px;
593
+ }
594
+ .RollDate__time__segmented {
595
+ display: flex;
596
+ border: 1.5px solid var(--rd-accent-strong);
597
+ border-radius: 8px;
598
+ padding: 2px;
599
+ background: var(--rd-accent-muted);
600
+ gap: 2px;
601
+ height: var(--rd-time-item-h, 28px);
602
+ box-sizing: border-box;
603
+ align-items: stretch;
604
+ width: 100%;
605
+ }
606
+ .RollDate__time__segment-btn {
607
+ flex: 1 1 0;
608
+ min-width: 40px;
609
+ border: none;
610
+ background: transparent;
611
+ color: var(--rd-text-secondary);
612
+ font-size: 12px;
613
+ font-weight: 700;
614
+ line-height: 1;
615
+ padding: 0 6px;
616
+ border-radius: 6px;
617
+ cursor: pointer;
618
+ transition: background-color 0.15s ease, color 0.15s ease;
619
+ display: flex;
620
+ align-items: center;
621
+ justify-content: center;
622
+ }
623
+ .RollDate__time__segment-btn--active {
624
+ background: var(--rd-accent-strong);
625
+ color: #fff;
425
626
  }
426
627
  .RollDate__time__picker {
427
628
  display: flex;
428
629
  align-items: center;
429
630
  justify-content: center;
430
631
  gap: 4px;
431
- flex: 1 1 auto;
432
- min-width: 0;
433
- }
434
- .RollDate__time__display {
435
632
  flex: 0 0 auto;
436
- font-size: 17px;
437
- font-weight: 700;
438
- font-variant-numeric: tabular-nums;
439
- color: var(--rd-text-primary);
440
- letter-spacing: 0.03em;
441
- line-height: 1;
442
- padding: 6px 10px;
443
- border-left: 1px solid var(--rd-border);
444
- min-width: 4.5em;
445
- text-align: center;
633
+ min-width: 0;
446
634
  }
447
635
  .RollDate__time__field {
448
636
  flex: 0 0 auto;
449
637
  width: auto;
450
638
  }
451
- .RollDate__time__field--period .RollDate__time__viewport {
452
- width: 40px;
453
- }
454
639
  .RollDate__time__column {
455
640
  display: flex;
456
- flex-direction: row;
457
- align-items: center;
458
- gap: 2px;
459
- }
460
- .RollDate__time__arrow {
461
- display: flex;
641
+ flex-direction: column;
462
642
  align-items: center;
463
- justify-content: center;
464
- width: 20px;
465
- height: 84px;
466
- padding: 0;
467
- border: none;
468
- border-radius: 4px;
469
- background: none;
470
- cursor: pointer;
471
- flex-shrink: 0;
472
- transition: opacity 0.2s;
473
- }
474
- .RollDate__time__arrow svg {
475
- width: 7px;
476
- height: 6px;
477
- fill: var(--rd-text-secondary);
478
- transition: fill 0.2s;
479
- }
480
- .RollDate__time__arrow:hover svg {
481
- fill: var(--rd-text-primary);
482
- }
483
- .RollDate__time__arrow--prev svg {
484
- transform: rotate(-90deg);
485
- }
486
- .RollDate__time__arrow--next svg {
487
- transform: rotate(90deg);
488
643
  }
489
644
  .RollDate__time__viewport {
490
645
  position: relative;
491
- width: 46px;
492
- height: 84px;
646
+ width: 52px;
647
+ height: calc(var(--rd-time-item-h, 28px) * var(--rd-time-visible, 3));
493
648
  overflow: hidden;
494
- border-radius: 4px;
649
+ border-radius: 8px;
495
650
  touch-action: none;
496
651
  }
497
652
  .RollDate__time__viewport::before {
498
653
  content: "";
499
654
  position: absolute;
500
- left: 0;
501
- right: 0;
655
+ left: 4px;
656
+ right: 4px;
502
657
  top: 50%;
503
658
  transform: translateY(-50%);
504
- height: 28px;
505
- border: 2px solid var(--rd-hover-border);
506
- border-radius: 4px;
507
- background: transparent;
659
+ height: var(--rd-time-item-h, 28px);
660
+ border: 1.5px solid var(--rd-accent-strong);
661
+ border-radius: 8px;
662
+ background: var(--rd-accent-muted);
508
663
  pointer-events: none;
509
664
  z-index: 2;
510
665
  box-sizing: border-box;
@@ -514,85 +669,90 @@
514
669
  position: absolute;
515
670
  inset: 0;
516
671
  pointer-events: none;
517
- z-index: 1;
518
- background: linear-gradient(to bottom, var(--rd-bg) 0%, transparent 32%, transparent 68%, var(--rd-bg) 100%);
672
+ z-index: 4;
673
+ background: linear-gradient(to bottom, var(--rd-bg) 0%, transparent 28%, transparent 72%, var(--rd-bg) 100%);
519
674
  }
520
675
  .RollDate__time__list {
521
676
  will-change: transform;
522
677
  position: relative;
523
- z-index: 0;
678
+ z-index: 3;
524
679
  }
525
680
  .RollDate__time__item {
526
- height: 28px;
681
+ height: var(--rd-time-item-h, 28px);
527
682
  display: flex;
528
683
  align-items: center;
529
684
  justify-content: center;
530
685
  font-size: 14px;
531
686
  font-weight: 600;
532
687
  color: var(--rd-text-disabled);
533
- transition: color 0.15s ease, font-size 0.15s ease;
688
+ cursor: pointer;
689
+ transition: color 0.15s ease, opacity 0.15s ease;
534
690
  }
535
691
  .RollDate__time__item--active {
536
- color: var(--rd-text-primary);
692
+ color: var(--rd-accent-strong);
537
693
  font-size: 15px;
538
694
  font-weight: 700;
539
695
  }
540
696
  .RollDate__time__sep {
541
697
  font-size: 20px;
542
698
  font-weight: 700;
543
- color: var(--rd-text-primary);
699
+ color: var(--rd-text-secondary);
544
700
  line-height: 1;
545
- padding-bottom: 2px;
546
701
  align-self: center;
547
702
  margin-top: 0;
548
703
  }
549
- .RollDate__time--12h {
550
- flex-wrap: wrap;
551
- gap: 6px;
552
- padding-top: 2px;
553
- }
554
- .RollDate__time--12h .RollDate__time__display {
555
- order: -1;
556
- width: 100%;
557
- flex: 1 1 100%;
558
- border-left: none;
559
- padding: 0 0 4px;
560
- min-width: 0;
561
- font-size: 22px;
562
- letter-spacing: 0.04em;
563
- }
564
- .RollDate__time--12h .RollDate__time__picker {
565
- width: 100%;
566
- flex: 1 1 100%;
567
- justify-content: center;
568
- gap: 2px;
569
- }
570
- .RollDate__time--12h .RollDate__time__arrow {
571
- width: 18px;
572
- }
573
- .RollDate__time--12h .RollDate__time__viewport {
574
- width: 42px;
575
- }
576
- .RollDate__time--12h .RollDate__time__field--period .RollDate__time__viewport {
577
- width: 36px;
578
- }
579
- .RollDate__time--12h .RollDate__time__sep {
580
- font-size: 18px;
581
- }
582
- .RollDate__has-footer .RollDate__calendar {
583
- height: 260px;
584
- }
585
- .RollDate__has-time .RollDate__calendar {
586
- height: 258px;
704
+ .RollDate__theme_main .RollDate__calendar__day--today:not(.RollDate__calendar__day--range-first):not(.RollDate__calendar__day--range-last):not(.RollDate__calendar__day--range-selected) {
705
+ background: var(--rd-accent-strong);
706
+ color: #fff;
707
+ border-color: transparent;
587
708
  }
588
- .RollDate__has-footer.RollDate__has-time .RollDate__calendar {
589
- height: 230px;
709
+ .RollDate__theme_main .RollDate__calendar__day--today:not(.RollDate__calendar__day--range-first):not(.RollDate__calendar__day--range-last):not(.RollDate__calendar__day--range-selected):hover {
710
+ background: var(--rd-accent);
711
+ border-color: transparent;
590
712
  }
591
713
 
592
- @media (max-width: 380px) {
714
+ @media (max-width: 640px) {
593
715
  .RollDate__container {
594
716
  width: min(100vw - 16px, 360px);
595
717
  padding: 6px 8px;
718
+ --rd-time-item-h: 28px;
719
+ }
720
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom {
721
+ --rd-time-visible: 3;
722
+ width: min(100vw - 16px, 360px);
723
+ }
724
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__content, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__content {
725
+ flex-direction: column;
726
+ }
727
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__calendar, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__calendar {
728
+ flex: 1 1 auto;
729
+ width: auto;
730
+ min-width: 0;
731
+ max-width: none;
732
+ }
733
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time-separator, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time-separator {
734
+ flex: 0 0 auto;
735
+ width: auto;
736
+ height: 1px;
737
+ margin: var(--rd-time-separator-gap) 0;
738
+ align-self: stretch;
739
+ }
740
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time-panel, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time-panel {
741
+ flex: 0 0 auto;
742
+ width: 100%;
743
+ padding: 8px 4px 4px;
744
+ }
745
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time {
746
+ flex-direction: row;
747
+ align-items: center;
748
+ gap: 8px;
749
+ }
750
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time__period, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time__period {
751
+ width: auto;
752
+ max-width: none;
753
+ }
754
+ .RollDate__container.RollDate__has-time.RollDate__time-position_right .RollDate__time__viewport, .RollDate__container.RollDate__has-time.RollDate__time-position_bottom .RollDate__time__viewport {
755
+ width: 48px;
596
756
  }
597
757
  .RollDate__header {
598
758
  margin-bottom: 8px;
@@ -601,8 +761,10 @@
601
761
  .RollDate__header__year, .RollDate__header__month {
602
762
  font-size: 13px;
603
763
  }
604
- .RollDate__calendar {
605
- height: 268px;
764
+ .RollDate__calendar__body {
765
+ flex: 0 0 226px;
766
+ height: 226px;
767
+ min-height: 226px;
606
768
  }
607
769
  .RollDate__calendar__header {
608
770
  margin-bottom: 6px;
@@ -616,7 +778,8 @@
616
778
  font-size: 13px;
617
779
  }
618
780
  .RollDate__calendar__month, .RollDate__calendar__year {
619
- height: 60px;
781
+ height: 53.5px;
782
+ min-height: 53.5px;
620
783
  font-size: 13px;
621
784
  }
622
785
  .RollDate__calendar__button {