@mdxui/named 8.1.0 → 8.2.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 +28 -19
- package/dist/components/index.js.map +1 -1
- package/dist/index.js +28 -19
- package/dist/index.js.map +1 -1
- package/dist/styles.css +236 -350
- package/dist/view/index.js +35 -21
- package/dist/view/index.js.map +1 -1
- package/package.json +3 -3
package/dist/view/index.js
CHANGED
|
@@ -196,7 +196,7 @@ function Hero({
|
|
|
196
196
|
const hasHeroImage = !!rightImageSrc && isRenderableSrc(rightImageSrc);
|
|
197
197
|
return /* @__PURE__ */ jsx4("section", { className: cn("relative py-12 md:py-16 px-6 lg:px-12 bg-background", className), children: /* @__PURE__ */ jsxs("div", { className: "max-w-7xl mx-auto p-0 sm:p-16 rounded-none sm:rounded-3xl md:[background:linear-gradient(180deg,var(--card)_0%,transparent_83.55%)]", children: [
|
|
198
198
|
/* @__PURE__ */ jsxs("div", { className: cn("grid gap-8 lg:gap-16 items-start mb-16 lg:mb-20", hasHeroImage && "lg:grid-cols-2"), children: [
|
|
199
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-6 lg:pt-8", children: [
|
|
199
|
+
/* @__PURE__ */ jsxs("div", { className: cn("space-y-6 lg:pt-8", !hasHeroImage && "mx-auto max-w-3xl text-center"), children: [
|
|
200
200
|
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "down", delay: 0.1, children: /* @__PURE__ */ jsx4("div", { className: "inline-block", children: /* @__PURE__ */ jsxs(
|
|
201
201
|
"a",
|
|
202
202
|
{
|
|
@@ -211,8 +211,8 @@ function Hero({
|
|
|
211
211
|
}
|
|
212
212
|
) }) }),
|
|
213
213
|
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "up", delay: 0.2, children: /* @__PURE__ */ jsx4("h1", { className: "font-halant font-normal text-[clamp(56px,6vw,72px)] leading-tight tracking-tight text-foreground", children: heading }) }),
|
|
214
|
-
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "up", delay: 0.3, children: /* @__PURE__ */ jsx4("p", { className: "text-lg leading-relaxed max-w-lg", children: description }) }),
|
|
215
|
-
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "up", delay: 0.4, trigger: "mount", children: /* @__PURE__ */ jsx4("div", { className: "flex flex-col sm:flex-row gap-3 pt-4", children: /* @__PURE__ */ jsx4(Button, { asChild: true, variant: ctaVariant, children: /* @__PURE__ */ jsxs("a", { href: ctaHref, children: [
|
|
214
|
+
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "up", delay: 0.3, children: /* @__PURE__ */ jsx4("p", { className: cn("text-lg leading-relaxed max-w-lg", !hasHeroImage && "mx-auto"), children: description }) }),
|
|
215
|
+
/* @__PURE__ */ jsx4(ScrollReveal, { direction: "up", delay: 0.4, trigger: "mount", children: /* @__PURE__ */ jsx4("div", { className: cn("flex flex-col sm:flex-row gap-3 pt-4", !hasHeroImage && "sm:justify-center"), children: /* @__PURE__ */ jsx4(Button, { asChild: true, variant: ctaVariant, children: /* @__PURE__ */ jsxs("a", { href: ctaHref, children: [
|
|
216
216
|
ctaText,
|
|
217
217
|
/* @__PURE__ */ jsx4(HiChevronRight, { className: "w-4 h-4" })
|
|
218
218
|
] }) }) }) })
|
|
@@ -400,7 +400,7 @@ function Features({ heading = "How It Works", description = "Priya handles the r
|
|
|
400
400
|
code: feature.code,
|
|
401
401
|
language: feature.language,
|
|
402
402
|
themes: "github-dark-default",
|
|
403
|
-
className: "bg-
|
|
403
|
+
className: "bg-(--color-code) rounded-lg p-6 lg:p-8 text-sm leading-relaxed text-(--color-code-fg)"
|
|
404
404
|
}
|
|
405
405
|
) })
|
|
406
406
|
] }) }, index)) })
|
|
@@ -469,6 +469,7 @@ function Pricing({
|
|
|
469
469
|
import { Check as Check2 } from "lucide-react";
|
|
470
470
|
import Image2 from "next/image";
|
|
471
471
|
import { Fragment, jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
472
|
+
var hasTierImage = (tier) => !!tier.image && isRenderableSrc(tier.image);
|
|
472
473
|
var defaultTiers = [
|
|
473
474
|
{
|
|
474
475
|
title: "Business",
|
|
@@ -486,8 +487,6 @@ var defaultTiers = [
|
|
|
486
487
|
{ text: "Custom workflows" },
|
|
487
488
|
{ text: "Advanced analytics" }
|
|
488
489
|
],
|
|
489
|
-
image: "/images/hero/hero-main.png",
|
|
490
|
-
imageAlt: "Business Plan",
|
|
491
490
|
featured: true
|
|
492
491
|
},
|
|
493
492
|
{
|
|
@@ -510,18 +509,28 @@ function PricingTiers({
|
|
|
510
509
|
securityNote = "Priya only accesses GitHub Issues and Projects\u2014she cannot read your code or secrets.",
|
|
511
510
|
className
|
|
512
511
|
}) {
|
|
512
|
+
const columnCount = tiers.reduce((count, tier) => count + (tier.featured && hasTierImage(tier) ? 2 : 1), 0);
|
|
513
|
+
const gridColumns = {
|
|
514
|
+
1: "lg:grid-cols-1",
|
|
515
|
+
2: "lg:grid-cols-2",
|
|
516
|
+
3: "lg:grid-cols-3",
|
|
517
|
+
4: "lg:grid-cols-4",
|
|
518
|
+
5: "lg:grid-cols-5",
|
|
519
|
+
6: "lg:grid-cols-6"
|
|
520
|
+
}[columnCount] ?? "lg:grid-cols-3";
|
|
521
|
+
const gridMaxWidth = !tiers.some(hasTierImage) && tiers.length <= 2 ? "max-w-4xl mx-auto" : void 0;
|
|
513
522
|
return /* @__PURE__ */ jsx8("section", { id: "pricing", className: cn(`pt-12 md:pt-16 pb-10 sm:pb-20 ${backgroundColor}`, className), children: /* @__PURE__ */ jsxs4("div", { className: "max-w-7xl mx-auto p-6 sm:p-16 rounded-none sm:rounded-3xl pricing-gradient", children: [
|
|
514
523
|
/* @__PURE__ */ jsx8(ScrollReveal, { direction: "up", delay: 0.1, children: /* @__PURE__ */ jsxs4("div", { className: "text-center my-16 sm:my-12", children: [
|
|
515
524
|
/* @__PURE__ */ jsx8("h2", { className: "font-halant font-normal text-[clamp(32px,4vw,52px)] leading-tight text-foreground mb-4", children: heading }),
|
|
516
525
|
/* @__PURE__ */ jsx8("p", { className: "text-base text-muted-foreground max-w-2xl mx-auto", children: subheading })
|
|
517
526
|
] }) }),
|
|
518
|
-
/* @__PURE__ */ jsx8("ul", { className: "grid gap-6 lg:
|
|
527
|
+
/* @__PURE__ */ jsx8("ul", { className: cn("grid gap-6 lg:items-stretch", gridColumns, gridMaxWidth), children: tiers.map((tier, index) => /* @__PURE__ */ jsx8("li", { className: tier.featured && hasTierImage(tier) ? "lg:col-span-2 flex" : "lg:col-span-1 flex", children: /* @__PURE__ */ jsx8(ScrollReveal, { direction: "up", delay: 0.2 + index * 0.1, className: "w-full", children: /* @__PURE__ */ jsx8(
|
|
519
528
|
"div",
|
|
520
529
|
{
|
|
521
530
|
className: tier.featured ? "bg-card flex w-full h-full flex-col-reverse rounded-3xl border border-border feature-card-shadow md:flex-row" : "bg-card w-full h-full rounded-3xl border border-border feature-card-shadow p-6 md:p-8",
|
|
522
531
|
children: tier.featured ? /* @__PURE__ */ jsxs4(Fragment, { children: [
|
|
523
|
-
|
|
524
|
-
/* @__PURE__ */ jsxs4("div", { className: cn("flex flex-col p-6 md:p-8",
|
|
532
|
+
hasTierImage(tier) && /* @__PURE__ */ jsx8("div", { className: "hidden xl:block xl:w-1/2 pl-6 md:pl-8 py-6 md:py-8", children: /* @__PURE__ */ jsx8("div", { className: "h-full rounded-lg overflow-hidden relative min-h-96", children: /* @__PURE__ */ jsx8(Image2, { src: tier.image, alt: tier.imageAlt || tier.title, fill: true, className: "object-cover", sizes: "(max-width: 1280px) 0vw, 50vw" }) }) }),
|
|
533
|
+
/* @__PURE__ */ jsxs4("div", { className: cn("flex flex-col p-6 md:p-8", hasTierImage(tier) && "xl:w-1/2"), children: [
|
|
525
534
|
/* @__PURE__ */ jsxs4("div", { className: "flex-1", children: [
|
|
526
535
|
/* @__PURE__ */ jsx8("p", { className: "text-lg font-semibold text-foreground", children: tier.title }),
|
|
527
536
|
/* @__PURE__ */ jsx8("p", { className: "text-muted-foreground mt-3", children: tier.description }),
|
|
@@ -761,11 +770,11 @@ function Footer({
|
|
|
761
770
|
}
|
|
762
771
|
form.reset();
|
|
763
772
|
};
|
|
764
|
-
return /* @__PURE__ */ jsx13("footer", { className: cn("py-16 px-6 lg:px-12 bg-
|
|
773
|
+
return /* @__PURE__ */ jsx13("footer", { className: cn("py-16 px-6 lg:px-12 bg-(--color-footer) text-(--color-footer-fg)", className), children: /* @__PURE__ */ jsxs8("div", { className: "max-w-7xl mx-auto", children: [
|
|
765
774
|
/* @__PURE__ */ jsxs8("div", { className: "grid md:grid-cols-5 gap-12 mb-12", children: [
|
|
766
775
|
/* @__PURE__ */ jsxs8("div", { className: "md:col-span-2", children: [
|
|
767
|
-
/* @__PURE__ */ jsx13(Link2, { href: "/", className: "inline-block mb-4", children: /* @__PURE__ */ jsx13("div", { className: "text-3xl font-base text-
|
|
768
|
-
/* @__PURE__ */ jsx13("p", { className: "max-w-md text-sm leading-relaxed text-
|
|
776
|
+
/* @__PURE__ */ jsx13(Link2, { href: "/", className: "inline-block mb-4", children: /* @__PURE__ */ jsx13("div", { className: "text-3xl font-base text-(--color-footer-fg) font-halant", children: logo }) }),
|
|
777
|
+
/* @__PURE__ */ jsx13("p", { className: "max-w-md text-sm leading-relaxed text-(--color-footer-fg)/70 mb-6", children: description }),
|
|
769
778
|
/* @__PURE__ */ jsx13("div", { className: "flex items-center gap-4", children: socialLinks.map((link) => {
|
|
770
779
|
const Icon = link.icon;
|
|
771
780
|
return /* @__PURE__ */ jsx13(
|
|
@@ -774,7 +783,7 @@ function Footer({
|
|
|
774
783
|
href: link.href,
|
|
775
784
|
target: "_blank",
|
|
776
785
|
rel: "noopener noreferrer",
|
|
777
|
-
className: "text-
|
|
786
|
+
className: "text-(--color-footer-fg)/70 transition-colors hover:text-(--color-footer-fg)",
|
|
778
787
|
"aria-label": link.label,
|
|
779
788
|
children: /* @__PURE__ */ jsx13(Icon, { className: "w-5 h-5" })
|
|
780
789
|
},
|
|
@@ -783,11 +792,11 @@ function Footer({
|
|
|
783
792
|
}) })
|
|
784
793
|
] }),
|
|
785
794
|
/* @__PURE__ */ jsxs8("div", { children: [
|
|
786
|
-
/* @__PURE__ */ jsx13("h3", { className: "font-semibold text-base mb-4 text-
|
|
787
|
-
/* @__PURE__ */ jsx13("ul", { className: "space-y-2", children: quickLinks.map((link) => /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(Link2, { href: link.href, className: "text-sm text-
|
|
795
|
+
/* @__PURE__ */ jsx13("h3", { className: "font-semibold text-base mb-4 text-(--color-footer-fg)", children: "Quick Links" }),
|
|
796
|
+
/* @__PURE__ */ jsx13("ul", { className: "space-y-2", children: quickLinks.map((link) => /* @__PURE__ */ jsx13("li", { children: /* @__PURE__ */ jsx13(Link2, { href: link.href, className: "text-sm text-(--color-footer-fg)/70 transition-colors hover:text-(--color-footer-fg)", children: link.label }) }, link.label)) })
|
|
788
797
|
] }),
|
|
789
798
|
/* @__PURE__ */ jsx13("div", { className: "w-full md:col-span-2 md:flex md:flex-col md:items-end", children: /* @__PURE__ */ jsxs8("div", { className: "w-full md:max-w-sm", children: [
|
|
790
|
-
/* @__PURE__ */ jsx13("h3", { className: "font-semibold text-base mb-4 text-
|
|
799
|
+
/* @__PURE__ */ jsx13("h3", { className: "font-semibold text-base mb-4 text-(--color-footer-fg)", children: contactTitle }),
|
|
791
800
|
/* @__PURE__ */ jsxs8("form", { onSubmit: handleEmailSubmit, className: "relative", children: [
|
|
792
801
|
/* @__PURE__ */ jsx13(
|
|
793
802
|
Input,
|
|
@@ -796,14 +805,14 @@ function Footer({
|
|
|
796
805
|
name: "email",
|
|
797
806
|
placeholder: emailPlaceholder,
|
|
798
807
|
required: true,
|
|
799
|
-
className: "w-full bg-
|
|
808
|
+
className: "w-full bg-(--color-footer-fg)/10 border-(--color-footer-fg)/20 text-(--color-footer-fg) placeholder:text-(--color-footer-fg)/50 pr-12"
|
|
800
809
|
}
|
|
801
810
|
),
|
|
802
811
|
/* @__PURE__ */ jsx13(
|
|
803
812
|
"button",
|
|
804
813
|
{
|
|
805
814
|
type: "submit",
|
|
806
|
-
className: "absolute right-1 top-1/2 -translate-y-1/2 bg-
|
|
815
|
+
className: "absolute right-1 top-1/2 -translate-y-1/2 bg-(--color-footer-fg) text-(--color-footer) hover:bg-(--color-footer-fg)/90 active:bg-(--color-footer) active:text-(--color-footer-fg) px-3 py-3 rounded-md transition-colors",
|
|
807
816
|
"aria-label": "Submit email",
|
|
808
817
|
children: /* @__PURE__ */ jsx13(FaArrowRight, { className: "w-3 h-3" })
|
|
809
818
|
}
|
|
@@ -811,7 +820,7 @@ function Footer({
|
|
|
811
820
|
] })
|
|
812
821
|
] }) })
|
|
813
822
|
] }),
|
|
814
|
-
/* @__PURE__ */ jsx13("div", { className: "border-t border-
|
|
823
|
+
/* @__PURE__ */ jsx13("div", { className: "border-t border-(--color-footer-fg)/10 pt-8", children: /* @__PURE__ */ jsx13("div", { className: "flex flex-col md:flex-row justify-between items-center gap-4", children: /* @__PURE__ */ jsx13("p", { className: "text-sm text-(--color-footer-fg)/60", children: copyrightText }) }) })
|
|
815
824
|
] }) });
|
|
816
825
|
}
|
|
817
826
|
|
|
@@ -1059,7 +1068,7 @@ function ExecFeatures({
|
|
|
1059
1068
|
{
|
|
1060
1069
|
code: feature.code,
|
|
1061
1070
|
language: feature.language,
|
|
1062
|
-
className: "rounded-[2px] border border-(--color-border) bg-
|
|
1071
|
+
className: "rounded-[2px] border border-(--color-border) bg-(--color-code) p-5 text-left text-xs leading-relaxed text-(--color-code-fg)"
|
|
1063
1072
|
}
|
|
1064
1073
|
) })
|
|
1065
1074
|
] }) }) }, index)) })
|
|
@@ -1384,7 +1393,12 @@ import { jsx as jsx25 } from "react/jsx-runtime";
|
|
|
1384
1393
|
var baseClasses3 = "inline-flex items-center justify-center gap-2 whitespace-nowrap uppercase tracking-[0.14em] font-medium transition-colors duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-(--color-ring) disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-3.5 [&_svg]:shrink-0 cursor-pointer rounded-[4px]";
|
|
1385
1394
|
var variantClasses3 = {
|
|
1386
1395
|
default: "bg-(--color-btn-primary-to) text-(--color-btn-primary-fg) hover:bg-(--color-accent)",
|
|
1387
|
-
bone
|
|
1396
|
+
/* `bone` lives ON the painted accent fields (closing room, featured
|
|
1397
|
+
edition) — it paints in the field's own type color (--color-accent-fg,
|
|
1398
|
+
light over the clamped-deep fields in BOTH modes), never the placard:
|
|
1399
|
+
placards follow the theme's card and go dark after hours, which sank
|
|
1400
|
+
this button dark-on-dark. */
|
|
1401
|
+
bone: "bg-(--color-accent-fg) text-(--color-accent-field) hover:bg-(--color-accent-fg)/90",
|
|
1388
1402
|
secondary: "bg-transparent text-(--color-fg) border border-(--color-border-strong) hover:bg-(--color-hover)"
|
|
1389
1403
|
};
|
|
1390
1404
|
var sizeClasses3 = {
|