@bergetai/ui 0.1.87 → 0.1.89

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.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' | 'secondary' | 'ghost' | 'link';
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' | 'secondary' | 'ghost' | 'link';
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-YEGBDRHW.js";
3
+ } from "./chunk-SJTRISLQ.js";
4
4
 
5
5
  // src/components/theme-provider/ThemeProvider.tsx
6
6
  import * as React from "react";
@@ -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/50"
357
+ dim: "text-berget-foreground/65"
359
358
  }
360
359
  },
361
360
  defaultVariants: {
@@ -1302,26 +1301,29 @@ function FieldGroup({ className, ...props }) {
1302
1301
  }
1303
1302
  );
1304
1303
  }
1305
- var fieldVariants = cva12("group/field data-[invalid=true]:text-destructive flex w-full gap-3", {
1306
- variants: {
1307
- orientation: {
1308
- vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
1309
- horizontal: [
1310
- "flex-row items-center",
1311
- "[&>[data-slot=field-label]]:flex-auto",
1312
- "has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
1313
- ],
1314
- responsive: [
1315
- "@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
1316
- "@md/field-group:[&>[data-slot=field-label]]:flex-auto",
1317
- "@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
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
  }
@@ -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",