@alexgorbatchev/shadcn 0.0.128 → 0.0.129

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/prototype.js CHANGED
@@ -2051,7 +2051,7 @@ var program = new Command;
2051
2051
  // package.json
2052
2052
  var package_default = {
2053
2053
  name: "@alexgorbatchev/shadcn",
2054
- version: "0.0.128",
2054
+ version: "0.0.129",
2055
2055
  description: "Sharp, monospace React components with compact and comfortable densities.",
2056
2056
  license: "MIT",
2057
2057
  repository: {
package/dist/typeset.css CHANGED
@@ -374,10 +374,22 @@
374
374
 
375
375
  /* Horizontal scroll for any wide block. Wrap it and the wrapper owns the
376
376
  flow margin. Tables shrink to fit, so widen the table to make it scroll
377
- instead of compress. */
377
+ instead of compress. An edge that hides more content fades out, so the
378
+ box reads as scrollable where an overlay scrollbar stays hidden. The
379
+ fades follow the box's own scroll position on any surface colour; a box
380
+ with nothing to scroll has no timeline and shows no fade. */
378
381
  &:where(.typeset-scroll) {
379
382
  overflow-x: auto;
380
383
  margin-block-start: var(--typeset-flow);
384
+ mask-image: linear-gradient(
385
+ to right,
386
+ transparent,
387
+ #000 var(--typeset-scroll-fade-start),
388
+ #000 calc(100% - var(--typeset-scroll-fade-end)),
389
+ transparent
390
+ );
391
+ animation: typeset-scroll-fade linear both;
392
+ animation-timeline: scroll(self inline);
381
393
  }
382
394
  &:where(.typeset-scroll > *) {
383
395
  margin-block-start: 0;
@@ -454,3 +466,31 @@
454
466
  margin-block-start: 0;
455
467
  }
456
468
  }
469
+
470
+ @property --typeset-scroll-fade-start {
471
+ syntax: "<length>";
472
+ inherits: false;
473
+ initial-value: 0px;
474
+ }
475
+
476
+ @property --typeset-scroll-fade-end {
477
+ syntax: "<length>";
478
+ inherits: false;
479
+ initial-value: 0px;
480
+ }
481
+
482
+ @keyframes typeset-scroll-fade {
483
+ 0% {
484
+ --typeset-scroll-fade-start: 0px;
485
+ --typeset-scroll-fade-end: 2em;
486
+ }
487
+ 10%,
488
+ 90% {
489
+ --typeset-scroll-fade-start: 2em;
490
+ --typeset-scroll-fade-end: 2em;
491
+ }
492
+ 100% {
493
+ --typeset-scroll-fade-start: 2em;
494
+ --typeset-scroll-fade-end: 0px;
495
+ }
496
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexgorbatchev/shadcn",
3
- "version": "0.0.128",
3
+ "version": "0.0.129",
4
4
  "description": "Sharp, monospace React components with compact and comfortable densities.",
5
5
  "license": "MIT",
6
6
  "repository": {