@bergetai/ui 0.11.3 → 0.11.4
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 +16 -0
- 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 +16 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +11 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -484,6 +484,21 @@ function brandVariantClasses(variant) {
|
|
|
484
484
|
disabledClasses,
|
|
485
485
|
"disabled:bg-transparent disabled:border-berget-button-disabled-border"
|
|
486
486
|
);
|
|
487
|
+
case "ghost":
|
|
488
|
+
return cn(
|
|
489
|
+
"bg-transparent text-berget-button-ghost-fg",
|
|
490
|
+
// Pin the foreground on hover — the underlying primitive ghost adds
|
|
491
|
+
// hover:text-foreground, which is the same value here but pinned
|
|
492
|
+
// explicitly for parity with the other fg-token variants.
|
|
493
|
+
"hover:bg-berget-button-ghost-hover hover:text-berget-button-ghost-fg",
|
|
494
|
+
// The dark:hover twin neutralises the primitive ghost's
|
|
495
|
+
// dark:hover:bg-muted/50 so only the token fill applies.
|
|
496
|
+
"dark:hover:bg-berget-button-ghost-hover",
|
|
497
|
+
"active:bg-berget-button-ghost-active dark:active:bg-berget-button-ghost-active",
|
|
498
|
+
"focus-visible:border-transparent",
|
|
499
|
+
disabledClasses,
|
|
500
|
+
"disabled:bg-transparent"
|
|
501
|
+
);
|
|
487
502
|
case "link":
|
|
488
503
|
return cn(
|
|
489
504
|
"h-auto bg-transparent p-0 text-berget-button-link-fg font-medium underline-offset-4 shadow-none",
|
|
@@ -518,6 +533,7 @@ function primitiveVariant(variant) {
|
|
|
518
533
|
case "primary":
|
|
519
534
|
case "destructive":
|
|
520
535
|
case "outline":
|
|
536
|
+
case "ghost":
|
|
521
537
|
return "ghost";
|
|
522
538
|
default:
|
|
523
539
|
return variant;
|