@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 +8 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -14
- package/dist/index.d.ts +1 -14
- package/dist/index.js +8 -69
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -513,19 +513,6 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
513
513
|
*/
|
|
514
514
|
declare const HeroBlock: React$1.ForwardRefExoticComponent<HeroBlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
515
515
|
|
|
516
|
-
declare const statCardVariants: (props?: ({
|
|
517
|
-
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
518
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
519
|
-
interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statCardVariants> {
|
|
520
|
-
icon?: LucideIcon;
|
|
521
|
-
iconColor?: string;
|
|
522
|
-
title: string;
|
|
523
|
-
description: string;
|
|
524
|
-
stats: string;
|
|
525
|
-
badge?: string;
|
|
526
|
-
}
|
|
527
|
-
declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
528
|
-
|
|
529
516
|
interface CodeBlockProps {
|
|
530
517
|
code: string;
|
|
531
518
|
language?: string;
|
|
@@ -544,4 +531,4 @@ interface TerminalExample {
|
|
|
544
531
|
}[];
|
|
545
532
|
}
|
|
546
533
|
|
|
547
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, BergetLogo as BergetLogotype, type BergetLogoProps as BergetLogotypeProps, BergetLogo as BergetSymbol, type BergetLogoProps as BergetSymbolProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, FeatureCard, type FeatureCardProps, FeatureCards, type FeatureCardsProps, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Header, type HeaderLink, type HeaderProps, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps,
|
|
534
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, BergetLogo as BergetLogotype, type BergetLogoProps as BergetLogotypeProps, BergetLogo as BergetSymbol, type BergetLogoProps as BergetSymbolProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, FeatureCard, type FeatureCardProps, FeatureCards, type FeatureCardsProps, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Header, type HeaderLink, type HeaderProps, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, type TerminalExample, TextArea, type TextAreaProps, Typography, type TypographyProps, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, gridVariants, linkVariants, sectionVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants };
|
package/dist/index.d.ts
CHANGED
|
@@ -513,19 +513,6 @@ interface HeroBlockProps extends React$1.HTMLAttributes<HTMLDivElement>, Variant
|
|
|
513
513
|
*/
|
|
514
514
|
declare const HeroBlock: React$1.ForwardRefExoticComponent<HeroBlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
515
515
|
|
|
516
|
-
declare const statCardVariants: (props?: ({
|
|
517
|
-
variant?: "highlight" | "glass" | "solid" | null | undefined;
|
|
518
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
519
|
-
interface StatCardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof statCardVariants> {
|
|
520
|
-
icon?: LucideIcon;
|
|
521
|
-
iconColor?: string;
|
|
522
|
-
title: string;
|
|
523
|
-
description: string;
|
|
524
|
-
stats: string;
|
|
525
|
-
badge?: string;
|
|
526
|
-
}
|
|
527
|
-
declare const StatCard: React$1.ForwardRefExoticComponent<StatCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
528
|
-
|
|
529
516
|
interface CodeBlockProps {
|
|
530
517
|
code: string;
|
|
531
518
|
language?: string;
|
|
@@ -544,4 +531,4 @@ interface TerminalExample {
|
|
|
544
531
|
}[];
|
|
545
532
|
}
|
|
546
533
|
|
|
547
|
-
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, BergetLogo as BergetLogotype, type BergetLogoProps as BergetLogotypeProps, BergetLogo as BergetSymbol, type BergetLogoProps as BergetSymbolProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, FeatureCard, type FeatureCardProps, FeatureCards, type FeatureCardsProps, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Header, type HeaderLink, type HeaderProps, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps,
|
|
534
|
+
export { Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, Badge, type BadgeProps, BergetLogo, type BergetLogoProps, BergetLogo as BergetLogotype, type BergetLogoProps as BergetLogotypeProps, BergetLogo as BergetSymbol, type BergetLogoProps as BergetSymbolProps, Box, type BoxProps, type SpacingScale as BoxSpacingScale, Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, CodeBlock, type CodeBlockProps, Container, type ContainerProps, FeatureCard, type FeatureCardProps, FeatureCards, type FeatureCardsProps, FeatureList, type FeatureListProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Grid, type GridColsScale, type GridProps, type GridRowsScale, type SpacingScale$1 as GridSpacingScale, Header, type HeaderLink, type HeaderProps, HeroBlock, type HeroBlockProps, Icon, type IconProps, Input, type InputProps, Label, LanguageSelect, type LanguageSelectOption, type LanguageSelectProps, Link, type LinkProps, List, ListHeader, type ListHeaderProps, ListItem, type ListItemProps, type ListProps, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectProps, Switch, type SwitchProps, type TerminalExample, TextArea, type TextAreaProps, Typography, type TypographyProps, alertVariants, badgeVariants, boxVariants, buttonVariants, cardVariants, checkboxVariants, containerVariants, gridVariants, linkVariants, sectionVariants, selectVariants, switchRootVariants, switchThumbVariants, textAreaVariants, typographyVariants };
|
package/dist/index.js
CHANGED
|
@@ -2318,70 +2318,10 @@ var HeroBlock = React33.forwardRef(
|
|
|
2318
2318
|
);
|
|
2319
2319
|
HeroBlock.displayName = "HeroBlock";
|
|
2320
2320
|
|
|
2321
|
-
// src/components/stat-card/StatCard.tsx
|
|
2322
|
-
import * as React34 from "react";
|
|
2323
|
-
import { cva as cva23 } from "class-variance-authority";
|
|
2324
|
-
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2325
|
-
var statCardVariants = cva23("", {
|
|
2326
|
-
variants: {
|
|
2327
|
-
variant: {
|
|
2328
|
-
highlight: "",
|
|
2329
|
-
glass: "",
|
|
2330
|
-
solid: ""
|
|
2331
|
-
}
|
|
2332
|
-
},
|
|
2333
|
-
defaultVariants: {
|
|
2334
|
-
variant: "highlight"
|
|
2335
|
-
}
|
|
2336
|
-
});
|
|
2337
|
-
var StatCard = React34.forwardRef(
|
|
2338
|
-
({
|
|
2339
|
-
className,
|
|
2340
|
-
variant = "highlight",
|
|
2341
|
-
icon: Icon3,
|
|
2342
|
-
iconColor,
|
|
2343
|
-
title,
|
|
2344
|
-
description,
|
|
2345
|
-
stats,
|
|
2346
|
-
badge: _badge,
|
|
2347
|
-
...props
|
|
2348
|
-
}, ref) => {
|
|
2349
|
-
return /* @__PURE__ */ jsx35(
|
|
2350
|
-
Card2,
|
|
2351
|
-
{
|
|
2352
|
-
ref,
|
|
2353
|
-
variant,
|
|
2354
|
-
className: cn("w-full py-fluid-lg px-fluid-md", className),
|
|
2355
|
-
...props,
|
|
2356
|
-
children: /* @__PURE__ */ jsxs19("div", { className: "flex flex-col h-full gap-fluid-md", children: [
|
|
2357
|
-
Icon3 && /* @__PURE__ */ jsx35("div", { className: "flex h-7 w-7 items-center justify-center", children: /* @__PURE__ */ jsx35(
|
|
2358
|
-
Icon3,
|
|
2359
|
-
{
|
|
2360
|
-
className: cn("h-7 w-7", iconColor || "text-berget-foreground"),
|
|
2361
|
-
strokeWidth: 1.5
|
|
2362
|
-
}
|
|
2363
|
-
) }),
|
|
2364
|
-
/* @__PURE__ */ jsx35(Typography, { variant: "h3", as: "h3", className: "text-berget-foreground", children: title }),
|
|
2365
|
-
/* @__PURE__ */ jsx35(
|
|
2366
|
-
Typography,
|
|
2367
|
-
{
|
|
2368
|
-
variant: "body",
|
|
2369
|
-
className: "text-berget-foreground/80 leading-relaxed flex-grow",
|
|
2370
|
-
children: description
|
|
2371
|
-
}
|
|
2372
|
-
),
|
|
2373
|
-
/* @__PURE__ */ jsx35(Typography, { variant: "small", as: "div", className: "font-medium text-berget-foreground", children: stats })
|
|
2374
|
-
] })
|
|
2375
|
-
}
|
|
2376
|
-
);
|
|
2377
|
-
}
|
|
2378
|
-
);
|
|
2379
|
-
StatCard.displayName = "StatCard";
|
|
2380
|
-
|
|
2381
2321
|
// src/components/code-block/CodeBlock.tsx
|
|
2382
2322
|
import { useState as useState2, useEffect as useEffect2, useCallback } from "react";
|
|
2383
2323
|
import { Copy, Check as Check5 } from "lucide-react";
|
|
2384
|
-
import { jsx as
|
|
2324
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
2385
2325
|
function CodeBlock({ code, language = "text", title, className }) {
|
|
2386
2326
|
const [html, setHtml] = useState2(null);
|
|
2387
2327
|
const [copied, setCopied] = useState2(false);
|
|
@@ -2397,16 +2337,16 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2397
2337
|
setCopied(true);
|
|
2398
2338
|
setTimeout(() => setCopied(false), 2e3);
|
|
2399
2339
|
}, [code]);
|
|
2400
|
-
const copyButton = /* @__PURE__ */
|
|
2340
|
+
const copyButton = /* @__PURE__ */ jsx35(
|
|
2401
2341
|
"button",
|
|
2402
2342
|
{
|
|
2403
2343
|
onClick: handleCopy,
|
|
2404
2344
|
className: "flex items-center justify-center w-6 h-6 text-berget-muted-foreground hover:text-berget-foreground transition-colors",
|
|
2405
2345
|
"aria-label": "Copy code",
|
|
2406
|
-
children: copied ? /* @__PURE__ */
|
|
2346
|
+
children: copied ? /* @__PURE__ */ jsx35(Check5, { className: "w-3.5 h-3.5" }) : /* @__PURE__ */ jsx35(Copy, { className: "w-3.5 h-3.5" })
|
|
2407
2347
|
}
|
|
2408
2348
|
);
|
|
2409
|
-
return /* @__PURE__ */
|
|
2349
|
+
return /* @__PURE__ */ jsxs19(
|
|
2410
2350
|
"div",
|
|
2411
2351
|
{
|
|
2412
2352
|
className: cn(
|
|
@@ -2414,15 +2354,15 @@ function CodeBlock({ code, language = "text", title, className }) {
|
|
|
2414
2354
|
className
|
|
2415
2355
|
),
|
|
2416
2356
|
children: [
|
|
2417
|
-
title && /* @__PURE__ */
|
|
2418
|
-
/* @__PURE__ */
|
|
2419
|
-
html ? /* @__PURE__ */
|
|
2357
|
+
title && /* @__PURE__ */ jsx35("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__ */ jsx35("span", { className: "text-berget-muted-foreground", children: title }) }),
|
|
2358
|
+
/* @__PURE__ */ jsx35("div", { className: "absolute right-2 top-2 z-10", children: copyButton }),
|
|
2359
|
+
html ? /* @__PURE__ */ jsx35(
|
|
2420
2360
|
"div",
|
|
2421
2361
|
{
|
|
2422
2362
|
className: "[&_.shiki]:!p-4 [&_.shiki]:!m-0 [&_.shiki]:overflow-x-auto [&_.shiki]:!text-sm [&_.shiki]:!leading-relaxed [&_.shiki]:bg-transparent",
|
|
2423
2363
|
dangerouslySetInnerHTML: { __html: html }
|
|
2424
2364
|
}
|
|
2425
|
-
) : /* @__PURE__ */
|
|
2365
|
+
) : /* @__PURE__ */ jsx35("pre", { className: "!p-4 !m-0 overflow-x-auto !text-sm !leading-relaxed text-berget-muted-foreground", children: /* @__PURE__ */ jsx35("code", { children: code }) })
|
|
2426
2366
|
]
|
|
2427
2367
|
}
|
|
2428
2368
|
);
|
|
@@ -2473,7 +2413,6 @@ export {
|
|
|
2473
2413
|
Section,
|
|
2474
2414
|
SectionHeader,
|
|
2475
2415
|
Select2 as Select,
|
|
2476
|
-
StatCard,
|
|
2477
2416
|
Switch,
|
|
2478
2417
|
TextArea,
|
|
2479
2418
|
Typography,
|