@stackshift-ui/header 6.0.6 → 6.0.7
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/dist/chunk-35OWV2LA.mjs +89 -0
- package/dist/chunk-3SLHYG4E.mjs +33 -0
- package/dist/chunk-534QIB7N.mjs +65 -0
- package/dist/chunk-6DDP6YE5.mjs +54 -0
- package/dist/chunk-OIGPQF35.mjs +139 -0
- package/dist/chunk-QKD3MWOT.mjs +115 -0
- package/dist/header.js +572 -1
- package/dist/header.mjs +6 -1
- package/dist/header_a.js +174 -1
- package/dist/header_a.mjs +7 -1
- package/dist/header_b.js +150 -1
- package/dist/header_b.mjs +7 -1
- package/dist/header_c.js +90 -1
- package/dist/header_c.mjs +7 -1
- package/dist/header_d.js +124 -1
- package/dist/header_d.mjs +7 -1
- package/dist/header_e.js +89 -1
- package/dist/header_e.mjs +7 -1
- package/dist/index.js +591 -1
- package/dist/index.mjs +27 -1
- package/dist/types.js +18 -1
- package/package.json +6 -6
package/dist/header_e.js
CHANGED
|
@@ -1 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/header_e.tsx
|
|
31
|
+
var header_e_exports = {};
|
|
32
|
+
__export(header_e_exports, {
|
|
33
|
+
Header_E: () => Header_E,
|
|
34
|
+
default: () => Header_E
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(header_e_exports);
|
|
37
|
+
var import_button = require("@stackshift-ui/button");
|
|
38
|
+
var import_container = require("@stackshift-ui/container");
|
|
39
|
+
var import_flex = require("@stackshift-ui/flex");
|
|
40
|
+
var import_heading = require("@stackshift-ui/heading");
|
|
41
|
+
var import_section = require("@stackshift-ui/section");
|
|
42
|
+
var import_signin_signup = require("@stackshift-ui/signin-signup");
|
|
43
|
+
var import_text = require("@stackshift-ui/text");
|
|
44
|
+
var import_react = __toESM(require("react"));
|
|
45
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
46
|
+
function Header_E({
|
|
47
|
+
title,
|
|
48
|
+
description,
|
|
49
|
+
primaryButton,
|
|
50
|
+
secondaryButton,
|
|
51
|
+
formLinks,
|
|
52
|
+
form
|
|
53
|
+
}) {
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section.Section, { className: "relative py-20 bg-background", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_container.Container, { maxWidth: 1280, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", className: "flex-col lg:flex-row", gap: 4, children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_flex.Flex, { align: "center", direction: "col", className: "w-full basis-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "max-w-md mx-auto text-center lg:text-left", children: [
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TitleAndDescription, { title, description }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { primaryButton, secondaryButton })
|
|
58
|
+
] }) }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "w-full lg:w-1/2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "max-w-sm mx-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_signin_signup.SigninSignup_A, { form, formLinks }) }) })
|
|
60
|
+
] }) }) });
|
|
61
|
+
}
|
|
62
|
+
function TitleAndDescription({ title, description }) {
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react.default.Fragment, { children: [
|
|
64
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_heading.Heading, { fontSize: "3xl", className: "mb-3", children: title }),
|
|
65
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_text.Text, { muted: true, className: "my-6", children: description })
|
|
66
|
+
] });
|
|
67
|
+
}
|
|
68
|
+
function Buttons({
|
|
69
|
+
primaryButton,
|
|
70
|
+
secondaryButton
|
|
71
|
+
}) {
|
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_flex.Flex, { align: "center", gap: 2, className: "flex-col md:flex-row justify-center lg:justify-start", children: [
|
|
73
|
+
(primaryButton == null ? void 0 : primaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { as: "link", link: primaryButton, ariaLabel: primaryButton == null ? void 0 : primaryButton.label, children: primaryButton == null ? void 0 : primaryButton.label }),
|
|
74
|
+
(secondaryButton == null ? void 0 : secondaryButton.label) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
75
|
+
import_button.Button,
|
|
76
|
+
{
|
|
77
|
+
as: "link",
|
|
78
|
+
link: secondaryButton,
|
|
79
|
+
className: "bg-secondary hover:bg-secondary/50 inline-block rounded-global font-bold transition duration-200 px-6 py-3",
|
|
80
|
+
ariaLabel: secondaryButton == null ? void 0 : secondaryButton.label,
|
|
81
|
+
children: secondaryButton == null ? void 0 : secondaryButton.label
|
|
82
|
+
}
|
|
83
|
+
)
|
|
84
|
+
] });
|
|
85
|
+
}
|
|
86
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
+
0 && (module.exports = {
|
|
88
|
+
Header_E
|
|
89
|
+
});
|