@mdxui/named 6.2.0 → 6.3.1
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/components/index.js +38 -1
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +38 -1
- package/dist/index.js.map +1 -1
- package/dist/view/index.d.ts +2 -8
- package/dist/view/index.js +129 -103
- package/dist/view/index.js.map +1 -1
- package/package.json +7 -2
package/dist/view/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// src/view/view.tsx
|
|
2
|
-
import {
|
|
3
|
-
import { Navbar17, FooterSmall, NoiseTexture } from "@mdxui/neo";
|
|
2
|
+
import { DialectShell, NeoChrome } from "@mdxui/dialect";
|
|
4
3
|
|
|
5
4
|
// src/components/hero/hero.tsx
|
|
6
5
|
import Image from "next/image";
|
|
@@ -118,6 +117,26 @@ function Marquee({
|
|
|
118
117
|
// src/components/hero/hero.tsx
|
|
119
118
|
import { Button } from "@mdxui/primitives";
|
|
120
119
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
120
|
+
var isLogoUrl = (s) => /^(https?:)?\/\//i.test(s.trim()) || /^data:image\//i.test(s.trim());
|
|
121
|
+
var BRAND_LABELS = {
|
|
122
|
+
github: "GitHub",
|
|
123
|
+
gitlab: "GitLab",
|
|
124
|
+
linkedin: "LinkedIn",
|
|
125
|
+
youtube: "YouTube",
|
|
126
|
+
whatsapp: "WhatsApp",
|
|
127
|
+
hubspot: "HubSpot",
|
|
128
|
+
quickbooks: "QuickBooks",
|
|
129
|
+
typescript: "TypeScript",
|
|
130
|
+
javascript: "JavaScript",
|
|
131
|
+
postgresql: "PostgreSQL",
|
|
132
|
+
mongodb: "MongoDB",
|
|
133
|
+
graphql: "GraphQL",
|
|
134
|
+
openai: "OpenAI"
|
|
135
|
+
};
|
|
136
|
+
var brandLabel = (s) => {
|
|
137
|
+
const t = s.trim();
|
|
138
|
+
return BRAND_LABELS[t.toLowerCase()] ?? t.charAt(0).toUpperCase() + t.slice(1);
|
|
139
|
+
};
|
|
121
140
|
function Hero({
|
|
122
141
|
badgeEmoji = "",
|
|
123
142
|
badgeText = "Meet Priya",
|
|
@@ -189,7 +208,24 @@ function Hero({
|
|
|
189
208
|
style: { background: "linear-gradient(to left, var(--background), transparent)" }
|
|
190
209
|
}
|
|
191
210
|
),
|
|
192
|
-
/* @__PURE__ */ jsx3(Marquee, { className: "relative z-0 py-2 [--gap:1.25rem] sm:[--gap:3rem]", children: marqueeImages.map(
|
|
211
|
+
/* @__PURE__ */ jsx3(Marquee, { className: "relative z-0 py-2 [--gap:1.25rem] sm:[--gap:3rem]", children: marqueeImages.map(
|
|
212
|
+
(src, i) => isLogoUrl(src) ? /* @__PURE__ */ jsx3(
|
|
213
|
+
"img",
|
|
214
|
+
{
|
|
215
|
+
src,
|
|
216
|
+
alt: "",
|
|
217
|
+
className: "h-16 w-16 rounded-xl bg-card p-2 object-contain"
|
|
218
|
+
},
|
|
219
|
+
`${src}-${i}`
|
|
220
|
+
) : /* @__PURE__ */ jsx3(
|
|
221
|
+
"span",
|
|
222
|
+
{
|
|
223
|
+
className: "flex h-16 items-center whitespace-nowrap rounded-xl bg-card px-4 text-sm font-semibold tracking-tight text-foreground/70",
|
|
224
|
+
children: brandLabel(src)
|
|
225
|
+
},
|
|
226
|
+
`${src}-${i}`
|
|
227
|
+
)
|
|
228
|
+
) })
|
|
193
229
|
] })
|
|
194
230
|
] })
|
|
195
231
|
] }) });
|
|
@@ -1010,106 +1046,96 @@ function mapWorkflows(workflows) {
|
|
|
1010
1046
|
import { jsx as jsx15, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1011
1047
|
function NamedAgentView({ content, theme, mode, brandName, hostname }) {
|
|
1012
1048
|
const { hero, problem, features, integration, pricing, faq, cta, contact } = content;
|
|
1013
|
-
return /* @__PURE__ */ jsx15(
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
{
|
|
1104
|
-
logo: brandName,
|
|
1105
|
-
domain: hostname,
|
|
1106
|
-
showOpenInAI: true,
|
|
1107
|
-
openInAIVariant: "dropdown",
|
|
1108
|
-
openInAIDefaultPrompt: `Help me decide whether ${brandName} fits my team's workflow`,
|
|
1109
|
-
pageTitle: brandName
|
|
1110
|
-
}
|
|
1111
|
-
)
|
|
1112
|
-
] }) });
|
|
1049
|
+
return /* @__PURE__ */ jsx15(DialectShell, { theme, mode, children: /* @__PURE__ */ jsxs12(
|
|
1050
|
+
NeoChrome,
|
|
1051
|
+
{
|
|
1052
|
+
brandName,
|
|
1053
|
+
hostname,
|
|
1054
|
+
primaryCta: { text: hero.ctaText, url: hero.ctaHref },
|
|
1055
|
+
openInAIPrompt: `Help me decide whether ${brandName} fits my team's workflow`,
|
|
1056
|
+
children: [
|
|
1057
|
+
/* @__PURE__ */ jsx15(
|
|
1058
|
+
Hero,
|
|
1059
|
+
{
|
|
1060
|
+
badgeEmoji: hero.badgeEmoji,
|
|
1061
|
+
badgeText: hero.badgeText,
|
|
1062
|
+
badgeHref: hero.badgeHref,
|
|
1063
|
+
heading: hero.heading,
|
|
1064
|
+
description: hero.description,
|
|
1065
|
+
ctaText: hero.ctaText,
|
|
1066
|
+
ctaHref: hero.ctaHref,
|
|
1067
|
+
rightImageSrc: hero.rightImageSrc,
|
|
1068
|
+
rightImageAlt: hero.rightImageAlt,
|
|
1069
|
+
showIconOverlay: hero.showIconOverlay,
|
|
1070
|
+
marqueeTitle: hero.marqueeTitle,
|
|
1071
|
+
marqueeImages: hero.marqueeImages
|
|
1072
|
+
}
|
|
1073
|
+
),
|
|
1074
|
+
/* @__PURE__ */ jsx15(
|
|
1075
|
+
Problem,
|
|
1076
|
+
{
|
|
1077
|
+
heading: problem.heading,
|
|
1078
|
+
workflows: mapWorkflows(problem.workflows),
|
|
1079
|
+
subheading: problem.subheading,
|
|
1080
|
+
subheadingHighlight: problem.subheadingHighlight
|
|
1081
|
+
}
|
|
1082
|
+
),
|
|
1083
|
+
/* @__PURE__ */ jsx15(
|
|
1084
|
+
Features,
|
|
1085
|
+
{
|
|
1086
|
+
heading: features.heading,
|
|
1087
|
+
description: features.description,
|
|
1088
|
+
features: features.features
|
|
1089
|
+
}
|
|
1090
|
+
),
|
|
1091
|
+
integration && /* @__PURE__ */ jsx15(
|
|
1092
|
+
Integration,
|
|
1093
|
+
{
|
|
1094
|
+
title: integration.title,
|
|
1095
|
+
description: integration.description,
|
|
1096
|
+
buttonText: integration.buttonText,
|
|
1097
|
+
buttonHref: integration.buttonHref,
|
|
1098
|
+
leftNode: integration.leftNode,
|
|
1099
|
+
rightNode: integration.rightNode
|
|
1100
|
+
}
|
|
1101
|
+
),
|
|
1102
|
+
pricing.variant === "single" ? /* @__PURE__ */ jsx15(
|
|
1103
|
+
Pricing,
|
|
1104
|
+
{
|
|
1105
|
+
heading: pricing.heading,
|
|
1106
|
+
subheading: pricing.subheading,
|
|
1107
|
+
price: pricing.price,
|
|
1108
|
+
priceUnit: pricing.priceUnit,
|
|
1109
|
+
trialText: pricing.trialText,
|
|
1110
|
+
ctaText: pricing.ctaText,
|
|
1111
|
+
ctaHref: pricing.ctaHref,
|
|
1112
|
+
featuresHeading: pricing.featuresHeading,
|
|
1113
|
+
features: pricing.features,
|
|
1114
|
+
securityNote: pricing.securityNote
|
|
1115
|
+
}
|
|
1116
|
+
) : /* @__PURE__ */ jsx15(
|
|
1117
|
+
PricingTiers,
|
|
1118
|
+
{
|
|
1119
|
+
heading: pricing.heading,
|
|
1120
|
+
subheading: pricing.subheading,
|
|
1121
|
+
tiers: pricing.tiers,
|
|
1122
|
+
securityNote: pricing.securityNote
|
|
1123
|
+
}
|
|
1124
|
+
),
|
|
1125
|
+
/* @__PURE__ */ jsx15(FAQ, { heading: faq.heading, faqs: faq.faqs }),
|
|
1126
|
+
/* @__PURE__ */ jsx15(CTA, { heading: cta.heading, subheading: cta.subheading, buttons: cta.buttons }),
|
|
1127
|
+
contact && /* @__PURE__ */ jsx15(
|
|
1128
|
+
Contact,
|
|
1129
|
+
{
|
|
1130
|
+
heading: contact.heading,
|
|
1131
|
+
subheading: contact.subheading,
|
|
1132
|
+
fields: contact.fields,
|
|
1133
|
+
submitButtonText: contact.submitButtonText
|
|
1134
|
+
}
|
|
1135
|
+
)
|
|
1136
|
+
]
|
|
1137
|
+
}
|
|
1138
|
+
) });
|
|
1113
1139
|
}
|
|
1114
1140
|
var view_default = NamedAgentView;
|
|
1115
1141
|
export {
|