@local-civics/mgmt-ui 0.1.213 → 0.1.214
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 +63 -79
- package/dist/index.d.ts.css +18 -0
- package/dist/index.js +755 -790
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +758 -792
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
|
|
|
79
79
|
/**
|
|
80
80
|
* Item
|
|
81
81
|
*/
|
|
82
|
-
interface Item$
|
|
82
|
+
interface Item$o {
|
|
83
83
|
lessonName: string;
|
|
84
84
|
completion: number;
|
|
85
85
|
isStarted?: boolean;
|
|
@@ -89,19 +89,19 @@ interface Item$p {
|
|
|
89
89
|
/**
|
|
90
90
|
* Item
|
|
91
91
|
*/
|
|
92
|
-
interface Item$
|
|
92
|
+
interface Item$n {
|
|
93
93
|
userId: string;
|
|
94
94
|
avatar: string;
|
|
95
95
|
name: string;
|
|
96
96
|
email: string;
|
|
97
97
|
isComplete?: boolean;
|
|
98
|
-
lessons: Item$
|
|
98
|
+
lessons: Item$o[];
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* Item
|
|
103
103
|
*/
|
|
104
|
-
interface Item$
|
|
104
|
+
interface Item$m {
|
|
105
105
|
lessonId: string;
|
|
106
106
|
lessonName: string;
|
|
107
107
|
percentageCompletion: number;
|
|
@@ -111,7 +111,7 @@ interface Item$n {
|
|
|
111
111
|
/**
|
|
112
112
|
* BadgeUserItem
|
|
113
113
|
*/
|
|
114
|
-
type BadgeUserItem = Item$
|
|
114
|
+
type BadgeUserItem = Item$n;
|
|
115
115
|
/**
|
|
116
116
|
* BadgeClass
|
|
117
117
|
*/
|
|
@@ -128,7 +128,7 @@ type BadgeProps = {
|
|
|
128
128
|
displayName: string;
|
|
129
129
|
description: string;
|
|
130
130
|
classes: BadgeClass[];
|
|
131
|
-
lessons: Item$
|
|
131
|
+
lessons: Item$m[];
|
|
132
132
|
classId: string;
|
|
133
133
|
students: BadgeUserItem[];
|
|
134
134
|
href: string;
|
|
@@ -149,7 +149,7 @@ declare const Badge: (props: BadgeProps) => JSX.Element;
|
|
|
149
149
|
/**
|
|
150
150
|
* Item
|
|
151
151
|
*/
|
|
152
|
-
interface Item$
|
|
152
|
+
interface Item$l {
|
|
153
153
|
badgeId: string;
|
|
154
154
|
name: string;
|
|
155
155
|
description: string;
|
|
@@ -159,7 +159,7 @@ interface Item$m {
|
|
|
159
159
|
/**
|
|
160
160
|
* BadgeItem
|
|
161
161
|
*/
|
|
162
|
-
type BadgeItem = Item$
|
|
162
|
+
type BadgeItem = Item$l;
|
|
163
163
|
/**
|
|
164
164
|
* BadgesProps
|
|
165
165
|
*/
|
|
@@ -178,7 +178,7 @@ declare const Badges: (props: BadgesProps) => JSX.Element;
|
|
|
178
178
|
/**
|
|
179
179
|
* Item
|
|
180
180
|
*/
|
|
181
|
-
interface Item$
|
|
181
|
+
interface Item$k {
|
|
182
182
|
studentId: string;
|
|
183
183
|
studentName: string;
|
|
184
184
|
className: string;
|
|
@@ -187,7 +187,7 @@ interface Item$l {
|
|
|
187
187
|
/**
|
|
188
188
|
* Item
|
|
189
189
|
*/
|
|
190
|
-
interface Item$
|
|
190
|
+
interface Item$j {
|
|
191
191
|
lessonName: string;
|
|
192
192
|
studentName: string;
|
|
193
193
|
reflection: string;
|
|
@@ -197,7 +197,7 @@ interface Item$k {
|
|
|
197
197
|
/**
|
|
198
198
|
* Item
|
|
199
199
|
*/
|
|
200
|
-
interface Item$
|
|
200
|
+
interface Item$i {
|
|
201
201
|
studentName: string;
|
|
202
202
|
impactStatement: string;
|
|
203
203
|
}
|
|
@@ -205,7 +205,7 @@ interface Item$j {
|
|
|
205
205
|
/**
|
|
206
206
|
* Item
|
|
207
207
|
*/
|
|
208
|
-
interface Item$
|
|
208
|
+
interface Item$h {
|
|
209
209
|
badgeId: string;
|
|
210
210
|
name: string;
|
|
211
211
|
description: string;
|
|
@@ -215,7 +215,7 @@ interface Item$i {
|
|
|
215
215
|
/**
|
|
216
216
|
* Item
|
|
217
217
|
*/
|
|
218
|
-
interface Item$
|
|
218
|
+
interface Item$g {
|
|
219
219
|
lessonId: string;
|
|
220
220
|
name: string;
|
|
221
221
|
description: string;
|
|
@@ -234,20 +234,20 @@ type DashboardClass = {
|
|
|
234
234
|
*/
|
|
235
235
|
type DashboardProps = {
|
|
236
236
|
loading: boolean;
|
|
237
|
-
students: Item$
|
|
238
|
-
impacts: Item$
|
|
239
|
-
reflections: Item$
|
|
237
|
+
students: Item$k[];
|
|
238
|
+
impacts: Item$i[];
|
|
239
|
+
reflections: Item$j[];
|
|
240
240
|
classes: DashboardClass[];
|
|
241
|
-
badges: Item$
|
|
242
|
-
lessons: Item$
|
|
241
|
+
badges: Item$h[];
|
|
242
|
+
lessons: Item$g[];
|
|
243
243
|
classId: string;
|
|
244
244
|
percentageOfAccountsCreated: number;
|
|
245
245
|
numberOfBadgesEarned: number;
|
|
246
246
|
numberOfLessonsCompleted: number;
|
|
247
247
|
onClassChange: (classId: string) => void;
|
|
248
|
-
onViewStudentProfile: (student: Item$
|
|
249
|
-
onBadgeClick: (badge: Item$
|
|
250
|
-
onLessonClick: (lesson: Item$
|
|
248
|
+
onViewStudentProfile: (student: Item$k) => void;
|
|
249
|
+
onBadgeClick: (badge: Item$h) => void;
|
|
250
|
+
onLessonClick: (lesson: Item$g) => void;
|
|
251
251
|
};
|
|
252
252
|
/**
|
|
253
253
|
* Dashboard
|
|
@@ -259,7 +259,7 @@ declare const Dashboard: (props: DashboardProps) => JSX.Element;
|
|
|
259
259
|
/**
|
|
260
260
|
* Item
|
|
261
261
|
*/
|
|
262
|
-
type Item$
|
|
262
|
+
type Item$f = {
|
|
263
263
|
classId: string;
|
|
264
264
|
userId: string;
|
|
265
265
|
avatar: string;
|
|
@@ -278,7 +278,7 @@ type Item$g = {
|
|
|
278
278
|
/**
|
|
279
279
|
* MemberItem
|
|
280
280
|
*/
|
|
281
|
-
type MemberItem = Item$
|
|
281
|
+
type MemberItem = Item$f;
|
|
282
282
|
/**
|
|
283
283
|
* ClassProps
|
|
284
284
|
*/
|
|
@@ -306,7 +306,7 @@ type ClassProps = {
|
|
|
306
306
|
*/
|
|
307
307
|
declare const Class: (props: ClassProps) => JSX.Element;
|
|
308
308
|
|
|
309
|
-
type Item$
|
|
309
|
+
type Item$e = {
|
|
310
310
|
href: string;
|
|
311
311
|
classId: string;
|
|
312
312
|
name: string;
|
|
@@ -317,7 +317,7 @@ type Item$f = {
|
|
|
317
317
|
/**
|
|
318
318
|
* ClassItem
|
|
319
319
|
*/
|
|
320
|
-
type ClassItem = Item$
|
|
320
|
+
type ClassItem = Item$e;
|
|
321
321
|
/**
|
|
322
322
|
* ClassesProps
|
|
323
323
|
*/
|
|
@@ -338,7 +338,7 @@ declare const Classes: (props: ClassesProps) => JSX.Element;
|
|
|
338
338
|
/**
|
|
339
339
|
* Item
|
|
340
340
|
*/
|
|
341
|
-
interface Item$
|
|
341
|
+
interface Item$d {
|
|
342
342
|
badgeId: string;
|
|
343
343
|
badgeName: string;
|
|
344
344
|
isComplete?: boolean;
|
|
@@ -347,7 +347,7 @@ interface Item$e {
|
|
|
347
347
|
/**
|
|
348
348
|
* Item
|
|
349
349
|
*/
|
|
350
|
-
interface Item$
|
|
350
|
+
interface Item$c {
|
|
351
351
|
lessonId: string;
|
|
352
352
|
lessonName: string;
|
|
353
353
|
questionName: string;
|
|
@@ -358,7 +358,7 @@ interface Item$d {
|
|
|
358
358
|
/**
|
|
359
359
|
* Item
|
|
360
360
|
*/
|
|
361
|
-
interface Item$
|
|
361
|
+
interface Item$b {
|
|
362
362
|
lessonId: string;
|
|
363
363
|
lessonName: string;
|
|
364
364
|
reflection: string;
|
|
@@ -376,10 +376,10 @@ type StudentProps = {
|
|
|
376
376
|
numberOfProblemsSolved: number;
|
|
377
377
|
percentageOfLessonsCompleted: number;
|
|
378
378
|
numberOfLessonsCompleted: number;
|
|
379
|
-
badges: Item$
|
|
379
|
+
badges: Item$d[];
|
|
380
380
|
lessons: LessonItem$1[];
|
|
381
|
-
answers: Item$
|
|
382
|
-
reflections: Item$
|
|
381
|
+
answers: Item$c[];
|
|
382
|
+
reflections: Item$b[];
|
|
383
383
|
onBackClick: () => void;
|
|
384
384
|
};
|
|
385
385
|
type LessonItem$1 = {
|
|
@@ -421,7 +421,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
|
|
|
421
421
|
/**
|
|
422
422
|
* Item
|
|
423
423
|
*/
|
|
424
|
-
interface Item$
|
|
424
|
+
interface Item$a {
|
|
425
425
|
studentName: string;
|
|
426
426
|
reflection: string;
|
|
427
427
|
rating: number;
|
|
@@ -430,7 +430,7 @@ interface Item$b {
|
|
|
430
430
|
/**
|
|
431
431
|
* Item
|
|
432
432
|
*/
|
|
433
|
-
interface Item$
|
|
433
|
+
interface Item$9 {
|
|
434
434
|
questionName: string;
|
|
435
435
|
answer: string[];
|
|
436
436
|
}
|
|
@@ -438,12 +438,12 @@ interface Item$a {
|
|
|
438
438
|
/**
|
|
439
439
|
* Item
|
|
440
440
|
*/
|
|
441
|
-
interface Item$
|
|
441
|
+
interface Item$8 {
|
|
442
442
|
userId: string;
|
|
443
443
|
avatar: string;
|
|
444
444
|
name: string;
|
|
445
445
|
email: string;
|
|
446
|
-
answers: Item$
|
|
446
|
+
answers: Item$9[];
|
|
447
447
|
isStarted?: boolean;
|
|
448
448
|
isComplete?: boolean;
|
|
449
449
|
href: string;
|
|
@@ -452,7 +452,7 @@ interface Item$9 {
|
|
|
452
452
|
/**
|
|
453
453
|
* Item
|
|
454
454
|
*/
|
|
455
|
-
interface Item$
|
|
455
|
+
interface Item$7 {
|
|
456
456
|
question: string;
|
|
457
457
|
answers: string[][];
|
|
458
458
|
choices?: string[];
|
|
@@ -462,7 +462,7 @@ interface Item$8 {
|
|
|
462
462
|
/**
|
|
463
463
|
* LessonUserItem
|
|
464
464
|
*/
|
|
465
|
-
type LessonUserItem = Item$
|
|
465
|
+
type LessonUserItem = Item$8;
|
|
466
466
|
/**
|
|
467
467
|
* LessonClass
|
|
468
468
|
*/
|
|
@@ -482,8 +482,8 @@ type LessonProps = {
|
|
|
482
482
|
classId: string;
|
|
483
483
|
classes: LessonClass[];
|
|
484
484
|
students: LessonUserItem[];
|
|
485
|
-
reflections: Item$
|
|
486
|
-
questions: Item$
|
|
485
|
+
reflections: Item$a[];
|
|
486
|
+
questions: Item$7[];
|
|
487
487
|
trial?: boolean;
|
|
488
488
|
lessonsCompleted?: number;
|
|
489
489
|
contributors?: {
|
|
@@ -504,17 +504,18 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
|
|
|
504
504
|
/**
|
|
505
505
|
* Item
|
|
506
506
|
*/
|
|
507
|
-
interface Item$
|
|
507
|
+
interface Item$6 {
|
|
508
508
|
lessonId: string;
|
|
509
509
|
name: string;
|
|
510
510
|
description: string;
|
|
511
|
+
pathway?: string;
|
|
511
512
|
href: string;
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
/**
|
|
515
516
|
* LessonItem
|
|
516
517
|
*/
|
|
517
|
-
type LessonItem = Item$
|
|
518
|
+
type LessonItem = Item$6;
|
|
518
519
|
/**
|
|
519
520
|
* LessonsProps
|
|
520
521
|
*/
|
|
@@ -555,7 +556,7 @@ declare const Organization: (props: OrganizationProps) => JSX.Element;
|
|
|
555
556
|
/**
|
|
556
557
|
* Item
|
|
557
558
|
*/
|
|
558
|
-
type Item$
|
|
559
|
+
type Item$5 = {
|
|
559
560
|
userId: string;
|
|
560
561
|
avatar: string;
|
|
561
562
|
email: string;
|
|
@@ -573,7 +574,7 @@ type Item$6 = {
|
|
|
573
574
|
/**
|
|
574
575
|
* UserItem
|
|
575
576
|
*/
|
|
576
|
-
type UserItem = Item$
|
|
577
|
+
type UserItem = Item$5;
|
|
577
578
|
/**
|
|
578
579
|
* PeopleProps
|
|
579
580
|
*/
|
|
@@ -706,7 +707,7 @@ declare const App: (props: AppProps) => JSX.Element;
|
|
|
706
707
|
/**
|
|
707
708
|
* Item
|
|
708
709
|
*/
|
|
709
|
-
interface Item$
|
|
710
|
+
interface Item$4 {
|
|
710
711
|
badgeId: string;
|
|
711
712
|
name: string;
|
|
712
713
|
description: string;
|
|
@@ -716,7 +717,7 @@ interface Item$5 {
|
|
|
716
717
|
/**
|
|
717
718
|
* PathwaysItem
|
|
718
719
|
*/
|
|
719
|
-
type PathwaysItem = Item$
|
|
720
|
+
type PathwaysItem = Item$4;
|
|
720
721
|
/**
|
|
721
722
|
* PathwaysProps
|
|
722
723
|
*/
|
|
@@ -734,7 +735,7 @@ declare const Pathways: (props: PathwaysProps) => JSX.Element;
|
|
|
734
735
|
/**
|
|
735
736
|
* Item
|
|
736
737
|
*/
|
|
737
|
-
interface Item$
|
|
738
|
+
interface Item$3 {
|
|
738
739
|
badgeName: string;
|
|
739
740
|
completion: number;
|
|
740
741
|
isStarted?: boolean;
|
|
@@ -744,13 +745,13 @@ interface Item$4 {
|
|
|
744
745
|
/**
|
|
745
746
|
* Item
|
|
746
747
|
*/
|
|
747
|
-
interface Item$
|
|
748
|
+
interface Item$2 {
|
|
748
749
|
userId: string;
|
|
749
750
|
avatar: string;
|
|
750
751
|
name: string;
|
|
751
752
|
email: string;
|
|
752
753
|
isComplete?: boolean;
|
|
753
|
-
badges: Item$
|
|
754
|
+
badges: Item$3[];
|
|
754
755
|
categoryPoints?: Record<string, number>;
|
|
755
756
|
[key: string]: any;
|
|
756
757
|
}
|
|
@@ -758,7 +759,7 @@ interface Item$3 {
|
|
|
758
759
|
/**
|
|
759
760
|
* Item
|
|
760
761
|
*/
|
|
761
|
-
interface Item$
|
|
762
|
+
interface Item$1 {
|
|
762
763
|
badgeId: string;
|
|
763
764
|
badgeName: string;
|
|
764
765
|
percentageCompletion: number;
|
|
@@ -768,7 +769,7 @@ interface Item$2 {
|
|
|
768
769
|
/**
|
|
769
770
|
* PathwayUserItem
|
|
770
771
|
*/
|
|
771
|
-
type PathwayUserItem = Item$
|
|
772
|
+
type PathwayUserItem = Item$2;
|
|
772
773
|
/**
|
|
773
774
|
* PathwayClass
|
|
774
775
|
*/
|
|
@@ -785,7 +786,7 @@ type PathwayProps = {
|
|
|
785
786
|
title: string;
|
|
786
787
|
description: string;
|
|
787
788
|
classes: PathwayClass[];
|
|
788
|
-
badges: Item$
|
|
789
|
+
badges: Item$1[];
|
|
789
790
|
classId: string;
|
|
790
791
|
students: PathwayUserItem[];
|
|
791
792
|
categories: {
|
|
@@ -805,12 +806,12 @@ type PathwayProps = {
|
|
|
805
806
|
* @param props
|
|
806
807
|
* @constructor
|
|
807
808
|
*/
|
|
808
|
-
declare const Pathway
|
|
809
|
+
declare const Pathway: (props: PathwayProps) => JSX.Element;
|
|
809
810
|
|
|
810
811
|
/**
|
|
811
812
|
* Item
|
|
812
813
|
*/
|
|
813
|
-
interface Item
|
|
814
|
+
interface Item {
|
|
814
815
|
userId: string;
|
|
815
816
|
avatar: string;
|
|
816
817
|
name: string;
|
|
@@ -823,35 +824,14 @@ interface SubmissionItem {
|
|
|
823
824
|
badgeId: string;
|
|
824
825
|
lessonName: string;
|
|
825
826
|
question: string;
|
|
827
|
+
updatedAt?: string;
|
|
828
|
+
pathwayName?: string;
|
|
826
829
|
}
|
|
827
830
|
|
|
828
|
-
/**
|
|
829
|
-
* Item
|
|
830
|
-
*/
|
|
831
|
-
interface Item {
|
|
832
|
-
lessonId: string;
|
|
833
|
-
lessonName: string;
|
|
834
|
-
percentageCompletion: number;
|
|
835
|
-
href: string;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
type Pathway = {
|
|
839
|
-
pathwayId: string;
|
|
840
|
-
title: string;
|
|
841
|
-
description: string;
|
|
842
|
-
};
|
|
843
|
-
type PathwayTableProps = {
|
|
844
|
-
pathways: Pathway[];
|
|
845
|
-
badges: any[];
|
|
846
|
-
students: FileLockerUserItem[];
|
|
847
|
-
};
|
|
848
|
-
declare const PathwayTable: React.FC<PathwayTableProps & {
|
|
849
|
-
loading: boolean;
|
|
850
|
-
}>;
|
|
851
831
|
/**
|
|
852
832
|
* FileLockerUserItem
|
|
853
833
|
*/
|
|
854
|
-
type FileLockerUserItem = Item
|
|
834
|
+
type FileLockerUserItem = Item;
|
|
855
835
|
/**
|
|
856
836
|
* FileLockerClass
|
|
857
837
|
*/
|
|
@@ -868,7 +848,10 @@ type FileLockerProps = {
|
|
|
868
848
|
displayName: string;
|
|
869
849
|
description: string;
|
|
870
850
|
classes: FileLockerClass[];
|
|
871
|
-
lessons:
|
|
851
|
+
lessons: {
|
|
852
|
+
lessonId: string;
|
|
853
|
+
lessonName: string;
|
|
854
|
+
}[];
|
|
872
855
|
classId: string;
|
|
873
856
|
students: FileLockerUserItem[];
|
|
874
857
|
href: string;
|
|
@@ -883,6 +866,7 @@ type FileLockerProps = {
|
|
|
883
866
|
badgeId: string;
|
|
884
867
|
displayName: string;
|
|
885
868
|
categories?: string[];
|
|
869
|
+
lessonIds?: string[];
|
|
886
870
|
}[];
|
|
887
871
|
onBackClick: () => void;
|
|
888
872
|
onClassChange: (classId: string) => void;
|
|
@@ -896,4 +880,4 @@ type FileLockerProps = {
|
|
|
896
880
|
*/
|
|
897
881
|
declare const FileLocker: (props: FileLockerProps) => JSX.Element;
|
|
898
882
|
|
|
899
|
-
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, FileLocker, FileLockerClass, FileLockerProps, FileLockerUserItem, GettingStarted, GettingStartedProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, NewTrialRegistration, Organization, OrganizationProps, Pathway
|
|
883
|
+
export { AccountItem, AdminProvider, AdminProviderProps, App, AppProps, Badge, BadgeClass, BadgeItem, BadgeProps, BadgeUserItem, Badges, BadgesProps, Class, ClassItem, ClassProps, Classes, ClassesProps, Dashboard, DashboardClass, DashboardProps, FileLocker, FileLockerClass, FileLockerProps, FileLockerUserItem, GettingStarted, GettingStartedProps, Home, HomeProps, Lesson, LessonClass, LessonItem, LessonProps, LessonUserItem, Lessons, LessonsProps, MemberItem, Navbar, NavbarProps, NewTrialRegistration, Organization, OrganizationProps, Pathway, PathwayClass, PathwayProps, PathwayUserItem, Pathways, PathwaysItem, PathwaysProps, People, PeopleProps, StartAnonymousLesson, StartAnonymousLessonProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, TrialHome, TrialHomeProps, TrialRegistration, TrialRegistrationProps, UserItem };
|
package/dist/index.d.ts.css
CHANGED
|
@@ -23,4 +23,22 @@
|
|
|
23
23
|
*, ::before, ::after {
|
|
24
24
|
border-width: 0;
|
|
25
25
|
border-style: solid;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
* Same root cause as the border-style rule above: with preflight disabled, a button with no
|
|
30
|
+
* explicit background class falls back to native OS button chrome (gray background, black text)
|
|
31
|
+
* instead of transparent. Restoring just the specific preflight button rules every unstyled button
|
|
32
|
+
* depends on — buttons that already set their own background/padding via Tailwind classes are
|
|
33
|
+
* unaffected, since a class selector beats this bare element selector.
|
|
34
|
+
*/
|
|
35
|
+
button {
|
|
36
|
+
background-color: transparent;
|
|
37
|
+
background-image: none;
|
|
38
|
+
padding: 0;
|
|
39
|
+
margin: 0;
|
|
40
|
+
font: inherit;
|
|
41
|
+
color: inherit;
|
|
42
|
+
text-transform: none;
|
|
43
|
+
cursor: pointer;
|
|
26
44
|
}
|