@local-civics/mgmt-ui 0.1.213 → 0.1.215

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 CHANGED
@@ -79,7 +79,7 @@ declare const SwitchAccount: (props: SwitchAccountProps) => JSX.Element;
79
79
  /**
80
80
  * Item
81
81
  */
82
- interface Item$p {
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$o {
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$p[];
98
+ lessons: Item$o[];
99
99
  }
100
100
 
101
101
  /**
102
102
  * Item
103
103
  */
104
- interface Item$n {
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$o;
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$n[];
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$m {
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$m;
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$l {
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$k {
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$j {
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$i {
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$h {
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$l[];
238
- impacts: Item$j[];
239
- reflections: Item$k[];
237
+ students: Item$k[];
238
+ impacts: Item$i[];
239
+ reflections: Item$j[];
240
240
  classes: DashboardClass[];
241
- badges: Item$i[];
242
- lessons: Item$h[];
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$l) => void;
249
- onBadgeClick: (badge: Item$i) => void;
250
- onLessonClick: (lesson: Item$h) => void;
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$g = {
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$g;
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$f = {
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$f;
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$e {
341
+ interface Item$d {
342
342
  badgeId: string;
343
343
  badgeName: string;
344
344
  isComplete?: boolean;
@@ -347,9 +347,10 @@ interface Item$e {
347
347
  /**
348
348
  * Item
349
349
  */
350
- interface Item$d {
350
+ interface Item$c {
351
351
  lessonId: string;
352
352
  lessonName: string;
353
+ badgeName?: string;
353
354
  questionName: string;
354
355
  answer: string[];
355
356
  href: string;
@@ -358,9 +359,10 @@ interface Item$d {
358
359
  /**
359
360
  * Item
360
361
  */
361
- interface Item$c {
362
+ interface Item$b {
362
363
  lessonId: string;
363
364
  lessonName: string;
365
+ badgeName?: string;
364
366
  reflection: string;
365
367
  rating: number;
366
368
  href: string;
@@ -376,10 +378,10 @@ type StudentProps = {
376
378
  numberOfProblemsSolved: number;
377
379
  percentageOfLessonsCompleted: number;
378
380
  numberOfLessonsCompleted: number;
379
- badges: Item$e[];
381
+ badges: Item$d[];
380
382
  lessons: LessonItem$1[];
381
- answers: Item$d[];
382
- reflections: Item$c[];
383
+ answers: Item$c[];
384
+ reflections: Item$b[];
383
385
  onBackClick: () => void;
384
386
  };
385
387
  type LessonItem$1 = {
@@ -421,7 +423,7 @@ declare const Home: (props: HomeProps) => JSX.Element;
421
423
  /**
422
424
  * Item
423
425
  */
424
- interface Item$b {
426
+ interface Item$a {
425
427
  studentName: string;
426
428
  reflection: string;
427
429
  rating: number;
@@ -430,7 +432,7 @@ interface Item$b {
430
432
  /**
431
433
  * Item
432
434
  */
433
- interface Item$a {
435
+ interface Item$9 {
434
436
  questionName: string;
435
437
  answer: string[];
436
438
  }
@@ -438,12 +440,12 @@ interface Item$a {
438
440
  /**
439
441
  * Item
440
442
  */
441
- interface Item$9 {
443
+ interface Item$8 {
442
444
  userId: string;
443
445
  avatar: string;
444
446
  name: string;
445
447
  email: string;
446
- answers: Item$a[];
448
+ answers: Item$9[];
447
449
  isStarted?: boolean;
448
450
  isComplete?: boolean;
449
451
  href: string;
@@ -452,7 +454,7 @@ interface Item$9 {
452
454
  /**
453
455
  * Item
454
456
  */
455
- interface Item$8 {
457
+ interface Item$7 {
456
458
  question: string;
457
459
  answers: string[][];
458
460
  choices?: string[];
@@ -462,7 +464,7 @@ interface Item$8 {
462
464
  /**
463
465
  * LessonUserItem
464
466
  */
465
- type LessonUserItem = Item$9;
467
+ type LessonUserItem = Item$8;
466
468
  /**
467
469
  * LessonClass
468
470
  */
@@ -482,8 +484,8 @@ type LessonProps = {
482
484
  classId: string;
483
485
  classes: LessonClass[];
484
486
  students: LessonUserItem[];
485
- reflections: Item$b[];
486
- questions: Item$8[];
487
+ reflections: Item$a[];
488
+ questions: Item$7[];
487
489
  trial?: boolean;
488
490
  lessonsCompleted?: number;
489
491
  contributors?: {
@@ -504,17 +506,18 @@ declare const Lesson: (props: LessonProps) => JSX.Element;
504
506
  /**
505
507
  * Item
506
508
  */
507
- interface Item$7 {
509
+ interface Item$6 {
508
510
  lessonId: string;
509
511
  name: string;
510
512
  description: string;
513
+ pathway?: string;
511
514
  href: string;
512
515
  }
513
516
 
514
517
  /**
515
518
  * LessonItem
516
519
  */
517
- type LessonItem = Item$7;
520
+ type LessonItem = Item$6;
518
521
  /**
519
522
  * LessonsProps
520
523
  */
@@ -555,7 +558,7 @@ declare const Organization: (props: OrganizationProps) => JSX.Element;
555
558
  /**
556
559
  * Item
557
560
  */
558
- type Item$6 = {
561
+ type Item$5 = {
559
562
  userId: string;
560
563
  avatar: string;
561
564
  email: string;
@@ -573,7 +576,7 @@ type Item$6 = {
573
576
  /**
574
577
  * UserItem
575
578
  */
576
- type UserItem = Item$6;
579
+ type UserItem = Item$5;
577
580
  /**
578
581
  * PeopleProps
579
582
  */
@@ -706,7 +709,7 @@ declare const App: (props: AppProps) => JSX.Element;
706
709
  /**
707
710
  * Item
708
711
  */
709
- interface Item$5 {
712
+ interface Item$4 {
710
713
  badgeId: string;
711
714
  name: string;
712
715
  description: string;
@@ -716,7 +719,7 @@ interface Item$5 {
716
719
  /**
717
720
  * PathwaysItem
718
721
  */
719
- type PathwaysItem = Item$5;
722
+ type PathwaysItem = Item$4;
720
723
  /**
721
724
  * PathwaysProps
722
725
  */
@@ -734,7 +737,7 @@ declare const Pathways: (props: PathwaysProps) => JSX.Element;
734
737
  /**
735
738
  * Item
736
739
  */
737
- interface Item$4 {
740
+ interface Item$3 {
738
741
  badgeName: string;
739
742
  completion: number;
740
743
  isStarted?: boolean;
@@ -744,13 +747,13 @@ interface Item$4 {
744
747
  /**
745
748
  * Item
746
749
  */
747
- interface Item$3 {
750
+ interface Item$2 {
748
751
  userId: string;
749
752
  avatar: string;
750
753
  name: string;
751
754
  email: string;
752
755
  isComplete?: boolean;
753
- badges: Item$4[];
756
+ badges: Item$3[];
754
757
  categoryPoints?: Record<string, number>;
755
758
  [key: string]: any;
756
759
  }
@@ -758,7 +761,7 @@ interface Item$3 {
758
761
  /**
759
762
  * Item
760
763
  */
761
- interface Item$2 {
764
+ interface Item$1 {
762
765
  badgeId: string;
763
766
  badgeName: string;
764
767
  percentageCompletion: number;
@@ -768,7 +771,7 @@ interface Item$2 {
768
771
  /**
769
772
  * PathwayUserItem
770
773
  */
771
- type PathwayUserItem = Item$3;
774
+ type PathwayUserItem = Item$2;
772
775
  /**
773
776
  * PathwayClass
774
777
  */
@@ -785,7 +788,7 @@ type PathwayProps = {
785
788
  title: string;
786
789
  description: string;
787
790
  classes: PathwayClass[];
788
- badges: Item$2[];
791
+ badges: Item$1[];
789
792
  classId: string;
790
793
  students: PathwayUserItem[];
791
794
  categories: {
@@ -805,12 +808,12 @@ type PathwayProps = {
805
808
  * @param props
806
809
  * @constructor
807
810
  */
808
- declare const Pathway$1: (props: PathwayProps) => JSX.Element;
811
+ declare const Pathway: (props: PathwayProps) => JSX.Element;
809
812
 
810
813
  /**
811
814
  * Item
812
815
  */
813
- interface Item$1 {
816
+ interface Item {
814
817
  userId: string;
815
818
  avatar: string;
816
819
  name: string;
@@ -823,35 +826,14 @@ interface SubmissionItem {
823
826
  badgeId: string;
824
827
  lessonName: string;
825
828
  question: string;
829
+ updatedAt?: string;
830
+ pathwayName?: string;
826
831
  }
827
832
 
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
833
  /**
852
834
  * FileLockerUserItem
853
835
  */
854
- type FileLockerUserItem = Item$1;
836
+ type FileLockerUserItem = Item;
855
837
  /**
856
838
  * FileLockerClass
857
839
  */
@@ -868,7 +850,10 @@ type FileLockerProps = {
868
850
  displayName: string;
869
851
  description: string;
870
852
  classes: FileLockerClass[];
871
- lessons: Item[];
853
+ lessons: {
854
+ lessonId: string;
855
+ lessonName: string;
856
+ }[];
872
857
  classId: string;
873
858
  students: FileLockerUserItem[];
874
859
  href: string;
@@ -883,6 +868,7 @@ type FileLockerProps = {
883
868
  badgeId: string;
884
869
  displayName: string;
885
870
  categories?: string[];
871
+ lessonIds?: string[];
886
872
  }[];
887
873
  onBackClick: () => void;
888
874
  onClassChange: (classId: string) => void;
@@ -896,4 +882,4 @@ type FileLockerProps = {
896
882
  */
897
883
  declare const FileLocker: (props: FileLockerProps) => JSX.Element;
898
884
 
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$1 as Pathway, PathwayClass, PathwayProps, PathwayTable, PathwayUserItem, Pathways, PathwaysItem, PathwaysProps, People, PeopleProps, StartAnonymousLesson, StartAnonymousLessonProps, Student, StudentProps, SwitchAccount, SwitchAccountProps, TrialHome, TrialHomeProps, TrialRegistration, TrialRegistrationProps, UserItem };
885
+ 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 };
@@ -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
  }