@eqtylab/equality 2.0.0 → 2.0.1

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
@@ -32,7 +32,7 @@ declare const alertVariants: (props?: ({
32
32
  } & class_variance_authority_types.ClassProp) | undefined) => string;
33
33
  interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
34
34
  title: string;
35
- description: string;
35
+ description?: string | React$1.ReactNode;
36
36
  icon?: React$1.ReactElement | string | null;
37
37
  }
38
38
  declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
package/dist/index.d.ts CHANGED
@@ -32,7 +32,7 @@ declare const alertVariants: (props?: ({
32
32
  } & class_variance_authority_types.ClassProp) | undefined) => string;
33
33
  interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
34
34
  title: string;
35
- description: string;
35
+ description?: string | React$1.ReactNode;
36
36
  icon?: React$1.ReactElement | string | null;
37
37
  }
38
38
  declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
package/dist/index.js CHANGED
@@ -231,7 +231,7 @@ var Alert = React16.forwardRef(
231
231
  }
232
232
  ) : null,
233
233
  /* @__PURE__ */ jsx("h4", { className: styles2["alert-title"], children: title }),
234
- /* @__PURE__ */ jsx("p", { className: styles2["alert-description"], children: description })
234
+ description ? /* @__PURE__ */ jsx("p", { className: styles2["alert-description"], children: description }) : null
235
235
  ]
236
236
  }
237
237
  );