@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 CHANGED
@@ -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
- "inline-flex items-center whitespace-nowrap rounded-full transition-colors focus:outline-none focus:ring-1 focus:ring-ring focus:ring-offset-2",
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: "px-8",
839
- tag: "px-4",
840
- semantic: "px-3"
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: "text-xs h-6",
855
- md: "text-sm h-6"
857
+ sm: "",
858
+ md: ""
856
859
  }
857
860
  },
858
861
  defaultVariants: {
@@ -3874,6 +3877,7 @@ var import_lucide_react14 = require("lucide-react");
3874
3877
  var React21 = __toESM(require("react"), 1);
3875
3878
  var import_jsx_runtime37 = require("react/jsx-runtime");
3876
3879
  var iconStrokeMap = {
3880
+ 12: 1.4,
3877
3881
  16: 1.4,
3878
3882
  24: 1.6,
3879
3883
  32: 1.8
@@ -3888,7 +3892,7 @@ var Icon = React21.forwardRef(
3888
3892
  ...props
3889
3893
  }, ref) => {
3890
3894
  const strokeWidth = iconStrokeMap[size];
3891
- const sizeClass = size === 16 ? "w-4 h-4" : size === 24 ? "w-6 h-6" : "w-8 h-8";
3895
+ 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
3896
  const ariaAttributes = ariaLabel ? { "aria-label": ariaLabel } : { "aria-hidden": ariaHidden };
3893
3897
  return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3894
3898
  IconComponent,