@bubo-squared/ui-framework 0.2.26 → 0.2.28

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
@@ -593,13 +593,13 @@ var avatarVariants = (0, import_class_variance_authority6.cva)(
593
593
  {
594
594
  variants: {
595
595
  size: {
596
- "20": "w-5 h-5 hover:border-2 focus-visible:border-2",
597
- "24": "w-6 h-6 hover:border-2 focus-visible:border-2",
598
- "32": "w-8 h-8 hover:border-2 focus-visible:border-2",
599
- "40": "w-10 h-10 hover:border-2 focus-visible:border-2",
600
- "48": "w-12 h-12 hover:border-2 focus-visible:border-2",
601
- "56": "w-14 h-14 hover:border-4 focus-visible:border-4",
602
- "64": "w-16 h-16 hover:border-4 focus-visible:border-4"
596
+ "20": "min-w-5 min-h-5 hover:border-2 focus-visible:border-2",
597
+ "24": "min-w-6 min-h-6 hover:border-2 focus-visible:border-2",
598
+ "32": "min-w-8 min-h-8 hover:border-2 focus-visible:border-2",
599
+ "40": "min-w-10 min-h-10 hover:border-2 focus-visible:border-2",
600
+ "48": "min-w-12 min-h-12 hover:border-2 focus-visible:border-2",
601
+ "56": "min-w-14 min-h-14 hover:border-4 focus-visible:border-4",
602
+ "64": "min-w-16 min-h-16 hover:border-4 focus-visible:border-4"
603
603
  }
604
604
  },
605
605
  defaultVariants: {
@@ -631,13 +631,13 @@ var avatarIconVariants = (0, import_class_variance_authority6.cva)(
631
631
  {
632
632
  variants: {
633
633
  size: {
634
- "20": "size-3 [&>svg]:size-3",
635
- "24": "size-3.5 [&>svg]:size-3.5",
636
- "32": "size-4 [&>svg]:size-4",
637
- "40": "size-5 [&>svg]:size-5",
638
- "48": "size-6 [&>svg]:size-6",
639
- "56": "size-7 [&>svg]:size-7",
640
- "64": "size-8 [&>svg]:size-8"
634
+ "20": "min-h-3 min-w-3 [&>svg]:size-3",
635
+ "24": "min-h-3.5 min-w-3.5 [&>svg]:size-3.5",
636
+ "32": "min-h-4 min-w-4 [&>svg]:size-4",
637
+ "40": "min-h-5 min-w-5 [&>svg]:size-5",
638
+ "48": "min-h-6 min-w-6 [&>svg]:size-6",
639
+ "56": "min-h-7 min-w-7 [&>svg]:size-7",
640
+ "64": "min-h-8 min-w-8 [&>svg]:size-8"
641
641
  }
642
642
  },
643
643
  defaultVariants: {
@@ -649,7 +649,7 @@ var Avatar = React7.forwardRef(
649
649
  (props, ref) => {
650
650
  const {
651
651
  asChild = false,
652
- variant = "initial",
652
+ variant = "initials",
653
653
  size = "32",
654
654
  initials = "RA",
655
655
  src,
@@ -674,7 +674,7 @@ var Avatar = React7.forwardRef(
674
674
  className: "w-full h-full object-cover"
675
675
  }
676
676
  ) : null,
677
- !hasImage && variant === "initial" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: cn(avatarInitialsVariants({ size }), "relative bottom-px"), children: initials }),
677
+ !hasImage && variant === "initials" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: cn(avatarInitialsVariants({ size }), "relative bottom-px"), children: initials }),
678
678
  !hasImage && variant === "icon" && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: cn(avatarIconVariants({ size })), children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.UserIcon, {}) })
679
679
  ]
680
680
  }
@@ -1154,7 +1154,7 @@ var Progress = React15.forwardRef(
1154
1154
  hint,
1155
1155
  ariaLabel,
1156
1156
  hideProgressLabel = false,
1157
- successBarColorOnComplete = false,
1157
+ useStatusColorOnComplete = false,
1158
1158
  hideHint,
1159
1159
  size = "lg",
1160
1160
  status = "default",
@@ -1199,7 +1199,7 @@ var Progress = React15.forwardRef(
1199
1199
  {
1200
1200
  className: cn(
1201
1201
  "h-full",
1202
- successBarColorOnComplete && clamped === 100 ? "bg-(--color-success)" : "bg-(--chart-brand)",
1202
+ useStatusColorOnComplete && clamped === 100 ? status === "success" ? "bg-(--color-success)" : status === "error" ? "bg-(--color-error)" : "bg-(--chart-brand)" : "bg-(--chart-brand)",
1203
1203
  size === "lg" ? "rounded-4" : size === "md" ? "rounded-2" : "rounded-[1px]"
1204
1204
  ),
1205
1205
  style: { width: `${clamped}%` }