@hanzo/ui 1.0.10 → 1.0.12
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/blocks/components/bullet-cards-block.tsx +2 -1
- package/blocks/components/screenful-block/content.tsx +4 -1
- package/blocks/def/bullet-cards-block.ts +1 -0
- package/common/footer.tsx +1 -1
- package/environment.d.ts +6 -0
- package/package.json +2 -16
- package/primitives/toggle.tsx +1 -0
- package/tsconfig.json +10 -0
|
@@ -20,6 +20,7 @@ const BulletCardsBlockComponent: React.FC<BlockComponentProps> = ({
|
|
|
20
20
|
const specified = (s: string) => (containsToken(b.specifiers, s))
|
|
21
21
|
|
|
22
22
|
const noBorder = specified('no-card-border') ? 'border-0' : 'md:border'
|
|
23
|
+
const mobileTextXs = specified('mobile-small-text') ? 'text-xs' : 'text-sm'
|
|
23
24
|
|
|
24
25
|
const borderclx = specified('border-muted-3') ?
|
|
25
26
|
'md:border-muted-3'
|
|
@@ -35,7 +36,7 @@ const BulletCardsBlockComponent: React.FC<BlockComponentProps> = ({
|
|
|
35
36
|
borderclx
|
|
36
37
|
)}>
|
|
37
38
|
<InlineIcon icon={card.icon} size={b.iconSize ?? 28} agent={agent} className='shrink-0 mr-2 md:mr-4 '/>
|
|
38
|
-
<p className='m-0
|
|
39
|
+
<p className={cn('m-0 sm:text-base', mobileTextXs)}>{card.text}</p>
|
|
39
40
|
</div>
|
|
40
41
|
))}
|
|
41
42
|
</GridBlockComponent>
|
|
@@ -70,8 +70,11 @@ const ContentColumn: React.FC<{
|
|
|
70
70
|
modifiers += 'typography-headings:text-center '
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
/* ContentComponent's parent div needs h-full class in order for vertical alignment with flexbox to work.
|
|
74
|
+
* This affects specifiers: bottom, vert-center, mobile-vert-center
|
|
75
|
+
*/
|
|
73
76
|
return (
|
|
74
|
-
<div className={cn('flex flex-col justify-center '
|
|
77
|
+
<div className={cn('flex flex-col justify-center h-full', modifiers, className)} >
|
|
75
78
|
<ContentComponent blocks={blocks} agent={agent} />
|
|
76
79
|
</div>
|
|
77
80
|
)
|
package/common/footer.tsx
CHANGED
|
@@ -24,7 +24,7 @@ const Footer: React.FC<{
|
|
|
24
24
|
const _aboveCopyright = (typeof aboveCopyright === 'undefined') ? legal : aboveCopyright
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<footer className={cn('grow flex flex-col justify-
|
|
27
|
+
<footer className={cn('grow flex flex-col justify-end gap-6 pb-[2vh]', className)}>
|
|
28
28
|
<div className={
|
|
29
29
|
(noHorizPadding ? '' : 'px-5 md:px-8 ') +
|
|
30
30
|
'grid grid-cols-2 gap-4 gap-y-6 md:gap-x-6 lg:gap-8 ' + smGridColsClx +
|
package/environment.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hanzo/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
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/",
|
|
@@ -14,20 +14,6 @@
|
|
|
14
14
|
"url": "git+https://github.com/hanzoai/react-sdk.git",
|
|
15
15
|
"directory": "packages/ui"
|
|
16
16
|
},
|
|
17
|
-
"files": [
|
|
18
|
-
"assets",
|
|
19
|
-
"blocks",
|
|
20
|
-
"common",
|
|
21
|
-
"context-providers",
|
|
22
|
-
"dist",
|
|
23
|
-
"next",
|
|
24
|
-
"primitives",
|
|
25
|
-
"siteDef",
|
|
26
|
-
"style",
|
|
27
|
-
"tailwind",
|
|
28
|
-
"types",
|
|
29
|
-
"util"
|
|
30
|
-
],
|
|
31
17
|
"keywords": [
|
|
32
18
|
"components",
|
|
33
19
|
"ui",
|
|
@@ -71,7 +57,7 @@
|
|
|
71
57
|
"lodash.castarray": "^4.4.0",
|
|
72
58
|
"lodash.isplainobject": "^4.0.6",
|
|
73
59
|
"lodash.merge": "^4.6.2",
|
|
74
|
-
"lucide-react": "^0.
|
|
60
|
+
"lucide-react": "^0.344.0",
|
|
75
61
|
"markdown-to-jsx": "^7.3.2",
|
|
76
62
|
"postcss-selector-parser": "^6.0.13",
|
|
77
63
|
"react-day-picker": "^8.7.1",
|
package/primitives/toggle.tsx
CHANGED