@local-civics/hub-ui 0.1.208 → 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 +62 -7
- package/dist/index.js +539 -347
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +537 -348
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
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
|
*/
|
|
@@ -1091,8 +1130,9 @@ declare const PathwayButton: (props: PathwayButtonProps) => JSX.Element;
|
|
|
1091
1130
|
type AuthLayoutProps = {
|
|
1092
1131
|
isLoading?: boolean;
|
|
1093
1132
|
pathname?: string;
|
|
1094
|
-
page?: "profile"
|
|
1133
|
+
page?: "profile";
|
|
1095
1134
|
disabled?: boolean;
|
|
1135
|
+
topNav?: boolean;
|
|
1096
1136
|
header?: React__default.ReactNode;
|
|
1097
1137
|
subheader?: React__default.ReactNode;
|
|
1098
1138
|
sidebar?: React__default.ReactNode;
|
|
@@ -1101,12 +1141,7 @@ type AuthLayoutProps = {
|
|
|
1101
1141
|
children?: React__default.ReactNode;
|
|
1102
1142
|
onHome?: () => void;
|
|
1103
1143
|
onProfile?: () => void;
|
|
1104
|
-
onExplore?: () => void;
|
|
1105
|
-
onCalendar?: () => void;
|
|
1106
1144
|
onLogout?: () => void;
|
|
1107
|
-
onFAQ?: () => void;
|
|
1108
|
-
onPrivacy?: () => void;
|
|
1109
|
-
onTerms?: () => void;
|
|
1110
1145
|
onSwitchAccount?: () => void;
|
|
1111
1146
|
};
|
|
1112
1147
|
/**
|
|
@@ -1136,4 +1171,24 @@ type HomeLayoutProps = {
|
|
|
1136
1171
|
*/
|
|
1137
1172
|
declare const HomeLayout: (props: HomeLayoutProps) => JSX.Element;
|
|
1138
1173
|
|
|
1139
|
-
|
|
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 };
|