@medialane/ui 0.376.0 → 0.378.0

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.
Files changed (110) hide show
  1. package/dist/components/action-button.cjs +5 -3
  2. package/dist/components/action-button.cjs.map +1 -1
  3. package/dist/components/action-button.d.cts +3 -1
  4. package/dist/components/action-button.d.ts +3 -1
  5. package/dist/components/action-button.js +5 -3
  6. package/dist/components/action-button.js.map +1 -1
  7. package/dist/components/asset-marketplace-panel.cjs +1 -1
  8. package/dist/components/asset-marketplace-panel.cjs.map +1 -1
  9. package/dist/components/asset-marketplace-panel.js +1 -1
  10. package/dist/components/asset-marketplace-panel.js.map +1 -1
  11. package/dist/components/badge.cjs +1 -1
  12. package/dist/components/badge.cjs.map +1 -1
  13. package/dist/components/badge.d.cts +1 -1
  14. package/dist/components/badge.d.ts +1 -1
  15. package/dist/components/badge.js +1 -1
  16. package/dist/components/badge.js.map +1 -1
  17. package/dist/components/button.cjs +1 -1
  18. package/dist/components/button.cjs.map +1 -1
  19. package/dist/components/button.d.cts +1 -1
  20. package/dist/components/button.d.ts +1 -1
  21. package/dist/components/button.js +1 -1
  22. package/dist/components/button.js.map +1 -1
  23. package/dist/components/discover-feed-section.cjs +2 -52
  24. package/dist/components/discover-feed-section.cjs.map +1 -1
  25. package/dist/components/discover-feed-section.d.cts +2 -15
  26. package/dist/components/discover-feed-section.d.ts +2 -15
  27. package/dist/components/discover-feed-section.js +2 -51
  28. package/dist/components/discover-feed-section.js.map +1 -1
  29. package/dist/components/ip-type-badge.cjs +2 -3
  30. package/dist/components/ip-type-badge.cjs.map +1 -1
  31. package/dist/components/ip-type-badge.js +2 -3
  32. package/dist/components/ip-type-badge.js.map +1 -1
  33. package/dist/components/panel.cjs +2 -2
  34. package/dist/components/panel.cjs.map +1 -1
  35. package/dist/components/panel.js +2 -2
  36. package/dist/components/panel.js.map +1 -1
  37. package/dist/components/sheet.cjs +1 -1
  38. package/dist/components/sheet.cjs.map +1 -1
  39. package/dist/components/sheet.js +1 -1
  40. package/dist/components/sheet.js.map +1 -1
  41. package/dist/i18n/catalog/pt.cjs +0 -4
  42. package/dist/i18n/catalog/pt.cjs.map +1 -1
  43. package/dist/i18n/catalog/pt.js +0 -4
  44. package/dist/i18n/catalog/pt.js.map +1 -1
  45. package/dist/index.cjs +0 -33
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +1 -10
  48. package/dist/index.d.ts +1 -10
  49. package/dist/index.js +1 -22
  50. package/dist/index.js.map +1 -1
  51. package/dist/medialane.css +15 -112
  52. package/dist/preset/tailwind.cjs +0 -10
  53. package/dist/preset/tailwind.cjs.map +1 -1
  54. package/dist/preset/tailwind.js +0 -10
  55. package/dist/preset/tailwind.js.map +1 -1
  56. package/package.json +1 -1
  57. package/dist/components/activity-feed-shell.cjs +0 -93
  58. package/dist/components/activity-feed-shell.cjs.map +0 -1
  59. package/dist/components/activity-feed-shell.d.cts +0 -13
  60. package/dist/components/activity-feed-shell.d.ts +0 -13
  61. package/dist/components/activity-feed-shell.js +0 -59
  62. package/dist/components/activity-feed-shell.js.map +0 -1
  63. package/dist/components/cta-card-grid.cjs +0 -69
  64. package/dist/components/cta-card-grid.cjs.map +0 -1
  65. package/dist/components/cta-card-grid.d.cts +0 -21
  66. package/dist/components/cta-card-grid.d.ts +0 -21
  67. package/dist/components/cta-card-grid.js +0 -35
  68. package/dist/components/cta-card-grid.js.map +0 -1
  69. package/dist/components/featured-carousel.cjs +0 -171
  70. package/dist/components/featured-carousel.cjs.map +0 -1
  71. package/dist/components/featured-carousel.d.cts +0 -13
  72. package/dist/components/featured-carousel.d.ts +0 -13
  73. package/dist/components/featured-carousel.js +0 -146
  74. package/dist/components/featured-carousel.js.map +0 -1
  75. package/dist/components/launchpad-cta-banner.cjs +0 -85
  76. package/dist/components/launchpad-cta-banner.cjs.map +0 -1
  77. package/dist/components/launchpad-cta-banner.d.cts +0 -15
  78. package/dist/components/launchpad-cta-banner.d.ts +0 -15
  79. package/dist/components/launchpad-cta-banner.js +0 -51
  80. package/dist/components/launchpad-cta-banner.js.map +0 -1
  81. package/dist/components/portfolio-section.cjs +0 -90
  82. package/dist/components/portfolio-section.cjs.map +0 -1
  83. package/dist/components/portfolio-section.d.cts +0 -14
  84. package/dist/components/portfolio-section.d.ts +0 -14
  85. package/dist/components/portfolio-section.js +0 -56
  86. package/dist/components/portfolio-section.js.map +0 -1
  87. package/dist/components/rewards/journey-path.cjs +0 -77
  88. package/dist/components/rewards/journey-path.cjs.map +0 -1
  89. package/dist/components/rewards/journey-path.d.cts +0 -17
  90. package/dist/components/rewards/journey-path.d.ts +0 -17
  91. package/dist/components/rewards/journey-path.js +0 -53
  92. package/dist/components/rewards/journey-path.js.map +0 -1
  93. package/dist/components/rewards/score-summary-card.cjs +0 -73
  94. package/dist/components/rewards/score-summary-card.cjs.map +0 -1
  95. package/dist/components/rewards/score-summary-card.d.cts +0 -21
  96. package/dist/components/rewards/score-summary-card.d.ts +0 -21
  97. package/dist/components/rewards/score-summary-card.js +0 -49
  98. package/dist/components/rewards/score-summary-card.js.map +0 -1
  99. package/dist/components/step-nav.cjs +0 -82
  100. package/dist/components/step-nav.cjs.map +0 -1
  101. package/dist/components/step-nav.d.cts +0 -17
  102. package/dist/components/step-nav.d.ts +0 -17
  103. package/dist/components/step-nav.js +0 -58
  104. package/dist/components/step-nav.js.map +0 -1
  105. package/dist/components/token-glyph.cjs +0 -92
  106. package/dist/components/token-glyph.cjs.map +0 -1
  107. package/dist/components/token-glyph.d.cts +0 -19
  108. package/dist/components/token-glyph.d.ts +0 -19
  109. package/dist/components/token-glyph.js +0 -67
  110. package/dist/components/token-glyph.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/featured-carousel.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, useEffect, useCallback } from \"react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport { ChevronLeft, ChevronRight, ArrowRight, Sparkles } from \"lucide-react\";\nimport { FadeIn, EASE_OUT } from \"./motion-primitives.js\";\nimport { SectionHeading } from \"./section-heading.js\";\nimport { formatDisplayPrice } from \"../utils/format.js\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nimport { msg } from \"../i18n/translate.js\";\nexport interface FeaturedCarouselProps {\n collections: ApiCollection[];\n isLoading: boolean;\n getHref: (collection: ApiCollection) => string;\n allCollectionsHref?: string;\n}\n\nfunction Slide({ collection, href }: { collection: ApiCollection; href: string }) {\n const t = useT();\n const resolveImage = useImageUrl();\n const name = collection.name ?? \"Featured Collection\";\n const image = resolveImage(collection.image);\n\n return (\n <div className=\"relative w-full h-full\">\n {image ? (\n <img\n src={image}\n alt={name}\n loading=\"lazy\"\n className=\"absolute inset-0 w-full h-full object-cover\"\n />\n ) : (\n <div className=\"absolute inset-0 bg-gradient-to-br from-brand-purple/30 via-brand-blue/20 to-brand-navy/40\" />\n )}\n <div className=\"absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-black/10\" />\n <div className=\"absolute inset-0 bg-gradient-to-r from-black/50 via-transparent to-transparent\" />\n <div className=\"absolute bottom-0 left-0 right-0 p-5 sm:p-8 lg:p-10\">\n <h2 className=\"text-2xl sm:text-3xl lg:text-4xl font-black text-white leading-tight mb-3 max-w-lg\">\n {name}\n </h2>\n <div className=\"flex items-center gap-4 mb-5\">\n {collection.totalSupply != null && (\n <span className=\"text-sm text-white/70\">\n <span className=\"font-bold text-white\">{collection.totalSupply}</span> {t(\"items\")}\n </span>\n )}\n {collection.floorPrice && (\n <span className=\"text-sm text-white/70\">\n {t(\"Floor\")}{\" \"}\n <span className=\"font-bold text-brand-orange\">\n {formatDisplayPrice(collection.floorPrice)}\n </span>\n </span>\n )}\n </div>\n <a\n href={href}\n className=\"inline-flex items-center gap-2 text-sm font-semibold px-4 py-2 rounded-lg bg-white/15 hover:bg-white/25 text-white border border-white/20 backdrop-blur-sm transition-colors\"\n >\n {t(\"View collection\")} <ArrowRight className=\"h-3.5 w-3.5\" />\n </a>\n </div>\n </div>\n );\n}\n\nexport function FeaturedCarouselSkeleton() {\n const t = useT();\n return (\n <FadeIn>\n <section className=\"space-y-4\">\n <SectionHeading icon={<Sparkles />} title={t(\"Featured collections\")} href=\"/collections\" linkLabel={msg(\"View all\")} />\n <div className=\"-mx-4 sm:-mx-6 lg:-mx-8 aspect-[16/7] sm:aspect-[21/9] bg-muted animate-pulse\" />\n </section>\n </FadeIn>\n );\n}\n\nexport function FeaturedCarousel({\n collections,\n isLoading,\n getHref,\n allCollectionsHref = \"/collections\",\n}: FeaturedCarouselProps) {\n const t = useT();\n const [active, setActive] = useState(0);\n const [paused, setPaused] = useState(false);\n const total = collections.length;\n\n const next = useCallback(() => setActive((p) => (p + 1) % total), [total]);\n const prev = useCallback(() => setActive((p) => (p - 1 + total) % total), [total]);\n\n useEffect(() => { setActive(0); }, [total]);\n\n useEffect(() => {\n if (paused || total <= 1) return;\n const id = setInterval(next, 6000);\n return () => clearInterval(id);\n }, [next, paused, total]);\n\n if (isLoading) return <FeaturedCarouselSkeleton />;\n if (total === 0) return null;\n\n return (\n <FadeIn>\n <section className=\"space-y-4\">\n <SectionHeading icon={<Sparkles />} title={t(\"Featured collections\")} href={allCollectionsHref} linkLabel={msg(\"View all\")} />\n\n <div\n className=\"-mx-4 sm:-mx-6 lg:-mx-8 relative overflow-hidden aspect-[16/7] sm:aspect-[21/9] bg-muted\"\n onMouseEnter={() => setPaused(true)}\n onMouseLeave={() => setPaused(false)}\n >\n <AnimatePresence mode=\"wait\">\n <motion.div\n key={active}\n className=\"absolute inset-0\"\n initial={{ opacity: 0, x: 40 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: -40 }}\n transition={{ duration: 0.45, ease: EASE_OUT }}\n >\n <Slide collection={collections[active]} href={getHref(collections[active])} />\n </motion.div>\n </AnimatePresence>\n\n {total > 1 && (\n <>\n <button\n onClick={prev}\n className=\"absolute left-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10\"\n aria-label={t(\"Previous\")}\n >\n <span className=\"flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors\">\n <ChevronLeft className=\"h-4 w-4\" />\n </span>\n </button>\n <button\n onClick={next}\n className=\"absolute right-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10\"\n aria-label={t(\"Next\")}\n >\n <span className=\"flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors\">\n <ChevronRight className=\"h-4 w-4\" />\n </span>\n </button>\n </>\n )}\n\n {total > 1 && (\n <div className=\"absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-1.5 z-10\">\n {collections.map((_, i) => (\n <button\n key={i}\n onClick={() => setActive(i)}\n className={`h-1.5 rounded-full transition-all duration-300 ${\n i === active ? \"w-6 bg-white\" : \"w-1.5 bg-white/40 hover:bg-white/70\"\n }`}\n aria-label={`Go to slide ${i + 1}`}\n />\n ))}\n </div>\n )}\n </div>\n </section>\n </FadeIn>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BQ;AA3BR,mBAAiD;AACjD,2BAAwC;AACxC,0BAAgE;AAChE,+BAAiC;AACjC,6BAA+B;AAC/B,oBAAmC;AAEnC,2BAA4B;AAC5B,sBAAqB;AAErB,uBAAoB;AAQpB,SAAS,MAAM,EAAE,YAAY,KAAK,GAAgD;AAChF,QAAM,QAAI,sBAAK;AACf,QAAM,mBAAe,kCAAY;AACjC,QAAM,OAAO,WAAW,QAAQ;AAChC,QAAM,QAAQ,aAAa,WAAW,KAAK;AAE3C,SACE,6CAAC,SAAI,WAAU,0BACZ;AAAA,YACC;AAAA,MAAC;AAAA;AAAA,QACC,KA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M,CAAC,GAAG;AAAA;AAAA,YAPvE;AAAA,UAQP,GACF;AAAA,UAEC,QAAQ,KACP,4EACE;AAAA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS;AAAA,gBACT,WAAU;AAAA,gBACV,cAAY,EAAE,UAAU;AAAA,gBAExB,sDAAC,UAAK,WAAU,4JACd,sDAAC,mCAAY,WAAU,WAAU,GACnC;AAAA;AAAA,YACF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS;AAAA,gBACT,WAAU;AAAA,gBACV,cAAY,EAAE,MAAM;AAAA,gBAEpB,sDAAC,UAAK,WAAU,4JACd,sDAAC,oCAAa,WAAU,WAAU,GACpC;AAAA;AAAA,YACF;AAAA,aACF;AAAA,UAGD,QAAQ,KACP,4CAAC,SAAI,WAAU,8EACZ,sBAAY,IAAI,CAAC,GAAG,MACnB;AAAA,YAAC;AAAA;AAAA,cAEC,SAAS,MAAM,UAAU,CAAC;AAAA,cAC1B,WAAW,kDACT,MAAM,SAAS,iBAAiB,qCAClC;AAAA,cACA,cAAY,eAAe,IAAI,CAAC;AAAA;AAAA,YAL3B;AAAA,UAMP,CACD,GACH;AAAA;AAAA;AAAA,IAEJ;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ApiCollection } from '@medialane/sdk';
