@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/header_e.js CHANGED
@@ -1 +1,89 @@
1
- "use strict";var v=Object.create;var f=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var F=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty;var P=(e,l)=>{for(var a in l)f(e,a,{get:l[a],enumerable:!0})},t=(e,l,a,s)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of w(l))!H.call(e,m)&&m!==a&&f(e,m,{get:()=>l[m],enumerable:!(s=k(l,m))||s.enumerable});return e};var S=(e,l,a)=>(a=e!=null?v(F(e)):{},t(l||!e||!e.__esModule?f(a,"default",{value:e,enumerable:!0}):a,e)),L=e=>t(f({},"__esModule",{value:!0}),e);var A={};P(A,{Header_E:()=>p,default:()=>p});module.exports=L(A);var r=require("@stackshift-ui/button"),g=require("@stackshift-ui/container"),o=require("@stackshift-ui/flex"),x=require("@stackshift-ui/heading"),n=require("@stackshift-ui/section"),c=require("@stackshift-ui/signin-signup"),b=require("@stackshift-ui/text"),d=S(require("react")),i=require("react/jsx-runtime");function p({title:e,description:l,primaryButton:a,secondaryButton:s,formLinks:m,form:N}){return(0,i.jsx)(n.Section,{className:"relative py-20 bg-background",children:(0,i.jsx)(g.Container,{maxWidth:1280,children:(0,i.jsxs)(o.Flex,{align:"center",className:"flex-col lg:flex-row",gap:4,children:[(0,i.jsx)(o.Flex,{align:"center",direction:"col",className:"w-full basis-1/2",children:(0,i.jsxs)("div",{className:"max-w-md mx-auto text-center lg:text-left",children:[(0,i.jsx)(T,{title:e,description:l}),(0,i.jsx)(h,{primaryButton:a,secondaryButton:s})]})}),(0,i.jsx)("div",{className:"w-full lg:w-1/2",children:(0,i.jsx)("div",{className:"max-w-sm mx-auto text-center",children:(0,i.jsx)(c.SigninSignup_A,{form:N,formLinks:m})})})]})})})}function T({title:e,description:l}){return(0,i.jsxs)(d.default.Fragment,{children:[e&&(0,i.jsx)(x.Heading,{fontSize:"3xl",className:"mb-3",children:e}),l&&(0,i.jsx)(b.Text,{muted:!0,className:"my-6",children:l})]})}function h({primaryButton:e,secondaryButton:l}){return(0,i.jsxs)(o.Flex,{align:"center",gap:2,className:"flex-col md:flex-row justify-center lg:justify-start",children:[(e==null?void 0:e.label)&&(0,i.jsx)(r.Button,{as:"link",link:e,ariaLabel:e==null?void 0:e.label,children:e==null?void 0:e.label}),(l==null?void 0:l.label)&&(0,i.jsx)(r.Button,{as:"link",link:l,className:"bg-secondary hover:bg-secondary/50 inline-block rounded-global font-bold transition duration-200 px-6 py-3",ariaLabel:l==null?void 0:l.label,children:l==null?void 0:l.label})]})}0&&(module.exports={Header_E});
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
+ });
package/dist/header_e.mjs CHANGED
@@ -1 +1,7 @@
1
- import{a}from"./chunk-Z4QMS2YF.mjs";export{a as Header_E,a as default};
1
+ import {
2
+ Header_E
3
+ } from "./chunk-6DDP6YE5.mjs";
4
+ export {
5
+ Header_E,
6
+ Header_E as default
7
+ };