@levo-so/studio 0.1.2 → 0.1.3
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.js +50 -21
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8382,30 +8382,48 @@ const _y = as.getInstance(), eg = {
|
|
|
8382
8382
|
}
|
|
8383
8383
|
}, Li = {
|
|
8384
8384
|
block: {
|
|
8385
|
-
hover:
|
|
8386
|
-
selected:
|
|
8385
|
+
hover: { border: "1px solid black" },
|
|
8386
|
+
selected: { border: "1px solid black" }
|
|
8387
8387
|
},
|
|
8388
8388
|
element: {
|
|
8389
|
-
hover:
|
|
8390
|
-
selected:
|
|
8389
|
+
hover: { border: "1px solid black" },
|
|
8390
|
+
selected: { border: "2px solid black" }
|
|
8391
8391
|
},
|
|
8392
8392
|
repeatable: {
|
|
8393
|
-
hover:
|
|
8394
|
-
selected:
|
|
8393
|
+
hover: { outline: "1px solid #60a5fa" },
|
|
8394
|
+
selected: { outline: "1px solid #60a5fa" }
|
|
8395
8395
|
},
|
|
8396
8396
|
repeatableParent: {
|
|
8397
|
-
hover:
|
|
8398
|
-
selected:
|
|
8397
|
+
hover: { outline: "1px solid #d8b4fe" },
|
|
8398
|
+
selected: { outline: "1px solid #d8b4fe" }
|
|
8399
8399
|
}
|
|
8400
8400
|
}, sg = {
|
|
8401
8401
|
repeatable: {
|
|
8402
|
-
container:
|
|
8403
|
-
|
|
8402
|
+
container: {
|
|
8403
|
+
width: "max-content",
|
|
8404
|
+
borderTopRightRadius: "6px",
|
|
8405
|
+
backgroundColor: "#dbeafe",
|
|
8406
|
+
padding: "4px"
|
|
8407
|
+
},
|
|
8408
|
+
text: {
|
|
8409
|
+
fontSize: "12px",
|
|
8410
|
+
fontWeight: 500,
|
|
8411
|
+
color: "#3b82f6"
|
|
8412
|
+
},
|
|
8404
8413
|
label: "Group Item"
|
|
8405
8414
|
},
|
|
8406
8415
|
repeatableParent: {
|
|
8407
|
-
container:
|
|
8408
|
-
|
|
8416
|
+
container: {
|
|
8417
|
+
width: "min-content",
|
|
8418
|
+
borderTopRightRadius: "6px",
|
|
8419
|
+
backgroundColor: "#f3e8ff",
|
|
8420
|
+
padding: "4px"
|
|
8421
|
+
},
|
|
8422
|
+
text: {
|
|
8423
|
+
fontSize: "12px",
|
|
8424
|
+
fontWeight: 500,
|
|
8425
|
+
color: "#8b5cf6"
|
|
8426
|
+
},
|
|
8409
8427
|
label: "Group"
|
|
8410
8428
|
}
|
|
8411
8429
|
}, rg = ({
|
|
@@ -8418,32 +8436,45 @@ const _y = as.getInstance(), eg = {
|
|
|
8418
8436
|
return /* @__PURE__ */ m(
|
|
8419
8437
|
"div",
|
|
8420
8438
|
{
|
|
8421
|
-
className: `pointer-events-none absolute transition-opacity duration-200 ${Li[s][o ? "selected" : "hover"]}`,
|
|
8422
8439
|
style: {
|
|
8440
|
+
pointerEvents: "none",
|
|
8441
|
+
position: "absolute",
|
|
8442
|
+
transition: "opacity 200ms",
|
|
8423
8443
|
top: 0,
|
|
8424
8444
|
left: 0,
|
|
8425
8445
|
transform: `translate3d(${r.rect.left}px, ${r.rect.top}px, 0)`,
|
|
8426
8446
|
width: r.rect.width,
|
|
8427
8447
|
height: r.rect.height,
|
|
8428
8448
|
opacity: t ? 0 : 1,
|
|
8429
|
-
zIndex: ig(s)
|
|
8449
|
+
zIndex: ig(s),
|
|
8450
|
+
...Li[s][o ? "selected" : "hover"]
|
|
8430
8451
|
},
|
|
8431
8452
|
children: i && a && /* @__PURE__ */ m(
|
|
8432
8453
|
"div",
|
|
8433
8454
|
{
|
|
8434
|
-
className: L("hover:hidden", a.container),
|
|
8435
8455
|
style: {
|
|
8436
8456
|
position: "absolute",
|
|
8437
8457
|
top: "-33px",
|
|
8438
|
-
left: "-4px"
|
|
8458
|
+
left: "-4px",
|
|
8459
|
+
...a.container
|
|
8439
8460
|
},
|
|
8440
|
-
|
|
8461
|
+
onMouseEnter: (l) => l.currentTarget.style.display = "none",
|
|
8462
|
+
onMouseLeave: (l) => l.currentTarget.style.display = "block",
|
|
8463
|
+
children: /* @__PURE__ */ m("span", { style: a.text, children: a.label })
|
|
8441
8464
|
}
|
|
8442
8465
|
)
|
|
8443
8466
|
}
|
|
8444
8467
|
);
|
|
8445
8468
|
};
|
|
8446
|
-
return /* @__PURE__ */ m("div", {
|
|
8469
|
+
return /* @__PURE__ */ m("div", { style: {
|
|
8470
|
+
pointerEvents: "none",
|
|
8471
|
+
position: "fixed",
|
|
8472
|
+
top: 0,
|
|
8473
|
+
right: 0,
|
|
8474
|
+
bottom: 0,
|
|
8475
|
+
left: 0,
|
|
8476
|
+
zIndex: 50
|
|
8477
|
+
}, children: Object.entries(Li).map(([s]) => /* @__PURE__ */ R(ds, { children: [
|
|
8447
8478
|
n(
|
|
8448
8479
|
s,
|
|
8449
8480
|
e.hovered[s],
|
|
@@ -9310,10 +9341,8 @@ ${a}}
|
|
|
9310
9341
|
}
|
|
9311
9342
|
`;
|
|
9312
9343
|
let t = `
|
|
9313
|
-
[data-levo-element='page']{
|
|
9314
9344
|
background-color: var(--color-page);
|
|
9315
|
-
|
|
9316
|
-
`;
|
|
9345
|
+
`;
|
|
9317
9346
|
return Object.entries(e.components).forEach(
|
|
9318
9347
|
([n, s]) => {
|
|
9319
9348
|
if (!s) return;
|
package/package.json
CHANGED