@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.
- package/dist/components/action-button.cjs +5 -3
- package/dist/components/action-button.cjs.map +1 -1
- package/dist/components/action-button.d.cts +3 -1
- package/dist/components/action-button.d.ts +3 -1
- package/dist/components/action-button.js +5 -3
- package/dist/components/action-button.js.map +1 -1
- package/dist/components/asset-marketplace-panel.cjs +1 -1
- package/dist/components/asset-marketplace-panel.cjs.map +1 -1
- package/dist/components/asset-marketplace-panel.js +1 -1
- package/dist/components/asset-marketplace-panel.js.map +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.cjs.map +1 -1
- package/dist/components/badge.d.cts +1 -1
- package/dist/components/badge.d.ts +1 -1
- package/dist/components/badge.js +1 -1
- package/dist/components/badge.js.map +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.cjs.map +1 -1
- package/dist/components/button.d.cts +1 -1
- package/dist/components/button.d.ts +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/button.js.map +1 -1
- package/dist/components/discover-feed-section.cjs +2 -52
- package/dist/components/discover-feed-section.cjs.map +1 -1
- package/dist/components/discover-feed-section.d.cts +2 -15
- package/dist/components/discover-feed-section.d.ts +2 -15
- package/dist/components/discover-feed-section.js +2 -51
- package/dist/components/discover-feed-section.js.map +1 -1
- package/dist/components/ip-type-badge.cjs +2 -3
- package/dist/components/ip-type-badge.cjs.map +1 -1
- package/dist/components/ip-type-badge.js +2 -3
- package/dist/components/ip-type-badge.js.map +1 -1
- package/dist/components/panel.cjs +2 -2
- package/dist/components/panel.cjs.map +1 -1
- package/dist/components/panel.js +2 -2
- package/dist/components/panel.js.map +1 -1
- package/dist/components/sheet.cjs +1 -1
- package/dist/components/sheet.cjs.map +1 -1
- package/dist/components/sheet.js +1 -1
- package/dist/components/sheet.js.map +1 -1
- package/dist/i18n/catalog/pt.cjs +0 -4
- package/dist/i18n/catalog/pt.cjs.map +1 -1
- package/dist/i18n/catalog/pt.js +0 -4
- package/dist/i18n/catalog/pt.js.map +1 -1
- package/dist/index.cjs +0 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -10
- package/dist/index.d.ts +1 -10
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- package/dist/medialane.css +15 -112
- package/dist/preset/tailwind.cjs +0 -10
- package/dist/preset/tailwind.cjs.map +1 -1
- package/dist/preset/tailwind.js +0 -10
- package/dist/preset/tailwind.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/activity-feed-shell.cjs +0 -93
- package/dist/components/activity-feed-shell.cjs.map +0 -1
- package/dist/components/activity-feed-shell.d.cts +0 -13
- package/dist/components/activity-feed-shell.d.ts +0 -13
- package/dist/components/activity-feed-shell.js +0 -59
- package/dist/components/activity-feed-shell.js.map +0 -1
- package/dist/components/cta-card-grid.cjs +0 -69
- package/dist/components/cta-card-grid.cjs.map +0 -1
- package/dist/components/cta-card-grid.d.cts +0 -21
- package/dist/components/cta-card-grid.d.ts +0 -21
- package/dist/components/cta-card-grid.js +0 -35
- package/dist/components/cta-card-grid.js.map +0 -1
- package/dist/components/featured-carousel.cjs +0 -171
- package/dist/components/featured-carousel.cjs.map +0 -1
- package/dist/components/featured-carousel.d.cts +0 -13
- package/dist/components/featured-carousel.d.ts +0 -13
- package/dist/components/featured-carousel.js +0 -146
- package/dist/components/featured-carousel.js.map +0 -1
- package/dist/components/launchpad-cta-banner.cjs +0 -85
- package/dist/components/launchpad-cta-banner.cjs.map +0 -1
- package/dist/components/launchpad-cta-banner.d.cts +0 -15
- package/dist/components/launchpad-cta-banner.d.ts +0 -15
- package/dist/components/launchpad-cta-banner.js +0 -51
- package/dist/components/launchpad-cta-banner.js.map +0 -1
- package/dist/components/portfolio-section.cjs +0 -90
- package/dist/components/portfolio-section.cjs.map +0 -1
- package/dist/components/portfolio-section.d.cts +0 -14
- package/dist/components/portfolio-section.d.ts +0 -14
- package/dist/components/portfolio-section.js +0 -56
- package/dist/components/portfolio-section.js.map +0 -1
- package/dist/components/rewards/journey-path.cjs +0 -77
- package/dist/components/rewards/journey-path.cjs.map +0 -1
- package/dist/components/rewards/journey-path.d.cts +0 -17
- package/dist/components/rewards/journey-path.d.ts +0 -17
- package/dist/components/rewards/journey-path.js +0 -53
- package/dist/components/rewards/journey-path.js.map +0 -1
- package/dist/components/rewards/score-summary-card.cjs +0 -73
- package/dist/components/rewards/score-summary-card.cjs.map +0 -1
- package/dist/components/rewards/score-summary-card.d.cts +0 -21
- package/dist/components/rewards/score-summary-card.d.ts +0 -21
- package/dist/components/rewards/score-summary-card.js +0 -49
- package/dist/components/rewards/score-summary-card.js.map +0 -1
- package/dist/components/step-nav.cjs +0 -82
- package/dist/components/step-nav.cjs.map +0 -1
- package/dist/components/step-nav.d.cts +0 -17
- package/dist/components/step-nav.d.ts +0 -17
- package/dist/components/step-nav.js +0 -58
- package/dist/components/step-nav.js.map +0 -1
- package/dist/components/token-glyph.cjs +0 -92
- package/dist/components/token-glyph.cjs.map +0 -1
- package/dist/components/token-glyph.d.cts +0 -19
- package/dist/components/token-glyph.d.ts +0 -19
- package/dist/components/token-glyph.js +0 -67
- package/dist/components/token-glyph.js.map +0 -1
package/dist/preset/tailwind.js
CHANGED
|
@@ -34,16 +34,6 @@ const medialanePreset = {
|
|
|
34
34
|
accent: pair("accent"),
|
|
35
35
|
popover: pair("popover"),
|
|
36
36
|
card: pair("card"),
|
|
37
|
-
sidebar: {
|
|
38
|
-
DEFAULT: "hsl(var(--sidebar-background))",
|
|
39
|
-
foreground: "hsl(var(--sidebar-foreground))",
|
|
40
|
-
primary: "hsl(var(--sidebar-primary))",
|
|
41
|
-
"primary-foreground": "hsl(var(--sidebar-primary-foreground))",
|
|
42
|
-
accent: "hsl(var(--sidebar-accent))",
|
|
43
|
-
"accent-foreground": "hsl(var(--sidebar-accent-foreground))",
|
|
44
|
-
border: "hsl(var(--sidebar-border))",
|
|
45
|
-
ring: "hsl(var(--sidebar-ring))"
|
|
46
|
-
},
|
|
47
37
|
"brand-blue": "hsl(var(--brand-blue))",
|
|
48
38
|
"brand-purple": "hsl(var(--brand-purple))",
|
|
49
39
|
"brand-rose": "hsl(var(--brand-rose))",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/preset/tailwind.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport plugin from \"tailwindcss/plugin\";\n\nconst pair = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n});\n\nconst medialanePreset: Partial<Config> = {\n darkMode: [\"class\"],\n plugins: [\n plugin(({ addBase, theme }) => {\n addBase({\n \"*\": { borderColor: theme(\"colors.border\") },\n \"html, body\": { overflowX: \"clip\", maxWidth: \"100%\" },\n body: {\n backgroundColor: theme(\"colors.background\"),\n color: theme(\"colors.foreground\"),\n fontFeatureSettings: '\"rlig\" 1, \"calt\" 1',\n },\n \"h1, h2, h3, h4\": { letterSpacing: theme(\"letterSpacing.tight\") },\n });\n }),\n ],\n theme: {\n extend: {\n colors: {\n border: \"hsl(var(--border))\",\n input: \"hsl(var(--input))\",\n ring: \"hsl(var(--ring))\",\n background: \"hsl(var(--background))\",\n foreground: \"hsl(var(--foreground))\",\n primary: pair(\"primary\"),\n secondary: pair(\"secondary\"),\n destructive: pair(\"destructive\"),\n muted: pair(\"muted\"),\n accent: pair(\"accent\"),\n popover: pair(\"popover\"),\n card: pair(\"card\"),\n
|
|
1
|
+
{"version":3,"sources":["../../src/preset/tailwind.ts"],"sourcesContent":["import type { Config } from \"tailwindcss\";\nimport plugin from \"tailwindcss/plugin\";\n\nconst pair = (name: string) => ({\n DEFAULT: `hsl(var(--${name}))`,\n foreground: `hsl(var(--${name}-foreground))`,\n});\n\nconst medialanePreset: Partial<Config> = {\n darkMode: [\"class\"],\n plugins: [\n plugin(({ addBase, theme }) => {\n addBase({\n \"*\": { borderColor: theme(\"colors.border\") },\n \"html, body\": { overflowX: \"clip\", maxWidth: \"100%\" },\n body: {\n backgroundColor: theme(\"colors.background\"),\n color: theme(\"colors.foreground\"),\n fontFeatureSettings: '\"rlig\" 1, \"calt\" 1',\n },\n \"h1, h2, h3, h4\": { letterSpacing: theme(\"letterSpacing.tight\") },\n });\n }),\n ],\n theme: {\n extend: {\n colors: {\n border: \"hsl(var(--border))\",\n input: \"hsl(var(--input))\",\n ring: \"hsl(var(--ring))\",\n background: \"hsl(var(--background))\",\n foreground: \"hsl(var(--foreground))\",\n primary: pair(\"primary\"),\n secondary: pair(\"secondary\"),\n destructive: pair(\"destructive\"),\n muted: pair(\"muted\"),\n accent: pair(\"accent\"),\n popover: pair(\"popover\"),\n card: pair(\"card\"),\n \"brand-blue\": \"hsl(var(--brand-blue))\",\n \"brand-purple\": \"hsl(var(--brand-purple))\",\n \"brand-rose\": \"hsl(var(--brand-rose))\",\n \"brand-orange\": \"hsl(var(--brand-orange))\",\n \"brand-maeve\": \"hsl(var(--brand-maeve))\",\n \"brand-navy\": \"hsl(var(--brand-navy))\",\n },\n borderRadius: {\n brand: \"11px\",\n lg: \"var(--radius)\",\n md: \"calc(var(--radius) - 2px)\",\n sm: \"calc(var(--radius) - 4px)\",\n },\n fontFamily: {\n display: [\"var(--font-display)\", \"Urbanist\", \"Inter\", \"system-ui\", \"sans-serif\"],\n },\n fontSize: {\n \"2xs\": [\"11px\", { lineHeight: \"14px\" }],\n },\n },\n },\n};\n\nexport default medialanePreset;\n"],"mappings":"AACA,OAAO,YAAY;AAEnB,MAAM,OAAO,CAAC,UAAkB;AAAA,EAC9B,SAAS,aAAa,IAAI;AAAA,EAC1B,YAAY,aAAa,IAAI;AAC/B;AAEA,MAAM,kBAAmC;AAAA,EACvC,UAAU,CAAC,OAAO;AAAA,EAClB,SAAS;AAAA,IACP,OAAO,CAAC,EAAE,SAAS,MAAM,MAAM;AAC7B,cAAQ;AAAA,QACN,KAAK,EAAE,aAAa,MAAM,eAAe,EAAE;AAAA,QAC3C,cAAc,EAAE,WAAW,QAAQ,UAAU,OAAO;AAAA,QACpD,MAAM;AAAA,UACJ,iBAAiB,MAAM,mBAAmB;AAAA,UAC1C,OAAO,MAAM,mBAAmB;AAAA,UAChC,qBAAqB;AAAA,QACvB;AAAA,QACA,kBAAkB,EAAE,eAAe,MAAM,qBAAqB,EAAE;AAAA,MAClE,CAAC;AAAA,IACH,CAAC;AAAA,EACH;AAAA,EACA,OAAO;AAAA,IACL,QAAQ;AAAA,MACN,QAAQ;AAAA,QACN,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,MAAM;AAAA,QACN,YAAY;AAAA,QACZ,YAAY;AAAA,QACZ,SAAS,KAAK,SAAS;AAAA,QACvB,WAAW,KAAK,WAAW;AAAA,QAC3B,aAAa,KAAK,aAAa;AAAA,QAC/B,OAAO,KAAK,OAAO;AAAA,QACnB,QAAQ,KAAK,QAAQ;AAAA,QACrB,SAAS,KAAK,SAAS;AAAA,QACvB,MAAM,KAAK,MAAM;AAAA,QACjB,cAAkB;AAAA,QAClB,gBAAkB;AAAA,QAClB,cAAkB;AAAA,QAClB,gBAAkB;AAAA,QAClB,eAAkB;AAAA,QAClB,cAAkB;AAAA,MACpB;AAAA,MACA,cAAc;AAAA,QACZ,OAAO;AAAA,QACP,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,MACN;AAAA,MACA,YAAY;AAAA,QACV,SAAS,CAAC,uBAAuB,YAAY,SAAS,aAAa,YAAY;AAAA,MACjF;AAAA,MACA,UAAU;AAAA,QACR,OAAO,CAAC,QAAQ,EAAE,YAAY,OAAO,CAAC;AAAA,MACxC;AAAA,IACF;AAAA,EACF;AACF;AAEA,IAAO,mBAAQ;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,93 +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 activity_feed_shell_exports = {};
|
|
31
|
-
__export(activity_feed_shell_exports, {
|
|
32
|
-
ActivityFeedShell: () => ActivityFeedShell
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(activity_feed_shell_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_time = require("../utils/time.js");
|
|
39
|
-
var import_empty_messages = require("../utils/empty-messages.js");
|
|
40
|
-
var import_provider = require("../i18n/provider.js");
|
|
41
|
-
function SkeletonRow() {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-3 px-4 py-2.5", children: [
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-7 w-7 rounded-lg bg-muted animate-pulse shrink-0" }),
|
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-7 w-7 rounded-md bg-muted animate-pulse shrink-0" }),
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1 space-y-1.5", children: [
|
|
46
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-32 bg-muted animate-pulse rounded" }),
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-2.5 w-20 bg-muted animate-pulse rounded" })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "space-y-1 text-right", children: [
|
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3.5 w-14 bg-muted animate-pulse rounded" }),
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-2.5 w-8 bg-muted animate-pulse rounded" })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "h-3 w-10 bg-muted animate-pulse rounded hidden sm:block" })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
function ActivityFeedShell({ title, href, hrefLabel = "Activities", lastUpdated, isLoading, children }) {
|
|
57
|
-
const t = (0, import_provider.useT)();
|
|
58
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-5", children: [
|
|
59
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", children: [
|
|
60
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2.5", children: [
|
|
61
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative h-8 w-8 rounded-xl bg-gradient-to-br from-indigo-500 to-blue-600 flex items-center justify-center shadow-lg shadow-indigo-500/20 shrink-0", children: [
|
|
62
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Activity, { className: "h-4 w-4 text-white" }),
|
|
63
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "absolute -top-1 -right-1 flex h-2.5 w-2.5", children: [
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75" }),
|
|
65
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "relative inline-flex rounded-full h-2.5 w-2.5 bg-emerald-500" })
|
|
66
|
-
] })
|
|
67
|
-
] }),
|
|
68
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-xl sm:text-2xl font-black leading-none", children: title }),
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { className: "text-2xs text-muted-foreground mt-0.5 flex items-center gap-1", children: [
|
|
71
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.RefreshCw, { className: "h-2.5 w-2.5" }),
|
|
72
|
-
t("Updated {timeAgo}", { timeAgo: (0, import_time.timeAgo)(lastUpdated) })
|
|
73
|
-
] })
|
|
74
|
-
] })
|
|
75
|
-
] }),
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href, className: "inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors", children: [
|
|
77
|
-
hrefLabel,
|
|
78
|
-
" ",
|
|
79
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5" })
|
|
80
|
-
] })
|
|
81
|
-
] }),
|
|
82
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "bento-cell overflow-hidden divide-y divide-border/40", children: isLoading ? Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SkeletonRow, {}, i)) : !children || Array.isArray(children) && children.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-2 py-10 text-center", children: [
|
|
83
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Activity, { className: "h-8 w-8 text-muted-foreground/30" }),
|
|
84
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm font-medium", children: t(import_empty_messages.emptyMessages.activity.title) }),
|
|
85
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground", children: t(import_empty_messages.emptyMessages.activity.description) })
|
|
86
|
-
] }) : children })
|
|
87
|
-
] });
|
|
88
|
-
}
|
|
89
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
-
0 && (module.exports = {
|
|
91
|
-
ActivityFeedShell
|
|
92
|
-
});
|
|
93
|
-
//# sourceMappingURL=activity-feed-shell.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/activity-feed-shell.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { ArrowRight, Activity, RefreshCw } from \"lucide-react\";\nimport { timeAgo } from \"../utils/time.js\";\nimport { emptyMessages } from \"../utils/empty-messages.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface ActivityFeedShellProps {\n title: string;\n href: string;\n hrefLabel?: string;\n lastUpdated: string;\n isLoading: boolean;\n children: React.ReactNode;\n}\n\nfunction SkeletonRow() {\n return (\n <div className=\"flex items-center gap-3 px-4 py-2.5\">\n <div className=\"h-7 w-7 rounded-lg bg-muted animate-pulse shrink-0\" />\n <div className=\"h-7 w-7 rounded-md bg-muted animate-pulse shrink-0\" />\n <div className=\"flex-1 space-y-1.5\">\n <div className=\"h-3 w-32 bg-muted animate-pulse rounded\" />\n <div className=\"h-2.5 w-20 bg-muted animate-pulse rounded\" />\n </div>\n <div className=\"space-y-1 text-right\">\n <div className=\"h-3.5 w-14 bg-muted animate-pulse rounded\" />\n <div className=\"h-2.5 w-8 bg-muted animate-pulse rounded\" />\n </div>\n <div className=\"h-3 w-10 bg-muted animate-pulse rounded hidden sm:block\" />\n </div>\n );\n}\n\nexport function ActivityFeedShell({ title, href, hrefLabel = \"Activities\", lastUpdated, isLoading, children }: ActivityFeedShellProps) {\n const t = useT();\n return (\n <section className=\"space-y-5\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2.5\">\n <div className=\"relative h-8 w-8 rounded-xl bg-gradient-to-br from-indigo-500 to-blue-600 flex items-center justify-center shadow-lg shadow-indigo-500/20 shrink-0\">\n <Activity className=\"h-4 w-4 text-white\" />\n <span className=\"absolute -top-1 -right-1 flex h-2.5 w-2.5\">\n <span className=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75\" />\n <span className=\"relative inline-flex rounded-full h-2.5 w-2.5 bg-emerald-500\" />\n </span>\n </div>\n <div>\n <h2 className=\"text-xl sm:text-2xl font-black leading-none\">{title}</h2>\n <p className=\"text-2xs text-muted-foreground mt-0.5 flex items-center gap-1\">\n <RefreshCw className=\"h-2.5 w-2.5\" />{t(\"Updated {timeAgo}\", { timeAgo: timeAgo(lastUpdated) })}\n </p>\n </div>\n </div>\n <Link href={href} className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors\">\n {hrefLabel} <ArrowRight className=\"h-3.5 w-3.5\" />\n </Link>\n </div>\n\n <div className=\"bento-cell overflow-hidden divide-y divide-border/40\">\n {isLoading ? (\n Array.from({ length: 6 }).map((_, i) => <SkeletonRow key={i} />)\n ) : !children || (Array.isArray(children) && children.length === 0) ? (\n <div className=\"flex flex-col items-center gap-2 py-10 text-center\">\n <Activity className=\"h-8 w-8 text-muted-foreground/30\" />\n <p className=\"text-sm font-medium\">{t(emptyMessages.activity.title)}</p>\n <p className=\"text-sm text-muted-foreground\">{t(emptyMessages.activity.description)}</p>\n </div>\n ) : (\n children\n )}\n </div>\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBM;AAlBN,kBAAiB;AACjB,0BAAgD;AAChD,kBAAwB;AACxB,4BAA8B;AAC9B,sBAAqB;AAWrB,SAAS,cAAc;AACrB,SACE,6CAAC,SAAI,WAAU,uCACb;AAAA,gDAAC,SAAI,WAAU,sDAAqD;AAAA,IACpE,4CAAC,SAAI,WAAU,sDAAqD;AAAA,IACpE,6CAAC,SAAI,WAAU,sBACb;AAAA,kDAAC,SAAI,WAAU,2CAA0C;AAAA,MACzD,4CAAC,SAAI,WAAU,6CAA4C;AAAA,OAC7D;AAAA,IACA,6CAAC,SAAI,WAAU,wBACb;AAAA,kDAAC,SAAI,WAAU,6CAA4C;AAAA,MAC3D,4CAAC,SAAI,WAAU,4CAA2C;AAAA,OAC5D;AAAA,IACA,4CAAC,SAAI,WAAU,2DAA0D;AAAA,KAC3E;AAEJ;AAEO,SAAS,kBAAkB,EAAE,OAAO,MAAM,YAAY,cAAc,aAAa,WAAW,SAAS,GAA2B;AACrI,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,aAAQ,WAAU,aACjB;AAAA,iDAAC,SAAI,WAAU,qCACb;AAAA,mDAAC,SAAI,WAAU,6BACb;AAAA,qDAAC,SAAI,WAAU,sJACb;AAAA,sDAAC,gCAAS,WAAU,sBAAqB;AAAA,UACzC,6CAAC,UAAK,WAAU,6CACd;AAAA,wDAAC,UAAK,WAAU,0FAAyF;AAAA,YACzG,4CAAC,UAAK,WAAU,gEAA+D;AAAA,aACjF;AAAA,WACF;AAAA,QACA,6CAAC,SACC;AAAA,sDAAC,QAAG,WAAU,+CAA+C,iBAAM;AAAA,UACnE,6CAAC,OAAE,WAAU,iEACX;AAAA,wDAAC,iCAAU,WAAU,eAAc;AAAA,YAAG,EAAE,qBAAqB,EAAE,aAAS,qBAAQ,WAAW,EAAE,CAAC;AAAA,aAChG;AAAA,WACF;AAAA,SACF;AAAA,MACA,6CAAC,YAAAA,SAAA,EAAK,MAAY,WAAU,+IACzB;AAAA;AAAA,QAAU;AAAA,QAAC,4CAAC,kCAAW,WAAU,eAAc;AAAA,SAClD;AAAA,OACF;AAAA,IAEA,4CAAC,SAAI,WAAU,wDACZ,sBACC,MAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,4CAAC,iBAAiB,CAAG,CAAE,IAC7D,CAAC,YAAa,MAAM,QAAQ,QAAQ,KAAK,SAAS,WAAW,IAC/D,6CAAC,SAAI,WAAU,sDACb;AAAA,kDAAC,gCAAS,WAAU,oCAAmC;AAAA,MACvD,4CAAC,OAAE,WAAU,uBAAuB,YAAE,oCAAc,SAAS,KAAK,GAAE;AAAA,MACpE,4CAAC,OAAE,WAAU,iCAAiC,YAAE,oCAAc,SAAS,WAAW,GAAE;AAAA,OACtF,IAEA,UAEJ;AAAA,KACF;AAEJ;","names":["Link"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface ActivityFeedShellProps {
|
|
4
|
-
title: string;
|
|
5
|
-
href: string;
|
|
6
|
-
hrefLabel?: string;
|
|
7
|
-
lastUpdated: string;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare function ActivityFeedShell({ title, href, hrefLabel, lastUpdated, isLoading, children }: ActivityFeedShellProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { ActivityFeedShell, type ActivityFeedShellProps };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface ActivityFeedShellProps {
|
|
4
|
-
title: string;
|
|
5
|
-
href: string;
|
|
6
|
-
hrefLabel?: string;
|
|
7
|
-
lastUpdated: string;
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
children: React.ReactNode;
|
|
10
|
-
}
|
|
11
|
-
declare function ActivityFeedShell({ title, href, hrefLabel, lastUpdated, isLoading, children }: ActivityFeedShellProps): react_jsx_runtime.JSX.Element;
|
|
12
|
-
|
|
13
|
-
export { ActivityFeedShell, type ActivityFeedShellProps };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import Link from "./link.js";
|
|
4
|
-
import { ArrowRight, Activity, RefreshCw } from "lucide-react";
|
|
5
|
-
import { timeAgo } from "../utils/time.js";
|
|
6
|
-
import { emptyMessages } from "../utils/empty-messages.js";
|
|
7
|
-
import { useT } from "../i18n/provider.js";
|
|
8
|
-
function SkeletonRow() {
|
|
9
|
-
return /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 px-4 py-2.5", children: [
|
|
10
|
-
/* @__PURE__ */ jsx("div", { className: "h-7 w-7 rounded-lg bg-muted animate-pulse shrink-0" }),
|
|
11
|
-
/* @__PURE__ */ jsx("div", { className: "h-7 w-7 rounded-md bg-muted animate-pulse shrink-0" }),
|
|
12
|
-
/* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-1.5", children: [
|
|
13
|
-
/* @__PURE__ */ jsx("div", { className: "h-3 w-32 bg-muted animate-pulse rounded" }),
|
|
14
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-20 bg-muted animate-pulse rounded" })
|
|
15
|
-
] }),
|
|
16
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-1 text-right", children: [
|
|
17
|
-
/* @__PURE__ */ jsx("div", { className: "h-3.5 w-14 bg-muted animate-pulse rounded" }),
|
|
18
|
-
/* @__PURE__ */ jsx("div", { className: "h-2.5 w-8 bg-muted animate-pulse rounded" })
|
|
19
|
-
] }),
|
|
20
|
-
/* @__PURE__ */ jsx("div", { className: "h-3 w-10 bg-muted animate-pulse rounded hidden sm:block" })
|
|
21
|
-
] });
|
|
22
|
-
}
|
|
23
|
-
function ActivityFeedShell({ title, href, hrefLabel = "Activities", lastUpdated, isLoading, children }) {
|
|
24
|
-
const t = useT();
|
|
25
|
-
return /* @__PURE__ */ jsxs("section", { className: "space-y-5", children: [
|
|
26
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
27
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2.5", children: [
|
|
28
|
-
/* @__PURE__ */ jsxs("div", { className: "relative h-8 w-8 rounded-xl bg-gradient-to-br from-indigo-500 to-blue-600 flex items-center justify-center shadow-lg shadow-indigo-500/20 shrink-0", children: [
|
|
29
|
-
/* @__PURE__ */ jsx(Activity, { className: "h-4 w-4 text-white" }),
|
|
30
|
-
/* @__PURE__ */ jsxs("span", { className: "absolute -top-1 -right-1 flex h-2.5 w-2.5", children: [
|
|
31
|
-
/* @__PURE__ */ jsx("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75" }),
|
|
32
|
-
/* @__PURE__ */ jsx("span", { className: "relative inline-flex rounded-full h-2.5 w-2.5 bg-emerald-500" })
|
|
33
|
-
] })
|
|
34
|
-
] }),
|
|
35
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
36
|
-
/* @__PURE__ */ jsx("h2", { className: "text-xl sm:text-2xl font-black leading-none", children: title }),
|
|
37
|
-
/* @__PURE__ */ jsxs("p", { className: "text-2xs text-muted-foreground mt-0.5 flex items-center gap-1", children: [
|
|
38
|
-
/* @__PURE__ */ jsx(RefreshCw, { className: "h-2.5 w-2.5" }),
|
|
39
|
-
t("Updated {timeAgo}", { timeAgo: timeAgo(lastUpdated) })
|
|
40
|
-
] })
|
|
41
|
-
] })
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ jsxs(Link, { href, className: "inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors", children: [
|
|
44
|
-
hrefLabel,
|
|
45
|
-
" ",
|
|
46
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5" })
|
|
47
|
-
] })
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ jsx("div", { className: "bento-cell overflow-hidden divide-y divide-border/40", children: isLoading ? Array.from({ length: 6 }).map((_, i) => /* @__PURE__ */ jsx(SkeletonRow, {}, i)) : !children || Array.isArray(children) && children.length === 0 ? /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-2 py-10 text-center", children: [
|
|
50
|
-
/* @__PURE__ */ jsx(Activity, { className: "h-8 w-8 text-muted-foreground/30" }),
|
|
51
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: t(emptyMessages.activity.title) }),
|
|
52
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: t(emptyMessages.activity.description) })
|
|
53
|
-
] }) : children })
|
|
54
|
-
] });
|
|
55
|
-
}
|
|
56
|
-
export {
|
|
57
|
-
ActivityFeedShell
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=activity-feed-shell.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/activity-feed-shell.tsx"],"sourcesContent":["\"use client\";\n\nimport Link from \"./link.js\";\nimport { ArrowRight, Activity, RefreshCw } from \"lucide-react\";\nimport { timeAgo } from \"../utils/time.js\";\nimport { emptyMessages } from \"../utils/empty-messages.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface ActivityFeedShellProps {\n title: string;\n href: string;\n hrefLabel?: string;\n lastUpdated: string;\n isLoading: boolean;\n children: React.ReactNode;\n}\n\nfunction SkeletonRow() {\n return (\n <div className=\"flex items-center gap-3 px-4 py-2.5\">\n <div className=\"h-7 w-7 rounded-lg bg-muted animate-pulse shrink-0\" />\n <div className=\"h-7 w-7 rounded-md bg-muted animate-pulse shrink-0\" />\n <div className=\"flex-1 space-y-1.5\">\n <div className=\"h-3 w-32 bg-muted animate-pulse rounded\" />\n <div className=\"h-2.5 w-20 bg-muted animate-pulse rounded\" />\n </div>\n <div className=\"space-y-1 text-right\">\n <div className=\"h-3.5 w-14 bg-muted animate-pulse rounded\" />\n <div className=\"h-2.5 w-8 bg-muted animate-pulse rounded\" />\n </div>\n <div className=\"h-3 w-10 bg-muted animate-pulse rounded hidden sm:block\" />\n </div>\n );\n}\n\nexport function ActivityFeedShell({ title, href, hrefLabel = \"Activities\", lastUpdated, isLoading, children }: ActivityFeedShellProps) {\n const t = useT();\n return (\n <section className=\"space-y-5\">\n <div className=\"flex items-center justify-between\">\n <div className=\"flex items-center gap-2.5\">\n <div className=\"relative h-8 w-8 rounded-xl bg-gradient-to-br from-indigo-500 to-blue-600 flex items-center justify-center shadow-lg shadow-indigo-500/20 shrink-0\">\n <Activity className=\"h-4 w-4 text-white\" />\n <span className=\"absolute -top-1 -right-1 flex h-2.5 w-2.5\">\n <span className=\"animate-ping absolute inline-flex h-full w-full rounded-full bg-emerald-400 opacity-75\" />\n <span className=\"relative inline-flex rounded-full h-2.5 w-2.5 bg-emerald-500\" />\n </span>\n </div>\n <div>\n <h2 className=\"text-xl sm:text-2xl font-black leading-none\">{title}</h2>\n <p className=\"text-2xs text-muted-foreground mt-0.5 flex items-center gap-1\">\n <RefreshCw className=\"h-2.5 w-2.5\" />{t(\"Updated {timeAgo}\", { timeAgo: timeAgo(lastUpdated) })}\n </p>\n </div>\n </div>\n <Link href={href} className=\"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground px-3 py-1.5 rounded-md hover:bg-accent transition-colors\">\n {hrefLabel} <ArrowRight className=\"h-3.5 w-3.5\" />\n </Link>\n </div>\n\n <div className=\"bento-cell overflow-hidden divide-y divide-border/40\">\n {isLoading ? (\n Array.from({ length: 6 }).map((_, i) => <SkeletonRow key={i} />)\n ) : !children || (Array.isArray(children) && children.length === 0) ? (\n <div className=\"flex flex-col items-center gap-2 py-10 text-center\">\n <Activity className=\"h-8 w-8 text-muted-foreground/30\" />\n <p className=\"text-sm font-medium\">{t(emptyMessages.activity.title)}</p>\n <p className=\"text-sm text-muted-foreground\">{t(emptyMessages.activity.description)}</p>\n </div>\n ) : (\n children\n )}\n </div>\n </section>\n );\n}\n"],"mappings":";AAoBM,cAEA,YAFA;AAlBN,OAAO,UAAU;AACjB,SAAS,YAAY,UAAU,iBAAiB;AAChD,SAAS,eAAe;AACxB,SAAS,qBAAqB;AAC9B,SAAS,YAAY;AAWrB,SAAS,cAAc;AACrB,SACE,qBAAC,SAAI,WAAU,uCACb;AAAA,wBAAC,SAAI,WAAU,sDAAqD;AAAA,IACpE,oBAAC,SAAI,WAAU,sDAAqD;AAAA,IACpE,qBAAC,SAAI,WAAU,sBACb;AAAA,0BAAC,SAAI,WAAU,2CAA0C;AAAA,MACzD,oBAAC,SAAI,WAAU,6CAA4C;AAAA,OAC7D;AAAA,IACA,qBAAC,SAAI,WAAU,wBACb;AAAA,0BAAC,SAAI,WAAU,6CAA4C;AAAA,MAC3D,oBAAC,SAAI,WAAU,4CAA2C;AAAA,OAC5D;AAAA,IACA,oBAAC,SAAI,WAAU,2DAA0D;AAAA,KAC3E;AAEJ;AAEO,SAAS,kBAAkB,EAAE,OAAO,MAAM,YAAY,cAAc,aAAa,WAAW,SAAS,GAA2B;AACrI,QAAM,IAAI,KAAK;AACf,SACE,qBAAC,aAAQ,WAAU,aACjB;AAAA,yBAAC,SAAI,WAAU,qCACb;AAAA,2BAAC,SAAI,WAAU,6BACb;AAAA,6BAAC,SAAI,WAAU,sJACb;AAAA,8BAAC,YAAS,WAAU,sBAAqB;AAAA,UACzC,qBAAC,UAAK,WAAU,6CACd;AAAA,gCAAC,UAAK,WAAU,0FAAyF;AAAA,YACzG,oBAAC,UAAK,WAAU,gEAA+D;AAAA,aACjF;AAAA,WACF;AAAA,QACA,qBAAC,SACC;AAAA,8BAAC,QAAG,WAAU,+CAA+C,iBAAM;AAAA,UACnE,qBAAC,OAAE,WAAU,iEACX;AAAA,gCAAC,aAAU,WAAU,eAAc;AAAA,YAAG,EAAE,qBAAqB,EAAE,SAAS,QAAQ,WAAW,EAAE,CAAC;AAAA,aAChG;AAAA,WACF;AAAA,SACF;AAAA,MACA,qBAAC,QAAK,MAAY,WAAU,+IACzB;AAAA;AAAA,QAAU;AAAA,QAAC,oBAAC,cAAW,WAAU,eAAc;AAAA,SAClD;AAAA,OACF;AAAA,IAEA,oBAAC,SAAI,WAAU,wDACZ,sBACC,MAAM,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,oBAAC,iBAAiB,CAAG,CAAE,IAC7D,CAAC,YAAa,MAAM,QAAQ,QAAQ,KAAK,SAAS,WAAW,IAC/D,qBAAC,SAAI,WAAU,sDACb;AAAA,0BAAC,YAAS,WAAU,oCAAmC;AAAA,MACvD,oBAAC,OAAE,WAAU,uBAAuB,YAAE,cAAc,SAAS,KAAK,GAAE;AAAA,MACpE,oBAAC,OAAE,WAAU,iCAAiC,YAAE,cAAc,SAAS,WAAW,GAAE;AAAA,OACtF,IAEA,UAEJ;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -1,69 +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 cta_card_grid_exports = {};
|
|
31
|
-
__export(cta_card_grid_exports, {
|
|
32
|
-
CtaCardGrid: () => CtaCardGrid
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(cta_card_grid_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
|
-
function CtaCard({ icon: Icon, title, description, links, href, gradient, iconGradient }) {
|
|
41
|
-
const t = (0, import_provider.useT)();
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "bento-cell p-6 sm:p-8 flex flex-col gap-6 relative overflow-hidden group hover:border-border/80 transition-colors", children: [
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: `absolute inset-0 opacity-[0.03] group-hover:opacity-[0.06] transition-opacity ${gradient} pointer-events-none` }),
|
|
44
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative z-10 space-y-3", children: [
|
|
45
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: (0, import_cn.cn)("h-11 w-11 rounded-2xl flex items-center justify-center shadow-lg", iconGradient), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Icon, { className: "h-5 w-5 text-white" }) }),
|
|
46
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
47
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "text-xl font-black", children: title }),
|
|
48
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "text-sm text-muted-foreground leading-relaxed mt-1", children: description })
|
|
49
|
-
] })
|
|
50
|
-
] }),
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "relative z-10 space-y-2", children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href: link.href, className: "flex items-center gap-2.5 text-sm text-muted-foreground hover:text-foreground transition-colors group/link", children: [
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5 text-primary opacity-0 group-hover/link:opacity-100 transition-opacity shrink-0 -ml-0.5" }),
|
|
53
|
-
link.label
|
|
54
|
-
] }) }, link.href)) }),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "relative z-10 mt-auto", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_link.default, { href, className: "inline-flex items-center gap-1.5 text-sm border border-border rounded-md px-3 py-1.5 hover:border-primary/40 transition-colors group-hover:border-primary/40", children: [
|
|
56
|
-
t("Explore {title}", { title }),
|
|
57
|
-
" ",
|
|
58
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5 ml-1.5" })
|
|
59
|
-
] }) })
|
|
60
|
-
] });
|
|
61
|
-
}
|
|
62
|
-
function CtaCardGrid({ cards }) {
|
|
63
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { className: "space-y-5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: cards.map((card) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CtaCard, { ...card }, card.title)) }) });
|
|
64
|
-
}
|
|
65
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
66
|
-
0 && (module.exports = {
|
|
67
|
-
CtaCardGrid
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=cta-card-grid.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/cta-card-grid.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport Link from \"./link.js\";\nimport { ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface CtaCardItem {\n icon: ElementType;\n title: string;\n description: string;\n links: { label: string; href: string }[];\n href: string;\n\n gradient: string;\n\n iconGradient: string;\n}\n\nexport interface CtaCardGridProps {\n cards: CtaCardItem[];\n}\n\nfunction CtaCard({ icon: Icon, title, description, links, href, gradient, iconGradient }: CtaCardItem) {\n const t = useT();\n return (\n <div className=\"bento-cell p-6 sm:p-8 flex flex-col gap-6 relative overflow-hidden group hover:border-border/80 transition-colors\">\n <div className={`absolute inset-0 opacity-[0.03] group-hover:opacity-[0.06] transition-opacity ${gradient} pointer-events-none`} />\n\n <div className=\"relative z-10 space-y-3\">\n <div className={cn(\"h-11 w-11 rounded-2xl flex items-center justify-center shadow-lg\", iconGradient)}>\n <Icon className=\"h-5 w-5 text-white\" />\n </div>\n <div>\n <h3 className=\"text-xl font-black\">{title}</h3>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-1\">{description}</p>\n </div>\n </div>\n\n <ul className=\"relative z-10 space-y-2\">\n {links.map((link) => (\n <li key={link.href}>\n <Link href={link.href} className=\"flex items-center gap-2.5 text-sm text-muted-foreground hover:text-foreground transition-colors group/link\">\n <ArrowRight className=\"h-3.5 w-3.5 text-primary opacity-0 group-hover/link:opacity-100 transition-opacity shrink-0 -ml-0.5\" />\n {link.label}\n </Link>\n </li>\n ))}\n </ul>\n\n <div className=\"relative z-10 mt-auto\">\n <Link href={href} className=\"inline-flex items-center gap-1.5 text-sm border border-border rounded-md px-3 py-1.5 hover:border-primary/40 transition-colors group-hover:border-primary/40\">{t(\"Explore {title}\", { title })} <ArrowRight className=\"h-3.5 w-3.5 ml-1.5\" />\n </Link>\n </div>\n </div>\n );\n}\n\nexport function CtaCardGrid({ cards }: CtaCardGridProps) {\n return (\n <section className=\"space-y-5\">\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {cards.map((card) => (\n <CtaCard key={card.title} {...card} />\n ))}\n </div>\n </section>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA4BM;AAzBN,kBAAiB;AACjB,0BAA2B;AAC3B,gBAAmB;AACnB,sBAAqB;AAkBrB,SAAS,QAAQ,EAAE,MAAM,MAAM,OAAO,aAAa,OAAO,MAAM,UAAU,aAAa,GAAgB;AACrG,QAAM,QAAI,sBAAK;AACf,SACE,6CAAC,SAAI,WAAU,qHACb;AAAA,gDAAC,SAAI,WAAW,iFAAiF,QAAQ,wBAAwB;AAAA,IAEjI,6CAAC,SAAI,WAAU,2BACb;AAAA,kDAAC,SAAI,eAAW,cAAG,oEAAoE,YAAY,GACjG,sDAAC,QAAK,WAAU,sBAAqB,GACvC;AAAA,MACA,6CAAC,SACC;AAAA,oDAAC,QAAG,WAAU,sBAAsB,iBAAM;AAAA,QAC1C,4CAAC,OAAE,WAAU,sDAAsD,uBAAY;AAAA,SACjF;AAAA,OACF;AAAA,IAEA,4CAAC,QAAG,WAAU,2BACX,gBAAM,IAAI,CAAC,SACV,4CAAC,QACC,uDAAC,YAAAA,SAAA,EAAK,MAAM,KAAK,MAAM,WAAU,8GAC/B;AAAA,kDAAC,kCAAW,WAAU,uGAAsG;AAAA,MAC3H,KAAK;AAAA,OACR,KAJO,KAAK,IAKd,CACD,GACH;AAAA,IAEA,4CAAC,SAAI,WAAU,yBACb,uDAAC,YAAAA,SAAA,EAAK,MAAY,WAAU,gKAAgK;AAAA,QAAE,mBAAmB,EAAE,MAAM,CAAC;AAAA,MAAE;AAAA,MAAC,4CAAC,kCAAW,WAAU,sBAAqB;AAAA,OACxQ,GACF;AAAA,KACF;AAEJ;AAEO,SAAS,YAAY,EAAE,MAAM,GAAqB;AACvD,SACE,4CAAC,aAAQ,WAAU,aACjB,sDAAC,SAAI,WAAU,yCACZ,gBAAM,IAAI,CAAC,SACV,4CAAC,WAA0B,GAAG,QAAhB,KAAK,KAAiB,CACrC,GACH,GACF;AAEJ;","names":["Link"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ElementType } from 'react';
|
|
3
|
-
|
|
4
|
-
interface CtaCardItem {
|
|
5
|
-
icon: ElementType;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
links: {
|
|
9
|
-
label: string;
|
|
10
|
-
href: string;
|
|
11
|
-
}[];
|
|
12
|
-
href: string;
|
|
13
|
-
gradient: string;
|
|
14
|
-
iconGradient: string;
|
|
15
|
-
}
|
|
16
|
-
interface CtaCardGridProps {
|
|
17
|
-
cards: CtaCardItem[];
|
|
18
|
-
}
|
|
19
|
-
declare function CtaCardGrid({ cards }: CtaCardGridProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
export { CtaCardGrid, type CtaCardGridProps, type CtaCardItem };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ElementType } from 'react';
|
|
3
|
-
|
|
4
|
-
interface CtaCardItem {
|
|
5
|
-
icon: ElementType;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
links: {
|
|
9
|
-
label: string;
|
|
10
|
-
href: string;
|
|
11
|
-
}[];
|
|
12
|
-
href: string;
|
|
13
|
-
gradient: string;
|
|
14
|
-
iconGradient: string;
|
|
15
|
-
}
|
|
16
|
-
interface CtaCardGridProps {
|
|
17
|
-
cards: CtaCardItem[];
|
|
18
|
-
}
|
|
19
|
-
declare function CtaCardGrid({ cards }: CtaCardGridProps): react_jsx_runtime.JSX.Element;
|
|
20
|
-
|
|
21
|
-
export { CtaCardGrid, type CtaCardGridProps, type CtaCardItem };
|
|
@@ -1,35 +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
|
-
function CtaCard({ icon: Icon, title, description, links, href, gradient, iconGradient }) {
|
|
8
|
-
const t = useT();
|
|
9
|
-
return /* @__PURE__ */ jsxs("div", { className: "bento-cell p-6 sm:p-8 flex flex-col gap-6 relative overflow-hidden group hover:border-border/80 transition-colors", children: [
|
|
10
|
-
/* @__PURE__ */ jsx("div", { className: `absolute inset-0 opacity-[0.03] group-hover:opacity-[0.06] transition-opacity ${gradient} pointer-events-none` }),
|
|
11
|
-
/* @__PURE__ */ jsxs("div", { className: "relative z-10 space-y-3", children: [
|
|
12
|
-
/* @__PURE__ */ jsx("div", { className: cn("h-11 w-11 rounded-2xl flex items-center justify-center shadow-lg", iconGradient), children: /* @__PURE__ */ jsx(Icon, { className: "h-5 w-5 text-white" }) }),
|
|
13
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
14
|
-
/* @__PURE__ */ jsx("h3", { className: "text-xl font-black", children: title }),
|
|
15
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground leading-relaxed mt-1", children: description })
|
|
16
|
-
] })
|
|
17
|
-
] }),
|
|
18
|
-
/* @__PURE__ */ jsx("ul", { className: "relative z-10 space-y-2", children: links.map((link) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Link, { href: link.href, className: "flex items-center gap-2.5 text-sm text-muted-foreground hover:text-foreground transition-colors group/link", children: [
|
|
19
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5 text-primary opacity-0 group-hover/link:opacity-100 transition-opacity shrink-0 -ml-0.5" }),
|
|
20
|
-
link.label
|
|
21
|
-
] }) }, link.href)) }),
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "relative z-10 mt-auto", children: /* @__PURE__ */ jsxs(Link, { href, className: "inline-flex items-center gap-1.5 text-sm border border-border rounded-md px-3 py-1.5 hover:border-primary/40 transition-colors group-hover:border-primary/40", children: [
|
|
23
|
-
t("Explore {title}", { title }),
|
|
24
|
-
" ",
|
|
25
|
-
/* @__PURE__ */ jsx(ArrowRight, { className: "h-3.5 w-3.5 ml-1.5" })
|
|
26
|
-
] }) })
|
|
27
|
-
] });
|
|
28
|
-
}
|
|
29
|
-
function CtaCardGrid({ cards }) {
|
|
30
|
-
return /* @__PURE__ */ jsx("section", { className: "space-y-5", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 gap-4", children: cards.map((card) => /* @__PURE__ */ jsx(CtaCard, { ...card }, card.title)) }) });
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
CtaCardGrid
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=cta-card-grid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/cta-card-grid.tsx"],"sourcesContent":["\"use client\";\n\nimport type { ElementType } from \"react\";\nimport Link from \"./link.js\";\nimport { ArrowRight } from \"lucide-react\";\nimport { cn } from \"../utils/cn.js\";\nimport { useT } from \"../i18n/provider.js\";\n\nexport interface CtaCardItem {\n icon: ElementType;\n title: string;\n description: string;\n links: { label: string; href: string }[];\n href: string;\n\n gradient: string;\n\n iconGradient: string;\n}\n\nexport interface CtaCardGridProps {\n cards: CtaCardItem[];\n}\n\nfunction CtaCard({ icon: Icon, title, description, links, href, gradient, iconGradient }: CtaCardItem) {\n const t = useT();\n return (\n <div className=\"bento-cell p-6 sm:p-8 flex flex-col gap-6 relative overflow-hidden group hover:border-border/80 transition-colors\">\n <div className={`absolute inset-0 opacity-[0.03] group-hover:opacity-[0.06] transition-opacity ${gradient} pointer-events-none`} />\n\n <div className=\"relative z-10 space-y-3\">\n <div className={cn(\"h-11 w-11 rounded-2xl flex items-center justify-center shadow-lg\", iconGradient)}>\n <Icon className=\"h-5 w-5 text-white\" />\n </div>\n <div>\n <h3 className=\"text-xl font-black\">{title}</h3>\n <p className=\"text-sm text-muted-foreground leading-relaxed mt-1\">{description}</p>\n </div>\n </div>\n\n <ul className=\"relative z-10 space-y-2\">\n {links.map((link) => (\n <li key={link.href}>\n <Link href={link.href} className=\"flex items-center gap-2.5 text-sm text-muted-foreground hover:text-foreground transition-colors group/link\">\n <ArrowRight className=\"h-3.5 w-3.5 text-primary opacity-0 group-hover/link:opacity-100 transition-opacity shrink-0 -ml-0.5\" />\n {link.label}\n </Link>\n </li>\n ))}\n </ul>\n\n <div className=\"relative z-10 mt-auto\">\n <Link href={href} className=\"inline-flex items-center gap-1.5 text-sm border border-border rounded-md px-3 py-1.5 hover:border-primary/40 transition-colors group-hover:border-primary/40\">{t(\"Explore {title}\", { title })} <ArrowRight className=\"h-3.5 w-3.5 ml-1.5\" />\n </Link>\n </div>\n </div>\n );\n}\n\nexport function CtaCardGrid({ cards }: CtaCardGridProps) {\n return (\n <section className=\"space-y-5\">\n <div className=\"grid grid-cols-1 sm:grid-cols-2 gap-4\">\n {cards.map((card) => (\n <CtaCard key={card.title} {...card} />\n ))}\n </div>\n </section>\n );\n}\n"],"mappings":";AA4BM,cAME,YANF;AAzBN,OAAO,UAAU;AACjB,SAAS,kBAAkB;AAC3B,SAAS,UAAU;AACnB,SAAS,YAAY;AAkBrB,SAAS,QAAQ,EAAE,MAAM,MAAM,OAAO,aAAa,OAAO,MAAM,UAAU,aAAa,GAAgB;AACrG,QAAM,IAAI,KAAK;AACf,SACE,qBAAC,SAAI,WAAU,qHACb;AAAA,wBAAC,SAAI,WAAW,iFAAiF,QAAQ,wBAAwB;AAAA,IAEjI,qBAAC,SAAI,WAAU,2BACb;AAAA,0BAAC,SAAI,WAAW,GAAG,oEAAoE,YAAY,GACjG,8BAAC,QAAK,WAAU,sBAAqB,GACvC;AAAA,MACA,qBAAC,SACC;AAAA,4BAAC,QAAG,WAAU,sBAAsB,iBAAM;AAAA,QAC1C,oBAAC,OAAE,WAAU,sDAAsD,uBAAY;AAAA,SACjF;AAAA,OACF;AAAA,IAEA,oBAAC,QAAG,WAAU,2BACX,gBAAM,IAAI,CAAC,SACV,oBAAC,QACC,+BAAC,QAAK,MAAM,KAAK,MAAM,WAAU,8GAC/B;AAAA,0BAAC,cAAW,WAAU,uGAAsG;AAAA,MAC3H,KAAK;AAAA,OACR,KAJO,KAAK,IAKd,CACD,GACH;AAAA,IAEA,oBAAC,SAAI,WAAU,yBACb,+BAAC,QAAK,MAAY,WAAU,gKAAgK;AAAA,QAAE,mBAAmB,EAAE,MAAM,CAAC;AAAA,MAAE;AAAA,MAAC,oBAAC,cAAW,WAAU,sBAAqB;AAAA,OACxQ,GACF;AAAA,KACF;AAEJ;AAEO,SAAS,YAAY,EAAE,MAAM,GAAqB;AACvD,SACE,oBAAC,aAAQ,WAAU,aACjB,8BAAC,SAAI,WAAU,yCACZ,gBAAM,IAAI,CAAC,SACV,oBAAC,WAA0B,GAAG,QAAhB,KAAK,KAAiB,CACrC,GACH,GACF;AAEJ;","names":[]}
|
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
"use client";
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
var featured_carousel_exports = {};
|
|
21
|
-
__export(featured_carousel_exports, {
|
|
22
|
-
FeaturedCarousel: () => FeaturedCarousel,
|
|
23
|
-
FeaturedCarouselSkeleton: () => FeaturedCarouselSkeleton
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(featured_carousel_exports);
|
|
26
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
var import_react = require("react");
|
|
28
|
-
var import_framer_motion = require("framer-motion");
|
|
29
|
-
var import_lucide_react = require("lucide-react");
|
|
30
|
-
var import_motion_primitives = require("./motion-primitives.js");
|
|
31
|
-
var import_section_heading = require("./section-heading.js");
|
|
32
|
-
var import_format = require("../utils/format.js");
|
|
33
|
-
var import_use_image_url = require("../utils/use-image-url.js");
|
|
34
|
-
var import_provider = require("../i18n/provider.js");
|
|
35
|
-
var import_translate = require("../i18n/translate.js");
|
|
36
|
-
function Slide({ collection, href }) {
|
|
37
|
-
const t = (0, import_provider.useT)();
|
|
38
|
-
const resolveImage = (0, import_use_image_url.useImageUrl)();
|
|
39
|
-
const name = collection.name ?? "Featured Collection";
|
|
40
|
-
const image = resolveImage(collection.image);
|
|
41
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "relative w-full h-full", children: [
|
|
42
|
-
image ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
|
-
"img",
|
|
44
|
-
{
|
|
45
|
-
src: image,
|
|
46
|
-
alt: name,
|
|
47
|
-
loading: "lazy",
|
|
48
|
-
className: "absolute inset-0 w-full h-full object-cover"
|
|
49
|
-
}
|
|
50
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-gradient-to-br from-brand-purple/30 via-brand-blue/20 to-brand-navy/40" }),
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-gradient-to-t from-black/85 via-black/30 to-black/10" }),
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "absolute inset-0 bg-gradient-to-r from-black/50 via-transparent to-transparent" }),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "absolute bottom-0 left-0 right-0 p-5 sm:p-8 lg:p-10", children: [
|
|
54
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { className: "text-2xl sm:text-3xl lg:text-4xl font-black text-white leading-tight mb-3 max-w-lg", children: name }),
|
|
55
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-4 mb-5", children: [
|
|
56
|
-
collection.totalSupply != null && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-sm text-white/70", children: [
|
|
57
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-bold text-white", children: collection.totalSupply }),
|
|
58
|
-
" ",
|
|
59
|
-
t("items")
|
|
60
|
-
] }),
|
|
61
|
-
collection.floorPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "text-sm text-white/70", children: [
|
|
62
|
-
t("Floor"),
|
|
63
|
-
" ",
|
|
64
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "font-bold text-brand-orange", children: (0, import_format.formatDisplayPrice)(collection.floorPrice) })
|
|
65
|
-
] })
|
|
66
|
-
] }),
|
|
67
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
68
|
-
"a",
|
|
69
|
-
{
|
|
70
|
-
href,
|
|
71
|
-
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",
|
|
72
|
-
children: [
|
|
73
|
-
t("View collection"),
|
|
74
|
-
" ",
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ArrowRight, { className: "h-3.5 w-3.5" })
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
)
|
|
79
|
-
] })
|
|
80
|
-
] });
|
|
81
|
-
}
|
|
82
|
-
function FeaturedCarouselSkeleton() {
|
|
83
|
-
const t = (0, import_provider.useT)();
|
|
84
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-4", children: [
|
|
85
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section_heading.SectionHeading, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sparkles, {}), title: t("Featured collections"), href: "/collections", linkLabel: (0, import_translate.msg)("View all") }),
|
|
86
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "-mx-4 sm:-mx-6 lg:-mx-8 aspect-[16/7] sm:aspect-[21/9] bg-muted animate-pulse" })
|
|
87
|
-
] }) });
|
|
88
|
-
}
|
|
89
|
-
function FeaturedCarousel({
|
|
90
|
-
collections,
|
|
91
|
-
isLoading,
|
|
92
|
-
getHref,
|
|
93
|
-
allCollectionsHref = "/collections"
|
|
94
|
-
}) {
|
|
95
|
-
const t = (0, import_provider.useT)();
|
|
96
|
-
const [active, setActive] = (0, import_react.useState)(0);
|
|
97
|
-
const [paused, setPaused] = (0, import_react.useState)(false);
|
|
98
|
-
const total = collections.length;
|
|
99
|
-
const next = (0, import_react.useCallback)(() => setActive((p) => (p + 1) % total), [total]);
|
|
100
|
-
const prev = (0, import_react.useCallback)(() => setActive((p) => (p - 1 + total) % total), [total]);
|
|
101
|
-
(0, import_react.useEffect)(() => {
|
|
102
|
-
setActive(0);
|
|
103
|
-
}, [total]);
|
|
104
|
-
(0, import_react.useEffect)(() => {
|
|
105
|
-
if (paused || total <= 1) return;
|
|
106
|
-
const id = setInterval(next, 6e3);
|
|
107
|
-
return () => clearInterval(id);
|
|
108
|
-
}, [next, paused, total]);
|
|
109
|
-
if (isLoading) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FeaturedCarouselSkeleton, {});
|
|
110
|
-
if (total === 0) return null;
|
|
111
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_motion_primitives.FadeIn, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "space-y-4", children: [
|
|
112
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_section_heading.SectionHeading, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Sparkles, {}), title: t("Featured collections"), href: allCollectionsHref, linkLabel: (0, import_translate.msg)("View all") }),
|
|
113
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
114
|
-
"div",
|
|
115
|
-
{
|
|
116
|
-
className: "-mx-4 sm:-mx-6 lg:-mx-8 relative overflow-hidden aspect-[16/7] sm:aspect-[21/9] bg-muted",
|
|
117
|
-
onMouseEnter: () => setPaused(true),
|
|
118
|
-
onMouseLeave: () => setPaused(false),
|
|
119
|
-
children: [
|
|
120
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_framer_motion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
121
|
-
import_framer_motion.motion.div,
|
|
122
|
-
{
|
|
123
|
-
className: "absolute inset-0",
|
|
124
|
-
initial: { opacity: 0, x: 40 },
|
|
125
|
-
animate: { opacity: 1, x: 0 },
|
|
126
|
-
exit: { opacity: 0, x: -40 },
|
|
127
|
-
transition: { duration: 0.45, ease: import_motion_primitives.EASE_OUT },
|
|
128
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Slide, { collection: collections[active], href: getHref(collections[active]) })
|
|
129
|
-
},
|
|
130
|
-
active
|
|
131
|
-
) }),
|
|
132
|
-
total > 1 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
133
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
134
|
-
"button",
|
|
135
|
-
{
|
|
136
|
-
onClick: prev,
|
|
137
|
-
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",
|
|
138
|
-
"aria-label": t("Previous"),
|
|
139
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.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__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronLeft, { className: "h-4 w-4" }) })
|
|
140
|
-
}
|
|
141
|
-
),
|
|
142
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
143
|
-
"button",
|
|
144
|
-
{
|
|
145
|
-
onClick: next,
|
|
146
|
-
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",
|
|
147
|
-
"aria-label": t("Next"),
|
|
148
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.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__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronRight, { className: "h-4 w-4" }) })
|
|
149
|
-
}
|
|
150
|
-
)
|
|
151
|
-
] }),
|
|
152
|
-
total > 1 && /* @__PURE__ */ (0, import_jsx_runtime.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__ */ (0, import_jsx_runtime.jsx)(
|
|
153
|
-
"button",
|
|
154
|
-
{
|
|
155
|
-
onClick: () => setActive(i),
|
|
156
|
-
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"}`,
|
|
157
|
-
"aria-label": `Go to slide ${i + 1}`
|
|
158
|
-
},
|
|
159
|
-
i
|
|
160
|
-
)) })
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
)
|
|
164
|
-
] }) });
|
|
165
|
-
}
|
|
166
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
167
|
-
0 && (module.exports = {
|
|
168
|
-
FeaturedCarousel,
|
|
169
|
-
FeaturedCarouselSkeleton
|
|
170
|
-
});
|
|
171
|
-
//# sourceMappingURL=featured-carousel.cjs.map
|