tailwind-styled-v4 5.1.32 → 5.1.34
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 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +78 -40
- package/dist/index.d.ts +78 -40
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -855,8 +855,7 @@ function registerSubComponents(component, template, configSub) {
|
|
|
855
855
|
tag
|
|
856
856
|
);
|
|
857
857
|
} else if ("base" in value || "variants" in value) {
|
|
858
|
-
|
|
859
|
-
map[key] = createComponent(explicitTag, value);
|
|
858
|
+
map[key] = createComponent("div", value);
|
|
860
859
|
} else {
|
|
861
860
|
const tag = key;
|
|
862
861
|
for (const [componentName, classesOrConfig] of Object.entries(value)) {
|
|
@@ -868,8 +867,7 @@ function registerSubComponents(component, template, configSub) {
|
|
|
868
867
|
tag
|
|
869
868
|
);
|
|
870
869
|
} else {
|
|
871
|
-
|
|
872
|
-
map[componentName] = createComponent(nestedTag, classesOrConfig);
|
|
870
|
+
map[componentName] = createComponent(tag, classesOrConfig);
|
|
873
871
|
}
|
|
874
872
|
}
|
|
875
873
|
}
|
|
@@ -990,7 +988,7 @@ function attachExtend(component, originalTag, base, config) {
|
|
|
990
988
|
return extended;
|
|
991
989
|
}
|
|
992
990
|
component.extend = extendWithClasses;
|
|
993
|
-
component.withVariants = (newConfig) => {
|
|
991
|
+
component.withVariants = ((newConfig) => {
|
|
994
992
|
const existing = typeof config === "object" ? config : {};
|
|
995
993
|
return createComponent(originalTag, {
|
|
996
994
|
...existing,
|
|
@@ -1005,7 +1003,7 @@ function attachExtend(component, originalTag, base, config) {
|
|
|
1005
1003
|
...newConfig.defaultVariants ?? {}
|
|
1006
1004
|
}
|
|
1007
1005
|
});
|
|
1008
|
-
};
|
|
1006
|
+
});
|
|
1009
1007
|
component.withSub = (() => component);
|
|
1010
1008
|
return component;
|
|
1011
1009
|
}
|