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.mjs CHANGED
@@ -855,19 +855,7 @@ function registerSubComponents(component, template, configSub) {
855
855
  tag
856
856
  );
857
857
  } else if ("base" in value || "variants" in value) {
858
- const tag = key;
859
- for (const [componentName, subConfig] of Object.entries(value)) {
860
- if (typeof subConfig === "string") {
861
- map[componentName] = createSubComponentAccessor(
862
- displayName,
863
- componentName,
864
- subConfig.trim().replace(/\s+/g, " "),
865
- tag
866
- );
867
- } else {
868
- map[componentName] = createComponent(tag, subConfig);
869
- }
870
- }
858
+ map[key] = createComponent("div", value);
871
859
  } else {
872
860
  const tag = key;
873
861
  for (const [componentName, classesOrConfig] of Object.entries(value)) {
@@ -1123,6 +1111,10 @@ var SKIP_PROXY_KEYS = /* @__PURE__ */ new Set([
1123
1111
  ]);
1124
1112
  function wrapWithSubProxy(component, tagLabel) {
1125
1113
  return new Proxy(component, {
1114
+ // Forward function calls to target component
1115
+ apply(target, thisArg, args) {
1116
+ return Reflect.apply(target, thisArg, args);
1117
+ },
1126
1118
  get(target, prop) {
1127
1119
  const value = target[prop];
1128
1120
  if (value !== void 0) return value;
@@ -1186,6 +1178,9 @@ function makeTag(tag) {
1186
1178
  });
1187
1179
  }
1188
1180
  var HTML_TAGS = [
1181
+ "html",
1182
+ "head",
1183
+ "body",
1189
1184
  "div",
1190
1185
  "section",
1191
1186
  "article",