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