@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 variantStyles = {
5
- info: 'bg-primary/5 border-primary/20 dark:bg-primary/10',
6
- success: 'bg-emerald-500/10 border-emerald-500/20',
7
- warning: 'bg-amber-500/10 border-amber-500/20',
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', variantStyles[variant]), children: [_jsx("h3", { className: "font-semibold text-foreground mb-2", children: title }), _jsx("p", { className: "text-sm text-muted-foreground", children: description }), children] }) }));
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,aAAa,GAAG;QACpB,IAAI,EAAE,mDAAmD;QACzD,OAAO,EAAE,yCAAyC;QAClD,OAAO,EAAE,qCAAqC;KAC/C,CAAC;IAEF,OAAO,CACL,cAAK,SAAS,EAAE,EAAE,CAAC,6DAA6D,CAAC,YACjF,eAAK,SAAS,EAAE,EAAE,CAAC,uBAAuB,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC,aACjE,aAAI,SAAS,EAAC,oCAAoC,YAAE,KAAK,GAAM,EAC/D,YAAG,SAAS,EAAC,+BAA+B,YAAE,WAAW,GAAK,EAC7D,QAAQ,IACL,GACA,CACP,CAAC;AACJ,CAAC"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipsite.dev/components",
3
- "version": "0.2.20",
3
+ "version": "0.2.21",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shipsite/shipsite",
@@ -9,19 +9,19 @@ interface CalloutCardProps {
9
9
  }
10
10
 
11
11
  export function CalloutCard({ title, description, variant = 'info', children }: CalloutCardProps) {
12
- const variantStyles = {
13
- info: 'bg-primary/5 border-primary/20 dark:bg-primary/10',
14
- success: 'bg-emerald-500/10 border-emerald-500/20',
15
- warning: 'bg-amber-500/10 border-amber-500/20',
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
- <div className={cn('rounded-xl border p-6', variantStyles[variant])}>
21
- <h3 className="font-semibold text-foreground mb-2">{title}</h3>
22
- <p className="text-sm text-muted-foreground">{description}</p>
23
- {children}
24
- </div>
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
  }