tailwind-styled-v4 5.0.23 → 5.0.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.mjs CHANGED
@@ -2935,7 +2935,13 @@ var init_src = __esm({
2935
2935
  const cssChunks = [];
2936
2936
  const stateRules = extractAndGenerateStateCss(source, filepath);
2937
2937
  if (stateRules.length > 0) {
2938
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2938
+ const resolvedRules = stateRules.filter((r) => {
2939
+ const decl = r.declarations.trim();
2940
+ return decl.length === 0 || decl.includes(":");
2941
+ });
2942
+ if (resolvedRules.length > 0) {
2943
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2944
+ }
2939
2945
  }
2940
2946
  const containerCss = extractContainerCssFromSource(source);
2941
2947
  if (containerCss) cssChunks.push(containerCss);