@pimolu/web-styles 0.1.0-beta.1 → 0.1.0-beta.11

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 (72) hide show
  1. package/README.fr.md +109 -14
  2. package/README.md +125 -30
  3. package/dist/accordion.css +73 -1
  4. package/dist/alert.css +1 -1
  5. package/dist/api-table.css +6 -5
  6. package/dist/app-shell.css +87 -22
  7. package/dist/arc-carousel.css +261 -0
  8. package/dist/avatar.css +37 -0
  9. package/dist/badge.css +37 -0
  10. package/dist/button.css +8 -2
  11. package/dist/card.css +37 -0
  12. package/dist/carousel.css +25 -4
  13. package/dist/cascader.css +1 -1
  14. package/dist/chart.css +99 -2
  15. package/dist/chat.css +1 -0
  16. package/dist/checkbox.css +1 -1
  17. package/dist/circular-progress.css +23 -1
  18. package/dist/code-block.css +2 -2
  19. package/dist/color-picker.css +1 -1
  20. package/dist/combobox.css +1 -1
  21. package/dist/command.css +37 -0
  22. package/dist/coverflow-carousel.css +251 -0
  23. package/dist/currency-input.css +1 -1
  24. package/dist/dashboard-layout.css +92 -28
  25. package/dist/date-picker.css +1 -1
  26. package/dist/docs-layout.css +9 -0
  27. package/dist/form-field.css +50 -0
  28. package/dist/form.css +48 -0
  29. package/dist/gantt.css +19 -1
  30. package/dist/input-group.css +15 -3
  31. package/dist/input.css +14 -2
  32. package/dist/kanban.css +27 -2
  33. package/dist/layered.css +23822 -0
  34. package/dist/masked-input.css +1 -1
  35. package/dist/mentions.css +1 -1
  36. package/dist/modal.css +186 -0
  37. package/dist/motion.css +36 -0
  38. package/dist/multi-carousel.css +260 -0
  39. package/dist/multi-select.css +1 -1
  40. package/dist/navbar.css +343 -0
  41. package/dist/number-input.css +1 -1
  42. package/dist/page-header.css +29 -1
  43. package/dist/password-input.css +14 -2
  44. package/dist/peek-carousel.css +250 -0
  45. package/dist/phone-input.css +1 -1
  46. package/dist/pimolu.css +1990 -415
  47. package/dist/pimolu.min.css +1 -1
  48. package/dist/pin-input.css +1 -1
  49. package/dist/popover.css +4 -0
  50. package/dist/radio.css +1 -1
  51. package/dist/range-slider.css +8 -1
  52. package/dist/scheduler.css +19 -2
  53. package/dist/segmented-control.css +70 -3
  54. package/dist/select.css +3 -1
  55. package/dist/sidebar.css +116 -6
  56. package/dist/slider.css +71 -1
  57. package/dist/stack-carousel.css +250 -0
  58. package/dist/switch.css +1 -1
  59. package/dist/table.css +37 -0
  60. package/dist/tabs.css +129 -40
  61. package/dist/tags-input.css +9 -2
  62. package/dist/textarea.css +1 -1
  63. package/dist/themes.css +129 -0
  64. package/dist/thumbnail-carousel.css +244 -0
  65. package/dist/time-picker.css +1 -1
  66. package/dist/toast.css +225 -8
  67. package/dist/tokens.css +902 -0
  68. package/dist/toolbar.css +37 -0
  69. package/dist/tree-select.css +1 -1
  70. package/dist/tree-table.css +10 -0
  71. package/package.json +20 -8
  72. package/LICENSE +0 -21
package/dist/pimolu.css CHANGED
@@ -2,6 +2,25 @@
2
2
  :root {
3
3
  --pimolu-color-white: #FFFFFF;
4
4
  --pimolu-color-black: #000000;
5
+ --pimolu-color-ink-25: #FAF8F5;
6
+ --pimolu-color-ink-50: #F6F2EF;
7
+ --pimolu-color-ink-100: #F4F0EC;
8
+ --pimolu-color-ink-200: #E7E0D9;
9
+ --pimolu-color-ink-400: #B8B0BD;
10
+ --pimolu-color-ink-500: #8E8490;
11
+ --pimolu-color-ink-550: #857D90;
12
+ --pimolu-color-ink-600: #706B73;
13
+ --pimolu-color-ink-700: #39343E;
14
+ --pimolu-color-ink-800: #26232D;
15
+ --pimolu-color-ink-900: #24212A;
16
+ --pimolu-color-ink-950: #18161D;
17
+ --pimolu-color-iris-50: #F0EBF9;
18
+ --pimolu-color-iris-300: #B9A5FA;
19
+ --pimolu-color-iris-400: #A48BEF;
20
+ --pimolu-color-iris-600: #6746C7;
21
+ --pimolu-color-iris-700: #5637B0;
22
+ --pimolu-color-iris-900: #30283E;
23
+ --pimolu-color-iris-950: #21172D;
5
24
  --pimolu-color-indigo-400: #818CF8;
6
25
  --pimolu-color-indigo-500: #6366F1;
7
26
  --pimolu-color-indigo-600: #4F46E5;
@@ -11,6 +30,7 @@
11
30
  --pimolu-color-slate-200: #E2E8F0;
12
31
  --pimolu-color-slate-400: #94A3B8;
13
32
  --pimolu-color-slate-500: #64748B;
33
+ --pimolu-color-slate-550: #607087;
14
34
  --pimolu-color-slate-800: #1E293B;
15
35
  --pimolu-color-slate-900: #0F172A;
16
36
  --pimolu-color-slate-950: #020617;
@@ -60,7 +80,7 @@
60
80
  --pimolu-surface: var(--pimolu-color-slate-50);
61
81
  --pimolu-surface-foreground: var(--pimolu-color-slate-900);
62
82
  --pimolu-muted: var(--pimolu-color-slate-100);
63
- --pimolu-muted-foreground: var(--pimolu-color-slate-500);
83
+ --pimolu-muted-foreground: var(--pimolu-color-slate-550);
64
84
  --pimolu-border: var(--pimolu-color-slate-200);
65
85
  --pimolu-primary: var(--pimolu-color-indigo-600);
66
86
  --pimolu-primary-hover: var(--pimolu-color-indigo-700);
@@ -75,6 +95,9 @@
75
95
  --pimolu-danger: var(--pimolu-color-red-600);
76
96
  --pimolu-danger-hover: var(--pimolu-color-red-700);
77
97
  --pimolu-danger-foreground: var(--pimolu-color-white);
98
+ --pimolu-control-border: var(--pimolu-color-slate-500);
99
+ --pimolu-primary-soft: var(--pimolu-color-slate-100);
100
+ --pimolu-primary-soft-foreground: var(--pimolu-color-indigo-600);
78
101
  }
79
102
  [data-pimolu-theme=dark] {
80
103
  color-scheme: dark;
@@ -98,11 +121,14 @@
98
121
  --pimolu-danger: var(--pimolu-color-red-400);
99
122
  --pimolu-danger-hover: var(--pimolu-color-red-500);
100
123
  --pimolu-danger-foreground: var(--pimolu-color-slate-950);
124
+ --pimolu-control-border: var(--pimolu-color-slate-500);
125
+ --pimolu-primary-soft: var(--pimolu-color-slate-800);
126
+ --pimolu-primary-soft-foreground: var(--pimolu-color-indigo-400);
101
127
  }
102
128
 
103
129
  /* ../themes/style-base.css */
104
130
  :where([data-pimolu-style]) {
105
- --pimolu-outline-hover-border: var(--pimolu-border);
131
+ --pimolu-outline-hover-border: var(--pimolu-control-border, var(--pimolu-border));
106
132
  --pimolu-secondary: var(--pimolu-muted);
107
133
  --pimolu-secondary-hover: var(--pimolu-border);
108
134
  --pimolu-secondary-foreground: var(--pimolu-foreground);
@@ -116,6 +142,7 @@
116
142
  --pimolu-control-shadow: none;
117
143
  --pimolu-font-body: var(--pimolu-font-family-sans, system-ui, sans-serif);
118
144
  --pimolu-font-heading: inherit;
145
+ --pimolu-font-display: var(--pimolu-font-heading, inherit);
119
146
  --pimolu-font-mono:
120
147
  ui-monospace,
121
148
  SFMono-Regular,
@@ -124,6 +151,8 @@
124
151
  monospace;
125
152
  --pimolu-button-font-weight: 400;
126
153
  --pimolu-button-letter-spacing: normal;
154
+ --pimolu-interaction-duration: 150ms;
155
+ --pimolu-interaction-easing: ease-out;
127
156
  --pimolu-button-active-transform: none;
128
157
  --pimolu-button-active-shadow: none;
129
158
  --pimolu-glass-bg: color-mix( in srgb, var(--pimolu-background) 78%, transparent );
@@ -150,7 +179,7 @@
150
179
  --pimolu-surface: #F8FAFC;
151
180
  --pimolu-surface-foreground: #0F172A;
152
181
  --pimolu-muted: #F1F5F9;
153
- --pimolu-muted-foreground: #64748B;
182
+ --pimolu-muted-foreground: #607087;
154
183
  --pimolu-border: #E2E8F0;
155
184
  --pimolu-primary: #4F46E5;
156
185
  --pimolu-primary-hover: #4338CA;
@@ -165,6 +194,9 @@
165
194
  --pimolu-danger: #DC2626;
166
195
  --pimolu-danger-hover: #B91C1C;
167
196
  --pimolu-danger-foreground: #FFFFFF;
197
+ --pimolu-control-border: #64748B;
198
+ --pimolu-primary-soft: #F1F5F9;
199
+ --pimolu-primary-soft-foreground: #4F46E5;
168
200
  }
169
201
  [data-pimolu-theme=dark][data-pimolu-style=default] {
170
202
  --pimolu-background: #020617;
@@ -187,6 +219,9 @@
187
219
  --pimolu-danger: #F87171;
188
220
  --pimolu-danger-hover: #EF4444;
189
221
  --pimolu-danger-foreground: #020617;
222
+ --pimolu-control-border: #64748B;
223
+ --pimolu-primary-soft: #1E293B;
224
+ --pimolu-primary-soft-foreground: #818CF8;
190
225
  }
191
226
  [data-pimolu-theme=system][data-pimolu-style=default] {
192
227
  --pimolu-background: #FFFFFF;
@@ -194,7 +229,7 @@
194
229
  --pimolu-surface: #F8FAFC;
195
230
  --pimolu-surface-foreground: #0F172A;
196
231
  --pimolu-muted: #F1F5F9;
197
- --pimolu-muted-foreground: #64748B;
232
+ --pimolu-muted-foreground: #607087;
198
233
  --pimolu-border: #E2E8F0;
199
234
  --pimolu-primary: #4F46E5;
200
235
  --pimolu-primary-hover: #4338CA;
@@ -209,6 +244,9 @@
209
244
  --pimolu-danger: #DC2626;
210
245
  --pimolu-danger-hover: #B91C1C;
211
246
  --pimolu-danger-foreground: #FFFFFF;
247
+ --pimolu-control-border: #64748B;
248
+ --pimolu-primary-soft: #F1F5F9;
249
+ --pimolu-primary-soft-foreground: #4F46E5;
212
250
  }
213
251
  @media (prefers-color-scheme: dark) {
214
252
  [data-pimolu-theme=system][data-pimolu-style=default] {
@@ -232,6 +270,9 @@
232
270
  --pimolu-danger: #F87171;
233
271
  --pimolu-danger-hover: #EF4444;
234
272
  --pimolu-danger-foreground: #020617;
273
+ --pimolu-control-border: #64748B;
274
+ --pimolu-primary-soft: #1E293B;
275
+ --pimolu-primary-soft-foreground: #818CF8;
235
276
  }
236
277
  }
237
278
 
@@ -254,6 +295,8 @@
254
295
  --pimolu-surface-foreground: #171B2B;
255
296
  --pimolu-accent: #0C9E8B;
256
297
  --pimolu-accent-foreground: #FFFFFF;
298
+ --pimolu-primary-soft: #F1F3F9;
299
+ --pimolu-primary-soft-foreground: #5B55E7;
257
300
  }
258
301
  [data-pimolu-theme=dark][data-pimolu-style=adaptive] {
259
302
  --pimolu-primary: #7C77F0;
@@ -273,6 +316,8 @@
273
316
  --pimolu-surface-foreground: #E8EAF2;
274
317
  --pimolu-accent: #2BC4AF;
275
318
  --pimolu-accent-foreground: #062A25;
319
+ --pimolu-primary-soft: #1C2130;
320
+ --pimolu-primary-soft-foreground: #7C77F0;
276
321
  }
277
322
  @media (prefers-color-scheme: dark) {
278
323
  [data-pimolu-theme=system][data-pimolu-style=adaptive] {
@@ -293,6 +338,8 @@
293
338
  --pimolu-surface-foreground: #E8EAF2;
294
339
  --pimolu-accent: #2BC4AF;
295
340
  --pimolu-accent-foreground: #062A25;
341
+ --pimolu-primary-soft: #1C2130;
342
+ --pimolu-primary-soft-foreground: #7C77F0;
296
343
  }
297
344
  }
298
345
  [data-pimolu-style=cartoon] {
@@ -310,6 +357,9 @@
310
357
  --pimolu-muted-foreground: #525252;
311
358
  --pimolu-border: #171717;
312
359
  --pimolu-focus-ring: #2563eb;
360
+ --pimolu-control-border: #171717;
361
+ --pimolu-primary-soft: #fff0c2;
362
+ --pimolu-primary-soft-foreground: #ffbd2e;
313
363
  }
314
364
  [data-pimolu-theme=dark][data-pimolu-style=cartoon] {
315
365
  --pimolu-primary: #ffbd2e;
@@ -326,6 +376,9 @@
326
376
  --pimolu-muted-foreground: #d4d4d4;
327
377
  --pimolu-border: #ffffff;
328
378
  --pimolu-focus-ring: #ffbd2e;
379
+ --pimolu-control-border: #ffffff;
380
+ --pimolu-primary-soft: #323232;
381
+ --pimolu-primary-soft-foreground: #ffbd2e;
329
382
  }
330
383
  @media (prefers-color-scheme: dark) {
331
384
  [data-pimolu-theme=system][data-pimolu-style=cartoon] {
@@ -343,6 +396,9 @@
343
396
  --pimolu-muted-foreground: #d4d4d4;
344
397
  --pimolu-border: #ffffff;
345
398
  --pimolu-focus-ring: #ffbd2e;
399
+ --pimolu-control-border: #ffffff;
400
+ --pimolu-primary-soft: #323232;
401
+ --pimolu-primary-soft-foreground: #ffbd2e;
346
402
  }
347
403
  }
348
404
  [data-pimolu-style=glass] {
@@ -363,6 +419,9 @@
363
419
  --pimolu-secondary: rgba(255, 255, 255, 0.65);
364
420
  --pimolu-secondary-hover: rgba(255, 255, 255, 0.88);
365
421
  --pimolu-secondary-foreground: #17213b;
422
+ --pimolu-control-border: rgba(255, 255, 255, 0.75);
423
+ --pimolu-primary-soft: rgba(255, 255, 255, 0.65);
424
+ --pimolu-primary-soft-foreground: #6265ef;
366
425
  }
367
426
  [data-pimolu-theme=dark][data-pimolu-style=glass] {
368
427
  --pimolu-primary: #818cf8;
@@ -382,6 +441,9 @@
382
441
  --pimolu-secondary: rgba(51, 65, 85, 0.65);
383
442
  --pimolu-secondary-hover: rgba(71, 85, 105, 0.85);
384
443
  --pimolu-secondary-foreground: #f8fafc;
444
+ --pimolu-control-border: rgba(255, 255, 255, 0.18);
445
+ --pimolu-primary-soft: rgba(51, 65, 85, 0.65);
446
+ --pimolu-primary-soft-foreground: #818cf8;
385
447
  }
386
448
  @media (prefers-color-scheme: dark) {
387
449
  [data-pimolu-theme=system][data-pimolu-style=glass] {
@@ -402,6 +464,9 @@
402
464
  --pimolu-secondary: rgba(51, 65, 85, 0.65);
403
465
  --pimolu-secondary-hover: rgba(71, 85, 105, 0.85);
404
466
  --pimolu-secondary-foreground: #f8fafc;
467
+ --pimolu-control-border: rgba(255, 255, 255, 0.18);
468
+ --pimolu-primary-soft: rgba(51, 65, 85, 0.65);
469
+ --pimolu-primary-soft-foreground: #818cf8;
405
470
  }
406
471
  }
407
472
  [data-pimolu-style=luxury] {
@@ -421,6 +486,9 @@
421
486
  --pimolu-focus-ring: #926a35;
422
487
  --pimolu-luxury-gold: #b38a4a;
423
488
  --pimolu-luxury-divider: #d8c9b3;
489
+ --pimolu-control-border: #d8c9b3;
490
+ --pimolu-primary-soft: #f1eae0;
491
+ --pimolu-primary-soft-foreground: #24211e;
424
492
  }
425
493
  [data-pimolu-theme=dark][data-pimolu-style=luxury] {
426
494
  --pimolu-background: #151311;
@@ -439,6 +507,9 @@
439
507
  --pimolu-focus-ring: #e8cf9b;
440
508
  --pimolu-luxury-gold: #e8cf9b;
441
509
  --pimolu-luxury-divider: #675743;
510
+ --pimolu-control-border: #675743;
511
+ --pimolu-primary-soft: #2d2822;
512
+ --pimolu-primary-soft-foreground: #e8cf9b;
442
513
  }
443
514
  @media (prefers-color-scheme: dark) {
444
515
  [data-pimolu-theme=system][data-pimolu-style=luxury] {
@@ -458,6 +529,9 @@
458
529
  --pimolu-focus-ring: #e8cf9b;
459
530
  --pimolu-luxury-gold: #e8cf9b;
460
531
  --pimolu-luxury-divider: #675743;
532
+ --pimolu-control-border: #675743;
533
+ --pimolu-primary-soft: #2d2822;
534
+ --pimolu-primary-soft-foreground: #e8cf9b;
461
535
  }
462
536
  }
463
537
  [data-pimolu-style=monochrome] {
@@ -475,6 +549,9 @@
475
549
  --pimolu-focus-ring: #171717;
476
550
  --pimolu-surface: #ffffff;
477
551
  --pimolu-surface-foreground: #171717;
552
+ --pimolu-control-border: #737373;
553
+ --pimolu-primary-soft: #f5f5f5;
554
+ --pimolu-primary-soft-foreground: #171717;
478
555
  }
479
556
  [data-pimolu-theme=dark][data-pimolu-style=monochrome] {
480
557
  --pimolu-primary: #fafafa;
@@ -491,6 +568,9 @@
491
568
  --pimolu-focus-ring: #fafafa;
492
569
  --pimolu-surface: #262626;
493
570
  --pimolu-surface-foreground: #fafafa;
571
+ --pimolu-control-border: #737373;
572
+ --pimolu-primary-soft: #262626;
573
+ --pimolu-primary-soft-foreground: #fafafa;
494
574
  }
495
575
  @media (prefers-color-scheme: dark) {
496
576
  [data-pimolu-theme=system][data-pimolu-style=monochrome] {
@@ -508,6 +588,9 @@
508
588
  --pimolu-focus-ring: #fafafa;
509
589
  --pimolu-surface: #262626;
510
590
  --pimolu-surface-foreground: #fafafa;
591
+ --pimolu-control-border: #737373;
592
+ --pimolu-primary-soft: #262626;
593
+ --pimolu-primary-soft-foreground: #fafafa;
511
594
  }
512
595
  }
513
596
  [data-pimolu-style=neo-brutalism] {
@@ -525,6 +608,9 @@
525
608
  --pimolu-muted-foreground: #525252;
526
609
  --pimolu-border: #171717;
527
610
  --pimolu-focus-ring: #4338ca;
611
+ --pimolu-control-border: #171717;
612
+ --pimolu-primary-soft: #f2eddf;
613
+ --pimolu-primary-soft-foreground: #dfff57;
528
614
  }
529
615
  [data-pimolu-theme=dark][data-pimolu-style=neo-brutalism] {
530
616
  --pimolu-background: #171717;
@@ -541,6 +627,9 @@
541
627
  --pimolu-muted-foreground: #d4d4d4;
542
628
  --pimolu-border: #fafafa;
543
629
  --pimolu-focus-ring: #dfff57;
630
+ --pimolu-control-border: #fafafa;
631
+ --pimolu-primary-soft: #333333;
632
+ --pimolu-primary-soft-foreground: #dfff57;
544
633
  }
545
634
  @media (prefers-color-scheme: dark) {
546
635
  [data-pimolu-theme=system][data-pimolu-style=neo-brutalism] {
@@ -558,6 +647,9 @@
558
647
  --pimolu-muted-foreground: #d4d4d4;
559
648
  --pimolu-border: #fafafa;
560
649
  --pimolu-focus-ring: #dfff57;
650
+ --pimolu-control-border: #fafafa;
651
+ --pimolu-primary-soft: #333333;
652
+ --pimolu-primary-soft-foreground: #dfff57;
561
653
  }
562
654
  }
563
655
 
@@ -596,15 +688,39 @@
596
688
  --pimolu-control-border-width: 1px;
597
689
  --pimolu-solid-border-color: transparent;
598
690
  --pimolu-shadow-raised: none;
