@hanzo/ui 3.8.32 → 3.8.34
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.
|
@@ -86,10 +86,10 @@ const getPositionClx = (
|
|
|
86
86
|
|
|
87
87
|
if (agent === 'phone') {
|
|
88
88
|
if (mobileHeadingLeft) {
|
|
89
|
-
headerclx = 'self-start text-left'
|
|
89
|
+
headerclx = 'self-start !text-left'
|
|
90
90
|
} else {
|
|
91
91
|
headerclx = (mobileHeadingCentered || headingCentered) ?
|
|
92
|
-
'self-center text-center' : (headingRight ? 'self-end text-right' : 'self-start text-left')
|
|
92
|
+
'self-center !text-center' : (headingRight ? 'self-end !text-right' : 'self-start !text-left')
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
if (mobileBylineLeft) {
|
|
@@ -98,10 +98,10 @@ const getPositionClx = (
|
|
|
98
98
|
}
|
|
99
99
|
else {
|
|
100
100
|
const largerclx = (headingCentered) ?
|
|
101
|
-
'self-center text-center' : (headingRight ? 'self-end text-right' : 'self-start text-left')
|
|
101
|
+
'self-center !text-center' : (headingRight ? 'self-end !text-right' : 'self-start !text-left')
|
|
102
102
|
|
|
103
103
|
if (mobileHeadingCentered) {
|
|
104
|
-
headerclx = 'self-center text-center md:' + largerclx.split(' ').join(' md:')
|
|
104
|
+
headerclx = 'self-center !text-center md:' + largerclx.split(' ').join(' md:')
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
headerclx = largerclx
|
|
@@ -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 {
|
|
@@ -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
|
package/package.json
CHANGED