esewa-ui-library 1.10.3 → 1.10.4

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.
@@ -3,7 +3,7 @@ interface AlertCardProps {
3
3
  alertCardClass?: string;
4
4
  variant?: 'primary' | 'warning' | 'danger' | 'info';
5
5
  title?: string;
6
- description?: string;
6
+ description?: string | React.ReactNode;
7
7
  descriptionIcon?: string | React.ReactNode;
8
8
  showDescriptionIcon?: boolean;
9
9
  titleIcon?: string | React.ReactNode;
package/dist/index.js CHANGED
@@ -125,9 +125,11 @@ var ESewaAlertCard = function ESewaAlertCard(_ref) {
125
125
  className: 'alert-card--description--icon'
126
126
  }, typeof descriptionIcon === 'string' ? React__default.createElement("i", {
127
127
  className: descriptionIcon
128
- }) : descriptionIcon), description && React__default.createElement("p", {
128
+ }) : descriptionIcon), description && (typeof description === 'string' ? React__default.createElement("p", {
129
129
  className: 'card-text body2'
130
- }, description)), showCardFooter && React__default.createElement("div", {
130
+ }, description) : React__default.createElement("div", {
131
+ className: 'card-text body2'
132
+ }, description))), showCardFooter && React__default.createElement("div", {
131
133
  className: 'alert-card--footer'
132
134
  }, React__default.createElement(ESewaButton, {
133
135
  className: 'border-radius-8',