@mycause/ui 0.0.0-cadf499b → 0.0.0-cb0a82c0

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.
@@ -61,3 +61,4 @@ export * from "./my-account-frp-preview";
61
61
  export * from "./my-account-stats-donated";
62
62
  export * from "./my-account-stats-raised";
63
63
  export * from "./input";
64
+ export * from "./my-account-frp-closed";
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const Icons: {
3
+ arrowNext: () => JSX.Element;
4
+ };
5
+ export default Icons;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface FrpArchiveImgProps {
3
+ img?: string;
4
+ link?: string;
5
+ title?: string;
6
+ }
7
+ declare const FrpArchiveImg: ({ img, link, title }: FrpArchiveImgProps) => JSX.Element;
8
+ export default FrpArchiveImg;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ interface FrpInfomationProps {
3
+ amountOfweek: number;
4
+ donations: number;
5
+ daysToGo: number;
6
+ amountRaised: number;
7
+ amountGoal: number;
8
+ sqSize: number;
9
+ strokeWidth: number;
10
+ }
11
+ declare const FrpInfomation: ({ amountOfweek, donations, daysToGo, amountRaised, amountGoal, sqSize, strokeWidth, }: FrpInfomationProps) => JSX.Element;
12
+ export default FrpInfomation;
@@ -0,0 +1 @@
1
+ export { default as MyAccountFrpPreview } from "./my-account-frp-archive";
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ export interface MyAccountFrpArchiveProps {
3
+ img?: string;
4
+ link?: string;
5
+ title?: string;
6
+ amountOfweek: number;
7
+ donations: number;
8
+ daysToGo: number;
9
+ amountRaised: number;
10
+ amountGoal: number;
11
+ sqSize: number;
12
+ strokeWidth: number;
13
+ }
14
+ declare const MyAccountFrpArchive: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, }: MyAccountFrpArchiveProps) => JSX.Element;
15
+ export default MyAccountFrpArchive;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((...args: any) => any)[];
5
+ };
6
+ export default _default;
7
+ export declare const MyAccountFrpArchiveStory: {
8
+ (): JSX.Element;
9
+ story: {
10
+ name: string;
11
+ };
12
+ };
13
+ export declare const MyAccountFrpArchiveStoryV3: {
14
+ (): JSX.Element;
15
+ story: {
16
+ name: string;
17
+ };
18
+ };
19
+ export declare const MyAccountFrpArchiveStoryV2: {
20
+ (): JSX.Element;
21
+ story: {
22
+ name: string;
23
+ };
24
+ };
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ declare const Icons: {
3
+ arrowNext: () => JSX.Element;
4
+ };
5
+ export default Icons;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface FrpClosedImgProps {
3
+ img?: string;
4
+ link?: string;
5
+ title?: string;
6
+ }
7
+ declare const FrpClosedImg: ({ img, link, title }: FrpClosedImgProps) => JSX.Element;
8
+ export default FrpClosedImg;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface FrpInfomationProps {
3
+ donations: number;
4
+ amountRaised: number;
5
+ amountGoal: number;
6
+ sqSize: number;
7
+ strokeWidth: number;
8
+ }
9
+ declare const FrpInfomation: ({ donations, amountRaised, amountGoal, sqSize, strokeWidth, }: FrpInfomationProps) => JSX.Element;
10
+ export default FrpInfomation;
@@ -0,0 +1 @@
1
+ export { default as MyAccountFrpClosed } from "./my-account-frp-closed";
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export interface MyAccountFrpClosedProps {
3
+ img?: string;
4
+ link?: string;
5
+ title?: string;
6
+ donations: number;
7
+ amountRaised: number;
8
+ amountGoal: number;
9
+ sqSize: number;
10
+ strokeWidth: number;
11
+ }
12
+ declare const MyAccountFrpClosed: ({ img, link, title, amountGoal, amountRaised, donations, sqSize, strokeWidth, }: MyAccountFrpClosedProps) => JSX.Element;
13
+ export default MyAccountFrpClosed;
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ declare const _default: {
3
+ title: string;
4
+ decorators: ((...args: any) => any)[];
5
+ };
6
+ export default _default;
7
+ export declare const MyAccountFrpCloseStory: {
8
+ (): JSX.Element;
9
+ story: {
10
+ name: string;
11
+ };
12
+ };
13
+ export declare const MyAccountFrpArchiveStoryV3: {
14
+ (): JSX.Element;
15
+ story: {
16
+ name: string;
17
+ };
18
+ };
19
+ export declare const MyAccountFrpArchiveStoryV2: {
20
+ (): JSX.Element;
21
+ story: {
22
+ name: string;
23
+ };
24
+ };
@@ -7,6 +7,7 @@ interface FrpInfomationProps {
7
7
  amountGoal: number;
8
8
  sqSize: number;
9
9
  strokeWidth: number;
10
+ manageLink?: string;
10
11
  }
11
- declare const FrpInfomation: ({ amountOfweek, donations, daysToGo, amountRaised, amountGoal, sqSize, strokeWidth, }: FrpInfomationProps) => JSX.Element;
12
+ declare const FrpInfomation: ({ amountOfweek, donations, daysToGo, amountRaised, amountGoal, sqSize, strokeWidth, manageLink, }: FrpInfomationProps) => JSX.Element;
12
13
  export default FrpInfomation;
@@ -10,6 +10,7 @@ export interface MyAccountFrpPreviewProps {
10
10
  amountGoal: number;
11
11
  sqSize: number;
12
12
  strokeWidth: number;
13
+ manageLink?: string;
13
14
  }
14
- declare const MyAccountFrpPreview: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, }: MyAccountFrpPreviewProps) => JSX.Element;
15
+ declare const MyAccountFrpPreview: ({ img, link, title, amountGoal, amountOfweek, amountRaised, donations, sqSize, strokeWidth, daysToGo, manageLink, }: MyAccountFrpPreviewProps) => JSX.Element;
15
16
  export default MyAccountFrpPreview;
