@cntrl-site/sdk-nextjs 0.16.7 → 0.16.9
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/lib/components/Item.js
CHANGED
|
@@ -115,7 +115,7 @@ const Item = ({ item, sectionId, articleHeight }) => {
|
|
|
115
115
|
top: ${sticky ? `${(0, getAnchoredItemTop_1.getAnchoredItemTop)(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
|
|
116
116
|
pointer-events: auto;
|
|
117
117
|
cursor: ${hoverParams ? 'pointer' : 'default'};
|
|
118
|
-
|
|
118
|
+
display: ${hidden ? 'none' : 'block'};
|
|
119
119
|
height: fit-content;
|
|
120
120
|
}
|
|
121
121
|
.item-${item.id}-inner {
|
|
@@ -47,6 +47,7 @@ const RichTextItem = ({ item, sectionId, onResize }) => {
|
|
|
47
47
|
vertical-align: ${layoutParams.verticalAlign};
|
|
48
48
|
font-variant: ${layoutParams.fontVariant};
|
|
49
49
|
color: ${color.toCss()};
|
|
50
|
+
text-transform: ${layoutParams.textTransform};
|
|
50
51
|
}
|
|
51
52
|
@supports not (color: oklch(42% 0.3 90 / 1)) {
|
|
52
53
|
.rich-text-wrapper-${item.id} {
|
package/package.json
CHANGED
package/src/components/Item.tsx
CHANGED
|
@@ -160,7 +160,7 @@ export const Item: FC<ItemWrapperProps> = ({ item, sectionId, articleHeight }) =
|
|
|
160
160
|
top: ${sticky ? `${getAnchoredItemTop(area.top - sticky.from, sectionHeight, area.anchorSide)}` : 0};
|
|
161
161
|
pointer-events: auto;
|
|
162
162
|
cursor: ${hoverParams ? 'pointer' : 'default'};
|
|
163
|
-
|
|
163
|
+
display: ${hidden ? 'none' : 'block'};
|
|
164
164
|
height: fit-content;
|
|
165
165
|
}
|
|
166
166
|
.item-${item.id}-inner {
|
|
@@ -55,6 +55,7 @@ export const RichTextItem: FC<ItemProps<TRichTextItem>> = ({ item, sectionId, on
|
|
|
55
55
|
vertical-align: ${layoutParams.verticalAlign};
|
|
56
56
|
font-variant: ${layoutParams.fontVariant};
|
|
57
57
|
color: ${color.toCss()};
|
|
58
|
+
text-transform: ${layoutParams.textTransform};
|
|
58
59
|
}
|
|
59
60
|
@supports not (color: oklch(42% 0.3 90 / 1)) {
|
|
60
61
|
.rich-text-wrapper-${item.id} {
|