@local-civics/mgmt-ui 0.1.50 → 0.1.52
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/index.d.ts +486 -12
- package/dist/index.js +1742 -1
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1702 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +5 -3
- package/dist/components/banners/PlaceholderBanner/PlaceholderBanner.d.ts +0 -14
- package/dist/components/banners/PlaceholderBanner/component.stories.d.ts +0 -14
- package/dist/components/banners/TenantBanner/TenantBanner.d.ts +0 -23
- package/dist/components/cards/CardGradient.d.ts +0 -10
- package/dist/components/cards/component.stories.d.ts +0 -14
- package/dist/components/data/LineChart/LineChart.d.ts +0 -18
- package/dist/components/data/StatsGrid/StatsGrid.d.ts +0 -14
- package/dist/components/data/StatsGroup/StatsGroup.d.ts +0 -14
- package/dist/components/navigation/Navbar/Navbar.d.ts +0 -15
- package/dist/components/navigation/Navbar/component.stories.d.ts +0 -14
- package/dist/components/navigation/Tabs/Tabs.d.ts +0 -18
- package/dist/components/users/UserInfo/UserInfo.d.ts +0 -11
- package/dist/hooks/notifications.d.ts +0 -1
- package/dist/index.es.js +0 -1
- package/dist/pages/Badge/Badge.d.ts +0 -37
- package/dist/pages/Badge/LessonTable.d.ts +0 -31
- package/dist/pages/Badge/Table.d.ts +0 -33
- package/dist/pages/Badge/component.stories.d.ts +0 -18
- package/dist/pages/Badges/Badges.d.ts +0 -20
- package/dist/pages/Badges/Table.d.ts +0 -31
- package/dist/pages/Badges/component.stories.d.ts +0 -14
- package/dist/pages/Class/Class.d.ts +0 -27
- package/dist/pages/Class/Table.d.ts +0 -31
- package/dist/pages/Class/component.stories.d.ts +0 -18
- package/dist/pages/Classes/Classes.d.ts +0 -21
- package/dist/pages/Classes/Table.d.ts +0 -23
- package/dist/pages/Classes/component.stories.d.ts +0 -18
- package/dist/pages/Dashboard/BadgeTable.d.ts +0 -32
- package/dist/pages/Dashboard/Dashboard.d.ts +0 -38
- package/dist/pages/Dashboard/ImpactTable.d.ts +0 -28
- package/dist/pages/Dashboard/LessonTable.d.ts +0 -32
- package/dist/pages/Dashboard/ReflectionTable.d.ts +0 -30
- package/dist/pages/Dashboard/StudentTable.d.ts +0 -31
- package/dist/pages/Dashboard/component.stories.d.ts +0 -18
- package/dist/pages/Home/Home.d.ts +0 -25
- package/dist/pages/Home/component.stories.d.ts +0 -14
- package/dist/pages/Lesson/Lesson.d.ts +0 -38
- package/dist/pages/Lesson/QuestionStack.d.ts +0 -30
- package/dist/pages/Lesson/ReflectionTable.d.ts +0 -29
- package/dist/pages/Lesson/Table.d.ts +0 -25
- package/dist/pages/Lesson/component.stories.d.ts +0 -18
- package/dist/pages/Lessons/Lessons.d.ts +0 -20
- package/dist/pages/Lessons/Table.d.ts +0 -22
- package/dist/pages/Lessons/component.stories.d.ts +0 -14
- package/dist/pages/Student/AnswerTable.d.ts +0 -32
- package/dist/pages/Student/BadgeTable.d.ts +0 -31
- package/dist/pages/Student/ReflectionTable.d.ts +0 -32
- package/dist/pages/Student/Student.d.ts +0 -21
- package/dist/pages/Student/component.stories.d.ts +0 -18
- package/dist/providers/AdminProvider/AdminProvider.d.ts +0 -14
- package/dist/shells/App/App.d.ts +0 -21
- package/dist/shells/App/SwitchAccount/SwitchAccount.d.ts +0 -23
- package/dist/shells/App/SwitchAccount/component.stories.d.ts +0 -14
- package/dist/shells/App/component.stories.d.ts +0 -14
- package/dist/utils/time.d.ts +0 -11
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
studentName: string;
|
|
6
|
-
impactStatement: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* TableData
|
|
10
|
-
*/
|
|
11
|
-
export type TableData = {
|
|
12
|
-
loading: boolean;
|
|
13
|
-
items: Item[];
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* TableMethods
|
|
17
|
-
*/
|
|
18
|
-
export type TableMethods = {};
|
|
19
|
-
/**
|
|
20
|
-
* TableProps
|
|
21
|
-
*/
|
|
22
|
-
export type TableProps = TableData & TableMethods;
|
|
23
|
-
/**
|
|
24
|
-
* Table
|
|
25
|
-
* @constructor
|
|
26
|
-
* @param props
|
|
27
|
-
*/
|
|
28
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
lessonId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
percentageCompletion: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* TableData
|
|
12
|
-
*/
|
|
13
|
-
export type TableData = {
|
|
14
|
-
loading: boolean;
|
|
15
|
-
items: Item[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* TableMethods
|
|
19
|
-
*/
|
|
20
|
-
export type TableMethods = {
|
|
21
|
-
onClick: (badge: Item) => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* TableProps
|
|
25
|
-
*/
|
|
26
|
-
export type TableProps = TableData & TableMethods;
|
|
27
|
-
/**
|
|
28
|
-
* Table
|
|
29
|
-
* @param props
|
|
30
|
-
* @constructor
|
|
31
|
-
*/
|
|
32
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
lessonName: string;
|
|
6
|
-
studentName: string;
|
|
7
|
-
reflection: string;
|
|
8
|
-
updatedAt: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* TableData
|
|
12
|
-
*/
|
|
13
|
-
export type TableData = {
|
|
14
|
-
loading: boolean;
|
|
15
|
-
items: Item[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* TableMethods
|
|
19
|
-
*/
|
|
20
|
-
export type TableMethods = {};
|
|
21
|
-
/**
|
|
22
|
-
* TableProps
|
|
23
|
-
*/
|
|
24
|
-
export type TableProps = TableData & TableMethods;
|
|
25
|
-
/**
|
|
26
|
-
* Table
|
|
27
|
-
* @constructor
|
|
28
|
-
* @param props
|
|
29
|
-
*/
|
|
30
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
studentId: string;
|
|
6
|
-
studentName: string;
|
|
7
|
-
className: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableData
|
|
11
|
-
*/
|
|
12
|
-
export type TableData = {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
items: Item[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* TableMethods
|
|
18
|
-
*/
|
|
19
|
-
export type TableMethods = {
|
|
20
|
-
onViewProfile: (item: Item) => void;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* TableProps
|
|
24
|
-
*/
|
|
25
|
-
export type TableProps = TableData & TableMethods;
|
|
26
|
-
/**
|
|
27
|
-
* Table
|
|
28
|
-
* @constructor
|
|
29
|
-
* @param props
|
|
30
|
-
*/
|
|
31
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { DashboardProps } from "./Dashboard";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: DashboardProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<DashboardProps>;
|
|
15
|
-
/**
|
|
16
|
-
* Component stories
|
|
17
|
-
*/
|
|
18
|
-
export declare const Mock: Story<DashboardProps>;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HomeProps
|
|
3
|
-
*/
|
|
4
|
-
export type HomeProps = {
|
|
5
|
-
loading: boolean;
|
|
6
|
-
avatarURL: string;
|
|
7
|
-
name: string;
|
|
8
|
-
impactStatement: string;
|
|
9
|
-
organization: {
|
|
10
|
-
name: string;
|
|
11
|
-
description: string;
|
|
12
|
-
image: string;
|
|
13
|
-
website: string;
|
|
14
|
-
};
|
|
15
|
-
onDashboardClick: () => void;
|
|
16
|
-
onClassesClick: () => void;
|
|
17
|
-
onLessonsClick: () => void;
|
|
18
|
-
onBadgesClick: () => void;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Home
|
|
22
|
-
* @param props
|
|
23
|
-
* @constructor
|
|
24
|
-
*/
|
|
25
|
-
export declare const Home: (props: HomeProps) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HomeProps } from "./Home";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: HomeProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<HomeProps>;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Item as ReflectionItem } from "./ReflectionTable";
|
|
2
|
-
import { Item } from "./Table";
|
|
3
|
-
import { Item as QuestionItem } from "./QuestionStack";
|
|
4
|
-
/**
|
|
5
|
-
* LessonUserItem
|
|
6
|
-
*/
|
|
7
|
-
export type LessonUserItem = Item;
|
|
8
|
-
/**
|
|
9
|
-
* LessonClass
|
|
10
|
-
*/
|
|
11
|
-
export type LessonClass = {
|
|
12
|
-
classId: string;
|
|
13
|
-
name: string;
|
|
14
|
-
active: boolean;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* LessonProps
|
|
18
|
-
*/
|
|
19
|
-
export type LessonProps = {
|
|
20
|
-
loading: boolean;
|
|
21
|
-
displayName: string;
|
|
22
|
-
description: string;
|
|
23
|
-
classId: string;
|
|
24
|
-
classes: LessonClass[];
|
|
25
|
-
students: LessonUserItem[];
|
|
26
|
-
reflections: ReflectionItem[];
|
|
27
|
-
questions: QuestionItem[];
|
|
28
|
-
onBackClick: () => void;
|
|
29
|
-
onClassChange: (classId: string) => void;
|
|
30
|
-
onPreviewClick: () => void;
|
|
31
|
-
onUserClick: (user: LessonUserItem) => void;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Lesson
|
|
35
|
-
* @param props
|
|
36
|
-
* @constructor
|
|
37
|
-
*/
|
|
38
|
-
export declare const Lesson: (props: LessonProps) => JSX.Element;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
question: string;
|
|
6
|
-
answers: string[][];
|
|
7
|
-
choices?: string[];
|
|
8
|
-
chart?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* StackData
|
|
12
|
-
*/
|
|
13
|
-
export type StackData = {
|
|
14
|
-
loading: boolean;
|
|
15
|
-
items: Item[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* StackMethods
|
|
19
|
-
*/
|
|
20
|
-
export type StackMethods = {};
|
|
21
|
-
/**
|
|
22
|
-
* StackProps
|
|
23
|
-
*/
|
|
24
|
-
export type StackProps = StackData & StackMethods;
|
|
25
|
-
/**
|
|
26
|
-
* Stack
|
|
27
|
-
* @constructor
|
|
28
|
-
* @param props
|
|
29
|
-
*/
|
|
30
|
-
export declare function Stack(props: StackProps): JSX.Element;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
studentName: string;
|
|
6
|
-
reflection: string;
|
|
7
|
-
rating: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableData
|
|
11
|
-
*/
|
|
12
|
-
export type TableData = {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
items: Item[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* TableMethods
|
|
18
|
-
*/
|
|
19
|
-
export type TableMethods = {};
|
|
20
|
-
/**
|
|
21
|
-
* TableProps
|
|
22
|
-
*/
|
|
23
|
-
export type TableProps = TableData & TableMethods;
|
|
24
|
-
/**
|
|
25
|
-
* Table
|
|
26
|
-
* @constructor
|
|
27
|
-
* @param props
|
|
28
|
-
*/
|
|
29
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
userId: string;
|
|
6
|
-
avatar: string;
|
|
7
|
-
name: string;
|
|
8
|
-
email: string;
|
|
9
|
-
isStarted?: boolean;
|
|
10
|
-
isComplete?: boolean;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* TableProps
|
|
14
|
-
*/
|
|
15
|
-
export interface TableProps {
|
|
16
|
-
loading: boolean;
|
|
17
|
-
items: Item[];
|
|
18
|
-
onClick: (user: Item) => void;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Table
|
|
22
|
-
* @constructor
|
|
23
|
-
* @param props
|
|
24
|
-
*/
|
|
25
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { LessonProps } from "./Lesson";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: LessonProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<LessonProps>;
|
|
15
|
-
/**
|
|
16
|
-
* Component stories
|
|
17
|
-
*/
|
|
18
|
-
export declare const Mock: Story<LessonProps>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Item } from "./Table";
|
|
2
|
-
/**
|
|
3
|
-
* LessonItem
|
|
4
|
-
*/
|
|
5
|
-
export type LessonItem = Item;
|
|
6
|
-
/**
|
|
7
|
-
* LessonsProps
|
|
8
|
-
*/
|
|
9
|
-
export type LessonsProps = {
|
|
10
|
-
loading: boolean;
|
|
11
|
-
lessons: LessonItem[];
|
|
12
|
-
onAutocompleteChange: (next: string) => void;
|
|
13
|
-
onLessonClick: (item: LessonItem) => void;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Lessons
|
|
17
|
-
* @param props
|
|
18
|
-
* @constructor
|
|
19
|
-
*/
|
|
20
|
-
export declare const Lessons: (props: LessonsProps) => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
lessonId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
description: string;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableProps
|
|
11
|
-
*/
|
|
12
|
-
export interface TableProps {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
items: Item[];
|
|
15
|
-
onClick: (lesson: Item) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Table
|
|
19
|
-
* @param props
|
|
20
|
-
* @constructor
|
|
21
|
-
*/
|
|
22
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LessonsProps } from "./Lessons";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: LessonsProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<LessonsProps>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
lessonId: string;
|
|
6
|
-
lessonName: string;
|
|
7
|
-
questionName: string;
|
|
8
|
-
answer: string[];
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* TableData
|
|
12
|
-
*/
|
|
13
|
-
export type TableData = {
|
|
14
|
-
loading: boolean;
|
|
15
|
-
items: Item[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* TableMethods
|
|
19
|
-
*/
|
|
20
|
-
export type TableMethods = {
|
|
21
|
-
onClick: (item: Item) => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* TableProps
|
|
25
|
-
*/
|
|
26
|
-
export type TableProps = TableData & TableMethods;
|
|
27
|
-
/**
|
|
28
|
-
* Table
|
|
29
|
-
* @constructor
|
|
30
|
-
* @param props
|
|
31
|
-
*/
|
|
32
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
badgeId: string;
|
|
6
|
-
badgeName: string;
|
|
7
|
-
isComplete?: boolean;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* TableData
|
|
11
|
-
*/
|
|
12
|
-
export type TableData = {
|
|
13
|
-
loading: boolean;
|
|
14
|
-
items: Item[];
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* TableMethods
|
|
18
|
-
*/
|
|
19
|
-
export type TableMethods = {
|
|
20
|
-
onClick: (item: Item) => void;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* TableProps
|
|
24
|
-
*/
|
|
25
|
-
export type TableProps = TableData & TableMethods;
|
|
26
|
-
/**
|
|
27
|
-
* Table
|
|
28
|
-
* @constructor
|
|
29
|
-
* @param props
|
|
30
|
-
*/
|
|
31
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Item
|
|
3
|
-
*/
|
|
4
|
-
export interface Item {
|
|
5
|
-
lessonId: string;
|
|
6
|
-
lessonName: string;
|
|
7
|
-
reflection: string;
|
|
8
|
-
rating: number;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* TableData
|
|
12
|
-
*/
|
|
13
|
-
export type TableData = {
|
|
14
|
-
loading: boolean;
|
|
15
|
-
items: Item[];
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* TableMethods
|
|
19
|
-
*/
|
|
20
|
-
export type TableMethods = {
|
|
21
|
-
onClick: (item: Item) => void;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* TableProps
|
|
25
|
-
*/
|
|
26
|
-
export type TableProps = TableData & TableMethods;
|
|
27
|
-
/**
|
|
28
|
-
* Table
|
|
29
|
-
* @constructor
|
|
30
|
-
* @param props
|
|
31
|
-
*/
|
|
32
|
-
export declare function Table(props: TableProps): JSX.Element;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Item as BadgeItem } from "./BadgeTable";
|
|
2
|
-
import { Item as AnswerItem } from "./AnswerTable";
|
|
3
|
-
import { Item as ReflectionItem } from "./ReflectionTable";
|
|
4
|
-
/**
|
|
5
|
-
* StudentProps
|
|
6
|
-
*/
|
|
7
|
-
export type StudentProps = {
|
|
8
|
-
loading: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
impactStatement: string;
|
|
11
|
-
numberOfProblemsSolved: number;
|
|
12
|
-
percentageOfLessonsCompleted: number;
|
|
13
|
-
badges: BadgeItem[];
|
|
14
|
-
answers: AnswerItem[];
|
|
15
|
-
reflections: ReflectionItem[];
|
|
16
|
-
onBackClick: () => void;
|
|
17
|
-
onBadgeClick: (item: BadgeItem) => void;
|
|
18
|
-
onAnswerClick: (item: AnswerItem) => void;
|
|
19
|
-
onReflectionClick: (item: ReflectionItem) => void;
|
|
20
|
-
};
|
|
21
|
-
export declare const Student: (props: StudentProps) => JSX.Element;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { StudentProps } from "./Student";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: StudentProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<StudentProps>;
|
|
15
|
-
/**
|
|
16
|
-
* Component stories
|
|
17
|
-
*/
|
|
18
|
-
export declare const Mock: Story<StudentProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* AdminProviderProps
|
|
4
|
-
*/
|
|
5
|
-
export interface AdminProviderProps {
|
|
6
|
-
notificationLimit?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* AdminProvider
|
|
11
|
-
* @constructor
|
|
12
|
-
* @param props
|
|
13
|
-
*/
|
|
14
|
-
export declare const AdminProvider: (props: AdminProviderProps) => JSX.Element;
|
package/dist/shells/App/App.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AccountItem, SwitchAccount } from "./SwitchAccount/SwitchAccount";
|
|
3
|
-
import { Navbar, NavbarProps } from "../../components/navigation/Navbar/Navbar";
|
|
4
|
-
export { SwitchAccount, AccountItem, Navbar };
|
|
5
|
-
/**
|
|
6
|
-
* AppProps
|
|
7
|
-
*/
|
|
8
|
-
export type AppProps = {
|
|
9
|
-
loading: boolean;
|
|
10
|
-
account: string;
|
|
11
|
-
accounts: AccountItem[];
|
|
12
|
-
navbar: React.ReactElement<NavbarProps>;
|
|
13
|
-
page: React.ReactNode;
|
|
14
|
-
onAccountChange: (account: string) => void;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* App
|
|
18
|
-
* @param props
|
|
19
|
-
* @constructor
|
|
20
|
-
*/
|
|
21
|
-
export declare const App: (props: AppProps) => JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AccountItem
|
|
3
|
-
*/
|
|
4
|
-
export type AccountItem = {
|
|
5
|
-
accountId: string;
|
|
6
|
-
name: string;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* SwitchAccountProps
|
|
10
|
-
*/
|
|
11
|
-
export type SwitchAccountProps = {
|
|
12
|
-
opened: boolean;
|
|
13
|
-
account: string;
|
|
14
|
-
accounts: AccountItem[];
|
|
15
|
-
onChange: (account: string) => void;
|
|
16
|
-
onClose: () => void;
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* SwitchAccount
|
|
20
|
-
* @param props
|
|
21
|
-
* @constructor
|
|
22
|
-
*/
|
|
23
|
-
export declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { SwitchAccountProps } from "./SwitchAccount";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: SwitchAccountProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<SwitchAccountProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppProps } from "./App";
|
|
2
|
-
import { Story } from "@storybook/react";
|
|
3
|
-
/**
|
|
4
|
-
* Storybook component configuration
|
|
5
|
-
*/
|
|
6
|
-
declare const _default: {
|
|
7
|
-
title: string;
|
|
8
|
-
component: (props: AppProps) => JSX.Element;
|
|
9
|
-
};
|
|
10
|
-
export default _default;
|
|
11
|
-
/**
|
|
12
|
-
* Component stories
|
|
13
|
-
*/
|
|
14
|
-
export declare const Component: Story<AppProps>;
|
package/dist/utils/time.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get language-sensitive relative time message from Dates.
|
|
3
|
-
* @param relative - the relative dateTime, generally is in the past or future
|
|
4
|
-
* @param pivot - the dateTime of reference, generally is the current time
|
|
5
|
-
*/
|
|
6
|
-
export declare function relativeTimeFromDates(relative: Date | null, pivot?: Date): string;
|
|
7
|
-
/**
|
|
8
|
-
* Get language-sensitive relative time message from elapsed time.
|
|
9
|
-
* @param elapsed - the elapsed time in milliseconds
|
|
10
|
-
*/
|
|
11
|
-
export declare function relativeTimeFromElapsed(elapsed: number): string;
|