@ohhwells/bridge 0.1.114-next.305 → 0.1.114-next.307
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.cjs +11 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -15897,7 +15897,7 @@ function ButtonStylePanel({
|
|
|
15897
15897
|
const label = previewLabel.trim() || "Book Now";
|
|
15898
15898
|
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex w-full flex-col gap-5", children: [
|
|
15899
15899
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
|
|
15900
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-
|
|
15900
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500", children: "Variants" }),
|
|
15901
15901
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex w-full flex-col gap-2.5", children: BUTTON_VARIANT_IDS.map((id) => {
|
|
15902
15902
|
const chrome = variants[id];
|
|
15903
15903
|
const selected = id === variant;
|
|
@@ -15960,11 +15960,11 @@ function ButtonStylePanel({
|
|
|
15960
15960
|
}) })
|
|
15961
15961
|
] }),
|
|
15962
15962
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("section", { className: "flex w-full flex-col gap-2.5", children: [
|
|
15963
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-
|
|
15963
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)("h3", { className: "text-xs font-semibold uppercase leading-4 tracking-[0.6px] text-stone-500", children: "Size" }),
|
|
15964
15964
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
15965
15965
|
"div",
|
|
15966
15966
|
{
|
|
15967
|
-
className: "flex w-full items-start rounded-lg bg-
|
|
15967
|
+
className: "flex w-full items-start rounded-lg bg-stone-100 p-1",
|
|
15968
15968
|
role: "radiogroup",
|
|
15969
15969
|
"aria-label": "Size",
|
|
15970
15970
|
children: BUTTON_SIZE_IDS.map((id) => {
|
|
@@ -15982,7 +15982,7 @@ function ButtonStylePanel({
|
|
|
15982
15982
|
onClick: () => onSize(id),
|
|
15983
15983
|
className: cn(
|
|
15984
15984
|
"flex min-w-14 flex-1 items-center justify-center rounded-md px-3 py-1.5 text-sm font-medium leading-5",
|
|
15985
|
-
selected ? "bg-
|
|
15985
|
+
selected ? "bg-white text-stone-950 shadow-sm" : "bg-transparent text-stone-500"
|
|
15986
15986
|
),
|
|
15987
15987
|
children: SIZE_LABEL[id]
|
|
15988
15988
|
},
|
|
@@ -23132,7 +23132,13 @@ function OhhwellsBridge() {
|
|
|
23132
23132
|
setHoveredItemRect(null);
|
|
23133
23133
|
}
|
|
23134
23134
|
};
|
|
23135
|
+
const syncSelectedMediaPointerRelease = (released) => {
|
|
23136
|
+
setSelectedMedia(
|
|
23137
|
+
(prev) => prev && prev.hasTextOverlap !== released ? { ...prev, hasTextOverlap: released } : prev
|
|
23138
|
+
);
|
|
23139
|
+
};
|
|
23135
23140
|
const probeImageAt = (clientX, clientY, isDragOver = false, fromParentViewport = false) => {
|
|
23141
|
+
syncSelectedMediaPointerRelease(true);
|
|
23136
23142
|
if (linkPopoverOpenRef.current || floatingPanelOpenRef.current && isPointOverFloatingPanel(clientX, clientY)) {
|
|
23137
23143
|
if (hoveredImageRef.current) {
|
|
23138
23144
|
hoveredImageRef.current = null;
|
|
@@ -23327,6 +23333,7 @@ function OhhwellsBridge() {
|
|
|
23327
23333
|
return;
|
|
23328
23334
|
}
|
|
23329
23335
|
document.querySelectorAll("[data-ohw-hovered]").forEach((el) => el.removeAttribute("data-ohw-hovered"));
|
|
23336
|
+
syncSelectedMediaPointerRelease(false);
|
|
23330
23337
|
if (imgEl !== hoveredImageRef.current || hoveredImageHasTextOverlapRef.current) {
|
|
23331
23338
|
hoveredImageRef.current = imgEl;
|
|
23332
23339
|
showImageHover(imgEl, isDragOver);
|