@bergetai/ui 0.13.2 → 0.13.3
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 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +51 -20
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -88,7 +88,7 @@ declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAtt
|
|
|
88
88
|
|
|
89
89
|
declare const badgeVariants: (props?: ({
|
|
90
90
|
variant?: "default" | "tag" | "semantic" | null | undefined;
|
|
91
|
-
status?: "default" | "error" | "active" | "
|
|
91
|
+
status?: "default" | "error" | "active" | "info" | "success" | "warning" | "tagDefault" | "tagActive" | "tagGhost" | null | undefined;
|
|
92
92
|
size?: "sm" | "md" | null | undefined;
|
|
93
93
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
94
94
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -690,7 +690,7 @@ declare const BergetLogo: React$1.ForwardRefExoticComponent<BergetLogoProps & Re
|
|
|
690
690
|
|
|
691
691
|
interface IconProps extends Omit<LucideProps, 'size'> {
|
|
692
692
|
icon: LucideIcon;
|
|
693
|
-
size: 16 | 24 | 32;
|
|
693
|
+
size: 12 | 16 | 24 | 32;
|
|
694
694
|
className?: string;
|
|
695
695
|
'aria-label'?: string;
|
|
696
696
|
'aria-hidden'?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAtt
|
|
|
88
88
|
|
|
89
89
|
declare const badgeVariants: (props?: ({
|
|
90
90
|
variant?: "default" | "tag" | "semantic" | null | undefined;
|
|
91
|
-
status?: "default" | "error" | "active" | "
|
|
91
|
+
status?: "default" | "error" | "active" | "info" | "success" | "warning" | "tagDefault" | "tagActive" | "tagGhost" | null | undefined;
|
|
92
92
|
size?: "sm" | "md" | null | undefined;
|
|
93
93
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
94
94
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
@@ -690,7 +690,7 @@ declare const BergetLogo: React$1.ForwardRefExoticComponent<BergetLogoProps & Re
|
|
|
690
690
|
|
|
691
691
|
interface IconProps extends Omit<LucideProps, 'size'> {
|
|
692
692
|
icon: LucideIcon;
|
|
693
|
-
size: 16 | 24 | 32;
|
|
693
|
+
size: 12 | 16 | 24 | 32;
|
|
694
694
|
className?: string;
|
|
695
695
|
'aria-label'?: string;
|
|
696
696
|
'aria-hidden'?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -629,28 +629,31 @@ import * as React6 from "react";
|
|
|
629
629
|
import { cva as cva4 } from "class-variance-authority";
|
|
630
630
|
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
631
631
|
var badgeVariants = cva4(
|
|
632
|
-
|
|
632
|
+
// Tinted status style: small uppercase label on a 15% brand tint.
|
|
633
|
+
// `variant`/`size` are kept for API compatibility but no longer change
|
|
634
|
+
// the appearance; `status` alone picks the tint.
|
|
635
|
+
"inline-flex flex-shrink-0 items-center whitespace-nowrap rounded-[4px] py-[0.15rem] px-2 text-[0.65rem] font-semibold uppercase tracking-[0.05em] transition-colors focus:outline-none focus:ring-1 focus:ring-ring focus:ring-offset-2",
|
|
633
636
|
{
|
|
634
637
|
variants: {
|
|
635
638
|
variant: {
|
|
636
|
-
default: "
|
|
637
|
-
tag: "
|
|
638
|
-
semantic: "
|
|
639
|
+
default: "",
|
|
640
|
+
tag: "",
|
|
641
|
+
semantic: ""
|
|
639
642
|
},
|
|
640
643
|
status: {
|
|
641
644
|
default: "bg-berget-badge-default-bg text-berget-badge-default-fg",
|
|
642
645
|
active: "bg-berget-badge-active-bg text-berget-badge-active-fg",
|
|
646
|
+
info: "bg-berget-badge-info-bg text-berget-badge-info-fg",
|
|
647
|
+
success: "bg-berget-badge-success-bg text-berget-badge-success-fg",
|
|
648
|
+
warning: "bg-berget-badge-warning-bg text-berget-badge-warning-fg",
|
|
649
|
+
error: "bg-berget-badge-error-bg text-berget-badge-error-fg",
|
|
643
650
|
tagDefault: "bg-berget-badge-tag-default-bg text-berget-badge-tag-default-fg",
|
|
644
651
|
tagActive: "bg-berget-badge-tag-active-bg text-berget-badge-tag-active-fg",
|
|
645
|
-
tagGhost: "bg-berget-badge-tag-ghost-bg text-berget-badge-tag-ghost-fg"
|
|
646
|
-
info: "berget-tint berget-tint-info",
|
|
647
|
-
success: "berget-tint berget-tint-success",
|
|
648
|
-
warning: "berget-tint berget-tint-warning",
|
|
649
|
-
error: "berget-tint berget-tint-error"
|
|
652
|
+
tagGhost: "bg-berget-badge-tag-ghost-bg text-berget-badge-tag-ghost-fg"
|
|
650
653
|
},
|
|
651
654
|
size: {
|
|
652
|
-
sm: "
|
|
653
|
-
md: "
|
|
655
|
+
sm: "",
|
|
656
|
+
md: ""
|
|
654
657
|
}
|
|
655
658
|
},
|
|
656
659
|
defaultVariants: {
|
|
@@ -3672,6 +3675,7 @@ import { ChevronDown as ChevronDown2, Globe } from "lucide-react";
|
|
|
3672
3675
|
import * as React21 from "react";
|
|
3673
3676
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3674
3677
|
var iconStrokeMap = {
|
|
3678
|
+
12: 1.4,
|
|
3675
3679
|
16: 1.4,
|
|
3676
3680
|
24: 1.6,
|
|
3677
3681
|
32: 1.8
|
|
@@ -3686,7 +3690,7 @@ var Icon = React21.forwardRef(
|
|
|
3686
3690
|
...props
|
|
3687
3691
|
}, ref) => {
|
|
3688
3692
|
const strokeWidth = iconStrokeMap[size];
|
|
3689
|
-
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3693
|
+
const sizeClass = size === 12 ? "w-3 h-3" : size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3690
3694
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3691
3695
|
return /* @__PURE__ */ jsx37(
|
|
3692
3696
|
IconComponent,
|