cekat-ui 1.3.14 → 1.3.15

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.mts CHANGED
@@ -114,6 +114,12 @@ export declare interface AvatarGroupItem {
114
114
  initials?: React_2.ReactNode;
115
115
  /** Tooltip content shown on hover. */
116
116
  label?: React_2.ReactNode;
117
+ /** Overrides the deterministic initials text color (e.g. "text-primary-600"). */
118
+ initialsTextColor?: string;
119
+ /** Overrides the initials background color (e.g. "bg-primary-100"). */
120
+ initialsBgColor?: string;
121
+ /** Overrides the contrast border color (e.g. "border-primary-600/20"). Defaults to "border-black/[0.08]". */
122
+ borderColor?: string;
117
123
  }
118
124
 
119
125
  export declare interface AvatarGroupProps {
package/dist/index.d.ts CHANGED
@@ -114,6 +114,12 @@ export declare interface AvatarGroupItem {
114
114
  initials?: React_2.ReactNode;
115
115
  /** Tooltip content shown on hover. */
116
116
  label?: React_2.ReactNode;
117
+ /** Overrides the deterministic initials text color (e.g. "text-primary-600"). */
118
+ initialsTextColor?: string;
119
+ /** Overrides the initials background color (e.g. "bg-primary-100"). */
120
+ initialsBgColor?: string;
121
+ /** Overrides the contrast border color (e.g. "border-primary-600/20"). Defaults to "border-black/[0.08]". */
122
+ borderColor?: string;
117
123
  }
118
124
 
119
125
  export declare interface AvatarGroupProps {
package/dist/index.mjs CHANGED
@@ -20417,7 +20417,7 @@ const Is = [
20417
20417
  style: { width: o, height: o, marginRight: p ? l : 0 }
20418
20418
  },
20419
20419
  c.src ? /* @__PURE__ */ m.createElement("img", { src: c.src, alt: c.alt ?? "", className: "size-full object-cover" }) : (() => {
20420
- const { bg: h, text: g } = Jy(
20420
+ const { text: h, bg: g } = Jy(
20421
20421
  String(c.label ?? c.alt ?? c.initials ?? f)
20422
20422
  );
20423
20423
  return /* @__PURE__ */ m.createElement(
@@ -20425,8 +20425,8 @@ const Is = [
20425
20425
  {
20426
20426
  className: Z(
20427
20427
  "flex size-full items-center justify-center font-semibold",
20428
- h,
20429
- g,
20428
+ c.initialsBgColor ?? g,
20429
+ c.initialsTextColor ?? h,
20430
20430
  s
20431
20431
  )
20432
20432
  },
@@ -20436,7 +20436,10 @@ const Is = [
20436
20436
  /* @__PURE__ */ m.createElement(
20437
20437
  "div",
20438
20438
  {
20439
- className: "pointer-events-none absolute inset-0 rounded-full border-black/[0.08]",
20439
+ className: Z(
20440
+ "pointer-events-none absolute inset-0 rounded-full",
20441
+ c.borderColor ?? "border-black/[0.08]"
20442
+ ),
20440
20443
  style: { borderWidth: a, borderStyle: "solid" }
20441
20444
  }
20442
20445
  )