@local-civics/mgmt-ui 0.1.72 → 0.1.74
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 +72 -1
- package/dist/index.js +546 -173
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +546 -176
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ interface NestedNavbarProps {
|
|
|
31
31
|
href: string;
|
|
32
32
|
hidden?: boolean;
|
|
33
33
|
}>;
|
|
34
|
+
trial?: boolean;
|
|
34
35
|
onLogout: () => void;
|
|
35
36
|
onSwitchAccounts?: () => void;
|
|
36
37
|
}
|
|
@@ -119,6 +120,7 @@ type BadgeProps = {
|
|
|
119
120
|
classId: string;
|
|
120
121
|
students: BadgeUserItem[];
|
|
121
122
|
href: string;
|
|
123
|
+
trial?: boolean;
|
|
122
124
|
onBackClick: () => void;
|
|
123
125
|
onClassChange: (classId: string) => void;
|
|
124
126
|
onCopyLinkClick: () => void;
|
|
@@ -459,6 +461,7 @@ type LessonProps = {
|
|
|
459
461
|
students: LessonUserItem[];
|
|
460
462
|
reflections: Item$5[];
|
|
461
463
|
questions: Item$2[];
|
|
464
|
+
trial?: boolean;
|
|
462
465
|
onBackClick: () => void;
|
|
463
466
|
onClassChange: (classId: string) => void;
|
|
464
467
|
onCopyLinkClick: () => void;
|
|
@@ -567,6 +570,74 @@ type PeopleProps = {
|
|
|
567
570
|
*/
|
|
568
571
|
declare const People: (props: PeopleProps) => JSX.Element;
|
|
569
572
|
|
|
573
|
+
/**
|
|
574
|
+
* StartAnonymousLessonProps
|
|
575
|
+
*/
|
|
576
|
+
type StartAnonymousLessonProps = {
|
|
577
|
+
title: string;
|
|
578
|
+
description: string;
|
|
579
|
+
educatorName: string;
|
|
580
|
+
studentName?: string;
|
|
581
|
+
onStart: () => void;
|
|
582
|
+
};
|
|
583
|
+
/**
|
|
584
|
+
* StartAnonymousLesson
|
|
585
|
+
* @param props
|
|
586
|
+
* @constructor
|
|
587
|
+
*/
|
|
588
|
+
declare const StartAnonymousLesson: (props: StartAnonymousLessonProps) => JSX.Element;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* BadgeGridProps
|
|
592
|
+
*/
|
|
593
|
+
type BadgeGridProps = {
|
|
594
|
+
badges: TaskCardProps[];
|
|
595
|
+
};
|
|
596
|
+
type TaskCardProps = {
|
|
597
|
+
title: string;
|
|
598
|
+
description: string;
|
|
599
|
+
lessonsCompleted: number;
|
|
600
|
+
lessonsTotal: number;
|
|
601
|
+
href: string;
|
|
602
|
+
users: {
|
|
603
|
+
name: string;
|
|
604
|
+
}[];
|
|
605
|
+
onCopy: () => void;
|
|
606
|
+
};
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* TrialHomeProps
|
|
610
|
+
*/
|
|
611
|
+
type TrialHomeProps = BadgeGridProps & {
|
|
612
|
+
loading: boolean;
|
|
613
|
+
name: string;
|
|
614
|
+
daysRemaining: number;
|
|
615
|
+
upgradeHref: string;
|
|
616
|
+
};
|
|
617
|
+
/**
|
|
618
|
+
* TrialHome
|
|
619
|
+
* @param props
|
|
620
|
+
* @constructor
|
|
621
|
+
*/
|
|
622
|
+
declare const TrialHome: (props: TrialHomeProps) => JSX.Element;
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* TrialRegistrationProps
|
|
626
|
+
*/
|
|
627
|
+
type TrialRegistrationProps = {
|
|
628
|
+
onBegin: (data: {
|
|
629
|
+
firstName: string;
|
|
630
|
+
lastName: string;
|
|
631
|
+
interests: string[];
|
|
632
|
+
}) => void;
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* TrialRegistration
|
|
636
|
+
* @param props
|
|
637
|
+
* @constructor
|
|
638
|
+
*/
|
|
639
|
+
declare const TrialRegistration: (props: TrialRegistrationProps) => JSX.Element;
|
|
640
|
+
|
|
570
641
|
/**
|
|
571
642
|
* AdminProviderProps
|
|
572
643
|
*/
|
|
@@ -599,4 +670,4 @@ type AppProps = {
|
|
|
599
670
|
*/
|
|
600
671
|
declare const App: (props: AppProps) => JSX.Element;
|
|
601
672
|
|
|
602
|
-
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, NestedNavbar, NestedNavbarProps, Organization, OrganizationProps, People, PeopleProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, UserItem };
|
|
673
|
+
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, NestedNavbar, NestedNavbarProps, Organization, OrganizationProps, People, PeopleProps, StartAnonymousLesson, StartAnonymousLessonProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, TrialHome, TrialHomeProps, TrialRegistration, TrialRegistrationProps, UserItem };
|