tailwind-styled-v4 5.1.31 → 5.1.32

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.
@@ -827,7 +827,8 @@ function registerSubComponents(component, template, configSub) {
827
827
  tag
828
828
  );
829
829
  } else if ("base" in value || "variants" in value) {
830
- map[key] = createComponent("div", value);
830
+ const explicitTag = value.tag ?? "div";
831
+ map[key] = createComponent(explicitTag, value);
831
832
  } else {
832
833
  const tag = key;
833
834
  for (const [componentName, classesOrConfig] of Object.entries(value)) {
@@ -839,7 +840,8 @@ function registerSubComponents(component, template, configSub) {
839
840
  tag
840
841
  );
841
842
  } else {
842
- map[componentName] = createComponent(tag, classesOrConfig);
843
+ const nestedTag = classesOrConfig.tag ?? tag;
844
+ map[componentName] = createComponent(nestedTag, classesOrConfig);
843
845
  }
844
846
  }
845
847
  }