@unpunnyfuns/swatchbook-blocks 0.10.0 → 0.10.1

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.mjs CHANGED
@@ -3132,10 +3132,6 @@ function TokenNavigator({ root, type, initiallyExpanded = 1, searchable = true,
3132
3132
  else setSelectedPath(path);
3133
3133
  }, [onSelect]);
3134
3134
  const typeLabel = typeFilter ? ` · ${[...typeFilter].map((t) => `$type=${t}`).join(", ")}` : "";
3135
- if (tree.length === 0) return /* @__PURE__ */ jsx("div", {
3136
- ...themeAttrs(cssVarPrefix, activeTheme),
3137
- children: /* @__PURE__ */ jsx(EmptyState, { children: root ? `No tokens under "${root}"${typeFilter ? ` matching ${typeLabel.slice(3)}` : ""}.` : typeFilter ? `No tokens matching ${typeLabel.slice(3)} in the active theme.` : "No tokens in the active theme." })
3138
- });
3139
3135
  const trimmedQuery = query.trim();
3140
3136
  const matchCount = useMemo(() => {
3141
3137
  if (!searchExpanded) return 0;
@@ -3143,6 +3139,10 @@ function TokenNavigator({ root, type, initiallyExpanded = 1, searchable = true,
3143
3139
  for (const node of visibleTree) n += countLeaves(node);
3144
3140
  return n;
3145
3141
  }, [visibleTree, searchExpanded]);
3142
+ if (tree.length === 0) return /* @__PURE__ */ jsx("div", {
3143
+ ...themeAttrs(cssVarPrefix, activeTheme),
3144
+ children: /* @__PURE__ */ jsx(EmptyState, { children: root ? `No tokens under "${root}"${typeFilter ? ` matching ${typeLabel.slice(3)}` : ""}.` : typeFilter ? `No tokens matching ${typeLabel.slice(3)} in the active theme.` : "No tokens in the active theme." })
3145
+ });
3146
3146
  return /* @__PURE__ */ jsxs("div", {
3147
3147
  ...themeAttrs(cssVarPrefix, activeTheme),
3148
3148
  children: [