tailwind-styled-v4 5.1.23 → 5.1.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.browser.mjs +5 -13
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.js +5 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -13
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -913,19 +913,7 @@ function registerSubComponents(component, template, configSub) {
|
|
|
913
913
|
tag
|
|
914
914
|
);
|
|
915
915
|
} else if ("base" in value || "variants" in value) {
|
|
916
|
-
|
|
917
|
-
for (const [componentName, subConfig] of Object.entries(value)) {
|
|
918
|
-
if (typeof subConfig === "string") {
|
|
919
|
-
map[componentName] = createSubComponentAccessor(
|
|
920
|
-
displayName,
|
|
921
|
-
componentName,
|
|
922
|
-
subConfig.trim().replace(/\s+/g, " "),
|
|
923
|
-
tag
|
|
924
|
-
);
|
|
925
|
-
} else {
|
|
926
|
-
map[componentName] = createComponent(tag, subConfig);
|
|
927
|
-
}
|
|
928
|
-
}
|
|
916
|
+
map[key] = createComponent("div", value);
|
|
929
917
|
} else {
|
|
930
918
|
const tag = key;
|
|
931
919
|
for (const [componentName, classesOrConfig] of Object.entries(value)) {
|
|
@@ -1181,6 +1169,10 @@ var SKIP_PROXY_KEYS = /* @__PURE__ */ new Set([
|
|
|
1181
1169
|
]);
|
|
1182
1170
|
function wrapWithSubProxy(component, tagLabel) {
|
|
1183
1171
|
return new Proxy(component, {
|
|
1172
|
+
// Forward function calls to target component
|
|
1173
|
+
apply(target, thisArg, args) {
|
|
1174
|
+
return Reflect.apply(target, thisArg, args);
|
|
1175
|
+
},
|
|
1184
1176
|
get(target, prop) {
|
|
1185
1177
|
const value = target[prop];
|
|
1186
1178
|
if (value !== void 0) return value;
|