@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,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { PathwayProgressProps } from "./PathwayProgress";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: PathwayProgressProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<PathwayProgressProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the pathway progress widget
|
|
4
|
+
*/
|
|
5
|
+
export interface PathwayWidgetProps {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
edit?: boolean;
|
|
8
|
+
onHelp?: () => void;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A widget to display pathway progress
|
|
13
|
+
* @param props
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
export declare const PathwayWidget: (props: PathwayWidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { PathwayWidgetProps } from "./PathwayWidget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: PathwayWidgetProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<PathwayWidgetProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the about widget.
|
|
4
|
+
*/
|
|
5
|
+
export type AboutWidgetProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
edit?: boolean;
|
|
8
|
+
impactStatement?: string;
|
|
9
|
+
placeName?: string;
|
|
10
|
+
communityName?: string;
|
|
11
|
+
onEdit?: () => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A widget for displaying additional info about the resident.
|
|
15
|
+
* @param props
|
|
16
|
+
* @constructor
|
|
17
|
+
*/
|
|
18
|
+
export declare const AboutWidget: (props: AboutWidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { AboutWidgetProps } from "./AboutWidget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: AboutWidgetProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<AboutWidgetProps>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconName } from "../../Icon";
|
|
3
|
+
/**
|
|
4
|
+
* The properties for the achievement widget.
|
|
5
|
+
*/
|
|
6
|
+
export interface AchievementWidgetProps {
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
lessonsCompleted?: number;
|
|
9
|
+
badgesEarned?: number;
|
|
10
|
+
civicMilestones?: number;
|
|
11
|
+
serviceHours?: number;
|
|
12
|
+
openDisabled?: boolean;
|
|
13
|
+
openIcon?: IconName;
|
|
14
|
+
onOpen?: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A widget for displaying resident a achievement report.
|
|
18
|
+
* @param props
|
|
19
|
+
* @constructor
|
|
20
|
+
*/
|
|
21
|
+
export declare const AchievementWidget: (props: AchievementWidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { AchievementWidgetProps } from "./AchievementWidget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: AchievementWidgetProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<AchievementWidgetProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the impact score widget.
|
|
4
|
+
*/
|
|
5
|
+
export type ImpactWidgetProps = {
|
|
6
|
+
level?: number;
|
|
7
|
+
xp?: number;
|
|
8
|
+
nextXP?: number;
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A widget for displaying the impact score.
|
|
13
|
+
* @param props
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
export declare const ImpactWidget: (props: ImpactWidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { ImpactWidgetProps } from "./ImpactWidget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: ImpactWidgetProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<ImpactWidgetProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the resident.
|
|
4
|
+
*/
|
|
5
|
+
export type ResidentWidgetProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
avatarURL?: string;
|
|
8
|
+
tenantName?: string;
|
|
9
|
+
givenName?: string;
|
|
10
|
+
familyName?: string;
|
|
11
|
+
createdAt?: string;
|
|
12
|
+
online?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A component for displaying a resident.
|
|
16
|
+
* @param props
|
|
17
|
+
* @constructor
|
|
18
|
+
*/
|
|
19
|
+
export declare const ProfileWidget: (props: ResidentWidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { ResidentWidgetProps } from "./ProfileWidget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: ResidentWidgetProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<ResidentWidgetProps>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* SettingsCardProps
|
|
4
|
+
*/
|
|
5
|
+
export type SettingsCardProps = {
|
|
6
|
+
tenantName?: string;
|
|
7
|
+
givenName?: string;
|
|
8
|
+
familyName?: string;
|
|
9
|
+
grade?: number;
|
|
10
|
+
impactStatement?: string;
|
|
11
|
+
avatarURL?: string;
|
|
12
|
+
accessToken?: string;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
visible?: boolean;
|
|
15
|
+
hasChanges?: boolean;
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
onSave?: (changes?: {
|
|
18
|
+
name?: string;
|
|
19
|
+
givenName?: string;
|
|
20
|
+
familyName?: string;
|
|
21
|
+
grade?: number;
|
|
22
|
+
subject?: string;
|
|
23
|
+
persona?: string;
|
|
24
|
+
impactStatement?: string;
|
|
25
|
+
interests?: string[];
|
|
26
|
+
avatar?: Blob;
|
|
27
|
+
}) => void;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* SettingsCard
|
|
31
|
+
* @param props
|
|
32
|
+
* @constructor
|
|
33
|
+
*/
|
|
34
|
+
export declare const SettingsCard: (props: SettingsCardProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { SettingsCardProps } from "./SettingsCard";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: SettingsCardProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<SettingsCardProps>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The properties for progress.
|
|
4
|
+
*/
|
|
5
|
+
export type ProgressProps = {
|
|
6
|
+
start: number;
|
|
7
|
+
end: number;
|
|
8
|
+
rounded?: boolean;
|
|
9
|
+
color?: "green" | "sky-blue";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A component for displaying progress.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Progress: (props: ProgressProps) => JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProgressProps } from "./Progress";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: ProgressProps) => JSX.Element;
|
|
10
|
+
argTypes: {
|
|
11
|
+
start: {
|
|
12
|
+
defaultValue: number;
|
|
13
|
+
};
|
|
14
|
+
end: {
|
|
15
|
+
defaultValue: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
/**
|
|
21
|
+
* Component stories
|
|
22
|
+
*/
|
|
23
|
+
export declare const Component: Story<ProgressProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./Progress";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SearchResultProps } from "./SearchResult/SearchResult";
|
|
3
|
+
export type SearchProps = {
|
|
4
|
+
autofocus?: boolean;
|
|
5
|
+
category?: string;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
value?: string;
|
|
10
|
+
onOpen?: () => void;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
results?: React.ReactElement<SearchResultProps> | React.ReactElement<SearchResultProps>[] | null;
|
|
13
|
+
onSearch?: (search: string) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare const Search: (props: SearchProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the search button.
|
|
4
|
+
*/
|
|
5
|
+
export type SearchButtonProps = {
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for starting a search via click.
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const SearchButton: (props: SearchButtonProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { SearchButtonProps } from "./SearchButton";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: SearchButtonProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<SearchButtonProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { SearchResultProps } from "./SearchResult";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: SearchResultProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<SearchResultProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SearchProps } from "./Search";
|
|
3
|
+
import { Story } from "@storybook/react";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: SearchProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component stories
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<SearchProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* TaskItemProps
|
|
4
|
+
*/
|
|
5
|
+
export type TaskItemProps = {
|
|
6
|
+
headline?: string;
|
|
7
|
+
full?: boolean;
|
|
8
|
+
status?: "todo" | "in-progress" | "done";
|
|
9
|
+
onAction?: () => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* TaskItem
|
|
13
|
+
* @param props
|
|
14
|
+
* @constructor
|
|
15
|
+
*/
|
|
16
|
+
export declare const TaskItem: (props: TaskItemProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { TaskItemProps } from "./TaskItem";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: TaskItemProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<TaskItemProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the task workflow.
|
|
4
|
+
*/
|
|
5
|
+
export type TaskListProps = {
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
active?: "todo" | "in-progress" | "done";
|
|
8
|
+
onTodo?: () => void;
|
|
9
|
+
onInProgress?: () => void;
|
|
10
|
+
onDone?: () => void;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* A component for the task workflow.
|
|
15
|
+
* @param props
|
|
16
|
+
* @constructor
|
|
17
|
+
*/
|
|
18
|
+
export declare const TaskList: (props: TaskListProps) => JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { TaskListProps } from "./TaskList";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: TaskListProps) => JSX.Element;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
/**
|
|
13
|
+
* Component view
|
|
14
|
+
*/
|
|
15
|
+
export declare const Component: Story<TaskListProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the widget.
|
|
4
|
+
*/
|
|
5
|
+
export type WidgetProps = {
|
|
6
|
+
headless?: boolean;
|
|
7
|
+
borderless?: boolean;
|
|
8
|
+
color?: "sky" | "inherit";
|
|
9
|
+
isLoading?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A component for widgets.
|
|
14
|
+
* @param props
|
|
15
|
+
* @constructor
|
|
16
|
+
*/
|
|
17
|
+
export declare const Widget: (props: WidgetProps) => JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the widget body.
|
|
4
|
+
*/
|
|
5
|
+
export type WidgetBodyProps = {
|
|
6
|
+
spacing?: "sm" | "md" | "none";
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* A component for the widget body.
|
|
11
|
+
* @param props
|
|
12
|
+
* @constructor
|
|
13
|
+
*/
|
|
14
|
+
export declare const WidgetBody: (props: WidgetBodyProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { WidgetBodyProps } from "./WidgetBody";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WidgetBodyProps) => JSX.Element;
|
|
10
|
+
argTypes: {};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
/**
|
|
14
|
+
* Component view
|
|
15
|
+
*/
|
|
16
|
+
export declare const Component: Story<WidgetBodyProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The properties for the widget header.
|
|
4
|
+
*/
|
|
5
|
+
export type WidgetHeaderProps = {
|
|
6
|
+
loose?: boolean;
|
|
7
|
+
divide?: boolean;
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for widget headers.
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const WidgetHeader: (props: WidgetHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { WidgetHeaderProps } from "./WidgetHeader";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WidgetHeaderProps) => JSX.Element;
|
|
10
|
+
argTypes: {};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
/**
|
|
14
|
+
* Component view
|
|
15
|
+
*/
|
|
16
|
+
export declare const Component: Story<WidgetHeaderProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ButtonSize } from "../../Button/Button";
|
|
3
|
+
import { IconProps } from "../../Icon/v0/Icon";
|
|
4
|
+
/**
|
|
5
|
+
* The properties for the widget header link.
|
|
6
|
+
*/
|
|
7
|
+
export type WidgetHeaderLinkProps = {
|
|
8
|
+
display?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
size?: ButtonSize;
|
|
12
|
+
children: string | React.ReactElement<IconProps>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A component for widget header call to action.
|
|
16
|
+
* @param props
|
|
17
|
+
* @constructor
|
|
18
|
+
*/
|
|
19
|
+
export declare const WidgetHeaderLink: (props: WidgetHeaderLinkProps) => JSX.Element | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { WidgetHeaderLinkProps } from "./WidgetHeaderLink";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WidgetHeaderLinkProps) => JSX.Element | null;
|
|
10
|
+
argTypes: {};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
/**
|
|
14
|
+
* Component view
|
|
15
|
+
*/
|
|
16
|
+
export declare const Component: Story<WidgetHeaderLinkProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IconName } from "../../Icon/v0/Icon";
|
|
3
|
+
/**
|
|
4
|
+
* The properties for the widget title.
|
|
5
|
+
*/
|
|
6
|
+
export type WidgetTitleProps = {
|
|
7
|
+
icon?: IconName;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A component for widget titles.
|
|
12
|
+
* @param props
|
|
13
|
+
* @constructor
|
|
14
|
+
*/
|
|
15
|
+
export declare const WidgetTitle: (props: WidgetTitleProps) => JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { WidgetTitleProps } from "./WidgetTitle";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WidgetTitleProps) => JSX.Element;
|
|
10
|
+
argTypes: {};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
/**
|
|
14
|
+
* Component view
|
|
15
|
+
*/
|
|
16
|
+
export declare const Component: Story<WidgetTitleProps>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Story } from "@storybook/react";
|
|
3
|
+
import { WidgetProps } from "./Widget";
|
|
4
|
+
/**
|
|
5
|
+
* Storybook component configuration
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: {
|
|
8
|
+
title: string;
|
|
9
|
+
component: (props: WidgetProps) => JSX.Element;
|
|
10
|
+
argTypes: {};
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
13
|
+
/**
|
|
14
|
+
* Component view
|
|
15
|
+
*/
|
|
16
|
+
export declare const Component: Story<WidgetProps>;
|