@hanzo/ui 3.8.33 → 3.8.35

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,7 +135,6 @@ 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' : ''
139
138
 
140
139
  const positionclx = getPositionClx(specified, agent)
141
140
 
@@ -148,14 +147,14 @@ const EnhHeadingBlockComponent: React.FC<
148
147
  undefined,
149
148
  clx: (b.preheading) ?
150
149
  (b.preheading.mb !== undefined ?
151
- `mb-${b.preheading.mb}` : `mb-${DEFAULTS.preheading.mb}`) + ' ' + positionclx.preheading + ' ' + phFontClx + ' ' + respectCaseClx
150
+ `mb-${b.preheading.mb}` : `mb-${DEFAULTS.preheading.mb}`) + ' ' + positionclx.preheading + ' ' + phFontClx
152
151
  :
153
- positionclx.preheading + ' ' + phFontClx + ' ' + respectCaseClx,
152
+ positionclx.preheading + ' ' + phFontClx,
154
153
  text: (b.preheading) ? (b.preheading.text ) : undefined,
155
154
  },
156
155
  {
157
156
  tag: (b.heading.level !== undefined ? tagFromLevel(b.heading.level) : DEFAULTS.heading.tag),
158
- clx: (b.heading.mb !== undefined ? `mb-${b.heading.mb}` : `mb-${DEFAULTS.heading.mb}`) + ' ' + positionclx.heading + ' ' + respectCaseClx,
157
+ clx: (b.heading.mb !== undefined ? `mb-${b.heading.mb}` : `mb-${DEFAULTS.heading.mb}`) + ' ' + positionclx.heading,
159
158
  text: b.heading.text,
160
159
  },
161
160
  {
@@ -163,7 +162,7 @@ const EnhHeadingBlockComponent: React.FC<
163
162
  (b.byline.level !== undefined ? tagFromLevel(b.byline.level) : DEFAULTS.byline.tag)
164
163
  :
165
164
  undefined,
166
- clx: positionclx.byline + ' ' + respectCaseClx,
165
+ clx: positionclx.byline,
167
166
  text: (b.byline) ? (b.byline.text ) : undefined,
168
167
  },
169
168
  ] as {
@@ -88,7 +88,8 @@ 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
- vertCenter ? 'self-center ' : ''
91
+ // TODO :aa py-0 breaks padding for header! Investigate why I would have done this!
92
+ vertCenter ? 'self-center ' + (oneColumn ? '!py-0' : '' ) : ''
92
93
  )}
93
94
  >
94
95
  <Content block={b} agent={agent} className='w-full'/>
@@ -19,7 +19,6 @@ 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,
23
22
  specifiers?: string
24
23
  // By default, appears inline to left of first element (preheading or heading)
25
24
  // unless indicated otherwise in specifiers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.8.33",
3
+ "version": "3.8.35",
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/",
@@ -12,7 +12,7 @@
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "git+https://github.com/hanzoai/react-sdk.git",
15
- "directory": "packages/ui"
15
+ "directory": "pkg/ui"
16
16
  },
17
17
  "keywords": [
18
18
  "components",
@@ -73,7 +73,7 @@
73
73
  "class-variance-authority": "^0.7.0",
74
74
  "clsx": "^2.1.0",
75
75
  "cmdk": "^0.2.0",
76
- "embla-carousel-react": "8.1.1",
76
+ "embla-carousel-react": "8.1.6",
77
77
  "input-otp": "^1.0.1",
78
78
  "lodash.castarray": "^4.4.0",
79
79
  "lodash.isplainobject": "^4.0.6",