@hanzo/ui 1.0.10 → 1.0.11

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.
@@ -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 text-sm sm:text-base'>{card.text}</p>
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 ' + modifiers, className)} >
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
  )
@@ -6,6 +6,7 @@ interface BulletCardsBlock extends Block {
6
6
  blockType: 'bullet-cards'
7
7
  /**
8
8
  * no-card-border
9
+ * mobile-small-text
9
10
  * borders-muted-1 / borders-muted-3
10
11
  * default: 2
11
12
  */
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-between gap-6 pb-[2vh]', className)}>
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 +
@@ -0,0 +1,6 @@
1
+ namespace NodeJS {
2
+ interface ProcessEnv {
3
+ NEXT_PUBLIC_GA_MEASUREMENT_ID: string;
4
+ NEXT_PUBLIC_FACEBOOK_PIXEL_ID: string;
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
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.307.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/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../tsconfig.hanzo-modules.base.json",
3
+ "include": [
4
+ "**/*.ts",
5
+ "**/*.tsx",
6
+ ],
7
+ "exclude": [
8
+ "node_modules",
9
+ ],
10
+ }