tailwind-styled-v4 5.1.23 → 5.1.25
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 +8 -13
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +1 -25
- package/dist/index.d.ts +1 -25
- package/dist/index.js +8 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -13
- package/dist/index.mjs.map +1 -1
- package/dist/svelte.js.map +1 -1
- package/dist/svelte.mjs.map +1 -1
- package/dist/vue.js.map +1 -1
- package/dist/vue.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -827,19 +827,7 @@ function registerSubComponents(component, template, configSub) {
|
|
|
827
827
|
tag
|
|
828
828
|
);
|
|
829
829
|
} else if ("base" in value || "variants" in value) {
|
|
830
|
-
|
|
831
|
-
for (const [componentName, subConfig] of Object.entries(value)) {
|
|
832
|
-
if (typeof subConfig === "string") {
|
|
833
|
-
map[componentName] = createSubComponentAccessor(
|
|
834
|
-
displayName,
|
|
835
|
-
componentName,
|
|
836
|
-
subConfig.trim().replace(/\s+/g, " "),
|
|
837
|
-
tag
|
|
838
|
-
);
|
|
839
|
-
} else {
|
|
840
|
-
map[componentName] = createComponent(tag, subConfig);
|
|
841
|
-
}
|
|
842
|
-
}
|
|
830
|
+
map[key] = createComponent("div", value);
|
|
843
831
|
} else {
|
|
844
832
|
const tag = key;
|
|
845
833
|
for (const [componentName, classesOrConfig] of Object.entries(value)) {
|
|
@@ -1095,6 +1083,10 @@ var SKIP_PROXY_KEYS = /* @__PURE__ */ new Set([
|
|
|
1095
1083
|
]);
|
|
1096
1084
|
function wrapWithSubProxy(component, tagLabel) {
|
|
1097
1085
|
return new Proxy(component, {
|
|
1086
|
+
// Forward function calls to target component
|
|
1087
|
+
apply(target, thisArg, args) {
|
|
1088
|
+
return Reflect.apply(target, thisArg, args);
|
|
1089
|
+
},
|
|
1098
1090
|
get(target, prop) {
|
|
1099
1091
|
const value = target[prop];
|
|
1100
1092
|
if (value !== void 0) return value;
|
|
@@ -1158,6 +1150,9 @@ function makeTag(tag) {
|
|
|
1158
1150
|
});
|
|
1159
1151
|
}
|
|
1160
1152
|
var HTML_TAGS = [
|
|
1153
|
+
"html",
|
|
1154
|
+
"head",
|
|
1155
|
+
"body",
|
|
1161
1156
|
"div",
|
|
1162
1157
|
"section",
|
|
1163
1158
|
"article",
|