package/dist/index.esm.js CHANGED
@@ -29546,7 +29546,7 @@ MyAccountStartFundraiseCard.propTypes = {
29546
29546
  width: _pt.string.isRequired
29547
29547
  };
29548
29548
 
29549
- var css$p = ".my-account-choose-charity-card-module_wrapper__3ne7s {\n height: 226px;\n display: flex;\n align-items: center;\n border-radius: 16px;\n background-color: #F7F7F8;\n font-family: \"Montserrat\", sans-serif;\n justify-content: space-around;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n height: 100%;\n padding: 30px 30px 30px 0;\n margin-left: 12%; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n text-align: left;\n color: #404041; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 270px;\n height: 214px;\n margin-left: 50px; }\n\n@media all and (max-width: 768px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n height: 100%;\n margin-left: 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n margin-left: 50px;\n padding: 16px 34px 15px 0px;\n justify-content: space-around;\n z-index: 1; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 24px;\n line-height: 32px; } }\n\n@media all and (max-width: 580px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -16px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 60%;\n margin-left: 24px;\n padding: 40px 20px 40px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 20px;\n line-height: 30px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n\n@media all and (max-width: 440px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -34px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 90%;\n margin-left: 24px;\n padding: 20px 20px 20px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 16px;\n line-height: 24px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n";
29549
+ var css$p = ".my-account-choose-charity-card-module_wrapper__3ne7s {\n height: 226px;\n display: flex;\n align-items: center;\n border-radius: 16px;\n background-color: #F7F7F8;\n font-family: \"Montserrat\", sans-serif;\n justify-content: space-around;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n height: 100%;\n padding: 30px 30px 30px 0;\n margin-left: 12%; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n text-align: left;\n color: #404041; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 270px;\n height: 214px;\n margin-left: 50px; }\n\n@media all and (max-width: 768px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 100%;\n margin-left: 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n margin-left: 50px;\n padding: 16px 34px 15px 0px;\n justify-content: space-around;\n z-index: 1; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 24px;\n line-height: 32px; } }\n\n@media all and (max-width: 580px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -16px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 60%;\n margin-left: 24px;\n padding: 40px 20px 40px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 20px;\n line-height: 30px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n\n@media all and (max-width: 440px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -34px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 90%;\n margin-left: 24px;\n padding: 20px 20px 20px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 16px;\n line-height: 24px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n";
29550
29550
  var cls$p = {"wrapper":"my-account-choose-charity-card-module_wrapper__3ne7s","rightSide":"my-account-choose-charity-card-module_rightSide__2-yf1","title":"my-account-choose-charity-card-module_title__2CB3U","leftSide":"my-account-choose-charity-card-module_leftSide__3S_e3"};
29551
29551
  styleInject(css$p);
29552
29552
 
@@ -29838,7 +29838,6 @@ var MyAccountSidebar = function MyAccountSidebar(_ref) {
29838
29838
  setIsExpand = _useState2[1];
29839
29839
 
29840
29840
  var handleOnChangeActiveTabOnMobile = function handleOnChangeActiveTabOnMobile() {
29841
- console.log("jjjj");
29842
29841
  setIsExpand(false);
29843
29842
  };
29844
29843
 
@@ -30098,7 +30097,8 @@ var FrpInfomation = function FrpInfomation(_ref) {
30098
30097
  amountRaised = _ref.amountRaised,
30099
30098
  amountGoal = _ref.amountGoal,
30100
30099
  sqSize = _ref.sqSize,
30101
- strokeWidth = _ref.strokeWidth;
30100
+ strokeWidth = _ref.strokeWidth,
30101
+ manageLink = _ref.manageLink;
30102
30102
  var formatterMoney = new Intl.NumberFormat("en-US", {
30103
30103
  style: "currency",
30104
30104
  currency: "USD",
@@ -30149,7 +30149,10 @@ var FrpInfomation = function FrpInfomation(_ref) {
30149
30149
  }, formatterMoney.format(amountRaised).replace("$", "$ ")), " ", React.createElement("br", null), "raised of ", React.createElement("br", null), " ", Intl.NumberFormat().format(amountGoal), " goal")
30150
30150
  })), React.createElement("button", {
30151
30151
  className: cls$s.manageBtn,
30152
- color: "greenLinear"
30152
+ color: "greenLinear",
30153
+ onClick: function onClick() {
30154
+ return window.open(manageLink);
30155
+ }
30153
30156
  }, "Manage Campaign ", React.createElement(Icons$1.arrowNext, null))));
30154
30157
  };
30155
30158
 
@@ -30160,7 +30163,8 @@ FrpInfomation.propTypes = {
30160
30163
  amountRaised: _pt.number.isRequired,
30161
30164
  amountGoal: _pt.number.isRequired,
30162
30165
  sqSize: _pt.number.isRequired,
30163
- strokeWidth: _pt.number.isRequired
30166
+ strokeWidth: _pt.number.isRequired,
30167
+ manageLink: _pt.string
30164
30168
  };
30165
30169
 
30166
30170
  var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
@@ -30173,7 +30177,8 @@ var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
30173
30177
  donations = _ref.donations,
30174
30178
  sqSize = _ref.sqSize,
30175
30179
  strokeWidth = _ref.strokeWidth,
30176
- daysToGo = _ref.daysToGo;
30180
+ daysToGo = _ref.daysToGo,
30181
+ manageLink = _ref.manageLink;
30177
30182
  return React.createElement("div", {
30178
30183
  className: cls$s.wrapper,
30179
30184
  onClick: function onClick() {
@@ -30190,7 +30195,8 @@ var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
30190
30195
  amountRaised: amountRaised,
30191
30196
  amountGoal: amountGoal,
30192
30197
  sqSize: sqSize,
30193
- strokeWidth: strokeWidth
30198
+ strokeWidth: strokeWidth,
30199
+ manageLink: manageLink
30194
30200
  }));
30195
30201
  };
