@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.d.cts CHANGED
@@ -83,7 +83,7 @@ declare const Accordion: React$1.ForwardRefExoticComponent<Omit<Omit<AccordionPr
83
83
  bordered?: boolean;
84
84
  } & React$1.RefAttributes<HTMLDivElement>>;
85
85
 
86
- type AvatarVariant = "initial" | "icon" | "image";
86
+ type AvatarVariant = "initials" | "icon" | "image";
87
87
  declare const avatarVariants: (props?: ({
88
88
  size?: "20" | "24" | "32" | "40" | "48" | "56" | "64" | null | undefined;
89
89
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -242,8 +242,8 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
242
242
  ariaLabel?: string;
243
243
  /** If true, the progress percentage label will not be rendered. */
244
244
  hideProgressLabel?: boolean;
245
- /** If true, the bar turns success color only when value reaches 100%. */
246
- successBarColorOnComplete?: boolean;
245
+ /** If true, the bar turns status color only when value reaches 100%. */
246
+ useStatusColorOnComplete?: boolean;
247
247
  /** If true, the hint will not be rendered even if provided. */
248
248
  hideHint?: boolean;
249
249
  status?: ProgressStatus;
package/dist/index.d.ts CHANGED
@@ -83,7 +83,7 @@ declare const Accordion: React$1.ForwardRefExoticComponent<Omit<Omit<AccordionPr
83
83
  bordered?: boolean;
84
84
  } & React$1.RefAttributes<HTMLDivElement>>;
85
85
 
86
- type AvatarVariant = "initial" | "icon" | "image";
86
+ type AvatarVariant = "initials" | "icon" | "image";
87
87
  declare const avatarVariants: (props?: ({
88
88
  size?: "20" | "24" | "32" | "40" | "48" | "56" | "64" | null | undefined;
89
89
  } & class_variance_authority_types.ClassProp) | undefined) => string;
@@ -242,8 +242,8 @@ interface ProgressProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "ch
242
242
  ariaLabel?: string;
243
243
  /** If true, the progress percentage label will not be rendered. */
244
244
  hideProgressLabel?: boolean;
245
- /** If true, the bar turns success color only when value reaches 100%. */
246
- successBarColorOnComplete?: boolean;
245
+ /** If true, the bar turns status color only when value reaches 100%. */
246
+ useStatusColorOnComplete?: boolean;
247
247
  /** If true, the hint will not be rendered even if provided. */
248
248
  hideHint?: boolean;
249
249
  status?: ProgressStatus;
package/dist/index.js CHANGED
@@ -511,13 +511,13 @@ var avatarVariants = cva6(
511
511
  {
512
512
  variants: {
513
513
  size: {
514
- "20": "w-5 h-5 hover:border-2 focus-visible:border-2",
515
- "24": "w-6 h-6 hover:border-2 focus-visible:border-2",
516
- "32": "w-8 h-8 hover:border-2 focus-visible:border-2",
517
- "40": "w-10 h-10 hover:border-2 focus-visible:border-2",
518
- "48": "w-12 h-12 hover:border-2 focus-visible:border-2",
519
- "56": "w-14 h-14 hover:border-4 focus-visible:border-4",
520
- "64": "w-16 h-16 hover:border-4 focus-visible:border-4"
514
+ "20": "min-w-5 min-h-5 hover:border-2 focus-visible:border-2",
515
+ "24": "min-w-6 min-h-6 hover:border-2 focus-visible:border-2",
516
+ "32": "min-w-8 min-h-8 hover:border-2 focus-visible:border-2",
517
+ "40": "min-w-10 min-h-10 hover:border-2 focus-visible:border-2",
518
+ "48": "min-w-12 min-h-12 hover:border-2 focus-visible:border-2",
519
+ "56": "min-w-14 min-h-14 hover:border-4 focus-visible:border-4",
520
+ "64": "min-w-16 min-h-16 hover:border-4 focus-visible:border-4"
521
521
  }
522
522
  },
523
523
  defaultVariants: {
@@ -549,13 +549,13 @@ var avatarIconVariants = cva6(
549
549
  {
550
550
  variants: {
551
551
  size: {
552
- "20": "size-3 [&>svg]:size-3",
553
- "24": "size-3.5 [&>svg]:size-3.5",
554
- "32": "size-4 [&>svg]:size-4",
555
- "40": "size-5 [&>svg]:size-5",
556
- "48": "size-6 [&>svg]:size-6",
557
- "56": "size-7 [&>svg]:size-7",
558
- "64": "size-8 [&>svg]:size-8"
552
+ "20": "min-h-3 min-w-3 [&>svg]:size-3",
553
+ "24": "min-h-3.5 min-w-3.5 [&>svg]:size-3.5",
554
+ "32": "min-h-4 min-w-4 [&>svg]:size-4",
555
+ "40": "min-h-5 min-w-5 [&>svg]:size-5",
556
+ "48": "min-h-6 min-w-6 [&>svg]:size-6",
557
+ "56": "min-h-7 min-w-7 [&>svg]:size-7",
558
+ "64": "min-h-8 min-w-8 [&>svg]:size-8"
559
559
  }
560
560
  },
561
561
  defaultVariants: {
@@ -567,7 +567,7 @@ var Avatar = React7.forwardRef(
567
567
  (props, ref) => {
568
568
  const {
569
569
  asChild = false,
570
- variant = "initial",
570
+ variant = "initials",
571
571
  size = "32",
572
572
  initials = "RA",
573
573
  src,
@@ -592,7 +592,7 @@ var Avatar = React7.forwardRef(
592
592
  className: "w-full h-full object-cover"
593
593
  }
594
594
  ) : null,
595
- !hasImage && variant === "initial" && /* @__PURE__ */ jsx9("span", { className: cn(avatarInitialsVariants({ size }), "relative bottom-px"), children: initials }),
595
+ !hasImage && variant === "initials" && /* @__PURE__ */ jsx9("span", { className: cn(avatarInitialsVariants({ size }), "relative bottom-px"), children: initials }),
596
596
  !hasImage && variant === "icon" && /* @__PURE__ */ jsx9("span", { className: cn(avatarIconVariants({ size })), children: /* @__PURE__ */ jsx9(UserIcon, {}) })
597
597
  ]
598
598
  }
@@ -1072,7 +1072,7 @@ var Progress = React15.forwardRef(
1072
1072
  hint,
1073
1073
  ariaLabel,
1074
1074
  hideProgressLabel = false,
1075
- successBarColorOnComplete = false,
1075
+ useStatusColorOnComplete = false,
1076
1076
  hideHint,
1077
1077
  size = "lg",
1078
1078
  status = "default",
@@ -1117,7 +1117,7 @@ var Progress = React15.forwardRef(
1117
1117
  {
1118
1118
  className: cn(
1119
1119
  "h-full",
1120
- successBarColorOnComplete && clamped === 100 ? "bg-(--color-success)" : "bg-(--chart-brand)",
1120
+ useStatusColorOnComplete && clamped === 100 ? status === "success" ? "bg-(--color-success)" : status === "error" ? "bg-(--color-error)" : "bg-(--chart-brand)" : "bg-(--chart-brand)",
1121
1121
  size === "lg" ? "rounded-4" : size === "md" ? "rounded-2" : "rounded-[1px]"
1122
1122
  ),
1123
1123
  style: { width: `${clamped}%` }