@cardenelabs/cdl 0.79.0 → 0.81.0
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/CHANGELOG.md +59 -1
- package/dist/index.cjs +38 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +38 -10
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +5 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +5 -2
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/render/nodes.tsx +16 -3
- package/src/visual-validate.ts +78 -6
package/dist/react.cjs
CHANGED
|
@@ -19570,6 +19570,10 @@ function CdlNodeView({
|
|
|
19570
19570
|
const offsetX = node.renderOffsetX !== void 0 ? resolveNumericAttr(node.renderOffsetX, stateValues, 0) : 0;
|
|
19571
19571
|
const offsetY = node.renderOffsetY !== void 0 ? resolveNumericAttr(node.renderOffsetY, stateValues, 0) : 0;
|
|
19572
19572
|
const hasOffset = offsetX !== 0 || offsetY !== 0;
|
|
19573
|
+
const \u7BB1\u306Estyle = {
|
|
19574
|
+
transition: "opacity 120ms ease-out, transform 200ms ease-out",
|
|
19575
|
+
...\u95A2\u4FC2\u306E\u53D7\u3051\u53E3 === void 0 ? {} : { cursor: "pointer" }
|
|
19576
|
+
};
|
|
19573
19577
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19574
19578
|
"g",
|
|
19575
19579
|
{
|
|
@@ -19591,7 +19595,6 @@ function CdlNodeView({
|
|
|
19591
19595
|
role: "button",
|
|
19592
19596
|
tabIndex: 0,
|
|
19593
19597
|
"aria-pressed": \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u7126\u70B9 === node.id,
|
|
19594
|
-
style: { cursor: "pointer" },
|
|
19595
19598
|
onPointerEnter: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
|
|
19596
19599
|
onPointerLeave: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u96E2\u308C\u305F(),
|
|
19597
19600
|
onFocus: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
|
|
@@ -19606,7 +19609,7 @@ function CdlNodeView({
|
|
|
19606
19609
|
transform: hasOffset ? `translate(${offsetX}, ${offsetY})` : void 0,
|
|
19607
19610
|
opacity: boundOpacity,
|
|
19608
19611
|
"data-cdl-tone": node.tone,
|
|
19609
|
-
style:
|
|
19612
|
+
style: \u7BB1\u306Estyle,
|
|
19610
19613
|
children: [
|
|
19611
19614
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
19612
19615
|
"rect",
|