@local-civics/hub-ui 0.1.223 → 0.1.225
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 +37 -2
- package/dist/index.js +142 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +144 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -202,6 +202,9 @@ type BadgeProps = BadgeCardProps & BadgeButtonProps & {
|
|
|
202
202
|
code?: string;
|
|
203
203
|
editChoices?: boolean;
|
|
204
204
|
open?: boolean;
|
|
205
|
+
pathwayName?: string;
|
|
206
|
+
numberOfLessons?: number;
|
|
207
|
+
weight?: number;
|
|
205
208
|
onOpen?: () => void;
|
|
206
209
|
};
|
|
207
210
|
/**
|
|
@@ -281,7 +284,14 @@ type BadgesListProps = {
|
|
|
281
284
|
badges: BadgeProps[];
|
|
282
285
|
isLoading?: boolean;
|
|
283
286
|
list?: boolean;
|
|
287
|
+
pathways?: {
|
|
288
|
+
pathwayId: string;
|
|
289
|
+
title: string;
|
|
290
|
+
}[];
|
|
291
|
+
selectedPathway?: string;
|
|
284
292
|
onToggleLayout?: (next: boolean) => void;
|
|
293
|
+
onPathwayChange?: (pathwayId: string) => void;
|
|
294
|
+
onSearch?: (value: string) => void;
|
|
285
295
|
};
|
|
286
296
|
/**
|
|
287
297
|
* The full-page "My Badges" grid — the expanded sibling of the Home page's `BadgesCard` widget.
|
|
@@ -319,7 +329,7 @@ type BadgeDetailProps = {
|
|
|
319
329
|
choices?: BadgeActivityProps[];
|
|
320
330
|
canSubmit?: boolean;
|
|
321
331
|
finishedAt?: string;
|
|
322
|
-
|
|
332
|
+
onPathwayClick?: () => void;
|
|
323
333
|
onSubmit?: () => void;
|
|
324
334
|
};
|
|
325
335
|
/**
|
|
@@ -952,6 +962,31 @@ type LogServiceButtonProps = {
|
|
|
952
962
|
*/
|
|
953
963
|
declare const LogServiceButton: (props: LogServiceButtonProps) => JSX.Element;
|
|
954
964
|
|
|
965
|
+
/**
|
|
966
|
+
* SortableHeaderProps
|
|
967
|
+
*/
|
|
968
|
+
type SortableHeaderProps = {
|
|
969
|
+
label: string;
|
|
970
|
+
sortKey: string;
|
|
971
|
+
sortConfig: {
|
|
972
|
+
key: string | number;
|
|
973
|
+
direction: "asc" | "desc" | null;
|
|
974
|
+
};
|
|
975
|
+
onSort: (key: string) => void;
|
|
976
|
+
align?: "center" | "right";
|
|
977
|
+
className?: string;
|
|
978
|
+
};
|
|
979
|
+
/**
|
|
980
|
+
* A sortable column header button with a 3-glyph-state indicator: the active sort column shows a
|
|
981
|
+
* single directional caret (accent-colored, stays visible on hover), every other sortable column
|
|
982
|
+
* shows both carets stacked together to signal "clickable, not currently sorted." Owns its full
|
|
983
|
+
* text styling rather than relying on a parent's ambient style, since it's meant to be dropped
|
|
984
|
+
* into many different header rows across the app, not just one.
|
|
985
|
+
* @param props
|
|
986
|
+
* @constructor
|
|
987
|
+
*/
|
|
988
|
+
declare function SortableHeader(props: SortableHeaderProps): JSX.Element;
|
|
989
|
+
|
|
955
990
|
/**
|
|
956
991
|
* StopwatchProps
|
|
957
992
|
*/
|
|
@@ -1549,4 +1584,4 @@ type HomeLayoutProps = {
|
|
|
1549
1584
|
*/
|
|
1550
1585
|
declare const HomeLayout: (props: HomeLayoutProps) => JSX.Element;
|
|
1551
1586
|
|
|
1552
|
-
export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeDetail, BadgeDetailProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, BadgesCard, BadgesCardProps, BadgesList, BadgesListProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, CtaListProps, DashboardShell, DashboardShellProps, DashboardSidebar, DashboardSidebarIdentity, DashboardSidebarLinks, DashboardSidebarProps, DashboardSidebarTabName, DashboardTopBar, DashboardTopBarProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, FileList, FileListItem, FileListProps, FileLocker, FileLockerBadge, FileLockerPathway, FileLockerProps, Footer, FooterProps, 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, PathwayDetail, PathwayDetailProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayItem, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayTranscript, PathwayWidget, PathwayWidgetProps, PathwaysCard, PathwaysCardProps, PathwaysList, PathwaysListProps, Pill, PillAccent, PillProps, ProfileHeroCard, ProfileHeroCardProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, StatTile, StatTileAccent, StatTileProps, StatTileRow, StatTileRowProps, Stopwatch, StopwatchProps, SubmissionItem, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };
|
|
1587
|
+
export { AboutWidget, AboutWidgetProps, AchievementWidget, AchievementWidgetProps, ActivityCard, ActivityCardProps, ActivityItem, ActivityItemProps, ActivityList, ActivityListProps, ActivityReflection, ActivityReflectionProps, AuthLayout, AuthLayoutProps, Badge, BadgeActivityMenu, BadgeActivityMenuProps, BadgeDetail, BadgeDetailProps, BadgeFilterOption, BadgeProps, BadgeSection, BadgeSectionProps, BadgeSuccessDialog, BadgeSuccessDialogProps, BadgesCard, BadgesCardProps, BadgesList, BadgesListProps, Board, BoardProps, Button, ButtonBorder, ButtonColor, ButtonFilter, ButtonJustify, ButtonProps, ButtonSize, ButtonSpacing, ButtonTheme, Card, CardProps, CtaListProps, DashboardShell, DashboardShellProps, DashboardSidebar, DashboardSidebarIdentity, DashboardSidebarLinks, DashboardSidebarProps, DashboardSidebarTabName, DashboardTopBar, DashboardTopBarProps, DateSelection, DateSelectionProps, DaySelectionOptionProps, EventItem, EventItemProps, EventList, EventListProps, FileList, FileListItem, FileListProps, FileLocker, FileLockerBadge, FileLockerPathway, FileLockerProps, Footer, FooterProps, 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, PathwayDetail, PathwayDetailProps, PathwayFilter, PathwayFilterOption, PathwayFilterProps, PathwayItem, PathwayProgress, PathwayProgressHeight, PathwayProgressProps, PathwayProps, PathwaySection, PathwaySectionProps, PathwayTranscript, PathwayWidget, PathwayWidgetProps, PathwaysCard, PathwaysCardProps, PathwaysList, PathwaysListProps, Pill, PillAccent, PillProps, ProfileHeroCard, ProfileHeroCardProps, ProfileWidget, Progress, ProgressProps, ResidentWidgetProps, Search, SearchButton, SearchButtonProps, SearchProps, SearchResult, SearchResultProps, SettingsCard, SettingsCardProps, SortableHeader, SortableHeaderProps, StatTile, StatTileAccent, StatTileProps, StatTileRow, StatTileRowProps, Stopwatch, StopwatchProps, SubmissionItem, Tab, TabProps, TagFilter, TagFilterProps, TaskItem, TaskItemProps, TaskList, TaskListProps, Widget, WidgetBody, WidgetBodyProps, WidgetHeader, WidgetHeaderLink, WidgetHeaderLinkProps, WidgetHeaderProps, WidgetProps, WidgetTitle, WidgetTitleProps };
|