@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.
Files changed (178) hide show
  1. package/dist/components/Activity/ActivityCard/ActivityCard.d.ts +33 -0
  2. package/dist/components/Activity/ActivityCard/component.stories.d.ts +15 -0
  3. package/dist/components/Activity/ActivityItem/ActivityItem.d.ts +17 -0
  4. package/dist/components/Activity/ActivityItem/component.stories.d.ts +15 -0
  5. package/dist/components/Activity/ActivityList/ActivityList.d.ts +22 -0
  6. package/dist/components/Activity/ActivityList/component.stories.d.ts +15 -0
  7. package/dist/components/Activity/ActivityReflection/ActivityReflection.d.ts +23 -0
  8. package/dist/components/Activity/ActivityReflection/component.stories.d.ts +15 -0
  9. package/dist/components/Activity/ActivityReflection/index.d.ts +1 -0
  10. package/dist/components/Activity/Gallery/Gallery.d.ts +19 -0
  11. package/dist/components/Activity/Gallery/component.stories.d.ts +15 -0
  12. package/dist/components/Activity/TagFilter/TagFilter.d.ts +14 -0
  13. package/dist/components/Activity/TagFilter/component.stories.d.ts +15 -0
  14. package/dist/components/Activity/index.d.ts +5 -0
  15. package/dist/components/Board/Board.d.ts +16 -0
  16. package/dist/components/Board/Tab/Tab.d.ts +19 -0
  17. package/dist/components/Board/Tab/component.stories.d.ts +15 -0
  18. package/dist/components/Board/component.stories.d.ts +15 -0
  19. package/dist/components/Board/index.d.ts +2 -0
  20. package/dist/components/Button/Button.d.ts +58 -0
  21. package/dist/components/Button/component.stories.d.ts +15 -0
  22. package/dist/components/Button/index.d.ts +1 -0
  23. package/dist/components/Calendar/DateSelection/DateSelection.d.ts +25 -0
  24. package/dist/components/Calendar/DateSelection/component.stories.d.ts +16 -0
  25. package/dist/components/Calendar/EventItem/EventItem.d.ts +15 -0
  26. package/dist/components/Calendar/EventItem/component.stories.d.ts +15 -0
  27. package/dist/components/Calendar/EventList/EventList.d.ts +16 -0
  28. package/dist/components/Calendar/EventList/component.stories.d.ts +15 -0
  29. package/dist/components/Calendar/index.d.ts +3 -0
  30. package/dist/components/Card/Card.d.ts +15 -0
  31. package/dist/components/Card/component.stories.d.ts +15 -0
  32. package/dist/components/Card/index.d.ts +1 -0
  33. package/dist/components/Home/Home.d.ts +6 -0
  34. package/dist/components/Home/component.stories.d.ts +15 -0
  35. package/dist/components/Home/index.d.ts +1 -0
  36. package/dist/components/Icon/Icon.d.ts +13 -0
  37. package/dist/components/Icon/component.stories.d.ts +22 -0
  38. package/dist/components/Icon/icons.d.ts +21 -0
  39. package/dist/components/Icon/index.d.ts +1 -0
  40. package/dist/components/Icon/v0/Icon.d.ts +16 -0
  41. package/dist/components/Icon/v0/component.stories.d.ts +22 -0
  42. package/dist/components/Icon/v0/data/icons.d.ts +29 -0
  43. package/dist/components/Loader/Loader.d.ts +12 -0
  44. package/dist/components/Loader/component.stories.d.ts +20 -0
  45. package/dist/components/Loader/index.d.ts +1 -0
  46. package/dist/components/Logo/Logo.d.ts +5 -0
  47. package/dist/components/Logo/component.stories.d.ts +14 -0
  48. package/dist/components/Logo/index.d.ts +1 -0
  49. package/dist/components/Modal/Modal.d.ts +19 -0
  50. package/dist/components/Modal/component.stories.d.ts +15 -0
  51. package/dist/components/Modal/index.d.ts +1 -0
  52. package/dist/components/NavBar/NavBar.d.ts +12 -0
  53. package/dist/components/NavBar/NavLink/NavLink.d.ts +21 -0
  54. package/dist/components/NavBar/NavLink/component.stories.d.ts +15 -0
  55. package/dist/components/NavBar/component.stories.d.ts +15 -0
  56. package/dist/components/NavBar/index.d.ts +2 -0
  57. package/dist/components/NotFound/NotFound.d.ts +14 -0
  58. package/dist/components/NotFound/component.stories.d.ts +15 -0
  59. package/dist/components/NotFound/index.d.ts +1 -0
  60. package/dist/components/Onboarding/CommunitySearch/CommunitySearch.d.ts +18 -0
  61. package/dist/components/Onboarding/CommunitySearch/component.stories.d.ts +15 -0
  62. package/dist/components/Onboarding/ImpactQuiz/ImpactQuiz.d.ts +15 -0
  63. package/dist/components/Onboarding/ImpactQuiz/component.stories.d.ts +15 -0
  64. package/dist/components/Onboarding/LegalAgreement/LegalAgreement.d.ts +14 -0
  65. package/dist/components/Onboarding/LegalAgreement/component.stories.d.ts +15 -0
  66. package/dist/components/Onboarding/Onboarding.d.ts +30 -0
  67. package/dist/components/Onboarding/Registration/Registration.d.ts +23 -0
  68. package/dist/components/Onboarding/Registration/component.stories.d.ts +15 -0
  69. package/dist/components/Onboarding/RoleSelection/RoleSelection.d.ts +15 -0
  70. package/dist/components/Onboarding/RoleSelection/component.stories.d.ts +15 -0
  71. package/dist/components/Onboarding/Welcome/Welcome.d.ts +14 -0
  72. package/dist/components/Onboarding/Welcome/component.stories.d.ts +15 -0
  73. package/dist/components/Onboarding/component.stories.d.ts +15 -0
  74. package/dist/components/Onboarding/index.d.ts +1 -0
  75. package/dist/components/Overlay/Overlay.d.ts +13 -0
  76. package/dist/components/Overlay/component.stories.d.ts +15 -0
  77. package/dist/components/Overlay/index.d.ts +1 -0
  78. package/dist/components/Pathway/PathwayButton/PathwayButton.d.ts +15 -0
  79. package/dist/components/Pathway/PathwayButton/component.stories.d.ts +15 -0
  80. package/dist/components/Pathway/PathwayFilter/PathwayFilter.d.ts +15 -0
  81. package/dist/components/Pathway/PathwayFilter/component.stories.d.ts +15 -0
  82. package/dist/components/Pathway/PathwayProgress/PathwayProgress.d.ts +25 -0
  83. package/dist/components/Pathway/PathwayProgress/component.stories.d.ts +15 -0
  84. package/dist/components/Pathway/PathwayWidget/PathwayWidget.d.ts +16 -0
  85. package/dist/components/Pathway/PathwayWidget/component.stories.d.ts +15 -0
  86. package/dist/components/Pathway/index.d.ts +4 -0
  87. package/dist/components/Profile/AboutWidget/AboutWidget.d.ts +18 -0
  88. package/dist/components/Profile/AboutWidget/component.stories.d.ts +15 -0
  89. package/dist/components/Profile/AchievementWidget/AchievementWidget.d.ts +21 -0
  90. package/dist/components/Profile/AchievementWidget/component.stories.d.ts +15 -0
  91. package/dist/components/Profile/ImpactWidget/ImpactWidget.d.ts +16 -0
  92. package/dist/components/Profile/ImpactWidget/component.stories.d.ts +15 -0
  93. package/dist/components/Profile/ProfileWidget/ProfileWidget.d.ts +19 -0
  94. package/dist/components/Profile/ProfileWidget/component.stories.d.ts +15 -0
  95. package/dist/components/Profile/SettingsCard/SettingsCard.d.ts +34 -0
  96. package/dist/components/Profile/SettingsCard/component.stories.d.ts +15 -0
  97. package/dist/components/Profile/index.d.ts +5 -0
  98. package/dist/components/Progress/Progress.d.ts +14 -0
  99. package/dist/components/Progress/component.stories.d.ts +23 -0
  100. package/dist/components/Progress/index.d.ts +1 -0
  101. package/dist/components/Search/Search.d.ts +15 -0
  102. package/dist/components/Search/SearchButton/SearchButton.d.ts +15 -0
  103. package/dist/components/Search/SearchButton/component.stories.d.ts +15 -0
  104. package/dist/components/Search/SearchResult/SearchResult.d.ts +8 -0
  105. package/dist/components/Search/SearchResult/component.stories.d.ts +15 -0
  106. package/dist/components/Search/component.stories.d.ts +15 -0
  107. package/dist/components/Search/index.d.ts +3 -0
  108. package/dist/components/Task/TaskItem/TaskItem.d.ts +16 -0
  109. package/dist/components/Task/TaskItem/component.stories.d.ts +15 -0
  110. package/dist/components/Task/TaskList/TaskList.d.ts +18 -0
  111. package/dist/components/Task/TaskList/component.stories.d.ts +15 -0
  112. package/dist/components/Task/index.d.ts +2 -0
  113. package/dist/components/Widget/Widget.d.ts +17 -0
  114. package/dist/components/Widget/WidgetBody/WidgetBody.d.ts +14 -0
  115. package/dist/components/Widget/WidgetBody/component.stories.d.ts +16 -0
  116. package/dist/components/Widget/WidgetHeader/WidgetHeader.d.ts +15 -0
  117. package/dist/components/Widget/WidgetHeader/component.stories.d.ts +16 -0
  118. package/dist/components/Widget/WidgetHeaderLink/WidgetHeaderLink.d.ts +19 -0
  119. package/dist/components/Widget/WidgetHeaderLink/component.stories.d.ts +16 -0
  120. package/dist/components/Widget/WidgetTitle/WidgetTitle.d.ts +15 -0
  121. package/dist/components/Widget/WidgetTitle/component.stories.d.ts +16 -0
  122. package/dist/components/Widget/component.stories.d.ts +16 -0
  123. package/dist/components/Widget/index.d.ts +5 -0
  124. package/dist/components/index.d.ts +23 -0
  125. package/dist/features/badges/Badge/Badge.d.ts +21 -0
  126. package/dist/features/badges/Badge/component.stories.d.ts +15 -0
  127. package/dist/features/badges/BadgeActivity/BadgeActivity.d.ts +29 -0
  128. package/dist/features/badges/BadgeActivity/component.stories.d.ts +15 -0
  129. package/dist/features/badges/BadgeActivityMenu/BadgeActivityMenu.d.ts +26 -0
  130. package/dist/features/badges/BadgeActivityMenu/component.stories.d.ts +15 -0
  131. package/dist/features/badges/BadgeButton/BadgeButton.d.ts +24 -0
  132. package/dist/features/badges/BadgeButton/component.stories.d.ts +15 -0
  133. package/dist/features/badges/BadgeCard/BadgeCard.d.ts +38 -0
  134. package/dist/features/badges/BadgeCard/component.stories.d.ts +15 -0
  135. package/dist/features/badges/BadgeEmblem/BadgeEmblem.d.ts +18 -0
  136. package/dist/features/badges/BadgeEmblem/component.stories.d.ts +15 -0
  137. package/dist/features/badges/BadgeSection/BadgeSection.d.ts +17 -0
  138. package/dist/features/badges/BadgeSection/component.stories.d.ts +15 -0
  139. package/dist/features/badges/BadgeSuccessDialog/BadgeSuccessDialog.d.ts +16 -0
  140. package/dist/features/badges/BadgeSuccessDialog/component.stories.d.ts +15 -0
  141. package/dist/features/badges/index.d.ts +4 -0
  142. package/dist/features/index.d.ts +3 -0
  143. package/dist/features/learning-forms/FormExitDialog/FormExitDialog.d.ts +14 -0
  144. package/dist/features/learning-forms/FormExitDialog/component.stories.d.ts +15 -0
  145. package/dist/features/learning-forms/FormItem/FormItem.d.ts +30 -0
  146. package/dist/features/learning-forms/FormItem/component.stories.d.ts +15 -0
  147. package/dist/features/learning-forms/FormSubmitDialog/FormSubmitDialog.d.ts +14 -0
  148. package/dist/features/learning-forms/FormSubmitDialog/component.stories.d.ts +15 -0
  149. package/dist/features/learning-forms/LearningForm/LearningForm.d.ts +26 -0
  150. package/dist/features/learning-forms/LearningForm/component.stories.d.ts +23 -0
  151. package/dist/features/learning-forms/index.d.ts +1 -0
  152. package/dist/features/service-tracking/Form/Form.d.ts +18 -0
  153. package/dist/features/service-tracking/Form/component.stories.d.ts +15 -0
  154. package/dist/features/service-tracking/FormExitDialog/FormExitDialog.d.ts +14 -0
  155. package/dist/features/service-tracking/FormExitDialog/component.stories.d.ts +15 -0
  156. package/dist/features/service-tracking/FormInput/FormInput.d.ts +24 -0
  157. package/dist/features/service-tracking/FormInput/component.stories.d.ts +15 -0
  158. package/dist/features/service-tracking/FormSubmitDialog/FormSubmitDialog.d.ts +14 -0
  159. package/dist/features/service-tracking/FormSubmitDialog/component.stories.d.ts +15 -0
  160. package/dist/features/service-tracking/LogServiceButton/LogServiceButton.d.ts +18 -0
  161. package/dist/features/service-tracking/LogServiceButton/component.stories.d.ts +15 -0
  162. package/dist/features/service-tracking/index.d.ts +1 -0
  163. package/dist/index.d.ts +4 -0
  164. package/dist/index.es.js +1 -0
  165. package/dist/index.js +1 -0
  166. package/dist/layouts/AuthLayout/AuthLayout.d.ts +33 -0
  167. package/dist/layouts/AuthLayout/component.stories.d.ts +15 -0
  168. package/dist/layouts/HomeLayout/HomeLayout.d.ts +21 -0
  169. package/dist/layouts/HomeLayout/component.stories.d.ts +15 -0
  170. package/dist/layouts/index.d.ts +2 -0
  171. package/dist/utils/classname/classname.d.ts +16 -0
  172. package/dist/utils/colors.d.ts +12 -0
  173. package/dist/utils/date.d.ts +6 -0
  174. package/dist/utils/icon/icon.d.ts +5 -0
  175. package/dist/utils/numbers.d.ts +5 -0
  176. package/dist/utils/search.d.ts +1 -0
  177. package/dist/utils/url.d.ts +2 -0
  178. 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,4 @@
