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.
- package/dist/index.browser.mjs +4 -2
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +24 -4
- package/dist/index.d.ts +24 -4
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -855,7 +855,8 @@ function registerSubComponents(component, template, configSub) {
|
|
|
855
855
|
tag
|
|
856
856
|
);
|
|
857
857
|
} else if ("base" in value || "variants" in value) {
|
|
858
|
-
|
|
858
|
+
const explicitTag = value.tag ?? "div";
|
|
859
|
+
map[key] = createComponent(explicitTag, value);
|
|
859
860
|
} else {
|
|
860
861
|
const tag = key;
|
|
861
862
|
for (const [componentName, classesOrConfig] of Object.entries(value)) {
|
|
@@ -867,7 +868,8 @@ function registerSubComponents(component, template, configSub) {
|
|
|
867
868
|
tag
|
|
868
869
|
);
|
|
869
870
|
} else {
|
|
870
|
-
|
|
871
|
+
const nestedTag = classesOrConfig.tag ?? tag;
|
|
872
|
+
map[componentName] = createComponent(nestedTag, classesOrConfig);
|
|
871
873
|
}
|
|
872
874
|
}
|
|
873
875
|
}
|