@tsiky/components-r19 1.0.0 → 1.2.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.
Files changed (61) hide show
  1. package/index.ts +35 -33
  2. package/package.json +1 -1
  3. package/src/components/AnnouncementPanel/FlexRowContainer.css +17 -17
  4. package/src/components/AnnouncementPanel/FlexRowContainer.stories.tsx +329 -329
  5. package/src/components/AnnouncementPanel/FlexRowContainer.tsx +24 -24
  6. package/src/components/AnnouncementPanel/ListBox/CounterListBox.css +56 -56
  7. package/src/components/AnnouncementPanel/ListBox/CounterListBox.stories.tsx +292 -292
  8. package/src/components/AnnouncementPanel/ListBox/CounterListBox.tsx +106 -106
  9. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.css +57 -57
  10. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.stories.tsx +189 -189
  11. package/src/components/AnnouncementPanel/ListBox/SimpleListBox.tsx +138 -138
  12. package/src/components/AnnouncementPanel/ListBox/TrendListBox.css +61 -61
  13. package/src/components/AnnouncementPanel/ListBox/TrendListBox.stories.tsx +257 -257
  14. package/src/components/AnnouncementPanel/ListBox/TrendListBox.tsx +90 -90
  15. package/src/components/AnnouncementPanel/ListBox/index.ts +3 -3
  16. package/src/components/AnnouncementPanel/ListContentContainer.css +23 -23
  17. package/src/components/AnnouncementPanel/ListContentContainer.stories.tsx +212 -212
  18. package/src/components/AnnouncementPanel/ListContentContainer.tsx +33 -33
  19. package/src/components/AnnouncementPanel/index.ts +3 -3
  20. package/src/components/Charts/area-chart-admission/AreaChartAdmission.tsx +129 -89
  21. package/src/components/Charts/bar-chart/BarChart.tsx +171 -132
  22. package/src/components/Charts/boxplot-chart/BoxPlotChart.tsx +114 -114
  23. package/src/components/Charts/mixed-chart/MixedChart.tsx +65 -9
  24. package/src/components/Charts/sankey-adaptation/sankey.tsx +70 -70
  25. package/src/components/Charts/sankey-chart/SankeyChart.tsx +183 -155
  26. package/src/components/Confirmationpopup/ConfirmationPopup.module.css +88 -0
  27. package/src/components/Confirmationpopup/ConfirmationPopup.stories.tsx +94 -0
  28. package/src/components/Confirmationpopup/ConfirmationPopup.tsx +47 -0
  29. package/src/components/Confirmationpopup/index.ts +6 -0
  30. package/src/components/Confirmationpopup/useConfirmationPopup.ts +48 -0
  31. package/src/components/DayStatCard/DayStatCard.tsx +96 -69
  32. package/src/components/DraggableSwitcher/DraggableSwitcherButton.tsx +58 -58
  33. package/src/components/DraggableSwitcher/context/useDraggableSwitcher.tsx +45 -45
  34. package/src/components/DraggableSwitcher/index.ts +2 -2
  35. package/src/components/DynamicInput/input/SelectInput.tsx +75 -75
  36. package/src/components/DynamicInput/input/assets/SelectInput.module.css +95 -95
  37. package/src/components/DynamicTable/TableCell.tsx +38 -30
  38. package/src/components/DynamicTable/TableHeader.tsx +39 -34
  39. package/src/components/DynamicTable/TableauDynamique.module.css +1333 -1287
  40. package/src/components/DynamicTable/TableauDynamique.tsx +154 -154
  41. package/src/components/DynamicTable/tools/tableTypes.ts +63 -63
  42. package/src/components/Grid/Grid.tsx +5 -0
  43. package/src/components/Grid/grid.css +285 -285
  44. package/src/components/Header/Header.tsx +4 -2
  45. package/src/components/Header/header.css +61 -31
  46. package/src/components/MetricsPanel/MetricsPanel.module.css +688 -636
  47. package/src/components/MetricsPanel/MetricsPanel.tsx +220 -282
  48. package/src/components/MetricsPanel/renderers/CompactRenderer.tsx +148 -125
  49. package/src/components/NavBar/NavBar.tsx +1 -1
  50. package/src/components/NavItem/NavItem.tsx +58 -58
  51. package/src/components/PeriodRange/PeriodRange.module.css +158 -158
  52. package/src/components/PeriodRange/PeriodRange.tsx +130 -130
  53. package/src/components/SearchBar/SearchBar.css +40 -40
  54. package/src/components/SelectFilter/SelectFilter.module.css +249 -0
  55. package/src/components/SelectFilter/SelectFilter.stories.tsx +321 -0
  56. package/src/components/SelectFilter/SelectFilter.tsx +219 -0
  57. package/src/components/SelectFilter/index.ts +2 -0
  58. package/src/components/SelectFilter/types.ts +19 -0
  59. package/src/components/TranslationKey/TranslationKey.css +272 -272
  60. package/src/components/TranslationKey/TranslationKey.tsx +266 -245
  61. package/src/components/TrendList/TrendList.tsx +72 -45
