@bergetai/ui 0.1.79 → 0.1.80

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/index.cjs CHANGED
@@ -75,7 +75,6 @@ __export(index_exports, {
75
75
  Section: () => Section,
76
76
  SectionHeader: () => SectionHeader,
77
77
  Select: () => Select2,
78
- StatCard: () => StatCard,
79
78
  Switch: () => Switch,
80
79
  TextArea: () => TextArea,
81
80
  Typography: () => Typography,
@@ -2413,66 +2412,6 @@ var HeroBlock = React33.forwardRef(
2413
2412
  );
2414
2413
  HeroBlock.displayName = "HeroBlock";
2415
2414
 
2416
- // src/components/stat-card/StatCard.tsx
2417
- var React34 = __toESM(require("react"), 1);
2418
- var import_class_variance_authority23 = require("class-variance-authority");
2419
- var import_jsx_runtime35 = require("react/jsx-runtime");
2420
- var statCardVariants = (0, import_class_variance_authority23.cva)("", {
2421
- variants: {
2422
- variant: {
2423
- highlight: "",
2424
- glass: "",
2425
- solid: ""
2426
- }
2427
- },
2428
- defaultVariants: {
2429
- variant: "highlight"
2430
- }
2431
- });
2432
- var StatCard = React34.forwardRef(
2433
- ({
2434
- className,
2435
- variant = "highlight",
2436
- icon: Icon3,
2437
- iconColor,
2438
- title,
2439
- description,
2440
- stats,
2441
- badge: _badge,
2442
- ...props
2443
- }, ref) => {
2444
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2445
- Card2,
2446
- {
2447
- ref,
2448
- variant,
2449
- className: cn("w-full py-fluid-lg px-fluid-md", className),
2450
- ...props,
2451
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col h-full gap-fluid-md", children: [
2452
- Icon3 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex h-7 w-7 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2453
- Icon3,
2454
- {
2455
- className: cn("h-7 w-7", iconColor || "text-berget-foreground"),
2456
- strokeWidth: 1.5
2457
- }
2458
- ) }),
2459
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "h3", as: "h3", className: "text-berget-foreground", children: title }),
2460
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2461
- Typography,
2462
- {
2463
- variant: "body",
2464
- className: "text-berget-foreground/80 leading-relaxed flex-grow",
2465
- children: description
2466
- }
2467
- ),
2468
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typography, { variant: "small", as: "div", className: "font-medium text-berget-foreground", children: stats })
2469
- ] })
2470
- }
2471
- );
2472
- }
2473
- );
2474
- StatCard.displayName = "StatCard";
2475
-
2476
2415
  // src/components/code-block/CodeBlock.tsx
2477
2416
  var import_react2 = require("react");
2478
2417
  var import_lucide_react9 = require("lucide-react");
@@ -2601,7 +2540,7 @@ function getHighlighter() {
2601
2540
  }
2602
2541
 
2603
2542
  // src/components/code-block/CodeBlock.tsx
2604
- var import_jsx_runtime36 = require("react/jsx-runtime");
2543
+ var import_jsx_runtime35 = require("react/jsx-runtime");
2605
2544
  function CodeBlock({ code, language = "text", title, className }) {
2606
2545
  const [html, setHtml] = (0, import_react2.useState)(null);
2607
2546
  const [copied, setCopied] = (0, import_react2.useState)(false);
@@ -2617,16 +2556,16 @@ function CodeBlock({ code, language = "text", title, className }) {
2617
2556
  setCopied(true);
2618
2557
  setTimeout(() => setCopied(false), 2e3);
2619
2558
  }, [code]);
2620
- const copyButton = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2559
+ const copyButton = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2621
2560
  "button",
2622
2561
  {
2623
2562
  onClick: handleCopy,
2624
2563
  className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
2625
2564
  "aria-label": "Copy code",
2626
- children: copied ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react9.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react9.Copy, { className: "w-3.5 h-3.5" })
2565
+ children: copied ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react9.Check, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react9.Copy, { className: "w-3.5 h-3.5" })
2627
2566
  }
2628
2567
  );
2629
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
2568
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2630
2569
  "div",
2631
2570
  {
2632
2571
  className: cn(
@@ -2634,15 +2573,15 @@ function CodeBlock({ code, language = "text", title, className }) {
2634
2573
  className
2635
2574
  ),
2636
2575
  children: [
2637
- title && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
2638
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
2639
- html ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
2576
+ title && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "!h-10 flex items-center !px-4 !text-xs !leading-normal border-b border-berget-border bg-berget-codeblock-header-bg", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-berget-muted-foreground", children: title }) }),
2577
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
2578
+ html ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
2640
2579
  "div",
2641
2580
  {
2642
2581
  className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
2643
2582
  dangerouslySetInnerHTML: { __html: html }
2644
2583
  }
2645
- ) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("code", { children: code }) })
2584
+ ) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("code", { children: code }) })
2646
2585
  ]
2647
2586
  }
2648
2587
  );
@@ -2694,7 +2633,6 @@ function CodeBlock({ code, language = "text", title, className }) {
2694
2633
  Section,
2695
2634
  SectionHeader,
2696
2635
  Select,
2697
- StatCard,
2698
2636
  Switch,
2699
2637
  TextArea,
2700
2638
  Typography,