@bergetai/ui 0.1.86 → 0.1.88
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/{chunk-YEGBDRHW.js → chunk-SJTRISLQ.js} +2 -2
- package/dist/chunk-SJTRISLQ.js.map +1 -0
- package/dist/index.cjs +30 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +30 -27
- package/dist/index.js.map +1 -1
- package/dist/shiki.cjs +1 -1
- package/dist/shiki.cjs.map +1 -1
- package/dist/shiki.js +1 -1
- package/dist/styles/index.css +11 -15
- package/package.json +1 -1
- package/dist/chunk-YEGBDRHW.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -43,7 +43,7 @@ declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$
|
|
|
43
43
|
|
|
44
44
|
type PrimitiveButtonProps = React$1.ComponentProps<typeof Button$1>;
|
|
45
45
|
/** Custom variants that extend the upstream shadcn primitive. */
|
|
46
|
-
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | '
|
|
46
|
+
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
47
47
|
interface ButtonProps extends Omit<PrimitiveButtonProps, 'variant'> {
|
|
48
48
|
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
49
|
variant?: CustomVariant;
|
package/dist/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ declare const Button$1: React$1.ForwardRefExoticComponent<ButtonProps$1 & React$
|
|
|
43
43
|
|
|
44
44
|
type PrimitiveButtonProps = React$1.ComponentProps<typeof Button$1>;
|
|
45
45
|
/** Custom variants that extend the upstream shadcn primitive. */
|
|
46
|
-
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | '
|
|
46
|
+
type CustomVariant = 'default' | 'primary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
47
47
|
interface ButtonProps extends Omit<PrimitiveButtonProps, 'variant'> {
|
|
48
48
|
/** Visual style variant. `primary` is Berget-specific. */
|
|
49
49
|
variant?: CustomVariant;
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getHighlighter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SJTRISLQ.js";
|
|
4
4
|
|
|
5
5
|
// src/components/theme-provider/ThemeProvider.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -205,7 +205,7 @@ import { cva } from "class-variance-authority";
|
|
|
205
205
|
import { Slot } from "@radix-ui/react-slot";
|
|
206
206
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
207
207
|
var buttonVariants = cva(
|
|
208
|
-
"inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
208
|
+
"inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
209
209
|
{
|
|
210
210
|
variants: {
|
|
211
211
|
variant: {
|
|
@@ -248,8 +248,6 @@ function brandVariantClasses(variant) {
|
|
|
248
248
|
switch (variant) {
|
|
249
249
|
case "primary":
|
|
250
250
|
return "bg-berget-button-primary-bg text-berget-button-primary-fg shadow-lg hover:bg-berget-button-primary-bg/90 hover:shadow-xl";
|
|
251
|
-
case "secondary":
|
|
252
|
-
return "bg-berget-button-secondary-bg text-berget-button-secondary-fg shadow hover:bg-berget-button-secondary-bg/80 hover:shadow-lg";
|
|
253
251
|
case "destructive":
|
|
254
252
|
return "bg-berget-button-destructive-bg text-berget-button-destructive-fg shadow-sm hover:bg-berget-button-destructive-bg/80 hover:shadow";
|
|
255
253
|
case "outline":
|
|
@@ -266,6 +264,7 @@ function brandVariantClasses(variant) {
|
|
|
266
264
|
function primitiveVariant(variant) {
|
|
267
265
|
switch (variant) {
|
|
268
266
|
case "primary":
|
|
267
|
+
case "destructive":
|
|
269
268
|
return "ghost";
|
|
270
269
|
default:
|
|
271
270
|
return variant;
|
|
@@ -355,7 +354,7 @@ var typographyVariants = cva2("", {
|
|
|
355
354
|
color: {
|
|
356
355
|
default: "text-berget-foreground",
|
|
357
356
|
muted: "text-berget-muted-foreground",
|
|
358
|
-
dim: "text-berget-foreground/
|
|
357
|
+
dim: "text-berget-foreground/65"
|
|
359
358
|
}
|
|
360
359
|
},
|
|
361
360
|
defaultVariants: {
|
|
@@ -687,7 +686,7 @@ var Checkbox = React13.forwardRef(({ className, children, ...props }, ref) => /*
|
|
|
687
686
|
{
|
|
688
687
|
ref,
|
|
689
688
|
className: cn(
|
|
690
|
-
"peer ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
689
|
+
"peer cursor-pointer ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
691
690
|
className
|
|
692
691
|
),
|
|
693
692
|
...props,
|
|
@@ -880,7 +879,7 @@ var SelectTrigger = React16.forwardRef(({ className, children, ...props }, ref)
|
|
|
880
879
|
{
|
|
881
880
|
ref,
|
|
882
881
|
className: cn(
|
|
883
|
-
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
882
|
+
"flex h-10 w-full cursor-pointer items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
884
883
|
className
|
|
885
884
|
),
|
|
886
885
|
...props,
|
|
@@ -1302,26 +1301,29 @@ function FieldGroup({ className, ...props }) {
|
|
|
1302
1301
|
}
|
|
1303
1302
|
);
|
|
1304
1303
|
}
|
|
1305
|
-
var fieldVariants = cva12(
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
"flex-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1304
|
+
var fieldVariants = cva12(
|
|
1305
|
+
"group/field data-[invalid=true]:text-berget-destructive-foreground flex w-full gap-3",
|
|
1306
|
+
{
|
|
1307
|
+
variants: {
|
|
1308
|
+
orientation: {
|
|
1309
|
+
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
1310
|
+
horizontal: [
|
|
1311
|
+
"flex-row items-center",
|
|
1312
|
+
"[&>[data-slot=field-label]]:flex-auto",
|
|
1313
|
+
"has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
|
|
1314
|
+
],
|
|
1315
|
+
responsive: [
|
|
1316
|
+
"@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
|
|
1317
|
+
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
1318
|
+
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
1319
|
+
]
|
|
1320
|
+
}
|
|
1321
|
+
},
|
|
1322
|
+
defaultVariants: {
|
|
1323
|
+
orientation: "vertical"
|
|
1319
1324
|
}
|
|
1320
|
-
},
|
|
1321
|
-
defaultVariants: {
|
|
1322
|
-
orientation: "vertical"
|
|
1323
1325
|
}
|
|
1324
|
-
|
|
1326
|
+
);
|
|
1325
1327
|
function Field({
|
|
1326
1328
|
className,
|
|
1327
1329
|
orientation = "vertical",
|
|
@@ -1446,7 +1448,7 @@ function FieldError({
|
|
|
1446
1448
|
{
|
|
1447
1449
|
role: "alert",
|
|
1448
1450
|
"data-slot": "field-error",
|
|
1449
|
-
className: cn("text-destructive text-sm font-normal", className),
|
|
1451
|
+
className: cn("text-berget-destructive-foreground text-sm font-normal", className),
|
|
1450
1452
|
...props,
|
|
1451
1453
|
children: content
|
|
1452
1454
|
}
|
|
@@ -1495,7 +1497,7 @@ Icon2.displayName = "Icon";
|
|
|
1495
1497
|
import { ExternalLink } from "lucide-react";
|
|
1496
1498
|
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1497
1499
|
var linkVariants = cva13(
|
|
1498
|
-
"inline-flex items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
1500
|
+
"inline-flex cursor-pointer items-center gap-2 transition-all duration-200 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
|
1499
1501
|
{
|
|
1500
1502
|
variants: {
|
|
1501
1503
|
variant: {
|
|
@@ -1920,6 +1922,7 @@ var LanguageSelect = React30.forwardRef(({ className, options, value, onValueCha
|
|
|
1920
1922
|
SelectPrimitive2.Trigger,
|
|
1921
1923
|
{
|
|
1922
1924
|
ref,
|
|
1925
|
+
"aria-label": "Select language",
|
|
1923
1926
|
className: cn(
|
|
1924
1927
|
// Base styles
|
|
1925
1928
|
"h-8 w-8 p-0 rounded-full",
|