599
- --pimolu-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.12);
600
- --pimolu-button-font-weight: 400;
691
+ --pimolu-shadow-sm: 0 2px 8px rgba(38, 35, 45, 0.08);
692
+ --pimolu-button-font-weight: 500;
693
+ --pimolu-radius-sm: 6px;
694
+ --pimolu-radius-md: 10px;
695
+ --pimolu-radius-lg: 16px;
696
+ --pimolu-font-body:
697
+ "DM Sans",
698
+ system-ui,
699
+ -apple-system,
700
+ BlinkMacSystemFont,
701
+ "Segoe UI",
702
+ sans-serif;
703
+ --pimolu-font-heading: inherit;
704
+ --pimolu-font-mono:
705
+ "IBM Plex Mono",
706
+ ui-monospace,
707
+ SFMono-Regular,
708
+ Menlo,
709
+ monospace;
710
+ --pimolu-font-display:
711
+ "Newsreader",
712
+ Georgia,
713
+ "Times New Roman",
714
+ serif;
715
+ --pimolu-interaction-duration: 120ms;
716
+ --pimolu-interaction-easing: cubic-bezier(.2, 0, 0, 1);
601
717
  }
602
718
  [data-pimolu-theme=dark][data-pimolu-style=default] {
603
- --pimolu-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
719
+ --pimolu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
604
720
  }
605
721
  @media (prefers-color-scheme: dark) {
606
722
  [data-pimolu-theme=system][data-pimolu-style=default] {
607
- --pimolu-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
723
+ --pimolu-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.24);
608
724
  }
609
725
  }
610
726
  [data-pimolu-style=glass] {
@@ -783,6 +899,8 @@
783
899
 
784
900
  /* ../themes/style-presets.css */
785
901
 
902
+ /* src/tokens.css */
903
+
786
904
  /* src/button.css */
787
905
  .pimolu-button {
788
906
  display: inline-flex;
@@ -794,7 +912,7 @@
794
912
  font-weight: var(--pimolu-button-font-weight, 400);
795
913
  border-radius: var(--pimolu-radius-md);
796
914
  cursor: pointer;
797
- transition: background-color 150ms, opacity 150ms;
915
+ transition: background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out), opacity var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
798
916
  letter-spacing: var(--pimolu-button-letter-spacing, normal);
799
917
  }
800
918
  .pimolu-button--full-width {
@@ -893,7 +1011,7 @@
893
1011
  .pimolu-button--outline {
894
1012
  background: transparent;
895
1013
  color: var(--pimolu-foreground);
896
- border-color: var(--pimolu-border);
1014
+ border-color: var(--pimolu-control-border, var(--pimolu-border));
897
1015
  }
898
1016
  .pimolu-button--outline:hover:not(:disabled) {
899
1017
  background: var(--pimolu-muted);
@@ -987,6 +1105,12 @@
987
1105
  align-items: center;
988
1106
  justify-content: center;
989
1107
  }
1108
+ .pimolu-button__loading-indicator {
1109
+ display: inline-flex;
1110
+ align-items: center;
1111
+ justify-content: center;
1112
+ flex-shrink: 0;
1113
+ }
990
1114
  .pimolu-button__spinner {
991
1115
  width: 1em;
992
1116
  height: 1em;
@@ -1649,172 +1773,6 @@
1649
1773
  }
1650
1774
  }
1651
1775
 
1652
- /* src/spinner.css */
1653
- .pimolu-spinner {
1654
- --pimolu-spinner-size: 20px;
1655
- --pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
1656
- --pimolu-spinner-color: currentColor;
1657
- display: inline-flex;
1658
- align-items: center;
1659
- justify-content: center;
1660
- flex: 0 0 auto;
1661
- box-sizing: border-box;
1662
- min-width: 0;
1663
- color: var(--pimolu-spinner-color);
1664
- line-height: 1;
1665
- vertical-align: middle;
1666
- user-select: none;
1667
- }
1668
- .pimolu-spinner--xs {
1669
- --pimolu-spinner-size: 12px;
1670
- }
1671
- .pimolu-spinner--sm {
1672
- --pimolu-spinner-size: 16px;
1673
- }
1674
- .pimolu-spinner--md {
1675
- --pimolu-spinner-size: 20px;
1676
- }
1677
- .pimolu-spinner--lg {
1678
- --pimolu-spinner-size: 24px;
1679
- }
1680
- .pimolu-spinner--xl {
1681
- --pimolu-spinner-size: 32px;
1682
- }
1683
- .pimolu-spinner--inherit {
1684
- --pimolu-spinner-color: currentColor;
1685
- }
1686
- .pimolu-spinner--neutral {
1687
- --pimolu-spinner-color: var(--pimolu-foreground, currentColor);
1688
- }
1689
- .pimolu-spinner--primary {
1690
- --pimolu-spinner-color: var(--pimolu-primary, currentColor);
1691
- }
1692
- .pimolu-spinner--secondary {
1693
- --pimolu-spinner-color: var(--pimolu-secondary, currentColor);
1694
- }
1695
- .pimolu-spinner--success {
1696
- --pimolu-spinner-color: var(--pimolu-success, currentColor);
1697
- }
1698
- .pimolu-spinner--warning {
1699
- --pimolu-spinner-color: var(--pimolu-warning, currentColor);
1700
- }
1701
- .pimolu-spinner--danger {
1702
- --pimolu-spinner-color: var(--pimolu-danger, currentColor);
1703
- }
1704
- .pimolu-spinner__visual {
1705
- display: inline-flex;
1706
- align-items: center;
1707
- justify-content: center;
1708
- flex: 0 0 auto;
1709
- width: var(--pimolu-spinner-size);
1710
- height: var(--pimolu-spinner-size);
1711
- }
1712
- .pimolu-spinner__svg {
1713
- display: block;
1714
- width: 100%;
1715
- height: 100%;
1716
- overflow: visible;
1717
- transform-origin: center;
1718
- animation: pimolu-spinner-rotate 1s linear infinite;
1719
- }
1720
- .pimolu-spinner__track,
1721
- .pimolu-spinner__indicator {
1722
- fill: none;
1723
- stroke: currentColor;
1724
- stroke-width: 2.5;
1725
- }
1726
- .pimolu-spinner__track {
1727
- opacity: 0.18;
1728
- }
1729
- .pimolu-spinner__indicator {
1730
- stroke-linecap: round;
1731
- }
1732
- .pimolu-spinner--circular .pimolu-spinner__indicator {
1733
- stroke-dasharray: 16 57;
1734
- }
1735
- .pimolu-spinner--arc .pimolu-spinner__indicator {
1736
- stroke-dasharray: 42 57;
1737
- }
1738
- .pimolu-spinner--arc .pimolu-spinner__track {
1739
- opacity: 0;
1740
- }
1741
- .pimolu-spinner--arc .pimolu-spinner__svg {
1742
- animation-duration: 1.3s;
1743
- }
1744
- @keyframes pimolu-spinner-rotate {
1745
- from {
1746
- transform: rotate(0deg);
1747
- }
1748
- to {
1749
- transform: rotate(360deg);
1750
- }
1751
- }
1752
- .pimolu-spinner--dots .pimolu-spinner__visual {
1753
- width: calc(var(--pimolu-spinner-size) * 1.5);
1754
- gap: calc(var(--pimolu-spinner-size) * 0.14);
1755
- }
1756
- .pimolu-spinner__dot {
1757
- display: block;
1758
- flex: 0 0 auto;
1759
- width: var(--pimolu-spinner-dot-size);
1760
- height: var(--pimolu-spinner-dot-size);
1761
- border-radius: 50%;
1762
- background: currentColor;
1763
- animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
1764
- }
1765
- .pimolu-spinner__dot:nth-child(1) {
1766
- animation-delay: -0.32s;
1767
- }
1768
- .pimolu-spinner__dot:nth-child(2) {
1769
- animation-delay: -0.16s;
1770
- }
1771
- .pimolu-spinner__dot:nth-child(3) {
1772
- animation-delay: 0s;
1773
- }
1774
- @keyframes pimolu-spinner-dot {
1775
- 0%, 80%, 100% {
1776
- opacity: 0.35;
1777
- transform: translateY(0);
1778
- }
1779
- 40% {
1780
- opacity: 1;
1781
- transform: translateY(-25%);
1782
- }
1783
- }
1784
- .pimolu-spinner__label {
1785
- position: absolute;
1786
- width: 1px;
1787
- height: 1px;
1788
- padding: 0;
1789
- margin: -1px;
1790
- overflow: hidden;
1791
- clip: rect(0, 0, 0, 0);
1792
- clip-path: inset(50%);
1793
- white-space: nowrap;
1794
- border: 0;
1795
- }
1796
- @media (prefers-reduced-motion: reduce) {
1797
- .pimolu-spinner__svg,
1798
- .pimolu-spinner__dot {
1799
- animation: none;
1800
- }
1801
- .pimolu-spinner__dot {
1802
- opacity: 1;
1803
- transform: none;
1804
- }
1805
- }
1806
- @media (forced-colors: active) {
1807
- .pimolu-spinner {
1808
- color: CanvasText;
1809
- }
1810
- .pimolu-spinner__track {
1811
- opacity: 0.4;
1812
- }
1813
- .pimolu-spinner__dot {
1814
- background: currentColor;
1815
- }
1816
- }
1817
-
1818
1776
  /* src/switch.css */
1819
1777
  .pimolu-switch {
1820
1778
  --pimolu-switch-track-width: 42px;
@@ -1906,7 +1864,7 @@
1906
1864
  width: var(--pimolu-switch-track-width);
1907
1865
  height: var(--pimolu-switch-track-height);
1908
1866
  background: var(--pimolu-muted);
1909
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
1867
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
1910
1868
  border-radius: var(--pimolu-radius-lg, 9999px);
1911
1869
  pointer-events: none;
1912
1870
  transition: background-color 180ms ease, border-color 180ms ease;
@@ -2093,7 +2051,7 @@
2093
2051
  box-sizing: border-box;
2094
2052
  background: var( --pimolu-surface, var(--pimolu-background) );
2095
2053
  color: var(--pimolu-checkbox-active-foreground);
2096
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
2054
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
2097
2055
  border-radius: var(--pimolu-radius-sm, 4px);
2098
2056
  pointer-events: none;
2099
2057
  transition:
@@ -2278,7 +2236,7 @@
2278
2236
  width: var(--pimolu-radio-size);
2279
2237
  height: var(--pimolu-radio-size);
2280
2238
  background: var( --pimolu-surface, var(--pimolu-background) );
2281
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
2239
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
2282
2240
  border-radius: 50%;
2283
2241
  pointer-events: none;
2284
2242
  transition: background-color 160ms ease, border-color 160ms ease;
@@ -2505,7 +2463,7 @@
2505
2463
  padding: var(--pimolu-textarea-padding-y) var(--pimolu-textarea-padding-x);
2506
2464
  background: var( --pimolu-surface, var(--pimolu-background) );
2507
2465
  color: var(--pimolu-foreground);
2508
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
2466
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
2509
2467
  border-radius: var(--pimolu-radius-md, 8px);
2510
2468
  font-family: inherit;
2511
2469
  font-size: var(--pimolu-textarea-font-size);
@@ -2723,7 +2681,7 @@
2723
2681
  appearance: none;
2724
2682
  background: var( --pimolu-surface, var(--pimolu-background) );
2725
2683
  color: var(--pimolu-foreground);
2726
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
2684
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
2727
2685
  border-radius: var(--pimolu-radius-md, 8px);
2728
2686
  font-family: inherit;
2729
2687
  font-size: var(--pimolu-select-font-size);
@@ -2880,7 +2838,9 @@
2880
2838
  pointer-events: none;
2881
2839
  }
2882
2840
  .pimolu-select__listbox {
2841
+ box-sizing: border-box;
2883
2842
  overflow-y: auto;
2843
+ scroll-padding-block: 4px;
2884
2844
  margin: 0;
2885
2845
  padding: 4px;
2886
2846
  border: 1px solid var(--pimolu-border);
@@ -3020,7 +2980,7 @@
3020
2980
  padding-inline-end: calc(var(--pimolu-combobox-padding-x) + 28px);
3021
2981
  background: var(--pimolu-combobox-surface);
3022
2982
  color: var(--pimolu-foreground);
3023
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
2983
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
3024
2984
  border-radius: var(--pimolu-radius-md, 8px);
3025
2985
  font-family: inherit;
3026
2986
  font-size: var(--pimolu-combobox-font-size);
@@ -3324,7 +3284,7 @@
3324
3284
  padding: var(--pimolu-multiselect-padding);
3325
3285
  background: var(--pimolu-multiselect-surface);
3326
3286
  color: var(--pimolu-foreground);
3327
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
3287
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
3328
3288
  border-radius: var(--pimolu-radius-md, 8px);
3329
3289
  cursor: text;
3330
3290
  transition:
@@ -3631,6 +3591,7 @@
3631
3591
 
3632
3592
  /* src/slider.css */
3633
3593
  .pimolu-slider {
3594
+ --pimolu-slider-direction: var(--pimolu-slider-inherited-direction, to right);
3634
3595
  --pimolu-slider-track-height: 6px;
3635
3596
  --pimolu-slider-thumb-size: 18px;
3636
3597
  --pimolu-slider-gap: 8px;
@@ -3645,6 +3606,12 @@
3645
3606
  font-family: var(--pimolu-font-body, inherit);
3646
3607
  color: var(--pimolu-foreground, currentColor);
3647
3608
  }
3609
+ [dir=rtl] {
3610
+ --pimolu-slider-inherited-direction: to left;
3611
+ }
3612
+ [dir=ltr] {
3613
+ --pimolu-slider-inherited-direction: to right;
3614
+ }
3648
3615
  .pimolu-slider--sm {
3649
3616
  --pimolu-slider-track-height: 4px;
3650
3617
  --pimolu-slider-thumb-size: 14px;
@@ -3702,7 +3669,7 @@
3702
3669
  border-radius: 9999px;
3703
3670
  background:
3704
3671
  linear-gradient(
3705
- to right,
3672
+ var(--pimolu-slider-direction, to right),
3706
3673
  var(--pimolu-slider-tone) 0,
3707
3674
  var(--pimolu-slider-tone) var(--pimolu-slider-progress, 0%),
3708
3675
  var(--pimolu-slider-track) var(--pimolu-slider-progress, 0%),
@@ -3792,9 +3759,36 @@
3792
3759
  background: ButtonFace;
3793
3760
  }
3794
3761
  }
3762
+ .pimolu-slider__control::-webkit-slider-thumb {
3763
+ transition: box-shadow 150ms ease-out;
3764
+ }
3765
+ .pimolu-slider__control::-moz-range-thumb {
3766
+ transition: box-shadow 150ms ease-out;
3767
+ }
3768
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-webkit-slider-thumb {
3769
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3770
+ }
3771
+ .pimolu-slider__control:not(:disabled):is(:hover, :focus-visible)::-moz-range-thumb {
3772
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--pimolu-slider-tone) 18%, transparent);
3773
+ }
3774
+ @media (prefers-reduced-motion: reduce) {
3775
+ .pimolu-slider__control::-webkit-slider-thumb {
3776
+ transition: none;
3777
+ }
3778
+ .pimolu-slider__control::-moz-range-thumb {
3779
+ transition: none;
3780
+ }
3781
+ }
3782
+ [data-pimolu-motion=off] .pimolu-slider__control::-webkit-slider-thumb {
3783
+ transition: none;
3784
+ }
3785
+ [data-pimolu-motion=off] .pimolu-slider__control::-moz-range-thumb {
3786
+ transition: none;
3787
+ }
3795
3788
 
3796
3789
  /* src/range-slider.css */
3797
3790
  .pimolu-range-slider {
3791
+ --pimolu-range-slider-direction: var(--pimolu-range-slider-inherited-direction, to right);
3798
3792
  --pimolu-range-slider-track-height: 6px;
3799
3793
  --pimolu-range-slider-thumb-size: 18px;
3800
3794
  --pimolu-range-slider-gap: 8px;
@@ -3808,6 +3802,12 @@
3808
3802
  font-family: var(--pimolu-font-body, inherit);
3809
3803
  color: var(--pimolu-foreground, currentColor);
3810
3804
  }
3805
+ [dir=rtl] {
3806
+ --pimolu-range-slider-inherited-direction: to left;
3807
+ }
3808
+ [dir=ltr] {
3809
+ --pimolu-range-slider-inherited-direction: to right;
3810
+ }
3811
3811
  .pimolu-range-slider--sm {
3812
3812
  --pimolu-range-slider-track-height: 4px;
3813
3813
  --pimolu-range-slider-thumb-size: 14px;
@@ -3863,7 +3863,7 @@
3863
3863
  pointer-events: none;
3864
3864
  background:
3865
3865
  linear-gradient(
3866
- to right,
3866
+ var(--pimolu-range-slider-direction, to right),
3867
3867
  var(--pimolu-range-slider-track) 0,
3868
3868
  var(--pimolu-range-slider-track) var(--pimolu-range-slider-start),
3869
3869
  var(--pimolu-range-slider-tone) var(--pimolu-range-slider-start),
@@ -4165,10 +4165,32 @@
4165
4165
  }
4166
4166
  .pimolu-circular-progress__value {
4167
4167
  position: absolute;
4168
- font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.26));
4168
+ font-size: max(0.625rem, calc(var(--pimolu-circular-progress-diameter) * 0.20));
4169
4169
  font-variant-numeric: tabular-nums;
4170
4170
  line-height: 1;
4171
4171
  color: var(--pimolu-muted-foreground, currentColor);
4172
+ max-width: 68%;
4173
+ overflow: hidden;
4174
+ text-overflow: ellipsis;
4175
+ white-space: nowrap;
4176
+ font-weight: 600;
4177
+ }
4178
+ .pimolu-circular-progress[data-empty=true] .pimolu-circular-progress__indicator {
4179
+ opacity: 0;
4180
+ }
4181
+ .pimolu-circular-progress--sm:has(.pimolu-circular-progress__value) {
4182
+ width: auto;
4183
+ gap: 8px;
4184
+ }
4185
+ .pimolu-circular-progress--sm .pimolu-circular-progress__svg {
4186
+ width: var(--pimolu-circular-progress-diameter);
4187
+ height: var(--pimolu-circular-progress-diameter);
4188
+ flex: none;
4189
+ }
4190
+ .pimolu-circular-progress--sm .pimolu-circular-progress__value {
4191
+ position: static;
4192
+ max-width: none;
4193
+ font-size: 0.75rem;
4172
4194
  }
4173
4195
  .pimolu-circular-progress--indeterminate .pimolu-circular-progress__svg {
4174
4196
  animation: pimolu-circular-progress-rotate 1.4s linear infinite;
@@ -4348,6 +4370,10 @@
4348
4370
  .pimolu-popover--match-width {
4349
4371
  min-width: 0;
4350
4372
  }
4373
+ .pimolu-popover[data-side=left],
4374
+ .pimolu-popover[data-side=right] {
4375
+ min-width: 0;
4376
+ }
4351
4377
  .pimolu-popover[data-side=top] {
4352
4378
  --pimolu-popover-shift-x: 0px;
4353
4379
  --pimolu-popover-shift-y: 6px;
@@ -4589,16 +4615,207 @@
4589
4615
  }
4590
4616
  }
4591
4617
 
