@youngonesworks/ui 0.1.100 → 0.1.103

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.js CHANGED
@@ -223,7 +223,7 @@ const Alert = ({ show, title, description, type = "warning", button, plain = fal
223
223
  };
224
224
  const config = typeConfig[type];
225
225
  const { bg, iconColor, Icon } = config;
226
- const descriptionId = description ? `alert-desc` : undefined;
226
+ const descriptionId = description ? "alert-desc" : undefined;
227
227
  return /* @__PURE__ */ jsxs("div", {
228
228
  role: "alert",
229
229
  "aria-live": "assertive",
@@ -252,11 +252,15 @@ const Alert = ({ show, title, description, type = "warning", button, plain = fal
252
252
  children: title
253
253
  })]
254
254
  }),
255
- description && /* @__PURE__ */ jsx("p", {
255
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", {
256
256
  id: descriptionId,
257
257
  className: "text-sm text-color-gray-900",
258
258
  children: description
259
- }),
259
+ }) : /* @__PURE__ */ jsx("div", {
260
+ id: descriptionId,
261
+ className: "text-sm text-color-gray-900",
262
+ children: description
263
+ })),
260
264
  button && /* @__PURE__ */ jsx("div", { children: button })
261
265
  ]
262
266
  }), closable && /* @__PURE__ */ jsx("button", {
@@ -624,12 +628,13 @@ Avatar.displayName = "Avatar";
624
628
 
625
629
  //#endregion
626
630
  //#region src/components/avatarIndicator/index.tsx
627
- const AvatarIndicator = ({ indicatorCount, className }) => /* @__PURE__ */ jsx("div", {
628
- className: cn("inline-flex h-5 min-w-5 flex-col items-center justify-center gap-2.5 rounded border-2 border-solid border-white bg-blue-950 px-1.5", className),
631
+ const AvatarIndicator = ({ indicatorCount, className,...props }) => /* @__PURE__ */ jsx("div", {
632
+ className: cn("grid h-5 min-w-5 w-fit flex-col place-content-center items-center justify-center rounded-full bg-white px-0.5", className),
629
633
  "data-component": "AvatarIndicator",
630
634
  "data-testid": "AvatarIndicator",
635
+ ...props,
631
636
  children: /* @__PURE__ */ jsx("div", {
632
- className: "font-['Gotham'] text-[10px] leading-[10px] font-bold text-white",
637
+ className: "font-['Gotham'] text-[10px] leading-[10px] text-black",
633
638
  children: `+${indicatorCount}`
634
639
  })
635
640
  });