@local-civics/mgmt-ui 0.1.73 → 0.1.75
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 +75 -23
- package/dist/index.js +536 -221
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +536 -223
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,22 +5,6 @@ import * as React from 'react';
|
|
|
5
5
|
* NavbarProps
|
|
6
6
|
*/
|
|
7
7
|
interface NavbarProps {
|
|
8
|
-
active: string;
|
|
9
|
-
navigate: (to: string) => void;
|
|
10
|
-
onLogout: () => void;
|
|
11
|
-
onSwitchAccounts?: () => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Navbar
|
|
15
|
-
* @param props
|
|
16
|
-
* @constructor
|
|
17
|
-
*/
|
|
18
|
-
declare const Navbar: (props: NavbarProps) => JSX.Element;
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* NavbarProps
|
|
22
|
-
*/
|
|
23
|
-
interface NestedNavbarProps {
|
|
24
8
|
active: string;
|
|
25
9
|
version: string;
|
|
26
10
|
image: string;
|
|
@@ -35,7 +19,7 @@ interface NestedNavbarProps {
|
|
|
35
19
|
onLogout: () => void;
|
|
36
20
|
onSwitchAccounts?: () => void;
|
|
37
21
|
}
|
|
38
|
-
declare function
|
|
22
|
+
declare function Navbar(props: NavbarProps): JSX.Element;
|
|
39
23
|
|
|
40
24
|
/**
|
|
41
25
|
* AccountItem
|
|
@@ -570,6 +554,74 @@ type PeopleProps = {
|
|
|
570
554
|
*/
|
|
571
555
|
declare const People: (props: PeopleProps) => JSX.Element;
|
|
572
556
|
|
|
557
|
+
/**
|
|
558
|
+
* StartAnonymousLessonProps
|
|
559
|
+
*/
|
|
560
|
+
type StartAnonymousLessonProps = {
|
|
561
|
+
title: string;
|
|
562
|
+
description: string;
|
|
563
|
+
educatorName: string;
|
|
564
|
+
studentName?: string;
|
|
565
|
+
onStart: () => void;
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* StartAnonymousLesson
|
|
569
|
+
* @param props
|
|
570
|
+
* @constructor
|
|
571
|
+
*/
|
|
572
|
+
declare const StartAnonymousLesson: (props: StartAnonymousLessonProps) => JSX.Element;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* BadgeGridProps
|
|
576
|
+
*/
|
|
577
|
+
type BadgeGridProps = {
|
|
578
|
+
badges: TaskCardProps[];
|
|
579
|
+
};
|
|
580
|
+
type TaskCardProps = {
|
|
581
|
+
title: string;
|
|
582
|
+
description: string;
|
|
583
|
+
lessonsCompleted: number;
|
|
584
|
+
lessonsTotal: number;
|
|
585
|
+
href: string;
|
|
586
|
+
users: {
|
|
587
|
+
name: string;
|
|
588
|
+
}[];
|
|
589
|
+
onCopy: () => void;
|
|
590
|
+
};
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* TrialHomeProps
|
|
594
|
+
*/
|
|
595
|
+
type TrialHomeProps = BadgeGridProps & {
|
|
596
|
+
loading: boolean;
|
|
597
|
+
name: string;
|
|
598
|
+
daysRemaining: number;
|
|
599
|
+
upgradeHref: string;
|
|
600
|
+
};
|
|
601
|
+
/**
|
|
602
|
+
* TrialHome
|
|
603
|
+
* @param props
|
|
604
|
+
* @constructor
|
|
605
|
+
*/
|
|
606
|
+
declare const TrialHome: (props: TrialHomeProps) => JSX.Element;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* TrialRegistrationProps
|
|
610
|
+
*/
|
|
611
|
+
type TrialRegistrationProps = {
|
|
612
|
+
onBegin: (data: {
|
|
613
|
+
firstName: string;
|
|
614
|
+
lastName: string;
|
|
615
|
+
interests: string[];
|
|
616
|
+
}) => void;
|
|
617
|
+
};
|
|
618
|
+
/**
|
|
619
|
+
* TrialRegistration
|
|
620
|
+
* @param props
|
|
621
|
+
* @constructor
|
|
622
|
+
*/
|
|
623
|
+
declare const TrialRegistration: (props: TrialRegistrationProps) => JSX.Element;
|
|
624
|
+
|
|
573
625
|
/**
|
|
574
626
|
* AdminProviderProps
|
|
575
627
|
*/
|
|
@@ -588,12 +640,12 @@ declare const AdminProvider: (props: AdminProviderProps) => JSX.Element;
|
|
|
588
640
|
* AppProps
|
|
589
641
|
*/
|
|
590
642
|
type AppProps = {
|
|
591
|
-
loading
|
|
592
|
-
account
|
|
593
|
-
accounts
|
|
594
|
-
navbar
|
|
643
|
+
loading?: boolean;
|
|
644
|
+
account?: string;
|
|
645
|
+
accounts?: AccountItem[];
|
|
646
|
+
navbar?: React.ReactElement<NavbarProps>;
|
|
595
647
|
page: React.ReactNode;
|
|
596
|
-
onAccountChange
|
|
648
|
+
onAccountChange?: (account: string) => Promise<void>;
|
|
597
649
|
};
|
|
598
650
|
/**
|
|
599
651
|
* App
|
|
@@ -602,4 +654,4 @@ type AppProps = {
|
|
|
602
654
|
*/
|
|
603
655
|
declare const App: (props: AppProps) => JSX.Element;
|
|
604
656
|
|
|
605
|
-
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps,
|
|
657
|
+
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, Organization, OrganizationProps, People, PeopleProps, StartAnonymousLesson, StartAnonymousLessonProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, TrialHome, TrialHomeProps, TrialRegistration, TrialRegistrationProps, UserItem };
|