30196
30202
 
@@ -30204,7 +30210,8 @@ MyAccountFrpPreview.propTypes = {
30204
30210
  amountRaised: _pt.number.isRequired,
30205
30211
  amountGoal: _pt.number.isRequired,
30206
30212
  sqSize: _pt.number.isRequired,
30207
- strokeWidth: _pt.number.isRequired
30213
+ strokeWidth: _pt.number.isRequired,
30214
+ manageLink: _pt.string
30208
30215
  };
30209
30216
 
30210
30217
  var css$t = ".my-account-stats-donated-module_wrapper__2204E {\n width: 100%;\n border-radius: 16px;\n background: #f2f8f1;\n position: relative;\n font-family: Montserrat;\n text-align: center;\n min-height: 312px;\n display: flex;\n justify-content: center;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_picture__WCuVs {\n position: absolute;\n top: 45px;\n right: 25px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE {\n padding-top: 32px;\n max-width: 300px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_title__2d6nq {\n font-size: 20px;\n font-weight: 700;\n color: #2d8a75;\n padding-bottom: 13px;\n margin: 0; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_number__1cP4D {\n font-size: 24px;\n font-weight: 700;\n color: #2d8a75;\n margin: 10px 0; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_text__293Ij {\n font-size: 16px;\n font-weight: 400;\n color: #404041;\n margin: 0;\n padding-bottom: 24px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_text__293Ij .my-account-stats-donated-module_num__3-ePn {\n font-weight: 700;\n color: #2d8a75; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_view__Faeo3 {\n color: #2D8A75;\n font-size: 14px;\n text-decoration: none; }\n\n@media screen and (max-width: 768px) {\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_picture__WCuVs {\n display: none; } }\n";
@@ -30340,4 +30347,135 @@ Input.propTypes = {
30340
30347
  error: _pt.oneOfType([_pt.string, _pt.oneOf([null]), _pt.bool])
30341
30348
  };
30342
30349
 
