@local-civics/hub-ui 0.1.0
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/Activity/ActivityCard/ActivityCard.d.ts +33 -0
- package/dist/components/Activity/ActivityCard/component.stories.d.ts +15 -0
- package/dist/components/Activity/ActivityItem/ActivityItem.d.ts +17 -0
- package/dist/components/Activity/ActivityItem/component.stories.d.ts +15 -0
- package/dist/components/Activity/ActivityList/ActivityList.d.ts +22 -0
- package/dist/components/Activity/ActivityList/component.stories.d.ts +15 -0
- package/dist/components/Activity/ActivityReflection/ActivityReflection.d.ts +23 -0
- package/dist/components/Activity/ActivityReflection/component.stories.d.ts +15 -0
- package/dist/components/Activity/ActivityReflection/index.d.ts +1 -0
- package/dist/components/Activity/Gallery/Gallery.d.ts +19 -0
- package/dist/components/Activity/Gallery/component.stories.d.ts +15 -0
- package/dist/components/Activity/TagFilter/TagFilter.d.ts +14 -0
- package/dist/components/Activity/TagFilter/component.stories.d.ts +15 -0
- package/dist/components/Activity/index.d.ts +5 -0
- package/dist/components/Board/Board.d.ts +16 -0
- package/dist/components/Board/Tab/Tab.d.ts +19 -0
- package/dist/components/Board/Tab/component.stories.d.ts +15 -0
- package/dist/components/Board/component.stories.d.ts +15 -0
- package/dist/components/Board/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +58 -0
- package/dist/components/Button/component.stories.d.ts +15 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Calendar/DateSelection/DateSelection.d.ts +25 -0
- package/dist/components/Calendar/DateSelection/component.stories.d.ts +16 -0
- package/dist/components/Calendar/EventItem/EventItem.d.ts +15 -0
- package/dist/components/Calendar/EventItem/component.stories.d.ts +15 -0
- package/dist/components/Calendar/EventList/EventList.d.ts +16 -0
- package/dist/components/Calendar/EventList/component.stories.d.ts +15 -0
- package/dist/components/Calendar/index.d.ts +3 -0
- package/dist/components/Card/Card.d.ts +15 -0
- package/dist/components/Card/component.stories.d.ts +15 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Home/Home.d.ts +6 -0
- package/dist/components/Home/component.stories.d.ts +15 -0
- package/dist/components/Home/index.d.ts +1 -0
- package/dist/components/Icon/Icon.d.ts +13 -0
- package/dist/components/Icon/component.stories.d.ts +22 -0
- package/dist/components/Icon/icons.d.ts +21 -0
- package/dist/components/Icon/index.d.ts +1 -0
- package/dist/components/Icon/v0/Icon.d.ts +16 -0
- package/dist/components/Icon/v0/component.stories.d.ts +22 -0
- package/dist/components/Icon/v0/data/icons.d.ts +29 -0
- package/dist/components/Loader/Loader.d.ts +12 -0
- package/dist/components/Loader/component.stories.d.ts +20 -0
- package/dist/components/Loader/index.d.ts +1 -0
- package/dist/components/Logo/Logo.d.ts +5 -0
- package/dist/components/Logo/component.stories.d.ts +14 -0
- package/dist/components/Logo/index.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts +19 -0
- package/dist/components/Modal/component.stories.d.ts +15 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/NavBar/NavBar.d.ts +12 -0
- package/dist/components/NavBar/NavLink/NavLink.d.ts +21 -0
- package/dist/components/NavBar/NavLink/component.stories.d.ts +15 -0
- package/dist/components/NavBar/component.stories.d.ts +15 -0
- package/dist/components/NavBar/index.d.ts +2 -0
- package/dist/components/NotFound/NotFound.d.ts +14 -0
- package/dist/components/NotFound/component.stories.d.ts +15 -0
- package/dist/components/NotFound/index.d.ts +1 -0
- package/dist/components/Onboarding/CommunitySearch/CommunitySearch.d.ts +18 -0
- package/dist/components/Onboarding/CommunitySearch/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/ImpactQuiz/ImpactQuiz.d.ts +15 -0
- package/dist/components/Onboarding/ImpactQuiz/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/LegalAgreement/LegalAgreement.d.ts +14 -0
- package/dist/components/Onboarding/LegalAgreement/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/Onboarding.d.ts +30 -0
- package/dist/components/Onboarding/Registration/Registration.d.ts +23 -0
- package/dist/components/Onboarding/Registration/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/RoleSelection/RoleSelection.d.ts +15 -0
- package/dist/components/Onboarding/RoleSelection/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/Welcome/Welcome.d.ts +14 -0
- package/dist/components/Onboarding/Welcome/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/component.stories.d.ts +15 -0
- package/dist/components/Onboarding/index.d.ts +1 -0
- package/dist/components/Overlay/Overlay.d.ts +13 -0
- package/dist/components/Overlay/component.stories.d.ts +15 -0
- package/dist/components/Overlay/index.d.ts +1 -0
- package/dist/components/Pathway/PathwayButton/PathwayButton.d.ts +15 -0
- package/dist/components/Pathway/PathwayButton/component.stories.d.ts +15 -0
- package/dist/components/Pathway/PathwayFilter/PathwayFilter.d.ts +15 -0
- package/dist/components/Pathway/PathwayFilter/component.stories.d.ts +15 -0
- package/dist/components/Pathway/PathwayProgress/PathwayProgress.d.ts +25 -0
- package/dist/components/Pathway/PathwayProgress/component.stories.d.ts +15 -0
- package/dist/components/Pathway/PathwayWidget/PathwayWidget.d.ts +16 -0
- package/dist/components/Pathway/PathwayWidget/component.stories.d.ts +15 -0
- package/dist/components/Pathway/index.d.ts +4 -0
- package/dist/components/Profile/AboutWidget/AboutWidget.d.ts +18 -0
- package/dist/components/Profile/AboutWidget/component.stories.d.ts +15 -0
- package/dist/components/Profile/AchievementWidget/AchievementWidget.d.ts +21 -0
- package/dist/components/Profile/AchievementWidget/component.stories.d.ts +15 -0
- package/dist/components/Profile/ImpactWidget/ImpactWidget.d.ts +16 -0
- package/dist/components/Profile/ImpactWidget/component.stories.d.ts +15 -0
- package/dist/components/Profile/ProfileWidget/ProfileWidget.d.ts +19 -0
- package/dist/components/Profile/ProfileWidget/component.stories.d.ts +15 -0
- package/dist/components/Profile/SettingsCard/SettingsCard.d.ts +34 -0
- package/dist/components/Profile/SettingsCard/component.stories.d.ts +15 -0
- package/dist/components/Profile/index.d.ts +5 -0
- package/dist/components/Progress/Progress.d.ts +14 -0
- package/dist/components/Progress/component.stories.d.ts +23 -0
- package/dist/components/Progress/index.d.ts +1 -0
- package/dist/components/Search/Search.d.ts +15 -0
- package/dist/components/Search/SearchButton/SearchButton.d.ts +15 -0
- package/dist/components/Search/SearchButton/component.stories.d.ts +15 -0
- package/dist/components/Search/SearchResult/SearchResult.d.ts +8 -0
- package/dist/components/Search/SearchResult/component.stories.d.ts +15 -0
- package/dist/components/Search/component.stories.d.ts +15 -0
- package/dist/components/Search/index.d.ts +3 -0
- package/dist/components/Task/TaskItem/TaskItem.d.ts +16 -0
- package/dist/components/Task/TaskItem/component.stories.d.ts +15 -0
- package/dist/components/Task/TaskList/TaskList.d.ts +18 -0
- package/dist/components/Task/TaskList/component.stories.d.ts +15 -0
- package/dist/components/Task/index.d.ts +2 -0
- package/dist/components/Widget/Widget.d.ts +17 -0
- package/dist/components/Widget/WidgetBody/WidgetBody.d.ts +14 -0
- package/dist/components/Widget/WidgetBody/component.stories.d.ts +16 -0
- package/dist/components/Widget/WidgetHeader/WidgetHeader.d.ts +15 -0
- package/dist/components/Widget/WidgetHeader/component.stories.d.ts +16 -0
- package/dist/components/Widget/WidgetHeaderLink/WidgetHeaderLink.d.ts +19 -0
- package/dist/components/Widget/WidgetHeaderLink/component.stories.d.ts +16 -0
- package/dist/components/Widget/WidgetTitle/WidgetTitle.d.ts +15 -0
- package/dist/components/Widget/WidgetTitle/component.stories.d.ts +16 -0
- package/dist/components/Widget/component.stories.d.ts +16 -0
- package/dist/components/Widget/index.d.ts +5 -0
- package/dist/components/index.d.ts +23 -0
- package/dist/features/badges/Badge/Badge.d.ts +21 -0
- package/dist/features/badges/Badge/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeActivity/BadgeActivity.d.ts +29 -0
- package/dist/features/badges/BadgeActivity/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeActivityMenu/BadgeActivityMenu.d.ts +26 -0
- package/dist/features/badges/BadgeActivityMenu/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeButton/BadgeButton.d.ts +24 -0
- package/dist/features/badges/BadgeButton/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeCard/BadgeCard.d.ts +38 -0
- package/dist/features/badges/BadgeCard/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeEmblem/BadgeEmblem.d.ts +18 -0
- package/dist/features/badges/BadgeEmblem/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeSection/BadgeSection.d.ts +17 -0
- package/dist/features/badges/BadgeSection/component.stories.d.ts +15 -0
- package/dist/features/badges/BadgeSuccessDialog/BadgeSuccessDialog.d.ts +16 -0
- package/dist/features/badges/BadgeSuccessDialog/component.stories.d.ts +15 -0
- package/dist/features/badges/index.d.ts +4 -0
- package/dist/features/index.d.ts +3 -0
- package/dist/features/learning-forms/FormExitDialog/FormExitDialog.d.ts +14 -0
- package/dist/features/learning-forms/FormExitDialog/component.stories.d.ts +15 -0
- package/dist/features/learning-forms/FormItem/FormItem.d.ts +30 -0
- package/dist/features/learning-forms/FormItem/component.stories.d.ts +15 -0
- package/dist/features/learning-forms/FormSubmitDialog/FormSubmitDialog.d.ts +14 -0
- package/dist/features/learning-forms/FormSubmitDialog/component.stories.d.ts +15 -0
- package/dist/features/learning-forms/LearningForm/LearningForm.d.ts +26 -0
- package/dist/features/learning-forms/LearningForm/component.stories.d.ts +23 -0
- package/dist/features/learning-forms/index.d.ts +1 -0
- package/dist/features/service-tracking/Form/Form.d.ts +18 -0
- package/dist/features/service-tracking/Form/component.stories.d.ts +15 -0
- package/dist/features/service-tracking/FormExitDialog/FormExitDialog.d.ts +14 -0
- package/dist/features/service-tracking/FormExitDialog/component.stories.d.ts +15 -0
- package/dist/features/service-tracking/FormInput/FormInput.d.ts +24 -0
- package/dist/features/service-tracking/FormInput/component.stories.d.ts +15 -0
- package/dist/features/service-tracking/FormSubmitDialog/FormSubmitDialog.d.ts +14 -0
- package/dist/features/service-tracking/FormSubmitDialog/component.stories.d.ts +15 -0
- package/dist/features/service-tracking/LogServiceButton/LogServiceButton.d.ts +18 -0
- package/dist/features/service-tracking/LogServiceButton/component.stories.d.ts +15 -0
- package/dist/features/service-tracking/index.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.es.js +1 -0
- package/dist/index.js +1 -0
- package/dist/layouts/AuthLayout/AuthLayout.d.ts +33 -0
- package/dist/layouts/AuthLayout/component.stories.d.ts +15 -0
- package/dist/layouts/HomeLayout/HomeLayout.d.ts +21 -0
- package/dist/layouts/HomeLayout/component.stories.d.ts +15 -0
- package/dist/layouts/index.d.ts +2 -0
- package/dist/utils/classname/classname.d.ts +16 -0
- package/dist/utils/colors.d.ts +12 -0
- package/dist/utils/date.d.ts +6 -0
- package/dist/utils/icon/icon.d.ts +5 -0
- package/dist/utils/numbers.d.ts +5 -0
- package/dist/utils/search.d.ts +1 -0
- package/dist/utils/url.d.ts +2 -0
- package/package.json +18 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconProps } from "./Icon";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: IconProps) => JSX.Element | null;
|
|
10
|
+
argTypes: {
|
|
11
|
+
name: {
|
|
12
|
+
table: {
|
|
13
|
+
disable: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
19
|
+
/**
|
|
20
|
+
* Component icon view
|
|
21
|
+
*/
|
|
22
|
+
export declare const Component: Story<IconProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List of icons available
|
|
3
|
+
*/
|
|
4
|
+
export declare const icons: readonly ["default", "calendar", "positive", "negative", "circle", "college & career", "arts & culture", "explore", "goal", "help", "leftArrow", "rightArrow", "policy & government", "recreation", "send", "shield", "profile", "volunteer", "clock", "sponsored", "globe", "pin", "milestone", "citizen", "cohort", "builder", "advocate", "leader", "representative", "bolt", "accept", "close", "menu-close", "pathway", "edit", "settings", "objective", "achievements", "badges", "milestones", "activity", "reflection", "registrations", "lock", "unlock", "badge", "waypoint", "apple", "guest speaker", "search", "menu", "todo", "done", "review", "contingent", "unqualified", "materials", "asynchronous", "synchronous", "export", "service-tracking"];
|
|
5
|
+
/**
|
|
6
|
+
* The icon.
|
|
7
|
+
*/
|
|
8
|
+
interface Icon {
|
|
9
|
+
viewBox: string;
|
|
10
|
+
contents: {
|
|
11
|
+
d?: string;
|
|
12
|
+
fill?: string;
|
|
13
|
+
stroke?: string;
|
|
14
|
+
strokeWidth?: string;
|
|
15
|
+
strokeLinecap?: string;
|
|
16
|
+
strokeLinejoin?: string;
|
|
17
|
+
strokeMiterlimit?: string;
|
|
18
|
+
cx?: string;
|
|
19
|
+
cy?: string;
|
|
20
|
+
r?: string;
|
|
21
|
+
}[];
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Sprite for icons.
|
|
25
|
+
*/
|
|
26
|
+
export declare const sprite: {
|
|
27
|
+
[key in typeof icons[number]]: Icon;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the loader.
|
|
4
|
+
*/
|
|
5
|
+
export type LoaderProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A component for content that is not ready to be displayed.
|
|
11
|
+
*/
|
|
12
|
+
export declare const Loader: (props: LoaderProps) => JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LoaderProps } from "./Loader";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: LoaderProps) => JSX.Element;
|
|
10
|
+
argTypes: {
|
|
11
|
+
isLoading: {
|
|
12
|
+
defaultValue: boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export default _default;
|
|
17
|
+
/**
|
|
18
|
+
* Component stories
|
|
19
|
+
*/
|
|
20
|
+
export declare const Component: Story<LoaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Loader";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
/**
|
|
4
|
+
* Storybook component configuration
|
|
5
|
+
*/
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
component: () => JSX.Element;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
11
|
+
/**
|
|
12
|
+
* Component stories
|
|
13
|
+
*/
|
|
14
|
+
export declare const Component: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Logo";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the modal.
|
|
4
|
+
*/
|
|
5
|
+
export type ModalProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
inline?: boolean;
|
|
9
|
+
top?: boolean;
|
|
10
|
+
plain?: boolean;
|
|
11
|
+
transparent?: boolean;
|
|
12
|
+
stage?: boolean;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
onClose?: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A component for displaying modals
|
|
18
|
+
*/
|
|
19
|
+
export declare const Modal: (props: ModalProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalProps } from "./Modal";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: ModalProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<ModalProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Modal";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NavLinkProps } from "./NavLink/NavLink";
|
|
3
|
+
/**
|
|
4
|
+
* The properties for the nav bar.
|
|
5
|
+
*/
|
|
6
|
+
export type NavBarProps = {
|
|
7
|
+
children?: (React.ReactElement<NavLinkProps> | undefined)[] | React.ReactElement<NavLinkProps>;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A component for navigating the platform.
|
|
11
|
+
*/
|
|
12
|
+
export declare const NavBar: (props: NavBarProps) => JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The nav link name.
|
|
4
|
+
*/
|
|
5
|
+
export type NavLinkName = "home" | "profile" | "explore" | "calendar" | "login" | "logout" | "menu" | "menu-close" | "faq" | "terms" | "privacy";
|
|
6
|
+
/**
|
|
7
|
+
* The properties for navigation links.
|
|
8
|
+
*/
|
|
9
|
+
export type NavLinkProps = {
|
|
10
|
+
name?: NavLinkName;
|
|
11
|
+
menu?: boolean;
|
|
12
|
+
active?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A component for navigation links.
|
|
18
|
+
* @param props
|
|
19
|
+
* @constructor
|
|
20
|
+
*/
|
|
21
|
+
export declare const NavLink: (props: NavLinkProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { NavLinkProps } from "./NavLink";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: NavLinkProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<NavLinkProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NavBarProps } from "./NavBar";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: NavBarProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<NavBarProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* NotFoundProps
|
|
4
|
+
*/
|
|
5
|
+
export type NotFoundProps = {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
onHome?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* NotFound
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const NotFound: (props: NotFoundProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { NotFoundProps } from "./NotFound";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: NotFoundProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<NotFoundProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./NotFound";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SearchProps } from "../../Search";
|
|
3
|
+
/**
|
|
4
|
+
* CommunitySearchProps
|
|
5
|
+
*/
|
|
6
|
+
export type CommunitySearchProps = SearchProps & {
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
name?: string;
|
|
9
|
+
accessCode?: string;
|
|
10
|
+
onSearch?: (search: string) => void;
|
|
11
|
+
onJoin?: (accessCode?: string) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A component for searching for communities
|
|
15
|
+
* @param props
|
|
16
|
+
* @constructor
|
|
17
|
+
*/
|
|
18
|
+
export declare const CommunitySearch: (props: CommunitySearchProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommunitySearchProps } from "./CommunitySearch";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: CommunitySearchProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<CommunitySearchProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* ImpactQuizProps
|
|
4
|
+
*/
|
|
5
|
+
export type ImpactQuizProps = {
|
|
6
|
+
persona?: string;
|
|
7
|
+
interests?: string[];
|
|
8
|
+
onFinish?: (interests: string[]) => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for the onboarding impact quiz
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const ImpactQuiz: (props: ImpactQuizProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ImpactQuizProps } from "./ImpactQuiz";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: ImpactQuizProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<ImpactQuizProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* LegalAgreementProps
|
|
4
|
+
*/
|
|
5
|
+
export type LegalAgreementProps = {
|
|
6
|
+
onDecline?: () => void;
|
|
7
|
+
onAccept?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A component for the onboarding legal agreements
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const LegalAgreement: (props: LegalAgreementProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LegalAgreementProps } from "./LegalAgreement";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: LegalAgreementProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<LegalAgreementProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* OnboardingProps
|
|
4
|
+
*/
|
|
5
|
+
export type OnboardingProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
hasOrganization?: boolean;
|
|
8
|
+
hasPersona?: boolean;
|
|
9
|
+
hasRegistration?: boolean;
|
|
10
|
+
hasInterests?: boolean;
|
|
11
|
+
search?: string;
|
|
12
|
+
persona?: string;
|
|
13
|
+
givenName?: string;
|
|
14
|
+
familyName?: string;
|
|
15
|
+
grade?: number;
|
|
16
|
+
impactStatement?: string;
|
|
17
|
+
interests?: string[];
|
|
18
|
+
organizations?: any[];
|
|
19
|
+
onDeclineLegalAgreement?: () => void;
|
|
20
|
+
onOrganizationSearch?: (search: string) => void;
|
|
21
|
+
onJoinOrganization?: (organizationId: string, accessCode?: string) => void;
|
|
22
|
+
onConfigureTenant: (changes: any) => void;
|
|
23
|
+
onFinish?: () => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A component for onboarding
|
|
27
|
+
* @param props
|
|
28
|
+
* @constructor
|
|
29
|
+
*/
|
|
30
|
+
export declare const Onboarding: (props: OnboardingProps) => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* RegistrationProps
|
|
4
|
+
*/
|
|
5
|
+
export type RegistrationProps = {
|
|
6
|
+
givenName?: string;
|
|
7
|
+
familyName?: string;
|
|
8
|
+
grade?: number;
|
|
9
|
+
impactStatement?: string;
|
|
10
|
+
persona?: string;
|
|
11
|
+
onRegister?: (changes: {
|
|
12
|
+
givenName?: string;
|
|
13
|
+
familyName?: string;
|
|
14
|
+
grade?: number;
|
|
15
|
+
impactStatement?: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* A component for onboarding registration
|
|
20
|
+
* @param props
|
|
21
|
+
* @constructor
|
|
22
|
+
*/
|
|
23
|
+
export declare const Registration: (props: RegistrationProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RegistrationProps } from "./Registration";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: RegistrationProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<RegistrationProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* RoleSelectionProps
|
|
4
|
+
*/
|
|
5
|
+
export type RoleSelectionProps = {
|
|
6
|
+
persona?: string;
|
|
7
|
+
onStudent?: () => void;
|
|
8
|
+
onEducator?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for onboarding role selection
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const RoleSelection: (props: RoleSelectionProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { RoleSelectionProps } from "./RoleSelection";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: RoleSelectionProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<RoleSelectionProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* WelcomeProps
|
|
4
|
+
*/
|
|
5
|
+
export type WelcomeProps = {
|
|
6
|
+
givenName?: string;
|
|
7
|
+
onContinue?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A component for the onboarding welcome
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const Welcome: (props: WelcomeProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { WelcomeProps } from "./Welcome";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WelcomeProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<WelcomeProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { OnboardingProps } from "./Onboarding";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: OnboardingProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<OnboardingProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Onboarding";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* OverlayProps
|
|
4
|
+
*/
|
|
5
|
+
export type OverlayProps = {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Overlay
|
|
10
|
+
* @param props
|
|
11
|
+
* @constructor
|
|
12
|
+
*/
|
|
13
|
+
export declare const Overlay: (props: OverlayProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { OverlayProps } from "./Overlay";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: OverlayProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<OverlayProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Overlay";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* PathwayProps
|
|
4
|
+
*/
|
|
5
|
+
export type PathwayButtonProps = {
|
|
6
|
+
active?: boolean;
|
|
7
|
+
name?: "policy & government" | "arts & culture" | "college & career" | "volunteer" | "recreation";
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for displaying a single pathway
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const PathwayButton: (props: PathwayButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { PathwayButtonProps } from "./PathwayButton";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: PathwayButtonProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Existing.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<PathwayButtonProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FunctionComponent } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* PathwayFilter props
|
|
4
|
+
*/
|
|
5
|
+
export interface PathwayFilterProps {
|
|
6
|
+
title: string;
|
|
7
|
+
pathways?: string[];
|
|
8
|
+
onChange?: (pathways: string[]) => void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* PathwayFilter
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const PathwayFilter: FunctionComponent<PathwayFilterProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Story } from "@storybook/react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { PathwayFilterProps } from "./PathwayFilter";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: React.FunctionComponent<PathwayFilterProps>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Existing.
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<PathwayFilterProps>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from "../../Icon";
|
|
3
|
+
/**
|
|
4
|
+
* The activity progress height.
|
|
5
|
+
*/
|
|
6
|
+
export type PathwayProgressHeight = "sm" | "md";
|
|
7
|
+
/**
|
|
8
|
+
* The properties for the pathway progress.
|
|
9
|
+
*/
|
|
10
|
+
export type PathwayProgressProps = {
|
|
11
|
+
xp?: number;
|
|
12
|
+
nextXP?: number;
|
|
13
|
+
level?: number;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
icon?: IconName;
|
|
17
|
+
height?: PathwayProgressHeight;
|
|
18
|
+
onOpen?: () => void;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A component for displaying pathway progress.
|
|
22
|
+
* @param props
|
|
23
|
+
* @constructor
|
|
24
|
+
*/
|
|
25
|
+
export declare const PathwayProgress: (props: PathwayProgressProps) => JSX.Element;
|