@bergetai/ui 0.13.0 → 0.13.1
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 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -795,31 +795,25 @@ function CardFooter({ className, ...props }) {
|
|
|
795
795
|
|
|
796
796
|
// src/components/card/Card.tsx
|
|
797
797
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
798
|
-
var cardVariants = (0, import_class_variance_authority3.cva)("
|
|
798
|
+
var cardVariants = (0, import_class_variance_authority3.cva)("ring-0", {
|
|
799
799
|
variants: {
|
|
800
800
|
variant: {
|
|
801
801
|
outlined: "bg-transparent border border-berget-border-subtle",
|
|
802
802
|
filled: "bg-berget-card-filled-bg border border-berget-border-subtle"
|
|
803
|
-
},
|
|
804
|
-
padding: {
|
|
805
|
-
none: "p-0",
|
|
806
|
-
sm: "p-3 sm:p-4",
|
|
807
|
-
md: "p-4 sm:p-6",
|
|
808
|
-
lg: "p-6 sm:p-8"
|
|
809
803
|
}
|
|
810
804
|
},
|
|
811
805
|
defaultVariants: {
|
|
812
|
-
variant: "outlined"
|
|
813
|
-
padding: "md"
|
|
806
|
+
variant: "outlined"
|
|
814
807
|
}
|
|
815
808
|
});
|
|
816
809
|
var Card2 = React5.forwardRef(
|
|
817
|
-
({ className, variant,
|
|
810
|
+
({ className, variant, size, children, ...props }, ref) => {
|
|
818
811
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
819
812
|
Card,
|
|
820
813
|
{
|
|
821
814
|
ref,
|
|
822
|
-
|
|
815
|
+
size,
|
|
816
|
+
className: cn(cardVariants({ variant }), className),
|
|
823
817
|
...props,
|
|
824
818
|
children
|
|
825
819
|
}
|
|
@@ -1134,7 +1128,6 @@ var ModelCard = React9.forwardRef(
|
|
|
1134
1128
|
Card2,
|
|
1135
1129
|
{
|
|
1136
1130
|
variant: "filled",
|
|
1137
|
-
padding: "none",
|
|
1138
1131
|
className: "relative flex h-full flex-col bg-berget-card-filled-bg p-5 transition-all hover:bg-[color-mix(in_oklab,var(--berget-brand-granite-100)_5%,var(--berget-card-filled-bg))] sm:p-6",
|
|
1139
1132
|
children: [
|
|
1140
1133
|
lifecycle && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute top-0 right-0 z-10 overflow-hidden rounded-bl-berget-sm", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
@@ -1827,7 +1820,7 @@ function Input({ className, type, ...props }) {
|
|
|
1827
1820
|
type,
|
|
1828
1821
|
"data-slot": "input",
|
|
1829
1822
|
className: (0, import_cn5.cn)(
|
|
1830
|
-
"h-8 w-full min-w-0 rounded-lg border border-input bg-
|
|
1823
|
+
"h-8 w-full min-w-0 rounded-lg border border-input bg-input/30 px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
1831
1824
|
className
|
|
1832
1825
|
),
|
|
1833
1826
|
...props
|
|
@@ -3303,7 +3296,6 @@ var Checkbox2 = React18.forwardRef(
|
|
|
3303
3296
|
ref,
|
|
3304
3297
|
id: checkboxId,
|
|
3305
3298
|
disabled,
|
|
3306
|
-
nativeButton: true,
|
|
3307
3299
|
"aria-invalid": !!error,
|
|
3308
3300
|
"aria-describedby": error ? errorId : void 0,
|
|
3309
3301
|
"aria-label": ariaLabel || label || void 0,
|
|
@@ -3408,7 +3400,6 @@ var Switch = React19.forwardRef(
|
|
|
3408
3400
|
ref,
|
|
3409
3401
|
id: switchId,
|
|
3410
3402
|
disabled,
|
|
3411
|
-
nativeButton: true,
|
|
3412
3403
|
"aria-invalid": !!error,
|
|
3413
3404
|
"aria-describedby": error ? errorId : void 0,
|
|
3414
3405
|
"aria-label": ariaLabel || label || void 0,
|
|
@@ -3479,7 +3470,7 @@ function SelectTrigger({
|
|
|
3479
3470
|
"data-slot": "select-trigger",
|
|
3480
3471
|
"data-size": size,
|
|
3481
3472
|
className: (0, import_cn14.cn)(
|
|
3482
|
-
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-
|
|
3473
|
+
"flex w-fit cursor-pointer items-center justify-between gap-1.5 rounded-lg border border-input bg-input/30 py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
3483
3474
|
className
|
|
3484
3475
|
),
|
|
3485
3476
|
...props,
|
|
@@ -3727,7 +3718,7 @@ function Textarea({ className, ...props }) {
|
|
|
3727
3718
|
{
|
|
3728
3719
|
"data-slot": "textarea",
|
|
3729
3720
|
className: (0, import_cn17.cn)(
|
|
3730
|
-
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-
|
|
3721
|
+
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-input/30 px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
3731
3722
|
className
|
|
3732
3723
|
),
|
|
3733
3724
|
...props
|