@bergetai/ui 0.13.2 → 0.13.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 +20 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +20 -13
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +51 -20
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -148,7 +148,7 @@ __export(src_exports, {
|
|
|
148
148
|
SidebarGroupLabel: () => SidebarGroupLabel2,
|
|
149
149
|
SidebarHeader: () => SidebarHeader2,
|
|
150
150
|
SidebarInput: () => SidebarInput,
|
|
151
|
-
SidebarInset: () =>
|
|
151
|
+
SidebarInset: () => SidebarInset2,
|
|
152
152
|
SidebarLogo: () => SidebarLogo,
|
|
153
153
|
SidebarMenu: () => SidebarMenu,
|
|
154
154
|
SidebarMenuAction: () => SidebarMenuAction,
|
|
@@ -831,28 +831,31 @@ var React6 = __toESM(require("react"), 1);
|
|
|
831
831
|
var import_class_variance_authority4 = require("class-variance-authority");
|
|
832
832
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
833
833
|
var badgeVariants = (0, import_class_variance_authority4.cva)(
|
|
834
|
-
|
|
834
|
+
// Tinted status style: small uppercase label on a 15% brand tint.
|
|
835
|
+
// `variant`/`size` are kept for API compatibility but no longer change
|
|
836
|
+
// the appearance; `status` alone picks the tint.
|
|
837
|
+
"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",
|
|
835
838
|
{
|
|
836
839
|
variants: {
|
|
837
840
|
variant: {
|
|
838
|
-
default: "
|
|
839
|
-
tag: "
|
|
840
|
-
semantic: "
|
|
841
|
+
default: "",
|
|
842
|
+
tag: "",
|
|
843
|
+
semantic: ""
|
|
841
844
|
},
|
|
842
845
|
status: {
|
|
843
846
|
default: "bg-berget-badge-default-bg text-berget-badge-default-fg",
|
|
844
847
|
active: "bg-berget-badge-active-bg text-berget-badge-active-fg",
|
|
848
|
+
info: "bg-berget-badge-info-bg text-berget-badge-info-fg",
|
|
849
|
+
success: "bg-berget-badge-success-bg text-berget-badge-success-fg",
|
|
850
|
+
warning: "bg-berget-badge-warning-bg text-berget-badge-warning-fg",
|
|
851
|
+
error: "bg-berget-badge-error-bg text-berget-badge-error-fg",
|
|
845
852
|
tagDefault: "bg-berget-badge-tag-default-bg text-berget-badge-tag-default-fg",
|
|
846
853
|
tagActive: "bg-berget-badge-tag-active-bg text-berget-badge-tag-active-fg",
|
|
847
|
-
tagGhost: "bg-berget-badge-tag-ghost-bg text-berget-badge-tag-ghost-fg"
|
|
848
|
-
info: "berget-tint berget-tint-info",
|
|
849
|
-
success: "berget-tint berget-tint-success",
|
|
850
|
-
warning: "berget-tint berget-tint-warning",
|
|
851
|
-
error: "berget-tint berget-tint-error"
|
|
854
|
+
tagGhost: "bg-berget-badge-tag-ghost-bg text-berget-badge-tag-ghost-fg"
|
|
852
855
|
},
|
|
853
856
|
size: {
|
|
854
|
-
sm: "
|
|
855
|
-
md: "
|
|
857
|
+
sm: "",
|
|
858
|
+
md: ""
|
|
856
859
|
}
|
|
857
860
|
},
|
|
858
861
|
defaultVariants: {
|
|
@@ -2907,6 +2910,9 @@ function SidebarProvider2({
|
|
|
2907
2910
|
}
|
|
2908
2911
|
);
|
|
2909
2912
|
}
|
|
2913
|
+
function SidebarInset2({ className, ...props }) {
|
|
2914
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(SidebarInset, { className: cn("min-w-0", className), ...props });
|
|
2915
|
+
}
|
|
2910
2916
|
function SidebarGroup2({ className, ...props }) {
|
|
2911
2917
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
2912
2918
|
SidebarGroup,
|
|
@@ -3874,6 +3880,7 @@ var import_lucide_react14 = require("lucide-react");
|
|
|
3874
3880
|
var React21 = __toESM(require("react"), 1);
|
|
3875
3881
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3876
3882
|
var iconStrokeMap = {
|
|
3883
|
+
12: 1.4,
|
|
3877
3884
|
16: 1.4,
|
|
3878
3885
|
24: 1.6,
|
|
3879
3886
|
32: 1.8
|
|
@@ -3888,7 +3895,7 @@ var Icon = React21.forwardRef(
|
|
|
3888
3895
|
...props
|
|
3889
3896
|
}, ref) => {
|
|
3890
3897
|
const strokeWidth = iconStrokeMap[size];
|
|
3891
|
-
const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3898
|
+
const sizeClass = size === 12 ? "w-3 h-3" : size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
|
|
3892
3899
|
const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
|
|
3893
3900
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
3894
3901
|
IconComponent,
|