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.
- package/dist/index.browser.mjs +4 -8
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.d.mts +1 -21
- package/dist/index.d.ts +1 -21
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1004,12 +1004,6 @@ function attachExtend(component, originalTag, base, config) {
|
|
|
1004
1004
|
}
|
|
1005
1005
|
});
|
|
1006
1006
|
};
|
|
1007
|
-
component.animate = async (_opts) => {
|
|
1008
|
-
console.warn(
|
|
1009
|
-
'[tailwind-styled-v4] .animate() tidak tersedia di main bundle.\nGunakan: import { animate } from "tailwind-styled-v4/animate"'
|
|
1010
|
-
);
|
|
1011
|
-
return component;
|
|
1012
|
-
};
|
|
1013
1007
|
component.withSub = (() => component);
|
|
1014
1008
|
return component;
|
|
1015
1009
|
}
|
|
@@ -1155,11 +1149,12 @@ function parseTemplate(strings, exprs) {
|
|
|
1155
1149
|
return result;
|
|
1156
1150
|
}
|
|
1157
1151
|
function makeTag(tag) {
|
|
1158
|
-
|
|
1152
|
+
const impl = ((stringsOrConfig, ...exprs) => {
|
|
1159
1153
|
if (!Array.isArray(stringsOrConfig) && typeof stringsOrConfig === "object" && stringsOrConfig !== null && !("raw" in stringsOrConfig)) {
|
|
1160
1154
|
return createComponent(tag, stringsOrConfig);
|
|
1161
1155
|
}
|
|
1162
|
-
const
|
|
1156
|
+
const strings = stringsOrConfig;
|
|
1157
|
+
const parsed = parseTemplate(strings, exprs);
|
|
1163
1158
|
const component = createComponent(tag, parsed.base);
|
|
1164
1159
|
if (parsed.hasSubs) {
|
|
1165
1160
|
for (const [name, classes] of Object.entries(parsed.subs)) {
|
|
@@ -1176,6 +1171,7 @@ function makeTag(tag) {
|
|
|
1176
1171
|
}
|
|
1177
1172
|
return component;
|
|
1178
1173
|
});
|
|
1174
|
+
return impl;
|
|
1179
1175
|
}
|
|
1180
1176
|
var HTML_TAGS = [
|
|
1181
1177
|
"html",
|