30343
- export { Anchor, Avatar, BoldAnchor, Box, Button, ButtonSelect, CampaignCard, CampaignOfMonth, CharityCard, Checkbox, Chip, Chips, ComboField, ComboFieldExpander, CommentSection, CommentSectionV2, Cropper, DatePicker, DonateCard, DonationForm, DonationFormV2, Elevation, FavoriteCharityItem, FeaturedCampaignCard, FieldHelperText, FieldLabel, Flex, FooterV2, FundraisingSection, Grid, HeartToggle, HeroBnner as HeroBanner, HorizontalBar, Icon, IconButton, IconButtonGroup, Input, InputChips, List, Login, MENU_ANCHOR_CLASS, Menu, MenuList, ListDivider as MenuListDivider, MenuListItem, MenuListItemGraphic, ListItemMeta as MenuListItemMeta, MenuListItemText, MenuSurface, Modal, ModalImage, MyAccountChooseCharityCard, MyAccountFrpPreview, MyAccountSidebar, MyAccountStartFundraiseCard, MyAccountStatsDonated, MyAccountStatsRaised, MyCauseTheme, Navigation$1 as Nav, Navigation, PartnerChartStats, PartnerMonthlyDonations, PartnerMonthlyStats, PartnerMonthlyTable, PartnerToggleButton, PartnerToggleButtonBlock, PhoneInput, PhoneNumberInput, Popup, ProgressBar, Radio, RadioGroup, Select, SelectHelperText, CustomSingleDatePicker as SingleDatePicker, Spinner, Stack, StartCampaignCard, Statistics, Switch, Tabs, Text, TextField, HelperText as TextFieldHelperText, TextFieldSearch, ThemeContext, ThemeProvider, ThisMonthCard, Uploader, getColorToken, parseNationalPhoneNumber, useTheme };
30350
+ var css$w = ".my-account-frp-closed-module_wrapper__1I9n9 {\n border-radius: 16px;\n background: #fff;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25);\n display: flex;\n font-family: Montserrat;\n cursor: pointer; }\n .my-account-frp-closed-module_wrapper__1I9n9:hover .my-account-frp-closed-module_coverImage__UyIdc,\n .my-account-frp-closed-module_wrapper__1I9n9:hover .my-account-frp-closed-module_imgOverlay__2KJdC {\n background: rgba(34, 39, 37, 0.2); }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc {\n width: calc(100% - 200px);\n border-radius: 16px 0 0 16px;\n position: relative;\n cursor: pointer;\n opacity: 0.6; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_imgOverlay__2KJdC {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 16px 0 0 16px;\n transition: 0.2s all; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x {\n width: 100%;\n display: flex;\n justify-content: center;\n overflow: hidden;\n border-radius: 16px 0 0 16px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x img.my-account-frp-closed-module_image__3FAn3 {\n width: 100%;\n height: auto; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x .my-account-frp-closed-module_noImg__1Ktbc {\n background: url(\"./background.png\") no-repeat;\n background-size: cover;\n width: 100%;\n height: 460px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0px 0px 0px 16px;\n min-height: 80px;\n opacity: 0.95;\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: var(--Green-Linear, linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%)); }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 20px;\n line-height: 26px;\n font-weight: 700;\n color: #fff;\n padding: 11px 32px;\n margin: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L {\n width: 200px;\n padding: 50px 30px;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L p {\n margin: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 {\n margin-bottom: 16px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 .my-account-frp-closed-module_number__2Uyn9 {\n font-size: 16px;\n font-weight: 700;\n margin-bottom: 5px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 .my-account-frp-closed-module_text__E7Tjr {\n font-size: 14px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu {\n border-radius: 50px;\n border: none;\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: var(--Green-Linear, linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%));\n padding: 8px 16px;\n font-size: 10px;\n font-weight: 700;\n color: #fff;\n display: flex;\n align-items: center;\n cursor: pointer; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu svg {\n margin-left: 8px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu:hover {\n background: #65a797; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_progress__2tfwn {\n margin: 0 0 16px 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverRight__3b5oY {\n display: flex;\n flex-direction: column;\n align-items: center; }\n\n@media all and (max-width: 768px) {\n .my-account-frp-closed-module_wrapper__1I9n9 {\n flex-direction: column; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc {\n width: 100%;\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x {\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_imgOverlay__2KJdC {\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R {\n border-radius: 0;\n min-height: 0;\n min-height: initial; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 18px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L {\n flex-direction: row;\n width: 100%;\n justify-content: space-around;\n padding: 32px 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverItem__2i2wT {\n display: flex;\n flex-direction: column;\n grid-gap: 18px;\n grid-gap: 18px;\n gap: 18px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverItem__2i2wT .my-account-frp-closed-module_item__1S1Q4 {\n margin-bottom: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_progress__2tfwn {\n margin: 0 0 20px 0; } }\n\n@media all and (max-width: 480px) {\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 16px;\n padding: 10px 15px;\n line-height: 20px; } }\n\n@media all and (max-width: 400px) {\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 13px;\n line-height: 16px; } }\n";
30351
+ var cls$w = {"wrapper":"my-account-frp-closed-module_wrapper__1I9n9","coverImage":"my-account-frp-closed-module_coverImage__UyIdc","imgOverlay":"my-account-frp-closed-module_imgOverlay__2KJdC","boxImage":"my-account-frp-closed-module_boxImage__3lh3x","image":"my-account-frp-closed-module_image__3FAn3","noImg":"my-account-frp-closed-module_noImg__1Ktbc","coverTitle":"my-account-frp-closed-module_coverTitle__3OQ7R","title":"my-account-frp-closed-module_title__3M0pI","coverInfomation":"my-account-frp-closed-module_coverInfomation__wrS7L","item":"my-account-frp-closed-module_item__1S1Q4","number":"my-account-frp-closed-module_number__2Uyn9","text":"my-account-frp-closed-module_text__E7Tjr","manageBtn":"my-account-frp-closed-module_manageBtn__3pzfu","progress":"my-account-frp-closed-module_progress__2tfwn","coverRight":"my-account-frp-closed-module_coverRight__3b5oY","coverItem":"my-account-frp-closed-module_coverItem__2i2wT"};
30352
+ styleInject(css$w);
30353
+
30354
+ var FrpClosedImg = function FrpClosedImg(_ref) {
30355
+ var img = _ref.img,
30356
+ link = _ref.link,
30357
+ title = _ref.title;
30358
+ return React.createElement("div", {
30359
+ className: cls$w.coverImage
30360
+ }, React.createElement("div", {
30361
+ className: cls$w.imgOverlay
30362
+ }), React.createElement("div", {
30363
+ className: cls$w.boxImage
30364
+ }, img ? React.createElement("img", {
30365
+ className: cls$w.image,
30366
+ src: img,
30367
+ alt: ""
30368
+ }) : React.createElement("div", {
30369
+ className: cls$w.noImg
30370
+ })), React.createElement("div", {
30371
+ className: cls$w.coverTitle
30372
+ }, React.createElement("p", {
30373
+ className: cls$w.title
30374
+ }, title)));
30375
+ };
30376
+
30377
+ FrpClosedImg.propTypes = {
30378
+ img: _pt.string,
30379
+ link: _pt.string,
30380
+ title: _pt.string
30381
+ };
30382
+
30383
+ var FrpInfomation$1 = function FrpInfomation(_ref) {
30384
+ var donations = _ref.donations,
30385
+ amountRaised = _ref.amountRaised,
30386
+ amountGoal = _ref.amountGoal,
30387
+ sqSize = _ref.sqSize,
30388
+ strokeWidth = _ref.strokeWidth;
30389
+ var formatterMoney = new Intl.NumberFormat("en-US", {
30390
+ style: "currency",
30391
+ currency: "USD",
30392
+ minimumFractionDigits: 0
30393
+ });
30394
+ return React.createElement("div", {
30395
+ className: cls$w.coverInfomation
30396
+ }, React.createElement("div", {
30397
+ className: cls$w.coverItem
30398
+ }, React.createElement("div", {
30399
+ className: cls$w.item
30400
+ }, React.createElement("p", {
30401
+ className: cls$w.number
30402
+ }, donations), React.createElement("p", {
30403
+ className: cls$w.text
30404
+ }, "Donations")), React.createElement("div", {
30405
+ className: cls$w.progress
30406
+ }, React.createElement(CircularProgress, {
30407
+ percentage: amountRaised / amountGoal * 100,
30408
+ sqSize: sqSize,
30409
+ strokeWidth: strokeWidth,
30410
+ color: "#2D8A75",
30411
+ centerContent: React.createElement("p", {
30412
+ className: "text",
30413
+ style: {
30414
+ fontSize: "10px",
30415
+ lineHeight: 1.5
30416
+ }
30417
+ }, React.createElement("span", {
30418
+ style: {
30419
+ fontSize: "14px",
30420
+ fontWeight: 700
30421
+ }
30422
+ }, formatterMoney.format(amountRaised).replace("$", "$ ")), React.createElement("br", null), "raised of ", React.createElement("br", null), " ", Intl.NumberFormat().format(amountGoal), " goal")
30423
+ }))), React.createElement("div", {
30424
+ className: cls$w.coverRight
30425
+ }, React.createElement("div", {
30426
+ className: cls$w.item
30427
+ }, React.createElement("p", {
30428
+ className: cls$w.text
30429
+ }, "This campaign is now closed.")), React.createElement("button", {
30430
+ className: cls$w.manageBtn,
30431
+ color: "greenLinear"
30432
+ }, "View page")));
30433
+ };
30434
+
30435
+ FrpInfomation$1.propTypes = {
30436
+ donations: _pt.number.isRequired,
30437
+ amountRaised: _pt.number.isRequired,
30438
+ amountGoal: _pt.number.isRequired,
30439
+ sqSize: _pt.number.isRequired,
30440
+ strokeWidth: _pt.number.isRequired
30441
+ };
30442
+
30443
+ var MyAccountFrpClosed = function MyAccountFrpClosed(_ref) {
30444
+ var img = _ref.img,
30445
+ link = _ref.link,
30446
+ title = _ref.title,
30447
+ amountGoal = _ref.amountGoal,
30448
+ amountRaised = _ref.amountRaised,
30449
+ donations = _ref.donations,
30450
+ sqSize = _ref.sqSize,
30451
+ strokeWidth = _ref.strokeWidth;
30452
+ return React.createElement("div", {
30453
+ className: cls$w.wrapper,
30454
+ onClick: function onClick() {
30455
+ return window.open(link);
30456
+ }
30457
+ }, React.createElement(FrpClosedImg, {
30458
+ img: img,
30459
+ link: link,
30460
+ title: title
30461
+ }), React.createElement(FrpInfomation$1, {
30462
+ donations: donations,
30463
+ amountRaised: amountRaised,
30464
+ amountGoal: amountGoal,
30465
+ sqSize: sqSize,
30466
+ strokeWidth: strokeWidth
30467
+ }));
30468
+ };
30469
+
30470
+ MyAccountFrpClosed.propTypes = {
30471
+ img: _pt.string,
30472
+ link: _pt.string,
30473
+ title: _pt.string,
30474
+ donations: _pt.number.isRequired,
30475
+ amountRaised: _pt.number.isRequired,
30476
+ amountGoal: _pt.number.isRequired,
30477
+ sqSize: _pt.number.isRequired,
30478
+ strokeWidth: _pt.number.isRequired
30479
+ };
30480
+
30481
+ export { Anchor, Avatar, BoldAnchor, Box, Button, ButtonSelect, CampaignCard, CampaignOfMonth, CharityCard, Checkbox, Chip, Chips, ComboField, ComboFieldExpander, CommentSection, CommentSectionV2, Cropper, DatePicker, DonateCard, DonationForm, DonationFormV2, Elevation, FavoriteCharityItem, FeaturedCampaignCard, FieldHelperText, FieldLabel, Flex, FooterV2, FundraisingSection, Grid, HeartToggle, HeroBnner as HeroBanner, HorizontalBar, Icon, IconButton, IconButtonGroup, Input, InputChips, List, Login, MENU_ANCHOR_CLASS, Menu, MenuList, ListDivider as MenuListDivider, MenuListItem, MenuListItemGraphic, ListItemMeta as MenuListItemMeta, MenuListItemText, MenuSurface, Modal, ModalImage, MyAccountChooseCharityCard, MyAccountFrpClosed, MyAccountFrpPreview, MyAccountSidebar, MyAccountStartFundraiseCard, MyAccountStatsDonated, MyAccountStatsRaised, MyCauseTheme, Navigation$1 as Nav, Navigation, PartnerChartStats, PartnerMonthlyDonations, PartnerMonthlyStats, PartnerMonthlyTable, PartnerToggleButton, PartnerToggleButtonBlock, PhoneInput, PhoneNumberInput, Popup, ProgressBar, Radio, RadioGroup, Select, SelectHelperText, CustomSingleDatePicker as SingleDatePicker, Spinner, Stack, StartCampaignCard, Statistics, Switch, Tabs, Text, TextField, HelperText as TextFieldHelperText, TextFieldSearch, ThemeContext, ThemeProvider, ThisMonthCard, Uploader, getColorToken, parseNationalPhoneNumber, useTheme };
package/dist/index.js CHANGED
@@ -29560,7 +29560,7 @@ MyAccountStartFundraiseCard.propTypes = {
29560
29560
  width: _pt.string.isRequired
29561
29561
  };
