@biotechusa/pdo-ui 1.0.7 → 1.0.8

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/index.css CHANGED
@@ -13,6 +13,29 @@
13
13
  --tw-skew-x: initial;
14
14
  --tw-skew-y: initial;
15
15
  --tw-border-style: solid;
16
+ --tw-mask-linear: linear-gradient(#fff, #fff);
17
+ --tw-mask-radial: linear-gradient(#fff, #fff);
18
+ --tw-mask-conic: linear-gradient(#fff, #fff);
19
+ --tw-mask-left: linear-gradient(#fff, #fff);
20
+ --tw-mask-right: linear-gradient(#fff, #fff);
21
+ --tw-mask-bottom: linear-gradient(#fff, #fff);
22
+ --tw-mask-top: linear-gradient(#fff, #fff);
23
+ --tw-mask-top-from-position: 0%;
24
+ --tw-mask-top-to-position: 100%;
25
+ --tw-mask-top-from-color: black;
26
+ --tw-mask-top-to-color: transparent;
27
+ --tw-mask-right-from-position: 0%;
28
+ --tw-mask-right-to-position: 100%;
29
+ --tw-mask-right-from-color: black;
30
+ --tw-mask-right-to-color: transparent;
31
+ --tw-mask-bottom-from-position: 0%;
32
+ --tw-mask-bottom-to-position: 100%;
33
+ --tw-mask-bottom-from-color: black;
34
+ --tw-mask-bottom-to-color: transparent;
35
+ --tw-mask-left-from-position: 0%;
36
+ --tw-mask-left-to-position: 100%;
37
+ --tw-mask-left-from-color: black;
38
+ --tw-mask-left-to-color: transparent;
16
39
  --tw-leading: initial;
17
40
  --tw-font-weight: initial;
18
41
  --tw-tracking: initial;
@@ -562,8 +585,8 @@
562
585
  grid-row-start: 2;
563
586
  }
564
587
 
565
- .m-0\.5 {
566
- margin: calc(var(--spacing) * .5);
588
+ .m-1 {
589
+ margin: calc(var(--spacing) * 1);
567
590
  }
568
591
 
569
592
  .mx-2 {
@@ -756,6 +779,10 @@
756
779
  height: calc(var(--spacing) * 10);
757
780
  }
758
781
 
782
+ .h-64 {
783
+ height: calc(var(--spacing) * 64);
784
+ }
785
+
759
786
  .h-auto {
760
787
  height: auto;
761
788
  }
@@ -1155,10 +1182,6 @@
1155
1182
  overflow-y: auto;
1156
1183
  }
1157
1184
 
1158
- .overscroll-contain {
1159
- overscroll-behavior: contain;
1160
- }
1161
-
1162
1185
  .rounded-2xl {
1163
1186
  border-radius: var(--radius-2xl);
1164
1187
  }
@@ -1495,6 +1518,54 @@
1495
1518
  background-color: var(--color-white);
1496
1519
  }
1497
1520
 
1521
+ .mask-t-from-\[calc\(100\%-min\(var\(--fade-size\)\,var\(--scroll-area-overflow-y-start\)\)\)\] {
1522
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1523
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1524
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1525
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1526
+ --tw-mask-top: linear-gradient(to top, var(--tw-mask-top-from-color) var(--tw-mask-top-from-position), var(--tw-mask-top-to-color) var(--tw-mask-top-to-position));
1527
+ --tw-mask-top-from-position: calc(100% - min(var(--fade-size), var(--scroll-area-overflow-y-start)));
1528
+ -webkit-mask-composite: source-in;
1529
+ -webkit-mask-composite: source-in;
1530
+ mask-composite: intersect;
1531
+ }
1532
+
1533
+ .mask-r-from-\[calc\(100\%-min\(var\(--fade-size\)\,var\(--scroll-area-overflow-x-end\)\)\)\] {
1534
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1535
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1536
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1537
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1538
+ --tw-mask-right: linear-gradient(to right, var(--tw-mask-right-from-color) var(--tw-mask-right-from-position), var(--tw-mask-right-to-color) var(--tw-mask-right-to-position));
1539
+ --tw-mask-right-from-position: calc(100% - min(var(--fade-size), var(--scroll-area-overflow-x-end)));
1540
+ -webkit-mask-composite: source-in;
1541
+ -webkit-mask-composite: source-in;
1542
+ mask-composite: intersect;
1543
+ }
1544
+
1545
+ .mask-b-from-\[calc\(100\%-min\(var\(--fade-size\)\,var\(--scroll-area-overflow-y-end\)\)\)\] {
1546
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1547
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1548
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1549
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1550
+ --tw-mask-bottom: linear-gradient(to bottom, var(--tw-mask-bottom-from-color) var(--tw-mask-bottom-from-position), var(--tw-mask-bottom-to-color) var(--tw-mask-bottom-to-position));
1551
+ --tw-mask-bottom-from-position: calc(100% - min(var(--fade-size), var(--scroll-area-overflow-y-end)));
1552
+ -webkit-mask-composite: source-in;
1553
+ -webkit-mask-composite: source-in;
1554
+ mask-composite: intersect;
1555
+ }
1556
+
1557
+ .mask-l-from-\[calc\(100\%-min\(var\(--fade-size\)\,var\(--scroll-area-overflow-x-start\)\)\)\] {
1558
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1559
+ -webkit-mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1560
+ mask-image: var(--tw-mask-linear), var(--tw-mask-radial), var(--tw-mask-conic);
1561
+ --tw-mask-linear: var(--tw-mask-left), var(--tw-mask-right), var(--tw-mask-bottom), var(--tw-mask-top);
1562
+ --tw-mask-left: linear-gradient(to left, var(--tw-mask-left-from-color) var(--tw-mask-left-from-position), var(--tw-mask-left-to-color) var(--tw-mask-left-to-position));
1563
+ --tw-mask-left-from-position: calc(100% - min(var(--fade-size), var(--scroll-area-overflow-x-start)));
1564
+ -webkit-mask-composite: source-in;
1565
+ -webkit-mask-composite: source-in;
1566
+ mask-composite: intersect;
1567
+ }
1568
+
1498
1569
  .bg-clip-padding {
1499
1570
  background-clip: padding-box;
1500
1571
  }
@@ -2113,6 +2184,14 @@
2113
2184
  user-select: none;
2114
2185
  }
2115
2186
 
2187
+ .\[--fade-size\:1\.5rem\] {
2188
+ --fade-size: 1.5rem;
2189
+ }
2190
+
2191
+ .\[--fade-size\:3\.5rem\] {
2192
+ --fade-size: 3.5rem;
2193
+ }
2194
+
2116
2195
  .\[--sheet-inset\:0px\] {
2117
2196
  --sheet-inset: 0px;
2118
2197
  }
@@ -3378,6 +3457,18 @@
3378
3457
  opacity: 1;
3379
3458
  }
3380
3459
 
3460
+ .data-has-overflow-x\:overscroll-x-contain[data-has-overflow-x] {
3461
+ overscroll-behavior-x: contain;
3462
+ }
3463
+
3464
+ .data-has-overflow-x\:pb-2\.5[data-has-overflow-x] {
3465
+ padding-bottom: calc(var(--spacing) * 2.5);
3466
+ }
3467
+
3468
+ .data-has-overflow-y\:pe-2\.5[data-has-overflow-y] {
3469
+ padding-inline-end: calc(var(--spacing) * 2.5);
3470
+ }
3471
+
3381
3472
  .data-highlighted\:bg-highlight[data-highlighted] {
3382
3473
  background-color: var(--highlight);
3383
3474
  }
@@ -5181,6 +5272,144 @@
5181
5272
  initial-value: solid;
5182
5273
  }
5183
5274
 
5275
+ @property --tw-mask-linear {
5276
+ syntax: "*";
5277
+ inherits: false;
5278
+ initial-value: linear-gradient(#fff, #fff);
5279
+ }
5280
+
5281
+ @property --tw-mask-radial {
5282
+ syntax: "*";
5283
+ inherits: false;
5284
+ initial-value: linear-gradient(#fff, #fff);
5285
+ }
5286
+
5287
+ @property --tw-mask-conic {
5288
+ syntax: "*";
5289
+ inherits: false;
5290
+ initial-value: linear-gradient(#fff, #fff);
5291
+ }
5292
+
5293
+ @property --tw-mask-left {
5294
+ syntax: "*";
5295
+ inherits: false;
5296
+ initial-value: linear-gradient(#fff, #fff);
5297
+ }
5298
+
5299
+ @property --tw-mask-right {
5300
+ syntax: "*";
5301
+ inherits: false;
5302
+ initial-value: linear-gradient(#fff, #fff);
5303
+ }
5304
+
5305
+ @property --tw-mask-bottom {
5306
+ syntax: "*";
5307
+ inherits: false;
5308
+ initial-value: linear-gradient(#fff, #fff);
5309
+ }
5310
+
5311
+ @property --tw-mask-top {
5312
+ syntax: "*";
5313
+ inherits: false;
5314
+ initial-value: linear-gradient(#fff, #fff);
5315
+ }
5316
+
5317
+ @property --tw-mask-top-from-position {
5318
+ syntax: "*";
5319
+ inherits: false;
5320
+ initial-value: 0%;
5321
+ }
5322
+
5323
+ @property --tw-mask-top-to-position {
5324
+ syntax: "*";
5325
+ inherits: false;
5326
+ initial-value: 100%;
5327
+ }
5328
+
5329
+ @property --tw-mask-top-from-color {
5330
+ syntax: "*";
5331
+ inherits: false;
5332
+ initial-value: black;
5333
+ }
5334
+
5335
+ @property --tw-mask-top-to-color {
5336
+ syntax: "*";
5337
+ inherits: false;
5338
+ initial-value: transparent;
5339
+ }
5340
+
5341
+ @property --tw-mask-right-from-position {
5342
+ syntax: "*";
5343
+ inherits: false;
5344
+ initial-value: 0%;
5345
+ }
5346
+
5347
+ @property --tw-mask-right-to-position {
5348
+ syntax: "*";
5349
+ inherits: false;
5350
+ initial-value: 100%;
5351
+ }
5352
+
5353
+ @property --tw-mask-right-from-color {
5354
+ syntax: "*";
5355
+ inherits: false;
5356
+ initial-value: black;
5357
+ }
5358
+
5359
+ @property --tw-mask-right-to-color {
5360
+ syntax: "*";
5361
+ inherits: false;
5362
+ initial-value: transparent;
5363
+ }
5364
+
5365
+ @property --tw-mask-bottom-from-position {
5366
+ syntax: "*";
5367
+ inherits: false;
5368
+ initial-value: 0%;
5369
+ }
5370
+
5371
+ @property --tw-mask-bottom-to-position {
5372
+ syntax: "*";
5373
+ inherits: false;
5374
+ initial-value: 100%;
5375
+ }
5376
+
5377
+ @property --tw-mask-bottom-from-color {
5378
+ syntax: "*";
5379
+ inherits: false;
5380
+ initial-value: black;
5381
+ }
5382
+
5383
+ @property --tw-mask-bottom-to-color {
5384
+ syntax: "*";
5385
+ inherits: false;
5386
+ initial-value: transparent;
5387
+ }
5388
+
5389
+ @property --tw-mask-left-from-position {
5390
+ syntax: "*";
5391
+ inherits: false;
5392
+ initial-value: 0%;
5393
+ }
5394
+
5395
+ @property --tw-mask-left-to-position {
5396
+ syntax: "*";
5397
+ inherits: false;
5398
+ initial-value: 100%;
5399
+ }
5400
+
5401
+ @property --tw-mask-left-from-color {
5402
+ syntax: "*";
5403
+ inherits: false;
5404
+ initial-value: black;
5405
+ }
5406
+
5407
+ @property --tw-mask-left-to-color {
5408
+ syntax: "*";
5409
+ inherits: false;
5410
+ initial-value: transparent;
5411
+ }
5412
+
5184
5413
  @property --tw-leading {
5185
5414
  syntax: "*";
5186
5415
  inherits: false
@@ -1,6 +1,7 @@
1
1
  import { ScrollArea as ScrollAreaPrimitive } from "@base-ui-components/react/scroll-area";
2
- declare function ScrollArea({ className, children, orientation, ...props }: ScrollAreaPrimitive.Root.Props & {
3
- orientation?: "horizontal" | "vertical" | "both";
2
+ declare function ScrollArea({ className, children, scrollFade, scrollbarGutter, ...props }: ScrollAreaPrimitive.Root.Props & {
3
+ scrollFade?: boolean;
4
+ scrollbarGutter?: boolean;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  declare function ScrollBar({ className, orientation, ...props }: ScrollAreaPrimitive.Scrollbar.Props): import("react/jsx-runtime").JSX.Element;
6
7
  export { ScrollArea, ScrollBar };
@@ -1,27 +1,21 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { ScrollArea } from "@base-ui-components/react/scroll-area";
3
3
  import { cn } from "./lib/utils.js";
4
- function scroll_area_ScrollArea({ className, children, orientation, ...props }) {
4
+ function scroll_area_ScrollArea({ className, children, scrollFade = false, scrollbarGutter = false, ...props }) {
5
5
  return /*#__PURE__*/ jsxs(ScrollArea.Root, {
6
- className: "min-h-0",
6
+ className: cn("size-full min-h-0", className),
7
7
  ...props,
8
8
  children: [
9
9
  /*#__PURE__*/ jsx(ScrollArea.Viewport, {
10
- className: cn("size-full overscroll-contain rounded-[inherit] outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background", className),
10
+ className: cn("h-full rounded-[inherit] outline-none transition-shadows focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background data-has-overflow-x:overscroll-x-contain", scrollFade && "mask-t-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-start)))] mask-b-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-y-end)))] mask-l-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-start)))] mask-r-from-[calc(100%-min(var(--fade-size),var(--scroll-area-overflow-x-end)))] [--fade-size:1.5rem]", scrollbarGutter && "data-has-overflow-y:pe-2.5 data-has-overflow-x:pb-2.5"),
11
11
  "data-slot": "scroll-area-viewport",
12
12
  children: children
13
13
  }),
14
- "both" === orientation ? /*#__PURE__*/ jsxs(Fragment, {
15
- children: [
16
- /*#__PURE__*/ jsx(ScrollBar, {
17
- orientation: "vertical"
18
- }),
19
- /*#__PURE__*/ jsx(ScrollBar, {
20
- orientation: "horizontal"
21
- })
22
- ]
23
- }) : /*#__PURE__*/ jsx(ScrollBar, {
24
- orientation: orientation
14
+ /*#__PURE__*/ jsx(ScrollBar, {
15
+ orientation: "vertical"
16
+ }),
17
+ /*#__PURE__*/ jsx(ScrollBar, {
18
+ orientation: "horizontal"
25
19
  }),
26
20
  /*#__PURE__*/ jsx(ScrollArea.Corner, {
27
21
  "data-slot": "scroll-area-corner"
@@ -31,7 +25,7 @@ function scroll_area_ScrollArea({ className, children, orientation, ...props })
31
25
  }
32
26
  function ScrollBar({ className, orientation = "vertical", ...props }) {
33
27
  return /*#__PURE__*/ jsx(ScrollArea.Scrollbar, {
34
- className: cn("m-0.5 flex opacity-0 transition-opacity delay-300 data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 data-[orientation=horizontal]:flex-col data-hovering:opacity-100 data-scrolling:opacity-100 data-hovering:delay-0 data-scrolling:delay-0 data-hovering:duration-100 data-scrolling:duration-100", className),
28
+ className: cn("m-1 flex opacity-0 transition-opacity delay-300 data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5 data-[orientation=horizontal]:flex-col data-hovering:opacity-100 data-scrolling:opacity-100 data-hovering:delay-0 data-scrolling:delay-0 data-hovering:duration-100 data-scrolling:duration-100", className),
35
29
  "data-slot": "scroll-area-scrollbar",
36
30
  orientation: orientation,
37
31
  ...props,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@biotechusa/pdo-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {