@hlang-tech/editor-ui 0.2.0 → 0.2.2
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/lib/index.js +8 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +8 -4
- package/lib/index.mjs.map +1 -1
- package/lib/overlays/Cheatsheet.css +13 -6
- package/lib/overlays/Toast.css +9 -2
- package/lib/shell/EditorShell.css +4 -0
- package/package.json +4 -4
package/lib/index.mjs
CHANGED
|
@@ -2180,10 +2180,14 @@ function Cheatsheet({ open, onClose, groups = DEFAULT_GROUPS }) {
|
|
|
2180
2180
|
] }),
|
|
2181
2181
|
/* @__PURE__ */ jsx28("div", { className: "hl-cheat-grid", children: groups.map((group) => /* @__PURE__ */ jsxs18("section", { className: "hl-cheat-group", children: [
|
|
2182
2182
|
/* @__PURE__ */ jsx28("h3", { className: "hl-cheat-group-title hl-mono", children: group.title }),
|
|
2183
|
-
/* @__PURE__ */ jsx28("ul", { className: "hl-cheat-rows", children: group.rows.map((row) =>
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2183
|
+
/* @__PURE__ */ jsx28("ul", { className: "hl-cheat-rows", children: group.rows.map((row) => (
|
|
2184
|
+
// A row is a binding: one action can have several (two ways to pan),
|
|
2185
|
+
// so neither the label nor the keys alone identify it.
|
|
2186
|
+
/* @__PURE__ */ jsxs18("li", { className: "hl-cheat-row", children: [
|
|
2187
|
+
/* @__PURE__ */ jsx28("span", { className: "hl-cheat-label", children: row.label }),
|
|
2188
|
+
/* @__PURE__ */ jsx28("kbd", { className: "hl-cheat-keys hl-mono", children: row.keys })
|
|
2189
|
+
] }, `${row.keys}\0${row.label}`)
|
|
2190
|
+
)) })
|
|
2187
2191
|
] }, group.title)) })
|
|
2188
2192
|
]
|
|
2189
2193
|
}
|