4592
- /* src/tabs.css */
4593
- .pimolu-tabs {
4594
- --pimolu-tabs-height: 40px;
4595
- --pimolu-tabs-padding-x: 14px;
4596
- --pimolu-tabs-font-size: 0.875rem;
4618
+ /* src/modal.css */
4619
+ .pimolu-modal {
4620
+ position: fixed;
4621
+ inset: 0;
4622
+ z-index: 50;
4597
4623
  display: grid;
4598
- gap: var(--pimolu-spacing-4, 16px);
4599
- min-width: 0;
4600
- color: var(--pimolu-foreground);
4601
- font-family: var(--pimolu-font-body, inherit);
4624
+ place-items: center;
4625
+ box-sizing: border-box;
4626
+ padding: var( --pimolu-spacing-6, 24px );
4627
+ overflow: hidden;
4628
+ }
4629
+ .pimolu-modal__overlay {
4630
+ position: absolute;
4631
+ inset: 0;
4632
+ background: rgba(15, 23, 42, 0.55);
4633
+ }
4634
+ .pimolu-modal__content {
4635
+ --pimolu-modal-width: 32rem;
4636
+ position: relative;
4637
+ z-index: 1;
4638
+ box-sizing: border-box;
4639
+ width: min(100%, var(--pimolu-modal-width));
4640
+ max-height: calc(100vh - 48px);
4641
+ max-height: calc(100dvh - 48px);
4642
+ padding: var(--pimolu-spacing-6, 24px);
4643
+ overflow-y: auto;
4644
+ overscroll-behavior: contain;
4645
+ background: var( --pimolu-surface, var(--pimolu-background) );
4646
+ color: var( --pimolu-surface-foreground, var(--pimolu-foreground) );
4647
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
4648
+ border-radius: var(--pimolu-radius-lg, 12px);
4649
+ box-shadow: var(--pimolu-shadow-raised, none);
4650
+ -webkit-backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
4651
+ backdrop-filter: blur(var(--pimolu-glass-blur, 18px));
4652
+ font-family: var(--pimolu-font-body, inherit);
4653
+ font-size: 0.875rem;
4654
+ line-height: 1.5;
4655
+ outline: none;
4656
+ }
4657
+ .pimolu-modal__content--sm {
4658
+ --pimolu-modal-width: 24rem;
4659
+ }
4660
+ .pimolu-modal__content--md {
4661
+ --pimolu-modal-width: 32rem;
4662
+ }
4663
+ .pimolu-modal__content--lg {
4664
+ --pimolu-modal-width: 48rem;
4665
+ }
4666
+ .pimolu-modal__content--xl {
4667
+ --pimolu-modal-width: 64rem;
4668
+ }
4669
+ .pimolu-modal__header {
4670
+ display: grid;
4671
+ gap: 6px;
4672
+ min-width: 0;
4673
+ margin-block-end: var( --pimolu-spacing-4, 16px );
4674
+ }
4675
+ .pimolu-modal__content[data-close-button=true] .pimolu-modal__header {
4676
+ padding-inline-end: var( --pimolu-spacing-8, 32px );
4677
+ }
4678
+ .pimolu-modal__title {
4679
+ margin: 0;
4680
+ color: inherit;
4681
+ font-family: var( --pimolu-font-heading, inherit );
4682
+ font-size: 1.25rem;
4683
+ font-weight: 600;
4684
+ line-height: 1.3;
4685
+ overflow-wrap: anywhere;
4686
+ }
4687
+ .pimolu-modal__description {
4688
+ margin: 0;
4689
+ color: var(--pimolu-muted-foreground);
4690
+ font-size: 0.875rem;
4691
+ line-height: 1.5;
4692
+ overflow-wrap: anywhere;
4693
+ }
4694
+ .pimolu-modal__footer {
4695
+ display: flex;
4696
+ align-items: center;
4697
+ justify-content: flex-end;
4698
+ flex-wrap: wrap;
4699
+ gap: var(--pimolu-spacing-3, 12px);
4700
+ margin-block-start: var( --pimolu-spacing-6, 24px );
4701
+ }
4702
+ .pimolu-modal__close {
4703
+ position: absolute;
4704
+ inset-block-start: 12px;
4705
+ inset-inline-end: 12px;
4706
+ display: inline-grid;
4707
+ place-items: center;
4708
+ box-sizing: border-box;
4709
+ width: 32px;
4710
+ height: 32px;
4711
+ padding: 0;
4712
+ border: 0;
4713
+ border-radius: var(--pimolu-radius-sm, 4px);
4714
+ background: transparent;
4715
+ color: var(--pimolu-muted-foreground);
4716
+ line-height: 0;
4717
+ cursor: pointer;
4718
+ }
4719
+ .pimolu-modal__close:hover {
4720
+ background: var(--pimolu-muted);
4721
+ color: var(--pimolu-foreground);
4722
+ }
4723
+ .pimolu-modal__close:focus-visible {
4724
+ outline: 2px solid var(--pimolu-focus-ring, currentColor);
4725
+ outline-offset: 2px;
4726
+ }
4727
+ .pimolu-modal[data-state=open] .pimolu-modal__overlay {
4728
+ animation: pimolu-modal-overlay-in 150ms ease-out;
4729
+ }
4730
+ .pimolu-modal[data-state=closing] .pimolu-modal__overlay {
4731
+ animation: pimolu-modal-overlay-out 150ms ease-in forwards;
4732
+ }
4733
+ .pimolu-modal[data-state=open] .pimolu-modal__content {
4734
+ animation: pimolu-modal-content-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
4735
+ }
4736
+ .pimolu-modal[data-state=closing] .pimolu-modal__content {
4737
+ animation: pimolu-modal-content-out 150ms ease-in forwards;
4738
+ }
4739
+ @keyframes pimolu-modal-overlay-in {
4740
+ from {
4741
+ opacity: 0;
4742
+ }
4743
+ to {
4744
+ opacity: 1;
4745
+ }
4746
+ }
4747
+ @keyframes pimolu-modal-overlay-out {
4748
+ from {
4749
+ opacity: 1;
4750
+ }
4751
+ to {
4752
+ opacity: 0;
4753
+ }
4754
+ }
4755
+ @keyframes pimolu-modal-content-in {
4756
+ from {
4757
+ opacity: 0;
4758
+ transform: translateY(8px) scale(0.97);
4759
+ }
4760
+ to {
4761
+ opacity: 1;
4762
+ transform: translateY(0) scale(1);
4763
+ }
4764
+ }
4765
+ @keyframes pimolu-modal-content-out {
4766
+ from {
4767
+ opacity: 1;
4768
+ transform: scale(1);
4769
+ }
4770
+ to {
4771
+ opacity: 0;
4772
+ transform: scale(0.97);
4773
+ }
4774
+ }
4775
+ @media (max-width: 600px) {
4776
+ .pimolu-modal {
4777
+ padding: var(--pimolu-spacing-4, 16px);
4778
+ }
4779
+ .pimolu-modal__content {
4780
+ max-height: calc(100vh - 32px);
4781
+ max-height: calc(100dvh - 32px);
4782
+ padding: var(--pimolu-spacing-4, 16px);
4783
+ }
4784
+ }
4785
+ @media (prefers-reduced-motion: reduce) {
4786
+ .pimolu-modal[data-state=open] .pimolu-modal__overlay,
4787
+ .pimolu-modal[data-state=closing] .pimolu-modal__overlay,
4788
+ .pimolu-modal[data-state=open] .pimolu-modal__content,
4789
+ .pimolu-modal[data-state=closing] .pimolu-modal__content {
4790
+ animation: none;
4791
+ }
4792
+ }
4793
+ @media (forced-colors: active) {
4794
+ .pimolu-modal__content {
4795
+ border: 1px solid CanvasText;
4796
+ background: Canvas;
4797
+ color: CanvasText;
4798
+ box-shadow: none;
4799
+ }
4800
+ .pimolu-modal__close:focus-visible {
4801
+ outline-color: Highlight;
4802
+ }
4803
+ }
4804
+
4805
+ /* src/tabs.css */
4806
+ :root {
4807
+ --pimolu-tabs-indicator-duration: 240ms;
4808
+ --pimolu-tabs-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
4809
+ }
4810
+ .pimolu-tabs {
4811
+ --pimolu-tabs-height: 40px;
4812
+ --pimolu-tabs-padding-x: 14px;
4813
+ --pimolu-tabs-font-size: 0.875rem;
4814
+ display: grid;
4815
+ gap: var(--pimolu-spacing-4, 16px);
4816
+ min-width: 0;
4817
+ color: var(--pimolu-foreground);
4818
+ font-family: var(--pimolu-font-body, inherit);
4602
4819
  }
4603
4820
  .pimolu-tabs--vertical {
4604
4821
  grid-template-columns: max-content minmax(0, 1fr);
@@ -4613,7 +4830,7 @@
4613
4830
  min-width: 0;
4614
4831
  max-width: 100%;
4615
4832
  }
4616
- .pimolu-tabs--vertical .pimolu-tabs__list-wrap {
4833
+ .pimolu-tabs--vertical > .pimolu-tabs__list-wrap {
4617
4834
  grid-column: 1;
4618
4835
  grid-row: 1;
4619
4836
  }
@@ -4643,7 +4860,7 @@
4643
4860
  min-width: 0;
4644
4861
  max-width: 100%;
4645
4862
  }
4646
- .pimolu-tabs--vertical .pimolu-tabs__list {
4863
+ .pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4647
4864
  display: flex;
4648
4865
  flex: 1 1 auto;
4649
4866
  flex-direction: column;
@@ -4655,18 +4872,26 @@
4655
4872
  flex: 1 1 auto;
4656
4873
  flex-wrap: nowrap;
4657
4874
  overflow-x: auto;
4875
+ overflow-y: hidden;
4658
4876
  overscroll-behavior-inline: contain;
4659
4877
  }
4660
4878
  .pimolu-tabs__list[data-scrollable=true] .pimolu-tabs__trigger {
4661
4879
  flex: 0 0 auto;
4662
4880
  }
4663
- .pimolu-tabs__list[data-scrollable=true] {
4881
+ .pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true]) {
4664
4882
  scrollbar-width: none;
4665
4883
  -ms-overflow-style: none;
4666
4884
  }
4667
- .pimolu-tabs__list[data-scrollable=true]::-webkit-scrollbar {
4885
+ .pimolu-tabs__list[data-scrollable=true]:not([data-show-scrollbar=true])::-webkit-scrollbar {
4668
4886
  display: none;
4669
4887
  }
4888
+ .pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true] {
4889
+ scrollbar-width: thin;
4890
+ }
4891
+ .pimolu-tabs__list[data-scrollable=true][data-show-scrollbar=true]::-webkit-scrollbar {
4892
+ display: block;
4893
+ height: 8px;
4894
+ }
4670
4895
  .pimolu-tabs__scroll {
4671
4896
  display: inline-grid;
4672
4897
  flex: none;
@@ -4721,7 +4946,7 @@
4721
4946
  opacity: 0.5;
4722
4947
  cursor: not-allowed;
4723
4948
  }
4724
- .pimolu-tabs--vertical .pimolu-tabs__trigger {
4949
+ .pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4725
4950
  justify-content: flex-start;
4726
4951
  }
4727
4952
  .pimolu-tabs__panel {
@@ -4746,64 +4971,64 @@
4746
4971
  outline-offset: 2px;
4747
4972
  border-radius: var(--pimolu-radius-md, 8px);
4748
4973
  }
4749
- .pimolu-tabs--vertical .pimolu-tabs__panel {
4974
+ .pimolu-tabs--vertical > .pimolu-tabs__panel {
4750
4975
  grid-column: 2;
4751
4976
  grid-row: 1;
4752
4977
  }
4753
- .pimolu-tabs--line .pimolu-tabs__list {
4978
+ .pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4754
4979
  gap: 8px;
4755
4980
  border-block-end: 1px solid var(--pimolu-border);
4756
4981
  }
4757
- .pimolu-tabs--line .pimolu-tabs__trigger {
4982
+ .pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4758
4983
  border-radius: 0;
4759
4984
  padding-inline: 4px;
4760
4985
  }
4761
- .pimolu-tabs--line .pimolu-tabs__trigger:hover:not([data-state=active]) {
4986
+ .pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
4762
4987
  background: transparent;
4763
4988
  color: var(--pimolu-foreground);
4764
4989
  }
4765
- .pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
4990
+ .pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4766
4991
  color: var(--pimolu-primary);
4767
4992
  box-shadow: inset 0 -2px 0 var(--pimolu-primary);
4768
4993
  }
4769
- .pimolu-tabs--line .pimolu-tabs__trigger[data-state=active]:hover {
4994
+ .pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active]:hover {
4770
4995
  color: var(--pimolu-primary);
4771
4996
  }
4772
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__list {
4997
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4773
4998
  border-block-end: 0;
4774
4999
  border-inline-end: 1px solid var(--pimolu-border);
4775
5000
  }
4776
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger {
5001
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4777
5002
  padding-inline: var(--pimolu-spacing-3, 12px);
4778
5003
  }
4779
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
5004
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4780
5005
  box-shadow: inset -2px 0 0 var(--pimolu-primary);
4781
5006
  }
4782
- .pimolu-tabs--solid .pimolu-tabs__list {
5007
+ .pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4783
5008
  padding: 4px;
4784
5009
  border-radius: var(--pimolu-radius-md, 8px);
4785
5010
  background: var(--pimolu-muted);
4786
5011
  }
4787
- .pimolu-tabs--solid .pimolu-tabs__trigger:hover:not([data-state=active]) {
5012
+ .pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
4788
5013
  color: var(--pimolu-foreground);
4789
5014
  background: color-mix(in srgb, var(--pimolu-foreground) 8%, transparent);
4790
5015
  }
4791
- .pimolu-tabs--solid .pimolu-tabs__trigger[data-state=active] {
5016
+ .pimolu-tabs--solid > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4792
5017
  color: var(--pimolu-primary-foreground);
4793
5018
  background: var(--pimolu-primary);
4794
5019
  }
4795
- .pimolu-tabs--soft .pimolu-tabs__list {
5020
+ .pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4796
5021
  gap: 6px;
4797
5022
  }
4798
- .pimolu-tabs--soft .pimolu-tabs__trigger:hover:not([data-state=active]) {
5023
+ .pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
4799
5024
  color: var(--pimolu-foreground);
4800
5025
  background: var(--pimolu-muted);
4801
5026
  }
4802
- .pimolu-tabs--soft .pimolu-tabs__trigger[data-state=active] {
5027
+ .pimolu-tabs--soft > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4803
5028
  color: var(--pimolu-primary);
4804
5029
  background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
4805
5030
  }
4806
- .pimolu-tabs--segmented .pimolu-tabs__list {
5031
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4807
5032
  flex: 1 1 auto;
4808
5033
  width: 100%;
4809
5034
  gap: 0;
@@ -4812,34 +5037,34 @@
4812
5037
  border-radius: 999px;
4813
5038
  background: var(--pimolu-muted);
4814
5039
  }
4815
- .pimolu-tabs--segmented .pimolu-tabs__trigger {
5040
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4816
5041
  position: relative;
4817
5042
  flex: 1 1 0;
4818
- min-width: 0;
5043
+ min-width: max-content;
4819
5044
  padding-inline: var(--pimolu-spacing-3, 12px);
4820
5045
  border-radius: 999px;
4821
5046
  color: var(--pimolu-muted-foreground);
4822
5047
  background: transparent;
4823
5048
  }
4824
- .pimolu-tabs--segmented .pimolu-tabs__trigger:hover:not([data-state=active]) {
5049
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger:hover:not([data-state=active]) {
4825
5050
  color: var(--pimolu-foreground);
4826
5051
  background: color-mix(in srgb, var(--pimolu-foreground) 6%, transparent);
4827
5052
  }
4828
- .pimolu-tabs--segmented .pimolu-tabs__trigger[data-state=active] {
5053
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4829
5054
  color: var(--pimolu-foreground);
4830
5055
  background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
4831
5056
  box-shadow: var( --pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12) );
4832
5057
  }
4833
- .pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__list {
5058
+ .pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4834
5059
  width: auto;
4835
5060
  min-width: 12rem;
4836
5061
  border-radius: var(--pimolu-radius-lg, 12px);
4837
5062
  }
4838
- .pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__trigger {
5063
+ .pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4839
5064
  flex: 0 0 auto;
4840
5065
  justify-content: flex-start;
4841
5066
  }
4842
- .pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
5067
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
4843
5068
  content: "";
4844
5069
  position: absolute;
4845
5070
  inset-block: 25%;
@@ -4847,22 +5072,22 @@
4847
5072
  width: 1px;
4848
5073
  background: var(--pimolu-border);
4849
5074
  }
4850
- .pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active]::before,
4851
- .pimolu-tabs--segmented .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active] + .pimolu-tabs__trigger::before {
5075
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active]::before,
5076
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger[data-state=active] + .pimolu-tabs__trigger::before {
4852
5077
  opacity: 0;
4853
5078
  }
4854
- .pimolu-tabs--segmented.pimolu-tabs--vertical .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
5079
+ .pimolu-tabs--segmented.pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list[data-dividers=true] .pimolu-tabs__trigger + .pimolu-tabs__trigger::before {
4855
5080
  inset-block-start: 0;
4856
5081
  inset-inline: 25%;
4857
5082
  width: auto;
4858
5083
  height: 1px;
4859
5084
  }
