@bergetai/ui 0.8.0 → 0.9.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/index.cjs +21 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -5
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +12 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -59,8 +59,8 @@ interface ButtonProps extends Omit<React$1.ComponentProps<typeof Button$1>, 'var
|
|
|
59
59
|
declare function Button({ className, variant, size, asChild, width, type, ref, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
60
60
|
|
|
61
61
|
declare const typographyVariants: (props?: ({
|
|
62
|
-
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
63
|
-
color?: "default" | "muted" | "dim" | null | undefined;
|
|
62
|
+
variant?: "small" | "caption" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "large" | "mono" | null | undefined;
|
|
63
|
+
color?: "default" | "primary" | "muted" | "dim" | null | undefined;
|
|
64
64
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
65
|
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariants> {
|
|
66
66
|
as?: React$1.ElementType;
|
package/dist/index.d.ts
CHANGED
|
@@ -59,8 +59,8 @@ interface ButtonProps extends Omit<React$1.ComponentProps<typeof Button$1>, 'var
|
|
|
59
59
|
declare function Button({ className, variant, size, asChild, width, type, ref, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
60
60
|
|
|
61
61
|
declare const typographyVariants: (props?: ({
|
|
62
|
-
variant?: "small" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "large" | "mono" | null | undefined;
|
|
63
|
-
color?: "default" | "muted" | "dim" | null | undefined;
|
|
62
|
+
variant?: "small" | "caption" | "xs" | "body" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "hero" | "large" | "mono" | null | undefined;
|
|
63
|
+
color?: "default" | "primary" | "muted" | "dim" | null | undefined;
|
|
64
64
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
65
65
|
interface TypographyProps extends Omit<React$1.HTMLAttributes<HTMLElement>, 'color'>, VariantProps<typeof typographyVariants> {
|
|
66
66
|
as?: React$1.ElementType;
|
package/dist/index.js
CHANGED
|
@@ -102,7 +102,16 @@ var twMerge = extendTailwindMerge({
|
|
|
102
102
|
"rounded-berget-lg",
|
|
103
103
|
"rounded-berget-full"
|
|
104
104
|
],
|
|
105
|
-
"font-size": [
|
|
105
|
+
"font-size": [
|
|
106
|
+
"text-h1",
|
|
107
|
+
"text-h2",
|
|
108
|
+
"text-h3",
|
|
109
|
+
"text-h4",
|
|
110
|
+
"text-p",
|
|
111
|
+
"text-mono",
|
|
112
|
+
"text-hero",
|
|
113
|
+
"text-caption"
|
|
114
|
+
]
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
});
|
|
@@ -324,6 +333,8 @@ var typographyVariants = cva2("", {
|
|
|
324
333
|
variant: {
|
|
325
334
|
// Fluid heading scale — use @theme tokens (clamp-based, 390px → 1440px)
|
|
326
335
|
h1: "text-h1 font-h1 leading-h1 tracking-h1 text-balance",
|
|
336
|
+
// Hero display — from landing-page /dedicated-inference hero (Ovo, 400, tight display leading)
|
|
337
|
+
hero: "text-hero font-hero leading-hero tracking-hero text-balance font-normal [font-feature-settings:'normal']",
|
|
327
338
|
h2: "text-h2 font-h2 leading-h2 tracking-h2 text-balance",
|
|
328
339
|
h3: "text-h3 font-h3 leading-h3 tracking-h3 text-balance",
|
|
329
340
|
h4: "text-h4 font-h4 leading-h4 tracking-h4 text-balance",
|
|
@@ -334,6 +345,8 @@ var typographyVariants = cva2("", {
|
|
|
334
345
|
body: "text-p font-p leading-p text-pretty",
|
|
335
346
|
small: "text-sm font-sm leading-sm text-pretty",
|
|
336
347
|
xs: "text-xs font-xs leading-xs text-pretty",
|
|
348
|
+
// Caption / overline / eyebrow (DM Sans, Semibold, uppercase)
|
|
349
|
+
caption: "text-caption font-caption leading-caption tracking-caption text-pretty font-semibold uppercase",
|
|
337
350
|
// Monospaced — use @theme token
|
|
338
351
|
mono: "text-mono font-mono leading-mono text-pretty",
|
|
339
352
|
// Inline code / spec labels
|
|
@@ -342,7 +355,8 @@ var typographyVariants = cva2("", {
|
|
|
342
355
|
color: {
|
|
343
356
|
default: "text-berget-foreground",
|
|
344
357
|
muted: "text-berget-muted-foreground",
|
|
345
|
-
dim: "text-berget-foreground/65"
|
|
358
|
+
dim: "text-berget-foreground/65",
|
|
359
|
+
primary: "text-berget-primary"
|
|
346
360
|
}
|
|
347
361
|
},
|
|
348
362
|
defaultVariants: {
|
|
@@ -351,6 +365,7 @@ var typographyVariants = cva2("", {
|
|
|
351
365
|
}
|
|
352
366
|
});
|
|
353
367
|
var defaultElementMap = {
|
|
368
|
+
hero: "h1",
|
|
354
369
|
h1: "h1",
|
|
355
370
|
h2: "h2",
|
|
356
371
|
h3: "h3",
|
|
@@ -360,6 +375,7 @@ var defaultElementMap = {
|
|
|
360
375
|
body: "p",
|
|
361
376
|
small: "p",
|
|
362
377
|
xs: "p",
|
|
378
|
+
caption: "span",
|
|
363
379
|
mono: "p",
|
|
364
380
|
code: "span"
|
|
365
381
|
};
|
|
@@ -466,11 +482,11 @@ function CardFooter({ className, ...props }) {
|
|
|
466
482
|
|
|
467
483
|
// src/components/card/Card.tsx
|
|
468
484
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
469
|
-
var cardVariants = cva3("rounded-berget-sm", {
|
|
485
|
+
var cardVariants = cva3("rounded-berget-sm ring-0", {
|
|
470
486
|
variants: {
|
|
471
487
|
variant: {
|
|
472
|
-
outlined: "bg-transparent border border-berget-border",
|
|
473
|
-
filled: "bg-berget-card-filled-bg border border-berget-border"
|
|
488
|
+
outlined: "bg-transparent border border-berget-border-subtle",
|
|
489
|
+
filled: "bg-berget-card-filled-bg border border-berget-border-subtle"
|
|
474
490
|
},
|
|
475
491
|
padding: {
|
|
476
492
|
none: "p-0",
|