@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,33 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ActivityCardProps
4
+ */
5
+ export type ActivityCardProps = {
6
+ headline?: string;
7
+ imageURL?: string;
8
+ pathway?: string;
9
+ xp?: number;
10
+ summary?: string;
11
+ skills?: string[];
12
+ tags?: string[];
13
+ startTime?: string;
14
+ endTime?: string;
15
+ link?: string;
16
+ formId?: string;
17
+ address?: string;
18
+ isBookmarked?: boolean;
19
+ canReflect?: boolean;
20
+ milestone?: boolean;
21
+ onRegister?: () => void;
22
+ onUnregister?: () => void;
23
+ onLaunch?: () => void;
24
+ onReflect?: () => void;
25
+ onSkillClick?: (skill: string) => void;
26
+ onClose?: () => void;
27
+ };
28
+ /**
29
+ * ActivityCard
30
+ * @param props
31
+ * @constructor
32
+ */
33
+ export declare const ActivityCard: (props: ActivityCardProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ActivityCardProps } from "./ActivityCard";
3
+ import { Story } from "@storybook/react";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: ActivityCardProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component stories
14
+ */
15
+ export declare const Component: Story<ActivityCardProps>;
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ActivityItemProps
4
+ */
5
+ export type ActivityItemProps = {
6
+ headline?: string;
7
+ pathway?: string;
8
+ xp?: number;
9
+ imageURL?: string;
10
+ onClick?: () => void;
11
+ };
12
+ /**
13
+ * ActivityItem
14
+ * @param props
15
+ * @constructor
16
+ */
17
+ export declare const ActivityItem: (props: ActivityItemProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { ActivityItemProps } from "./ActivityItem";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: ActivityItemProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Existing.
14
+ */
15
+ export declare const Component: Story<ActivityItemProps>;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ActivityListProps
4
+ */
5
+ export type ActivityListProps = {
6
+ isLoading?: boolean;
7
+ search?: string;
8
+ onSearch?: (search?: string) => void;
9
+ tags?: string[];
10
+ onTagChange?: (tags: string[]) => void;
11
+ activities?: any[];
12
+ top?: any[];
13
+ upcoming?: any[];
14
+ milestones?: any[];
15
+ onActivityClick?: (activityId: string) => void;
16
+ };
17
+ /**
18
+ * A component for listing activities
19
+ * @param props
20
+ * @constructor
21
+ */
22
+ export declare const ActivityList: (props: ActivityListProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { ActivityListProps } from "./ActivityList";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: ActivityListProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Existing.
14
+ */
15
+ export declare const Component: Story<ActivityListProps>;
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * ActivityReflectionProps
4
+ */
5
+ export type ActivityReflectionProps = {
6
+ startTime?: string;
7
+ reflection?: string;
8
+ pathway?: string;
9
+ rating?: number;
10
+ xp?: number;
11
+ headline?: string;
12
+ imageURL?: string;
13
+ canReflect?: boolean;
14
+ hasChanges?: boolean;
15
+ onClose?: () => void;
16
+ onSave?: (reflection: string, rating: number) => Promise<void>;
17
+ };
18
+ /**
19
+ * ActivityReflection
20
+ * @param props
21
+ * @constructor
22
+ */
23
+ export declare const ActivityReflection: (props: ActivityReflectionProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ActivityReflectionProps } from "./ActivityReflection";
3
+ import { Story } from "@storybook/react";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: ActivityReflectionProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component stories
14
+ */
15
+ export declare const Component: Story<ActivityReflectionProps>;
@@ -0,0 +1 @@
1
+ export * from "./ActivityReflection";
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ /**
3
+ * GalleryProps
4
+ */
5
+ export type GalleryProps = {
6
+ isLoading?: boolean;
7
+ primary?: React.ReactNode;
8
+ top?: React.ReactNode;
9
+ soonest?: React.ReactNode;
10
+ milestones?: React.ReactNode;
11
+ filteredCount?: number;
12
+ filtered?: React.ReactNode;
13
+ };
14
+ /**
15
+ * A component for displaying a gallery of activities
16
+ * @param props
17
+ * @constructor
18
+ */
19
+ export declare const Gallery: (props: GalleryProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { GalleryProps } from "./Gallery";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: GalleryProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Existing.
14
+ */
15
+ export declare const Component: Story<GalleryProps>;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * FilterProps
4
+ */
5
+ export interface TagFilterProps {
6
+ tags?: string[];
7
+ onChange?: (tags: string[]) => void;
8
+ }
9
+ /**
10
+ * Filter
11
+ * @param props
12
+ * @constructor
13
+ */
14
+ export declare const TagFilter: (props: TagFilterProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { TagFilterProps } from "./TagFilter";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: TagFilterProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Existing.
14
+ */
15
+ export declare const Component: Story<TagFilterProps>;
@@ -0,0 +1,5 @@
1
+ export * from "./ActivityCard/ActivityCard";
2
+ export * from "./ActivityItem/ActivityItem";
3
+ export * from "./ActivityList/ActivityList";
4
+ export * from "./ActivityReflection/ActivityReflection";
5
+ export * from "./TagFilter/TagFilter";
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ /**
3
+ * The properties for tabs.
4
+ */
5
+ export type BoardProps = {
6
+ isLoading?: boolean;
7
+ secondary?: boolean;
8
+ tabs?: React.ReactNode;
9
+ workflow?: React.ReactNode;
10
+ };
11
+ /**
12
+ * A component for tabs.
13
+ * @param props
14
+ * @constructor
15
+ */
16
+ export declare const Board: (props: BoardProps) => JSX.Element;
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import { IconName } from "../../Icon/v0/Icon";
3
+ /**
4
+ * The properties for the tab.
5
+ */
6
+ export type TabProps = {
7
+ icon?: IconName;
8
+ title?: string;
9
+ secondary?: boolean;
10
+ active?: boolean;
11
+ disabled?: boolean;
12
+ onClick?: () => void;
13
+ };
14
+ /**
15
+ * A component for an individual tab option.
16
+ * @param props
17
+ * @constructor
18
+ */
19
+ export declare const Tab: (props: TabProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { TabProps } from "./Tab";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: TabProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component view
14
+ */
15
+ export declare const Component: Story<TabProps>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { BoardProps } from "./Board";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: BoardProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component view
14
+ */
15
+ export declare const Component: Story<BoardProps>;
@@ -0,0 +1,2 @@
1
+ export * from "./Tab/Tab";
2
+ export * from "./Board";
@@ -0,0 +1,58 @@
1
+ /// <reference types="react" />
2
+ import { IconName } from "../Icon";
3
+ /**
4
+ * The button color.
5
+ */
6
+ export type ButtonColor = "slate" | "sky" | "green" | "rose" | "emerald" | "primary" | "secondary" | "slate:sky" | "slate:icon" | "blue" | "dark-blue";
7
+ /**
8
+ * The button size.
9
+ */
10
+ export type ButtonSize = "tiny" | "xs" | "sm" | "md" | "lg" | "xl" | "full:sm" | "full:md";
11
+ /**
12
+ * The button spacing.
13
+ */
14
+ export type ButtonSpacing = "none" | "xs" | "sm" | "md" | "lg";
15
+ /**
16
+ * The button theme.
17
+ */
18
+ export type ButtonTheme = "light" | "dark";
19
+ /**
20
+ * The button justify.
21
+ */
22
+ export type ButtonJustify = "center" | "start";
23
+ /**
24
+ * The button border.
25
+ */
26
+ export type ButtonBorder = "none" | "rectangle" | "rounded" | "rounded-sm" | "circle" | "circle-sm" | "icon:circle";
27
+ /**
28
+ * The button filter.
29
+ */
30
+ export type ButtonFilter = "shadow" | "none";
31
+ /**
32
+ * The properties for the button.
33
+ */
34
+ export type ButtonProps = {
35
+ type?: "submit" | "reset" | "button";
36
+ form?: boolean;
37
+ theme?: ButtonTheme;
38
+ active?: boolean;
39
+ disabled?: boolean;
40
+ color?: ButtonColor;
41
+ size?: ButtonSize;
42
+ spacing?: ButtonSpacing;
43
+ icon?: IconName;
44
+ logo?: boolean;
45
+ justify?: ButtonJustify;
46
+ border?: ButtonBorder;
47
+ filter?: ButtonFilter;
48
+ text?: string;
49
+ footer?: string;
50
+ wide?: boolean;
51
+ onClick?: () => void;
52
+ };
53
+ /**
54
+ * A component for buttons.
55
+ * @param props
56
+ * @constructor
57
+ */
58
+ export declare const Button: (props: ButtonProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { ButtonProps } from "./Button";
3
+ import { Story } from "@storybook/react";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: ButtonProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component stories
14
+ */
15
+ export declare const Component: Story<ButtonProps>;
@@ -0,0 +1 @@
1
+ export * from "./Button";
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * DateSelection component props.
4
+ */
5
+ export type DateSelectionProps = {
6
+ isLoading?: boolean;
7
+ date?: Date | null;
8
+ setDate: (date: Date | null) => void;
9
+ };
10
+ /**
11
+ * DateSelection component.
12
+ * @param props
13
+ * @constructor
14
+ */
15
+ export declare const DateSelection: (props: DateSelectionProps) => JSX.Element;
16
+ /**
17
+ * The properties for the day selection option.
18
+ */
19
+ export type DaySelectionOptionProps = {
20
+ today: boolean;
21
+ active: boolean;
22
+ currentMonth: boolean;
23
+ children: number;
24
+ onClick: () => void;
25
+ };
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { DateSelectionProps } from "./DateSelection";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: DateSelectionProps) => JSX.Element;
10
+ argTypes: {};
11
+ };
12
+ export default _default;
13
+ /**
14
+ * Component view
15
+ */
16
+ export declare const Component: Story<DateSelectionProps>;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * EventItemProps
4
+ */
5
+ export type EventItemProps = {
6
+ headline?: string;
7
+ pathway?: string;
8
+ onClick?: () => void;
9
+ };
10
+ /**
11
+ * EventItem
12
+ * @param props
13
+ * @constructor
14
+ */
15
+ export declare const EventItem: (props: EventItemProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { EventItemProps } from "./EventItem";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: EventItemProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component view
14
+ */
15
+ export declare const Component: Story<EventItemProps>;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ /**
3
+ * EventList props.
4
+ */
5
+ export type EventListProps = {
6
+ isLoading?: boolean;
7
+ date: Date | null;
8
+ onSetDate: (date: Date | null) => void;
9
+ children?: React.ReactNode;
10
+ };
11
+ /**
12
+ * EventList component.
13
+ * @param props
14
+ * @constructor
15
+ */
16
+ export declare const EventList: (props: EventListProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { EventListProps } from "./EventList";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: EventListProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component view
14
+ */
15
+ export declare const Component: Story<EventListProps>;
@@ -0,0 +1,3 @@
1
+ export * from "./DateSelection/DateSelection";
2
+ export * from "./EventItem/EventItem";
3
+ export * from "./EventList/EventList";
@@ -0,0 +1,15 @@
1
+ import * as React from "react";
2
+ /**
3
+ * CardProps
4
+ */
5
+ export type CardProps = {
6
+ isLoading?: boolean;
7
+ children?: React.ReactNode;
8
+ onClose?: () => void;
9
+ };
10
+ /**
11
+ * Card
12
+ * @param props
13
+ * @constructor
14
+ */
15
+ export declare const Card: (props: CardProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { CardProps } from "./Card";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: CardProps) => JSX.Element;
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component stories
14
+ */
15
+ export declare const Component: Story<CardProps>;
@@ -0,0 +1 @@
1
+ export * from "./Card";
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /**
3
+ * Home
4
+ * @constructor
5
+ */
6
+ export declare const Home: () => JSX.Element;
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ /**
4
+ * Storybook component configuration
5
+ */
6
+ declare const _default: {
7
+ title: string;
8
+ component: () => JSX.Element;
9
+ argTypes: {};
10
+ };
11
+ export default _default;
12
+ /**
13
+ * Component view
14
+ */
15
+ export declare const Component: Story;
@@ -0,0 +1 @@
1
+ export * from "./Home";
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { IconName } from "./icons";
3
+ export { IconName } from "./icons";
4
+ /**
5
+ * The properties for the icon.
6
+ */
7
+ export type IconProps = {
8
+ name: IconName;
9
+ };
10
+ /**
11
+ * A component for icons.
12
+ */
13
+ export declare const Icon: (props: IconProps) => JSX.Element;
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import { Story } from "@storybook/react";
3
+ import { IconProps } from "./Icon";
4
+ /**
5
+ * Storybook component configuration
6
+ */
7
+ declare const _default: {
8
+ title: string;
9
+ component: (props: IconProps) => JSX.Element;
10
+ argTypes: {
11
+ name: {
12
+ table: {
13
+ disable: boolean;
14
+ };
15
+ };
16
+ };
17
+ };
18
+ export default _default;
19
+ /**
20
+ * Component icon view
21
+ */
22
+ export declare const Component: Story<IconProps>;
@@ -0,0 +1,21 @@
1
+ import * as React from "react";
2
+ /**
3
+ * List of icons available
4
+ */
5
+ export declare const iconNames: readonly ["14-point star", "award ribbon", "up & down arrow", "check & circle", "check & circle dark", "lock", "circle", "progress", "party popper", "plus & circle", "x & circle", "x & square", "pen & paper", "caret left", "formal backpack", "formal ballot box", "formal bar graph", "formal bolt", "formal briefcase", "formal bullseye", "formal burger", "formal camera lens", "formal design bulb", "formal double pan balance", "formal easel", "formal eye", "formal gavel", "formal group", "formal handshake", "formal heart", "formal magnifying glass", "formal medicine", "formal microphone", "formal molecule", "formal moneybag", "formal mortarboard", "formal parthenon", "formal pencil", "formal pie chart", "formal pin", "formal rocket", "formal scholar", "formal stopwatch"];
6
+ /**
7
+ * List of icon source data
8
+ */
9
+ export declare const icons: {
10
+ [key in typeof iconNames[number]]: Icon;
11
+ };
12
+ /**
13
+ * The name of the icon.
14
+ */
15
+ export type IconName = typeof iconNames[number];
16
+ type Icon = {
17
+ readonly svg: React.FunctionComponent<React.SVGProps<any> & {
18
+ title?: string;
19
+ }>;
20
+ };
21
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./v0/Icon";
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import { icons } from "./data/icons";
3
+ /**
4
+ * The name of the icon.
5
+ */
6
+ export type IconName = typeof icons[number];
7
+ /**
8
+ * The properties for the icon.
9
+ */
10
+ export type IconProps = {
11
+ name: IconName;
12
+ };
13
+ /**
14
+ * A component for icons.
15
+ */
16
+ export declare const Icon: (props: IconProps) => JSX.Element | null;