4860
- .pimolu-tabs--segmented .pimolu-tabs__scroll {
5085
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__scroll {
4861
5086
  border-color: transparent;
4862
5087
  background: var(--pimolu-muted);
4863
5088
  color: var(--pimolu-muted-foreground);
4864
5089
  }
4865
- .pimolu-tabs--segmented .pimolu-tabs__scroll:hover {
5090
+ .pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__scroll:hover {
4866
5091
  background: var(--pimolu-muted);
4867
5092
  color: var(--pimolu-foreground);
4868
5093
  }
@@ -4885,29 +5110,103 @@
4885
5110
  .pimolu-tabs--vertical {
4886
5111
  grid-template-columns: minmax(0, 1fr);
4887
5112
  }
4888
- .pimolu-tabs--vertical .pimolu-tabs__list {
5113
+ .pimolu-tabs--vertical > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4889
5114
  min-width: 0;
4890
5115
  border-inline-end: 0;
4891
5116
  }
4892
- .pimolu-tabs--vertical .pimolu-tabs__panel {
5117
+ .pimolu-tabs--vertical > .pimolu-tabs__panel {
4893
5118
  grid-column: 1;
4894
5119
  grid-row: 2;
4895
5120
  }
4896
- .pimolu-tabs--vertical.pimolu-tabs--segmented .pimolu-tabs__list {
5121
+ .pimolu-tabs--vertical.pimolu-tabs--segmented > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4897
5122
  width: 100%;
4898
5123
  }
4899
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__list {
5124
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > .pimolu-tabs__list {
4900
5125
  border-inline-start: 1px solid var(--pimolu-border);
4901
5126
  }
4902
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger {
5127
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger {
4903
5128
  padding-inline: var( --pimolu-spacing-3, 12px );
4904
5129
  }
4905
- .pimolu-tabs--vertical.pimolu-tabs--line .pimolu-tabs__trigger[data-state=active] {
5130
+ .pimolu-tabs--vertical.pimolu-tabs--line > :where(.pimolu-tabs__list-wrap) > :where(.pimolu-tabs__list) > .pimolu-tabs__trigger[data-state=active] {
4906
5131
  box-shadow: inset 2px 0 0 var(--pimolu-primary);
4907
5132
  }
4908
5133
  }
5134
+ .pimolu-tabs__list {
5135
+ position: relative;
5136
+ isolation: isolate;
5137
+ }
5138
+ .pimolu-tabs__list > .pimolu-tabs__trigger {
5139
+ position: relative;
5140
+ z-index: 1;
5141
+ }
5142
+ .pimolu-tabs__indicator {
5143
+ position: absolute;
5144
+ top: 0;
5145
+ left: 0;
5146
+ z-index: 0;
5147
+ pointer-events: none;
5148
+ border-radius: var(--pimolu-radius-sm, 4px);
5149
+ }
5150
+ .pimolu-tabs__indicator[hidden] {
5151
+ display: none;
5152
+ }
5153
+ .pimolu-tabs__indicator[data-ready=true] {
5154
+ transition-property:
5155
+ transform,
5156
+ width,
5157
+ height;
5158
+ transition-duration: var(--pimolu-tabs-indicator-duration, 240ms);
5159
+ transition-timing-function: var(--pimolu-tabs-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
5160
+ }
5161
+ .pimolu-tabs__indicator::before {
5162
+ content: "";
5163
+ position: absolute;
5164
+ inset: 0;
5165
+ border-radius: inherit;
5166
+ }
5167
+ .pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5168
+ inset-block-start: auto;
5169
+ height: 2px;
5170
+ background: var(--pimolu-primary);
5171
+ }
5172
+ .pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5173
+ inset-block: 0;
5174
+ inset-inline-start: auto;
5175
+ width: 2px;
5176
+ height: auto;
5177
+ }
5178
+ .pimolu-tabs--solid > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5179
+ background: var(--pimolu-primary);
5180
+ }
5181
+ .pimolu-tabs--soft > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5182
+ background: color-mix(in srgb, var(--pimolu-primary) 12%, transparent);
5183
+ }
5184
+ .pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator {
5185
+ border-radius: 999px;
5186
+ }
5187
+ .pimolu-tabs--segmented > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5188
+ background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
5189
+ box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
5190
+ }
5191
+ .pimolu-tabs__list[data-indicator=true] > .pimolu-tabs__trigger[data-state=active] {
5192
+ background: transparent;
5193
+ box-shadow: none;
5194
+ }
5195
+ @media (max-width: 600px) {
5196
+ .pimolu-tabs--vertical.pimolu-tabs--line > .pimolu-tabs__list-wrap > .pimolu-tabs__list > .pimolu-tabs__indicator::before {
5197
+ inset-inline-start: 0;
5198
+ inset-inline-end: auto;
5199
+ }
5200
+ }
5201
+ .pimolu-tabs[data-animated=false] > .pimolu-tabs__list-wrap > .pimolu-tabs__list > :is(.pimolu-tabs__indicator, .pimolu-tabs__trigger) {
5202
+ transition: none;
5203
+ }
5204
+ .pimolu-tabs[data-animated=false] > .pimolu-tabs__panel {
5205
+ animation: none;
5206
+ }
4909
5207
  @media (prefers-reduced-motion: reduce) {
4910
- .pimolu-tabs__trigger {
5208
+ .pimolu-tabs__trigger,
5209
+ .pimolu-tabs__indicator[data-ready=true] {
4911
5210
  transition: none;
4912
5211
  }
4913
5212
  .pimolu-tabs__panel[data-state=active] {
@@ -4915,6 +5214,9 @@
4915
5214
  }
4916
5215
  }
4917
5216
  @media (forced-colors: active) {
5217
+ .pimolu-tabs__indicator {
5218
+ display: none;
5219
+ }
4918
5220
  .pimolu-tabs__trigger[data-state=active] {
4919
5221
  border: 1px solid Highlight;
4920
5222
  color: Highlight;
@@ -5051,15 +5353,23 @@
5051
5353
  }
5052
5354
 
5053
5355
  /* src/segmented-control.css */
5356
+ :root {
5357
+ --pimolu-segmented-indicator-duration: 240ms;
5358
+ --pimolu-segmented-indicator-easing: cubic-bezier(0.22, 1, 0.36, 1);
5359
+ }
5054
5360
  .pimolu-segmented-control {
5055
5361
  --pimolu-segmented-height: 32px;
5056
5362
  --pimolu-segmented-padding-x: 12px;
5057
5363
  --pimolu-segmented-font-size: 0.875rem;
5058
5364
  display: inline-flex;
5365
+ position: relative;
5366
+ isolation: isolate;
5367
+ flex-wrap: nowrap;
5059
5368
  align-items: center;
5060
5369
  gap: 0;
5061
5370
  box-sizing: border-box;
5062
5371
  max-width: 100%;
5372
+ min-width: 0;
5063
5373
  padding: 4px;
5064
5374
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
5065
5375
  border-radius: 999px;
@@ -5074,13 +5384,16 @@
5074
5384
  flex-direction: column;
5075
5385
  align-items: stretch;
5076
5386
  width: fit-content;
5077
- min-width: 12rem;
5387
+ min-width: min(12rem, 100%);
5078
5388
  border-radius: var(--pimolu-radius-lg, 12px);
5079
5389
  }
5080
5390
  .pimolu-segmented-control--full-width.pimolu-segmented-control--vertical {
5081
5391
  width: 100%;
5082
5392
  }
5083
5393
  .pimolu-segmented-control__item {
5394
+ position: relative;
5395
+ z-index: 1;
5396
+ flex-shrink: 0;
5084
5397
  display: inline-flex;
5085
5398
  align-items: center;
5086
5399
  justify-content: center;
@@ -5106,7 +5419,7 @@
5106
5419
  }
5107
5420
  .pimolu-segmented-control--full-width .pimolu-segmented-control__item {
5108
5421
  flex: 1 1 0;
5109
- min-width: 0;
5422
+ min-width: max-content;
5110
5423
  }
5111
5424
  .pimolu-segmented-control--vertical .pimolu-segmented-control__item {
5112
5425
  flex: 0 0 auto;
@@ -5145,32 +5458,88 @@
5145
5458
  --pimolu-segmented-padding-x: 16px;
5146
5459
  --pimolu-segmented-font-size: 1rem;
5147
5460
  }
5148
- @media (prefers-reduced-motion: reduce) {
5149
- .pimolu-segmented-control__item {
5150
- transition: none;
5151
- }
5461
+ .pimolu-segmented-control__indicator {
5462
+ position: absolute;
5463
+ left: 0;
5464
+ top: 0;
5465
+ z-index: 0;
5466
+ border-radius: 999px;
5467
+ pointer-events: none;
5468
+ background: color-mix(in srgb, var(--pimolu-foreground) 10%, var(--pimolu-muted));
5469
+ box-shadow: var(--pimolu-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.12));
5152
5470
  }
5153
- @media (forced-colors: active) {
5154
- .pimolu-segmented-control__item[data-state=active] {
5155
- border: 1px solid Highlight;
5156
- color: Highlight;
5157
- }
5158
- .pimolu-segmented-control__item:focus-visible {
5159
- outline-color: Highlight;
5160
- }
5471
+ .pimolu-segmented-control__indicator[hidden] {
5472
+ display: none;
5161
5473
  }
5162
-
5163
- /* src/link.css */
5164
- .pimolu-link {
5165
- color: var(--pimolu-primary);
5166
- font: inherit;
5167
- text-decoration-thickness: 1px;
5168
- text-underline-offset: 3px;
5169
- cursor: pointer;
5170
- transition: color 150ms ease;
5474
+ .pimolu-segmented-control__indicator[data-ready=true] {
5475
+ transition-property:
5476
+ transform,
5477
+ width,
5478
+ height;
5479
+ transition-duration: var(--pimolu-segmented-indicator-duration, 240ms);
5480
+ transition-timing-function: var(--pimolu-segmented-indicator-easing, cubic-bezier(0.22, 1, 0.36, 1));
5171
5481
  }
5172
- .pimolu-link--primary {
5173
- color: var(--pimolu-primary);
5482
+ .pimolu-segmented-control[data-indicator=true] > .pimolu-segmented-control__item[data-state=active] {
5483
+ background: transparent;
5484
+ box-shadow: none;
5485
+ }
5486
+ .pimolu-segmented-control[data-animated=false] > :is(.pimolu-segmented-control__indicator, .pimolu-segmented-control__item) {
5487
+ transition: none;
5488
+ }
5489
+ .pimolu-segmented-control {
5490
+ flex-wrap: nowrap;
5491
+ overflow-x: auto;
5492
+ overflow-y: hidden;
5493
+ overscroll-behavior: contain;
5494
+ }
5495
+ .pimolu-segmented-control--vertical {
5496
+ overflow-x: hidden;
5497
+ overflow-y: auto;
5498
+ }
5499
+ .pimolu-segmented-control:not([data-show-scrollbar=true]) {
5500
+ scrollbar-width: none;
5501
+ }
5502
+ .pimolu-segmented-control:not([data-show-scrollbar=true])::-webkit-scrollbar {
5503
+ display: none;
5504
+ }
5505
+ .pimolu-segmented-control[data-show-scrollbar=true] {
5506
+ scrollbar-width: thin;
5507
+ }
5508
+ .pimolu-segmented-control[data-show-scrollbar=true]::-webkit-scrollbar {
5509
+ display: block;
5510
+ width: 8px;
5511
+ height: 8px;
5512
+ }
5513
+ @media (prefers-reduced-motion: reduce) {
5514
+ .pimolu-segmented-control__item,
5515
+ .pimolu-segmented-control__indicator[data-ready=true] {
5516
+ transition: none;
5517
+ }
5518
+ }
5519
+ @media (forced-colors: active) {
5520
+ .pimolu-segmented-control__indicator {
5521
+ display: none;
5522
+ }
5523
+ .pimolu-segmented-control__item[data-state=active] {
5524
+ border: 1px solid Highlight;
5525
+ color: Highlight;
5526
+ }
5527
+ .pimolu-segmented-control__item:focus-visible {
5528
+ outline-color: Highlight;
5529
+ }
5530
+ }
5531
+
5532
+ /* src/link.css */
5533
+ .pimolu-link {
5534
+ color: var(--pimolu-primary);
5535
+ font: inherit;
5536
+ text-decoration-thickness: 1px;
5537
+ text-underline-offset: 3px;
5538
+ cursor: pointer;
5539
+ transition: color 150ms ease;
5540
+ }
5541
+ .pimolu-link--primary {
5542
+ color: var(--pimolu-primary);
5174
5543
  }
5175
5544
  .pimolu-link--muted {
5176
5545
  color: var(--pimolu-muted-foreground);
@@ -5443,6 +5812,19 @@
5443
5812
  }
5444
5813
 
5445
5814
  /* src/form-field.css */
5815
+ .pimolu-form-message--error {
5816
+ animation: pimolu-field-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
5817
+ }
5818
+ @keyframes pimolu-field-feedback-in {
5819
+ from {
5820
+ opacity: 0;
5821
+ transform: translateY(-3px);
5822
+ }
5823
+ to {
5824
+ opacity: 1;
5825
+ transform: translateY(0);
5826
+ }
5827
+ }
5446
5828
  .pimolu-form-field {
5447
5829
  display: grid;
5448
5830
  gap: 6px;
@@ -5612,13 +5994,32 @@
5612
5994
  transform: rotate(180deg);
5613
5995
  }
5614
5996
  .pimolu-accordion__content {
5997
+ display: grid;
5998
+ grid-template-rows: 1fr;
5615
5999
  min-width: 0;
5616
6000
  color: var(--pimolu-muted-foreground);
5617
6001
  font-size: 0.875rem;
5618
6002
  line-height: 1.6;
5619
6003
  }
6004
+ .pimolu-accordion__content[hidden] {
6005
+ display: none;
6006
+ }
6007
+ .pimolu-accordion__content-clip {
6008
+ min-height: 0;
6009
+ overflow: hidden;
6010
+ }
5620
6011
  .pimolu-accordion__content[data-state=open] {
5621
- animation: pimolu-accordion-in 160ms ease-out;
6012
+ animation: pimolu-accordion-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
6013
+ }
6014
+ .pimolu-accordion__content[data-state=closing] {
6015
+ display: grid;
6016
+ animation: pimolu-accordion-out 220ms cubic-bezier(0.4, 0, 1, 1) both;
6017
+ }
6018
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__content {
6019
+ animation: none;
6020
+ }
6021
+ .pimolu-accordion[data-animated=false] .pimolu-accordion__chevron {
6022
+ transition: none;
5622
6023
  }
5623
6024
  .pimolu-accordion__content-inner {
5624
6025
  padding: 0 0 16px;
@@ -5632,14 +6033,26 @@
5632
6033
  }
5633
6034
  @keyframes pimolu-accordion-in {
5634
6035
  from {
6036
+ grid-template-rows: 0fr;
5635
6037
  opacity: 0;
5636
6038
  transform: translateY(-3px);
5637
6039
  }
5638
6040
  to {
6041
+ grid-template-rows: 1fr;
5639
6042
  opacity: 1;
5640
6043
  transform: translateY(0);
5641
6044
  }
5642
6045
  }
6046
+ @keyframes pimolu-accordion-out {
6047
+ from {
6048
+ grid-template-rows: 1fr;
6049
+ opacity: 1;
6050
+ }
6051
+ to {
6052
+ grid-template-rows: 0fr;
6053
+ opacity: 0;
6054
+ }
6055
+ }
5643
6056
  @media (prefers-reduced-motion: reduce) {
5644
6057
  .pimolu-accordion__chevron {
5645
6058
  transition: none;
@@ -5647,6 +6060,10 @@
5647
6060
  .pimolu-accordion__content[data-state=open] {
5648
6061
  animation: none;
5649
6062
  }
6063
+ .pimolu-accordion__content[data-state=closing] {
6064
+ display: none;
6065
+ animation: none;
6066
+ }
5650
6067
  }
5651
6068
  @media (forced-colors: active) {
5652
6069
  .pimolu-accordion__item {
@@ -5985,6 +6402,10 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
5985
6402
  align-items: center;
5986
6403
  gap: 8px;
5987
6404
  flex: none;
6405
+ max-width: 100%;
6406
+ min-width: 0;
6407
+ overflow: hidden;
6408
+ text-overflow: ellipsis;
5988
6409
  color: inherit;
5989
6410
  font-size: 0.9375rem;
5990
6411
  font-weight: 700;
@@ -6005,6 +6426,8 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6005
6426
  min-width: 0;
6006
6427
  }
6007
6428
  .pimolu-navbar__item {
6429
+ box-sizing: border-box;
6430
+ min-height: 40px;
6008
6431
  display: inline-flex;
6009
6432
  align-items: center;
6010
6433
  gap: 6px;
@@ -6146,6 +6569,7 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6146
6569
  box-sizing: border-box;
6147
6570
  width: 100%;
6148
6571
  white-space: normal;
6572
+ min-height: 44px;
6149
6573
  }
6150
6574
  .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6151
6575
  display: flex;
@@ -6161,6 +6585,15 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6161
6585
  padding: 10px 16px;
6162
6586
  }
6163
6587
  }
6588
+ @container pimolu-navbar (max-width: 700px) {
6589
+ .pimolu-navbar[data-collapsible=true] .pimolu-navbar__brand {
6590
+ max-width: calc(100% - 64px);
6591
+ }
6592
+ .pimolu-navbar__toggle {
6593
+ min-width: 44px;
6594
+ min-height: 44px;
6595
+ }
6596
+ }
6164
6597
  @media (forced-colors: active) {
6165
6598
  .pimolu-navbar {
6166
6599
  border-color: CanvasText;
@@ -6176,6 +6609,76 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6176
6609
  .pimolu-navbar--transparent {
6177
6610
  background: transparent;
6178
6611
  }
6612
+ .pimolu-navbar__menu {
6613
+ display: contents;
6614
+ }
6615
+ @container pimolu-navbar (max-width: 700px) {
6616
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__content,
6617
+ .pimolu-navbar[data-collapsible=true][data-open=true] .pimolu-navbar__actions {
6618
+ animation: pimolu-navbar-reveal 180ms cubic-bezier(0.16, 1, 0.3, 1);
6619
+ }
6620
+ }
6621
+ @keyframes pimolu-navbar-reveal {
6622
+ from {
6623
+ opacity: 0;
6624
+ transform: translateY(-4px);
6625
+ }
6626
+ to {
6627
+ opacity: 1;
6628
+ transform: translateY(0);
6629
+ }
6630
+ }
6631
+ .pimolu-navbar__menu-panel {
6632
+ display: flex;
6633
+ flex-direction: column;
6634
+ gap: var(--pimolu-spacing-4, 16px);
6635
+ padding-top: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-top));
6636
+ padding-bottom: max(var(--pimolu-spacing-6, 24px), env(safe-area-inset-bottom));
6637
+ }
6638
+ .pimolu-navbar__menu-panel .pimolu-navbar__content {
6639
+ display: flex;
6640
+ flex-direction: column;
6641
+ align-items: stretch;
6642
+ gap: var(--pimolu-spacing-1, 4px);
6643
+ width: 100%;
6644
+ order: initial;
6645
+ overflow: visible;
6646
+ }
6647
+ .pimolu-navbar__menu-panel .pimolu-navbar__item {
6648
+ width: 100%;
6649
+ min-height: 44px;
6650
+ white-space: normal;
6651
+ }
6652
+ .pimolu-navbar__menu-panel .pimolu-navbar__actions {
6653
+ display: flex;
6654
+ width: 100%;
6655
+ margin-inline-start: 0;
6656
+ padding-block-start: var(--pimolu-spacing-4, 16px);
6657
+ border-block-start: 1px solid var(--pimolu-border);
6658
+ }
6659
+ .pimolu-navbar__menu-panel .pimolu-drawer__header {
6660
+ padding-inline-end: 48px;
6661
+ }
6662
+ .pimolu-navbar__menu-panel .pimolu-drawer__close {
6663
+ z-index: 2;
6664
+ width: 44px;
6665
+ height: 44px;
6666
+ color: var(--pimolu-foreground);
6667
+ border: 1px solid var(--pimolu-border);
6668
+ background: var(--pimolu-muted);
6669
+ }
6670
+ .pimolu-drawer__content.pimolu-navbar__menu-panel--full {
6671
+ inset: 0;
6672
+ width: 100%;
6673
+ height: 100%;
6674
+ border-radius: 0;
6675
+ }
6676
+ .pimolu-navbar__menu-layer--instant,
6677
+ .pimolu-navbar__menu-layer--instant .pimolu-drawer__overlay,
6678
+ .pimolu-navbar__menu-layer--instant.pimolu-drawer__content {
6679
+ animation: none !important;
6680
+ transition: none !important;
6681
+ }
6179
6682
  .pimolu-navbar--floating {
6180
6683
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6181
6684
  border-radius: var(--pimolu-radius-lg);
@@ -6208,10 +6711,35 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6208
6711
  padding: 12px 6px;
6209
6712
  gap: 16px;
6210
6713
  }
6211
- .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header,
6212
- .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer {
6714
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header:not([data-has-collapsed-content]),
6715
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer:not([data-has-collapsed-content]) {
6716
+ display: none;
6717
+ }
6718
+ .pimolu-sidebar__expanded {
6719
+ display: contents;
6720
+ }
6721
+ .pimolu-sidebar__compact {
6722
+ display: none;
6723
+ }
6724
+ .pimolu-sidebar[data-collapsed=true] .pimolu-sidebar__expanded {
6213
6725
  display: none;
6214
6726
  }
6727
+ .pimolu-sidebar[data-collapsed=true] .pimolu-sidebar__compact {
6728
+ display: flex;
6729
+ align-items: center;
6730
+ justify-content: center;
6731
+ }
6732
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
6733
+ display: flex;
6734
+ justify-content: center;
6735
+ order: -2;
6736
+ padding: 0;
6737
+ }
6738
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
6739
+ display: flex;
6740
+ justify-content: center;
6741
+ padding: 12px 0 0;
6742
+ }
6215
6743
  .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
6216
6744
  flex: 1 1 auto;
6217
6745
  gap: 16px;
@@ -6246,8 +6774,8 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6246
6774
  inset-inline-end: 12px;
6247
6775
  display: grid;
6248
6776
  place-items: center;
6249
- width: 36px;
6250
- height: 36px;
6777
+ width: 40px;
6778
+ height: 40px;
6251
6779
  z-index: 1;
6252
6780
  padding: 0;
6253
6781
  border: 1px solid var(--pimolu-border);
@@ -6273,7 +6801,8 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6273
6801
  display: flex;
6274
6802
  align-items: center;
6275
6803
  gap: 10px;
6276
- padding: 8px 46px 16px 8px;
6804
+ padding-block: 8px 16px;
6805
+ padding-inline: 8px 52px;
6277
6806
  min-width: 0;
6278
6807
  }
6279
6808
  .pimolu-sidebar__content {
@@ -6304,11 +6833,12 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6304
6833
  text-transform: uppercase;
6305
6834
  }
6306
6835
  .pimolu-sidebar__item {
6836
+ position: relative;
6307
6837
  display: flex;
6308
6838
  align-items: center;
6309
6839
  gap: 8px;
6310
6840
  box-sizing: border-box;
6311
- min-height: 34px;
6841
+ min-height: 40px;
6312
6842
  padding: 7px 8px;
6313
6843
  border-radius: var(--pimolu-radius-sm, 4px);
6314
6844
  color: var(--pimolu-muted-foreground);
@@ -6326,6 +6856,16 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6326
6856
  .pimolu-sidebar__item[aria-current=page] {
6327
6857
  background: var(--pimolu-muted);
6328
6858
  color: var(--pimolu-foreground);
6859
+ font-weight: 600;
6860
+ }
6861
+ .pimolu-sidebar__item[aria-current=page]::before {
6862
+ content: "";
6863
+ position: absolute;
6864
+ inset-inline-start: 0;
6865
+ inset-block: 25%;
6866
+ width: 3px;
6867
+ border-radius: 999px;
6868
+ background: var(--pimolu-primary, currentColor);
6329
6869
  }
6330
6870
  .pimolu-sidebar__item[aria-disabled=true] {
6331
6871
  opacity: 0.5;
@@ -6358,6 +6898,34 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6358
6898
  white-space: nowrap;
6359
6899
  }
6360
6900
  @media (max-width: 720px) {
6901
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
6902
+ display: contents;
6903
+ }
6904
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
6905
+ display: none;
6906
+ }
6907
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
6908
+ justify-content: flex-start;
6909
+ padding-inline: 8px 100px;
6910
+ }
6911
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
6912
+ position: absolute;
6913
+ inset-inline-end: 64px;
6914
+ inset-block-start: 12px;
6915
+ margin: 0;
6916
+ padding: 0;
6917
+ border: 0;
6918
+ height: 40px;
6919
+ align-items: center;
6920
+ }
6921
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
6922
+ display: flex;
6923
+ min-height: 40px;
6924
+ padding-block: 0;
6925
+ }
6926
+ .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
6927
+ position: absolute;
6928
+ }
6361
6929
  .pimolu-sidebar[data-collapsed=true] {
6362
6930
  width: 100%;
6363
6931
  min-height: 60px;
@@ -6385,6 +6953,14 @@ button.pimolu-stepper__button:hover .pimolu-stepper__marker {
6385
6953
  color: Highlight;
6386
6954
  }
6387
6955
  }
6956
+ .pimolu-sidebar {
6957
+ transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1), padding 220ms ease-out;
6958
+ }
6959
+ @media (prefers-reduced-motion: reduce) {
6960
+ .pimolu-sidebar {
6961
+ transition: none;
6962
+ }
6963
+ }
6388
6964
 
6389
6965
  /* src/navigation-menu.css */
6390
6966
  .pimolu-navigation-menu {
@@ -6931,64 +7507,262 @@ button.pimolu-list__row:focus-visible {
6931
7507
  }
6932
7508
  }
6933
7509
 
