@local-civics/hub-ui 0.1.244 → 0.1.245
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 +23 -1
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +27 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useCallback, useState, useMemo } from 'react';
|
|
3
3
|
import 'external-svg-loader';
|
|
4
|
-
import { IconCaretDown, IconCaretUp, IconSearch, IconLayoutGrid, IconList, IconBrandInstagram, IconBrandLinkedin, IconBrandFacebook, IconCategory2, IconRoute, IconAlbum, IconSwitchHorizontal, IconLogout, IconUser, IconClipboard, IconMessageCircle, IconBriefcase, IconBell, IconDownload, IconRefresh, IconCalendar, IconCalendarStats, IconCheck, IconArrowRight } from '@tabler/icons';
|
|
4
|
+
import { IconCaretDown, IconCaretUp, IconSearch, IconLayoutGrid, IconList, IconBrandInstagram, IconBrandLinkedin, IconBrandFacebook, IconCategory2, IconRoute, IconAlbum, IconSwitchHorizontal, IconLogout, IconUser, IconClipboard, IconMessageCircle, IconBriefcase, IconBell, IconDownload, IconRefresh, IconCalendar, IconCalendarStats, IconCheck, IconArrowRight, IconChevronLeft, IconChevronRight } from '@tabler/icons';
|
|
5
5
|
import LinkifyIt from 'linkify-it';
|
|
6
6
|
import reactStringReplace from 'react-string-replace';
|
|
7
7
|
import { Link } from 'react-router-dom';
|
|
@@ -7289,6 +7289,31 @@ const SubmissionReviewHeader = (props) => {
|
|
|
7289
7289
|
), /* @__PURE__ */ React.createElement("span", { className: "shrink-0 rounded-full bg-slate-100 px-3 py-1 text-[10px] font-bold uppercase tracking-wide text-slate-500" }, "Preview"));
|
|
7290
7290
|
};
|
|
7291
7291
|
|
|
7292
|
+
const SubmissionQueueNav = (props) => {
|
|
7293
|
+
if (props.total <= 1) {
|
|
7294
|
+
return null;
|
|
7295
|
+
}
|
|
7296
|
+
return /* @__PURE__ */ React.createElement("div", { className: "mb-4 flex items-center justify-between rounded-xl border border-slate-200 bg-white px-4 py-3" }, props.onPrevious ? /* @__PURE__ */ React.createElement(
|
|
7297
|
+
"button",
|
|
7298
|
+
{
|
|
7299
|
+
type: "button",
|
|
7300
|
+
onClick: props.onPrevious,
|
|
7301
|
+
className: "flex items-center gap-1 text-xs font-bold text-dark-blue-400 hover:underline"
|
|
7302
|
+
},
|
|
7303
|
+
/* @__PURE__ */ React.createElement(IconChevronLeft, { size: 14, stroke: 2.5 }),
|
|
7304
|
+
"Previous"
|
|
7305
|
+
) : /* @__PURE__ */ React.createElement("span", null), /* @__PURE__ */ React.createElement("div", { className: "shrink-0 text-xs font-bold text-slate-500" }, "Student ", props.index + 1, " of ", props.total, props.label ? ` \u2014 ${props.label}` : ""), props.onNext ? /* @__PURE__ */ React.createElement(
|
|
7306
|
+
"button",
|
|
7307
|
+
{
|
|
7308
|
+
type: "button",
|
|
7309
|
+
onClick: props.onNext,
|
|
7310
|
+
className: "flex items-center gap-1 text-xs font-bold text-dark-blue-400 hover:underline"
|
|
7311
|
+
},
|
|
7312
|
+
"Next",
|
|
7313
|
+
/* @__PURE__ */ React.createElement(IconChevronRight, { size: 14, stroke: 2.5 })
|
|
7314
|
+
) : /* @__PURE__ */ React.createElement("span", null));
|
|
7315
|
+
};
|
|
7316
|
+
|
|
7292
7317
|
const AuthLayout = (props) => {
|
|
7293
7318
|
return /* @__PURE__ */ React__default.createElement("main", { className: "relative h-screen w-full bg-white font-proxima" }, /* @__PURE__ */ React__default.createElement(Loader, { isLoading: props.isLoading }, props.topNav !== false && /* @__PURE__ */ React__default.createElement(NavBar, null, /* @__PURE__ */ React__default.createElement(NavLink, { disabled: !props.onHome || props.disabled, name: "home", onClick: props.onHome }), props.onProfile && /* @__PURE__ */ React__default.createElement(
|
|
7294
7319
|
NavLink,
|
|
@@ -7317,5 +7342,5 @@ const HomeLayout = (props) => {
|
|
|
7317
7342
|
return /* @__PURE__ */ React__default.createElement("main", { className: "relative h-screen w-full overflow-hidden bg-white font-proxima" }, /* @__PURE__ */ React__default.createElement(NavBar, null, /* @__PURE__ */ React__default.createElement(NavLink, { name: "home", onClick: props.onHome, active: true }), /* @__PURE__ */ React__default.createElement(NavLink, { name: "login", onClick: props.onLogin }), /* @__PURE__ */ React__default.createElement(NavLink, { name: "faq", onClick: props.onFAQ }), /* @__PURE__ */ React__default.createElement(NavLink, { name: "privacy", onClick: props.onPrivacy }), /* @__PURE__ */ React__default.createElement(NavLink, { name: "terms", onClick: props.onTerms })), /* @__PURE__ */ React__default.createElement("section", { className: "absolute top-0 left-0 h-full overflow-hidden pt-16 w-full" }, props.children));
|
|
7318
7343
|
};
|
|
7319
7344
|
|
|
7320
|
-
export { AboutWidget, AchievementWidget, ActivityCard, ActivityItem, ActivityList, ActivityReflection, AuthLayout, Badge, BadgeActivityMenu, BadgeDetail, BadgeSection, BadgeSuccessDialog, BadgesCard, BadgesList, Board, Button, Card, Comments, DashboardShell, DashboardSidebar, DashboardTopBar, DateSelection, EventItem, EventList, FileList, FileLocker, Footer, Home, HomeLayout, Icon$1 as Icon, ImpactWidget, LearningForm, Loader, LogServiceButton, Logo, Modal, NavBar, NavLink, NotFound, Onboarding, Overlay, Pathway, PathwayButton, PathwayDetail, PathwayFilter, PathwayProgress, PathwaySection, PathwayTranscript, PathwayWidget, PathwaysCard, PathwaysList, Pill, ProfileHeroCard, ProfileWidget, Progress, Search, SearchButton, SearchResult, SettingsCard, SortableHeader, StatTile, StatTileRow, Stopwatch, SubmissionReviewHeader, Tab, TagFilter, TaskItem, TaskList, Widget, WidgetBody, WidgetHeader, WidgetHeaderLink, WidgetTitle };
|
|
7345
|
+
export { AboutWidget, AchievementWidget, ActivityCard, ActivityItem, ActivityList, ActivityReflection, AuthLayout, Badge, BadgeActivityMenu, BadgeDetail, BadgeSection, BadgeSuccessDialog, BadgesCard, BadgesList, Board, Button, Card, Comments, DashboardShell, DashboardSidebar, DashboardTopBar, DateSelection, EventItem, EventList, FileList, FileLocker, Footer, Home, HomeLayout, Icon$1 as Icon, ImpactWidget, LearningForm, Loader, LogServiceButton, Logo, Modal, NavBar, NavLink, NotFound, Onboarding, Overlay, Pathway, PathwayButton, PathwayDetail, PathwayFilter, PathwayProgress, PathwaySection, PathwayTranscript, PathwayWidget, PathwaysCard, PathwaysList, Pill, ProfileHeroCard, ProfileWidget, Progress, Search, SearchButton, SearchResult, SettingsCard, SortableHeader, StatTile, StatTileRow, Stopwatch, SubmissionQueueNav, SubmissionReviewHeader, Tab, TagFilter, TaskItem, TaskList, Widget, WidgetBody, WidgetHeader, WidgetHeaderLink, WidgetTitle };
|
|
7321
7346
|
//# sourceMappingURL=index.mjs.map
|