@shipsite.dev/components 0.2.20 → 0.2.21
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from '../lib/utils';
|
|
3
3
|
export function CalloutCard({ title, description, variant = 'info', children }) {
|
|
4
|
-
const
|
|
5
|
-
info: '
|
|
6
|
-
success: '
|
|
7
|
-
warning: '
|
|
4
|
+
const accentStyles = {
|
|
5
|
+
info: 'border-l-primary',
|
|
6
|
+
success: 'border-l-emerald-500',
|
|
7
|
+
warning: 'border-l-amber-500',
|
|
8
8
|
};
|
|
9
|
-
return (_jsx("div", { className: cn('mx-auto w-full max-w-[76rem] px-[clamp(1rem,3vw,3rem)] my-8'), children: _jsxs("div", { className: cn('rounded-xl border p-6',
|
|
9
|
+
return (_jsx("div", { className: cn('mx-auto w-full max-w-[76rem] px-[clamp(1rem,3vw,3rem)] my-8'), children: _jsxs("div", { className: cn('glass-1 rounded-xl border-l-4 p-6 shadow-xl', accentStyles[variant]), children: [_jsx("h3", { className: "font-semibold tracking-tight text-foreground mb-2", children: title }), _jsx("p", { className: "text-sm text-muted-foreground text-balance", children: description }), children] }) }));
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=CalloutCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalloutCard.js","sourceRoot":"","sources":["../../src/marketing/CalloutCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AASlC,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE,QAAQ,EAAoB;IAC9F,MAAM,
|
|
1
|
+
{"version":3,"file":"CalloutCard.js","sourceRoot":"","sources":["../../src/marketing/CalloutCard.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AASlC,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,EAAE,QAAQ,EAAoB;IAC9F,MAAM,YAAY,GAAG;QACnB,IAAI,EAAE,kBAAkB;QACxB,OAAO,EAAE,sBAAsB;QAC/B,OAAO,EAAE,oBAAoB;KAC9B,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,6DAA6D,CAAC,YAC/E,eAAK,SAAS,EAAE,EAAE,CAAC,6CAA6C,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC,aACtF,aAAI,SAAS,EAAC,mDAAmD,YAAE,KAAK,GAAM,EAC9E,YAAG,SAAS,EAAC,4CAA4C,YAAE,WAAW,GAAK,EAC1E,QAAQ,IACL,GACF,CACP,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,19 +9,19 @@ interface CalloutCardProps {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function CalloutCard({ title, description, variant = 'info', children }: CalloutCardProps) {
|
|
12
|
-
const
|
|
13
|
-
info: '
|
|
14
|
-
success: '
|
|
15
|
-
warning: '
|
|
12
|
+
const accentStyles = {
|
|
13
|
+
info: 'border-l-primary',
|
|
14
|
+
success: 'border-l-emerald-500',
|
|
15
|
+
warning: 'border-l-amber-500',
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
return (
|
|
19
19
|
<div className={cn('mx-auto w-full max-w-[76rem] px-[clamp(1rem,3vw,3rem)] my-8')}>
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
<div className={cn('glass-1 rounded-xl border-l-4 p-6 shadow-xl', accentStyles[variant])}>
|
|
21
|
+
<h3 className="font-semibold tracking-tight text-foreground mb-2">{title}</h3>
|
|
22
|
+
<p className="text-sm text-muted-foreground text-balance">{description}</p>
|
|
23
|
+
{children}
|
|
24
|
+
</div>
|
|
25
25
|
</div>
|
|
26
26
|
);
|
|
27
27
|
}
|