3
-
4
- interface FeaturedCarouselProps {
5
- collections: ApiCollection[];
6
- isLoading: boolean;
7
- getHref: (collection: ApiCollection) => string;
8
- allCollectionsHref?: string;
9
- }
10
- declare function FeaturedCarouselSkeleton(): react_jsx_runtime.JSX.Element;
11
- declare function FeaturedCarousel({ collections, isLoading, getHref, allCollectionsHref, }: FeaturedCarouselProps): react_jsx_runtime.JSX.Element | null;
12
-
13
- export { FeaturedCarousel, type FeaturedCarouselProps, FeaturedCarouselSkeleton };
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ApiCollection } from '@medialane/sdk';
3
-
4
- interface FeaturedCarouselProps {
5
- collections: ApiCollection[];
6
- isLoading: boolean;
7
- getHref: (collection: ApiCollection) => string;
8
- allCollectionsHref?: string;
9
- }
10
- declare function FeaturedCarouselSkeleton(): react_jsx_runtime.JSX.Element;
11
- declare function FeaturedCarousel({ collections, isLoading, getHref, allCollectionsHref, }: FeaturedCarouselProps): react_jsx_runtime.JSX.Element | null;
12
-
13
- export { FeaturedCarousel, type FeaturedCarouselProps, FeaturedCarouselSkeleton };
@@ -1,146 +0,0 @@
1
- "use client";
2
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
- import { useState, useEffect, useCallback } from "react";
4
- import { motion, AnimatePresence } from "framer-motion";
5
- import { ChevronLeft, ChevronRight, ArrowRight, Sparkles } from "lucide-react";
6
- import { FadeIn, EASE_OUT } from "./motion-primitives.js";
7
- import { SectionHeading } from "./section-heading.js";
8
- import { formatDisplayPrice } from "../utils/format.js";
9
- import { useImageUrl } from "../utils/use-image-url.js";
10
- import { useT } from "../i18n/provider.js";
11
- import { msg } from "../i18n/translate.js";
12
- function Slide({ collection, href }) {
13
- const t = useT();
14
- const resolveImage = useImageUrl();
15
- const name = collection.name ?? "Featured Collection";
16
- const image = resolveImage(collection.image);
17
- return /* @__PURE__ */ jsxs("div", { className: "relative w-full h-full", children: [
18
- image ? /* @__PURE__ */ jsx(
19
- "img",
20
- {
21
- src: image,
22
- alt: name,
23
- loading: "lazy",
24
- className: "absolute inset-0 w-full h-full object-cover"
25
- }
26
- ) : /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gradient-to-br from-brand-purple/30 via-brand-blue/20 to-brand-navy/40" }),
27
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-black/10" }),
28
- /* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-gradient-to-r from-black/50 via-transparent to-transparent" }),
29
- /* @__PURE__ */ jsxs("div", { className: "absolute bottom-0 left-0 right-0 p-5 sm:p-8 lg:p-10", children: [
30
- /* @__PURE__ */ jsx("h2", { className: "text-2xl sm:text-3xl lg:text-4xl font-black text-white leading-tight mb-3 max-w-lg", children: name }),
31
- /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-4 mb-5", children: [
32
- collection.totalSupply != null && /* @__PURE__ */ jsxs("span", { className: "text-sm text-white/70", children: [
33
- /* @__PURE__ */ jsx("span", { className: "font-bold text-white", children: collection.totalSupply }),
34
- " ",
35
- t("items")
36
- ] }),
37
- collection.floorPrice && /* @__PURE__ */ jsxs("span", { className: "text-sm text-white/70", children: [
38
- t("Floor"),
39
- " ",
40
- /* @__PURE__ */ jsx("span", { className: "font-bold text-brand-orange", children: formatDisplayPrice(collection.floorPrice) })
41
- ] })
42
- ] }),
43
- /* @__PURE__ */ jsxs(
44
- "a",
45
- {
46
- href,
47
- className: "inline-flex items-center gap-2 text-sm font-semibold px-4 py-2 rounded-lg bg-white/15 hover:bg-white/25 text-white border border-white/20 backdrop-blur-sm transition-colors",
48
- children: [
49
- t("View collection"),
50
- " ",
51
- /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })
52
- ]
53
- }
54
- )
55
- ] })
56
- ] });
57
- }
58
- function FeaturedCarouselSkeleton() {
59
- const t = useT();
60
- return /* @__PURE__ */ jsx(FadeIn, { children: /* @__PURE__ */ jsxs("section", { className: "space-y-4", children: [
61
- /* @__PURE__ */ jsx(SectionHeading, { icon: /* @__PURE__ */ jsx(Sparkles, {}), title: t("Featured collections"), href: "/collections", linkLabel: msg("View all") }),
62
- /* @__PURE__ */ jsx("div", { className: "-mx-4 sm:-mx-6 lg:-mx-8 aspect-[16/7] sm:aspect-[21/9] bg-muted animate-pulse" })
63
- ] }) });
64
- }
65
- function FeaturedCarousel({
66
- collections,
67
- isLoading,
68
- getHref,
69
- allCollectionsHref = "/collections"
70
- }) {
71
- const t = useT();
72
- const [active, setActive] = useState(0);
73
- const [paused, setPaused] = useState(false);
74
- const total = collections.length;
75
- const next = useCallback(() => setActive((p) => (p + 1) % total), [total]);
76
- const prev = useCallback(() => setActive((p) => (p - 1 + total) % total), [total]);
77
- useEffect(() => {
78
- setActive(0);
79
- }, [total]);
80
- useEffect(() => {
81
- if (paused || total <= 1) return;
82
- const id = setInterval(next, 6e3);
83
- return () => clearInterval(id);
84
- }, [next, paused, total]);
85
- if (isLoading) return /* @__PURE__ */ jsx(FeaturedCarouselSkeleton, {});
86
- if (total === 0) return null;
87
- return /* @__PURE__ */ jsx(FadeIn, { children: /* @__PURE__ */ jsxs("section", { className: "space-y-4", children: [
88
- /* @__PURE__ */ jsx(SectionHeading, { icon: /* @__PURE__ */ jsx(Sparkles, {}), title: t("Featured collections"), href: allCollectionsHref, linkLabel: msg("View all") }),
89
- /* @__PURE__ */ jsxs(
90
- "div",
91
- {
92
- className: "-mx-4 sm:-mx-6 lg:-mx-8 relative overflow-hidden aspect-[16/7] sm:aspect-[21/9] bg-muted",
93
- onMouseEnter: () => setPaused(true),
94
- onMouseLeave: () => setPaused(false),
95
- children: [
96
- /* @__PURE__ */ jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsx(
97
- motion.div,
98
- {
99
- className: "absolute inset-0",
100
- initial: { opacity: 0, x: 40 },
101
- animate: { opacity: 1, x: 0 },
102
- exit: { opacity: 0, x: -40 },
103
- transition: { duration: 0.45, ease: EASE_OUT },
104
- children: /* @__PURE__ */ jsx(Slide, { collection: collections[active], href: getHref(collections[active]) })
105
- },
106
- active
107
- ) }),
108
- total > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
109
- /* @__PURE__ */ jsx(
110
- "button",
111
- {
112
- onClick: prev,
113
- className: "absolute left-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10",
114
- "aria-label": t("Previous"),
115
- children: /* @__PURE__ */ jsx("span", { className: "flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors", children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }) })
116
- }
117
- ),
118
- /* @__PURE__ */ jsx(
119
- "button",
120
- {
121
- onClick: next,
122
- className: "absolute right-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10",
123
- "aria-label": t("Next"),
124
- children: /* @__PURE__ */ jsx("span", { className: "flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors", children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" }) })
125
- }
126
- )
127
- ] }),
128
- total > 1 && /* @__PURE__ */ jsx("div", { className: "absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-1.5 z-10", children: collections.map((_, i) => /* @__PURE__ */ jsx(
129
- "button",
130
- {
131
- onClick: () => setActive(i),
132
- className: `h-1.5 rounded-full transition-all duration-300 ${i === active ? "w-6 bg-white" : "w-1.5 bg-white/40 hover:bg-white/70"}`,
133
- "aria-label": `Go to slide ${i + 1}`
134
- },
135
- i
136
- )) })
137
- ]
138
- }
139
- )
140
- ] }) });
141
- }
142
- export {
143
- FeaturedCarousel,
144
- FeaturedCarouselSkeleton
145
- };
146
- //# sourceMappingURL=featured-carousel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/featured-carousel.tsx"],"sourcesContent":["\"use client\";\n\nimport { useState, useEffect, useCallback } from \"react\";\nimport { motion, AnimatePresence } from \"framer-motion\";\nimport { ChevronLeft, ChevronRight, ArrowRight, Sparkles } from \"lucide-react\";\nimport { FadeIn, EASE_OUT } from \"./motion-primitives.js\";\nimport { SectionHeading } from \"./section-heading.js\";\nimport { formatDisplayPrice } from \"../utils/format.js\";\nimport type { ApiCollection } from \"@medialane/sdk\";\nimport { useImageUrl } from \"../utils/use-image-url.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nimport { msg } from \"../i18n/translate.js\";\nexport interface FeaturedCarouselProps {\n collections: ApiCollection[];\n isLoading: boolean;\n getHref: (collection: ApiCollection) => string;\n allCollectionsHref?: string;\n}\n\nfunction Slide({ collection, href }: { collection: ApiCollection; href: string }) {\n const t = useT();\n const resolveImage = useImageUrl();\n const name = collection.name ?? \"Featured Collection\";\n const image = resolveImage(collection.image);\n\n return (\n <div className=\"relative w-full h-full\">\n {image ? (\n <img\n src={image}\n alt={name}\n loading=\"lazy\"\n className=\"absolute inset-0 w-full h-full object-cover\"\n />\n ) : (\n <div className=\"absolute inset-0 bg-gradient-to-br from-brand-purple/30 via-brand-blue/20 to-brand-navy/40\" />\n )}\n <div className=\"absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-black/10\" />\n <div className=\"absolute inset-0 bg-gradient-to-r from-black/50 via-transparent to-transparent\" />\n <div className=\"absolute bottom-0 left-0 right-0 p-5 sm:p-8 lg:p-10\">\n <h2 className=\"text-2xl sm:text-3xl lg:text-4xl font-black text-white leading-tight mb-3 max-w-lg\">\n {name}\n </h2>\n <div className=\"flex items-center gap-4 mb-5\">\n {collection.totalSupply != null && (\n <span className=\"text-sm text-white/70\">\n <span className=\"font-bold text-white\">{collection.totalSupply}</span> {t(\"items\")}\n </span>\n )}\n {collection.floorPrice && (\n <span className=\"text-sm text-white/70\">\n {t(\"Floor\")}{\" \"}\n <span className=\"font-bold text-brand-orange\">\n {formatDisplayPrice(collection.floorPrice)}\n </span>\n </span>\n )}\n </div>\n <a\n href={href}\n className=\"inline-flex items-center gap-2 text-sm font-semibold px-4 py-2 rounded-lg bg-white/15 hover:bg-white/25 text-white border border-white/20 backdrop-blur-sm transition-colors\"\n >\n {t(\"View collection\")} <ArrowRight className=\"h-3.5 w-3.5\" />\n </a>\n </div>\n </div>\n );\n}\n\nexport function FeaturedCarouselSkeleton() {\n const t = useT();\n return (\n <FadeIn>\n <section className=\"space-y-4\">\n <SectionHeading icon={<Sparkles />} title={t(\"Featured collections\")} href=\"/collections\" linkLabel={msg(\"View all\")} />\n <div className=\"-mx-4 sm:-mx-6 lg:-mx-8 aspect-[16/7] sm:aspect-[21/9] bg-muted animate-pulse\" />\n </section>\n </FadeIn>\n );\n}\n\nexport function FeaturedCarousel({\n collections,\n isLoading,\n getHref,\n allCollectionsHref = \"/collections\",\n}: FeaturedCarouselProps) {\n const t = useT();\n const [active, setActive] = useState(0);\n const [paused, setPaused] = useState(false);\n const total = collections.length;\n\n const next = useCallback(() => setActive((p) => (p + 1) % total), [total]);\n const prev = useCallback(() => setActive((p) => (p - 1 + total) % total), [total]);\n\n useEffect(() => { setActive(0); }, [total]);\n\n useEffect(() => {\n if (paused || total <= 1) return;\n const id = setInterval(next, 6000);\n return () => clearInterval(id);\n }, [next, paused, total]);\n\n if (isLoading) return <FeaturedCarouselSkeleton />;\n if (total === 0) return null;\n\n return (\n <FadeIn>\n <section className=\"space-y-4\">\n <SectionHeading icon={<Sparkles />} title={t(\"Featured collections\")} href={allCollectionsHref} linkLabel={msg(\"View all\")} />\n\n <div\n className=\"-mx-4 sm:-mx-6 lg:-mx-8 relative overflow-hidden aspect-[16/7] sm:aspect-[21/9] bg-muted\"\n onMouseEnter={() => setPaused(true)}\n onMouseLeave={() => setPaused(false)}\n >\n <AnimatePresence mode=\"wait\">\n <motion.div\n key={active}\n className=\"absolute inset-0\"\n initial={{ opacity: 0, x: 40 }}\n animate={{ opacity: 1, x: 0 }}\n exit={{ opacity: 0, x: -40 }}\n transition={{ duration: 0.45, ease: EASE_OUT }}\n >\n <Slide collection={collections[active]} href={getHref(collections[active])} />\n </motion.div>\n </AnimatePresence>\n\n {total > 1 && (\n <>\n <button\n onClick={prev}\n className=\"absolute left-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10\"\n aria-label={t(\"Previous\")}\n >\n <span className=\"flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors\">\n <ChevronLeft className=\"h-4 w-4\" />\n </span>\n </button>\n <button\n onClick={next}\n className=\"absolute right-3 top-1/2 -translate-y-1/2 min-h-11 min-w-11 rounded-full flex items-center justify-center z-10\"\n aria-label={t(\"Next\")}\n >\n <span className=\"flex h-9 w-9 items-center justify-center rounded-full bg-black/40 border border-white/10 backdrop-blur-sm text-white hover:bg-black/60 transition-colors\">\n <ChevronRight className=\"h-4 w-4\" />\n </span>\n </button>\n </>\n )}\n\n {total > 1 && (\n <div className=\"absolute bottom-4 left-1/2 -translate-x-1/2 flex items-center gap-1.5 z-10\">\n {collections.map((_, i) => (\n <button\n key={i}\n onClick={() => setActive(i)}\n className={`h-1.5 rounded-full transition-all duration-300 ${\n i === active ? \"w-6 bg-white\" : \"w-1.5 bg-white/40 hover:bg-white/70\"\n }`}\n aria-label={`Go to slide ${i + 1}`}\n />\n ))}\n </div>\n )}\n </div>\n </section>\n </FadeIn>\n );\n}\n"],"mappings":";AA6BQ,SAsGI,UAtGJ,KAiBI,YAjBJ;AA3BR,SAAS,UAAU,WAAW,mBAAmB;AACjD,SAAS,QAAQ,uBAAuB;AACxC,SAAS,aAAa,cAAc,YAAY,gBAAgB;AAChE,SAAS,QAAQ,gBAAgB;AACjC,SAAS,sBAAsB;AAC/B,SAAS,0BAA0B;AAEnC,SAAS,mBAAmB;AAC5B,SAAS,YAAY;AAErB,SAAS,WAAW;AAQpB,SAAS,MAAM,EAAE,YAAY,KAAK,GAAgD;AAChF,QAAM,IAAI,KAAK;AACf,QAAM,eAAe,YAAY;AACjC,QAAM,OAAO,WAAW,QAAQ;AAChC,QAAM,QAAQ,aAAa,WAAW,KAAK;AAE3C,SACE,qBAAC,SAAI,WAAU,0BACZ;AAAA,YACC;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,KAAK;AAAA,QACL,SAAQ;AAAA,QACR,WAAU;AAAA;AAAA,IACZ,IAEA,oBAAC,SAAI,WAAU,8FAA6F;AAAA,IAE9G,oBAAC,SAAI,WAAU,4EAA2E;AAAA,IAC1F,oBAAC,SAAI,WAAU,kFAAiF;AAAA,IAChG,q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WAAU,WAAU,GACnC;AAAA;AAAA,YACF;AAAA,YACA;AAAA,cAAC;AAAA;AAAA,gBACC,SAAS;AAAA,gBACT,WAAU;AAAA,gBACV,cAAY,EAAE,MAAM;AAAA,gBAEpB,8BAAC,UAAK,WAAU,4JACd,8BAAC,gBAAa,WAAU,WAAU,GACpC;AAAA;AAAA,YACF;AAAA,aACF;AAAA,UAGD,QAAQ,KACP,oBAAC,SAAI,WAAU,8EACZ,sBAAY,IAAI,CAAC,GAAG,MACnB;AAAA,YAAC;AAAA;AAAA,cAEC,SAAS,MAAM,UAAU,CAAC;AAAA,cAC1B,WAAW,kDACT,MAAM,SAAS,iBAAiB,qCAClC;AAAA,cACA,cAAY,eAAe,IAAI,CAAC;AAAA;AAAA,YAL3B;AAAA,UAMP,CACD,GACH;AAAA;AAAA;AAAA,IAEJ;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -1,85 +0,0 @@
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
- var launchpad_cta_banner_exports = {};
30
- __export(launchpad_cta_banner_exports, {
31
- LaunchpadCtaBanner: () => LaunchpadCtaBanner
32
- });
33
- module.exports = __toCommonJS(launchpad_cta_banner_exports);
34
- var import_jsx_runtime = require("react/jsx-runtime");
35
- var import_lucide_react = require("lucide-react");
36
- var import_link = __toESM(require("./link.js"), 1);
37
- var import_button = require("./button.js");
38
- var import_cn = require("../utils/cn.js");
39
- const TONE_GRADIENT = {
40
- primary: "bg-gradient-to-r from-brand-blue/10 to-brand-purple/10",
41
- manage: "bg-gradient-to-r from-brand-navy/10 to-brand-purple/10"
42
- };
43
- function LaunchpadCtaBanner({
44
- eyebrow,
45
- title,
46
- description,
47
- href,
48
- ctaLabel,
49
- external = false,
50
- tone = "primary",
51
- className
52
- }) {
53
- const icon = external ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ExternalLink, { className: "h-3.5 w-3.5 ml-1.5" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5 ml-1.5" });
54
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
55
- "div",
56
- {
57
- className: (0, import_cn.cn)(
58
- "rounded-2xl border border-border/40 p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",
59
- TONE_GRADIENT[tone],
60
- className
61
- ),
62
- children: [
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
64
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "section-label", children: eyebrow }),
65
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "font-bold text-base mt-0.5", children: title }),
66
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground mt-1", children: description })
67
- ] }),
68
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_button.Button, { variant: "outline", asChild: true, className: "shrink-0", children: external ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", { href, target: "_blank", rel: "noopener noreferrer", children: [
69
- ctaLabel,
70
- " ",
71
- icon
72
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href, children: [
73
- ctaLabel,
74
- " ",
75
- icon
76
- ] }) })
77
- ]
78
- }
79
- );
80
- }
81
- // Annotate the CommonJS export names for ESM import in node:
82
- 0 && (module.exports = {
83
- LaunchpadCtaBanner
84
- });
85
- //# sourceMappingURL=launchpad-cta-banner.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/launchpad-cta-banner.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { ArrowRight, ExternalLink } from \"lucide-react\";\nimport Link from \"./link.js\";\nimport { Button } from \"./button.js\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface LaunchpadCtaBannerProps {\n eyebrow: string;\n title: string;\n description: string;\n href: string;\n ctaLabel: string;\n\n external?: boolean;\n\n tone?: \"primary\" | \"manage\";\n className?: string;\n}\n\nconst TONE_GRADIENT: Record<NonNullable<LaunchpadCtaBannerProps[\"tone\"]>, string> = {\n primary: \"bg-gradient-to-r from-brand-blue/10 to-brand-purple/10\",\n manage: \"bg-gradient-to-r from-brand-navy/10 to-brand-purple/10\",\n};\n\nexport function LaunchpadCtaBanner({\n eyebrow,\n title,\n description,\n href,\n ctaLabel,\n external = false,\n tone = \"primary\",\n className,\n}: LaunchpadCtaBannerProps) {\n const icon: ReactNode = external\n ? <ExternalLink className=\"h-3.5 w-3.5 ml-1.5\" />\n : <ArrowRight className=\"h-3.5 w-3.5 ml-1.5\" />;\n\n return (\n <div\n className={cn(\n \"rounded-2xl border border-border/40 p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4\",\n TONE_GRADIENT[tone],\n className\n )}\n >\n <div>\n <p className=\"section-label\">{eyebrow}</p>\n <p className=\"font-bold text-base mt-0.5\">{title}</p>\n <p className=\"text-sm text-muted-foreground mt-1\">{description}</p>\n </div>\n <Button variant=\"outline\" asChild className=\"shrink-0\">\n {external ? (\n <a href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {ctaLabel} {icon}\n </a>\n ) : (\n <Link href={href}>\n {ctaLabel} {icon}\n </Link>\n )}\n </Button>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCM;AAlCN,0BAAyC;AACzC,kBAAiB;AACjB,oBAAuB;AACvB,gBAAmB;AAenB,MAAM,gBAA8E;AAAA,EAClF,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,mBAAmB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,GAA4B;AAC1B,QAAM,OAAkB,WACpB,4CAAC,oCAAa,WAAU,sBAAqB,IAC7C,4CAAC,kCAAW,WAAU,sBAAqB;AAE/C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA,cAAc,IAAI;AAAA,QAClB;AAAA,MACF;AAAA,MAEA;AAAA,qDAAC,SACC;AAAA,sDAAC,OAAE,WAAU,iBAAiB,mBAAQ;AAAA,UACtC,4CAAC,OAAE,WAAU,8BAA8B,iBAAM;AAAA,UACjD,4CAAC,OAAE,WAAU,sCAAsC,uBAAY;AAAA,WACjE;AAAA,QACA,4CAAC,wBAAO,SAAQ,WAAU,SAAO,MAAC,WAAU,YACzC,qBACC,6CAAC,OAAE,MAAY,QAAO,UAAS,KAAI,uBAChC;AAAA;AAAA,UAAS;AAAA,UAAE;AAAA,WACd,IAEA,6CAAC,YAAAA,SAAA,EAAK,MACH;AAAA;AAAA,UAAS;AAAA,UAAE;AAAA,WACd,GAEJ;AAAA;AAAA;AAAA,EACF;AAEJ;","names":["Link"]}
@@ -1,15 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- interface LaunchpadCtaBannerProps {
4
- eyebrow: string;
5
- title: string;
6
- description: string;
7
- href: string;
8
- ctaLabel: string;
9
- external?: boolean;
10
- tone?: "primary" | "manage";
11
- className?: string;
12
- }
13
- declare function LaunchpadCtaBanner({ eyebrow, title, description, href, ctaLabel, external, tone, className, }: LaunchpadCtaBannerProps): react_jsx_runtime.JSX.Element;
14
-
15
- export { LaunchpadCtaBanner, type LaunchpadCtaBannerProps };
@@ -1,15 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- interface LaunchpadCtaBannerProps {
4
- eyebrow: string;
5
- title: string;
6
- description: string;
7
- href: string;
8
- ctaLabel: string;
9
- external?: boolean;
10
- tone?: "primary" | "manage";
11
- className?: string;
12
- }
13
- declare function LaunchpadCtaBanner({ eyebrow, title, description, href, ctaLabel, external, tone, className, }: LaunchpadCtaBannerProps): react_jsx_runtime.JSX.Element;
14
-
15
- export { LaunchpadCtaBanner, type LaunchpadCtaBannerProps };
@@ -1,51 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { ArrowRight, ExternalLink } from "lucide-react";
3
- import Link from "./link.js";
4
- import { Button } from "./button.js";
5
- import { cn } from "../utils/cn.js";
6
- const TONE_GRADIENT = {
7
- primary: "bg-gradient-to-r from-brand-blue/10 to-brand-purple/10",
8
- manage: "bg-gradient-to-r from-brand-navy/10 to-brand-purple/10"
9
- };
10
- function LaunchpadCtaBanner({
11
- eyebrow,
12
- title,
13
- description,
14
- href,
15
- ctaLabel,
16
- external = false,
17
- tone = "primary",
18
- className
19
- }) {
20
- const icon = external ? /* @__PURE__ */ jsx(ExternalLink, { className: "h-3.5 w-3.5 ml-1.5" }) : /* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5 ml-1.5" });
21
- return /* @__PURE__ */ jsxs(
22
- "div",
23
- {
24
- className: cn(
25
- "rounded-2xl border border-border/40 p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",
26
- TONE_GRADIENT[tone],
27
- className
28
- ),
29
- children: [
30
- /* @__PURE__ */ jsxs("div", { children: [
31
- /* @__PURE__ */ jsx("p", { className: "section-label", children: eyebrow }),
32
- /* @__PURE__ */ jsx("p", { className: "font-bold text-base mt-0.5", children: title }),
33
- /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground mt-1", children: description })
34
- ] }),
35
- /* @__PURE__ */ jsx(Button, { variant: "outline", asChild: true, className: "shrink-0", children: external ? /* @__PURE__ */ jsxs("a", { href, target: "_blank", rel: "noopener noreferrer", children: [
36
- ctaLabel,
37
- " ",
38
- icon
39
- ] }) : /* @__PURE__ */ jsxs(Link, { href, children: [
40
- ctaLabel,
41
- " ",
42
- icon
43
- ] }) })
44
- ]
45
- }
46
- );
47
- }
48
- export {
49
- LaunchpadCtaBanner
50
- };
51
- //# sourceMappingURL=launchpad-cta-banner.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/launchpad-cta-banner.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport { ArrowRight, ExternalLink } from \"lucide-react\";\nimport Link from \"./link.js\";\nimport { Button } from \"./button.js\";\nimport { cn } from \"../utils/cn.js\";\n\nexport interface LaunchpadCtaBannerProps {\n eyebrow: string;\n title: string;\n description: string;\n href: string;\n ctaLabel: string;\n\n external?: boolean;\n\n tone?: \"primary\" | \"manage\";\n className?: string;\n}\n\nconst TONE_GRADIENT: Record<NonNullable<LaunchpadCtaBannerProps[\"tone\"]>, string> = {\n primary: \"bg-gradient-to-r from-brand-blue/10 to-brand-purple/10\",\n manage: \"bg-gradient-to-r from-brand-navy/10 to-brand-purple/10\",\n};\n\nexport function LaunchpadCtaBanner({\n eyebrow,\n title,\n description,\n href,\n ctaLabel,\n external = false,\n tone = \"primary\",\n className,\n}: LaunchpadCtaBannerProps) {\n const icon: ReactNode = external\n ? <ExternalLink className=\"h-3.5 w-3.5 ml-1.5\" />\n : <ArrowRight className=\"h-3.5 w-3.5 ml-1.5\" />;\n\n return (\n <div\n className={cn(\n \"rounded-2xl border border-border/40 p-5 flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4\",\n TONE_GRADIENT[tone],\n className\n )}\n >\n <div>\n <p className=\"section-label\">{eyebrow}</p>\n <p className=\"font-bold text-base mt-0.5\">{title}</p>\n <p className=\"text-sm text-muted-foreground mt-1\">{description}</p>\n </div>\n <Button variant=\"outline\" asChild className=\"shrink-0\">\n {external ? (\n <a href={href} target=\"_blank\" rel=\"noopener noreferrer\">\n {ctaLabel} {icon}\n </a>\n ) : (\n <Link href={href}>\n {ctaLabel} {icon}\n </Link>\n )}\n </Button>\n </div>\n );\n}\n"],"mappings":"AAmCM,cAWA,YAXA;AAlCN,SAAS,YAAY,oBAAoB;AACzC,OAAO,UAAU;AACjB,SAAS,cAAc;AACvB,SAAS,UAAU;AAenB,MAAM,gBAA8E;AAAA,EAClF,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,SAAS,mBAAmB;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,WAAW;AAAA,EACX,OAAO;AAAA,EACP;AACF,GAA4B;AAC1B,QAAM,OAAkB,WACpB,oBAAC,gBAAa,WAAU,sBAAqB,IAC7C,oBAAC,cAAW,WAAU,sBAAqB;AAE/C,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,cAAc,IAAI;AAAA,QAClB;AAAA,MACF;AAAA,MAEA;AAAA,6BAAC,SACC;AAAA,8BAAC,OAAE,WAAU,iBAAiB,mBAAQ;AAAA,UACtC,oBAAC,OAAE,WAAU,8BAA8B,iBAAM;AAAA,UACjD,oBAAC,OAAE,WAAU,sCAAsC,uBAAY;AAAA,WACjE;AAAA,QACA,oBAAC,UAAO,SAAQ,WAAU,SAAO,MAAC,WAAU,YACzC,qBACC,qBAAC,OAAE,MAAY,QAAO,UAAS,KAAI,uBAChC;AAAA;AAAA,UAAS;AAAA,UAAE;AAAA,WACd,IAEA,qBAAC,QAAK,MACH;AAAA;AAAA,UAAS;AAAA,UAAE;AAAA,WACd,GAEJ;AAAA;AAAA;AAAA,EACF;AAEJ;","names":[]}
@@ -1,90 +0,0 @@
1
- "use strict";
2
- "use client";
3
- var __create = Object.create;
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getProtoOf = Object.getPrototypeOf;
8
- var __hasOwnProp = Object.prototype.hasOwnProperty;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var portfolio_section_exports = {};
31
- __export(portfolio_section_exports, {
32
- PortfolioSection: () => PortfolioSection
33
- });
34
- module.exports = __toCommonJS(portfolio_section_exports);
35
- var import_jsx_runtime = require("react/jsx-runtime");
36
- var import_link = __toESM(require("./link.js"), 1);
37
- var import_lucide_react = require("lucide-react");
38
- var import_cn = require("../utils/cn.js");
39
- var import_provider = require("../i18n/provider.js");
40
- const BORDER_BY_COLOR = {
41
- blue: "border-brand-blue/40",
42
- purple: "border-brand-purple/40",
43
- rose: "border-brand-rose/40",
44
- orange: "border-brand-orange/40",
45
- maeve: "border-brand-maeve/40",
46
- navy: "border-brand-navy/40"
47
- };
48
- function PortfolioSection({
49
- title,
50
- href,
51
- color = "purple",
52
- size = "default",
53
- children,
54
- className
55
- }) {
56
- const t = (0, import_provider.useT)();
57
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
58
- "section",
59
- {
60
- className: (0, import_cn.cn)(
61
- "rounded-2xl border min-w-0",
62
- BORDER_BY_COLOR[color],
63
- size === "wide" && "sm:col-span-2 lg:col-span-3",
64
- className
65
- ),
66
- children: [
67
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between gap-3 px-5 pt-5 pb-3", children: [
68
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-sm font-black text-foreground tracking-tight", children: title }),
69
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
70
- import_link.default,
71
- {
72
- href,
73
- className: "inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",
74
- children: [
75
- t("View all"),
76
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3 w-3" })
77
- ]
78
- }
79
- )
80
- ] }),
81
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "px-5 pb-5", children })
82
- ]
83
- }
84
- );
85
- }
86
- // Annotate the CommonJS export names for ESM import in node:
87
- 0 && (module.exports = {
88
- PortfolioSection
89
- });
90
- //# sourceMappingURL=portfolio-section.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/portfolio-section.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport type PortfolioSectionColor =\n | \"blue\"\n | \"purple\"\n | \"rose\"\n | \"orange\"\n | \"maeve\"\n | \"navy\";\n\nconst BORDER_BY_COLOR: Record<PortfolioSectionColor, string> = {\n blue: \"border-brand-blue/40\",\n purple: \"border-brand-purple/40\",\n rose: \"border-brand-rose/40\",\n orange: \"border-brand-orange/40\",\n maeve: \"border-brand-maeve/40\",\n navy: \"border-brand-navy/40\",\n};\n\nexport interface PortfolioSectionProps {\n title: string;\n href: string;\n\n color?: PortfolioSectionColor;\n\n size?: \"default\" | \"wide\";\n children: React.ReactNode;\n className?: string;\n}\n\nexport function PortfolioSection({\n title,\n href,\n color = \"purple\",\n size = \"default\",\n children,\n className,\n}: PortfolioSectionProps) {\n const t = useT();\n return (\n <section\n className={cn(\n \"rounded-2xl border min-w-0\",\n BORDER_BY_COLOR[color],\n size === \"wide\" && \"sm:col-span-2 lg:col-span-3\",\n className,\n )}\n >\n <div className=\"flex items-center justify-between gap-3 px-5 pt-5 pb-3\">\n <h2 className=\"text-sm font-black text-foreground tracking-tight\">\n {title}\n </h2>\n <Link\n href={href}\n className=\"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors\"\n >\n {t(\"View all\")}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n </div>\n <div className=\"px-5 pb-5\">{children}</div>\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAsDQ;AApDR,kBAAiB;AACjB,0BAA2B;AAC3B,gBAAmB;AACnB,sBAAqB;AAUrB,MAAM,kBAAyD;AAAA,EAC7D,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AACR;AAaO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAAA,EACP;AAAA,EACA;AACF,GAA0B;AACxB,QAAM,QAAI,sBAAK;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAW;AAAA,QACT;AAAA,QACA,gBAAgB,KAAK;AAAA,QACrB,SAAS,UAAU;AAAA,QACnB;AAAA,MACF;AAAA,MAEA;AAAA,qDAAC,SAAI,WAAU,0DACb;AAAA,sDAAC,QAAG,WAAU,qDACX,iBACH;AAAA,UACA;AAAA,YAAC,YAAAA;AAAA,YAAA;AAAA,cACC;AAAA,cACA,WAAU;AAAA,cAET;AAAA,kBAAE,UAAU;AAAA,gBACb,4CAAC,kCAAW,WAAU,WAAU;AAAA;AAAA;AAAA,UAClC;AAAA,WACF;AAAA,QACA,4CAAC,SAAI,WAAU,aAAa,UAAS;AAAA;AAAA;AAAA,EACvC;AAEJ;","names":["Link"]}
@@ -1,14 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- type PortfolioSectionColor = "blue" | "purple" | "rose" | "orange" | "maeve" | "navy";
4
- interface PortfolioSectionProps {
5
- title: string;
6
- href: string;
7
- color?: PortfolioSectionColor;
8
- size?: "default" | "wide";
9
- children: React.ReactNode;
10
- className?: string;
11
- }
12
- declare function PortfolioSection({ title, href, color, size, children, className, }: PortfolioSectionProps): react_jsx_runtime.JSX.Element;
13
-
14
- export { PortfolioSection, type PortfolioSectionColor, type PortfolioSectionProps };
@@ -1,14 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
- type PortfolioSectionColor = "blue" | "purple" | "rose" | "orange" | "maeve" | "navy";
4
- interface PortfolioSectionProps {
5
- title: string;
6
- href: string;
7
- color?: PortfolioSectionColor;
8
- size?: "default" | "wide";
9
- children: React.ReactNode;
10
- className?: string;
11
- }
12
- declare function PortfolioSection({ title, href, color, size, children, className, }: PortfolioSectionProps): react_jsx_runtime.JSX.Element;
13
-
14
- export { PortfolioSection, type PortfolioSectionColor, type PortfolioSectionProps };
@@ -1,56 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import Link from "./link.js";
4
- import { ArrowRight } from "lucide-react";
5
- import { cn } from "../utils/cn.js";
6
- import { useT } from "../i18n/provider.js";
7
- const BORDER_BY_COLOR = {
8
- blue: "border-brand-blue/40",
9
- purple: "border-brand-purple/40",
10
- rose: "border-brand-rose/40",
11
- orange: "border-brand-orange/40",
12
- maeve: "border-brand-maeve/40",
13
- navy: "border-brand-navy/40"
14
- };
15
- function PortfolioSection({
16
- title,
17
- href,
18
- color = "purple",
19
- size = "default",
20
- children,
21
- className
22
- }) {
23
- const t = useT();
24
- return /* @__PURE__ */ jsxs(
25
- "section",
26
- {
27
- className: cn(
28
- "rounded-2xl border min-w-0",
29
- BORDER_BY_COLOR[color],
30
- size === "wide" && "sm:col-span-2 lg:col-span-3",
31
- className
32
- ),
33
- children: [
34
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-3 px-5 pt-5 pb-3", children: [
35
- /* @__PURE__ */ jsx("h2", { className: "text-sm font-black text-foreground tracking-tight", children: title }),
36
- /* @__PURE__ */ jsxs(
37
- Link,
38
- {
39
- href,
40
- className: "inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors",
41
- children: [
42
- t("View all"),
43
- /* @__PURE__ */ jsx(ArrowRight, { className: "h-3 w-3" })
44
- ]
45
- }
46
- )
47
- ] }),
48
- /* @__PURE__ */ jsx("div", { className: "px-5 pb-5", children })
49
- ]
50
- }
51
- );
52
- }
53
- export {
54
- PortfolioSection
55
- };
56
- //# sourceMappingURL=portfolio-section.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/portfolio-section.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport type PortfolioSectionColor =\n | \"blue\"\n | \"purple\"\n | \"rose\"\n | \"orange\"\n | \"maeve\"\n | \"navy\";\n\nconst BORDER_BY_COLOR: Record<PortfolioSectionColor, string> = {\n blue: \"border-brand-blue/40\",\n purple: \"border-brand-purple/40\",\n rose: \"border-brand-rose/40\",\n orange: \"border-brand-orange/40\",\n maeve: \"border-brand-maeve/40\",\n navy: \"border-brand-navy/40\",\n};\n\nexport interface PortfolioSectionProps {\n title: string;\n href: string;\n\n color?: PortfolioSectionColor;\n\n size?: \"default\" | \"wide\";\n children: React.ReactNode;\n className?: string;\n}\n\nexport function PortfolioSection({\n title,\n href,\n color = \"purple\",\n size = \"default\",\n children,\n className,\n}: PortfolioSectionProps) {\n const t = useT();\n return (\n <section\n className={cn(\n \"rounded-2xl border min-w-0\",\n BORDER_BY_COLOR[color],\n size === \"wide\" && \"sm:col-span-2 lg:col-span-3\",\n className,\n )}\n >\n <div className=\"flex items-center justify-between gap-3 px-5 pt-5 pb-3\">\n <h2 className=\"text-sm font-black text-foreground tracking-tight\">\n {title}\n </h2>\n <Link\n href={href}\n className=\"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground hover:text-foreground transition-colors\"\n >\n {t(\"View all\")}\n <ArrowRight className=\"h-3 w-3\" />\n </Link>\n </div>\n <div className=\"px-5 pb-5\">{children}</div>\n </section>\n );\n}\n"],"mappings":";AAsDQ,cAGA,YAHA;AApDR,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,UAAU;AACnB,SAAS,YAAY;AAUrB,MAAM,kBAAyD;AAAA,EAC7D,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,MAAM;AACR;AAaO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA,QAAQ;AAAA,EACR,OAAO;AAAA,EACP;AAAA,EACA;AACF,GAA0B;AACxB,QAAM,IAAI,KAAK;AACf,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW;AAAA,QACT;AAAA,QACA,gBAAgB,KAAK;AAAA,QACrB,SAAS,UAAU;AAAA,QACnB;AAAA,MACF;AAAA,MAEA;AAAA,6BAAC,SAAI,WAAU,0DACb;AAAA,8BAAC,QAAG,WAAU,qDACX,iBACH;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,WAAU;AAAA,cAET;AAAA,kBAAE,UAAU;AAAA,gBACb,oBAAC,cAAW,WAAU,WAAU;AAAA;AAAA;AAAA,UAClC;AAAA,WACF;AAAA,QACA,oBAAC,SAAI,WAAU,aAAa,UAAS;AAAA;AAAA;AAAA,EACvC;AAEJ;","names":[]}