@local-civics/hub-ui 0.1.207 → 0.1.209

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
@@ -456,6 +456,11 @@ type CardProps = {
456
456
  */
457
457
  declare const Card: (props: CardProps) => JSX.Element;
458
458
 
459
+ /**
460
+ * A component for the page footer.
461
+ */
462
+ declare const Footer: () => JSX.Element;
463
+
459
464
  /**
460
465
  * Home
461
466
  * @constructor
@@ -879,6 +884,40 @@ type LogServiceButtonProps = {
879
884
  */
880
885
  declare const LogServiceButton: (props: LogServiceButtonProps) => JSX.Element;
881
886
 
887
+ /**
888
+ * The name of a sidebar tab.
889
+ */
890
+ type SidebarTabName = "profile" | "pathways" | "badges" | "file-locker" | "transcript" | "portfolio";
891
+ /**
892
+ * A tab's live destination. Tabs with no entry here render disabled.
893
+ */
894
+ type SidebarLinks = Partial<Record<SidebarTabName, {
895
+ href: string;
896
+ }>>;
897
+ /**
898
+ * The signed-in student shown above the nav.
899
+ */
900
+ type SidebarIdentity = {
901
+ avatarURL?: string;
902
+ name: string;
903
+ subtitle?: string;
904
+ };
905
+ /**
906
+ * The properties for the sidebar.
907
+ */
908
+ type SidebarProps = {
909
+ active?: SidebarTabName;
910
+ links: SidebarLinks;
911
+ identity?: SidebarIdentity;
912
+ settingsHref?: string;
913
+ disabled?: boolean;
914
+ onLogout?: () => void;
915
+ };
916
+ /**
917
+ * A component for navigating between the student's home page sections.
918
+ */
919
+ declare const Sidebar: (props: SidebarProps) => JSX.Element;
920
+
882
921
  /**
883
922
  * StopwatchProps
884
923
  */
@@ -1017,6 +1056,7 @@ type BadgeItem = {
1017
1056
  completedAt?: string | null;
1018
1057
  startedAt?: string | null;
1019
1058
  weight: number;
1059
+ iconURL?: string;
1020
1060
  onClick?: () => void;
1021
1061
  };
1022
1062
  type PathwayCriteria = Record<string, number>;
@@ -1090,8 +1130,9 @@ declare const PathwayButton: (props: PathwayButtonProps) => JSX.Element;
1090
1130
  type AuthLayoutProps = {
1091
1131
  isLoading?: boolean;
1092
1132
  pathname?: string;
1093
- page?: "profile" | "explore" | "calendar";
1133
+ page?: "profile";
1094
1134
  disabled?: boolean;
1135
+ topNav?: boolean;
1095
1136
  header?: React__default.ReactNode;
1096
1137
  subheader?: React__default.ReactNode;
1097
1138
  sidebar?: React__default.ReactNode;
@@ -1100,12 +1141,7 @@ type AuthLayoutProps = {
1100
1141
  children?: React__default.ReactNode;
1101
1142
  onHome?: () => void;
1102
1143
  onProfile?: () => void;
1103
- onExplore?: () => void;
1104
- onCalendar?: () => void;
1105
1144
  onLogout?: () => void;
1106
- onFAQ?: () => void;
1107
- onPrivacy?: () => void;
1108
- onTerms?: () => void;
1109
1145
  onSwitchAccount?: () => void;
1110
1146
  };
1111
1147
  /**
@@ -1135,4 +1171,24 @@ type HomeLayoutProps = {
1135
1171
  */
1136
1172
  declare const HomeLayout: (props: HomeLayoutProps) => JSX.Element;
1137
1173
 
1138
- export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, CtaListProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, Home, HomeLayout, HomeLayoutProps, Icon, IconName, IconProps, ImpactWidget, ImpactWidgetProps, LearningForm, LearningFormProps, Loader, LoaderProps, LogServiceButton, LogServiceButtonProps, Logo, Modal, ModalProps, NavBar, NavBarProps, NavLink, NavLinkName, NavLinkProps, NotFound, NotFoundProps, Onboarding, OnboardingProps, Overlay, OverlayProps, Pathway, PathwayButton, PathwayButtonProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayWidget, PathwayWidgetProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, Stopwatch, StopwatchProps, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };
1174
+ /**
1175
+ * SidebarLayoutProps
1176
+ */
1177
+ type SidebarLayoutProps = Omit<AuthLayoutProps, "sidebar" | "children" | "topNav" | "page" | "onProfile"> & {
1178
+ active?: SidebarTabName;
1179
+ links: SidebarLinks;
1180
+ identity?: SidebarIdentity;
1181
+ settingsHref?: string;
1182
+ sidebarExtra?: React__default.ReactNode;
1183
+ };
1184
+ /**
1185
+ * SidebarLayout
1186
+ *
1187
+ * AuthLayout with the student home-page Sidebar pre-wired into its sidebar slot.
1188
+ * Reused by every page that adopts the new left nav, not just one page - the
1189
+ * caller still supplies header/subheader/main the same way it would for AuthLayout directly.
1190
+ * @constructor
1191
+ */
1192
+ declare const SidebarLayout: (props: SidebarLayoutProps) => JSX.Element;
1193
+
1194
+ export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, CtaListProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, Footer, Home, HomeLayout, HomeLayoutProps, Icon, IconName, IconProps, ImpactWidget, ImpactWidgetProps, LearningForm, LearningFormProps, Loader, LoaderProps, LogServiceButton, LogServiceButtonProps, Logo, Modal, ModalProps, NavBar, NavBarProps, NavLink, NavLinkName, NavLinkProps, NotFound, NotFoundProps, Onboarding, OnboardingProps, Overlay, OverlayProps, Pathway, PathwayButton, PathwayButtonProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayWidget, PathwayWidgetProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, Sidebar, SidebarIdentity, SidebarLayout, SidebarLayoutProps, SidebarLinks, SidebarProps, SidebarTabName, Stopwatch, StopwatchProps, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };