@stackshift-ui/header 6.1.0-alpha.3 → 6.1.0-alpha.5

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stackshift-ui/header",
3
3
  "description": "",
4
- "version": "6.1.0-alpha.3",
4
+ "version": "6.1.0-alpha.5",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -27,31 +27,31 @@
27
27
  "typescript": "^5.6.2",
28
28
  "vite-tsconfig-paths": "^5.0.1",
29
29
  "vitest": "^2.1.1",
30
- "@stackshift-ui/eslint-config": "6.0.10",
31
- "@stackshift-ui/typescript-config": "6.0.10"
30
+ "@stackshift-ui/typescript-config": "6.0.10",
31
+ "@stackshift-ui/eslint-config": "6.0.10"
32
32
  },
33
33
  "dependencies": {
34
34
  "@portabletext/react": "^3.1.0",
35
35
  "react-icons": "^5.3.0",
36
- "@stackshift-ui/heading": "6.0.11",
36
+ "@stackshift-ui/button": "6.0.11",
37
37
  "@stackshift-ui/container": "6.0.11",
38
- "@stackshift-ui/section": "6.0.11",
39
- "@stackshift-ui/link": "6.0.11",
40
38
  "@stackshift-ui/flex": "6.0.11",
41
- "@stackshift-ui/text": "6.0.11",
42
- "@stackshift-ui/swiper-pagination": "6.0.11",
43
- "@stackshift-ui/signin-signup": "6.0.14",
44
39
  "@stackshift-ui/image": "6.0.11",
40
+ "@stackshift-ui/heading": "6.0.11",
41
+ "@stackshift-ui/section": "6.0.11",
42
+ "@stackshift-ui/signin-signup": "6.0.14",
45
43
  "@stackshift-ui/system": "6.0.11",
46
- "@stackshift-ui/button": "6.0.11",
44
+ "@stackshift-ui/swiper-pagination": "6.0.11",
45
+ "@stackshift-ui/text": "6.0.11",
46
+ "@stackshift-ui/link": "6.0.11",
47
47
  "@stackshift-ui/scripts": "6.0.10"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "@stackshift-ui/system": ">=6.0.11",
51
51
  "@types/react": "16.8 - 19",
52
- "react": ">=16.8.0",
53
- "react-dom": ">=16.8.0",
54
- "next": "10 - 14"
52
+ "next": "10 - 14",
53
+ "react": "16.8 - 19",
54
+ "react-dom": "16.8 - 19"
55
55
  },
56
56
  "peerDependenciesMeta": {
57
57
  "next": {
package/src/header.tsx CHANGED
@@ -1,10 +1,8 @@
1
- import { lazy } from "react";
2
-
1
+ import React, { lazy } from "react";
3
2
  import {
4
3
  Form,
5
4
  HeaderSections,
6
5
  Images,
7
- LabeledRoute,
8
6
  LabeledRouteWithKey,
9
7
  MainImage,
10
8
  SectionsProps,
package/src/header_f.tsx CHANGED
@@ -20,7 +20,6 @@ const IMAGE_HEIGHT_CLASSES = {
20
20
 
21
21
  export default function Header_F({
22
22
  title,
23
- mainImage,
24
23
  subtitle,
25
24
  subtitlePosition,
26
25
  headerSections,
@@ -35,12 +34,7 @@ export default function Header_F({
35
34
  style={{ marginBottom: `${spacing}px` }}
36
35
  className={`w-full mx-auto ${!isFullWidth ? "max-w-[1548px] px-4" : ""}`}>
37
36
  {(title || subtitle) && (
38
- <HeaderTitle
39
- title={title}
40
- subtitle={subtitle}
41
- subtitlePosition={subtitlePosition}
42
- mainImage={mainImage}
43
- />
37
+ <HeaderTitle title={title} subtitle={subtitle} subtitlePosition={subtitlePosition} />
44
38
  )}
45
39
  <Flex className="flex-col" style={{ gap: `${spacing}px` }}>
46
40
  {headerSections?.map((header: HeaderBox, index: number) => {
@@ -61,12 +55,10 @@ const HeaderTitle = ({
61
55
  title,
62
56
  subtitle,
63
57
  subtitlePosition,
64
- mainImage,
65
58
  }: {
66
59
  title?: string;
67
60
  subtitle?: string;
68
61
  subtitlePosition?: string;
69
- mainImage?: { image: string; alt?: string };
70
62
  }) => (
71
63
  <Flex direction="col" justify="center" align="center" gap={3} className="mb-16">
72
64
  {subtitlePosition === "top" && subtitle && (
@@ -77,15 +69,6 @@ const HeaderTitle = ({
77
69
  {title}
78
70
  </Text>
79
71
  )}
80
- {mainImage && (
81
- <div className="relative h-80 max-h-[82px] w-full">
82
- <Image
83
- src={mainImage.image}
84
- alt={mainImage.alt || ""}
85
- className="object-contain object-center"
86
- />
87
- </div>
88
- )}
89
72
  {subtitlePosition === "bottom" && subtitle ? (
90
73
  <Text className="font-label tracking-[2.1px]">{subtitle}</Text>
91
74
  ) : (