docblocks-react-ui 0.10.1 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/styles.css CHANGED
@@ -54,6 +54,7 @@
54
54
  --font-mono: var(--font-mono);
55
55
  --color-gray-300: oklch(87.2% 0.01 258.338);
56
56
  --color-gray-700: oklch(37.3% 0.034 259.733);
57
+ --color-black: #000;
57
58
  --color-white: #fff;
58
59
  --spacing: 0.25rem;
59
60
  --container-xl: 36rem;
@@ -454,6 +455,9 @@
454
455
  .my-1 {
455
456
  margin-block: var(--spacing);
456
457
  }
458
+ .-mt-6 {
459
+ margin-top: calc(var(--spacing) * -6);
460
+ }
457
461
  .mt-\(--docblocks-block-spacing\) {
458
462
  margin-top: var(--docblocks-block-spacing);
459
463
  }
@@ -469,6 +473,9 @@
469
473
  .mt-2 {
470
474
  margin-top: calc(var(--spacing) * 2);
471
475
  }
476
+ .mt-3 {
477
+ margin-top: calc(var(--spacing) * 3);
478
+ }
472
479
  .mr-0\.5 {
473
480
  margin-right: calc(var(--spacing) * 0.5);
474
481
  }
@@ -481,9 +488,15 @@
481
488
  .mb-1 {
482
489
  margin-bottom: var(--spacing);
483
490
  }
491
+ .mb-1\.5 {
492
+ margin-bottom: calc(var(--spacing) * 1.5);
493
+ }
484
494
  .mb-2 {
485
495
  margin-bottom: calc(var(--spacing) * 2);
486
496
  }
497
+ .mb-3 {
498
+ margin-bottom: calc(var(--spacing) * 3);
499
+ }
487
500
  .mb-4 {
488
501
  margin-bottom: calc(var(--spacing) * 4);
489
502
  }
@@ -672,9 +685,15 @@
672
685
  .h-10 {
673
686
  height: calc(var(--spacing) * 10);
674
687
  }
688
+ .h-18 {
689
+ height: calc(var(--spacing) * 18);
690
+ }
675
691
  .h-24 {
676
692
  height: calc(var(--spacing) * 24);
677
693
  }
694
+ .h-36 {
695
+ height: calc(var(--spacing) * 36);
696
+ }
678
697
  .h-48 {
679
698
  height: calc(var(--spacing) * 48);
680
699
  }
@@ -708,6 +727,9 @@
708
727
  .max-h-48 {
709
728
  max-height: calc(var(--spacing) * 48);
710
729
  }
730
+ .max-h-58 {
731
+ max-height: calc(var(--spacing) * 58);
732
+ }
711
733
  .max-h-64 {
712
734
  max-height: calc(var(--spacing) * 64);
713
735
  }
@@ -789,6 +811,12 @@
789
811
  .w-72 {
790
812
  width: calc(var(--spacing) * 72);
791
813
  }
814
+ .w-110 {
815
+ width: calc(var(--spacing) * 110);
816
+ }
817
+ .w-140 {
818
+ width: calc(var(--spacing) * 140);
819
+ }
792
820
  .w-\[5ch\] {
793
821
  width: 5ch;
794
822
  }
@@ -1008,6 +1036,9 @@
1008
1036
  .auto-rows-min {
1009
1037
  grid-auto-rows: min-content;
1010
1038
  }
1039
+ .grid-cols-4 {
1040
+ grid-template-columns: repeat(4, minmax(0, 1fr));
1041
+ }
1011
1042
  .grid-cols-6 {
1012
1043
  grid-template-columns: repeat(6, minmax(0, 1fr));
1013
1044
  }
@@ -1157,6 +1188,10 @@
1157
1188
  .rounded-xs {
1158
1189
  border-radius: calc(var(--radius) - 6px);
1159
1190
  }
