@mycause/ui 0.0.0-cfb95594 → 0.0.0-cff699ab

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.
Files changed (28) hide show
  1. package/dist/components/campaign-of-month/campaign-of-month.d.ts +2 -2
  2. package/dist/components/campaign-of-month/campaign-of-month.stories.d.ts +1 -1
  3. package/dist/components/comment-section/comment-section-v2/comment-section-v2.d.ts +31 -0
  4. package/dist/components/comment-section/comment-section-v2/sub-comments-v2.d.ts +11 -0
  5. package/dist/components/comment-section/comment-section.d.ts +1 -0
  6. package/dist/components/comment-section/comment-section.stories.d.ts +6 -0
  7. package/dist/components/comment-section/index.d.ts +1 -0
  8. package/dist/components/donation-form/donation-form-v2/donation-form-v2.d.ts +8 -1
  9. package/dist/components/featured-campaign-card/featured-campaign-card.d.ts +3 -2
  10. package/dist/components/featured-campaign-card/featured-campaign-card.stories.d.ts +1 -1
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/info-represent-campaign/index.d.ts +1 -0
  13. package/dist/components/info-represent-campaign/info-represent-campaign.d.ts +11 -0
  14. package/dist/components/{info-procurator-campaign/info-procurator-campaign.stories.d.ts → info-represent-campaign/info-represent-campaign.stories.d.ts} +1 -1
  15. package/dist/components/nav/nav-search.d.ts +2 -1
  16. package/dist/components/partner-dashboard-chart/chart.d.ts +3 -0
  17. package/dist/components/{icon/toggle-button.stories.d.ts → partner-dashboard-chart/chart.stories.d.ts} +2 -1
  18. package/dist/components/partner-dashboard-chart/index.d.ts +1 -0
  19. package/dist/index.esm.js +548 -278
  20. package/dist/index.js +549 -277
  21. package/dist/theme/theme.d.ts +4 -0
  22. package/package.json +1 -1
  23. package/styles/index.css +4 -0
  24. package/dist/components/featured-campaign-card /featured-campaign-card.d.ts +0 -14
  25. package/dist/components/featured-campaign-card /featured-campaign-card.stories.d.ts +0 -14
  26. package/dist/components/icon/toggle-button.d.ts +0 -11
  27. package/dist/components/info-procurator-campaign/index.d.ts +0 -1
  28. package/dist/components/info-procurator-campaign/info-procurator-campaign.d.ts +0 -6
@@ -21,6 +21,8 @@ export declare type Theme = {
21
21
  secondary: string;
22
22
  muted: string;
23
23
  inactive: string;
24
+ partner: string;
25
+ coral: string;
24
26
  };
25
27
  background: {
26
28
  neutral: string;
@@ -29,6 +31,8 @@ export declare type Theme = {
29
31
  secondary: string;
30
32
  muted: string;
31
33
  inactive: string;
34
+ partner: string;
35
+ coral: string;
32
36
  };
33
37
  };
34
38
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycause/ui",
3
- "version": "0.0.0-cfb95594",
3
+ "version": "0.0.0-cff699ab",
4
4
  "author": "Marc Porciuncula <marc@mycause.com.au>",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
package/styles/index.css CHANGED
@@ -491,6 +491,10 @@ svg.mdc-button__icon {
491
491
  .mdc-button--raised.mdc-button--display {
492
492
  padding: 0 1.75rem; }
493
493
 
494
+ .mdc-button {
495
+ background: #358b76;
496
+ background: var(--mdc-theme-primary); }
497
+
494
498
  .mdc-button--outlined.mdc-button--display {
495
499
  padding: 0 calc(1.75rem - 2px); }
496
500
 
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- export interface FeaturedCampaignCardProps {
3
- className?: string;
4
- imageURL?: string;
5
- title?: string;
6
- description?: string;
7
- completed?: number;
8
- width?: number;
9
- donation?: number;
10
- raised?: number;
11
- goal?: number;
12
- }
13
- declare const FeaturedCampaignCard: ({ className, imageURL, title, donation, raised, goal, completed, width, }: FeaturedCampaignCardProps) => JSX.Element;
14
- export default FeaturedCampaignCard;
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import CenterDecorator from "../../utils/center-decorator";
3
- declare const _default: {
4
- title: string;
5
- decorators: (typeof CenterDecorator)[];
6
- component: ({ className, imageURL, title, donation, raised, goal, completed, width, }: import("./featured-campaign-card").FeaturedCampaignCardProps) => JSX.Element;
7
- };
8
- export default _default;
9
- export declare const featuredcampaigncard: {
10
- (): JSX.Element;
11
- story: {
12
- name: string;
13
- };
14
- };
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { IconButtonProps as MDCIconButtonProps } from "@material/react-icon-button";
3
- declare type IconButtonTypes = HTMLButtonElement | HTMLAnchorElement;
4
- export interface ToggleButtonProps extends Omit<MDCIconButtonProps<IconButtonTypes>, "onChange" | "value" | "ref" | "children"> {
5
- active: React.ReactNode;
6
- inactive: React.ReactNode;
7
- onChange?: (value: boolean) => void;
8
- value: boolean;
9
- }
10
- declare const ToggleButton: React.ForwardRefExoticComponent<ToggleButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
11
- export default ToggleButton;
@@ -1 +0,0 @@
1
- export { default as InfoInsteadCampaign } from "./info-procurator-campaign";
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export interface DonationCampaignFormProps {
3
- id?: string;
4
- }
5
- declare const InfoProcuratorCampaign: ({ id }: DonationCampaignFormProps) => JSX.Element;
6
- export default InfoProcuratorCampaign;