@hanzo/ui 3.8.15 → 3.8.16
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.
|
@@ -14,15 +14,17 @@ const ScreenfulComponent: React.FC<{
|
|
|
14
14
|
agent?: string
|
|
15
15
|
initialInView?: boolean
|
|
16
16
|
snapTile?: boolean
|
|
17
|
-
|
|
17
|
+
clx?: string
|
|
18
18
|
contentClx?: string
|
|
19
|
+
bottom?: React.ReactNode
|
|
19
20
|
}> = ({
|
|
20
21
|
block,
|
|
21
22
|
agent,
|
|
22
23
|
initialInView=false,
|
|
23
24
|
snapTile=false,
|
|
24
|
-
|
|
25
|
-
contentClx=''
|
|
25
|
+
clx='',
|
|
26
|
+
contentClx='',
|
|
27
|
+
bottom
|
|
26
28
|
}) => {
|
|
27
29
|
|
|
28
30
|
if (block.blockType !== 'screenful') {
|
|
@@ -63,11 +65,17 @@ const ScreenfulComponent: React.FC<{
|
|
|
63
65
|
(agent && agent !== 'desktop') ? 'pt-15 sm:pt-17 pb-0 px-3 sm:px-8' : ''
|
|
64
66
|
]
|
|
65
67
|
|
|
66
|
-
const spreadId = (b.anchorId) ? {id: b.anchorId} : {}
|
|
67
|
-
|
|
68
68
|
return (
|
|
69
|
-
<section {...
|
|
70
|
-
|
|
69
|
+
<section {...((b.anchorId) ? {id: b.anchorId} : {})} className={cn(
|
|
70
|
+
snapTile ? 'snap-start snap-always h-[100vh]' : 'min-h-screen',
|
|
71
|
+
bottom ? 'flex flex-col' : '',
|
|
72
|
+
clx
|
|
73
|
+
)}>
|
|
74
|
+
<ApplyTypography className={cn(
|
|
75
|
+
'w-full flex flex-row justify-center self-stretch',
|
|
76
|
+
snapTile ? tileHeight : '',
|
|
77
|
+
bottom ? 'grow' : ''
|
|
78
|
+
)}>
|
|
71
79
|
<Poster banner={b.banner}>
|
|
72
80
|
{hasBannerVideo() && (
|
|
73
81
|
<Video
|
|
@@ -88,6 +96,7 @@ const ScreenfulComponent: React.FC<{
|
|
|
88
96
|
</div>
|
|
89
97
|
</Poster>
|
|
90
98
|
</ApplyTypography>
|
|
99
|
+
{bottom}
|
|
91
100
|
</section>
|
|
92
101
|
)
|
|
93
102
|
}
|
package/package.json
CHANGED