canvas-ui-sdk 0.3.23 → 0.3.24

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.js CHANGED
@@ -5457,10 +5457,8 @@ function DoubleSidebarShell({
5457
5457
  contentClassName
5458
5458
  }) {
5459
5459
  useCSSVariableSync();
5460
- const { branding } = useThemeBranding();
5461
- const themeSidebarMode = branding.sidebarMode ?? "dark";
5462
- const effectiveIconVariant = iconVariant ?? themeSidebarMode;
5463
- const effectiveNavVariant = navVariant ?? themeSidebarMode;
5460
+ const effectiveIconVariant = iconVariant ?? "dark";
5461
+ const effectiveNavVariant = navVariant ?? "light";
5464
5462
  const [sidebarOpen, setSidebarOpen] = useState(false);
5465
5463
  const handleTabClick = (section, tab) => {
5466
5464
  onTabClick?.(section, tab);
@@ -27877,7 +27875,10 @@ function VariableColorRow({
27877
27875
  );
27878
27876
  }
27879
27877
  function ColorsPanel({ theme }) {
27880
- const resolvedPrimary = resolveBrandingColor("var(--canvas-primary)");
27878
+ const [resolvedPrimary, setResolvedPrimary] = useState("#ffffff");
27879
+ useEffect(() => {
27880
+ setResolvedPrimary(resolveBrandingColor("var(--canvas-primary)"));
27881
+ }, [theme.overrides]);
27881
27882
  return /* @__PURE__ */ jsxs("div", { "data-theme-drawer-panel": true, className: "flex flex-col gap-6 p-4", children: [
27882
27883
  /* @__PURE__ */ jsx("style", { children: `
27883
27884
  [data-theme-drawer-panel] input[type=range]::-webkit-slider-thumb {
@@ -28053,8 +28054,8 @@ function ColorsPanel({ theme }) {
28053
28054
  "span",
28054
28055
  {
28055
28056
  style: {
28056
- fontSize: "13px",
28057
- color: "#374151",
28057
+ fontSize: "12px",
28058
+ color: "#6b7280",
28058
28059
  flex: 1,
28059
28060
  minWidth: 0
28060
28061
  },