@byline/ui 3.12.1 → 3.12.2
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.
|
@@ -40,12 +40,15 @@ const drawer_Drawer = ({ id, isOpen, onDismiss, closeOnOverlayClick, children, w
|
|
|
40
40
|
top: topOffset
|
|
41
41
|
} : void 0
|
|
42
42
|
}),
|
|
43
|
-
/*#__PURE__*/ jsx(Drawer.
|
|
44
|
-
className: classnames('byline-drawer-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
/*#__PURE__*/ jsx(Drawer.Viewport, {
|
|
44
|
+
className: classnames('byline-drawer-viewport', drawer_module.viewport),
|
|
45
|
+
children: /*#__PURE__*/ jsx(Drawer.Popup, {
|
|
46
|
+
className: classnames('byline-drawer-wrapper', drawer_module["drawer-wrapper"], typedStyles[`drawer-${width}`], typedStyles[`drawer-depth-${depth.toString()}`], className),
|
|
47
|
+
style: hasTopOffset ? {
|
|
48
|
+
top: topOffset
|
|
49
|
+
} : void 0,
|
|
50
|
+
children: children
|
|
51
|
+
})
|
|
49
52
|
})
|
|
50
53
|
]
|
|
51
54
|
})
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
|
-
"version": "3.12.
|
|
6
|
+
"version": "3.12.2",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=20.9.0"
|
|
9
9
|
},
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"npm-run-all": "^4.1.5",
|
|
63
63
|
"react-day-picker": "^10.0.1",
|
|
64
64
|
"zod": "^4.4.3",
|
|
65
|
-
"@byline/core": "3.12.
|
|
65
|
+
"@byline/core": "3.12.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^19.0.0",
|
|
@@ -34,6 +34,16 @@
|
|
|
34
34
|
background-color: rgba(0, 0, 0, 0.5);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
/* Viewport — Base UI's swipe / scroll-lock container. Layout-neutral here
|
|
38
|
+
(`display: contents`) so the Popup keeps owning its own fixed positioning;
|
|
39
|
+
the wrapper exists only to satisfy Base UI's Popup-within-Viewport
|
|
40
|
+
requirement. */
|
|
41
|
+
|
|
42
|
+
.viewport,
|
|
43
|
+
:global(.byline-drawer-viewport) {
|
|
44
|
+
display: contents;
|
|
45
|
+
}
|
|
46
|
+
|
|
37
47
|
/* Drawer wrapper / popup — the sliding panel itself */
|
|
38
48
|
|
|
39
49
|
.drawer-wrapper,
|
|
@@ -71,18 +71,25 @@ const Drawer = ({
|
|
|
71
71
|
className={cx('byline-drawer-backdrop', styles.backdrop)}
|
|
72
72
|
style={hasTopOffset ? { top: topOffset } : undefined}
|
|
73
73
|
/>
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
74
|
+
{/* Base UI expects <Popup> to live inside a <Viewport> — the element
|
|
75
|
+
that owns swipe-dismiss + touch scroll-locking. Our positioning
|
|
76
|
+
lives on the Popup itself, so the Viewport is a layout-neutral
|
|
77
|
+
(`display: contents`) wrapper here: it satisfies the context and
|
|
78
|
+
silences the warning without disturbing the Popup's fixed layout. */}
|
|
79
|
+
<BaseDrawer.Viewport className={cx('byline-drawer-viewport', styles.viewport)}>
|
|
80
|
+
<BaseDrawer.Popup
|
|
81
|
+
className={cx(
|
|
82
|
+
'byline-drawer-wrapper',
|
|
83
|
+
styles['drawer-wrapper'],
|
|
84
|
+
typedStyles[`drawer-${width}`],
|
|
85
|
+
typedStyles[`drawer-depth-${depth.toString()}`],
|
|
86
|
+
className
|
|
87
|
+
)}
|
|
88
|
+
style={hasTopOffset ? { top: topOffset } : undefined}
|
|
89
|
+
>
|
|
90
|
+
{children}
|
|
91
|
+
</BaseDrawer.Popup>
|
|
92
|
+
</BaseDrawer.Viewport>
|
|
86
93
|
</BaseDrawer.Portal>
|
|
87
94
|
</BaseDrawer.Root>
|
|
88
95
|
)
|