1191
+ .rounded-t-xl {
1192
+ border-top-left-radius: calc(var(--radius) + 4px);
1193
+ border-top-right-radius: calc(var(--radius) + 4px);
1194
+ }
1160
1195
  .rounded-l-\(--cell-radius\) {
1161
1196
  border-top-left-radius: var(--cell-radius);
1162
1197
  border-bottom-left-radius: var(--cell-radius);
@@ -1247,6 +1282,9 @@
1247
1282
  .border-muted {
1248
1283
  border-color: var(--muted);
1249
1284
  }
1285
+ .border-primary {
1286
+ border-color: var(--primary);
1287
+ }
1250
1288
  .border-ring {
1251
1289
  border-color: var(--ring);
1252
1290
  }
@@ -1349,9 +1387,21 @@
1349
1387
  .bg-accent {
1350
1388
  background-color: var(--accent);
1351
1389
  }
1390
+ .bg-accent\/50 {
1391
+ background-color: var(--accent);
1392
+ @supports (color: color-mix(in lab, red, red)) {
1393
+ background-color: color-mix(in oklab, var(--accent) 50%, transparent);
1394
+ }
1395
+ }
1352
1396
  .bg-background {
1353
1397
  background-color: var(--background);
1354
1398
  }
1399
+ .bg-black\/40 {
1400
+ background-color: color-mix(in srgb, #000 40%, transparent);
1401
+ @supports (color: color-mix(in lab, red, red)) {
1402
+ background-color: color-mix(in oklab, var(--color-black) 40%, transparent);
1403
+ }
1404
+ }
1355
1405
  .bg-border {
1356
1406
  background-color: var(--border);
1357
1407
  }
@@ -1790,6 +1840,9 @@
1790
1840
  .opacity-50 {
1791
1841
  opacity: 50%;
1792
1842
  }
1843
+ .opacity-60 {
1844
+ opacity: 60%;
1845
+ }
1793
1846
  .opacity-100 {
1794
1847
  opacity: 100%;
1795
1848
  }
@@ -1976,6 +2029,9 @@
1976
2029
  .\[--cell-size\:--spacing\(7\)\] {
1977
2030
  --cell-size: calc(var(--spacing) * 7);
1978
2031
  }
2032
+ .fade-out {
2033
+ --tw-exit-opacity: 0;
2034
+ }
1979
2035
  .running {
1980
2036
  animation-play-state: running;
1981
2037
  }
@@ -2223,6 +2279,9 @@
2223
2279
  }
2224
2280
  }
2225
2281
  @media (hover: hover) {
2282
+ .hover\:border-primary:hover {
2283
+ border-color: var(--primary);
2284
+ }
2226
2285
  .hover\:bg-\(--accent\):hover {
2227
2286
  background-color: var(--accent);
2228
2287
  }
@@ -2426,6 +2485,9 @@
2426
2485
  .disabled\:opacity-50:disabled {
2427
2486
  opacity: 50%;
2428
2487
  }
2488
+ .disabled\:opacity-60:disabled {
2489
+ opacity: 60%;
2490
+ }
2429
2491
  :where([data-slot="card-content"]) .in-data-\[slot\=card-content\]\:bg-transparent {
2430
2492
  background-color: transparent;
2431
2493
  }
@@ -4100,6 +4162,28 @@
4100
4162
  inset 0 -1px 0 var(--docblocks-database-pending-row-border-color);
4101
4163
  }
4102
4164
 
4165
+ /*
4166
+ * The cover banner's dark-theme's stand: the image dims slightly (a bright
4167
+ * cover over the dark's card stands a glare). The filter darkens the
4168
+ * rendered pixels only — the banner's transparent background keeps the
4169
+ * card's color underneath, so the dim never shifts the fade's edges.
4170
+ */
4171
+ :is(.dark [data-slot="docblocks/editor"], [data-slot="docblocks/editor"].dark) [data-slot="docblocks/cover-banner"] {
4172
+ filter: brightness(0.85);
4173
+ }
4174
+
4175
+ /*
4176
+ * The cover's frame's tint: the card's border stands the cover's average
4177
+ * color's mix over the theme's border token (the 25% share keeps the tint
4178
+ * subtle — the light's token mixes pale, the dark's token mixes the
4179
+ * gray's stand over the same average). The average's color stands on the
4180
+ * card's element itself (the border's element) as the inline variable,
4181
+ * so the theme's flip re-mixes over the same value without a re-read.
4182
+ */
4183
+ [data-slot="card"][data-cover-tint] {
4184
+ border-color: color-mix(in srgb, var(--docblocks-cover-tint-color) 25%, var(--border));
4185
+ }
4186
+
4103
4187
  /* 5. The shape-text's self-hosted fonts (the woff2 in dist/fonts/; the
4104
4188
  * unicode-range keeps a file fetched only when the shape's text stands
4105
4189
  * in that font / subset). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docblocks-react-ui",
3
- "version": "0.10.1",
3
+ "version": "0.12.0",
4
4
  "description": "React rendering + editing layer for docblocks: hooks, block renderers, caret/selection, keyboard, clipboard.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -34,7 +34,7 @@
34
34
  "access": "public"
35
35
  },
36
36
  "peerDependencies": {
37
- "docblocks-core": "^0.4.0",
37
+ "docblocks-core": "^0.5.0",
38
38
  "framer-motion": "^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
39
39
  "mermaid": "^12.0.0",
40
40
  "pdfjs-dist": "^6.0.0",