@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,23 @@
|
|
|
1
|
+
export * from "./Activity";
|
|
2
|
+
export * from "../features/badges";
|
|
3
|
+
export * from "./Board";
|
|
4
|
+
export * from "./Button";
|
|
5
|
+
export * from "./Calendar";
|
|
6
|
+
export * from "./Card";
|
|
7
|
+
export * from "./Home";
|
|
8
|
+
export * from "./Icon";
|
|
9
|
+
export * from "../features/learning-forms";
|
|
10
|
+
export * from "./Loader";
|
|
11
|
+
export * from "./Logo";
|
|
12
|
+
export * from "./Modal";
|
|
13
|
+
export * from "./NavBar";
|
|
14
|
+
export * from "./NotFound";
|
|
15
|
+
export * from "./Onboarding";
|
|
16
|
+
export * from "./Overlay";
|
|
17
|
+
export * from "./Pathway";
|
|
18
|
+
export * from "./Profile";
|
|
19
|
+
export * from "./Progress";
|
|
20
|
+
export * from "./Search";
|
|
21
|
+
export * from "../features/service-tracking";
|
|
22
|
+
export * from "./Task";
|
|
23
|
+
export * from "./Widget";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeButtonProps } from "../BadgeButton/BadgeButton";
|
|
3
|
+
import { BadgeCardProps } from "../BadgeCard/BadgeCard";
|
|
4
|
+
/**
|
|
5
|
+
* BadgeProps
|
|
6
|
+
*/
|
|
7
|
+
export type BadgeProps = BadgeCardProps & BadgeButtonProps & {
|
|
8
|
+
badgeId?: string;
|
|
9
|
+
summary?: string;
|
|
10
|
+
status?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
editChoices?: boolean;
|
|
13
|
+
open?: boolean;
|
|
14
|
+
onOpen?: () => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Badge
|
|
18
|
+
* @param props
|
|
19
|
+
* @constructor
|
|
20
|
+
*/
|
|
21
|
+
export declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeProps } from "./Badge";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeProps>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* BadgeActivityProps
|
|
4
|
+
*/
|
|
5
|
+
export type BadgeActivityProps = {
|
|
6
|
+
activityId?: string;
|
|
7
|
+
activityName?: string;
|
|
8
|
+
criteriaName?: string;
|
|
9
|
+
namespace?: string;
|
|
10
|
+
imageURL?: string;
|
|
11
|
+
xp?: number;
|
|
12
|
+
formId?: string;
|
|
13
|
+
milestone?: boolean;
|
|
14
|
+
badgeId?: string;
|
|
15
|
+
criterionId?: string;
|
|
16
|
+
completedAt?: string;
|
|
17
|
+
chosenAt?: string;
|
|
18
|
+
tags?: string[];
|
|
19
|
+
startTime?: string;
|
|
20
|
+
isSelected?: boolean;
|
|
21
|
+
onToggle?: () => void;
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* BadgeActivity
|
|
26
|
+
* @param props
|
|
27
|
+
* @constructor
|
|
28
|
+
*/
|
|
29
|
+
export declare const BadgeActivity: (props: BadgeActivityProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeActivityProps } from "./BadgeActivity";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeActivityProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeActivityProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeActivityProps } from "../BadgeActivity/BadgeActivity";
|
|
3
|
+
/**
|
|
4
|
+
* CriterionProps
|
|
5
|
+
*/
|
|
6
|
+
type CriterionProps = {
|
|
7
|
+
criterionId?: string;
|
|
8
|
+
displayName?: string;
|
|
9
|
+
namespace?: string;
|
|
10
|
+
options?: BadgeActivityProps[];
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* BadgeActivityMenuProps
|
|
15
|
+
*/
|
|
16
|
+
export type BadgeActivityMenuProps = {
|
|
17
|
+
criteria?: CriterionProps[];
|
|
18
|
+
onBack?: () => void;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* BadgeActivityMenu
|
|
22
|
+
* @param props
|
|
23
|
+
* @constructor
|
|
24
|
+
*/
|
|
25
|
+
export declare const BadgeActivityMenu: (props: BadgeActivityMenuProps) => JSX.Element;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeActivityMenuProps } from "./BadgeActivityMenu";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeActivityMenuProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeActivityMenuProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from "../../../components/Icon/Icon";
|
|
3
|
+
/**
|
|
4
|
+
* BadgeButtonProps
|
|
5
|
+
*/
|
|
6
|
+
export type BadgeButtonProps = {
|
|
7
|
+
displayName?: string;
|
|
8
|
+
icon?: IconName;
|
|
9
|
+
imageURL?: string;
|
|
10
|
+
startedAt?: string;
|
|
11
|
+
finishedAt?: string;
|
|
12
|
+
level?: number;
|
|
13
|
+
isLocked?: boolean;
|
|
14
|
+
progress?: number;
|
|
15
|
+
target?: number;
|
|
16
|
+
readonly?: boolean;
|
|
17
|
+
onClick?: () => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* BadgeButton
|
|
21
|
+
* @param props
|
|
22
|
+
* @constructor
|
|
23
|
+
*/
|
|
24
|
+
export declare const BadgeButton: (props: BadgeButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeButtonProps } from "./BadgeButton";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeButtonProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeButtonProps>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeActivityProps } from "../BadgeActivity/BadgeActivity";
|
|
3
|
+
import { IconName } from "../../../components/Icon/icons";
|
|
4
|
+
/**
|
|
5
|
+
* CriterionProps
|
|
6
|
+
*/
|
|
7
|
+
type CriterionProps = {
|
|
8
|
+
criterionId?: string;
|
|
9
|
+
displayName?: string;
|
|
10
|
+
namespace?: string;
|
|
11
|
+
options?: BadgeActivityProps[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* BadgeCardProps
|
|
15
|
+
*/
|
|
16
|
+
export type BadgeCardProps = {
|
|
17
|
+
icon?: IconName;
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
displayName?: string;
|
|
20
|
+
imageURL?: string;
|
|
21
|
+
level?: number;
|
|
22
|
+
summary?: string;
|
|
23
|
+
criteria?: CriterionProps[];
|
|
24
|
+
choices?: BadgeActivityProps[];
|
|
25
|
+
canSubmit?: boolean;
|
|
26
|
+
finishedAt?: string;
|
|
27
|
+
preview?: boolean;
|
|
28
|
+
onMoreChoices?: () => void;
|
|
29
|
+
onClose?: () => void;
|
|
30
|
+
onSubmit?: () => void;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* BadgeCard
|
|
34
|
+
* @param props
|
|
35
|
+
* @constructor
|
|
36
|
+
*/
|
|
37
|
+
export declare const BadgeCard: (props: BadgeCardProps) => JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeCardProps } from "./BadgeCard";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeCardProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeCardProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from "../../../components/Icon/Icon";
|
|
3
|
+
/**
|
|
4
|
+
* BadgeEmblemProps
|
|
5
|
+
*/
|
|
6
|
+
export type BadgeEmblemProps = {
|
|
7
|
+
icon?: IconName;
|
|
8
|
+
alt?: string;
|
|
9
|
+
imageURL?: string;
|
|
10
|
+
level?: number;
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* BadgeEmblem
|
|
15
|
+
* @param props
|
|
16
|
+
* @constructor
|
|
17
|
+
*/
|
|
18
|
+
export declare const BadgeEmblem: (props: BadgeEmblemProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeEmblemProps } from "./BadgeEmblem";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeEmblemProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeEmblemProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BadgeProps } from "../Badge/Badge";
|
|
3
|
+
/**
|
|
4
|
+
* BadgeSectionProps
|
|
5
|
+
*/
|
|
6
|
+
export type BadgeSectionProps = {
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
readonly?: boolean;
|
|
9
|
+
showMore?: boolean;
|
|
10
|
+
badges?: BadgeProps[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* BadgeSection
|
|
14
|
+
* @param props
|
|
15
|
+
* @constructor
|
|
16
|
+
*/
|
|
17
|
+
export declare const BadgeSection: (props: BadgeSectionProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeSectionProps } from "./BadgeSection";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeSectionProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeSectionProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* BadgeSuccessDialogProps
|
|
4
|
+
*/
|
|
5
|
+
export type BadgeSuccessDialogProps = {
|
|
6
|
+
displayName?: string;
|
|
7
|
+
xp?: number;
|
|
8
|
+
level?: number;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* BadgeSuccessDialog
|
|
13
|
+
* @param props
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
export declare const BadgeSuccessDialog: (props: BadgeSuccessDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { BadgeSuccessDialogProps } from "./BadgeSuccessDialog";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: BadgeSuccessDialogProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<BadgeSuccessDialogProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* FormExitDialogProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormExitDialogProps = {
|
|
6
|
+
onYes?: () => void;
|
|
7
|
+
onNo?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* FormExitDialog
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const FormExitDialog: (props: FormExitDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormExitDialogProps } from "./FormExitDialog";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormExitDialogProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormExitDialogProps>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* FormItemProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormItemProps = {
|
|
6
|
+
itemId?: string;
|
|
7
|
+
displayName?: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
format?: "question" | "image" | "embed" | "text";
|
|
10
|
+
questionType?: "radio" | "checkbox" | "drop down" | "file upload" | "text" | "date" | "time";
|
|
11
|
+
options?: string[];
|
|
12
|
+
paragraph?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
url?: string;
|
|
16
|
+
answerId?: string;
|
|
17
|
+
journalId?: string;
|
|
18
|
+
questionId?: string;
|
|
19
|
+
responses?: string[];
|
|
20
|
+
minText?: number;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
onResponseChange?: (responses?: string[], file?: Blob) => void;
|
|
23
|
+
onTextBlur?: () => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* FormItem
|
|
27
|
+
* @param props
|
|
28
|
+
* @constructor
|
|
29
|
+
*/
|
|
30
|
+
export declare const FormItem: (props: FormItemProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormItemProps } from "./FormItem";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormItemProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormItemProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* FormSubmitDialogProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormSubmitDialogProps = {
|
|
6
|
+
onGoBack?: () => void;
|
|
7
|
+
onHome?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* FormSubmitDialog
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const FormSubmitDialog: (props: FormSubmitDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormSubmitDialogProps } from "./FormSubmitDialog";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormSubmitDialogProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormSubmitDialogProps>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormItemProps } from "../FormItem/FormItem";
|
|
3
|
+
/**
|
|
4
|
+
* LearningFormProps
|
|
5
|
+
*/
|
|
6
|
+
export type LearningFormProps = {
|
|
7
|
+
formId?: string;
|
|
8
|
+
displayName?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
eta?: string;
|
|
11
|
+
imageURL?: string;
|
|
12
|
+
reflection?: string;
|
|
13
|
+
rating?: number;
|
|
14
|
+
items?: FormItemProps[];
|
|
15
|
+
preview?: boolean;
|
|
16
|
+
onHome?: () => void;
|
|
17
|
+
onGoBack?: () => void;
|
|
18
|
+
onSubmit?: (reflection: string, rating?: number) => Promise<any>;
|
|
19
|
+
onSaveDraft?: (items: FormItemProps[], reflection: string, rating?: number) => Promise<any>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* LearningForm
|
|
23
|
+
* @param props
|
|
24
|
+
* @constructor
|
|
25
|
+
*/
|
|
26
|
+
export declare const LearningForm: (props: LearningFormProps) => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { LearningFormProps } from "./LearningForm";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: LearningFormProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const ParksAndGreenForm: Story<LearningFormProps>;
|
|
16
|
+
/**
|
|
17
|
+
* Component stories
|
|
18
|
+
*/
|
|
19
|
+
export declare const PublicSpeakingForm: Story<LearningFormProps>;
|
|
20
|
+
/**
|
|
21
|
+
* Component stories
|
|
22
|
+
*/
|
|
23
|
+
export declare const CommunityMappingOfSelf: Story<LearningFormProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./LearningForm/LearningForm";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* FormProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormProps = {
|
|
6
|
+
inReview?: boolean;
|
|
7
|
+
showSubmitDialogue?: boolean;
|
|
8
|
+
showExitDialogue?: boolean;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
onSubmit?: (responses: any) => Promise<any>;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Form
|
|
15
|
+
* @param props
|
|
16
|
+
* @constructor
|
|
17
|
+
*/
|
|
18
|
+
export declare const Form: (props: FormProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormProps } from "./Form";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* FormExitDialogProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormExitDialogProps = {
|
|
6
|
+
onYes?: () => void;
|
|
7
|
+
onNo?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* FormExitDialog
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const FormExitDialog: (props: FormExitDialogProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormExitDialogProps } from "./FormExitDialog";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormExitDialogProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormExitDialogProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* FormInputProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormInputProps = {
|
|
6
|
+
headline?: string;
|
|
7
|
+
summary?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
type?: "text" | "number" | "tel" | "email" | "date" | "dropdown";
|
|
10
|
+
options?: string[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
paragraph?: boolean;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
min?: string | number;
|
|
16
|
+
max?: string | number;
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* FormInput
|
|
21
|
+
* @param props
|
|
22
|
+
* @constructor
|
|
23
|
+
*/
|
|
24
|
+
export declare const FormInput: (props: FormInputProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { FormInputProps } from "./FormInput";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: FormInputProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<FormInputProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* FormSubmitDialogProps
|
|
4
|
+
*/
|
|
5
|
+
export type FormSubmitDialogProps = {
|
|
6
|
+
onGoBack?: () => void;
|
|
7
|
+
onContinue?: () => void;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* FormSubmitDialog
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const FormSubmitDialog: (props: FormSubmitDialogProps) => JSX.Element;
|