uhuu-components 0.2.38 → 0.2.40
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/package.json
CHANGED
package/uhuu-components.es.js
CHANGED
|
@@ -1954,7 +1954,6 @@ function pt(e) {
|
|
|
1954
1954
|
children: /* @__PURE__ */ a(
|
|
1955
1955
|
"div",
|
|
1956
1956
|
{
|
|
1957
|
-
className: "absolute w-full h-full flex items-center justify-center pointer-events-none",
|
|
1958
1957
|
style: {
|
|
1959
1958
|
transform: `scale(${Math.min(l / u, f / m)})`,
|
|
1960
1959
|
transformOrigin: "center"
|
|
@@ -2144,14 +2143,14 @@ function gr({
|
|
|
2144
2143
|
// compact + default, always base + addition if not default
|
|
2145
2144
|
].filter(Boolean).join(" "),
|
|
2146
2145
|
children: [
|
|
2147
|
-
/* @__PURE__ */ a("div", { className: "w-full h-full relative bg-gray-100 hover:bg-white", children:
|
|
2146
|
+
/* @__PURE__ */ a("div", { className: "w-full h-full relative", children: b.thumbnail ? /* @__PURE__ */ a("div", { className: "absolute inset-0 bg-gray-100 hover:bg-white", children: /* @__PURE__ */ a(
|
|
2148
2147
|
"img",
|
|
2149
2148
|
{
|
|
2150
2149
|
src: b.thumbnail,
|
|
2151
2150
|
className: "w-full h-full object-contain pointer-events-none object-top border border-gray-200 p-4",
|
|
2152
2151
|
alt: p
|
|
2153
2152
|
}
|
|
2154
|
-
) : I ? /* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center pointer-events-none", children: I(k(b, A), A, !1) }) : /* @__PURE__ */ a(ce, { children: D ? /* @__PURE__ */ h("div", { className: "p-4", children: [
|
|
2153
|
+
) }) : I ? /* @__PURE__ */ a("div", { className: "absolute inset-0 flex items-center pointer-events-none", children: I(k(b, A), A, !1) }) : /* @__PURE__ */ a(ce, { children: D ? /* @__PURE__ */ h("div", { className: "p-4", children: [
|
|
2155
2154
|
/* @__PURE__ */ a("div", { className: "w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-3", children: /* @__PURE__ */ a(pe, { className: "w-8 h-8 text-blue-600" }) }),
|
|
2156
2155
|
/* @__PURE__ */ a("div", { className: "text-sm font-medium text-gray-700", children: p }),
|
|
2157
2156
|
/* @__PURE__ */ h("div", { className: "text-xs text-gray-500 mt-1", children: [
|
|
@@ -2895,7 +2894,8 @@ function Pr(e) {
|
|
|
2895
2894
|
label: U.label,
|
|
2896
2895
|
repeatable: U.repeatable ?? !1,
|
|
2897
2896
|
maxInstances: U.maxInstances ?? null,
|
|
2898
|
-
integration: U.integration
|
|
2897
|
+
integration: U.integration,
|
|
2898
|
+
strictPosition: U.strictPosition
|
|
2899
2899
|
});
|
|
2900
2900
|
})(x);
|
|
2901
2901
|
typeof window < "u" && window.$uhuu?.debug;
|
|
@@ -3101,6 +3101,7 @@ const Bt = (e, t, n = !1, r) => {
|
|
|
3101
3101
|
repeatable: e.repeatable ?? !1,
|
|
3102
3102
|
maxInstances: e.maxInstances ?? null,
|
|
3103
3103
|
integration: e.integration,
|
|
3104
|
+
strictPosition: e.strictPosition,
|
|
3104
3105
|
pages: s.map((l, f) => {
|
|
3105
3106
|
const u = typeof l == "string" ? l : l.key, m = typeof l == "string" ? void 0 : l.dataKey;
|
|
3106
3107
|
return {
|
|
@@ -3116,7 +3117,8 @@ const Bt = (e, t, n = !1, r) => {
|
|
|
3116
3117
|
label: e.label,
|
|
3117
3118
|
repeatable: e.repeatable ?? !1,
|
|
3118
3119
|
maxInstances: e.maxInstances ?? null,
|
|
3119
|
-
integration: e.integration
|
|
3120
|
+
integration: e.integration,
|
|
3121
|
+
strictPosition: e.strictPosition
|
|
3120
3122
|
});
|
|
3121
3123
|
}, Sr = (e) => e ? Array.isArray(e) ? e : Object.entries(e).map(([t, n]) => ({ ...n, id: t })) : [], Rr = (e, t) => {
|
|
3122
3124
|
if (!e) return [];
|
|
@@ -3161,7 +3163,8 @@ const Bt = (e, t, n = !1, r) => {
|
|
|
3161
3163
|
// Keep original (function or array)
|
|
3162
3164
|
repeatable: y.repeatable ?? !1,
|
|
3163
3165
|
maxInstances: y.maxInstances ?? null,
|
|
3164
|
-
integration: y.integration
|
|
3166
|
+
integration: y.integration,
|
|
3167
|
+
strictPosition: y.strictPosition
|
|
3165
3168
|
})), C = [
|
|
3166
3169
|
...l.filter((y) => i?.[y]?.allowAsSinglePage !== !1).map((y) => {
|
|
3167
3170
|
const w = i?.[y];
|