@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.js
CHANGED
|
@@ -284,7 +284,7 @@ var buttonVariants2 = cva2(
|
|
|
284
284
|
primary: "bg-berget-button-primary-bg text-berget-button-primary-fg shadow-lg hover:bg-berget-button-primary-bg/90 hover:shadow-xl",
|
|
285
285
|
secondary: "bg-berget-button-secondary-bg text-berget-button-secondary-fg shadow hover:bg-berget-button-secondary-bg/80 hover:shadow-lg",
|
|
286
286
|
destructive: "bg-berget-button-destructive-bg text-berget-button-destructive-fg shadow-sm hover:bg-berget-button-destructive-bg/80 hover:shadow",
|
|
287
|
-
highlight: "
|
|
287
|
+
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",
|
|
288
288
|
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"
|
|
289
289
|
},
|
|
290
290
|
size: {
|
|
@@ -317,7 +317,6 @@ var Button2 = React5.forwardRef(
|
|
|
317
317
|
children,
|
|
318
318
|
...props
|
|
319
319
|
}, ref) => {
|
|
320
|
-
const isHighlight = variant === "highlight";
|
|
321
320
|
const isIcon = variant === "icon";
|
|
322
321
|
if (asChild) {
|
|
323
322
|
return /* @__PURE__ */ jsx5(
|
|
@@ -334,7 +333,7 @@ var Button2 = React5.forwardRef(
|
|
|
334
333
|
}
|
|
335
334
|
);
|
|
336
335
|
}
|
|
337
|
-
return /* @__PURE__ */
|
|
336
|
+
return /* @__PURE__ */ jsx5(
|
|
338
337
|
Button,
|
|
339
338
|
{
|
|
340
339
|
className: cn(buttonVariants2({ variant, size, width }), className),
|
|
@@ -343,26 +342,10 @@ var Button2 = React5.forwardRef(
|
|
|
343
342
|
"aria-disabled": isLoading || void 0,
|
|
344
343
|
"aria-busy": isLoading || void 0,
|
|
345
344
|
...props,
|
|
346
|
-
children: [
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
] }),
|
|
351
|
-
/* @__PURE__ */ jsx5(
|
|
352
|
-
"span",
|
|
353
|
-
{
|
|
354
|
-
className: cn(
|
|
355
|
-
"inline-flex items-center",
|
|
356
|
-
!isIcon && "gap-2",
|
|
357
|
-
isHighlight && "relative z-10"
|
|
358
|
-
),
|
|
359
|
-
children: isLoading ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
360
|
-
/* @__PURE__ */ jsx5(Icon, { icon: Loader2, size: 16, className: "animate-spin", "aria-hidden": true }),
|
|
361
|
-
!isIcon && children
|
|
362
|
-
] }) : children
|
|
363
|
-
}
|
|
364
|
-
)
|
|
365
|
-
]
|
|
345
|
+
children: /* @__PURE__ */ jsx5("span", { className: cn("inline-flex items-center", !isIcon && "gap-2"), children: isLoading ? /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
346
|
+
/* @__PURE__ */ jsx5(Icon, { icon: Loader2, size: 16, className: "animate-spin", "aria-hidden": true }),
|
|
347
|
+
!isIcon && children
|
|
348
|
+
] }) : children })
|
|
366
349
|
}
|
|
367
350
|
);
|
|
368
351
|
}
|