@local-civics/hub-ui 0.1.110 → 0.1.112
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 +20 -1
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5702,6 +5702,36 @@ const LogServiceButton = (props) => {
|
|
|
5702
5702
|
), isOpen && /* @__PURE__ */ React__default.createElement(Form, __spreadProps(__spreadValues({ onSubmit: props.onSubmit }, props.form), { onClose })));
|
|
5703
5703
|
};
|
|
5704
5704
|
|
|
5705
|
+
const Stopwatch = (props) => {
|
|
5706
|
+
const ctaList = (props == null ? void 0 : props.ctaList) || [];
|
|
5707
|
+
const getColor = (label) => {
|
|
5708
|
+
if (label.toLowerCase() === "start") {
|
|
5709
|
+
return "green";
|
|
5710
|
+
} else if (label.toLowerCase() === "stop") {
|
|
5711
|
+
return "rose";
|
|
5712
|
+
}
|
|
5713
|
+
return "blue";
|
|
5714
|
+
};
|
|
5715
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "shadow-2xl shadow-gray-400 h-30 w-48 grid grid-cols-1 justify-items-center text-slate-600 text-md gap-4 p-4 box-border" }, /* @__PURE__ */ React__default.createElement("div", { className: "shadow-xl w-36 text-center text-lg p-2" }, props.time), /* @__PURE__ */ React__default.createElement("div", { className: "grid grid-cols-3 gap-2" }, ctaList && ctaList.length && ctaList.map((ctaObj, i) => {
|
|
5716
|
+
const color = getColor(ctaObj.ctaLabel || "");
|
|
5717
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
5718
|
+
Button,
|
|
5719
|
+
{
|
|
5720
|
+
key: i,
|
|
5721
|
+
onClick: () => props.onCTAClick && props.onCTAClick(ctaObj.ctaLabel || ""),
|
|
5722
|
+
theme: "dark",
|
|
5723
|
+
border: "rounded",
|
|
5724
|
+
size: "sm",
|
|
5725
|
+
spacing: "xs",
|
|
5726
|
+
color,
|
|
5727
|
+
text: ctaObj.ctaLabel,
|
|
5728
|
+
active: false,
|
|
5729
|
+
disabled: ctaObj.readOnly
|
|
5730
|
+
}
|
|
5731
|
+
);
|
|
5732
|
+
}))));
|
|
5733
|
+
};
|
|
5734
|
+
|
|
5705
5735
|
const TaskItem = (props) => {
|
|
5706
5736
|
const color = props.status === "done" ? "text-green-500" : props.status === "in-progress" ? "text-cyan-100" : "text-gray-300";
|
|
5707
5737
|
const border = props.full ? "border-b border-gray-100" : props.status === "done" ? "border rounded border-gray-200" : "border rounded border-gray-200";
|
|
@@ -5771,5 +5801,5 @@ const HomeLayout = (props) => {
|
|
|
5771
5801
|
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));
|
|
5772
5802
|
};
|
|
5773
5803
|
|
|
5774
|
-
export { AboutWidget, AchievementWidget, ActivityCard, ActivityItem, ActivityList, ActivityReflection, AuthLayout, Badge, BadgeActivityMenu, BadgeSection, BadgeSuccessDialog, Board, Button, Card, DateSelection, EventItem, EventList, Home, HomeLayout, Icon$1 as Icon, ImpactWidget, LearningForm, Loader, LogServiceButton, Logo, Modal, NavBar, NavLink, NotFound, Onboarding, Overlay, PathwayButton, PathwayFilter, PathwayProgress, PathwayWidget, ProfileWidget, Progress, Search, SearchButton, SearchResult, SettingsCard, Tab, TagFilter, TaskItem, TaskList, Widget, WidgetBody, WidgetHeader, WidgetHeaderLink, WidgetTitle };
|
|
5804
|
+
export { AboutWidget, AchievementWidget, ActivityCard, ActivityItem, ActivityList, ActivityReflection, AuthLayout, Badge, BadgeActivityMenu, BadgeSection, BadgeSuccessDialog, Board, Button, Card, DateSelection, EventItem, EventList, Home, HomeLayout, Icon$1 as Icon, ImpactWidget, LearningForm, Loader, LogServiceButton, Logo, Modal, NavBar, NavLink, NotFound, Onboarding, Overlay, PathwayButton, PathwayFilter, PathwayProgress, PathwayWidget, ProfileWidget, Progress, Search, SearchButton, SearchResult, SettingsCard, Stopwatch, Tab, TagFilter, TaskItem, TaskList, Widget, WidgetBody, WidgetHeader, WidgetHeaderLink, WidgetTitle };
|
|
5775
5805
|
//# sourceMappingURL=index.mjs.map
|