@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.d.cts CHANGED
@@ -21,7 +21,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
21
21
  import { AlertDialog } from '@base-ui/react/alert-dialog';
22
22
  export { Tooltip } from '@base-ui/react/tooltip';
23
23
 
24
- declare const version = "0.5.31-alpha";
24
+ declare const version = "0.5.33-alpha";
25
25
 
26
26
  /**
27
27
  * Placeholder component — infra scaffold only.
package/dist/index.d.ts CHANGED
@@ -21,7 +21,7 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
21
21
  import { AlertDialog } from '@base-ui/react/alert-dialog';
22
22
  export { Tooltip } from '@base-ui/react/tooltip';
23
23
 
24
- declare const version = "0.5.31-alpha";
24
+ declare const version = "0.5.33-alpha";
25
25
 
26
26
  /**
27
27
  * Placeholder component — infra scaffold only.
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import { AlertDialog } from '@base-ui/react/alert-dialog';
29
29
  import { Popover } from '@base-ui/react/popover';
30
30
 
31
31
  // src/version.ts
32
- var version = "0.5.31-alpha";
32
+ var version = "0.5.33-alpha";
33
33
  function Placeholder({ label = "mosaic-blocks placeholder" }) {
34
34
  return /* @__PURE__ */ jsx("div", { "data-mosaic-block": "placeholder", children: label });
35
35
  }
@@ -2855,7 +2855,7 @@ function MosaicAdaptiveNavigation({
2855
2855
  {
2856
2856
  className: cn40(
2857
2857
  "flex h-8 w-8 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2858
- item.isComplete ? "bg-green-500 text-white" : "bg-muted text-muted-foreground"
2858
+ item.isComplete ? "bg-success-500 text-white" : "bg-muted text-muted-foreground"
2859
2859
  ),
2860
2860
  "aria-hidden": "true",
2861
2861
  children: item.isComplete ? /* @__PURE__ */ jsx(CheckIcon2, {}) : idx + 1
@@ -2915,7 +2915,7 @@ function MosaicAdaptiveNavigation({
2915
2915
  {
2916
2916
  className: cn40(
2917
2917
  "flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold",
2918
- item.isComplete ? "bg-green-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2918
+ item.isComplete ? "bg-success-500 text-white" : isActive ? "bg-primary-foreground/20 text-primary-foreground" : "bg-background text-muted-foreground"
2919
2919
  ),
2920
2920
  "aria-hidden": "true",
2921
2921
  children: item.isComplete ? /* @__PURE__ */ jsx(CheckIcon2, {}) : idx + 1
@@ -3106,6 +3106,7 @@ function MosaicAppSidebar({
3106
3106
  injectStyles2();
3107
3107
  }, []);
3108
3108
  const sidebarWidth = isMobile ? "100%" : isCollapsed ? "64px" : "280px";
3109
+ const footerStatusIconClass = "text-success-500";
3109
3110
  const toggleSubmenu = (id) => {
3110
3111
  setExpandedItems((prev) => {
3111
3112
  const next = new Set(prev);
@@ -3261,13 +3262,19 @@ function MosaicAppSidebar({
3261
3262
  ] })
3262
3263
  ] }),
3263
3264
  footerStatus && /* @__PURE__ */ jsx("div", { className: "shrink-0 border-t border-sidebar-border p-4", children: !isCollapsed ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 rounded-lg bg-sidebar-accent/30 p-3", children: [
3264
- footerStatus.icon && /* @__PURE__ */ jsx("span", { className: "text-green-500", children: footerStatus.icon }),
3265
+ footerStatus.icon && /* @__PURE__ */ jsx("span", { className: footerStatusIconClass, children: footerStatus.icon }),
3265
3266
  !footerStatus.icon && /* @__PURE__ */ jsx(TrendingUpIcon, {}),
3266
3267
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
3267
3268
  /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-sidebar-foreground", children: footerStatus.label }),
3268
3269
  footerStatus.sublabel && /* @__PURE__ */ jsx("p", { className: "text-xs text-sidebar-foreground/60", children: footerStatus.sublabel })
3269
3270
  ] })
3270
- ] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ 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__ */ jsx(TrendingUpIcon, {}) }) }) }),
3271
+ ] }) : /* @__PURE__ */ jsx("div", { className: "flex justify-center", children: /* @__PURE__ */ jsx(
3272
+ "div",
3273
+ {
3274
+ className: `flex h-8 w-8 items-center justify-center rounded-lg bg-sidebar-accent/30 ${footerStatusIconClass}`,
3275
+ children: footerStatus.icon ?? /* @__PURE__ */ jsx(TrendingUpIcon, {})
3276
+ }
3277
+ ) }) }),
3271
3278
  bottomNavItems.length > 0 && /* @__PURE__ */ jsx(
3272
3279
  "div",
3273
3280
  {
@@ -3626,7 +3633,10 @@ function injectStyles5() {
3626
3633
  document.head.appendChild(s);
3627
3634
  }
3628
3635
  var STATUS_CLASSES = {
3629
- active: "bg-green-500/10 text-green-600 border border-green-500/20 dark:text-green-400",
3636
+ // success-700 already carries a dark-mode-adjusted value in the token set
3637
+ // (@vantageos/mosaic-tokens [data-theme="dark"] block), so no dark: prefix
3638
+ // is needed here — it replaces the old dark:text-green-400 override.
3639
+ active: "bg-success-500/10 text-success-700 border border-success-500/20",
3630
3640
  completed: "bg-blue-500/10 text-blue-600 border border-blue-500/20 dark:text-blue-400",
3631
3641
  archived: "bg-gray-500/10 text-gray-600 border border-gray-500/20 dark:text-gray-400"
3632
3642
  };
@@ -8991,7 +9001,7 @@ function TrendingIcon() {
8991
9001
  strokeLinecap: "round",
8992
9002
  strokeLinejoin: "round",
8993
9003
  "aria-hidden": "true",
8994
- className: "text-green-500",
9004
+ className: "text-success-500",
8995
9005
  children: [
8996
9006
  /* @__PURE__ */ jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
8997
9007
  /* @__PURE__ */ jsx("polyline", { points: "17 6 23 6 23 12" })