1
+ export * from "./PathwayButton/PathwayButton";
2
+ export * from "./PathwayFilter/PathwayFilter";
3
+ export * from "./PathwayProgress/PathwayProgress";
4
+ export * from "./PathwayWidget/PathwayWidget";
@@ -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,5 @@
1
+ export * from "./AboutWidget/AboutWidget";
2
+ export * from "./AchievementWidget/AchievementWidget";
3
+ export * from "./SettingsCard/SettingsCard";
4
+ export * from "./ImpactWidget/ImpactWidget";
5
+ export * from "./ProfileWidget/ProfileWidget";
@@ -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,8 @@
1
+ /// <reference types="react" />
2
+ import { IconName } from "../../Icon/v0/Icon";
3
+ export type SearchResultProps = {
4
+ title?: string;
5
+ icon?: IconName;
6
+ onClick?: () => void;
7
+ };
8
+ export declare const SearchResult: (props: SearchResultProps) => JSX.Element;
@@ -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,3 @@
1
+ export * from "./SearchButton/SearchButton";
2
+ export * from "./SearchResult/SearchResult";
3
+ export * from "./Search";
@@ -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,2 @@
1
+ export * from "./TaskItem/TaskItem";
2
+ export * from "./TaskList/TaskList";
@@ -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>;
@@ -0,0 +1,5 @@
1
+ export * from "./WidgetBody/WidgetBody";
2
+ export * from "./WidgetHeader/WidgetHeader";
3
+ export * from "./WidgetHeaderLink/WidgetHeaderLink";
4
+ export * from "./WidgetTitle/WidgetTitle";
5
+ export * from "./Widget";