29562
29562
 
29563
- var css$p = ".my-account-choose-charity-card-module_wrapper__3ne7s {\n height: 226px;\n display: flex;\n align-items: center;\n border-radius: 16px;\n background-color: #F7F7F8;\n font-family: \"Montserrat\", sans-serif;\n justify-content: space-around;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n height: 100%;\n padding: 30px 30px 30px 0;\n margin-left: 12%; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n text-align: left;\n color: #404041; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 270px;\n height: 214px;\n margin-left: 50px; }\n\n@media all and (max-width: 768px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n height: 100%;\n margin-left: 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n margin-left: 50px;\n padding: 16px 34px 15px 0px;\n justify-content: space-around;\n z-index: 1; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 24px;\n line-height: 32px; } }\n\n@media all and (max-width: 580px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -16px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 60%;\n margin-left: 24px;\n padding: 40px 20px 40px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 20px;\n line-height: 30px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n\n@media all and (max-width: 440px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -34px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 90%;\n margin-left: 24px;\n padding: 20px 20px 20px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 16px;\n line-height: 24px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n";
29563
+ var css$p = ".my-account-choose-charity-card-module_wrapper__3ne7s {\n height: 226px;\n display: flex;\n align-items: center;\n border-radius: 16px;\n background-color: #F7F7F8;\n font-family: \"Montserrat\", sans-serif;\n justify-content: space-around;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n justify-content: space-around;\n height: 100%;\n padding: 30px 30px 30px 0;\n margin-left: 12%; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n text-align: left;\n color: #404041; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 270px;\n height: 214px;\n margin-left: 50px; }\n\n@media all and (max-width: 768px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 100%;\n margin-left: 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n margin-left: 50px;\n padding: 16px 34px 15px 0px;\n justify-content: space-around;\n z-index: 1; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 24px;\n line-height: 32px; } }\n\n@media all and (max-width: 580px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -16px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 60%;\n margin-left: 24px;\n padding: 40px 20px 40px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 20px;\n line-height: 30px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n\n@media all and (max-width: 440px) {\n .my-account-choose-charity-card-module_wrapper__3ne7s {\n overflow: hidden; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 {\n max-width: 40%;\n align-items: center; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_leftSide__3S_e3 img {\n width: 150px;\n margin-left: -34px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 {\n max-width: 90%;\n margin-left: 24px;\n padding: 20px 20px 20px 0; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 .my-account-choose-charity-card-module_title__2CB3U {\n font-size: 16px;\n line-height: 24px; }\n .my-account-choose-charity-card-module_wrapper__3ne7s .my-account-choose-charity-card-module_rightSide__2-yf1 button .mdc-button__label {\n font-size: 14px; } }\n";
29564
29564
  var cls$p = {"wrapper":"my-account-choose-charity-card-module_wrapper__3ne7s","rightSide":"my-account-choose-charity-card-module_rightSide__2-yf1","title":"my-account-choose-charity-card-module_title__2CB3U","leftSide":"my-account-choose-charity-card-module_leftSide__3S_e3"};