@@ -1,636 +1,688 @@
1
- .mpRoot {
2
- --mp-radius: 12px;
3
- --mp-transition: 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
4
- --mp-gap: 12px;
5
- --mp-padding: 16px;
6
-
7
- background: var(--mp-bg-primary);
8
- border-radius: var(--mp-radius);
9
- padding: var(--mp-padding);
10
- box-shadow: var(--mp-shadow-sm);
11
- transition:
12
- box-shadow var(--mp-transition),
13
- transform var(--mp-transition);
14
- border: 1px solid var(--mp-border);
15
-
16
- width: 100%;
17
- max-width: none;
18
- flex: 1 1 auto;
19
- box-sizing: border-box;
20
- }
21
-
22
- .mpHeader {
23
- display: flex;
24
- align-items: center;
25
- justify-content: space-between;
26
- gap: 10px;
27
- padding: 4px 8px;
28
- margin-bottom: 10px;
29
- }
30
-
31
- .mpTitle {
32
- font-weight: var(--font-bold);
33
- }
34
-
35
- .mpList {
36
- display: flex;
37
- flex-direction: column;
38
- gap: var(--mp-gap);
39
- }
40
-
41
- .mpVertical .mpList {
42
- flex-direction: column;
43
- gap: var(--mp-gap);
44
- }
45
-
46
- .mpHorizontal .mpList {
47
- flex-direction: row;
48
- gap: 14px;
49
- overflow-x: auto;
50
- padding-bottom: 8px;
51
- scroll-snap-type: x mandatory;
52
- flex-wrap: nowrap;
53
- }
54
-
55
- .mpItem {
56
- display: flex;
57
- align-items: center;
58
- justify-content: space-between;
59
- gap: 12px;
60
- padding: 12px;
61
- border-radius: 10px;
62
- transition:
63
- transform var(--mp-transition),
64
- box-shadow var(--mp-transition),
65
- background-color var(--mp-transition),
66
- border-color var(--mp-transition);
67
- border: 1px solid rgba(15, 23, 42, 0.03);
68
- position: relative;
69
- min-height: 64px;
70
- box-sizing: border-box;
71
- font-size: var(--text-paragraph);
72
- font-weight: var(--font-normal);
73
- }
74
-
75
- .mpHorizontal .mpItem {
76
- scroll-snap-align: start;
77
- min-width: 240px;
78
- max-width: 360px;
79
- flex: 0 0 auto;
80
- }
81
-
82
- .mpItem[type='button'],
83
- .mpItem[role='button'],
84
- .mpItem button {
85
- all: unset;
86
- display: flex;
87
- align-items: center;
88
- justify-content: space-between;
89
- gap: 12px;
90
- width: 100%;
91
- cursor: pointer;
92
- text-align: left;
93
- }
94
-
95
- .mpClickable {
96
- cursor: pointer;
97
- }
98
-
99
- .mpClickable:hover {
100
- transform: translateY(-4px);
101
- box-shadow: var(--mp-shadow-md);
102
- background: var(--mp-bg-secondary);
103
- }
104
-
105
- .mpClickable:active {
106
- transform: translateY(-1px);
107
- }
108
-
109
- .mpClickable:focus-visible,
110
- .mpItem:focus-visible {
111
- outline: none;
112
- box-shadow: 0 0 0 4px var(--mp-accent-soft);
113
- border-color: var(--mp-accent);
114
- z-index: 2;
115
- }
116
-
117
- .mpLeft {
118
- display: flex;
119
- align-items: center;
120
- gap: 12px;
121
- min-width: 0;
122
- flex: 1;
123
- }
124
-
125
- .mpIcon {
126
- width: 44px;
127
- height: 44px;
128
- display: flex;
129
- align-items: center;
130
- justify-content: center;
131
- border-radius: 10px;
132
- background: var(--mp-accent-soft);
133
- color: var(--mp-accent);
134
- font-weight: var(--font-bold);
135
- flex-shrink: 0;
136
- box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
137
- font-size: var(--text-paragraph);
138
- }
139
-
140
- .mpMeta {
141
- min-width: 0;
142
- overflow: hidden;
143
- }
144
-
145
- .mpLabel {
146
- font-size: var(--text-paragraph);
147
- font-weight: var(--font-bold);
148
- color: var(--mp-text-primary);
149
- white-space: nowrap;
150
- overflow: hidden;
151
- text-overflow: ellipsis;
152
- }
153
-
154
- .mpDate {
155
- font-size: var(--text-small);
156
- color: var(--mp-text-secondary);
157
- margin-top: 4px;
158
- }
159
-
160
- .mpRight {
161
- display: flex;
162
- align-items: center;
163
- gap: 12px;
164
- min-width: 0;
165
- justify-content: flex-end;
166
- }
167
-
168
- .mpValue {
169
- font-size: var(--h2);
170
- font-weight: var(--font-bold);
171
- min-width: 56px;
172
- text-align: right;
173
- line-height: 1;
174
- }
175
-
176
- .mpHint {
177
- font-size: var(--text-small);
178
- }
179
-
180
- .mpBadge {
181
- display: flex;
182
- flex-direction: column;
183
- align-items: center;
184
- justify-content: center;
185
- padding: 6px 10px;
186
- border-radius: 10px;
187
- border: none;
188
- min-width: 74px;
189
- font-weight: var(--font-bold);
190
- font-size: var(--text-small);
191
- flex-shrink: 0;
192
- text-align: center;
193
- background: transparent;
194
- color: var(--mp-text-secondary);
195
- box-shadow: none;
196
- background-clip: padding-box;
197
- }
198
-
199
- .mpBadgeTop {
200
- font-size: var(--text-paragraph);
201
- font-weight: var(--font-bold);
202
- line-height: 1;
203
- color: inherit;
204
- }
205
-
206
- .mpBadgeSub {
207
- font-size: var(--text-small);
208
- font-weight: var(--font-medium);
209
- margin-top: 2px;
210
- color: var(--mp-text-secondary);
211
- }
212
-
213
- .mpBadgeSmall {
214
- display: inline-flex;
215
- flex-direction: column;
216
- align-items: flex-start;
217
- gap: 2px;
218
- padding: 6px 12px;
219
- border-radius: 8px;
220
- font-weight: 600;
221
- font-size: 13px;
222
- min-width: 56px;
223
- border: 1px solid transparent;
224
- background: var(--mp-badge-bg, #f1f5f9);
225
- color: var(--mp-badge-color, #0f172a);
226
- box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
227
- }
228
-
229
- .mpPill {
230
- border-radius: 999px;
231
- }
232
- .mpRounded {
233
- border-radius: 10px;
234
- }
235
-
236
- .mpCompact .mpItem {
237
- padding: 8px;
238
- gap: 8px;
239
- }
240
-
241
- .mpCompact .mpValue {
242
- font-size: var(--h3);
243
- }
244
-
245
- .mpCompact .mpIcon {
246
- width: 36px;
247
- height: 36px;
248
- border-radius: 8px;
249
- font-size: var(--text-paragraph);
250
- }
251
-
252
- .compactItemWrapper {
253
- display: block;
254
- box-sizing: border-box;
255
- }
256
-
257
- .mpHorizontal .mpList::-webkit-scrollbar {
258
- height: 8px;
259
- }
260
- .mpHorizontal .mpList::-webkit-scrollbar-thumb {
261
- background: rgba(15, 23, 42, 0.06);
262
- border-radius: 999px;
263
- }
264
-
265
- .mpSummaryRoot {
266
- padding: 8px;
267
- }
268
-
269
- .mpSummaryInner {
270
- background: transparent;
271
- padding: 10px;
272
- border-radius: 12px;
273
- width: 100%;
274
- box-sizing: border-box;
275
- }
276
-
277
- .mpSummaryGrid {
278
- display: grid;
279
- grid-template-columns: repeat(4, 1fr);
280
- gap: 8px;
281
- align-items: stretch;
282
- }
283
-
284
- .mpSummaryFlex {
285
- display: flex;
286
- gap: 8px;
287
- align-items: stretch;
288
- width: 100%;
289
- justify-content: space-between;
290
- }
291
-
292
- .mpSummaryCardWrapperHorizontal {
293
- flex: 1 1 0;
294
- min-width: 120px;
295
- box-sizing: border-box;
296
- }
297
-
298
- .mpSummaryCardWrapper {
299
- display: block;
300
- box-sizing: border-box;
301
- }
302
-
303
- .mpSummaryCardHorizontal,
304
- .mpSummaryCard {
305
- display: flex;
306
- flex-direction: column;
307
- align-items: center;
308
- justify-content: center;
309
- padding: 12px;
310
- border-radius: 10px;
311
- min-height: 88px;
312
- transition:
313
- transform 0.14s ease,
314
- box-shadow 0.14s ease;
315
- text-align: center;
316
- position: relative;
317
- width: 100%;
318
- box-sizing: border-box;
319
- }
320
-
321
- .mpSummaryValue {
322
- font-size: var(--h2);
323
- font-weight: var(--font-bold);
324
- margin-bottom: 6px;
325
- }
326
-
327
- .mpSummaryLabel {
328
- font-size: var(--text-small);
329
- font-weight: var(--font-medium);
330
- color: var(--mp-text-secondary);
331
- }
332
-
333
- .mpSummaryCard:hover {
334
- transform: translateY(-4px);
335
- box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
336
- }
337
-
338
- .mpSummaryBadge {
339
- position: absolute;
340
- top: 8px;
341
- right: 8px;
342
- padding: 4px 6px;
343
- border-radius: 8px;
344
- font-size: var(--text-small);
345
- font-weight: var(--font-bold);
346
- display: inline-flex;
347
- align-items: center;
348
- justify-content: center;
349
- border: none;
350
- background: transparent;
351
- color: var(--mp-text-secondary);
352
- box-shadow: none;
353
- line-height: 1;
354
- white-space: nowrap;
355
- }
356
-
357
- .mpSummaryBadgeSub {
358
- font-size: var(--text-small);
359
- font-weight: var(--font-medium);
360
- margin-left: 6px;
361
- opacity: 0.9;
362
- color: var(--mp-text-secondary);
363
- }
364
-
365
- .mpEmpty {
366
- color: var(--mp-text-secondary);
367
- text-align: center;
368
- padding: 12px;
369
- font-size: var(--text-paragraph);
370
- }
371
-
372
- .mpSummaryVertical {
373
- display: flex;
374
- flex-direction: column;
375
- gap: 12px;
376
- align-items: stretch;
377
- width: 100%;
378
- }
379
-
380
- .mpIconSquare {
381
- width: 56px;
382
- height: 56px;
383
- display: flex;
384
- align-items: center;
385
- justify-content: center;
386
- border-radius: 12px;
387
- flex-shrink: 0;
388
- box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
389
- font-weight: 700;
390
- }
391
-
392
- .mpIconSquare svg {
393
- display: block;
394
- width: 20px;
395
- height: 20px;
396
- }
397
-
398
- .mpImageCard {
399
- display: flex;
400
- align-items: center;
401
- justify-content: space-between;
402
- padding: 14px;
403
- border-radius: 12px;
404
- min-height: 88px;
405
- box-sizing: border-box;
406
- background: transparent;
407
- border: 1px solid transparent;
408
- box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
409
- }
410
-
411
- .mpImageCardText {
412
- display: flex;
413
- flex-direction: column;
414
- gap: 6px;
415
- }
416
-
417
- .mpImageCardLabel {
418
- font-size: 13px;
419
- font-weight: 700;
420
- color: #475569;
421
- }
422
-
423
- .mpImageCardValue {
424
- font-size: 26px;
425
- font-weight: 900;
426
- color: #0f172a;
427
- line-height: 1;
428
- }
429
-
430
- .mpImageCardIcon {
431
- display: flex;
432
- align-items: center;
433
- justify-content: center;
434
- width: 48px;
435
- height: 48px;
436
- border-radius: 10px;
437
- background: rgba(124, 58, 237, 0.12);
438
- border: 1px solid rgba(124, 58, 237, 0.12);
439
- box-shadow: none;
440
- }
441
-
442
- .mpImageCardIcon svg {
443
- display: block;
444
- width: 18px;
445
- height: 18px;
446
- }
447
-
448
- @media (max-width: 1024px) {
449
- .mpHorizontal .mpItem {
450
- min-width: 220px;
451
- max-width: 320px;
452
- }
453
- .mpSummaryGrid {
454
- grid-template-columns: repeat(2, 1fr);
455
- }
456
- }
457
-
458
- @media (max-width: 780px) {
459
- .mpSummaryGrid {
460
- grid-template-columns: repeat(2, 1fr);
461
- }
462
- }
463
-
464
- @media (max-width: 600px) {
465
- .mpRoot {
466
- padding: 8px;
467
- border-radius: 8px;
468
- }
469
-
470
- .mpHeader {
471
- flex-direction: column;
472
- gap: 6px;
473
- padding: 2px 4px;
474
- margin-bottom: 6px;
475
- }
476
-
477
- .mpHorizontal .mpList,
478
- .mpList {
479
- flex-direction: column;
480
- gap: 8px;
481
- overflow-x: visible;
482
- padding-bottom: 0;
483
- scroll-snap-type: none;
484
- }
485
-
486
- .mpItem {
487
- min-width: 0;
488
- max-width: none;
489
- width: 100%;
490
- flex: 0 0 auto;
491
- padding: 8px;
492
- font-size: 14px;
493
- }
494
-
495
- .mpIcon,
496
- .mpIconSquare {
497
- width: 32px;
498
- height: 32px;
499
- border-radius: 7px;
500
- font-size: 16px;
501
- }
502
-
503
- .mpSummaryInner {
504
- padding: 4px;
505
- }
506
-
507
- .mpSummaryCardHorizontal,
508
- .mpSummaryCard {
509
- min-height: 64px;
510
- padding: 8px;
511
- font-size: 13px;
512
- }
513
-
514
- .mpSummaryValue {
515
- font-size: 16px;
516
- font-weight: 700;
517
- }
518
-
519
- .mpSummaryLabel {
520
- font-size: 11px;
521
- }
522
-
523
- .mpSummaryFlex {
524
- flex-direction: row;
525
- overflow-x: auto;
526
- gap: 8px;
527
- padding-bottom: 6px;
528
- -webkit-overflow-scrolling: touch;
529
- }
530
-
531
- .mpSummaryGrid {
532
- grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
533
- gap: 8px;
534
- }
535
-
536
- .mpSummaryCardWrapperHorizontal {
537
- min-width: 96px;
538
- flex: 0 0 96px;
539
- }
540
-
541
- .mpImageCard {
542
- padding: 10px;
543
- min-height: 72px;
544
- }
545
-
546
- .mpImageCardLabel {
547
- font-size: 12px;
548
- }
549
-
550
- .mpImageCardValue {
551
- font-size: 22px;
552
- }
553
-
554
- .mpImageCardIcon {
555
- width: 40px;
556
- height: 40px;
557
- }
558
-
559
- .mpImageCardIcon svg {
560
- width: 16px;
561
- height: 16px;
562
- }
563
- }
564
-
565
- @media (max-width: 480px) {
566
- .mpItem {
567
- flex-direction: column;
568
- align-items: stretch;
569
- gap: 8px;
570
- padding: 6px;
571
- font-size: 13px;
572
- }
573
-
574
- .mpRight {
575
- width: 100%;
576
- justify-content: space-between;
577
- flex-direction: row;
578
- gap: 4px;
579
- }
580
-
581
- .mpValue {
582
- font-size: 15px;
583
- text-align: left;
584
- }
585
-
586
- .mpIcon,
587
- .mpIconSquare {
588
- width: 28px;
589
- height: 28px;
590
- border-radius: 6px;
591
- }
592
-
593
- .mpSummaryGrid,
594
- .mpSummaryFlex {
595
- grid-template-columns: 1fr;
596
- flex-direction: column;
597
- gap: 6px;
598
- }
599
-
600
- .mpSummaryCardWrapperHorizontal {
601
- min-width: 100%;
602
- flex: 0 0 auto;
603
- max-width: 100%;
604
- }
605
-
606
- .mpBadge,
607
- .mpBadgeSmall {
608
- min-width: 48px;
609
- font-size: 12px;
610
- padding: 4px 8px;
611
- border-radius: 7px;
612
- }
613
-
614
- .mpImageCard {
615
- flex-direction: column;
616
- align-items: flex-start;
617
- gap: 10px;
618
- padding: 8px;
619
- }
620
-
621
- .mpImageCardIcon {
622
- align-self: flex-end;
623
- }
624
- }
625
-
626
- @media (max-width: 600px) {
627
- .mpList {
628
- overflow-x: auto;
629
- -webkit-overflow-scrolling: touch;
630
- padding-bottom: 2px;
631
- }
632
- .mpItem {
633
- min-width: 180px;
634
- max-width: 95vw;
635
- }
636
- }
1
+ .mpRoot {
2
+ --mp-radius: 12px;
3
+ --mp-transition: 200ms cubic-bezier(0.2, 0.9, 0.2, 1);
4
+ --mp-gap: 12px;
5
+ --mp-padding: 16px;
6
+
7
+ background: var(--mp-bg-primary);
8
+ border-radius: var(--mp-radius);
9
+ padding: var(--mp-padding);
10
+ box-shadow: var(--mp-shadow-sm);
11
+ transition:
12
+ box-shadow var(--mp-transition),
13
+ transform var(--mp-transition);
14
+ border: 1px solid var(--mp-border);
15
+
16
+ width: 100%;
17
+ max-width: none;
18
+ flex: 1 1 auto;
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ .mpHeader {
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: space-between;
26
+ gap: 10px;
27
+ padding: 4px 8px;
28
+ margin-bottom: 10px;
29
+ }
30
+
31
+ .mpTitle {
32
+ font-weight: var(--font-bold);
33
+ }
34
+
35
+ .mpList {
36
+ display: flex;
37
+ flex-direction: column;
38
+ gap: var(--mp-gap);
39
+ }
40
+
41
+ .mpVertical .mpList {
42
+ flex-direction: column;
43
+ gap: var(--mp-gap);
44
+ }
45
+
46
+ .mpHorizontal .mpList {
47
+ flex-direction: row;
48
+ gap: 14px;
49
+ overflow-x: auto;
50
+ padding-bottom: 8px;
51
+ scroll-snap-type: x mandatory;
52
+ flex-wrap: nowrap;
53
+ }
54
+
55
+ .mpItem {
56
+ display: flex;
57
+ align-items: center;
58
+ justify-content: space-between;
59
+ gap: 12px;
60
+ padding: 12px;
61
+ border-radius: 10px;
62
+ transition:
63
+ transform var(--mp-transition),
64
+ box-shadow var(--mp-transition),
65
+ background-color var(--mp-transition),
66
+ border-color var(--mp-transition);
67
+ border: 1px solid rgba(15, 23, 42, 0.03);
68
+ position: relative;
69
+ min-height: 64px;
70
+ box-sizing: border-box;
71
+ font-size: var(--text-paragraph);
72
+ font-weight: var(--font-normal);
73
+ }
74
+
75
+ .mpHorizontal .mpItem {
76
+ scroll-snap-align: start;
77
+ min-width: 240px;
78
+ max-width: 360px;
79
+ flex: 0 0 auto;
80
+ }
81
+
82
+ .mpItem[type='button'],
83
+ .mpItem[role='button'],
84
+ .mpItem button {
85
+ all: unset;
86
+ display: flex;
87
+ align-items: center;
88
+ justify-content: space-between;
89
+ gap: 12px;
90
+ width: 100%;
91
+ cursor: pointer;
92
+ text-align: left;
93
+ }
94
+
95
+ .mpClickable {
96
+ cursor: pointer;
97
+ }
98
+
99
+ .mpClickable:hover {
100
+ transform: translateY(-4px);
101
+ box-shadow: var(--mp-shadow-md);
102
+ background: var(--mp-bg-secondary);
103
+ }
104
+
105
+ .mpClickable:active {
106
+ transform: translateY(-1px);
107
+ }
108
+
109
+ .mpClickable:focus-visible,
110
+ .mpItem:focus-visible {
111
+ outline: none;
112
+ box-shadow: 0 0 0 4px var(--mp-accent-soft);
113
+ border-color: var(--mp-accent);
114
+ z-index: 2;
115
+ }
116
+
117
+ .mpLeft {
118
+ display: flex;
119
+ align-items: center;
120
+ gap: 12px;
121
+ min-width: 0;
122
+ flex: 1;
123
+ }
124
+
125
+ .mpIcon {
126
+ width: 44px;
127
+ height: 44px;
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ border-radius: 10px;
132
+ background: var(--mp-accent-soft);
133
+ color: var(--mp-accent);
134
+ font-weight: var(--font-bold);
135
+ flex-shrink: 0;
136
+ box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
137
+ font-size: var(--text-paragraph);
138
+ }
139
+
140
+ .mpMeta {
141
+ min-width: 0;
142
+ overflow: hidden;
143
+ }
144
+
145
+ .mpLabel {
146
+ font-size: var(--text-paragraph);
147
+ font-weight: var(--font-bold);
148
+ color: var(--mp-text-primary);
149
+ white-space: nowrap;
150
+ overflow: hidden;
151
+ text-overflow: ellipsis;
152
+ }
153
+
154
+ .mpDate {
155
+ font-size: var(--text-small);
156
+ color: var(--mp-text-secondary);
157
+ margin-top: 4px;
158
+ }
159
+
160
+ .mpRight {
161
+ display: flex;
162
+ align-items: center;
163
+ gap: 12px;
164
+ min-width: 0;
165
+ justify-content: flex-end;
166
+ }
167
+
168
+ .mpValue {
169
+ font-size: var(--h2);
170
+ font-weight: var(--font-bold);
171
+ min-width: 56px;
172
+ text-align: right;
173
+ line-height: 1;
174
+ }
175
+
176
+ .mpHint {
177
+ font-size: var(--text-small);
178
+ }
179
+
180
+ .mpBadge {
181
+ display: flex;
182
+ flex-direction: column;
183
+ align-items: center;
184
+ justify-content: center;
185
+ padding: 6px 10px;
186
+ border-radius: 10px;
187
+ border: none;
188
+ min-width: 74px;
189
+ font-weight: var(--font-bold);
190
+ font-size: var(--text-small);
191
+ flex-shrink: 0;
192
+ text-align: center;
193
+ background: transparent;
194
+ color: var(--mp-text-secondary);
195
+ box-shadow: none;
196
+ background-clip: padding-box;
197
+ }
198
+
199
+ .mpBadgeTop {
200
+ font-size: var(--text-paragraph);
201
+ font-weight: var(--font-bold);
202
+ line-height: 1;
203
+ color: inherit;
204
+ }
205
+
206
+ .mpBadgeSub {
207
+ font-size: var(--text-small);
208
+ font-weight: var(--font-medium);
209
+ margin-top: 2px;
210
+ color: var(--mp-text-secondary);
211
+ }
212
+
213
+ .mpBadgeSmall {
214
+ display: inline-flex;
215
+ flex-direction: column;
216
+ align-items: flex-start;
217
+ gap: 2px;
218
+ padding: 6px 12px;
219
+ border-radius: 8px;
220
+ font-weight: 600;
221
+ font-size: 13px;
222
+ min-width: 56px;
223
+ border: 1px solid transparent;
224
+ background: var(--mp-badge-bg, #f1f5f9);
225
+ color: var(--mp-badge-color, #0f172a);
226
+ box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
227
+ }
228
+
229
+ .mpPill {
230
+ border-radius: 999px;
231
+ }
232
+ .mpRounded {
233
+ border-radius: 10px;
234
+ }
235
+
236
+ .mpCompact .mpItem {
237
+ padding: 8px;
238
+ gap: 8px;
239
+ }
240
+
241
+ .mpCompact .mpValue {
242
+ font-size: var(--h3);
243
+ }
244
+
245
+ .mpCompact .mpIcon {
246
+ width: 36px;
247
+ height: 36px;
248
+ border-radius: 8px;
249
+ font-size: var(--text-paragraph);
250
+ }
251
+
252
+ .compactItemWrapper {
253
+ display: block;
254
+ box-sizing: border-box;
255
+ }
256
+
257
+ .mpHorizontal .mpList::-webkit-scrollbar {
258
+ height: 8px;
259
+ }
260
+ .mpHorizontal .mpList::-webkit-scrollbar-thumb {
261
+ background: rgba(15, 23, 42, 0.06);
262
+ border-radius: 999px;
263
+ }
264
+
265
+ .mpSummaryRoot {
266
+ padding: 8px;
267
+ }
268
+
269
+ .mpSummaryInner {
270
+ background: transparent;
271
+ padding: 10px;
272
+ border-radius: 12px;
273
+ width: 100%;
274
+ box-sizing: border-box;
275
+ }
276
+
277
+ .mpSummaryGrid {
278
+ display: grid;
279
+ grid-template-columns: repeat(4, 1fr);
280
+ gap: 8px;
281
+ align-items: stretch;
282
+ }
283
+
284
+ .mpSummaryFlex {
285
+ display: flex;
286
+ gap: 8px;
287
+ align-items: stretch;
288
+ width: 100%;
289
+ justify-content: space-between;
290
+ }
291
+
292
+ .mpSummaryCardWrapperHorizontal {
293
+ flex: 1 1 0;
294
+ min-width: 120px;
295
+ box-sizing: border-box;
296
+ }
297
+
298
+ .mpSummaryCardWrapper {
299
+ display: block;
300
+ box-sizing: border-box;
301
+ }
302
+
303
+ .mpSummaryCardHorizontal,
304
+ .mpSummaryCard {
305
+ display: flex;
306
+ flex-direction: column;
307
+ align-items: center;
308
+ justify-content: center;
309
+ padding: 12px;
310
+ border-radius: 10px;
311
+ min-height: 88px;
312
+ transition:
313
+ transform 0.14s ease,
314
+ box-shadow 0.14s ease;
315
+ text-align: center;
316
+ position: relative;
317
+ width: 100%;
318
+ box-sizing: border-box;
319
+ }
320
+
321
+ .mpSummaryValue {
322
+ font-size: var(--h2);
323
+ font-weight: var(--font-bold);
324
+ margin-bottom: 6px;
325
+ }
326
+
327
+ .mpSummaryLabel {
328
+ font-size: var(--text-small);
329
+ font-weight: var(--font-medium);
330
+ color: var(--mp-text-secondary);
331
+ }
332
+
333
+ .mpSummaryCard:hover {
334
+ transform: translateY(-4px);
335
+ box-shadow: 0 12px 30px rgba(16, 24, 40, 0.06);
336
+ }
337
+
338
+ .mpSummaryBadge {
339
+ position: absolute;
340
+ top: 8px;
341
+ right: 8px;
342
+ padding: 4px 6px;
343
+ border-radius: 8px;
344
+ font-size: var(--text-small);
345
+ font-weight: var(--font-bold);
346
+ display: inline-flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ border: none;
350
+ background: transparent;
351
+ color: var(--mp-text-secondary);
352
+ box-shadow: none;
353
+ line-height: 1;
354
+ white-space: nowrap;
355
+ }
356
+
357
+ .mpSummaryBadgeSub {
358
+ font-size: var(--text-small);
359
+ font-weight: var(--font-medium);
360
+ margin-left: 6px;
361
+ opacity: 0.9;
362
+ color: var(--mp-text-secondary);
363
+ }
364
+
365
+ .mpEmpty {
366
+ color: var(--mp-text-secondary);
367
+ text-align: center;
368
+ padding: 12px;
369
+ font-size: var(--text-paragraph);
370
+ }
371
+
372
+ .mpSummaryVertical {
373
+ display: flex;
374
+ flex-direction: column;
375
+ gap: 12px;
376
+ align-items: stretch;
377
+ width: 100%;
378
+ }
379
+
380
+ .mpIconSquare {
381
+ width: 56px;
382
+ height: 56px;
383
+ display: flex;
384
+ align-items: center;
385
+ justify-content: center;
386
+ border-radius: 12px;
387
+ flex-shrink: 0;
388
+ box-shadow: 0 6px 12px rgba(15, 23, 42, 0.06);
389
+ font-weight: 700;
390
+ }
391
+
392
+ .mpIconSquare svg {
393
+ display: block;
394
+ width: 20px;
395
+ height: 20px;
396
+ }
397
+
398
+ .mpImageCard {
399
+ display: flex;
400
+ align-items: center;
401
+ justify-content: space-between;
402
+ padding: 14px;
403
+ border-radius: 12px;
404
+ min-height: 88px;
405
+ box-sizing: border-box;
406
+ background: transparent;
407
+ border: 1px solid transparent;
408
+ box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
409
+ }
410
+
411
+ .mpImageCardText {
412
+ display: flex;
413
+ flex-direction: column;
414
+ gap: 6px;
415
+ }
416
+
417
+ .mpImageCardLabel {
418
+ font-size: 13px;
419
+ font-weight: 700;
420
+ color: #475569;
421
+ }
422
+
423
+ .mpImageCardValue {
424
+ font-size: 26px;
425
+ font-weight: 900;
426
+ color: #0f172a;
427
+ line-height: 1;
428
+ }
429
+
430
+ .mpImageCardIcon {
431
+ display: flex;
432
+ align-items: center;
433
+ justify-content: center;
434
+ width: 48px;
435
+ height: 48px;
436
+ border-radius: 10px;
437
+ background: rgba(124, 58, 237, 0.12);
438
+ border: 1px solid rgba(124, 58, 237, 0.12);
439
+ box-shadow: none;
440
+ }
441
+
442
+ .mpImageCardIcon svg {
443
+ display: block;
444
+ width: 18px;
445
+ height: 18px;
446
+ }
447
+
448
+ @media (max-width: 1024px) {
449
+ .mpHorizontal .mpItem {
450
+ min-width: 220px;
451
+ max-width: 320px;
452
+ }
453
+ .mpSummaryGrid {
454
+ grid-template-columns: repeat(2, 1fr);
455
+ }
456
+ }
457
+
458
+ @media (max-width: 780px) {
459
+ .mpSummaryGrid {
460
+ grid-template-columns: repeat(2, 1fr);
461
+ }
462
+ }
463
+
464
+ @media (max-width: 600px) {
465
+ .mpRoot {
466
+ padding: 8px;
467
+ border-radius: 8px;
468
+ }
469
+
470
+ .mpHeader {
471
+ flex-direction: column;
472
+ gap: 6px;
473
+ padding: 2px 4px;
474
+ margin-bottom: 6px;
475
+ }
476
+
477
+ .mpHorizontal .mpList,
478
+ .mpList {
479
+ flex-direction: column;
480
+ gap: 8px;
481
+ overflow-x: visible;
482
+ padding-bottom: 0;
483
+ scroll-snap-type: none;
484
+ }
485
+
486
+ .mpItem {
487
+ min-width: 0;
488
+ max-width: none;
489
+ width: 100%;
490
+ flex: 0 0 auto;
491
+ padding: 8px;
492
+ font-size: 14px;
493
+ }
494
+
495
+ .mpIcon,
496
+ .mpIconSquare {
497
+ width: 32px;
498
+ height: 32px;
499
+ border-radius: 7px;
500
+ font-size: 16px;
501
+ }
502
+
503
+ .mpSummaryInner {
504
+ padding: 4px;
505
+ }
506
+
507
+ .mpSummaryCardHorizontal,
508
+ .mpSummaryCard {
509
+ min-height: 64px;
510
+ padding: 8px;
511
+ font-size: 13px;
512
+ }
513
+
514
+ .mpSummaryValue {
515
+ font-size: 16px;
516
+ font-weight: 700;
517
+ }
518
+
519
+ .mpSummaryLabel {
520
+ font-size: 11px;
521
+ }
522
+
523
+ .mpSummaryFlex {
524
+ flex-direction: row;
525
+ overflow-x: auto;
526
+ gap: 8px;
527
+ padding-bottom: 6px;
528
+ -webkit-overflow-scrolling: touch;
529
+ }
530
+
531
+ .mpSummaryGrid {
532
+ grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
533
+ gap: 8px;
534
+ }
535
+
536
+ .mpSummaryCardWrapperHorizontal {
537
+ min-width: 96px;
538
+ flex: 0 0 96px;
539
+ }
540
+
541
+ .mpImageCard {
542
+ padding: 10px;
543
+ min-height: 72px;
544
+ }
545
+
546
+ .mpImageCardLabel {
547
+ font-size: 12px;
548
+ }
549
+
550
+ .mpImageCardValue {
551
+ font-size: 22px;
552
+ }
553
+
554
+ .mpImageCardIcon {
555
+ width: 40px;
556
+ height: 40px;
557
+ }
558
+
559
+ .mpImageCardIcon svg {
560
+ width: 16px;
561
+ height: 16px;
562
+ }
563
+ }
564
+
565
+ @media (max-width: 480px) {
566
+ .mpItem {
567
+ flex-direction: column;
568
+ align-items: stretch;
569
+ gap: 8px;
570
+ padding: 6px;
571
+ font-size: 13px;
572
+ }
573
+
574
+ .mpRight {
575
+ width: 100%;
576
+ justify-content: space-between;
577
+ flex-direction: row;
578
+ gap: 4px;
579
+ }
580
+
581
+ .mpValue {
582
+ font-size: 15px;
583
+ text-align: left;
584
+ }
585
+
586
+ .mpIcon,
587
+ .mpIconSquare {
588
+ width: 28px;
589
+ height: 28px;
590
+ border-radius: 6px;
591
+ }
592
+
593
+ .mpSummaryGrid,
594
+ .mpSummaryFlex {
595
+ grid-template-columns: 1fr;
596
+ flex-direction: column;
597
+ gap: 6px;
598
+ }
599
+
600
+ .mpSummaryCardWrapperHorizontal {
601
+ min-width: 100%;
602
+ flex: 0 0 auto;
603
+ max-width: 100%;
604
+ }
605
+
606
+ .mpBadge,
607
+ .mpBadgeSmall {
608
+ min-width: 48px;
609
+ font-size: 12px;
610
+ padding: 4px 8px;
611
+ border-radius: 7px;
612
+ }
613
+
614
+ .mpImageCard {
615
+ flex-direction: column;
616
+ align-items: flex-start;
617
+ gap: 10px;
618
+ padding: 8px;
619
+ }
620
+
621
+ .mpImageCardIcon {
622
+ align-self: flex-end;
623
+ }
624
+ }
625
+
626
+ @media (max-width: 600px) {
627
+ .mpList {
628
+ overflow-x: auto;
629
+ -webkit-overflow-scrolling: touch;
630
+ padding-bottom: 2px;
631
+ }
632
+ .mpItem {
633
+ min-width: 180px;
634
+ max-width: 95vw;
635
+ }
636
+ }
637
+
638
+ .mpCompact .mpBadge {
639
+ padding: 10px 14px;
640
+ border-radius: 12px;
641
+ width: 120px !important;
642
+ height: 52px !important;
643
+ font-size: 14px;
644
+ font-weight: 800;
645
+ flex-shrink: 0;
646
+ display: flex;
647
+ flex-direction: column;
648
+ align-items: center;
649
+ justify-content: center;
650
+ text-align: center;
651
+ box-sizing: border-box;
652
+ }
653
+
654
+ .mpCompact .mpBadgeTop {
655
+ font-size: 14px;
656
+ font-weight: 800;
657
+ line-height: 1.2;
658
+ width: 100%;
659
+ overflow: hidden;
660
+ text-overflow: ellipsis;
661
+ white-space: nowrap;
662
+ }
663
+
664
+ .mpCompact .mpBadgeSub {
665
+ font-size: 13px;
666
+ font-weight: 700;
667
+ margin-top: 4px;
668
+ width: 100%;
669
+ overflow: hidden;
670
+ text-overflow: ellipsis;
671
+ white-space: nowrap;
672
+ }
673
+
674
+ @media (max-width: 480px) {
675
+ .mpCompact .mpBadge {
676
+ width: 110px !important;
677
+ height: 48px !important;
678
+ padding: 8px 12px;
679
+ }
680
+
681
+ .mpCompact .mpBadgeTop {
682
+ font-size: 13px;
683
+ }
684
+
685
+ .mpCompact .mpBadgeSub {
686
+ font-size: 12px;
687
+ }
688
+ }