@mycause/ui 0.0.0-c3c28f91 → 0.0.0-c3efa43e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/featured-campaign-card /featured-campaign-card.d.ts +14 -0
- package/dist/components/featured-campaign-card /featured-campaign-card.stories.d.ts +14 -0
- package/dist/components/logo/logo-type.d.ts +2 -1
- package/dist/components/nav/icons/IconBigger.d.ts +5 -0
- package/dist/components/nav/icons/IconSmaller.d.ts +5 -0
- package/dist/components/nav/nav-search-control.d.ts +2 -1
- package/dist/components/nav/nav-sign-in-control.d.ts +2 -1
- package/dist/components/nav/nav.d.ts +2 -1
- package/dist/components/tabs/nav-tabs.d.ts +2 -1
- package/dist/index.esm.js +144 -105
- package/dist/index.js +144 -105
- package/package.json +1 -1
- package/styles/index.css +4417 -4172
- package/styles/reset.css +308 -5
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
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,9 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare type LogoTypeProps = {
|
|
3
3
|
size?: "large";
|
|
4
|
+
isDark?: boolean;
|
|
4
5
|
};
|
|
5
6
|
/**
|
|
6
7
|
* A dummy mycause logo
|
|
7
8
|
*/
|
|
8
|
-
declare function LogoType({ size }: LogoTypeProps): JSX.Element;
|
|
9
|
+
declare function LogoType({ size, isDark }: LogoTypeProps): JSX.Element;
|
|
9
10
|
export default LogoType;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
interface NavigationSearchControlProps {
|
|
3
3
|
onChangeSearchOpen: (isOpen: boolean) => void;
|
|
4
4
|
analyticsId?: string;
|
|
5
|
+
isDark?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare function NavigationSearchControl({ onChangeSearchOpen, analyticsId, }: NavigationSearchControlProps): JSX.Element;
|
|
7
|
+
declare function NavigationSearchControl({ onChangeSearchOpen, analyticsId, isDark, }: NavigationSearchControlProps): JSX.Element;
|
|
7
8
|
export default NavigationSearchControl;
|
|
@@ -6,6 +6,7 @@ interface NavigationSignInControlProps extends Omit<React.HTMLProps<HTMLDivEleme
|
|
|
6
6
|
handleonRequestSignIn: () => void;
|
|
7
7
|
color?: ColorSpecifier;
|
|
8
8
|
noIcon?: boolean;
|
|
9
|
+
isDark?: boolean;
|
|
9
10
|
}
|
|
10
|
-
declare function NavigationSignInControl({ analyticsId, handleonRequestSignIn, compact, className, color, noIcon, ...rest }: NavigationSignInControlProps): JSX.Element;
|
|
11
|
+
declare function NavigationSignInControl({ analyticsId, handleonRequestSignIn, compact, className, color, noIcon, isDark, ...rest }: NavigationSignInControlProps): JSX.Element;
|
|
11
12
|
export default NavigationSignInControl;
|
|
@@ -50,6 +50,7 @@ export declare type NavigationProps = {
|
|
|
50
50
|
isCompactHeight?: boolean;
|
|
51
51
|
setSearchToLeft?: boolean;
|
|
52
52
|
menuReverse?: boolean;
|
|
53
|
+
isDark?: boolean;
|
|
53
54
|
};
|
|
54
|
-
declare function Navigation({ logo, menus, links, stats, cta, cta2, user, userMenu, search, login, isSticky, isCompactHeight, setSearchToLeft, menuReverse, }: NavigationProps): JSX.Element;
|
|
55
|
+
declare function Navigation({ logo, menus, links, stats, cta, cta2, user, userMenu, search, login, isSticky, isCompactHeight, setSearchToLeft, menuReverse, isDark, }: NavigationProps): JSX.Element;
|
|
55
56
|
export default Navigation;
|
|
@@ -12,6 +12,7 @@ interface TabsProps extends Omit<TabBarProps, "activeIndex" | "handleActiveIndex
|
|
|
12
12
|
active?: string | null;
|
|
13
13
|
onActiveUpdate: (key: string) => void;
|
|
14
14
|
isCompactHeight?: boolean;
|
|
15
|
+
isDark?: boolean;
|
|
15
16
|
}
|
|
16
|
-
declare function NavTabs({ tabs, active, onActiveUpdate, isMinWidth, isMinWidthIndicator, isCompactHeight, className, ...props }: TabsProps): JSX.Element;
|
|
17
|
+
declare function NavTabs({ tabs, active, onActiveUpdate, isMinWidth, isMinWidthIndicator, isCompactHeight, className, isDark, ...props }: TabsProps): JSX.Element;
|
|
17
18
|
export default NavTabs;
|