@vantageos/mosaic-blocks 0.5.31-alpha → 0.5.33-alpha

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.cjs CHANGED
@@ -48,7 +48,7 @@ function _interopNamespace(e) {
48
48
  var React30__namespace = /*#__PURE__*/_interopNamespace(React30);
49
49
 
50
50
  // src/version.ts
51
- var version = "0.5.31-alpha";
51
+ var version = "0.5.33-alpha";
52
52
  function Placeholder({ label = "mosaic-blocks placeholder" }) {
53
53
  return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
54
54
  }
@@ -2874,7 +2874,7 @@ function MosaicAdaptiveNavigation({
2874
2874
  {
2875
2875
  className: cn40(
2876
2876
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2877
- item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
2877
+ item.isComplete ? "bg-success-500 text-white" : "bg-muted text-muted-foreground"
2878
2878
  ),
2879
2879
  "aria-hidden": "true",
2880
2880
  children: item.isComplete ? /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, {}) : idx + 1
@@ -2934,7 +2934,7 @@ function MosaicAdaptiveNavigation({
2934
2934
  {
2935
2935
  className: cn40(
2936
2936
  "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2937
- item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2937
+ item.isComplete ? "bg-success-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2938
2938
  ),
2939
2939
  "aria-hidden": "true",
2940
2940
  children: item.isComplete ? /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, {}) : idx + 1
@@ -3125,6 +3125,7 @@ function MosaicAppSidebar({
3125
3125
  injectStyles2();
3126
3126
  }, []);
3127
3127
  const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
3128
+ const footerStatusIconClass = "text-success-500";
3128
3129
  const toggleSubmenu = (id) => {
3129
3130
  setExpandedItems((prev) => {
3130
3131
  const next = new Set(prev);
@@ -3280,13 +3281,19 @@ function MosaicAppSidebar({
3280
3281
  ] })
3281
3282
  ] }),
3282
3283
  footerStatus && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-t border-sidebar-border p-4", children: !isCollapsed ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 rounded-lg bg-sidebar-accent/30 p-3", children: [
3283
- footerStatus.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-green-500", children: footerStatus.icon }),
3284
+ footerStatus.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: footerStatusIconClass, children: footerStatus.icon }),
3284
3285
  !footerStatus.icon && /* @__PURE__ */ jsxRuntime.jsx(TrendingUpIcon, {}),
3285
3286
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
3286
3287
  /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium text-sidebar-foreground", children: footerStatus.label }),
3287
3288
  footerStatus.sublabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-sidebar-foreground/60", children: footerStatus.sublabel })
3288
3289
  ] })
3289
- ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 text-green-500", children: footerStatus.icon ?? /* @__PURE__ */ jsxRuntime.jsx(TrendingUpIcon, {}) }) }) }),
3290
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(
3291
+ "div",
3292
+ {
3293
+ className: `flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 ${footerStatusIconClass}`,
3294
+ children: footerStatus.icon ?? /* @__PURE__ */ jsxRuntime.jsx(TrendingUpIcon, {})
3295
+ }
3296
+ ) }) }),
3290
3297
  bottomNavItems.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
3291
3298
  "div",
3292
3299
  {
@@ -3645,7 +3652,10 @@ function injectStyles5() {
3645
3652
  document.head.appendChild(s);
3646
3653
  }
3647
3654
  var STATUS_CLASSES = {
3648
- active: "bg-green-500/10 text-green-600 border border-green-500/20 dark:text-green-400",
3655
+ // success-700 already carries a dark-mode-adjusted value in the token set
3656
+ // (@vantageos/mosaic-tokens [data-theme="dark"] block), so no dark: prefix
3657
+ // is needed here — it replaces the old dark:text-green-400 override.
3658
+ active: "bg-success-500/10 text-success-700 border border-success-500/20",
3649
3659
  completed: "bg-blue-500/10 text-blue-600 border border-blue-500/20 dark:text-blue-400",
3650
3660
  archived: "bg-gray-500/10 text-gray-600 border border-gray-500/20 dark:text-gray-400"
3651
3661
  };
@@ -9010,7 +9020,7 @@ function TrendingIcon() {
9010
9020
  strokeLinecap: "round",
9011
9021
  strokeLinejoin: "round",
9012
9022
  "aria-hidden": "true",
9013
- className: "text-green-500",
9023
+ className: "text-success-500",
9014
9024
  children: [
9015
9025
  /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
9016
9026
  /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "17 6 23 6 23 12" })