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.js CHANGED
@@ -2960,7 +2960,13 @@ var init_src = __esm({
2960
2960
  const cssChunks = [];
2961
2961
  const stateRules = extractAndGenerateStateCss(source, filepath);
2962
2962
  if (stateRules.length > 0) {
2963
- cssChunks.push(stateRules.map((r) => r.cssRule).join("\n"));
2963
+ const resolvedRules = stateRules.filter((r) => {
2964
+ const decl = r.declarations.trim();
2965
+ return decl.length === 0 || decl.includes(":");
2966
+ });
2967
+ if (resolvedRules.length > 0) {
2968
+ cssChunks.push(resolvedRules.map((r) => r.cssRule).join("\n"));
2969
+ }
2964
2970
  }
2965
2971
  const containerCss = extractContainerCssFromSource(source);
2966
2972
  if (containerCss) cssChunks.push(containerCss);