6934
- /* src/toast.css */
6935
- .pimolu-toaster {
6936
- position: fixed;
6937
- z-index: 60;
6938
- display: grid;
6939
- gap: 8px;
6940
- width: min(20rem, calc(100vw - 32px));
6941
- pointer-events: none;
7510
+ /* src/spinner.css */
7511
+ .pimolu-spinner {
7512
+ --pimolu-spinner-size: 20px;
7513
+ --pimolu-spinner-dot-size: calc(var(--pimolu-spinner-size) * 0.27);
7514
+ --pimolu-spinner-color: currentColor;
7515
+ display: inline-flex;
7516
+ align-items: center;
7517
+ justify-content: center;
7518
+ flex: 0 0 auto;
7519
+ box-sizing: border-box;
7520
+ min-width: 0;
7521
+ color: var(--pimolu-spinner-color);
7522
+ line-height: 1;
7523
+ vertical-align: middle;
7524
+ user-select: none;
6942
7525
  }
6943
- .pimolu-toaster[data-position=top-right] {
6944
- inset-block-start: 16px;
6945
- inset-inline-end: 16px;
7526
+ .pimolu-spinner--xs {
7527
+ --pimolu-spinner-size: 12px;
6946
7528
  }
6947
- .pimolu-toaster[data-position=top-center] {
6948
- inset-block-start: 16px;
6949
- inset-inline-start: 50%;
6950
- transform: translateX(-50%);
7529
+ .pimolu-spinner--sm {
7530
+ --pimolu-spinner-size: 16px;
6951
7531
  }
6952
- .pimolu-toaster[data-position=bottom-right] {
6953
- inset-block-end: 16px;
6954
- inset-inline-end: 16px;
7532
+ .pimolu-spinner--md {
7533
+ --pimolu-spinner-size: 20px;
6955
7534
  }
6956
- .pimolu-toaster[data-position=bottom-center] {
6957
- inset-block-end: 16px;
6958
- inset-inline-start: 50%;
6959
- transform: translateX(-50%);
7535
+ .pimolu-spinner--lg {
7536
+ --pimolu-spinner-size: 24px;
6960
7537
  }
6961
- .pimolu-toast {
6962
- --pimolu-toast-tone: var(--pimolu-border);
6963
- display: flex;
6964
- align-items: flex-start;
6965
- justify-content: space-between;
6966
- gap: 12px;
6967
- box-sizing: border-box;
6968
- padding: 12px 12px 12px 14px;
6969
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
6970
- border-inline-start: 3px solid var(--pimolu-toast-tone);
6971
- border-radius: var(--pimolu-radius-md, 8px);
6972
- background: var( --pimolu-surface, var(--pimolu-background) );
6973
- color: var(--pimolu-foreground);
6974
- box-shadow: var( --pimolu-shadow-raised, none );
6975
- font-family: var(--pimolu-font-body, inherit);
6976
- pointer-events: auto;
6977
- animation: pimolu-toast-in 160ms ease-out;
7538
+ .pimolu-spinner--xl {
7539
+ --pimolu-spinner-size: 32px;
6978
7540
  }
6979
- .pimolu-toast--success {
6980
- --pimolu-toast-tone: var(--pimolu-success, #15803d);
7541
+ .pimolu-spinner--inherit {
7542
+ --pimolu-spinner-color: currentColor;
6981
7543
  }
6982
- .pimolu-toast--warning {
6983
- --pimolu-toast-tone: var(--pimolu-warning, #d97706);
7544
+ .pimolu-spinner--neutral {
7545
+ --pimolu-spinner-color: var(--pimolu-foreground, currentColor);
6984
7546
  }
6985
- .pimolu-toast--danger {
7547
+ .pimolu-spinner--primary {
7548
+ --pimolu-spinner-color: var(--pimolu-primary, currentColor);
7549
+ }
7550
+ .pimolu-spinner--secondary {
7551
+ --pimolu-spinner-color: var(--pimolu-secondary, currentColor);
7552
+ }
7553
+ .pimolu-spinner--success {
7554
+ --pimolu-spinner-color: var(--pimolu-success, currentColor);
7555
+ }
7556
+ .pimolu-spinner--warning {
7557
+ --pimolu-spinner-color: var(--pimolu-warning, currentColor);
7558
+ }
7559
+ .pimolu-spinner--danger {
7560
+ --pimolu-spinner-color: var(--pimolu-danger, currentColor);
7561
+ }
7562
+ .pimolu-spinner__visual {
7563
+ display: inline-flex;
7564
+ align-items: center;
7565
+ justify-content: center;
7566
+ flex: 0 0 auto;
7567
+ width: var(--pimolu-spinner-size);
7568
+ height: var(--pimolu-spinner-size);
7569
+ }
7570
+ .pimolu-spinner__svg {
7571
+ display: block;
7572
+ width: 100%;
7573
+ height: 100%;
7574
+ overflow: visible;
7575
+ transform-origin: center;
7576
+ animation: pimolu-spinner-rotate 1s linear infinite;
7577
+ }
7578
+ .pimolu-spinner__track,
7579
+ .pimolu-spinner__indicator {
7580
+ fill: none;
7581
+ stroke: currentColor;
7582
+ stroke-width: 2.5;
7583
+ }
7584
+ .pimolu-spinner__track {
7585
+ opacity: 0.18;
7586
+ }
7587
+ .pimolu-spinner__indicator {
7588
+ stroke-linecap: round;
7589
+ }
7590
+ .pimolu-spinner--circular .pimolu-spinner__indicator {
7591
+ stroke-dasharray: 16 57;
7592
+ }
7593
+ .pimolu-spinner--arc .pimolu-spinner__indicator {
7594
+ stroke-dasharray: 42 57;
7595
+ }
7596
+ .pimolu-spinner--arc .pimolu-spinner__track {
7597
+ opacity: 0;
7598
+ }
7599
+ .pimolu-spinner--arc .pimolu-spinner__svg {
7600
+ animation-duration: 1.3s;
7601
+ }
7602
+ @keyframes pimolu-spinner-rotate {
7603
+ from {
7604
+ transform: rotate(0deg);
7605
+ }
7606
+ to {
7607
+ transform: rotate(360deg);
7608
+ }
7609
+ }
7610
+ .pimolu-spinner--dots .pimolu-spinner__visual {
7611
+ width: calc(var(--pimolu-spinner-size) * 1.5);
7612
+ gap: calc(var(--pimolu-spinner-size) * 0.14);
7613
+ }
7614
+ .pimolu-spinner__dot {
7615
+ display: block;
7616
+ flex: 0 0 auto;
7617
+ width: var(--pimolu-spinner-dot-size);
7618
+ height: var(--pimolu-spinner-dot-size);
7619
+ border-radius: 50%;
7620
+ background: currentColor;
7621
+ animation: pimolu-spinner-dot 1.1s ease-in-out infinite;
7622
+ }
7623
+ .pimolu-spinner__dot:nth-child(1) {
7624
+ animation-delay: -0.32s;
7625
+ }
7626
+ .pimolu-spinner__dot:nth-child(2) {
7627
+ animation-delay: -0.16s;
7628
+ }
7629
+ .pimolu-spinner__dot:nth-child(3) {
7630
+ animation-delay: 0s;
7631
+ }
7632
+ @keyframes pimolu-spinner-dot {
7633
+ 0%, 80%, 100% {
7634
+ opacity: 0.35;
7635
+ transform: translateY(0);
7636
+ }
7637
+ 40% {
7638
+ opacity: 1;
7639
+ transform: translateY(-25%);
7640
+ }
7641
+ }
7642
+ .pimolu-spinner__label {
7643
+ position: absolute;
7644
+ width: 1px;
7645
+ height: 1px;
7646
+ padding: 0;
7647
+ margin: -1px;
7648
+ overflow: hidden;
7649
+ clip: rect(0, 0, 0, 0);
7650
+ clip-path: inset(50%);
7651
+ white-space: nowrap;
7652
+ border: 0;
7653
+ }
7654
+ @media (prefers-reduced-motion: reduce) {
7655
+ .pimolu-spinner__svg,
7656
+ .pimolu-spinner__dot {
7657
+ animation: none;
7658
+ }
7659
+ .pimolu-spinner__dot {
7660
+ opacity: 1;
7661
+ transform: none;
7662
+ }
7663
+ }
7664
+ @media (forced-colors: active) {
7665
+ .pimolu-spinner {
7666
+ color: CanvasText;
7667
+ }
7668
+ .pimolu-spinner__track {
7669
+ opacity: 0.4;
7670
+ }
7671
+ .pimolu-spinner__dot {
7672
+ background: currentColor;
7673
+ }
7674
+ }
7675
+
7676
+ /* src/toast.css */
7677
+ .pimolu-toaster {
7678
+ --pimolu-toast-width: 24rem;
7679
+ --pimolu-toast-padding: 14px;
7680
+ --pimolu-toast-duration: 180ms;
7681
+ --pimolu-toast-easing: cubic-bezier(0.16, 1, 0.3, 1);
7682
+ position: fixed;
7683
+ z-index: 60;
7684
+ display: grid;
7685
+ gap: var(--pimolu-spacing-3, 12px);
7686
+ width: min(var(--pimolu-toast-width, 24rem), calc(100vw - 32px));
7687
+ max-height: calc(100dvh - 32px);
7688
+ overflow-y: auto;
7689
+ overscroll-behavior: contain;
7690
+ pointer-events: none;
7691
+ }
7692
+ .pimolu-toaster[data-position=top-left] {
7693
+ inset-block-start: 16px;
7694
+ inset-inline-start: 16px;
7695
+ }
7696
+ .pimolu-toaster[data-position=bottom-left] {
7697
+ inset-block-end: 16px;
7698
+ inset-inline-start: 16px;
7699
+ }
7700
+ .pimolu-toaster[data-position=top-right] {
7701
+ inset-block-start: 16px;
7702
+ inset-inline-end: 16px;
7703
+ }
7704
+ .pimolu-toaster[data-position=top-center] {
7705
+ inset-block-start: 16px;
7706
+ left: 50%;
7707
+ transform: translateX(-50%);
7708
+ }
7709
+ .pimolu-toaster[data-position=bottom-right] {
7710
+ inset-block-end: 16px;
7711
+ inset-inline-end: 16px;
7712
+ }
7713
+ .pimolu-toaster[data-position=bottom-center] {
7714
+ inset-block-end: 16px;
7715
+ left: 50%;
7716
+ transform: translateX(-50%);
7717
+ }
7718
+ .pimolu-toast {
7719
+ --pimolu-toast-tone: var(--pimolu-border);
7720
+ display: flex;
7721
+ align-items: flex-start;
7722
+ justify-content: space-between;
7723
+ gap: 12px;
7724
+ box-sizing: border-box;
7725
+ padding: var(--pimolu-toast-padding, 14px);
7726
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
7727
+ border-inline-start: 3px solid var(--pimolu-toast-tone);
7728
+ border-radius: var(--pimolu-radius-md, 8px);
7729
+ background: var( --pimolu-surface, var(--pimolu-background) );
7730
+ color: var(--pimolu-foreground);
7731
+ box-shadow: var( --pimolu-shadow-raised, none );
7732
+ font-family: var(--pimolu-font-body, inherit);
7733
+ pointer-events: auto;
7734
+ animation: pimolu-toast-in var(--pimolu-toast-duration, 180ms) var(--pimolu-toast-easing, cubic-bezier(0.16, 1, 0.3, 1));
7735
+ }
7736
+ .pimolu-toast--info,
7737
+ .pimolu-toast--loading {
7738
+ --pimolu-toast-tone: var(--pimolu-primary);
7739
+ }
7740
+ .pimolu-toast__icon {
7741
+ display: inline-grid;
7742
+ place-items: center;
7743
+ flex: none;
7744
+ width: 20px;
7745
+ height: 20px;
7746
+ margin-block-start: 1px;
7747
+ color: var(--pimolu-toast-tone);
7748
+ }
7749
+ .pimolu-toast--default .pimolu-toast__icon {
7750
+ color: var(--pimolu-muted-foreground);
7751
+ }
7752
+ .pimolu-toast--success {
7753
+ --pimolu-toast-tone: var(--pimolu-success, #15803d);
7754
+ }
7755
+ .pimolu-toast--warning {
7756
+ --pimolu-toast-tone: var(--pimolu-warning, #d97706);
7757
+ }
7758
+ .pimolu-toast--danger {
6986
7759
  --pimolu-toast-tone: var(--pimolu-danger, #dc2626);
6987
7760
  }
6988
7761
  .pimolu-toast__body {
6989
7762
  display: grid;
6990
7763
  gap: 2px;
6991
7764
  min-width: 0;
7765
+ flex: 1;
6992
7766
  }
6993
7767
  .pimolu-toast__title {
6994
7768
  margin: 0;
@@ -7009,6 +7783,9 @@ button.pimolu-list__row:focus-visible {
7009
7783
  align-items: center;
7010
7784
  gap: 4px;
7011
7785
  flex: none;
7786
+ flex-wrap: wrap;
7787
+ justify-content: flex-end;
7788
+ max-width: 45%;
7012
7789
  }
7013
7790
  .pimolu-toast__action {
7014
7791
  padding: 2px 6px;
@@ -7020,15 +7797,21 @@ button.pimolu-list__row:focus-visible {
7020
7797
  font-size: 0.8125rem;
7021
7798
  font-weight: 600;
7022
7799
  cursor: pointer;
7800
+ overflow-wrap: anywhere;
7023
7801
  }
7024
7802
  .pimolu-toast__action:hover {
7025
7803
  background: var(--pimolu-muted);
7026
7804
  }
7805
+ .pimolu-toast__action:disabled {
7806
+ opacity: 0.5;
7807
+ cursor: not-allowed;
7808
+ }
7027
7809
  .pimolu-toast__close {
7028
7810
  display: inline-grid;
7029
7811
  place-items: center;
7030
- width: 24px;
7031
- height: 24px;
7812
+ width: 28px;
7813
+ height: 28px;
7814
+ flex: none;
7032
7815
  padding: 0;
7033
7816
  border: 0;
7034
7817
  border-radius: var(--pimolu-radius-sm, 4px);
@@ -7037,6 +7820,16 @@ button.pimolu-list__row:focus-visible {
7037
7820
  line-height: 0;
7038
7821
  cursor: pointer;
7039
7822
  }
7823
+ @media (pointer: coarse) {
7824
+ .pimolu-toast__action,
7825
+ .pimolu-toast__close {
7826
+ min-width: 44px;
7827
+ min-height: 44px;
7828
+ }
7829
+ }
7830
+ .pimolu-toaster:empty {
7831
+ pointer-events: none;
7832
+ }
7040
7833
  .pimolu-toast__close:hover {
7041
7834
  background: var(--pimolu-muted);
7042
7835
  color: var(--pimolu-foreground);
@@ -7750,7 +8543,7 @@ button.pimolu-list__row:focus-visible {
7750
8543
  }
7751
8544
  .pimolu-alert__description {
7752
8545
  margin: 0;
7753
- color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
8546
+ color: color-mix(in srgb, var(--pimolu-muted-foreground, currentColor) 55%, var(--pimolu-foreground, currentColor));
7754
8547
  font-size: 0.875rem;
7755
8548
  line-height: 1.5;
7756
8549
  text-wrap: pretty;
@@ -9175,7 +9968,7 @@ button.pimolu-list__row:focus-visible {
9175
9968
  min-height: var(--pimolu-number-input-height);
9176
9969
  padding-inline: var(--pimolu-number-input-padding);
9177
9970
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
9178
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
9971
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
9179
9972
  border-radius: var(--pimolu-radius-md, 8px);
9180
9973
  box-shadow: var(--pimolu-number-input-elevation);
9181
9974
  transition:
@@ -9375,7 +10168,7 @@ button.pimolu-list__row:focus-visible {
9375
10168
  margin: 0;
9376
10169
  padding: 0;
9377
10170
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
9378
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
10171
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
9379
10172
  border-radius: var(--pimolu-radius-md, 8px);
9380
10173
  box-shadow: var(--pimolu-pin-input-elevation);
9381
10174
  color: var(--pimolu-foreground, currentColor);
@@ -9495,7 +10288,7 @@ button.pimolu-list__row:focus-visible {
9495
10288
  min-height: var(--pimolu-tags-input-height);
9496
10289
  padding: var(--pimolu-tags-input-padding);
9497
10290
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
9498
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
10291
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
9499
10292
  border-radius: var(--pimolu-radius-md, 8px);
9500
10293
  box-shadow: var(--pimolu-tags-input-elevation);
9501
10294
  cursor: text;
@@ -9512,12 +10305,17 @@ button.pimolu-list__row:focus-visible {
9512
10305
  margin: 0;
9513
10306
  padding: 0;
9514
10307
  list-style: none;
10308
+ max-width: 100%;
10309
+ min-width: 0;
9515
10310
  }
9516
10311
  .pimolu-tags-input__tag {
9517
10312
  display: inline-flex;
9518
10313
  align-items: center;
9519
10314
  gap: 2px;
9520
10315
  max-width: 100%;
10316
+ margin: 0;
10317
+ box-sizing: border-box;
10318
+ min-height: 26px;
9521
10319
  padding: 2px 3px 2px 8px;
9522
10320
  background: var(--pimolu-muted, #f1f5f9);
9523
10321
  border: 1px solid color-mix(in srgb, var(--pimolu-border, #e2e8f0) 70%, transparent);
@@ -9563,7 +10361,7 @@ button.pimolu-list__row:focus-visible {
9563
10361
  cursor: not-allowed;
9564
10362
  }
9565
10363
  .pimolu-tags-input__input {
9566
- flex: 1;
10364
+ flex: 1 1 120px;
9567
10365
  box-sizing: border-box;
9568
10366
  min-width: 96px;
9569
10367
  height: 26px;
@@ -9614,6 +10412,7 @@ button.pimolu-list__row:focus-visible {
9614
10412
  height: 22px;
9615
10413
  }
9616
10414
  .pimolu-tags-input--sm .pimolu-tags-input__tag {
10415
+ min-height: 22px;
9617
10416
  padding-block: 1px;
9618
10417
  font-size: 0.75rem;
9619
10418
  }
@@ -9631,6 +10430,7 @@ button.pimolu-list__row:focus-visible {
9631
10430
  height: 30px;
9632
10431
  }
9633
10432
  .pimolu-tags-input--lg .pimolu-tags-input__tag {
10433
+ min-height: 30px;
9634
10434
  padding-block: 3px;
9635
10435
  font-size: 0.875rem;
9636
10436
  }
@@ -9719,7 +10519,7 @@ button.pimolu-list__row:focus-visible {
9719
10519
  min-height: var(--pimolu-time-picker-height);
9720
10520
  padding-inline: var(--pimolu-time-picker-padding);
9721
10521
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
9722
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
10522
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
9723
10523
  border-radius: var(--pimolu-radius-md, 8px);
9724
10524
  box-shadow: var(--pimolu-time-picker-elevation);
9725
10525
  transition:
@@ -10128,7 +10928,7 @@ button.pimolu-list__row:focus-visible {
10128
10928
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
10129
10929
  color: var(--pimolu-foreground, #0f172a);
10130
10930
  text-align: start;
10131
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
10931
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
10132
10932
  border-radius: var(--pimolu-radius-md, 8px);
10133
10933
  font: inherit;
10134
10934
  font-size: 0.875rem;
@@ -11057,7 +11857,7 @@ button.pimolu-list__row:focus-visible {
11057
11857
  min-width: 9rem;
11058
11858
  min-height: 40px;
11059
11859
  padding: 0 12px;
11060
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #d4d4d8);
11860
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #d4d4d8));
11061
11861
  border-radius: var(--pimolu-radius-md, 8px);
11062
11862
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
11063
11863
  color: var(--pimolu-foreground);
@@ -11887,6 +12687,7 @@ button.pimolu-list__row:focus-visible {
11887
12687
  box-sizing: border-box;
11888
12688
  min-width: 0;
11889
12689
  max-width: 100%;
12690
+ --pimolu-carousel-control-reserve: 56px;
11890
12691
  color: var(--pimolu-foreground);
11891
12692
  font-family: var(--pimolu-font-body, inherit);
11892
12693
  }
@@ -11919,11 +12720,11 @@ button.pimolu-list__row:focus-visible {
11919
12720
  scroll-snap-stop: always;
11920
12721
  }
11921
12722
  .pimolu-carousel[data-controls=true] .pimolu-carousel__slide {
11922
- padding-inline: 56px;
12723
+ padding-inline: var(--pimolu-carousel-control-reserve, 56px);
11923
12724
  }
11924
12725
  .pimolu-carousel__control {
11925
12726
  position: absolute;
11926
- top: 50%;
12727
+ top: var(--pimolu-carousel-controls-center, 50%);
11927
12728
  z-index: 2;
11928
12729
  display: inline-flex;
11929
12730
  align-items: center;
@@ -11934,8 +12735,8 @@ button.pimolu-list__row:focus-visible {
11934
12735
  padding: 0;
11935
12736
  border: 1px solid var(--pimolu-border, currentColor);
11936
12737
  border-radius: var(--pimolu-radius-full, 999px);
11937
- background: var( --pimolu-background, Canvas );
11938
- color: var(--pimolu-foreground);
12738
+ background: var( --pimolu-control-background, var(--pimolu-background, Canvas) );
12739
+ color: var(--pimolu-control-foreground, var(--pimolu-foreground));
11939
12740
  box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
11940
12741
  cursor: pointer;
11941
12742
  transform: translateY(-50%);
@@ -11969,6 +12770,23 @@ button.pimolu-list__row:focus-visible {
11969
12770
  width: 1.25rem;
11970
12771
  height: 1.25rem;
11971
12772
  }
12773
+ [dir=rtl] {
12774
+ --pimolu-carousel-arrow-direction: -1;
12775
+ }
12776
+ [dir=ltr] {
12777
+ --pimolu-carousel-arrow-direction: 1;
12778
+ }
12779
+ .pimolu-carousel__control svg {
12780
+ transform: scaleX(var(--pimolu-carousel-arrow-direction, 1));
12781
+ }
12782
+ @media (max-width: 640px) {
12783
+ [data-controls-mobile=hidden] .pimolu-carousel__control {
12784
+ display: none;
12785
+ }
12786
+ .pimolu-carousel[data-controls-mobile=hidden] .pimolu-carousel__slide {
12787
+ padding-inline: 0;
12788
+ }
12789
+ }
11972
12790
  .pimolu-carousel__footer {
11973
12791
  display: flex;
11974
12792
  align-items: center;
@@ -12049,6 +12867,9 @@ button.pimolu-list__row:focus-visible {
12049
12867
  height: 0.875rem;
12050
12868
  }
12051
12869
  @media (max-width: 600px) {
12870
+ .pimolu-carousel {
12871
+ --pimolu-carousel-control-reserve: 44px;
12872
+ }
12052
12873
  .pimolu-carousel__control {
12053
12874
  width: 2rem;
12054
12875
  height: 2rem;
@@ -12103,20 +12924,377 @@ button.pimolu-list__row:focus-visible {
12103
12924
  }
12104
12925
  }
12105
12926
 
12106
- /* src/resizable.css */
12107
- .pimolu-resizable {
12108
- --pimolu-resizable-split: 50%;
12109
- position: relative;
12110
- display: grid;
12111
- box-sizing: border-box;
12927
+ /* src/thumbnail-carousel.css */
12928
+ .pimolu-thumbnail-carousel .pimolu-carousel__viewport {
12929
+ border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
12930
+ overflow: hidden;
12931
+ }
12932
+ .pimolu-thumbnail-carousel .pimolu-carousel__slide img {
12933
+ display: block;
12112
12934
  width: 100%;
12113
- min-width: 0;
12114
- min-height: 0;
12115
- color: var(--pimolu-foreground);
12116
- font-family: var(--pimolu-font-body, inherit);
12935
+ height: auto;
12936
+ object-fit: cover;
12117
12937
  }
12118
- .pimolu-resizable[data-orientation=vertical] {
12119
- min-height: 12rem;
12938
+
12939
+ /* src/coverflow-carousel.css */
12940
+ .pimolu-coverflow-carousel .pimolu-carousel__viewport {
12941
+ height: clamp(240px, 42vw, 380px);
12942
+ perspective: 1200px;
12943
+ transform-style: preserve-3d;
12944
+ }
12945
+ .pimolu-coverflow-carousel .pimolu-carousel__slide {
12946
+ position: absolute;
12947
+ inset-block: 0;
12948
+ inset-inline-start: 50%;
12949
+ width: min(62%, 520px);
12950
+ margin-inline-start: calc(min(62%, 520px) / -2);
12951
+ transform-origin: center center;
12952
+ backface-visibility: hidden;
12953
+ }
12954
+ .pimolu-coverflow-carousel .pimolu-carousel__slide[data-active=true] {
12955
+ z-index: 10;
12956
+ }
12957
+
12958
+ /* src/peek-carousel.css */
12959
+ .pimolu-peek-carousel .pimolu-carousel__viewport {
12960
+ padding-block: 8px;
12961
+ }
12962
+ .pimolu-peek-carousel .pimolu-carousel__slide {
12963
+ border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
12964
+ border: 1px solid var(--pimolu-border);
12965
+ background: var(--pimolu-surface);
12966
+ overflow: hidden;
12967
+ opacity: 0.72;
12968
+ transform: scale(0.95);
12969
+ }
12970
+ .pimolu-peek-carousel .pimolu-carousel__slide[data-active=true] {
12971
+ border-color: var(--pimolu-primary);
12972
+ opacity: 1;
12973
+ transform: scale(1);
12974
+ }
12975
+
12976
+ /* src/stack-carousel.css */
12977
+ .pimolu-stack-carousel .pimolu-carousel__viewport {
12978
+ height: clamp(260px, 44vw, 400px);
12979
+ }
12980
+ .pimolu-stack-carousel .pimolu-carousel__slide {
12981
+ position: absolute;
12982
+ inset-block-start: 0;
12983
+ inset-inline-start: 50%;
12984
+ width: min(70%, 460px);
12985
+ height: 100%;
12986
+ margin-inline-start: calc(min(70%, 460px) / -2);
12987
+ border-radius: calc(var(--pimolu-radius-lg, 14px) + 4px);
12988
+ border: 1px solid var(--pimolu-border);
12989
+ background: var(--pimolu-surface);
12990
+ overflow: hidden;
12991
+ transform-origin: center top;
12992
+ }
12993
+
12994
+ /* src/arc-carousel.css */
12995
+ .pimolu-arc-carousel .pimolu-carousel__viewport {
12996
+ height: clamp(260px, 44vw, 400px);
12997
+ }
12998
+ .pimolu-arc-carousel .pimolu-carousel__slide {
12999
+ position: absolute;
13000
+ inset-block-end: 0;
13001
+ inset-inline-start: 50%;
13002
+ width: min(42%, 340px);
13003
+ height: 82%;
13004
+ margin-inline-start: calc(min(42%, 340px) / -2);
13005
+ border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
13006
+ border: 1px solid var(--pimolu-border);
13007
+ background: var(--pimolu-surface);
13008
+ overflow: hidden;
13009
+ transform-origin: center bottom;
13010
+ }
13011
+ @media (max-width: 640px) {
13012
+ .pimolu-arc-carousel .pimolu-carousel__slide {
13013
+ display: none;
13014
+ width: min(60%, 340px);
13015
+ margin-inline-start: calc(min(60%, 340px) / -2);
13016
+ }
13017
+ .pimolu-arc-carousel .pimolu-carousel__slide[data-active=true],
13018
+ .pimolu-arc-carousel .pimolu-carousel__slide[data-distance="1"] {
13019
+ display: block;
13020
+ }
13021
+ }
13022
+
13023
+ /* src/carousel-base.css */
13024
+ :root {
13025
+ --pimolu-control-background: var(--pimolu-background);
13026
+ --pimolu-control-foreground: var(--pimolu-foreground);
13027
+ --pimolu-carousel-controls-center: 50%;
13028
+ --pimolu-peek-slide-width: min(440px, 68vw);
13029
+ --pimolu-carousel-thumbnail-aspect-ratio: 1 / 1;
13030
+ }
13031
+ .pimolu-carousel-root {
13032
+ position: relative;
13033
+ display: grid;
13034
+ gap: 12px;
13035
+ box-sizing: border-box;
13036
+ min-width: 0;
13037
+ max-width: 100%;
13038
+ color: var(--pimolu-foreground);
13039
+ font-family: var(--pimolu-font-body, inherit);
13040
+ --pimolu-carousel-gap: 16px;
13041
+ --pimolu-carousel-per-view: 1;
13042
+ }
13043
+ .pimolu-carousel-root > .pimolu-carousel__viewport {
13044
+ display: block;
13045
+ overflow: visible;
13046
+ border-radius: 0;
13047
+ scroll-snap-type: none;
13048
+ }
13049
+ .pimolu-carousel-root > .pimolu-carousel__viewport[data-scroll=false] {
13050
+ overflow: hidden;
13051
+ }
13052
+ .pimolu-carousel__viewport {
13053
+ position: relative;
13054
+ box-sizing: border-box;
13055
+ min-width: 0;
13056
+ outline: none;
13057
+ }
13058
+ .pimolu-carousel__viewport:focus-visible {
13059
+ outline: 2px solid var(--pimolu-focus-ring, currentColor);
13060
+ outline-offset: 3px;
13061
+ }
13062
+ .pimolu-carousel__viewport[data-scroll=true] {
13063
+ display: flex;
13064
+ gap: var(--pimolu-carousel-gap, 16px);
13065
+ overflow-x: auto;
13066
+ overflow-y: hidden;
13067
+ overscroll-behavior-x: contain;
13068
+ scroll-behavior: smooth;
13069
+ scroll-snap-type: x mandatory;
13070
+ scrollbar-width: none;
13071
+ }
13072
+ .pimolu-carousel__viewport[data-scroll=true]::-webkit-scrollbar {
13073
+ display: none;
13074
+ }
13075
+ .pimolu-carousel__slide {
13076
+ box-sizing: border-box;
13077
+ min-width: 0;
13078
+ transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1), opacity 480ms ease;
13079
+ }
13080
+ .pimolu-carousel__viewport[data-scroll=true] .pimolu-carousel__slide {
13081
+ flex: 1 0 calc((100% - (var(--pimolu-carousel-per-view, 1) - 1) * var(--pimolu-carousel-gap, 16px)) / var(--pimolu-carousel-per-view, 1));
13082
+ scroll-snap-align: start;
13083
+ }
13084
+ .pimolu-carousel__viewport[data-effect=peek] .pimolu-carousel__slide {
13085
+ flex: 0 0 var(--pimolu-peek-slide-width, min(440px, 68vw));
13086
+ scroll-snap-align: center;
13087
+ }
13088
+ .pimolu-carousel__control {
13089
+ position: absolute;
13090
+ top: var(--pimolu-carousel-controls-center, 50%);
13091
+ z-index: 20;
13092
+ display: inline-flex;
13093
+ align-items: center;
13094
+ justify-content: center;
13095
+ box-sizing: border-box;
13096
+ width: 2.5rem;
13097
+ height: 2.5rem;
13098
+ padding: 0;
13099
+ border: 1px solid var(--pimolu-border, currentColor);
13100
+ border-radius: var(--pimolu-radius-full, 999px);
13101
+ background: var(--pimolu-control-background, var(--pimolu-background, Canvas));
13102
+ color: var(--pimolu-control-foreground, var(--pimolu-foreground));
13103
+ box-shadow: var(--pimolu-shadow-raised, 0 2px 8px rgb(0 0 0 / 18%));
13104
+ cursor: pointer;
13105
+ transform: translateY(-50%);
13106
+ transition: background-color 150ms, opacity 150ms;
13107
+ }
13108
+ .pimolu-carousel__control--previous {
13109
+ inset-inline-start: var(--pimolu-spacing-2, 8px);
13110
+ }
13111
+ .pimolu-carousel__control--next {
13112
+ inset-inline-end: var(--pimolu-spacing-2, 8px);
13113
+ }
13114
+ .pimolu-carousel__control:hover:not(:disabled) {
13115
+ background: var(--pimolu-muted, var(--pimolu-background, Canvas));
13116
+ }
13117
+ .pimolu-carousel__control:disabled {
13118
+ opacity: 0.35;
13119
+ cursor: default;
13120
+ }
13121
+ .pimolu-carousel__control:focus-visible {
13122
+ outline: 2px solid var(--pimolu-focus-ring, currentColor);
13123
+ outline-offset: 2px;
13124
+ }
13125
+ .pimolu-carousel__control svg {
13126
+ display: block;
13127
+ width: 1.25rem;
13128
+ height: 1.25rem;
13129
+ }
13130
+ @media (max-width: 640px) {
13131
+ [data-controls-mobile=hidden] .pimolu-carousel__control {
13132
+ display: none;
13133
+ }
13134
+ }
13135
+ .pimolu-carousel__dots {
13136
+ display: flex;
13137
+ flex-wrap: wrap;
13138
+ align-items: center;
13139
+ justify-content: center;
13140
+ gap: 2px;
13141
+ min-width: 0;
13142
+ }
13143
+ .pimolu-carousel__dot {
13144
+ display: inline-grid;
13145
+ place-items: center;
13146
+ box-sizing: border-box;
13147
+ width: 1.5rem;
13148
+ height: 1.5rem;
13149
+ padding: 0;
13150
+ border: 0;
13151
+ border-radius: var(--pimolu-radius-full, 999px);
13152
+ background: transparent;
13153
+ cursor: pointer;
13154
+ }
13155
+ .pimolu-carousel__dot::before {
13156
+ content: "";
13157
+ display: block;
13158
+ width: 0.5rem;
13159
+ height: 0.5rem;
13160
+ border-radius: var(--pimolu-radius-full, 999px);
13161
+ background: color-mix(in srgb, var(--pimolu-foreground, currentColor) 28%, transparent);
13162
+ transition: width 150ms, background-color 150ms;
13163
+ }
13164
+ .pimolu-carousel__dot[data-active=true]::before {
13165
+ width: 1.25rem;
13166
+ background: var(--pimolu-primary, var(--pimolu-foreground, currentColor));
13167
+ }
13168
+ .pimolu-carousel__dot:focus-visible {
13169
+ outline: 2px solid var(--pimolu-focus-ring, currentColor);
13170
+ outline-offset: 2px;
13171
+ }
13172
+ .pimolu-carousel__thumbnails {
13173
+ display: flex;
13174
+ gap: 8px;
13175
+ min-width: 0;
13176
+ overflow-x: auto;
13177
+ scrollbar-width: none;
13178
+ }
13179
+ .pimolu-carousel__thumbnails::-webkit-scrollbar {
13180
+ display: none;
13181
+ }
13182
+ .pimolu-carousel__thumbnail {
13183
+ flex: 0 0 auto;
13184
+ box-sizing: border-box;
13185
+ width: 72px;
13186
+ padding: 2px;
13187
+ border: 2px solid transparent;
13188
+ border-radius: calc(var(--pimolu-radius-sm, 6px) + 4px);
13189
+ background: transparent;
13190
+ cursor: pointer;
13191
+ opacity: 0.6;
13192
+ transition: opacity 150ms, border-color 150ms;
13193
+ }
13194
+ .pimolu-carousel__thumbnail img {
13195
+ display: block;
13196
+ width: 100%;
13197
+ height: auto;
13198
+ aspect-ratio: var(--pimolu-carousel-thumbnail-aspect-ratio, 1 / 1);
13199
+ border-radius: var(--pimolu-radius-sm, 6px);
13200
+ object-fit: cover;
13201
+ }
13202
+ .pimolu-carousel__thumbnail[data-active=true] {
13203
+ border-color: var(--pimolu-primary);
13204
+ opacity: 1;
13205
+ }
13206
+ .pimolu-carousel__thumbnail:hover {
13207
+ opacity: 1;
13208
+ }
13209
+ .pimolu-carousel__thumbnail:focus-visible {
13210
+ outline: 2px solid var(--pimolu-focus-ring, currentColor);
13211
+ outline-offset: 2px;
13212
+ }
13213
+ .pimolu-carousel__live {
13214
+ position: absolute;
13215
+ width: 1px;
13216
+ height: 1px;
13217
+ margin: -1px;
13218
+ padding: 0;
13219
+ overflow: hidden;
13220
+ clip: rect(0 0 0 0);
13221
+ white-space: nowrap;
13222
+ border: 0;
13223
+ }
13224
+ @media (prefers-reduced-motion: reduce) {
13225
+ .pimolu-carousel__viewport[data-scroll=true] {
13226
+ scroll-behavior: auto;
13227
+ }
13228
+ .pimolu-carousel__slide,
13229
+ .pimolu-carousel__control,
13230
+ .pimolu-carousel__dot::before,
13231
+ .pimolu-carousel__thumbnail {
13232
+ transition: none;
13233
+ }
13234
+ }
13235
+ @media (forced-colors: active) {
13236
+ .pimolu-carousel__control {
13237
+ border-color: CanvasText;
13238
+ background: Canvas;
13239
+ color: CanvasText;
13240
+ box-shadow: none;
13241
+ }
13242
+ .pimolu-carousel__dot::before {
13243
+ background: CanvasText;
13244
+ }
13245
+ .pimolu-carousel__dot[data-active=true]::before {
13246
+ background: Highlight;
13247
+ }
13248
+ .pimolu-carousel__thumbnail {
13249
+ border-color: CanvasText;
13250
+ }
13251
+ .pimolu-carousel__thumbnail[data-active=true] {
13252
+ border-color: Highlight;
13253
+ }
13254
+ }
13255
+
13256
+ /* src/multi-carousel.css */
13257
+ .pimolu-multi-carousel .pimolu-carousel__viewport {
13258
+ scroll-snap-type: x mandatory;
13259
+ }
13260
+ .pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] {
13261
+ justify-content: safe center;
13262
+ }
13263
+ .pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] > .pimolu-carousel__slide {
13264
+ flex-grow: 0;
13265
+ }
13266
+ .pimolu-multi-carousel .pimolu-carousel__slide {
13267
+ border-radius: calc(var(--pimolu-radius-lg, 14px) + 2px);
13268
+ border: 1px solid var(--pimolu-border);
13269
+ background: var(--pimolu-surface);
13270
+ overflow: hidden;
13271
+ }
13272
+ .pimolu-multi-carousel[data-slide-appearance=plain] .pimolu-carousel__slide {
13273
+ border: 0;
13274
+ border-radius: 0;
13275
+ background: transparent;
13276
+ overflow: visible;
13277
+ }
13278
+ @media (max-width: 640px) {
13279
+ .pimolu-multi-carousel .pimolu-carousel__viewport[data-scroll=true] > .pimolu-carousel__slide {
13280
+ min-width: min(280px, 78%);
13281
+ }
13282
+ }
13283
+
13284
+ /* src/resizable.css */
13285
+ .pimolu-resizable {
13286
+ --pimolu-resizable-split: 50%;
13287
+ position: relative;
13288
+ display: grid;
13289
+ box-sizing: border-box;
13290
+ width: 100%;
13291
+ min-width: 0;
13292
+ min-height: 0;
13293
+ color: var(--pimolu-foreground);
13294
+ font-family: var(--pimolu-font-body, inherit);
13295
+ }
13296
+ .pimolu-resizable[data-orientation=vertical] {
13297
+ min-height: 12rem;
12120
13298
  }
12121
13299
  .pimolu-resizable[data-dragging=true] {
12122
13300
  user-select: none;
@@ -12289,11 +13467,13 @@ button.pimolu-list__row:focus-visible {
12289
13467
  /* src/dashboard-layout.css */
12290
13468
  .pimolu-dashboard-layout {
12291
13469
  --pimolu-dashboard-sidebar-width: 16rem;
13470
+ --pimolu-dashboard-sidebar-track: var(--pimolu-dashboard-sidebar-width);
12292
13471
  --pimolu-dashboard-aside-width: 20rem;
12293
13472
  display: grid;
12294
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
13473
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
12295
13474
  grid-template-areas: "sidebar main";
12296
13475
  box-sizing: border-box;
13476
+ min-width: 0;
12297
13477
  min-height: 100dvh;
12298
13478
  background: var(--pimolu-background);
12299
13479
  color: var(--pimolu-foreground);
@@ -12304,43 +13484,63 @@ button.pimolu-list__row:focus-visible {
12304
13484
  grid-template-areas: "main";
12305
13485
  }
12306
13486
  .pimolu-dashboard-layout[data-aside=true] {
12307
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
13487
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
12308
13488
  grid-template-areas: "sidebar main aside";
12309
13489
  }
12310
13490
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
12311
13491
  grid-template-columns: minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
12312
13492
  grid-template-areas: "main aside";
12313
13493
  }
12314
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]) {
12315
- --pimolu-dashboard-sidebar-width: 3.75rem;
12316
- grid-template-columns: 3.75rem minmax(0, 1fr);
13494
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
13495
+ --pimolu-dashboard-sidebar-track: 3.75rem;
12317
13496
  }
12318
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
12319
- grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-dashboard-aside-width);
12320
- }
12321
- @container (max-width: 1100px) {
13497
+ @container (max-width: 900px) {
12322
13498
  .pimolu-dashboard-layout[data-aside=true] {
12323
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
13499
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
12324
13500
  grid-template-areas: "sidebar main" "aside aside";
12325
13501
  }
12326
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
12327
- grid-template-columns: 3.75rem minmax(0, 1fr);
12328
- }
12329
13502
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
12330
13503
  grid-template-columns: minmax(0, 1fr);
12331
13504
  grid-template-areas: "main" "aside";
12332
13505
  }
12333
13506
  .pimolu-dashboard-layout__aside {
12334
- border-inline-start: 0;
12335
- border-block-start: 1px solid var(--pimolu-border);
13507
+ border-inline-start: 0;
13508
+ border-block-start: 1px solid var(--pimolu-border);
13509
+ }
13510
+ }
13511
+ @container (max-width: 720px) {
13512
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
13513
+ display: flex;
13514
+ min-height: 40px;
13515
+ padding-block: 0;
13516
+ }
13517
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
13518
+ position: absolute;
13519
+ }
13520
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar,
13521
+ .pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
13522
+ position: static;
13523
+ max-height: none;
13524
+ overflow: visible;
13525
+ border-inline-end: 0;
13526
+ border-block-end: 1px solid var(--pimolu-border);
13527
+ }
13528
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
13529
+ width: 100%;
13530
+ min-height: auto;
13531
+ border-inline-end: 0;
13532
+ }
13533
+ .pimolu-dashboard-layout__content,
13534
+ .pimolu-dashboard-layout__aside {
13535
+ padding: var(--pimolu-spacing-4, 16px);
12336
13536
  }
12337
- }
12338
- @container (max-width: 720px) {
12339
- .pimolu-dashboard-layout {
13537
+ .pimolu-dashboard-layout,
13538
+ .pimolu-dashboard-layout[data-aside],
13539
+ .pimolu-dashboard-layout[data-sidebar][data-aside] {
12340
13540
  grid-template-columns: minmax(0, 1fr);
12341
13541
  grid-template-areas: "sidebar" "main";
12342
13542
  }
12343
- .pimolu-dashboard-layout[data-aside=true] {
13543
+ .pimolu-dashboard-layout[data-sidebar][data-aside=true] {
12344
13544
  grid-template-areas: "sidebar" "main" "aside";
12345
13545
  }
12346
13546
  .pimolu-dashboard-layout[data-sidebar=false] {
@@ -12394,9 +13594,9 @@ button.pimolu-list__row:focus-visible {
12394
13594
  border-inline-start: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
12395
13595
  background: var(--pimolu-surface);
12396
13596
  }
12397
- @media (max-width: 1100px) {
13597
+ @media (max-width: 900px) {
12398
13598
  .pimolu-dashboard-layout[data-aside=true] {
12399
- grid-template-columns: var(--pimolu-dashboard-sidebar-width) minmax(0, 1fr);
13599
+ grid-template-columns: var(--pimolu-dashboard-sidebar-track) minmax(0, 1fr);
12400
13600
  grid-template-areas: "sidebar main" "aside aside";
12401
13601
  }
12402
13602
  .pimolu-dashboard-layout[data-sidebar=false][data-aside=true] {
@@ -12408,23 +13608,43 @@ button.pimolu-list__row:focus-visible {
12408
13608
  border-block-start: 1px solid var(--pimolu-border);
12409
13609
  }
12410
13610
  }
12411
- @media (max-width: 860px) {
12412
- .pimolu-dashboard-layout {
13611
+ @media (max-width: 720px) {
13612
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
13613
+ display: flex;
13614
+ min-height: 40px;
13615
+ padding-block: 0;
13616
+ }
13617
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
13618
+ position: absolute;
13619
+ }
13620
+ .pimolu-dashboard-layout[data-sticky-sidebar=true] > .pimolu-dashboard-layout__sidebar {
13621
+ position: static;
13622
+ max-height: none;
13623
+ overflow: visible;
13624
+ }
13625
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar > .pimolu-sidebar {
13626
+ width: 100%;
13627
+ min-height: auto;
13628
+ border-inline-end: 0;
13629
+ }
13630
+ .pimolu-dashboard-layout,
13631
+ .pimolu-dashboard-layout[data-aside],
13632
+ .pimolu-dashboard-layout[data-sidebar][data-aside] {
12413
13633
  grid-template-columns: minmax(0, 1fr);
12414
13634
  grid-template-areas: "sidebar" "main";
12415
13635
  }
12416
- .pimolu-dashboard-layout[data-aside=true] {
13636
+ .pimolu-dashboard-layout[data-sidebar][data-aside=true] {
12417
13637
  grid-template-areas: "sidebar" "main" "aside";
12418
13638
  }
12419
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
12420
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
13639
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
13640
+ .pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
12421
13641
  grid-template-columns: minmax(0, 1fr);
12422
13642
  }
12423
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
13643
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
12424
13644
  width: 100%;
12425
13645
  min-height: 60px;
12426
13646
  }
12427
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
13647
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
12428
13648
  display: none;
12429
13649
  }
12430
13650
  .pimolu-dashboard-layout[data-sidebar=false] {
@@ -12454,17 +13674,39 @@ button.pimolu-list__row:focus-visible {
12454
13674
  }
12455
13675
  }
12456
13676
  @container (max-width: 720px) {
12457
- .pimolu-dashboard-layout:has(.pimolu-sidebar[data-collapsed=true]),
12458
- .pimolu-dashboard-layout[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
13677
+ .pimolu-dashboard-layout:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]),
13678
+ .pimolu-dashboard-layout[data-aside=true]:has(> .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true]) {
12459
13679
  grid-template-columns: minmax(0, 1fr);
12460
13680
  }
12461
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] {
13681
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] {
12462
13682
  width: 100%;
12463
13683
  min-height: 60px;
12464
13684
  }
12465
- .pimolu-dashboard-layout .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
13685
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
13686
+ display: none;
13687
+ }
13688
+ }
13689
+ @container (max-width: 720px) {
13690
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
13691
+ display: contents;
13692
+ }
13693
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
12466
13694
  display: none;
12467
13695
  }
13696
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
13697
+ justify-content: flex-start;
13698
+ padding-inline: 8px 100px;
13699
+ }
13700
+ .pimolu-dashboard-layout > .pimolu-dashboard-layout__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
13701
+ position: absolute;
13702
+ inset-inline-end: 64px;
13703
+ inset-block-start: 12px;
13704
+ margin: 0;
13705
+ padding: 0;
13706
+ border: 0;
13707
+ height: 40px;
13708
+ align-items: center;
13709
+ }
12468
13710
  }
12469
13711
 
12470
13712
  /* src/data-grid.css */
@@ -12883,6 +14125,16 @@ button.pimolu-list__row:focus-visible {
12883
14125
  .pimolu-tree-table__table {
12884
14126
  width: 100%;
12885
14127
  }
14128
+ .pimolu-tree-table__table > caption {
14129
+ caption-side: top;
14130
+ padding: 12px 16px;
14131
+ border-block-end: 1px solid var(--pimolu-border);
14132
+ background: var(--pimolu-surface, var(--pimolu-background));
14133
+ color: var(--pimolu-foreground);
14134
+ font-size: 0.8125rem;
14135
+ font-weight: 600;
14136
+ text-align: start;
14137
+ }
12886
14138
  .pimolu-tree-table__head,
12887
14139
  .pimolu-tree-table__cell {
12888
14140
  white-space: nowrap;
@@ -13023,10 +14275,13 @@ button.pimolu-list__row:focus-visible {
13023
14275
 
13024
14276
  /* src/chart.css */
13025
14277
  .pimolu-chart {
14278
+ position: relative;
13026
14279
  --pimolu-chart-axis: var(--pimolu-muted-foreground, #6b7280);
13027
14280
  --pimolu-chart-grid: var(--pimolu-border, rgba(0, 0, 0, 0.12));
13028
14281
  --pimolu-chart-surface: var(--pimolu-surface, #ffffff);
13029
14282
  --pimolu-chart-color: var(--pimolu-primary, #4f46e5);
14283
+ --pimolu-chart-area-fill: var(--pimolu-chart-color);
14284
+ --pimolu-chart-area-opacity: 0.16;
13030
14285
  --pimolu-chart-label-size: 13px;
13031
14286
  --pimolu-chart-axis-title-size: 13px;
13032
14287
  --pimolu-chart-value-size: 12px;
@@ -13044,6 +14299,56 @@ button.pimolu-list__row:focus-visible {
13044
14299
  position: relative;
13045
14300
  width: 100%;
13046
14301
  min-width: 0;
14302
+ border-radius: var(--pimolu-radius-md, 8px);
14303
+ touch-action: pan-y;
14304
+ }
14305
+ .pimolu-chart__canvas:focus-visible {
14306
+ outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary, #4f46e5));
14307
+ outline-offset: 4px;
14308
+ }
14309
+ .pimolu-chart__cursor {
14310
+ position: absolute;
14311
+ inset-block: 5% 12%;
14312
+ border-inline-start: 1px dashed var(--pimolu-chart-axis);
14313
+ opacity: 0.65;
14314
+ pointer-events: none;
14315
+ }
14316
+ .pimolu-chart__tooltip {
14317
+ position: absolute;
14318
+ z-index: 2;
14319
+ inset-block-start: 8px;
14320
+ inset-inline-end: 8px;
14321
+ box-sizing: border-box;
14322
+ width: max-content;
14323
+ max-width: calc(100% - 16px);
14324
+ padding: 12px;
14325
+ border: 1px solid var(--pimolu-chart-grid);
14326
+ border-radius: var(--pimolu-radius-md, 8px);
14327
+ background: var(--pimolu-chart-surface);
14328
+ color: var(--pimolu-surface-foreground, var(--pimolu-foreground, #111827));
14329
+ box-shadow: var(--pimolu-shadow-raised, none);
14330
+ font-size: var(--pimolu-chart-legend-size);
14331
+ line-height: 1.5;
14332
+ overflow-wrap: anywhere;
14333
+ }
14334
+ .pimolu-chart__tooltip > strong {
14335
+ display: block;
14336
+ margin-block-end: 6px;
14337
+ }
14338
+ .pimolu-chart__tooltip-row {
14339
+ display: grid;
14340
+ grid-template-columns: 8px minmax(0, 1fr) auto;
14341
+ align-items: center;
14342
+ gap: 8px;
14343
+ }
14344
+ .pimolu-chart__tooltip-row b {
14345
+ font-variant-numeric: tabular-nums;
14346
+ text-align: end;
14347
+ }
14348
+ .pimolu-chart__tooltip-row .pimolu-chart__legend-swatch {
14349
+ width: 8px;
14350
+ height: 8px;
14351
+ border-radius: 50%;
13047
14352
  }
13048
14353
  .pimolu-chart__svg {
13049
14354
  display: block;
@@ -13057,6 +14362,8 @@ button.pimolu-list__row:focus-visible {
13057
14362
  stroke-width: 1;
13058
14363
  shape-rendering: crispEdges;
13059
14364
  vector-effect: non-scaling-stroke;
14365
+ stroke-dasharray: 3 5;
14366
+ opacity: 0.7;
13060
14367
  }
13061
14368
  .pimolu-chart__axis {
13062
14369
  stroke: var(--pimolu-chart-grid);
@@ -13098,12 +14405,13 @@ button.pimolu-list__row:focus-visible {
13098
14405
  stroke-width: 2.5;
13099
14406
  stroke-linecap: round;
13100
14407
  stroke-linejoin: round;
14408
+ vector-effect: non-scaling-stroke;
13101
14409
  stroke-dasharray: 1;
13102
14410
  animation: pimolu-chart-draw 650ms ease-out both;
13103
14411
  }
13104
14412
  .pimolu-chart__area {
13105
- fill: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5) );
13106
- fill-opacity: 0.16;
14413
+ fill: var(--pimolu-chart-area-fill, var(--pimolu-chart-color, var(--pimolu-primary, #4f46e5)));
14414
+ fill-opacity: var(--pimolu-chart-area-opacity, 0.16);
13107
14415
  stroke: none;
13108
14416
  animation: pimolu-chart-fade 420ms ease-out both;
13109
14417
  }
@@ -13126,6 +14434,36 @@ button.pimolu-list__row:focus-visible {
13126
14434
  .pimolu-chart__donut-track {
13127
14435
  stroke: var( --pimolu-muted, rgba(0, 0, 0, 0.08) );
13128
14436
  }
14437
+ .pimolu-chart--donut {
14438
+ flex-flow: row wrap;
14439
+ align-items: center;
14440
+ gap: 20px;
14441
+ }
14442
+ .pimolu-chart--donut .pimolu-chart__canvas {
14443
+ flex: 1 1 160px;
14444
+ max-width: 260px;
14445
+ margin-inline: auto;
14446
+ }
14447
+ .pimolu-chart--donut .pimolu-chart__legend {
14448
+ flex: 1 1 120px;
14449
+ flex-direction: column;
14450
+ gap: 12px;
14451
+ }
14452
+ .pimolu-chart--donut .pimolu-chart__legend-item {
14453
+ display: grid;
14454
+ grid-template-columns: 10px minmax(0, 1fr);
14455
+ }
14456
+ .pimolu-chart--donut .pimolu-chart__legend-value {
14457
+ grid-column: 2;
14458
+ font-variant-numeric: tabular-nums;
14459
+ }
14460
+ .pimolu-chart--donut .pimolu-chart__tooltip-row {
14461
+ grid-template-columns: 8px minmax(0, 1fr);
14462
+ }
14463
+ .pimolu-chart--donut .pimolu-chart__tooltip-row b {
14464
+ grid-column: 2;
14465
+ text-align: start;
14466
+ }
13129
14467
  .pimolu-chart__segment {
13130
14468
  stroke: var( --pimolu-chart-color, var(--pimolu-primary, #4f46e5) );
13131
14469
  transition: opacity 160ms ease;
@@ -13263,10 +14601,21 @@ button.pimolu-list__row:focus-visible {
13263
14601
  }
13264
14602
  }
13265
14603
  @media (forced-colors: active) {
14604
+ .pimolu-chart__tooltip {
14605
+ background: Canvas;
14606
+ color: CanvasText;
14607
+ border-color: CanvasText;
14608
+ }
14609
+ .pimolu-chart__cursor {
14610
+ border-color: CanvasText;
14611
+ }
13266
14612
  .pimolu-chart__bar,
13267
14613
  .pimolu-chart__area {
13268
14614
  fill: CanvasText;
13269
14615
  }
14616
+ .pimolu-chart__area {
14617
+ fill-opacity: 0.1;
14618
+ }
13270
14619
  .pimolu-chart__line,
13271
14620
  .pimolu-chart__segment {
13272
14621
  stroke: CanvasText;
@@ -13315,12 +14664,23 @@ button.pimolu-list__row:focus-visible {
13315
14664
  justify-self: start;
13316
14665
  }
13317
14666
  .pimolu-form__error {
14667
+ animation: pimolu-form-feedback-in 180ms cubic-bezier(0.16, 1, 0.3, 1);
13318
14668
  margin: 0;
13319
14669
  color: var(--pimolu-danger, #dc2626);
13320
14670
  font-size: 0.8125rem;
13321
14671
  line-height: 1.4;
13322
14672
  overflow-wrap: anywhere;
13323
14673
  }
14674
+ @keyframes pimolu-form-feedback-in {
14675
+ from {
14676
+ opacity: 0;
14677
+ transform: translateY(-3px);
14678
+ }
14679
+ to {
14680
+ opacity: 1;
14681
+ transform: translateY(0);
14682
+ }
14683
+ }
13324
14684
  @media (forced-colors: active) {
13325
14685
  .pimolu-form__error {
13326
14686
  color: LinkText;
@@ -13368,7 +14728,7 @@ button.pimolu-list__row:focus-visible {
13368
14728
  min-height: var(--pimolu-masked-input-height);
13369
14729
  padding-inline: var(--pimolu-masked-input-padding);
13370
14730
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
13371
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
14731
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
13372
14732
  border-radius: var(--pimolu-radius-md, 8px);
13373
14733
  box-shadow: var(--pimolu-masked-input-elevation);
13374
14734
  transition:
@@ -13503,7 +14863,7 @@ button.pimolu-list__row:focus-visible {
13503
14863
  min-height: var(--pimolu-currency-input-height);
13504
14864
  padding-inline: var(--pimolu-currency-input-padding);
13505
14865
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
13506
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
14866
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
13507
14867
  border-radius: var(--pimolu-radius-md, 8px);
13508
14868
  box-shadow: var(--pimolu-currency-input-elevation);
13509
14869
  transition:
@@ -13662,7 +15022,7 @@ button.pimolu-list__row:focus-visible {
13662
15022
  min-height: var(--pimolu-phone-input-height);
13663
15023
  padding-inline: var(--pimolu-phone-input-padding);
13664
15024
  background: var( --pimolu-surface, var(--pimolu-background, #ffffff) );
13665
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
15025
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border, #e2e8f0));
13666
15026
  border-radius: var(--pimolu-radius-md, 8px);
13667
15027
  box-shadow: var(--pimolu-phone-input-elevation);
13668
15028
  transition:
@@ -13834,7 +15194,7 @@ button.pimolu-list__row:focus-visible {
13834
15194
  padding: 10px 12px;
13835
15195
  background: var(--pimolu-mentions-surface);
13836
15196
  color: var(--pimolu-foreground);
13837
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
15197
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
13838
15198
  border-radius: var(--pimolu-radius-md, 8px);
13839
15199
  font-family: inherit;
13840
15200
  font-size: 0.875rem;
@@ -14040,7 +15400,7 @@ button.pimolu-list__row:focus-visible {
14040
15400
  padding-inline-end: 64px;
14041
15401
  background: var(--pimolu-cascader-surface);
14042
15402
  color: var(--pimolu-foreground);
14043
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
15403
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
14044
15404
  border-radius: var(--pimolu-radius-md, 8px);
14045
15405
  font-family: inherit;
14046
15406
  font-size: 0.875rem;
@@ -15710,18 +17070,20 @@ button.pimolu-list__row:focus-visible {
15710
17070
  /* src/app-shell.css */
15711
17071
  .pimolu-app-shell {
15712
17072
  --pimolu-app-shell-sidebar-width: 16rem;
17073
+ --pimolu-app-shell-sidebar-track: var(--pimolu-app-shell-sidebar-width);
15713
17074
  --pimolu-app-shell-aside-width: 18rem;
15714
17075
  display: grid;
15715
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr);
17076
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
15716
17077
  grid-template-areas: "header header" "sidebar main" "footer footer";
15717
17078
  box-sizing: border-box;
17079
+ min-width: 0;
15718
17080
  min-height: 100dvh;
15719
17081
  background: var(--pimolu-background);
15720
17082
  color: var(--pimolu-foreground);
15721
17083
  font-family: var(--pimolu-font-body, inherit);
15722
17084
  }
15723
17085
  .pimolu-app-shell[data-aside=true] {
15724
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
17086
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
15725
17087
  grid-template-areas: "header header header" "sidebar main aside" "footer footer footer";
15726
17088
  }
15727
17089
  .pimolu-app-shell[data-sidebar=false] {
@@ -15732,21 +17094,14 @@ button.pimolu-list__row:focus-visible {
15732
17094
  grid-template-columns: minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
15733
17095
  grid-template-areas: "header header" "main aside" "footer footer";
15734
17096
  }
15735
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]) {
15736
- --pimolu-app-shell-sidebar-width: 3.75rem;
15737
- grid-template-columns: 3.75rem minmax(0, 1fr);
15738
- }
15739
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
15740
- grid-template-columns: 3.75rem minmax(0, 1fr) var(--pimolu-app-shell-aside-width);
17097
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
17098
+ --pimolu-app-shell-sidebar-track: 3.75rem;
15741
17099
  }
15742
- @container (max-width: 1100px) {
17100
+ @container (max-width: 900px) {
15743
17101
  .pimolu-app-shell[data-aside=true] {
15744
- grid-template-columns: var(--pimolu-app-shell-sidebar-width) minmax(0, 1fr);
17102
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
15745
17103
  grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
15746
17104
  }
15747
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
15748
- grid-template-columns: 3.75rem minmax(0, 1fr);
15749
- }
15750
17105
  .pimolu-app-shell[data-sidebar=false][data-aside=true] {
15751
17106
  grid-template-columns: minmax(0, 1fr);
15752
17107
  grid-template-areas: "header" "main" "aside" "footer";
@@ -15757,6 +17112,27 @@ button.pimolu-list__row:focus-visible {
15757
17112
  }
15758
17113
  }
15759
17114
  @container (max-width: 720px) {
17115
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
17116
+ display: flex;
17117
+ min-height: 40px;
17118
+ padding-block: 0;
17119
+ }
17120
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
17121
+ position: absolute;
17122
+ }
17123
+ .pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
17124
+ width: 100%;
17125
+ min-height: auto;
17126
+ border-inline-end: 0;
17127
+ }
17128
+ .pimolu-app-shell__sidebar {
17129
+ border-inline-end: 0;
17130
+ border-block-end: 1px solid var(--pimolu-border);
17131
+ }
17132
+ .pimolu-app-shell__main,
17133
+ .pimolu-app-shell__aside {
17134
+ padding: var(--pimolu-spacing-4, 16px);
17135
+ }
15760
17136
  .pimolu-app-shell,
15761
17137
  .pimolu-app-shell[data-aside=true],
15762
17138
  .pimolu-app-shell[data-sidebar=false],
@@ -15813,7 +17189,34 @@ button.pimolu-list__row:focus-visible {
15813
17189
  color: var(--pimolu-muted-foreground);
15814
17190
  font-size: 0.8125rem;
15815
17191
  }
15816
- @media (max-width: 960px) {
17192
+ @media (min-width: 721px) and (max-width: 900px) {
17193
+ .pimolu-app-shell[data-aside=true] {
17194
+ grid-template-columns: var(--pimolu-app-shell-sidebar-track) minmax(0, 1fr);
17195
+ grid-template-areas: "header header" "sidebar main" "aside aside" "footer footer";
17196
+ }
17197
+ .pimolu-app-shell[data-sidebar=false][data-aside=true] {
17198
+ grid-template-columns: minmax(0, 1fr);
17199
+ grid-template-areas: "header" "main" "aside" "footer";
17200
+ }
17201
+ .pimolu-app-shell__aside {
17202
+ border-inline-start: 0;
17203
+ border-block-start: 1px solid var(--pimolu-border);
17204
+ }
17205
+ }
17206
+ @media (max-width: 720px) {
17207
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header {
17208
+ display: flex;
17209
+ min-height: 40px;
17210
+ padding-block: 0;
17211
+ }
17212
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__toggle {
17213
+ position: absolute;
17214
+ }
17215
+ .pimolu-app-shell > .pimolu-app-shell__sidebar > .pimolu-sidebar {
17216
+ width: 100%;
17217
+ min-height: auto;
17218
+ border-inline-end: 0;
17219
+ }
15817
17220
  .pimolu-app-shell,
15818
17221
  .pimolu-app-shell[data-aside=true],
15819
17222
  .pimolu-app-shell[data-sidebar=false],
@@ -15821,15 +17224,15 @@ button.pimolu-list__row:focus-visible {
15821
17224
  grid-template-columns: minmax(0, 1fr);
15822
17225
  grid-template-areas: "header" "sidebar" "main" "aside" "footer";
15823
17226
  }
15824
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
15825
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
17227
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
17228
+ .pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
15826
17229
  grid-template-columns: minmax(0, 1fr);
15827
17230
  }
15828
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
17231
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
15829
17232
  width: 100%;
15830
17233
  min-height: 60px;
15831
17234
  }
15832
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
17235
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
15833
17236
  display: none;
15834
17237
  }
15835
17238
  .pimolu-app-shell[data-sidebar=false] {
@@ -15867,17 +17270,39 @@ button.pimolu-list__row:focus-visible {
15867
17270
  }
15868
17271
  }
15869
17272
  @container (max-width: 720px) {
15870
- .pimolu-app-shell:has(.pimolu-sidebar[data-collapsed=true]),
15871
- .pimolu-app-shell[data-aside=true]:has(.pimolu-sidebar[data-collapsed=true]) {
17273
+ .pimolu-app-shell:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]),
17274
+ .pimolu-app-shell[data-aside=true]:has(> .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true]) {
15872
17275
  grid-template-columns: minmax(0, 1fr);
15873
17276
  }
15874
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] {
17277
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] {
15875
17278
  width: 100%;
15876
17279
  min-height: 60px;
15877
17280
  }
15878
- .pimolu-app-shell .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
17281
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__content {
17282
+ display: none;
17283
+ }
17284
+ }
17285
+ @container (max-width: 720px) {
17286
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__expanded {
17287
+ display: contents;
17288
+ }
17289
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header .pimolu-sidebar__compact {
15879
17290
  display: none;
15880
17291
  }
17292
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__header[data-has-collapsed-content] {
17293
+ justify-content: flex-start;
17294
+ padding-inline: 8px 100px;
17295
+ }
17296
+ .pimolu-app-shell > .pimolu-app-shell__sidebar .pimolu-sidebar[data-collapsed=true] > .pimolu-sidebar__footer[data-has-collapsed-content] {
17297
+ position: absolute;
17298
+ inset-inline-end: 64px;
17299
+ inset-block-start: 12px;
17300
+ margin: 0;
17301
+ padding: 0;
17302
+ border: 0;
17303
+ height: 40px;
17304
+ align-items: center;
17305
+ }
15881
17306
  }
15882
17307
 
15883
17308
  /* src/menubar.css */
@@ -16021,6 +17446,43 @@ button.pimolu-list__row:focus-visible {
16021
17446
  }
16022
17447
  }
16023
17448
 
17449
+ /* src/motion.css */
17450
+ :root {
17451
+ --pimolu-interaction-duration: 150ms;
17452
+ --pimolu-interaction-easing: ease-out;
17453
+ }
17454
+ :where(.pimolu-card, .pimolu-badge, .pimolu-avatar, .pimolu-table__row, .pimolu-command__item, .pimolu-toolbar__button, .pimolu-toolbar__link, .pimolu-navbar__item, .pimolu-navbar__toggle, .pimolu-accordion__trigger) {
17455
+ transition:
17456
+ background-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17457
+ border-color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17458
+ color var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out),
17459
+ box-shadow var(--pimolu-interaction-duration, 150ms) var(--pimolu-interaction-easing, ease-out);
17460
+ }
17461
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *),
17462
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::before,
17463
+ :where([data-pimolu-motion=off], [data-pimolu-motion=off] *)::after {
17464
+ animation: none !important;
17465
+ transition: none !important;
17466
+ scroll-behavior: auto !important;
17467
+ }
17468
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[hidden],
17469
+ :where([data-pimolu-motion=off]) .pimolu-accordion__content[data-state=closing] {
17470
+ display: none !important;
17471
+ }
17472
+ @media (prefers-reduced-motion: reduce) {
17473
+ :where([class^=pimolu-], [class*=" pimolu-"]),
17474
+ :where([class^=pimolu-], [class*=" pimolu-"])::before,
17475
+ :where([class^=pimolu-], [class*=" pimolu-"])::after {
17476
+ animation: none !important;
17477
+ transition: none !important;
17478
+ scroll-behavior: auto !important;
17479
+ }
17480
+ .pimolu-accordion__content[hidden],
17481
+ .pimolu-accordion__content[data-state=closing] {
17482
+ display: none !important;
17483
+ }
17484
+ }
17485
+
16024
17486
  /* src/toolbar.css */
16025
17487
  .pimolu-toolbar {
16026
17488
  display: flex;
@@ -16812,11 +18274,12 @@ button.pimolu-list__row:focus-visible {
16812
18274
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pimolu-primary, #4f46e5) 35%, transparent);
16813
18275
  }
16814
18276
  .pimolu-kanban__column-header {
18277
+ position: relative;
16815
18278
  display: flex;
16816
18279
  align-items: flex-start;
16817
18280
  justify-content: space-between;
16818
18281
  gap: var(--pimolu-spacing-2, 8px);
16819
- padding: var(--pimolu-spacing-3, 12px);
18282
+ padding: var(--pimolu-spacing-4, 16px);
16820
18283
  border-bottom: 1px solid var(--pimolu-border, #e2e8f0);
16821
18284
  }
16822
18285
  .pimolu-kanban__column-title {
@@ -16832,7 +18295,30 @@ button.pimolu-list__row:focus-visible {
16832
18295
  letter-spacing: 0.01em;
16833
18296
  overflow-wrap: anywhere;
16834
18297
  }
18298
+ .pimolu-kanban__capacity {
18299
+ position: absolute;
18300
+ inset-inline: 16px;
18301
+ inset-block-end: -1px;
18302
+ height: 3px;
18303
+ overflow: hidden;
18304
+ border-radius: 999px;
18305
+ background: var(--pimolu-muted, #f1f5f9);
18306
+ }
18307
+ .pimolu-kanban__capacity > span {
18308
+ display: block;
18309
+ height: 100%;
18310
+ background: var(--pimolu-primary, #4f46e5);
18311
+ border-radius: inherit;
18312
+ }
18313
+ .pimolu-kanban__column--full .pimolu-kanban__capacity > span {
18314
+ background: var(--pimolu-warning, #d97706);
18315
+ }
16835
18316
  .pimolu-kanban__count {
18317
+ align-self: start;
18318
+ margin-block-start: 4px;
18319
+ padding: 2px 7px;
18320
+ border-radius: var(--pimolu-radius-full, 999px);
18321
+ background: var(--pimolu-muted, #f1f5f9);
16836
18322
  color: var( --pimolu-muted-foreground, var(--pimolu-foreground, currentColor) );
16837
18323
  font-size: var(--pimolu-font-size-xs, 12px);
16838
18324
  font-weight: 450;
@@ -16855,6 +18341,7 @@ button.pimolu-list__row:focus-visible {
16855
18341
  }
16856
18342
  .pimolu-kanban__item {
16857
18343
  min-width: 0;
18344
+ margin: 0;
16858
18345
  list-style: none;
16859
18346
  }
16860
18347
  .pimolu-kanban__empty {
@@ -16896,7 +18383,7 @@ button.pimolu-list__row:focus-visible {
16896
18383
  gap: var(--pimolu-spacing-2, 8px);
16897
18384
  box-sizing: border-box;
16898
18385
  min-width: 0;
16899
- padding: 10px var(--pimolu-spacing-3, 12px);
18386
+ padding: 14px var(--pimolu-spacing-4, 16px);
16900
18387
  border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border, #e2e8f0);
16901
18388
  border-radius: var(--pimolu-radius-md, 10px);
16902
18389
  background: var(--pimolu-background, #fff);
@@ -17430,6 +18917,7 @@ button.pimolu-list__row:focus-visible {
17430
18917
  white-space: nowrap;
17431
18918
  }
17432
18919
  a.pimolu-chat__attachment-name {
18920
+ text-decoration: underline;
17433
18921
  text-underline-offset: 2px;
17434
18922
  }
17435
18923
  a.pimolu-chat__attachment-name:hover {
@@ -17798,9 +19286,11 @@ a.pimolu-chat__attachment-name:focus-visible {
17798
19286
  font-size: 0.8125rem;
17799
19287
  }
17800
19288
  .pimolu-scheduler__scroll {
19289
+ position: relative;
17801
19290
  width: 100%;
17802
19291
  min-width: 0;
17803
- overflow-x: auto;
19292
+ overflow: auto;
19293
+ border-radius: var(--pimolu-scheduler-radius);
17804
19294
  overscroll-behavior-x: contain;
17805
19295
  }
17806
19296
  .pimolu-scheduler__board {
@@ -17812,7 +19302,7 @@ a.pimolu-chat__attachment-name:focus-visible {
17812
19302
  background: var(--pimolu-scheduler-surface);
17813
19303
  border: 1px solid var(--pimolu-scheduler-border);
17814
19304
  border-radius: var(--pimolu-scheduler-radius);
17815
- overflow: hidden;
19305
+ overflow: clip;
17816
19306
  }
17817
19307
  .pimolu-scheduler__grid {
17818
19308
  display: flex;
@@ -17825,6 +19315,10 @@ a.pimolu-chat__attachment-name:focus-visible {
17825
19315
  grid-template-columns: var(--pimolu-scheduler-time-width) repeat(var(--pimolu-scheduler-day-count, 7), minmax(0, 1fr));
17826
19316
  }
17827
19317
  .pimolu-scheduler__header-row {
19318
+ position: sticky;
19319
+ top: 0;
19320
+ z-index: 5;
19321
+ background: var(--pimolu-scheduler-surface);
17828
19322
  height: var(--pimolu-scheduler-header-height);
17829
19323
  border-bottom: 1px solid var(--pimolu-scheduler-border);
17830
19324
  }
@@ -17949,6 +19443,7 @@ a.pimolu-chat__attachment-name:focus-visible {
17949
19443
  border-top: 1px solid var(--pimolu-scheduler-border);
17950
19444
  }
17951
19445
  .pimolu-scheduler__slot {
19446
+ scroll-margin-block-start: calc(var(--pimolu-scheduler-header-height) + 8px);
17952
19447
  display: block;
17953
19448
  box-sizing: border-box;
17954
19449
  width: 100%;
@@ -18025,6 +19520,16 @@ a.pimolu-chat__attachment-name:focus-visible {
18025
19520
  text-overflow: ellipsis;
18026
19521
  white-space: nowrap;
18027
19522
  }
19523
+ .pimolu-scheduler__event[data-compact=true] {
19524
+ padding: 1px 6px;
19525
+ justify-content: center;
19526
+ }
19527
+ .pimolu-scheduler__event[data-compact=true] .pimolu-scheduler__event-time {
19528
+ display: none;
19529
+ }
19530
+ .pimolu-scheduler__event[data-compact=true] .pimolu-scheduler__event-title {
19531
+ font-size: 0.6875rem;
19532
+ }
18028
19533
  .pimolu-scheduler__now {
18029
19534
  position: absolute;
18030
19535
  right: 0;
@@ -18282,9 +19787,13 @@ a.pimolu-chat__attachment-name:focus-visible {
18282
19787
  overflow: hidden;
18283
19788
  }
18284
19789
  .pimolu-gantt__task-button {
18285
- display: block;
19790
+ display: flex;
19791
+ align-items: center;
19792
+ justify-content: space-between;
19793
+ gap: 8px;
18286
19794
  box-sizing: border-box;
18287
19795
  max-width: 100%;
19796
+ width: 100%;
18288
19797
  padding: 3px 5px;
18289
19798
  margin-left: -5px;
18290
19799
  color: var(--pimolu-foreground, #0f172a);
@@ -18300,6 +19809,20 @@ a.pimolu-chat__attachment-name:focus-visible {
18300
19809
  cursor: pointer;
18301
19810
  overflow: hidden;
18302
19811
  }
19812
+ .pimolu-gantt__task-name {
19813
+ min-width: 0;
19814
+ overflow: hidden;
19815
+ text-overflow: ellipsis;
19816
+ }
19817
+ .pimolu-gantt__task-completion {
19818
+ flex: none;
19819
+ font-size: 0.6875rem;
19820
+ font-variant-numeric: tabular-nums;
19821
+ color: var(--pimolu-gantt-muted-foreground);
19822
+ background: var(--pimolu-gantt-muted);
19823
+ border-radius: var(--pimolu-radius-sm, 4px);
19824
+ padding: 2px 5px;
19825
+ }
18303
19826
  .pimolu-gantt__task-button:hover {
18304
19827
  background: var(--pimolu-gantt-muted);
18305
19828
  }
@@ -18907,6 +20430,9 @@ a.pimolu-chat__attachment-name:focus-visible {
18907
20430
 
18908
20431
  /* src/page-header.css */
18909
20432
  .pimolu-page-header {
20433
+ container-type: inline-size;
20434
+ --pimolu-page-header-title-size: clamp(1.75rem, 5cqi, 2.75rem);
20435
+ width: 100%;
18910
20436
  display: flex;
18911
20437
  flex-direction: column;
18912
20438
  gap: var(--pimolu-spacing-4, 16px);
@@ -18915,6 +20441,22 @@ a.pimolu-chat__attachment-name:focus-visible {
18915
20441
  color: var(--pimolu-foreground);
18916
20442
  font-family: var(--pimolu-font-body, inherit);
18917
20443
  }
20444
+ .pimolu-page-header[data-size=sm] {
20445
+ --pimolu-page-header-title-size: clamp(1.25rem, 4cqi, 1.75rem);
20446
+ gap: 12px;
20447
+ }
20448
+ .pimolu-page-header[data-size=sm] .pimolu-page-header__content {
20449
+ gap: 8px;
20450
+ }
20451
+ .pimolu-page-header[data-size=sm] .pimolu-page-header__description {
20452
+ font-size: 0.875rem;
20453
+ }
20454
+ .pimolu-page-header[data-size=lg] {
20455
+ --pimolu-page-header-title-size: clamp(2rem, 7cqi, 4rem);
20456
+ }
20457
+ .pimolu-page-header__actions {
20458
+ max-width: 100%;
20459
+ }
18918
20460
  .pimolu-page-header__breadcrumbs {
18919
20461
  display: flex;
18920
20462
  justify-content: flex-start;
@@ -18962,7 +20504,7 @@ a.pimolu-chat__attachment-name:focus-visible {
18962
20504
  margin: 0;
18963
20505
  color: var(--pimolu-foreground);
18964
20506
  font-family: var(--pimolu-font-heading, inherit);
18965
- font-size: clamp(1.75rem, 3.5vw, 2.75rem);
20507
+ font-size: var(--pimolu-page-header-title-size, clamp(1.75rem, 3.5vw, 2.75rem));
18966
20508
  font-weight: 700;
18967
20509
  line-height: 1.1;
18968
20510
  letter-spacing: -0.02em;
@@ -19006,9 +20548,14 @@ a.pimolu-chat__attachment-name:focus-visible {
19006
20548
  justify-content: center;
19007
20549
  }
19008
20550
  .pimolu-page-header--center .pimolu-page-header__body {
20551
+ width: 100%;
20552
+ flex-direction: column;
20553
+ align-items: center;
19009
20554
  justify-content: center;
19010
20555
  }
19011
20556
  .pimolu-page-header--center .pimolu-page-header__content {
20557
+ flex: none;
20558
+ width: 100%;
19012
20559
  align-items: center;
19013
20560
  margin-inline: auto;
19014
20561
  text-align: center;
@@ -19017,6 +20564,10 @@ a.pimolu-chat__attachment-name:focus-visible {
19017
20564
  .pimolu-page-header--center .pimolu-page-header__actions {
19018
20565
  justify-content: center;
19019
20566
  }
20567
+ .pimolu-page-header--center .pimolu-page-header__actions {
20568
+ flex: none;
20569
+ width: 100%;
20570
+ }
19020
20571
  @media (max-width: 640px) {
19021
20572
  .pimolu-page-header__body {
19022
20573
  align-items: flex-start;
@@ -19263,6 +20814,8 @@ a.pimolu-chat__attachment-name:focus-visible {
19263
20814
  font-family: var(--pimolu-font-body, inherit);
19264
20815
  }
19265
20816
  .pimolu-docs-layout__skip-link {
20817
+ opacity: 0;
20818
+ pointer-events: none;
19266
20819
  position: fixed;
19267
20820
  inset-block-start: var(--pimolu-spacing-3, 12px);
19268
20821
  inset-inline-start: var(--pimolu-spacing-3, 12px);
@@ -19280,6 +20833,8 @@ a.pimolu-chat__attachment-name:focus-visible {
19280
20833
  transition: transform 150ms ease;
19281
20834
  }
19282
20835
  .pimolu-docs-layout__skip-link:focus-visible {
20836
+ opacity: 1;
20837
+ pointer-events: auto;
19283
20838
  transform: translateY(0);
19284
20839
  outline: 2px solid var(--pimolu-focus-ring, var(--pimolu-primary));
19285
20840
  outline-offset: 2px;
@@ -19353,6 +20908,11 @@ a.pimolu-chat__attachment-name:focus-visible {
19353
20908
  scrollbar-gutter: stable;
19354
20909
  }
19355
20910
  @media (max-width: 1180px) {
20911
+ .pimolu-docs-layout[data-sticky=true][data-toc=true] > .pimolu-docs-layout__body > .pimolu-docs-layout__sidebar {
20912
+ position: static;
20913
+ max-height: none;
20914
+ overflow: visible;
20915
+ }
19356
20916
  .pimolu-docs-layout__body {
19357
20917
  grid-template-columns: var(--pimolu-docs-sidebar-width) minmax(0, 1fr);
19358
20918
  grid-template-areas: "sidebar main" "toc toc";
@@ -19977,19 +21537,20 @@ a.pimolu-chat__attachment-name:focus-visible {
19977
21537
  border-radius: var(--pimolu-radius-sm, 6px);
19978
21538
  }
19979
21539
  .pimolu-api-table__table.pimolu-table {
19980
- min-width: 40rem;
21540
+ min-width: 0;
21541
+ table-layout: fixed;
19981
21542
  }
19982
21543
  .pimolu-api-table__table :where(th, td):nth-child(1) {
19983
- width: 22%;
21544
+ width: 20%;
19984
21545
  }
19985
21546
  .pimolu-api-table__table :where(th, td):nth-child(2) {
19986
- width: 26%;
21547
+ width: 36%;
19987
21548
  }
19988
21549
  .pimolu-api-table__table :where(th, td):nth-child(3) {
19989
- width: 16%;
21550
+ width: 10%;
19990
21551
  }
19991
21552
  .pimolu-api-table__table :where(th, td):nth-child(4) {
19992
- width: 36%;
21553
+ width: 34%;
19993
21554
  }
19994
21555
  .pimolu-api-table__name {
19995
21556
  display: flex;
@@ -20125,7 +21686,7 @@ a.pimolu-chat__attachment-name:focus-visible {
20125
21686
  tab-size: 2;
20126
21687
  }
20127
21688
  .pimolu-codeblock__code {
20128
- display: block;
21689
+ display: grid;
20129
21690
  box-sizing: border-box;
20130
21691
  min-width: max-content;
20131
21692
  background: transparent;
@@ -20174,7 +21735,7 @@ a.pimolu-chat__attachment-name:focus-visible {
20174
21735
  color: color-mix(in srgb, var(--pimolu-success, #15803d) 78%, var(--pimolu-foreground, #0f172a));
20175
21736
  }
20176
21737
  .pimolu-codeblock__token--number {
20177
- color: color-mix(in srgb, var(--pimolu-warning, #b45309) 68%, var(--pimolu-foreground, #0f172a));
21738
+ color: color-mix(in srgb, var(--pimolu-warning, #b45309) 55%, var(--pimolu-foreground, #0f172a));
20178
21739
  }
20179
21740
  .pimolu-codeblock__token--keyword {
20180
21741
  color: var(--pimolu-primary, #4f46e5);
@@ -20794,7 +22355,7 @@ a.pimolu-chat__attachment-name:focus-visible {
20794
22355
  min-height: var(--pimolu-input-height);
20795
22356
  padding-inline: var(--pimolu-input-padding);
20796
22357
  background: var( --pimolu-surface, var(--pimolu-background) );
20797
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
22358
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
20798
22359
  border-radius: var(--pimolu-radius-md, 8px);
20799
22360
  box-shadow: var(--pimolu-input-elevation);
20800
22361
  transition:
@@ -20822,6 +22383,11 @@ a.pimolu-chat__attachment-name:focus-visible {
20822
22383
  color: var(--pimolu-muted-foreground);
20823
22384
  opacity: 1;
20824
22385
  }
22386
+ .pimolu-input__control:is(:autofill, :-webkit-autofill) {
22387
+ -webkit-background-clip: text;
22388
+ background-clip: text;
22389
+ -webkit-text-fill-color: var(--pimolu-foreground);
22390
+ }
20825
22391
  .pimolu-input__control::-webkit-search-cancel-button,
20826
22392
  .pimolu-input__control::-webkit-search-decoration {
20827
22393
  -webkit-appearance: none;
@@ -20926,7 +22492,9 @@ a.pimolu-chat__attachment-name:focus-visible {
20926
22492
  }
20927
22493
  .pimolu-input__wrapper:focus-within {
20928
22494
  border-color: var(--pimolu-input-tone);
20929
- box-shadow: 0 0 0 3px color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent), var(--pimolu-input-elevation);
22495
+ box-shadow: var(--pimolu-input-elevation);
22496
+ outline: 3px solid color-mix(in srgb, var(--pimolu-input-tone) 22%, transparent);
22497
+ outline-offset: 0;
20930
22498
  }
20931
22499
  .pimolu-input--invalid {
20932
22500
  --pimolu-input-tone: var(--pimolu-danger, #dc2626);
@@ -21008,6 +22576,11 @@ a.pimolu-chat__attachment-name:focus-visible {
21008
22576
  }
21009
22577
  }
21010
22578
  @media (forced-colors: active) {
22579
+ .pimolu-input__control:is(:autofill, :-webkit-autofill) {
22580
+ -webkit-background-clip: border-box;
22581
+ background-clip: border-box;
22582
+ -webkit-text-fill-color: CanvasText;
22583
+ }
21011
22584
  .pimolu-input__wrapper:focus-within {
21012
22585
  outline: 2px solid Highlight;
21013
22586
  outline-offset: 2px;
@@ -21027,7 +22600,7 @@ a.pimolu-chat__attachment-name:focus-visible {
21027
22600
  width: min(100%, 360px);
21028
22601
  min-width: 0;
21029
22602
  background: var( --pimolu-surface, var(--pimolu-background) );
21030
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
22603
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
21031
22604
  border-radius: var(--pimolu-radius-md, 8px);
21032
22605
  box-shadow: var(--pimolu-input-elevation);
21033
22606
  color: var(--pimolu-foreground);
@@ -21238,7 +22811,7 @@ a.pimolu-chat__attachment-name:focus-visible {
21238
22811
  padding-inline-end: 64px;
21239
22812
  background: var(--pimolu-tree-select-surface);
21240
22813
  color: var(--pimolu-foreground);
21241
- border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-border);
22814
+ border: var(--pimolu-control-border-width, 1px) solid var(--pimolu-control-border, var(--pimolu-border));
21242
22815
  border-radius: var(--pimolu-radius-md, 8px);
21243
22816
  font-family: inherit;
21244
22817
  font-size: 0.875rem;
@@ -21943,4 +23516,6 @@ a.pimolu-chat__attachment-name:focus-visible {
21943
23516
  }
21944
23517
  }
21945
23518
 
23519
+ /* src/components.css */
23520
+
21946
23521
  /* src/styles.css */