29565
29565
  styleInject(css$p);
29566
29566
 
@@ -29852,7 +29852,6 @@ var MyAccountSidebar = function MyAccountSidebar(_ref) {
29852
29852
  setIsExpand = _useState2[1];
29853
29853
 
29854
29854
  var handleOnChangeActiveTabOnMobile = function handleOnChangeActiveTabOnMobile() {
29855
- console.log("jjjj");
29856
29855
  setIsExpand(false);
29857
29856
  };
29858
29857
 
@@ -30112,7 +30111,8 @@ var FrpInfomation = function FrpInfomation(_ref) {
30112
30111
  amountRaised = _ref.amountRaised,
30113
30112
  amountGoal = _ref.amountGoal,
30114
30113
  sqSize = _ref.sqSize,
30115
- strokeWidth = _ref.strokeWidth;
30114
+ strokeWidth = _ref.strokeWidth,
30115
+ manageLink = _ref.manageLink;
30116
30116
  var formatterMoney = new Intl.NumberFormat("en-US", {
30117
30117
  style: "currency",
30118
30118
  currency: "USD",
@@ -30163,7 +30163,10 @@ var FrpInfomation = function FrpInfomation(_ref) {
30163
30163
  }, formatterMoney.format(amountRaised).replace("$", "$ ")), " ", React__default.createElement("br", null), "raised of ", React__default.createElement("br", null), " ", Intl.NumberFormat().format(amountGoal), " goal")
30164
30164
  })), React__default.createElement("button", {
30165
30165
  className: cls$s.manageBtn,
30166
- color: "greenLinear"
30166
+ color: "greenLinear",
30167
+ onClick: function onClick() {
30168
+ return window.open(manageLink);
30169
+ }
30167
30170
  }, "Manage Campaign ", React__default.createElement(Icons$1.arrowNext, null))));
30168
30171
  };
30169
30172
 
@@ -30174,7 +30177,8 @@ FrpInfomation.propTypes = {
30174
30177
  amountRaised: _pt.number.isRequired,
30175
30178
  amountGoal: _pt.number.isRequired,
30176
30179
  sqSize: _pt.number.isRequired,
30177
- strokeWidth: _pt.number.isRequired
30180
+ strokeWidth: _pt.number.isRequired,
30181
+ manageLink: _pt.string
30178
30182
  };
30179
30183
 
30180
30184
  var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
@@ -30187,7 +30191,8 @@ var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
30187
30191
  donations = _ref.donations,
30188
30192
  sqSize = _ref.sqSize,
30189
30193
  strokeWidth = _ref.strokeWidth,
30190
- daysToGo = _ref.daysToGo;
30194
+ daysToGo = _ref.daysToGo,
30195
+ manageLink = _ref.manageLink;
30191
30196
  return React__default.createElement("div", {
30192
30197
  className: cls$s.wrapper,
30193
30198
  onClick: function onClick() {
@@ -30204,7 +30209,8 @@ var MyAccountFrpPreview = function MyAccountFrpPreview(_ref) {
30204
30209
  amountRaised: amountRaised,
30205
30210
  amountGoal: amountGoal,
30206
30211
  sqSize: sqSize,
30207
- strokeWidth: strokeWidth
30212
+ strokeWidth: strokeWidth,
30213
+ manageLink: manageLink
30208
30214
  }));
30209
30215
  };
30210
30216
 
@@ -30218,7 +30224,8 @@ MyAccountFrpPreview.propTypes = {
30218
30224
  amountRaised: _pt.number.isRequired,
30219
30225
  amountGoal: _pt.number.isRequired,
30220
30226
  sqSize: _pt.number.isRequired,
30221
- strokeWidth: _pt.number.isRequired
30227
+ strokeWidth: _pt.number.isRequired,
30228
+ manageLink: _pt.string
30222
30229
  };
30223
30230
 
30224
30231
  var css$t = ".my-account-stats-donated-module_wrapper__2204E {\n width: 100%;\n border-radius: 16px;\n background: #f2f8f1;\n position: relative;\n font-family: Montserrat;\n text-align: center;\n min-height: 312px;\n display: flex;\n justify-content: center;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25); }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_picture__WCuVs {\n position: absolute;\n top: 45px;\n right: 25px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE {\n padding-top: 32px;\n max-width: 300px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_title__2d6nq {\n font-size: 20px;\n font-weight: 700;\n color: #2d8a75;\n padding-bottom: 13px;\n margin: 0; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_number__1cP4D {\n font-size: 24px;\n font-weight: 700;\n color: #2d8a75;\n margin: 10px 0; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_text__293Ij {\n font-size: 16px;\n font-weight: 400;\n color: #404041;\n margin: 0;\n padding-bottom: 24px; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_text__293Ij .my-account-stats-donated-module_num__3-ePn {\n font-weight: 700;\n color: #2d8a75; }\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_content__rIydE .my-account-stats-donated-module_view__Faeo3 {\n color: #2D8A75;\n font-size: 14px;\n text-decoration: none; }\n\n@media screen and (max-width: 768px) {\n .my-account-stats-donated-module_wrapper__2204E .my-account-stats-donated-module_picture__WCuVs {\n display: none; } }\n";
