@cardenelabs/cdl 0.79.0 → 0.80.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 +25 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- 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/dist/index.js
CHANGED
|
@@ -32106,6 +32106,10 @@ function CdlNodeView({
|
|
|
32106
32106
|
const offsetX = node.renderOffsetX !== void 0 ? resolveNumericAttr(node.renderOffsetX, stateValues, 0) : 0;
|
|
32107
32107
|
const offsetY = node.renderOffsetY !== void 0 ? resolveNumericAttr(node.renderOffsetY, stateValues, 0) : 0;
|
|
32108
32108
|
const hasOffset = offsetX !== 0 || offsetY !== 0;
|
|
32109
|
+
const \u7BB1\u306Estyle = {
|
|
32110
|
+
transition: "opacity 120ms ease-out, transform 200ms ease-out",
|
|
32111
|
+
...\u95A2\u4FC2\u306E\u53D7\u3051\u53E3 === void 0 ? {} : { cursor: "pointer" }
|
|
32112
|
+
};
|
|
32109
32113
|
return /* @__PURE__ */ jsxs(
|
|
32110
32114
|
"g",
|
|
32111
32115
|
{
|
|
@@ -32127,7 +32131,6 @@ function CdlNodeView({
|
|
|
32127
32131
|
role: "button",
|
|
32128
32132
|
tabIndex: 0,
|
|
32129
32133
|
"aria-pressed": \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u7126\u70B9 === node.id,
|
|
32130
|
-
style: { cursor: "pointer" },
|
|
32131
32134
|
onPointerEnter: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
|
|
32132
32135
|
onPointerLeave: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u96E2\u308C\u305F(),
|
|
32133
32136
|
onFocus: () => \u95A2\u4FC2\u306E\u53D7\u3051\u53E3.\u89E6\u308C\u305F(node.id),
|
|
@@ -32142,7 +32145,7 @@ function CdlNodeView({
|
|
|
32142
32145
|
transform: hasOffset ? `translate(${offsetX}, ${offsetY})` : void 0,
|
|
32143
32146
|
opacity: boundOpacity,
|
|
32144
32147
|
"data-cdl-tone": node.tone,
|
|
32145
|
-
style:
|
|
32148
|
+
style: \u7BB1\u306Estyle,
|
|
32146
32149
|
children: [
|
|
32147
32150
|
/* @__PURE__ */ jsx(
|
|
32148
32151
|
"rect",
|