@hanzo/ui 3.6.1 → 3.6.3

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.
@@ -38,6 +38,7 @@ const ScreenfulComponent: React.FC<{
38
38
  const narrowGutters = specified('narrow-gutters') // eg, for a table object that is large
39
39
  const noGutters = specified('no-gutters')
40
40
  const fullScreenWidth = specified('full-screen-width')
41
+ const fullScreenHeight = specified('full-screen-height')
41
42
  const vertCenter = specified('vert-center')
42
43
 
43
44
  // content wrapper clx:
@@ -49,6 +50,7 @@ const ScreenfulComponent: React.FC<{
49
50
  const cwclx = [
50
51
  'xl:mx-auto overflow-y-hidden ',
51
52
  fullScreenWidth ? '' : 'max-w-screen-xl',
53
+ fullScreenHeight ? 'h-full' : '',
52
54
  // desktop header: 80px / pt-20
53
55
  // mobile header: 44px / pt-11
54
56
  narrowGutters ?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/ui",
3
- "version": "3.6.1",
3
+ "version": "3.6.3",
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/",
@@ -16,10 +16,17 @@
16
16
  },
17
17
  "keywords": [
18
18
  "components",
19
- "ui",
20
- "radix-ui",
19
+ "ecommerce",
20
+ "analytics",
21
+ "ai",
22
+ "chat",
23
+ "hanzo",
24
+ "hanzo-ai",
21
25
  "hanzoai",
22
- "hanzo"
26
+ "radix-ui",
27
+ "react",
28
+ "sdk",
29
+ "ui"
23
30
  ],
24
31
  "scripts": {
25
32
  "lat": "npm show @hanzo/ui version",
@@ -67,7 +74,7 @@
67
74
  "react-intersection-observer": "^9.7.0",
68
75
  "sonner": "^1.2.3",
69
76
  "tailwind-merge": "^2.2.0",
70
- "tailwindcss-animate": "^1.0.6",
77
+ "tailwindcss-animate": "^1.0.7",
71
78
  "tailwindcss-interaction-media": "^0.1.0",
72
79
  "vaul": "^0.9.0"
73
80
  },
@@ -7,7 +7,7 @@ import { cn } from "../util"
7
7
  const variant = {
8
8
  primary: "bg-primary text-primary-fg hover:bg-primary-hover font-nav whitespace-nowrap not-typography",
9
9
  secondary: "bg-secondary text-secondary-fg hover:bg-secondary-hover font-nav whitespace-nowrap not-typography",
10
- outline: "text-foreground bg-background border border-muted-1 hover:bg-level-1 hover:text-accent hover:border-accent font-nav whitespace-nowrap not-typography",
10
+ outline: "text-foreground bg-background border border-muted-4 hover:bg-level-1 hover:text-accent hover:border-accent font-nav whitespace-nowrap not-typography",
11
11
  destructive: "bg-destructive text-destructive-fg font-sans whitespace-nowrap hover:bg-destructive-hover",
12
12
  ghost: "text-foreground hover:bg-level-1 hover:text-accent whitespace-nowrap font-sans ",
13
13
  link: "text-foreground hover:text-muted-1 font-sans ",
@@ -19,8 +19,8 @@ const size = {
19
19
  xs: "h-8 px-2 text-xs",
20
20
  sm: "h-9 px-3 text-xs",
21
21
  square: 'h-10 py-2 px-2 text-sm aspect-square',
22
- default: "h-10 py-2 px-4 text-sm md:text-base min-w-0",
23
- lg: "h-10 px-8 text-sm md:text-base min-w-0 md:min-w-[260px] lg:min-w-[300px]",
22
+ default: "h-10 py-2 px-4 text-sm md:text-base font-semibold min-w-0",
23
+ lg: "h-10 px-8 text-sm md:text-base font-semibold min-w-0 md:min-w-[260px] lg:min-w-[300px]",
24
24
  icon: "h-10 w-10",
25
25
  }
26
26
 
@@ -27,20 +27,37 @@ const StepIndicator: React.FC<{
27
27
  style={{ paddingLeft: pX, paddingRight: pX }}
28
28
  >
29
29
  {steps.map((ignore, index) => (<>
30
- {index !== 0 && (<div key={`sep-${index}`} className={'h-[1px] grow ' + (muted ? 'bg-muted' : 'bg-foreground')}/>)}
30
+ {index !== 0 && (
31
+ <div
32
+ key={`sep-${index}`}
33
+ className={cn(
34
+ 'h-[1px] grow',
35
+ currentStep >= index ? (muted ? 'bg-muted' : 'bg-foreground') : (muted ? 'bg-muted-3' : 'bg-level-3'),
36
+ )}
37
+ />
38
+ )}
31
39
  <div
32
40
  key={`circle-${index}`}
33
41
  style={{width: `${dotSizeRem}rem`, height: `${dotSizeRem}rem`}}
34
42
  className={cn(
35
- 'shrink-0 rounded-full border-[1.5px] ' + (muted ? 'border-muted' : 'border-foreground') ,
36
- currentStep === index ? (muted ? 'bg-muted' : 'bg-foreground') : ''
43
+ 'shrink-0 rounded-full border-[1.5px]',
44
+ currentStep === index ? (muted ? 'bg-muted-3 border-muted' : 'bg-level-3 border-foreground') : '',
45
+ currentStep > index || currentStep === steps.length - 1 ? (muted ? 'bg-muted border-muted' : 'bg-foreground border-foreground') : ''
37
46
  )}
38
47
  />
39
48
  </>))}
40
49
  </div>
41
50
  <div key='two' className={'grid ' + `grid-cols-${steps.length}` /* These are white listed already */} >
42
51
  {steps.map((label, index) => (
43
- <div key={index} className={'text-center whitespace-nowrap ' + (muted ? 'text-muted' : 'text-foreground')} >{label}</div>
52
+ <div
53
+ key={index}
54
+ className={cn(
55
+ 'text-center whitespace-nowrap',
56
+ (muted ? 'text-muted' : 'text-foreground')
57
+ )}
58
+ >
59
+ {label}
60
+ </div>
44
61
  ))}
45
62
  </div>
46
63
  </div>
@@ -1,6 +1,6 @@
1
1
  import { type ButtonProps } from '../primitives/button'
2
2
 
3
- type SubmitServerAction = (data: any, enclosure?: any) => Promise<void>
3
+ type SubmitServerAction = (data: any, enclosure?: any) => Promise<any>
4
4
 
5
5
  interface ButtonModalProps {
6
6
  open: boolean
package/types/index.ts CHANGED
@@ -10,7 +10,6 @@ export type {
10
10
  ButtonModalDef,
11
11
  } from './button-def'
12
12
 
13
- export type { ContactInfo, ContactInfoFields } from './contact-info'
14
13
  export type { default as Dimensions } from './dimensions'
15
14
 
16
15
  export type { default as GridDef, GridColumnSpec } from './grid-def'
@@ -1,11 +0,0 @@
1
- interface ContactInfo {
2
- email: string
3
- phone?: string
4
- }
5
-
6
- type ContactInfoFields = keyof ContactInfo
7
-
8
- export {
9
- type ContactInfo,
10
- type ContactInfoFields
11
- }