@mycause/ui 0.0.0-c84eb11a → 0.0.0-c85735f7

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.
@@ -5,7 +5,7 @@ export interface FeaturedCampaignCardProps {
5
5
  title?: string;
6
6
  description?: string;
7
7
  completed?: number;
8
- width?: number;
8
+ maxWidth?: number;
9
9
  donation?: number;
10
10
  raised?: number;
11
11
  goal?: number;
@@ -13,5 +13,5 @@ export interface FeaturedCampaignCardProps {
13
13
  fundraisingText: string;
14
14
  handleImageError?: () => void;
15
15
  }
16
- declare const FeaturedCampaignCard: ({ className, imageURL, title, donation, raised, goal, completed, width, onClick, fundraisingText, handleImageError, }: FeaturedCampaignCardProps) => JSX.Element;
16
+ declare const FeaturedCampaignCard: ({ className, imageURL, title, donation, raised, goal, completed, maxWidth, onClick, fundraisingText, handleImageError, }: FeaturedCampaignCardProps) => JSX.Element;
17
17
  export default FeaturedCampaignCard;
@@ -3,7 +3,7 @@ import CenterDecorator from "../../utils/center-decorator";
3
3
  declare const _default: {
4
4
  title: string;
5
5
  decorators: (typeof CenterDecorator)[];
6
- component: ({ className, imageURL, title, donation, raised, goal, completed, width, onClick, fundraisingText, handleImageError, }: import("./featured-campaign-card").FeaturedCampaignCardProps) => JSX.Element;
6
+ component: ({ className, imageURL, title, donation, raised, goal, completed, maxWidth, onClick, fundraisingText, handleImageError, }: import("./featured-campaign-card").FeaturedCampaignCardProps) => JSX.Element;
7
7
  };
8
8
  export default _default;
9
9
  export declare const featuredcampaigncard: {
package/dist/index.esm.js CHANGED
@@ -10032,7 +10032,7 @@ CampaignCard.propTypes = {
10032
10032
  description: _pt.string
10033
10033
  };
10034
10034
 
10035
- var css$4 = ".campaign-of-month-module_wrapper__3VW1j {\n width: 1140px;\n height: 400px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 50%;\n height: 400px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n padding: 36px 38px 43px 46px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_title__2bUDz {\n font-weight: 500;\n font-size: 20px;\n line-height: 28px;\n text-align: left;\n color: black; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n color: #6d6d6d;\n font-weight: 500;\n font-size: 15px;\n line-height: 24px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 8;\n /* number of lines to show */\n line-clamp: 8;\n -webkit-box-orient: vertical;\n margin-bottom: 25px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo {\n width: 100%;\n height: 52px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item__2qUuG {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_value__2UldJ {\n font-weight: 600;\n font-size: 20px;\n line-height: 28px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_name__3ZCL8 {\n font-weight: 500;\n font-size: 14px;\n line-height: 22.4px;\n color: #6d6d6d; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 50%;\n height: 400px;\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n max-width: 100%;\n max-height: 100%;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px; }\n\n@media all and (max-width: 1024px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 937px;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 20px 50px 40px 50px;\n border-radius: 0 0 10px 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n -webkit-line-clamp: initial;\n /* number of lines to show */\n line-clamp: initial; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px; } }\n\n@media all and (max-width: 992px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 719px;\n height: auto;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto;\n display: flex; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 27px 40px 36px;\n border-bottom-left-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px;\n -o-object-fit: cover;\n object-fit: cover; } }\n\n@media all and (max-width: 768px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 432px; } }\n";
10035
+ var css$4 = ".campaign-of-month-module_wrapper__3VW1j {\n width: 1140px;\n height: 400px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 50%;\n height: 400px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n padding: 36px 38px 43px 46px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_title__2bUDz {\n font-weight: 500;\n font-size: 20px;\n line-height: 28px;\n text-align: left;\n color: black; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n color: #6d6d6d;\n font-weight: 500;\n font-size: 15px;\n line-height: 24px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 8;\n /* number of lines to show */\n line-clamp: 8;\n -webkit-box-orient: vertical;\n margin-bottom: 25px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo {\n width: 100%;\n height: 52px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item__2qUuG {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_value__2UldJ {\n font-weight: 600;\n font-size: 20px;\n line-height: 28px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_name__3ZCL8 {\n font-weight: 500;\n font-size: 14px;\n line-height: 22.4px;\n color: #6d6d6d; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 50%;\n height: 400px;\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n max-width: 100%;\n max-height: 100%;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px; }\n\n@media all and (max-width: 1024px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 937px;\n flex-direction: column;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 20px 50px 40px 50px;\n border-radius: 0 0 10px 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n -webkit-line-clamp: initial;\n /* number of lines to show */\n line-clamp: initial; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px; } }\n\n@media all and (max-width: 992px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 719px;\n height: auto;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto;\n display: flex; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 27px 40px 36px;\n border-bottom-left-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px;\n -o-object-fit: cover;\n object-fit: cover; } }\n\n@media all and (max-width: 768px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 100%;\n max-width: 342px; } }\n";
10036
10036
  var cls$4 = {"wrapper":"campaign-of-month-module_wrapper__3VW1j","rightSide":"campaign-of-month-module_rightSide__FXQyv","title":"campaign-of-month-module_title__2bUDz","description":"campaign-of-month-module_description__6rZ2k","info":"campaign-of-month-module_info__2W3vo","item":"campaign-of-month-module_item__2qUuG","item_value":"campaign-of-month-module_item_value__2UldJ","item_name":"campaign-of-month-module_item_name__3ZCL8","leftSide":"campaign-of-month-module_leftSide__22wcl","image":"campaign-of-month-module_image__2YMoT"};
10037
10037
  styleInject(css$4);
10038
10038
 
@@ -10181,7 +10181,7 @@ DonateCard.propTypes = {
10181
10181
  description: _pt.string
10182
10182
  };
10183
10183
 
10184
- var css$7 = ".featured-campaign-card-module_wrapper__Lx4z3 {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n padding: 20px;\n cursor: pointer; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_imageWrapper__1Znnd {\n height: 100%;\n display: flex;\n align-items: center; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_coverImage__HUvxd {\n border-radius: 8px;\n width: -webkit-fit-content;\n width: fit-content; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_image__ZtL5s {\n width: 100%;\n border-radius: 8px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_title__3rmNH {\n width: 100%;\n padding-top: 5px;\n padding-bottom: 10px;\n font-weight: 700;\n font-size: 15px;\n line-height: 21px;\n text-align: left;\n color: black;\n height: 50px;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_description__NZDGW {\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n color: black;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 700;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n border-radius: 10px;\n grid-gap: 20px;\n grid-gap: 20px;\n gap: 20px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_subtext__2eSW5 {\n width: 100%;\n color: #6d6d6d;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 500;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n margin-left: 3px;\n margin-right: 3px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_FRPText__1QVdV {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n color: #6d6d6d;\n line-height: 20px;\n font-size: 15px;\n margin: 0 0 10px 0; }\n";
10184
+ var css$7 = ".featured-campaign-card-module_wrapper__Lx4z3 {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n cursor: pointer; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_imageWrapper__1Znnd {\n height: 100%;\n display: flex;\n align-items: center; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_coverImage__HUvxd {\n border-radius: 8px;\n width: -webkit-fit-content;\n width: fit-content; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_image__ZtL5s {\n width: 100%;\n border-radius: 8px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_title__3rmNH {\n width: 100%;\n padding-top: 5px;\n padding-bottom: 10px;\n font-weight: 700;\n font-size: 15px;\n line-height: 21px;\n text-align: left;\n color: black;\n height: 50px;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_description__NZDGW {\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n color: black;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 700;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n border-radius: 10px;\n grid-gap: 20px;\n grid-gap: 20px;\n gap: 20px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_subtext__2eSW5 {\n width: 100%;\n color: #6d6d6d;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 500;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n margin-left: 3px;\n margin-right: 3px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_FRPText__1QVdV {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n color: #6d6d6d;\n line-height: 20px;\n font-size: 15px;\n margin: 0 0 10px 0; }\n";
10185
10185
  var cls$7 = {"wrapper":"featured-campaign-card-module_wrapper__Lx4z3","imageWrapper":"featured-campaign-card-module_imageWrapper__1Znnd","coverImage":"featured-campaign-card-module_coverImage__HUvxd","image":"featured-campaign-card-module_image__ZtL5s","title":"featured-campaign-card-module_title__3rmNH","description":"featured-campaign-card-module_description__NZDGW","subtext":"featured-campaign-card-module_subtext__2eSW5","FRPText":"featured-campaign-card-module_FRPText__1QVdV"};
10186
10186
  styleInject(css$7);
10187
10187
 
@@ -10199,15 +10199,15 @@ var FeaturedCampaignCard = function FeaturedCampaignCard(_ref) {
10199
10199
  goal = _ref$goal === void 0 ? 0 : _ref$goal,
10200
10200
  _ref$completed = _ref.completed,
10201
10201
  completed = _ref$completed === void 0 ? 0 : _ref$completed,
10202
- _ref$width = _ref.width,
10203
- width = _ref$width === void 0 ? 0 : _ref$width,
10202
+ _ref$maxWidth = _ref.maxWidth,
10203
+ maxWidth = _ref$maxWidth === void 0 ? 0 : _ref$maxWidth,
10204
10204
  onClick = _ref.onClick,
10205
10205
  fundraisingText = _ref.fundraisingText,
10206
10206
  handleImageError = _ref.handleImageError;
10207
10207
  return React.createElement("div", {
10208
10208
  className: classnames(cls$7.wrapper, className),
10209
10209
  style: {
10210
- width: "".concat(width, "px")
10210
+ maxWidth: "".concat(maxWidth, "px")
10211
10211
  },
10212
10212
  onClick: onClick
10213
10213
  }, React.createElement("div", null, React.createElement("div", {
@@ -10240,7 +10240,7 @@ FeaturedCampaignCard.propTypes = {
10240
10240
  title: _pt.string,
10241
10241
  description: _pt.string,
10242
10242
  completed: _pt.number,
10243
- width: _pt.number,
10243
+ maxWidth: _pt.number,
10244
10244
  donation: _pt.number,
10245
10245
  raised: _pt.number,
10246
10246
  goal: _pt.number,
package/dist/index.js CHANGED
@@ -10045,7 +10045,7 @@ CampaignCard.propTypes = {
10045
10045
  description: _pt.string
10046
10046
  };
10047
10047
 
10048
- var css$4 = ".campaign-of-month-module_wrapper__3VW1j {\n width: 1140px;\n height: 400px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 50%;\n height: 400px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n padding: 36px 38px 43px 46px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_title__2bUDz {\n font-weight: 500;\n font-size: 20px;\n line-height: 28px;\n text-align: left;\n color: black; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n color: #6d6d6d;\n font-weight: 500;\n font-size: 15px;\n line-height: 24px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 8;\n /* number of lines to show */\n line-clamp: 8;\n -webkit-box-orient: vertical;\n margin-bottom: 25px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo {\n width: 100%;\n height: 52px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item__2qUuG {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_value__2UldJ {\n font-weight: 600;\n font-size: 20px;\n line-height: 28px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_name__3ZCL8 {\n font-weight: 500;\n font-size: 14px;\n line-height: 22.4px;\n color: #6d6d6d; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 50%;\n height: 400px;\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n max-width: 100%;\n max-height: 100%;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px; }\n\n@media all and (max-width: 1024px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 937px;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 20px 50px 40px 50px;\n border-radius: 0 0 10px 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n -webkit-line-clamp: initial;\n /* number of lines to show */\n line-clamp: initial; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px; } }\n\n@media all and (max-width: 992px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 719px;\n height: auto;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto;\n display: flex; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 27px 40px 36px;\n border-bottom-left-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px;\n -o-object-fit: cover;\n object-fit: cover; } }\n\n@media all and (max-width: 768px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 432px; } }\n";
10048
+ var css$4 = ".campaign-of-month-module_wrapper__3VW1j {\n width: 1140px;\n height: 400px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 50%;\n height: 400px;\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n padding: 36px 38px 43px 46px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_title__2bUDz {\n font-weight: 500;\n font-size: 20px;\n line-height: 28px;\n text-align: left;\n color: black; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n color: #6d6d6d;\n font-weight: 500;\n font-size: 15px;\n line-height: 24px;\n text-align: left;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 8;\n /* number of lines to show */\n line-clamp: 8;\n -webkit-box-orient: vertical;\n margin-bottom: 25px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo {\n width: 100%;\n height: 52px;\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item__2qUuG {\n display: flex;\n flex-direction: column;\n align-items: center; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_value__2UldJ {\n font-weight: 600;\n font-size: 20px;\n line-height: 28px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_info__2W3vo .campaign-of-month-module_item_name__3ZCL8 {\n font-weight: 500;\n font-size: 14px;\n line-height: 22.4px;\n color: #6d6d6d; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 50%;\n height: 400px;\n border-top-right-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n max-width: 100%;\n max-height: 100%;\n border-bottom-left-radius: 10px;\n border-top-left-radius: 10px; }\n\n@media all and (max-width: 1024px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 937px;\n flex-direction: column;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 20px 50px 40px 50px;\n border-radius: 0 0 10px 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv .campaign-of-month-module_description__6rZ2k {\n -webkit-line-clamp: initial;\n /* number of lines to show */\n line-clamp: initial; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px; } }\n\n@media all and (max-width: 992px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 719px;\n height: auto;\n flex-direction: column; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_leftSide__22wcl {\n width: 100%;\n height: auto;\n display: flex; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_rightSide__FXQyv {\n width: 100%;\n height: auto;\n padding: 27px 40px 36px;\n border-bottom-left-radius: 10px;\n border-bottom-right-radius: 10px; }\n .campaign-of-month-module_wrapper__3VW1j .campaign-of-month-module_image__2YMoT {\n width: 100%;\n max-width: 100%;\n max-height: 100%;\n border-top-right-radius: 10px;\n border-top-left-radius: 10px;\n border-bottom-left-radius: 0px;\n -o-object-fit: cover;\n object-fit: cover; } }\n\n@media all and (max-width: 768px) {\n .campaign-of-month-module_wrapper__3VW1j {\n width: 100%;\n max-width: 342px; } }\n";
10049
10049
  var cls$4 = {"wrapper":"campaign-of-month-module_wrapper__3VW1j","rightSide":"campaign-of-month-module_rightSide__FXQyv","title":"campaign-of-month-module_title__2bUDz","description":"campaign-of-month-module_description__6rZ2k","info":"campaign-of-month-module_info__2W3vo","item":"campaign-of-month-module_item__2qUuG","item_value":"campaign-of-month-module_item_value__2UldJ","item_name":"campaign-of-month-module_item_name__3ZCL8","leftSide":"campaign-of-month-module_leftSide__22wcl","image":"campaign-of-month-module_image__2YMoT"};
10050
10050
  styleInject(css$4);
10051
10051
 
@@ -10194,7 +10194,7 @@ DonateCard.propTypes = {
10194
10194
  description: _pt.string
10195
10195
  };
10196
10196
 
10197
- var css$7 = ".featured-campaign-card-module_wrapper__Lx4z3 {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n padding: 20px;\n cursor: pointer; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_imageWrapper__1Znnd {\n height: 100%;\n display: flex;\n align-items: center; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_coverImage__HUvxd {\n border-radius: 8px;\n width: -webkit-fit-content;\n width: fit-content; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_image__ZtL5s {\n width: 100%;\n border-radius: 8px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_title__3rmNH {\n width: 100%;\n padding-top: 5px;\n padding-bottom: 10px;\n font-weight: 700;\n font-size: 15px;\n line-height: 21px;\n text-align: left;\n color: black;\n height: 50px;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_description__NZDGW {\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n color: black;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 700;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n border-radius: 10px;\n grid-gap: 20px;\n grid-gap: 20px;\n gap: 20px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_subtext__2eSW5 {\n width: 100%;\n color: #6d6d6d;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 500;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n margin-left: 3px;\n margin-right: 3px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_FRPText__1QVdV {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n color: #6d6d6d;\n line-height: 20px;\n font-size: 15px;\n margin: 0 0 10px 0; }\n";
10197
+ var css$7 = ".featured-campaign-card-module_wrapper__Lx4z3 {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n cursor: pointer; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_imageWrapper__1Znnd {\n height: 100%;\n display: flex;\n align-items: center; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_coverImage__HUvxd {\n border-radius: 8px;\n width: -webkit-fit-content;\n width: fit-content; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_image__ZtL5s {\n width: 100%;\n border-radius: 8px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_title__3rmNH {\n width: 100%;\n padding-top: 5px;\n padding-bottom: 10px;\n font-weight: 700;\n font-size: 15px;\n line-height: 21px;\n text-align: left;\n color: black;\n height: 50px;\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_description__NZDGW {\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n color: black;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 700;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n border-radius: 10px;\n grid-gap: 20px;\n grid-gap: 20px;\n gap: 20px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_subtext__2eSW5 {\n width: 100%;\n color: #6d6d6d;\n padding-top: 5px;\n padding-bottom: 5px;\n font-weight: 500;\n font-size: 13px;\n line-height: 18.2px;\n text-align: left;\n margin-left: 3px;\n margin-right: 3px; }\n .featured-campaign-card-module_wrapper__Lx4z3 .featured-campaign-card-module_FRPText__1QVdV {\n overflow: hidden;\n display: -webkit-box;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n color: #6d6d6d;\n line-height: 20px;\n font-size: 15px;\n margin: 0 0 10px 0; }\n";
10198
10198
  var cls$7 = {"wrapper":"featured-campaign-card-module_wrapper__Lx4z3","imageWrapper":"featured-campaign-card-module_imageWrapper__1Znnd","coverImage":"featured-campaign-card-module_coverImage__HUvxd","image":"featured-campaign-card-module_image__ZtL5s","title":"featured-campaign-card-module_title__3rmNH","description":"featured-campaign-card-module_description__NZDGW","subtext":"featured-campaign-card-module_subtext__2eSW5","FRPText":"featured-campaign-card-module_FRPText__1QVdV"};
10199
10199
  styleInject(css$7);
10200
10200
 
@@ -10212,15 +10212,15 @@ var FeaturedCampaignCard = function FeaturedCampaignCard(_ref) {
10212
10212
  goal = _ref$goal === void 0 ? 0 : _ref$goal,
10213
10213
  _ref$completed = _ref.completed,
10214
10214
  completed = _ref$completed === void 0 ? 0 : _ref$completed,
10215
- _ref$width = _ref.width,
10216
- width = _ref$width === void 0 ? 0 : _ref$width,
10215
+ _ref$maxWidth = _ref.maxWidth,
10216
+ maxWidth = _ref$maxWidth === void 0 ? 0 : _ref$maxWidth,
10217
10217
  onClick = _ref.onClick,
10218
10218
  fundraisingText = _ref.fundraisingText,
10219
10219
  handleImageError = _ref.handleImageError;
10220
10220
  return React__default.createElement("div", {
10221
10221
  className: classnames(cls$7.wrapper, className),
10222
10222
  style: {
10223
- width: "".concat(width, "px")
10223
+ maxWidth: "".concat(maxWidth, "px")
10224
10224
  },
10225
10225
  onClick: onClick
10226
10226
  }, React__default.createElement("div", null, React__default.createElement("div", {
@@ -10253,7 +10253,7 @@ FeaturedCampaignCard.propTypes = {
10253
10253
  title: _pt.string,
10254
10254
  description: _pt.string,
10255
10255
  completed: _pt.number,
10256
- width: _pt.number,
10256
+ maxWidth: _pt.number,
10257
10257
  donation: _pt.number,
10258
10258
  raised: _pt.number,
10259
10259
  goal: _pt.number,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.0.0-c84eb11a",
3
+ "version": "0.0.0-c85735f7",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",