@bergetai/ui 0.1.83 → 0.1.84
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 +6 -23
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -381,7 +381,7 @@ var buttonVariants2 = (0, import_class_variance_authority2.cva)(
|
|
|
381
381
|
primary: "bg-berget-button-primary-bg text-berget-button-primary-fg shadow-lg hover:bg-berget-button-primary-bg/90 hover:shadow-xl",
|
|
382
382
|
secondary: "bg-berget-button-secondary-bg text-berget-button-secondary-fg shadow hover:bg-berget-button-secondary-bg/80 hover:shadow-lg",
|
|
383
383
|
destructive: "bg-berget-button-destructive-bg text-berget-button-destructive-fg shadow-sm hover:bg-berget-button-destructive-bg/80 hover:shadow",
|
|
384
|
-
highlight: "
|
|
384
|
+
highlight: "bg-berget-background border border-berget-border-interactive text-foreground hover:bg-berget-background/80 hover:border-berget-border-interactive-elevated hover:shadow-lg",
|
|
385
385
|
icon: "!flex !flex-row !justify-center !items-center !gap-0 !p-0 !w-[44px] !h-[44px] !bg-berget-button-default-bg !text-berget-button-default-fg shadow-[0px_1px_3px_rgba(0,0,0,0.1),0px_1px_2px_-1px_rgba(0,0,0,0.1)] !rounded-full"
|
|
386
386
|
},
|
|
387
387
|
size: {
|
|
@@ -414,7 +414,6 @@ var Button2 = React5.forwardRef(
|
|
|
414
414
|
children,
|
|
415
415
|
...props
|
|
416
416
|
}, ref) => {
|
|
417
|
-
const isHighlight = variant === "highlight";
|
|
418
417
|
const isIcon = variant === "icon";
|
|
419
418
|
if (asChild) {
|
|
420
419
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
@@ -431,7 +430,7 @@ var Button2 = React5.forwardRef(
|
|
|
431
430
|
}
|
|
432
431
|
);
|
|
433
432
|
}
|
|
434
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.
|
|
433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
435
434
|
Button,
|
|
436
435
|
{
|
|
437
436
|
className: cn(buttonVariants2({ variant, size, width }), className),
|
|
@@ -440,26 +439,10 @@ var Button2 = React5.forwardRef(
|
|
|
440
439
|
"aria-disabled": isLoading || void 0,
|
|
441
440
|
"aria-busy": isLoading || void 0,
|
|
442
441
|
...props,
|
|
443
|
-
children: [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
] }),
|
|
448
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
449
|
-
"span",
|
|
450
|
-
{
|
|
451
|
-
className: cn(
|
|
452
|
-
"inline-flex items-center",
|
|
453
|
-
!isIcon && "gap-2",
|
|
454
|
-
isHighlight && "relative z-10"
|
|
455
|
-
),
|
|
456
|
-
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
457
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: import_lucide_react.Loader2, size: 16, className: "animate-spin", "aria-hidden": true }),
|
|
458
|
-
!isIcon && children
|
|
459
|
-
] }) : children
|
|
460
|
-
}
|
|
461
|
-
)
|
|
462
|
-
]
|
|
442
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
|
|
443
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Icon, { icon: import_lucide_react.Loader2, size: 16, className: "animate-spin", "aria-hidden": true }),
|
|
444
|
+
!isIcon && children
|
|
445
|
+
] }) : children })
|
|
463
446
|
}
|
|
464
447
|
);
|
|
465
448
|
}
|