@hanzo/ui 3.8.31 → 3.8.33
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.
|
@@ -135,6 +135,7 @@ const EnhHeadingBlockComponent: React.FC<
|
|
|
135
135
|
const preheadingHeadingFont = specified('preheading-heading-font')
|
|
136
136
|
const phFontClx = preheadingHeadingFont ? 'font-heading' : ''
|
|
137
137
|
const alignMiddleClx = specified('align-middle') ? 'my-auto' : ''
|
|
138
|
+
const respectCaseClx = specified('respect-case') ? '!normal-case' : ''
|
|
138
139
|
|
|
139
140
|
const positionclx = getPositionClx(specified, agent)
|
|
140
141
|
|
|
@@ -147,14 +148,14 @@ const EnhHeadingBlockComponent: React.FC<
|
|
|
147
148
|
undefined,
|
|
148
149
|
clx: (b.preheading) ?
|
|
149
150
|
(b.preheading.mb !== undefined ?
|
|
150
|
-
`mb-${b.preheading.mb}` : `mb-${DEFAULTS.preheading.mb}`) + ' ' + positionclx.preheading + ' ' + phFontClx
|
|
151
|
+
`mb-${b.preheading.mb}` : `mb-${DEFAULTS.preheading.mb}`) + ' ' + positionclx.preheading + ' ' + phFontClx + ' ' + respectCaseClx
|
|
151
152
|
:
|
|
152
|
-
positionclx.preheading + ' ' + phFontClx,
|
|
153
|
+
positionclx.preheading + ' ' + phFontClx + ' ' + respectCaseClx,
|
|
153
154
|
text: (b.preheading) ? (b.preheading.text ) : undefined,
|
|
154
155
|
},
|
|
155
156
|
{
|
|
156
157
|
tag: (b.heading.level !== undefined ? tagFromLevel(b.heading.level) : DEFAULTS.heading.tag),
|
|
157
|
-
clx: (b.heading.mb !== undefined ? `mb-${b.heading.mb}` : `mb-${DEFAULTS.heading.mb}`) + ' ' + positionclx.heading,
|
|
158
|
+
clx: (b.heading.mb !== undefined ? `mb-${b.heading.mb}` : `mb-${DEFAULTS.heading.mb}`) + ' ' + positionclx.heading + ' ' + respectCaseClx,
|
|
158
159
|
text: b.heading.text,
|
|
159
160
|
},
|
|
160
161
|
{
|
|
@@ -162,7 +163,7 @@ const EnhHeadingBlockComponent: React.FC<
|
|
|
162
163
|
(b.byline.level !== undefined ? tagFromLevel(b.byline.level) : DEFAULTS.byline.tag)
|
|
163
164
|
:
|
|
164
165
|
undefined,
|
|
165
|
-
clx: positionclx.byline,
|
|
166
|
+
clx: positionclx.byline + ' ' + respectCaseClx,
|
|
166
167
|
text: (b.byline) ? (b.byline.text ) : undefined,
|
|
167
168
|
},
|
|
168
169
|
] as {
|
|
@@ -88,8 +88,7 @@ const ScreenfulComponent: React.FC<{
|
|
|
88
88
|
...cwclx,
|
|
89
89
|
snapTile ? 'absolute left-0 right-0 top-0 bottom-0 ' : 'flex min-h-screen w-full',
|
|
90
90
|
contentClx,
|
|
91
|
-
|
|
92
|
-
vertCenter ? 'self-center ' + (oneColumn ? '!py-0' : '' ) : ''
|
|
91
|
+
vertCenter ? 'self-center ' : ''
|
|
93
92
|
)}
|
|
94
93
|
>
|
|
95
94
|
<Content block={b} agent={agent} className='w-full'/>
|
|
@@ -19,6 +19,7 @@ interface EnhHeadingBlock extends Block {
|
|
|
19
19
|
// left / right / center for preheading and heading (byline stays left)
|
|
20
20
|
// byline-left / byline-right / byline-center
|
|
21
21
|
// preheading-heading-font
|
|
22
|
+
// respect-case: no all caps for h1, h2,
|
|
22
23
|
specifiers?: string
|
|
23
24
|
// By default, appears inline to left of first element (preheading or heading)
|
|
24
25
|
// unless indicated otherwise in specifiers
|
|
@@ -20,7 +20,7 @@ interface ScreenfulBlock extends Block {
|
|
|
20
20
|
*
|
|
21
21
|
* If in a scrolling situation, the video will autoplay when 75% in view
|
|
22
22
|
*/
|
|
23
|
-
banner?: string | VideoBlock
|
|
23
|
+
banner?: string | VideoBlock // TODO: should be VideoDef
|
|
24
24
|
|
|
25
25
|
/** Specifies rendering and layout hints and variants for block as a whole */
|
|
26
26
|
specifiers?: string
|
package/package.json
CHANGED