@hanzo/ui 3.8.32 → 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 {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.8.32",
3
+ "version": "3.8.33",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",