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