tailwind-styled-v4 5.1.27 → 5.1.28

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.
@@ -976,12 +976,6 @@ function attachExtend(component, originalTag, base, config) {
976
976
  }
977
977
  });
978
978
  };
979
- component.animate = async (_opts) => {
980
- console.warn(
981
- '[tailwind-styled-v4] .animate() tidak tersedia di main bundle.\nGunakan: import { animate } from "tailwind-styled-v4/animate"'
982
- );
983
- return component;
984
- };
985
979
  component.withSub = (() => component);
986
980
  return component;
987
981
  }
@@ -1127,11 +1121,12 @@ function parseTemplate(strings, exprs) {
1127
1121
  return result;
1128
1122
  }
1129
1123
  function makeTag(tag) {
1130
- return ((stringsOrConfig, ...exprs) => {
1124
+ const impl = ((stringsOrConfig, ...exprs) => {
1131
1125
  if (!Array.isArray(stringsOrConfig) && typeof stringsOrConfig === "object" && stringsOrConfig !== null && !("raw" in stringsOrConfig)) {
1132
1126
  return createComponent(tag, stringsOrConfig);
1133
1127
  }
1134
- const parsed = parseTemplate(stringsOrConfig, exprs);
1128
+ const strings = stringsOrConfig;
1129
+ const parsed = parseTemplate(strings, exprs);
1135
1130
  const component = createComponent(tag, parsed.base);
1136
1131
  if (parsed.hasSubs) {
1137
1132
  for (const [name, classes] of Object.entries(parsed.subs)) {
@@ -1148,6 +1143,7 @@ function makeTag(tag) {
1148
1143
  }
1149
1144
  return component;
1150
1145
  });
1146
+ return impl;
1151
1147
  }
1152
1148
  var HTML_TAGS = [
1153
1149
  "html",