@hanzo/ui 3.6.1 → 3.6.2
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.
|
|
3
|
+
"version": "3.6.2",
|
|
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/",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"react-intersection-observer": "^9.7.0",
|
|
68
68
|
"sonner": "^1.2.3",
|
|
69
69
|
"tailwind-merge": "^2.2.0",
|
|
70
|
-
"tailwindcss-animate": "^1.0.
|
|
70
|
+
"tailwindcss-animate": "^1.0.7",
|
|
71
71
|
"tailwindcss-interaction-media": "^0.1.0",
|
|
72
72
|
"vaul": "^0.9.0"
|
|
73
73
|
},
|
package/primitives/button.tsx
CHANGED
|
@@ -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-
|
|
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
|
|
package/types/button-def.ts
CHANGED
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'
|