@@ -30354,6 +30361,137 @@ Input.propTypes = {
30354
30361
  error: _pt.oneOfType([_pt.string, _pt.oneOf([null]), _pt.bool])
30355
30362
  };
30356
30363
 
30364
+ var css$w = ".my-account-frp-closed-module_wrapper__1I9n9 {\n border-radius: 16px;\n background: #fff;\n box-shadow: 1px 1px 8px 0px rgba(110, 110, 110, 0.1), 8px 8px 24px 0px rgba(139, 162, 179, 0.25);\n display: flex;\n font-family: Montserrat;\n cursor: pointer; }\n .my-account-frp-closed-module_wrapper__1I9n9:hover .my-account-frp-closed-module_coverImage__UyIdc,\n .my-account-frp-closed-module_wrapper__1I9n9:hover .my-account-frp-closed-module_imgOverlay__2KJdC {\n background: rgba(34, 39, 37, 0.2); }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc {\n width: calc(100% - 200px);\n border-radius: 16px 0 0 16px;\n position: relative;\n cursor: pointer;\n opacity: 0.6; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_imgOverlay__2KJdC {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border-radius: 16px 0 0 16px;\n transition: 0.2s all; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x {\n width: 100%;\n display: flex;\n justify-content: center;\n overflow: hidden;\n border-radius: 16px 0 0 16px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x img.my-account-frp-closed-module_image__3FAn3 {\n width: 100%;\n height: auto; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x .my-account-frp-closed-module_noImg__1Ktbc {\n background: url(\"./background.png\") no-repeat;\n background-size: cover;\n width: 100%;\n height: 460px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R {\n position: absolute;\n bottom: 0;\n display: flex;\n align-items: center;\n width: 100%;\n border-radius: 0px 0px 0px 16px;\n min-height: 80px;\n opacity: 0.95;\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: var(--Green-Linear, linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%)); }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 20px;\n line-height: 26px;\n font-weight: 700;\n color: #fff;\n padding: 11px 32px;\n margin: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L {\n width: 200px;\n padding: 50px 30px;\n text-align: center;\n display: flex;\n flex-direction: column;\n align-items: center; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L p {\n margin: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 {\n margin-bottom: 16px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 .my-account-frp-closed-module_number__2Uyn9 {\n font-size: 16px;\n font-weight: 700;\n margin-bottom: 5px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_item__1S1Q4 .my-account-frp-closed-module_text__E7Tjr {\n font-size: 14px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu {\n border-radius: 50px;\n border: none;\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%);\n background: var(--Green-Linear, linear-gradient(90deg, #2d8a75 0%, #42ccae 97.5%));\n padding: 8px 16px;\n font-size: 10px;\n font-weight: 700;\n color: #fff;\n display: flex;\n align-items: center;\n cursor: pointer; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu svg {\n margin-left: 8px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_manageBtn__3pzfu:hover {\n background: #65a797; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_progress__2tfwn {\n margin: 0 0 16px 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverRight__3b5oY {\n display: flex;\n flex-direction: column;\n align-items: center; }\n\n@media all and (max-width: 768px) {\n .my-account-frp-closed-module_wrapper__1I9n9 {\n flex-direction: column; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc {\n width: 100%;\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_boxImage__3lh3x {\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_imgOverlay__2KJdC {\n border-radius: 16px 16px 0 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R {\n border-radius: 0;\n min-height: 0;\n min-height: initial; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 18px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L {\n flex-direction: row;\n width: 100%;\n justify-content: space-around;\n padding: 32px 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverItem__2i2wT {\n display: flex;\n flex-direction: column;\n grid-gap: 18px;\n grid-gap: 18px;\n gap: 18px; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_coverItem__2i2wT .my-account-frp-closed-module_item__1S1Q4 {\n margin-bottom: 0; }\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverInfomation__wrS7L .my-account-frp-closed-module_progress__2tfwn {\n margin: 0 0 20px 0; } }\n\n@media all and (max-width: 480px) {\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 16px;\n padding: 10px 15px;\n line-height: 20px; } }\n\n@media all and (max-width: 400px) {\n .my-account-frp-closed-module_wrapper__1I9n9 .my-account-frp-closed-module_coverImage__UyIdc .my-account-frp-closed-module_coverTitle__3OQ7R .my-account-frp-closed-module_title__3M0pI {\n font-size: 13px;\n line-height: 16px; } }\n";
30365
+ var cls$w = {"wrapper":"my-account-frp-closed-module_wrapper__1I9n9","coverImage":"my-account-frp-closed-module_coverImage__UyIdc","imgOverlay":"my-account-frp-closed-module_imgOverlay__2KJdC","boxImage":"my-account-frp-closed-module_boxImage__3lh3x","image":"my-account-frp-closed-module_image__3FAn3","noImg":"my-account-frp-closed-module_noImg__1Ktbc","coverTitle":"my-account-frp-closed-module_coverTitle__3OQ7R","title":"my-account-frp-closed-module_title__3M0pI","coverInfomation":"my-account-frp-closed-module_coverInfomation__wrS7L","item":"my-account-frp-closed-module_item__1S1Q4","number":"my-account-frp-closed-module_number__2Uyn9","text":"my-account-frp-closed-module_text__E7Tjr","manageBtn":"my-account-frp-closed-module_manageBtn__3pzfu","progress":"my-account-frp-closed-module_progress__2tfwn","coverRight":"my-account-frp-closed-module_coverRight__3b5oY","coverItem":"my-account-frp-closed-module_coverItem__2i2wT"};
30366
+ styleInject(css$w);
30367
+
30368
+ var FrpClosedImg = function FrpClosedImg(_ref) {
30369
+ var img = _ref.img,
30370
+ link = _ref.link,
30371
+ title = _ref.title;
30372
+ return React__default.createElement("div", {
30373
+ className: cls$w.coverImage
30374
+ }, React__default.createElement("div", {
30375
+ className: cls$w.imgOverlay
30376
+ }), React__default.createElement("div", {
30377
+ className: cls$w.boxImage
30378
+ }, img ? React__default.createElement("img", {
30379
+ className: cls$w.image,
30380
+ src: img,
30381
+ alt: ""
30382
+ }) : React__default.createElement("div", {
30383
+ className: cls$w.noImg
30384
+ })), React__default.createElement("div", {
30385
+ className: cls$w.coverTitle
30386
+ }, React__default.createElement("p", {
30387
+ className: cls$w.title
30388
+ }, title)));
30389
+ };
30390
+
30391
+ FrpClosedImg.propTypes = {
30392
+ img: _pt.string,
30393
+ link: _pt.string,
30394
+ title: _pt.string
30395
+ };
30396
+
30397
+ var FrpInfomation$1 = function FrpInfomation(_ref) {
30398
+ var donations = _ref.donations,
30399
+ amountRaised = _ref.amountRaised,
30400
+ amountGoal = _ref.amountGoal,
30401
+ sqSize = _ref.sqSize,
30402
+ strokeWidth = _ref.strokeWidth;
30403
+ var formatterMoney = new Intl.NumberFormat("en-US", {
30404
+ style: "currency",
30405
+ currency: "USD",
30406
+ minimumFractionDigits: 0
30407
+ });
30408
+ return React__default.createElement("div", {
30409
+ className: cls$w.coverInfomation
30410
+ }, React__default.createElement("div", {
30411
+ className: cls$w.coverItem
30412
+ }, React__default.createElement("div", {
30413
+ className: cls$w.item
30414
+ }, React__default.createElement("p", {
30415
+ className: cls$w.number
30416
+ }, donations), React__default.createElement("p", {
30417
+ className: cls$w.text
30418
+ }, "Donations")), React__default.createElement("div", {
30419
+ className: cls$w.progress
30420
+ }, React__default.createElement(CircularProgress, {
30421
+ percentage: amountRaised / amountGoal * 100,
30422
+ sqSize: sqSize,
30423
+ strokeWidth: strokeWidth,
30424
+ color: "#2D8A75",
30425
+ centerContent: React__default.createElement("p", {
30426
+ className: "text",
30427
+ style: {
30428
+ fontSize: "10px",
30429
+ lineHeight: 1.5
30430
+ }
30431
+ }, React__default.createElement("span", {
30432
+ style: {
30433
+ fontSize: "14px",
30434
+ fontWeight: 700
30435
+ }
30436
+ }, formatterMoney.format(amountRaised).replace("$", "$ ")), React__default.createElement("br", null), "raised of ", React__default.createElement("br", null), " ", Intl.NumberFormat().format(amountGoal), " goal")
30437
+ }))), React__default.createElement("div", {
30438
+ className: cls$w.coverRight
30439
+ }, React__default.createElement("div", {
30440
+ className: cls$w.item
30441
+ }, React__default.createElement("p", {
30442
+ className: cls$w.text
30443
+ }, "This campaign is now closed.")), React__default.createElement("button", {
30444
+ className: cls$w.manageBtn,
30445
+ color: "greenLinear"
30446
+ }, "View page")));
30447
+ };
30448
+
30449
+ FrpInfomation$1.propTypes = {
30450
+ donations: _pt.number.isRequired,
30451
+ amountRaised: _pt.number.isRequired,
30452
+ amountGoal: _pt.number.isRequired,
30453
+ sqSize: _pt.number.isRequired,
30454
+ strokeWidth: _pt.number.isRequired
30455
+ };
30456
+
30457
+ var MyAccountFrpClosed = function MyAccountFrpClosed(_ref) {
30458
+ var img = _ref.img,
30459
+ link = _ref.link,
30460
+ title = _ref.title,
30461
+ amountGoal = _ref.amountGoal,
30462
+ amountRaised = _ref.amountRaised,
30463
+ donations = _ref.donations,
30464
+ sqSize = _ref.sqSize,
30465
+ strokeWidth = _ref.strokeWidth;
30466
+ return React__default.createElement("div", {
30467
+ className: cls$w.wrapper,
30468
+ onClick: function onClick() {
30469
+ return window.open(link);
30470
+ }
30471
+ }, React__default.createElement(FrpClosedImg, {
30472
+ img: img,
30473
+ link: link,
30474
+ title: title
30475
+ }), React__default.createElement(FrpInfomation$1, {
30476
+ donations: donations,
30477
+ amountRaised: amountRaised,
30478
+ amountGoal: amountGoal,
30479
+ sqSize: sqSize,
30480
+ strokeWidth: strokeWidth
30481
+ }));
30482
+ };
30483
+
30484
+ MyAccountFrpClosed.propTypes = {
30485
+ img: _pt.string,
30486
+ link: _pt.string,
30487
+ title: _pt.string,
30488
+ donations: _pt.number.isRequired,
30489
+ amountRaised: _pt.number.isRequired,
30490
+ amountGoal: _pt.number.isRequired,
30491
+ sqSize: _pt.number.isRequired,
30492
+ strokeWidth: _pt.number.isRequired
30493
+ };
30494
+
30357
30495
  exports._React = React__default;
30358
30496
  Object.defineProperty(exports, 'MenuCorner', {
30359
30497
  enumerable: true,
@@ -30413,6 +30551,7 @@ exports.MenuSurface = MenuSurface__default;
30413
30551
  exports.Modal = Modal;
30414
30552
  exports.ModalImage = ModalImage;
30415
30553
  exports.MyAccountChooseCharityCard = MyAccountChooseCharityCard;
30554
+ exports.MyAccountFrpClosed = MyAccountFrpClosed;
30416
30555
  exports.MyAccountFrpPreview = MyAccountFrpPreview;
30417
30556
  exports.MyAccountSidebar = MyAccountSidebar;
30418
30557
  exports.MyAccountStartFundraiseCard = MyAccountStartFundraiseCard;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.0.0-cadf499b",
3
+ "version": "0.0.0-cb0a82c0",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",