@drawback/ui 0.1.0 → 0.2.0-rc.20261201103337

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.mjs CHANGED
@@ -753,7 +753,7 @@ function IconButton({ icon, label, shortcut, onClick, pressed, disabled, danger,
753
753
  });
754
754
  return /* @__PURE__ */ jsxs("button", {
755
755
  type: "button",
756
- className: cx("nx-icon-button", danger && "nx-danger", className),
756
+ className: cx("db-icon-button", danger && "db-danger", className),
757
757
  "aria-label": label,
758
758
  title,
759
759
  "aria-pressed": pressed,
@@ -766,7 +766,7 @@ function IconButton({ icon, label, shortcut, onClick, pressed, disabled, danger,
766
766
  }
767
767
  function Island({ children, className, label, testId, role }) {
768
768
  return /* @__PURE__ */ jsx("div", {
769
- className: cx("nx-island", className),
769
+ className: cx("db-island", className),
770
770
  "aria-label": label,
771
771
  role,
772
772
  "data-testid": testId,
@@ -812,7 +812,7 @@ function Portal({ children }) {
812
812
  function useDismiss(open, refs, onClose) {
813
813
  const onPointer = useEffectEvent((event) => {
814
814
  const target = event.target;
815
- const nested = (target instanceof Element ? target : target.parentElement)?.closest(".nx-popover");
815
+ const nested = (target instanceof Element ? target : target.parentElement)?.closest(".db-popover");
816
816
  const own = refs[0]?.current;
817
817
  if (!(nested != null && own != null && nested !== own && (own.compareDocumentPosition(nested) & Node.DOCUMENT_POSITION_FOLLOWING) !== 0) && !refs.some((ref) => ref.current?.contains(target))) onClose();
818
818
  });
@@ -866,7 +866,7 @@ function Popover({ open, onClose, anchor, placement = "bottom-start", label, rol
866
866
  if (!open) return null;
867
867
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx("div", {
868
868
  ref,
869
- className: "nx-popover nx-island",
869
+ className: "db-popover db-island",
870
870
  role,
871
871
  "aria-label": label,
872
872
  style,
@@ -877,15 +877,15 @@ function Popover({ open, onClose, anchor, placement = "bottom-start", label, rol
877
877
  }
878
878
  function MenuItems({ entries, onDone }) {
879
879
  return entries.map((entry) => /* @__PURE__ */ jsxs("div", {
880
- className: "nx-menu-group",
880
+ className: "db-menu-group",
881
881
  children: [entry.separatorBefore === true && /* @__PURE__ */ jsx("div", {
882
- className: "nx-separator",
882
+ className: "db-separator",
883
883
  role: "separator"
884
884
  }), /* @__PURE__ */ jsxs("button", {
885
885
  type: "button",
886
886
  role: entry.checked === void 0 ? "menuitem" : "menuitemcheckbox",
887
887
  ...entry.checked === void 0 ? {} : { "aria-checked": entry.checked },
888
- className: cx("nx-menu-item", entry.danger && "nx-danger"),
888
+ className: cx("db-menu-item", entry.danger && "db-danger"),
889
889
  disabled: entry.disabled,
890
890
  "data-testid": `menu-item-${entry.id}`,
891
891
  onClick: () => {
@@ -893,9 +893,9 @@ function MenuItems({ entries, onDone }) {
893
893
  entry.onSelect();
894
894
  },
895
895
  children: [
896
- entry.checked === true ? /* @__PURE__ */ jsx(Icon, { name: "check" }) : entry.icon === void 0 ? /* @__PURE__ */ jsx("span", { className: "nx-menu-icon" }) : /* @__PURE__ */ jsx(Icon, { name: entry.icon }),
896
+ entry.checked === true ? /* @__PURE__ */ jsx(Icon, { name: "check" }) : entry.icon === void 0 ? /* @__PURE__ */ jsx("span", { className: "db-menu-icon" }) : /* @__PURE__ */ jsx(Icon, { name: entry.icon }),
897
897
  /* @__PURE__ */ jsx("span", {
898
- className: "nx-menu-label",
898
+ className: "db-menu-label",
899
899
  children: entry.label
900
900
  }),
901
901
  entry.shortcut !== void 0 && /* @__PURE__ */ jsx("kbd", { children: formatShortcut(entry.shortcut) })
@@ -942,20 +942,20 @@ function Dialog({ open, onClose, title, testId, wide, children }) {
942
942
  }
943
943
  };
944
944
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx("div", {
945
- className: "nx-dialog-backdrop",
945
+ className: "db-dialog-backdrop",
946
946
  onPointerDown: (event) => {
947
947
  if (event.target === event.currentTarget) onClose();
948
948
  },
949
949
  children: /* @__PURE__ */ jsxs("div", {
950
950
  ref,
951
- className: cx("nx-dialog nx-island", wide && "nx-dialog-wide"),
951
+ className: cx("db-dialog db-island", wide && "db-dialog-wide"),
952
952
  role: "dialog",
953
953
  "aria-modal": "true",
954
954
  "aria-labelledby": titleId,
955
955
  "data-testid": testId,
956
956
  onKeyDown,
957
957
  children: [/* @__PURE__ */ jsxs("header", {
958
- className: "nx-dialog-header",
958
+ className: "db-dialog-header",
959
959
  children: [/* @__PURE__ */ jsx("h2", {
960
960
  id: titleId,
961
961
  children: title
@@ -966,7 +966,7 @@ function Dialog({ open, onClose, title, testId, wide, children }) {
966
966
  testId: "dialog-close"
967
967
  })]
968
968
  }), /* @__PURE__ */ jsx("div", {
969
- className: "nx-dialog-body",
969
+ className: "db-dialog-body",
970
970
  children
971
971
  })]
972
972
  })
@@ -975,7 +975,7 @@ function Dialog({ open, onClose, title, testId, wide, children }) {
975
975
  /** Row of toggle buttons for one value; `undefined` value shows no selection (mixed). */
976
976
  function Choice({ label, value, options, onChange, testId, disabled }) {
977
977
  return /* @__PURE__ */ jsx("div", {
978
- className: "nx-choice",
978
+ className: "db-choice",
979
979
  role: "radiogroup",
980
980
  "aria-label": label,
981
981
  "data-testid": testId,
@@ -987,18 +987,18 @@ function Choice({ label, value, options, onChange, testId, disabled }) {
987
987
  "aria-label": option.label,
988
988
  title: option.label,
989
989
  disabled,
990
- className: cx("nx-choice-option", option.swatch !== void 0 && "nx-swatch-option", (option.icon !== void 0 || option.glyph !== void 0) && "nx-choice-square"),
990
+ className: cx("db-choice-option", option.swatch !== void 0 && "db-swatch-option", (option.icon !== void 0 || option.glyph !== void 0) && "db-choice-square"),
991
991
  "data-value": String(option.value),
992
992
  onClick: () => onChange(option.value),
993
993
  children: option.swatch !== void 0 ? /* @__PURE__ */ jsx("span", {
994
- className: cx("nx-swatch", option.swatch === "transparent" && "nx-swatch-none"),
994
+ className: cx("db-swatch", option.swatch === "transparent" && "db-swatch-none"),
995
995
  style: option.swatch === "transparent" ? void 0 : { background: option.swatch }
996
996
  }) : option.icon !== void 0 ? /* @__PURE__ */ jsx(Icon, { name: option.icon }) : option.glyph !== void 0 ? /* @__PURE__ */ jsx("span", {
997
- className: "nx-choice-glyph",
997
+ className: "db-choice-glyph",
998
998
  "aria-hidden": true,
999
999
  children: option.glyph
1000
1000
  }) : /* @__PURE__ */ jsx("span", {
1001
- className: "nx-choice-text",
1001
+ className: "db-choice-text",
1002
1002
  children: option.label
1003
1003
  })
1004
1004
  }, String(option.value)))
@@ -1007,11 +1007,11 @@ function Choice({ label, value, options, onChange, testId, disabled }) {
1007
1007
  function Section({ title, children }) {
1008
1008
  const id = useId();
1009
1009
  return /* @__PURE__ */ jsxs("section", {
1010
- className: "nx-section",
1010
+ className: "db-section",
1011
1011
  "aria-labelledby": id,
1012
1012
  children: [/* @__PURE__ */ jsx("h3", {
1013
1013
  id,
1014
- className: "nx-section-title",
1014
+ className: "db-section-title",
1015
1015
  children: title
1016
1016
  }), children]
1017
1017
  });
@@ -1050,7 +1050,7 @@ function LinkInput({ id, onDone }) {
1050
1050
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("input", {
1051
1051
  type: "text",
1052
1052
  autoFocus: true,
1053
- className: cx("nx-link-input", error && "nx-invalid"),
1053
+ className: cx("db-link-input", error && "db-invalid"),
1054
1054
  value: draft,
1055
1055
  placeholder: t("link.placeholder"),
1056
1056
  "aria-label": t("link.label"),
@@ -1077,7 +1077,7 @@ function LinkInput({ id, onDone }) {
1077
1077
  }
1078
1078
  }
1079
1079
  }), error && /* @__PURE__ */ jsx("p", {
1080
- className: "nx-link-error",
1080
+ className: "db-link-error",
1081
1081
  role: "alert",
1082
1082
  children: t("link.invalid")
1083
1083
  })] });
@@ -1150,7 +1150,7 @@ function LinkEditor() {
1150
1150
  const openable = url !== void 0 && editor.links.canOpen(url, { elementId: id });
1151
1151
  return /* @__PURE__ */ jsx("div", {
1152
1152
  ref,
1153
- className: "nx-link-popover nx-island",
1153
+ className: "db-link-popover db-island",
1154
1154
  role: "group",
1155
1155
  "aria-label": t("link.label"),
1156
1156
  "data-testid": "link-editor",
@@ -1163,7 +1163,7 @@ function LinkEditor() {
1163
1163
  id,
1164
1164
  onDone: () => setOpen("link", false)
1165
1165
  }, id) : /* @__PURE__ */ jsxs(Fragment$1, { children: [openable ? /* @__PURE__ */ jsx("a", {
1166
- className: "nx-link-url",
1166
+ className: "db-link-url",
1167
1167
  href: url,
1168
1168
  title: url,
1169
1169
  "data-testid": "link-url",
@@ -1173,7 +1173,7 @@ function LinkEditor() {
1173
1173
  },
1174
1174
  children: url
1175
1175
  }) : /* @__PURE__ */ jsx("span", {
1176
- className: "nx-link-url nx-inert",
1176
+ className: "db-link-url db-inert",
1177
1177
  title: url,
1178
1178
  "data-testid": "link-url",
1179
1179
  children: url
@@ -1199,7 +1199,7 @@ function UndoRedo() {
1199
1199
  const undo = useCommand("core.undo");
1200
1200
  const redo = useCommand("core.redo");
1201
1201
  return /* @__PURE__ */ jsxs(Island, {
1202
- className: "nx-row",
1202
+ className: "db-row",
1203
1203
  testId: "undo-redo",
1204
1204
  children: [/* @__PURE__ */ jsx(IconButton, {
1205
1205
  icon: "undo",
@@ -1270,19 +1270,19 @@ function ZoomControls({ minimap } = {}) {
1270
1270
  }
1271
1271
  ];
1272
1272
  return /* @__PURE__ */ jsxs("div", {
1273
- className: "nx-zoom",
1273
+ className: "db-zoom",
1274
1274
  children: [
1275
1275
  minimapOpen && /* @__PURE__ */ jsx("div", {
1276
- className: "nx-minimap-card",
1276
+ className: "db-minimap-card",
1277
1277
  children: minimap
1278
1278
  }),
1279
1279
  /* @__PURE__ */ jsxs(Island, {
1280
- className: "nx-row",
1280
+ className: "db-row",
1281
1281
  testId: "zoom-controls",
1282
1282
  children: [/* @__PURE__ */ jsx("button", {
1283
1283
  ref: anchor,
1284
1284
  type: "button",
1285
- className: "nx-zoom-level",
1285
+ className: "db-zoom-level",
1286
1286
  "aria-haspopup": "menu",
1287
1287
  "aria-expanded": menuOpen,
1288
1288
  "aria-label": `${t("zoom.menu")} (${t("zoom.level", { percent })})`,
@@ -1295,7 +1295,7 @@ function ZoomControls({ minimap } = {}) {
1295
1295
  label: t("minimap.toggle"),
1296
1296
  pressed: minimapOpen,
1297
1297
  onClick: () => setOpen("minimap", !minimapOpen),
1298
- className: "nx-minimap-toggle",
1298
+ className: "db-minimap-toggle",
1299
1299
  testId: "minimap-toggle"
1300
1300
  })]
1301
1301
  }),
@@ -1347,7 +1347,7 @@ function ScrollToContent() {
1347
1347
  }, { events: ["viewport.change"] })) return null;
1348
1348
  return /* @__PURE__ */ jsx("button", {
1349
1349
  type: "button",
1350
- className: "nx-pill",
1350
+ className: "db-pill",
1351
1351
  onClick: () => void scrollToContent(editor),
1352
1352
  "data-testid": "scroll-to-content",
1353
1353
  children: t("scroll.toContent")
@@ -1676,9 +1676,9 @@ function dropLayer(editor, id, target, zone) {
1676
1676
  }
1677
1677
  /** A small label next to the cursor instead of the browser's snapshot of the whole row. */
1678
1678
  function setDragBadge(event, label) {
1679
- const host = event.currentTarget.closest(".nx-layers") ?? event.currentTarget.ownerDocument.body;
1679
+ const host = event.currentTarget.closest(".db-layers") ?? event.currentTarget.ownerDocument.body;
1680
1680
  const badge = event.currentTarget.ownerDocument.createElement("div");
1681
- badge.className = "nx-drag-badge";
1681
+ badge.className = "db-drag-badge";
1682
1682
  badge.textContent = label;
1683
1683
  host.appendChild(badge);
1684
1684
  event.dataTransfer.setDragImage(badge, -12, -8);
@@ -1715,8 +1715,8 @@ function Thumbnail({ id }) {
1715
1715
  id,
1716
1716
  revision
1717
1717
  ]);
1718
- return url === void 0 ? /* @__PURE__ */ jsx("span", { className: "nx-thumb" }) : /* @__PURE__ */ jsx("img", {
1719
- className: "nx-thumb",
1718
+ return url === void 0 ? /* @__PURE__ */ jsx("span", { className: "db-thumb" }) : /* @__PURE__ */ jsx("img", {
1719
+ className: "db-thumb",
1720
1720
  src: url,
1721
1721
  alt: ""
1722
1722
  });
@@ -1916,7 +1916,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
1916
1916
  "data-row-index": index,
1917
1917
  "data-testid": `layer-row-${row.kind}-${row.record.id}`
1918
1918
  },
1919
- className: cx("nx-row-item", `nx-row-${row.kind}`, isSelected && "nx-selected", isHiddenRow(row) && "nx-dimmed", drop?.key === row.key && `nx-drop-${drop.zone}`),
1919
+ className: cx("db-row-item", `db-row-${row.kind}`, isSelected && "db-selected", isHiddenRow(row) && "db-dimmed", drop?.key === row.key && `db-drop-${drop.zone}`),
1920
1920
  style: {
1921
1921
  position: "absolute",
1922
1922
  top,
@@ -1924,7 +1924,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
1924
1924
  left: 0,
1925
1925
  right: 0,
1926
1926
  paddingInlineStart: ROW_PADDING + row.depth * INDENT,
1927
- ["--nx-row-indent"]: `${ROW_PADDING + row.depth * INDENT}px`
1927
+ ["--db-row-indent"]: `${ROW_PADDING + row.depth * INDENT}px`
1928
1928
  },
1929
1929
  title: reorderable ? void 0 : editor.permissions.explain(row.kind === "layer" ? "core.manage-layers" : "core.reorder", row.kind === "layer" ? { layer: row.record.id } : ids[0]).reason,
1930
1930
  draggable: reorderable && editing !== row.key,
@@ -1964,12 +1964,12 @@ function LayersPanel({ thumbnails = false, onClose }) {
1964
1964
  children: [
1965
1965
  Array.from({ length: row.depth }, (_, level) => /* @__PURE__ */ jsx("span", {
1966
1966
  "aria-hidden": "true",
1967
- className: cx("nx-tree-guide", guide !== void 0 && guide.level === level && index >= guide.start && index < guide.end && "nx-active"),
1967
+ className: cx("db-tree-guide", guide !== void 0 && guide.level === level && index >= guide.start && index < guide.end && "db-active"),
1968
1968
  style: { insetInlineStart: ROW_PADDING + level * INDENT + TOGGLE_SIZE / 2 }
1969
1969
  }, level)),
1970
1970
  row.expandable ? /* @__PURE__ */ jsx("button", {
1971
1971
  type: "button",
1972
- className: "nx-tree-toggle",
1972
+ className: "db-tree-toggle",
1973
1973
  tabIndex: -1,
1974
1974
  "aria-label": row.expanded ? t("layers.collapse") : t("layers.expand"),
1975
1975
  onClick: (event) => {
@@ -1977,10 +1977,10 @@ function LayersPanel({ thumbnails = false, onClose }) {
1977
1977
  toggleExpanded(row);
1978
1978
  },
1979
1979
  children: /* @__PURE__ */ jsx(Icon, { name: row.expanded ? "collapse" : "expand" })
1980
- }) : /* @__PURE__ */ jsx("span", { className: "nx-tree-toggle" }),
1980
+ }) : /* @__PURE__ */ jsx("span", { className: "db-tree-toggle" }),
1981
1981
  row.kind === "element" && thumbnails ? /* @__PURE__ */ jsx(Thumbnail, { id: row.record.id }) : /* @__PURE__ */ jsx(Icon, { name: row.kind === "layer" ? "layers" : row.kind === "group" ? "group" : row.icon }),
1982
1982
  editing === row.key ? /* @__PURE__ */ jsx("input", {
1983
- className: "nx-rename",
1983
+ className: "db-rename",
1984
1984
  defaultValue: name,
1985
1985
  "aria-label": t("layers.rename"),
1986
1986
  autoFocus: true,
@@ -2000,11 +2000,11 @@ function LayersPanel({ thumbnails = false, onClose }) {
2000
2000
  setEditing(void 0);
2001
2001
  }
2002
2002
  }) : /* @__PURE__ */ jsx("span", {
2003
- className: "nx-row-name",
2003
+ className: "db-row-name",
2004
2004
  children: name
2005
2005
  }),
2006
2006
  /* @__PURE__ */ jsxs("span", {
2007
- className: "nx-row-actions",
2007
+ className: "db-row-actions",
2008
2008
  onClick: (event) => event.stopPropagation(),
2009
2009
  onDoubleClick: (event) => event.stopPropagation(),
2010
2010
  children: [row.kind !== "group" && /* @__PURE__ */ jsx(IconButton, {
@@ -2012,7 +2012,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
2012
2012
  label: isHiddenRow(row) ? t("layers.show") : t("layers.hide"),
2013
2013
  disabled: !lockable,
2014
2014
  onClick: () => toggleVisible(editor, row),
2015
- className: "nx-row-action",
2015
+ className: "db-row-action",
2016
2016
  tabIndex: -1,
2017
2017
  testId: `layer-visibility-${row.record.id}`
2018
2018
  }), /* @__PURE__ */ jsx(IconButton, {
@@ -2020,7 +2020,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
2020
2020
  label: isLocked(row) ? t("layers.unlock") : t("layers.lock"),
2021
2021
  disabled: !lockable,
2022
2022
  onClick: () => toggleLocked(editor, row),
2023
- className: cx("nx-row-action", isLocked(row) && "nx-on"),
2023
+ className: cx("db-row-action", isLocked(row) && "db-on"),
2024
2024
  tabIndex: -1,
2025
2025
  testId: `layer-lock-${row.record.id}`
2026
2026
  })]
@@ -2033,12 +2033,12 @@ function LayersPanel({ thumbnails = false, onClose }) {
2033
2033
  editor.layers.setActive(id);
2034
2034
  };
2035
2035
  return /* @__PURE__ */ jsxs(Island, {
2036
- className: "nx-layers",
2036
+ className: "db-layers",
2037
2037
  label: t("layers.label"),
2038
2038
  testId: "layers-panel",
2039
2039
  children: [
2040
2040
  /* @__PURE__ */ jsxs("header", {
2041
- className: "nx-panel-header",
2041
+ className: "db-panel-header",
2042
2042
  children: [
2043
2043
  /* @__PURE__ */ jsx("h2", { children: t("layers.label") }),
2044
2044
  !isHidden("layers:add") && /* @__PURE__ */ jsx(IconButton, {
@@ -2057,7 +2057,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
2057
2057
  ]
2058
2058
  }),
2059
2059
  /* @__PURE__ */ jsxs("label", {
2060
- className: "nx-search",
2060
+ className: "db-search",
2061
2061
  children: [/* @__PURE__ */ jsx(Icon, { name: "search" }), /* @__PURE__ */ jsx("input", {
2062
2062
  type: "search",
2063
2063
  placeholder: t("layers.search"),
@@ -2069,7 +2069,7 @@ function LayersPanel({ thumbnails = false, onClose }) {
2069
2069
  }),
2070
2070
  /* @__PURE__ */ jsxs("div", {
2071
2071
  ref: listRef,
2072
- className: "nx-tree",
2072
+ className: "db-tree",
2073
2073
  role: "tree",
2074
2074
  "aria-label": t("layers.label"),
2075
2075
  "aria-multiselectable": "true",
@@ -2103,15 +2103,15 @@ function LayersPanel({ thumbnails = false, onClose }) {
2103
2103
  },
2104
2104
  children: [
2105
2105
  rows.length === 0 && /* @__PURE__ */ jsx("p", {
2106
- className: "nx-caption",
2106
+ className: "db-caption",
2107
2107
  children: query === "" ? t("layers.empty") : t("layers.noMatches")
2108
2108
  }),
2109
2109
  sticky.length > 0 && /* @__PURE__ */ jsx("div", {
2110
- className: "nx-tree-pinned",
2110
+ className: "db-tree-pinned",
2111
2111
  children: sticky.map((entry, position) => {
2112
2112
  const row = rows[entry.index];
2113
2113
  return row === void 0 ? null : /* @__PURE__ */ jsx("div", {
2114
- className: cx("nx-pinned-row", position === sticky.length - 1 && "nx-pinned-last"),
2114
+ className: cx("db-pinned-row", position === sticky.length - 1 && "db-pinned-last"),
2115
2115
  style: {
2116
2116
  top: entry.top,
2117
2117
  height: ROW_STRIDE,
@@ -2128,10 +2128,10 @@ function LayersPanel({ thumbnails = false, onClose }) {
2128
2128
  position: "relative"
2129
2129
  },
2130
2130
  children: [rows.slice(range.start, range.end).map((row, offset) => renderRow(row, range.start + offset, TREE_PADDING + (range.start + offset) * ROW_STRIDE)), drop?.key === END_KEY && /* @__PURE__ */ jsx("div", {
2131
- className: "nx-drop-end nx-drop-below",
2131
+ className: "db-drop-end db-drop-below",
2132
2132
  style: {
2133
2133
  top: TREE_PADDING + rows.length * ROW_STRIDE - ROW_GAP,
2134
- ["--nx-row-indent"]: `${ROW_PADDING}px`
2134
+ ["--db-row-indent"]: `${ROW_PADDING}px`
2135
2135
  }
2136
2136
  })]
2137
2137
  })
@@ -2245,7 +2245,7 @@ function CanvasCommands() {
2245
2245
  return () => clearTimeout(timer);
2246
2246
  }, [notice]);
2247
2247
  return notice === void 0 ? null : /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx("div", {
2248
- className: "nx-toast nx-toast-info",
2248
+ className: "db-toast db-toast-info",
2249
2249
  role: "status",
2250
2250
  "data-testid": "ui-notice",
2251
2251
  children: notice
@@ -2423,7 +2423,7 @@ function ContextMenu() {
2423
2423
  if (contextMenu === void 0 || entries.length === 0) return null;
2424
2424
  return /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx("div", {
2425
2425
  ref,
2426
- className: "nx-popover nx-island nx-context-menu",
2426
+ className: "db-popover db-island db-context-menu",
2427
2427
  role: "menu",
2428
2428
  tabIndex: -1,
2429
2429
  "aria-label": t("contextMenu.label"),
@@ -2530,19 +2530,19 @@ function ExportDialog({ fileName = "canvas" }) {
2530
2530
  testId: "export-dialog",
2531
2531
  wide: true,
2532
2532
  children: /* @__PURE__ */ jsxs("div", {
2533
- className: "nx-export",
2533
+ className: "db-export",
2534
2534
  children: [/* @__PURE__ */ jsx("div", {
2535
- className: "nx-export-preview",
2535
+ className: "db-export-preview",
2536
2536
  children: preview !== void 0 && /* @__PURE__ */ jsx("img", {
2537
2537
  src: preview.url,
2538
2538
  alt: "",
2539
2539
  "data-testid": "export-preview"
2540
2540
  })
2541
2541
  }), /* @__PURE__ */ jsxs("div", {
2542
- className: "nx-fields",
2542
+ className: "db-fields",
2543
2543
  children: [
2544
2544
  /* @__PURE__ */ jsxs("label", {
2545
- className: "nx-field",
2545
+ className: "db-field",
2546
2546
  children: [/* @__PURE__ */ jsx("span", { children: t("export.format") }), /* @__PURE__ */ jsxs("select", {
2547
2547
  value: format,
2548
2548
  "data-testid": "export-format",
@@ -2557,7 +2557,7 @@ function ExportDialog({ fileName = "canvas" }) {
2557
2557
  })]
2558
2558
  }),
2559
2559
  /* @__PURE__ */ jsxs("label", {
2560
- className: "nx-check",
2560
+ className: "db-check",
2561
2561
  children: [/* @__PURE__ */ jsx("input", {
2562
2562
  type: "checkbox",
2563
2563
  checked: onlySelected,
@@ -2566,7 +2566,7 @@ function ExportDialog({ fileName = "canvas" }) {
2566
2566
  }), t("export.selectionOnly")]
2567
2567
  }),
2568
2568
  /* @__PURE__ */ jsxs("label", {
2569
- className: "nx-check",
2569
+ className: "db-check",
2570
2570
  children: [/* @__PURE__ */ jsx("input", {
2571
2571
  type: "checkbox",
2572
2572
  checked: background,
@@ -2575,7 +2575,7 @@ function ExportDialog({ fileName = "canvas" }) {
2575
2575
  }), t("export.background")]
2576
2576
  }),
2577
2577
  /* @__PURE__ */ jsxs("label", {
2578
- className: "nx-check",
2578
+ className: "db-check",
2579
2579
  children: [/* @__PURE__ */ jsx("input", {
2580
2580
  type: "checkbox",
2581
2581
  checked: grid,
@@ -2583,7 +2583,7 @@ function ExportDialog({ fileName = "canvas" }) {
2583
2583
  }), t("export.grid")]
2584
2584
  }),
2585
2585
  /* @__PURE__ */ jsxs("label", {
2586
- className: "nx-field",
2586
+ className: "db-field",
2587
2587
  children: [/* @__PURE__ */ jsx("span", { children: t("export.scale") }), /* @__PURE__ */ jsxs("select", {
2588
2588
  value: scale,
2589
2589
  "data-testid": "export-scale",
@@ -2605,7 +2605,7 @@ function ExportDialog({ fileName = "canvas" }) {
2605
2605
  })]
2606
2606
  }),
2607
2607
  /* @__PURE__ */ jsxs("label", {
2608
- className: "nx-field",
2608
+ className: "db-field",
2609
2609
  children: [/* @__PURE__ */ jsx("span", { children: t("export.padding") }), /* @__PURE__ */ jsx("input", {
2610
2610
  type: "number",
2611
2611
  min: 0,
@@ -2615,12 +2615,12 @@ function ExportDialog({ fileName = "canvas" }) {
2615
2615
  })]
2616
2616
  }),
2617
2617
  preview !== void 0 && preview.warnings > 0 && /* @__PURE__ */ jsx("p", {
2618
- className: "nx-caption",
2618
+ className: "db-caption",
2619
2619
  children: t("export.warnings", { count: preview.warnings })
2620
2620
  }),
2621
2621
  /* @__PURE__ */ jsx("button", {
2622
2622
  type: "button",
2623
- className: "nx-primary",
2623
+ className: "db-primary",
2624
2624
  "data-testid": "export-download",
2625
2625
  onClick: () => void save(),
2626
2626
  children: t("export.download")
@@ -2862,7 +2862,7 @@ function eyeDropperOpener() {
2862
2862
  /** A color chip; transparent shows a checkerboard, `undefined` (mixed values) a hatch. */
2863
2863
  function Swatch({ color }) {
2864
2864
  return /* @__PURE__ */ jsx("span", {
2865
- className: cx("nx-swatch", color === "transparent" && "nx-swatch-transparent", color === void 0 && "nx-swatch-mixed"),
2865
+ className: cx("db-swatch", color === "transparent" && "db-swatch-transparent", color === void 0 && "db-swatch-mixed"),
2866
2866
  style: color === void 0 || color === "transparent" ? void 0 : { background: color }
2867
2867
  });
2868
2868
  }
@@ -2903,22 +2903,22 @@ function ColorPicker({ label, value, kind, onChange }) {
2903
2903
  const activeFamily = active?.family;
2904
2904
  useEffect(() => {
2905
2905
  const focused = document.activeElement;
2906
- if (root.current !== null && focused instanceof HTMLElement && root.current.contains(focused) && !(focused instanceof HTMLInputElement)) root.current.querySelector(".nx-color-grid [aria-checked=\"true\"]")?.focus();
2906
+ if (root.current !== null && focused instanceof HTMLElement && root.current.contains(focused) && !(focused instanceof HTMLInputElement)) root.current.querySelector(".db-color-grid [aria-checked=\"true\"]")?.focus();
2907
2907
  }, [activeFamily]);
2908
2908
  return /* @__PURE__ */ jsxs("div", {
2909
2909
  ref: root,
2910
- className: "nx-color-picker",
2910
+ className: "db-color-picker",
2911
2911
  children: [
2912
2912
  /* @__PURE__ */ jsx("h4", {
2913
- className: "nx-color-picker-title",
2913
+ className: "db-color-picker-title",
2914
2914
  children: label
2915
2915
  }),
2916
2916
  /* @__PURE__ */ jsx("span", {
2917
- className: "nx-caption",
2917
+ className: "db-caption",
2918
2918
  children: t("color.colors")
2919
2919
  }),
2920
2920
  /* @__PURE__ */ jsx("div", {
2921
- className: "nx-color-grid",
2921
+ className: "db-color-grid",
2922
2922
  role: "radiogroup",
2923
2923
  "aria-label": t("color.colors"),
2924
2924
  children: COLOR_GRID.map(({ key, family }) => {
@@ -2929,27 +2929,27 @@ function ColorPicker({ label, value, kind, onChange }) {
2929
2929
  "aria-checked": active?.family === family,
2930
2930
  "aria-label": `${t(`color.name.${family}`)} (${key.toUpperCase()})`,
2931
2931
  title: `${t(`color.name.${family}`)} — ${key.toUpperCase()}`,
2932
- className: cx("nx-color-cell", isDarkColor(color) && "nx-on-dark"),
2932
+ className: cx("db-color-cell", isDarkColor(color) && "db-on-dark"),
2933
2933
  "data-testid": `color-${family}`,
2934
2934
  "data-autofocus": active?.family === family ? "" : void 0,
2935
2935
  onClick: () => onChange(color),
2936
2936
  children: [/* @__PURE__ */ jsx(Swatch, { color }), /* @__PURE__ */ jsx("span", {
2937
- className: "nx-color-key",
2937
+ className: "db-color-key",
2938
2938
  children: key
2939
2939
  })]
2940
2940
  }, key);
2941
2941
  })
2942
2942
  }),
2943
2943
  /* @__PURE__ */ jsx("span", {
2944
- className: "nx-caption",
2944
+ className: "db-caption",
2945
2945
  children: t("color.shades")
2946
2946
  }),
2947
2947
  shades.length === 0 ? /* @__PURE__ */ jsx("p", {
2948
- className: "nx-color-no-shades",
2948
+ className: "db-color-no-shades",
2949
2949
  "data-testid": "color-no-shades",
2950
2950
  children: t("color.noShades")
2951
2951
  }) : /* @__PURE__ */ jsx("div", {
2952
- className: "nx-color-shades",
2952
+ className: "db-color-shades",
2953
2953
  role: "radiogroup",
2954
2954
  "aria-label": t("color.shades"),
2955
2955
  children: shades.map((color, index) => /* @__PURE__ */ jsxs("button", {
@@ -2958,21 +2958,21 @@ function ColorPicker({ label, value, kind, onChange }) {
2958
2958
  "aria-checked": active?.shade === index,
2959
2959
  "aria-label": `${t("color.shade", { index: index + 1 })} (Shift+${index + 1})`,
2960
2960
  title: `${t("color.shade", { index: index + 1 })} — Shift+${index + 1}`,
2961
- className: cx("nx-color-cell", isDarkColor(color) && "nx-on-dark"),
2961
+ className: cx("db-color-cell", isDarkColor(color) && "db-on-dark"),
2962
2962
  "data-testid": `color-shade-${index + 1}`,
2963
2963
  onClick: () => onChange(color),
2964
2964
  children: [/* @__PURE__ */ jsx(Swatch, { color }), /* @__PURE__ */ jsxs("span", {
2965
- className: "nx-color-key",
2965
+ className: "db-color-key",
2966
2966
  children: ["⇧", index + 1]
2967
2967
  })]
2968
2968
  }, color))
2969
2969
  }),
2970
2970
  /* @__PURE__ */ jsx("span", {
2971
- className: "nx-caption",
2971
+ className: "db-caption",
2972
2972
  children: t("color.hex")
2973
2973
  }),
2974
2974
  /* @__PURE__ */ jsxs("div", {
2975
- className: "nx-color-hex",
2975
+ className: "db-color-hex",
2976
2976
  children: [
2977
2977
  /* @__PURE__ */ jsx("span", {
2978
2978
  "aria-hidden": true,
@@ -3029,7 +3029,7 @@ function ColorField({ label, value, palette, onChange, kind = "stroke", testId,
3029
3029
  const [open, setOpen] = useState(false);
3030
3030
  const anchor = useRef(null);
3031
3031
  return /* @__PURE__ */ jsxs("div", {
3032
- className: "nx-color-field",
3032
+ className: "db-color-field",
3033
3033
  "data-testid": testId,
3034
3034
  children: [
3035
3035
  /* @__PURE__ */ jsx(Choice, {
@@ -3044,13 +3044,13 @@ function ColorField({ label, value, palette, onChange, kind = "stroke", testId,
3044
3044
  onChange
3045
3045
  }),
3046
3046
  /* @__PURE__ */ jsx("span", {
3047
- className: "nx-color-divider",
3047
+ className: "db-color-divider",
3048
3048
  "aria-hidden": true
3049
3049
  }),
3050
3050
  /* @__PURE__ */ jsx("button", {
3051
3051
  ref: anchor,
3052
3052
  type: "button",
3053
- className: "nx-choice-option nx-swatch-option nx-color-current",
3053
+ className: "db-choice-option db-swatch-option db-color-current",
3054
3054
  "aria-label": t("color.open", { label }),
3055
3055
  title: t("color.open", { label }),
3056
3056
  "aria-haspopup": "dialog",
@@ -3125,7 +3125,7 @@ function CanvasPropertiesPanel() {
3125
3125
  const canGrid = usePermission("core.manage-grid");
3126
3126
  const type = grid.config.type;
3127
3127
  return /* @__PURE__ */ jsxs("div", {
3128
- className: "nx-canvas-properties",
3128
+ className: "db-canvas-properties",
3129
3129
  "data-testid": "canvas-properties",
3130
3130
  children: [
3131
3131
  /* @__PURE__ */ jsxs(Section, {
@@ -3140,14 +3140,14 @@ function CanvasPropertiesPanel() {
3140
3140
  testId: "canvas-background"
3141
3141
  }), background !== void 0 && /* @__PURE__ */ jsx("button", {
3142
3142
  type: "button",
3143
- className: "nx-link",
3143
+ className: "db-link",
3144
3144
  disabled: !canCanvas,
3145
3145
  onClick: () => editor.document.setBackground(void 0),
3146
3146
  children: t("canvas.backgroundReset")
3147
3147
  })]
3148
3148
  }),
3149
3149
  /* @__PURE__ */ jsxs("div", {
3150
- className: "nx-menu-row",
3150
+ className: "db-menu-row",
3151
3151
  children: [/* @__PURE__ */ jsx("span", { children: t("grid.label") }), /* @__PURE__ */ jsx(Choice, {
3152
3152
  label: t("grid.type"),
3153
3153
  value: type,
@@ -3163,7 +3163,7 @@ function CanvasPropertiesPanel() {
3163
3163
  }),
3164
3164
  type !== "none" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
3165
3165
  /* @__PURE__ */ jsxs("label", {
3166
- className: "nx-field",
3166
+ className: "db-field",
3167
3167
  children: [/* @__PURE__ */ jsx("span", { children: t("grid.size") }), /* @__PURE__ */ jsx("input", {
3168
3168
  type: "number",
3169
3169
  min: 1,
@@ -3178,7 +3178,7 @@ function CanvasPropertiesPanel() {
3178
3178
  })]
3179
3179
  }),
3180
3180
  (type === "square" || type === "dot") && /* @__PURE__ */ jsxs("label", {
3181
- className: "nx-field",
3181
+ className: "db-field",
3182
3182
  children: [/* @__PURE__ */ jsx("span", { children: t("grid.majorEvery") }), /* @__PURE__ */ jsx("input", {
3183
3183
  type: "number",
3184
3184
  min: 1,
@@ -3278,7 +3278,7 @@ function MainMenu({ items, fileName = "canvas" }) {
3278
3278
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
3279
3279
  /* @__PURE__ */ jsx("span", {
3280
3280
  ref: anchor,
3281
- className: "nx-anchor",
3281
+ className: "db-anchor",
3282
3282
  children: /* @__PURE__ */ jsx(IconButton, {
3283
3283
  icon: "menu",
3284
3284
  label: t("menu.label"),
@@ -3316,14 +3316,14 @@ function MainMenu({ items, fileName = "canvas" }) {
3316
3316
  }),
3317
3317
  items,
3318
3318
  (!isHidden("menu:theme") || !isHidden("menu:language") || !isHidden("menu:canvas")) && /* @__PURE__ */ jsx("div", {
3319
- className: "nx-separator",
3319
+ className: "db-separator",
3320
3320
  role: "separator"
3321
3321
  }),
3322
3322
  /* @__PURE__ */ jsxs("div", {
3323
- className: "nx-menu-settings",
3323
+ className: "db-menu-settings",
3324
3324
  children: [
3325
3325
  !isHidden("menu:theme") && /* @__PURE__ */ jsxs("div", {
3326
- className: "nx-menu-row",
3326
+ className: "db-menu-row",
3327
3327
  children: [/* @__PURE__ */ jsx("span", { children: t("theme.label") }), /* @__PURE__ */ jsx(Choice, {
3328
3328
  label: t("theme.label"),
3329
3329
  value: themeSetting,
@@ -3349,7 +3349,7 @@ function MainMenu({ items, fileName = "canvas" }) {
3349
3349
  })]
3350
3350
  }),
3351
3351
  !isHidden("menu:language") && /* @__PURE__ */ jsxs("label", {
3352
- className: "nx-field",
3352
+ className: "db-field",
3353
3353
  children: [/* @__PURE__ */ jsx("span", { children: t("language.label") }), /* @__PURE__ */ jsx("select", {
3354
3354
  value: LANGUAGES.find((entry) => locale.startsWith(entry.locale))?.locale ?? locale,
3355
3355
  "data-testid": "language",
@@ -3367,7 +3367,7 @@ function MainMenu({ items, fileName = "canvas" }) {
3367
3367
  ]
3368
3368
  }),
3369
3369
  error !== void 0 && /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsxs("div", {
3370
- className: "nx-toast",
3370
+ className: "db-toast",
3371
3371
  role: "alert",
3372
3372
  "data-testid": "ui-error",
3373
3373
  children: [error, /* @__PURE__ */ jsx(IconButton, {
@@ -3447,7 +3447,7 @@ function ShortcutsDialog() {
3447
3447
  testId: "shortcuts-dialog",
3448
3448
  wide: true,
3449
3449
  children: [/* @__PURE__ */ jsx("label", {
3450
- className: "nx-search",
3450
+ className: "db-search",
3451
3451
  children: /* @__PURE__ */ jsx("input", {
3452
3452
  type: "search",
3453
3453
  placeholder: t("shortcuts.search"),
@@ -3457,12 +3457,12 @@ function ShortcutsDialog() {
3457
3457
  onChange: (event) => setQuery(event.target.value)
3458
3458
  })
3459
3459
  }), /* @__PURE__ */ jsx("div", {
3460
- className: "nx-shortcuts",
3460
+ className: "db-shortcuts",
3461
3461
  children: sections.map((section) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h3", {
3462
- className: "nx-section-title",
3462
+ className: "db-section-title",
3463
3463
  children: section.title
3464
3464
  }), /* @__PURE__ */ jsx("dl", { children: section.entries.map((entry) => /* @__PURE__ */ jsxs("div", {
3465
- className: "nx-shortcut-row",
3465
+ className: "db-shortcut-row",
3466
3466
  children: [/* @__PURE__ */ jsx("dt", { children: entry.label }), /* @__PURE__ */ jsx("dd", { children: compactArrows(entry.keys).map((key) => /* @__PURE__ */ jsx("kbd", { children: formatShortcut(key) }, key)) })]
3467
3467
  }, entry.id)) })] }, section.title))
3468
3468
  })]
@@ -3512,7 +3512,7 @@ function Minimap({ width = 200, height = 140, renderers }) {
3512
3512
  });
3513
3513
  }, [theme, renderers]);
3514
3514
  return /* @__PURE__ */ jsx(Island, {
3515
- className: "nx-minimap",
3515
+ className: "db-minimap",
3516
3516
  label: t("minimap.label"),
3517
3517
  testId: "minimap-island",
3518
3518
  children: /* @__PURE__ */ jsx("div", {
@@ -3744,10 +3744,10 @@ function FontPicker({ value, onChange }) {
3744
3744
  title: t("font.available")
3745
3745
  }];
3746
3746
  return /* @__PURE__ */ jsxs("div", {
3747
- className: "nx-font-picker",
3747
+ className: "db-font-picker",
3748
3748
  "data-testid": "font-picker-panel",
3749
3749
  children: [/* @__PURE__ */ jsxs("label", {
3750
- className: "nx-font-search",
3750
+ className: "db-font-search",
3751
3751
  children: [/* @__PURE__ */ jsx(Icon, { name: "search" }), /* @__PURE__ */ jsx("input", {
3752
3752
  type: "search",
3753
3753
  value: query,
@@ -3780,11 +3780,11 @@ function FontPicker({ value, onChange }) {
3780
3780
  }), /* @__PURE__ */ jsxs("div", {
3781
3781
  ref: list,
3782
3782
  id: listId,
3783
- className: "nx-font-list",
3783
+ className: "db-font-list",
3784
3784
  role: "listbox",
3785
3785
  "aria-label": t("properties.fontFamily"),
3786
3786
  children: [entries.length === 0 && /* @__PURE__ */ jsx("p", {
3787
- className: "nx-font-empty",
3787
+ className: "db-font-empty",
3788
3788
  children: t("font.none")
3789
3789
  }), sections.map((section) => {
3790
3790
  const items = entries.map((entry, index) => ({
@@ -3796,14 +3796,14 @@ function FontPicker({ value, onChange }) {
3796
3796
  role: "group",
3797
3797
  "aria-label": section.title,
3798
3798
  children: [/* @__PURE__ */ jsx("div", {
3799
- className: "nx-font-section",
3799
+ className: "db-font-section",
3800
3800
  "aria-hidden": true,
3801
3801
  children: section.title
3802
3802
  }), items.map(({ entry, index }) => /* @__PURE__ */ jsxs("div", {
3803
3803
  id: optionId(index),
3804
3804
  role: "option",
3805
3805
  "aria-selected": entry.id === value,
3806
- className: cx("nx-font-option", index === active && "nx-active", entry.id === value && "nx-selected"),
3806
+ className: cx("db-font-option", index === active && "db-active", entry.id === value && "db-selected"),
3807
3807
  "data-index": index,
3808
3808
  "data-testid": `font-option-${entry.id}`,
3809
3809
  ref: entry.id === value ? revealCurrent : void 0,
@@ -3835,7 +3835,7 @@ function FontFamilyField({ value, onChange, testId }) {
3835
3835
  const other = value !== void 0 && !quick;
3836
3836
  const title = value === void 0 || quick ? t("font.more") : t("font.current", { name: fontName(editor.fonts.get(value), t, value) });
3837
3837
  return /* @__PURE__ */ jsxs("div", {
3838
- className: "nx-color-field",
3838
+ className: "db-color-field",
3839
3839
  "data-testid": testId,
3840
3840
  children: [
3841
3841
  /* @__PURE__ */ jsx(Choice, {
@@ -3849,13 +3849,13 @@ function FontFamilyField({ value, onChange, testId }) {
3849
3849
  onChange
3850
3850
  }),
3851
3851
  /* @__PURE__ */ jsx("span", {
3852
- className: "nx-color-divider",
3852
+ className: "db-color-divider",
3853
3853
  "aria-hidden": true
3854
3854
  }),
3855
3855
  /* @__PURE__ */ jsx("button", {
3856
3856
  ref: anchor,
3857
3857
  type: "button",
3858
- className: "nx-choice-option nx-choice-square",
3858
+ className: "db-choice-option db-choice-square",
3859
3859
  "aria-label": title,
3860
3860
  title,
3861
3861
  "aria-haspopup": "dialog",
@@ -3957,7 +3957,7 @@ function OpacityField({ elements }) {
3957
3957
  });
3958
3958
  };
3959
3959
  return /* @__PURE__ */ jsxs("label", {
3960
- className: "nx-range",
3960
+ className: "db-range",
3961
3961
  children: [/* @__PURE__ */ jsx("input", {
3962
3962
  type: "range",
3963
3963
  min: 0,
@@ -3987,7 +3987,7 @@ function ElementActions({ count }) {
3987
3987
  /* @__PURE__ */ jsx(Section, {
3988
3988
  title: t("properties.layers"),
3989
3989
  children: /* @__PURE__ */ jsxs("div", {
3990
- className: "nx-row",
3990
+ className: "db-row",
3991
3991
  children: [
3992
3992
  /* @__PURE__ */ jsx(ActionButton, {
3993
3993
  command: "core.sendToBack",
@@ -4015,7 +4015,7 @@ function ElementActions({ count }) {
4015
4015
  count > 1 && /* @__PURE__ */ jsx(Section, {
4016
4016
  title: t("properties.align"),
4017
4017
  children: /* @__PURE__ */ jsxs("div", {
4018
- className: "nx-row nx-wrap",
4018
+ className: "db-row db-wrap",
4019
4019
  children: [
4020
4020
  /* @__PURE__ */ jsx(ActionButton, {
4021
4021
  command: "core.align",
@@ -4070,7 +4070,7 @@ function ElementActions({ count }) {
4070
4070
  /* @__PURE__ */ jsx(Section, {
4071
4071
  title: t("properties.actions"),
4072
4072
  children: /* @__PURE__ */ jsxs("div", {
4073
- className: "nx-row nx-wrap",
4073
+ className: "db-row db-wrap",
4074
4074
  children: [
4075
4075
  /* @__PURE__ */ jsx(ActionButton, {
4076
4076
  command: "core.duplicate",
@@ -4128,7 +4128,7 @@ function CustomEditors({ elements }) {
4128
4128
  return [...new Set(elements.map((element) => element.type))].map((type) => {
4129
4129
  const Component = registry.propertyEditors.get(type);
4130
4130
  return Component === void 0 ? null : /* @__PURE__ */ jsx("div", {
4131
- className: "nx-custom-editor",
4131
+ className: "db-custom-editor",
4132
4132
  "data-testid": `property-editor-${type}`,
4133
4133
  children: /* @__PURE__ */ jsx(Component, {
4134
4134
  editor,
@@ -4154,14 +4154,14 @@ function PropertiesPanel() {
4154
4154
  const set = (key) => (next) => target?.apply(key, next);
4155
4155
  const fillVisible = has("fillColor") && value("fillStyle") !== "none";
4156
4156
  return /* @__PURE__ */ jsx(Island, {
4157
- className: "nx-properties",
4157
+ className: "db-properties",
4158
4158
  label: t("properties.label"),
4159
4159
  testId: "properties-panel",
4160
4160
  children: /* @__PURE__ */ jsxs("div", {
4161
- className: "nx-scroll",
4161
+ className: "db-scroll",
4162
4162
  children: [
4163
4163
  selected.length > 1 && /* @__PURE__ */ jsx("p", {
4164
- className: "nx-caption",
4164
+ className: "db-caption",
4165
4165
  children: t("properties.selected", { count: selected.length })
4166
4166
  }),
4167
4167
  has("textColor") && (selected.length > 0 || tool === TEXT_TOOL) && /* @__PURE__ */ jsx(Section, {
@@ -4510,14 +4510,14 @@ function ToolOverflow({ tools }) {
4510
4510
  });
4511
4511
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
4512
4512
  ref: anchor,
4513
- className: "nx-anchor",
4513
+ className: "db-anchor",
4514
4514
  children: /* @__PURE__ */ jsx(IconButton, {
4515
4515
  icon: "more",
4516
4516
  label: t("toolbar.more"),
4517
4517
  pressed: open || tools.some((tool) => tool.id === active),
4518
4518
  onClick: () => setOpen(!open),
4519
4519
  testId: "tool-overflow",
4520
- className: "nx-tool"
4520
+ className: "db-tool"
4521
4521
  })
4522
4522
  }), /* @__PURE__ */ jsx(Popover, {
4523
4523
  open,
@@ -4546,9 +4546,9 @@ function ToolButton({ id, label, fallbackLabel, icon, shortcut, shortcuts, showS
4546
4546
  pressed: active === id,
4547
4547
  onClick: () => editor.tools.activate(id),
4548
4548
  testId: `tool-${id}`,
4549
- className: "nx-tool",
4549
+ className: "db-tool",
4550
4550
  children: showShortcut && shortcut !== void 0 && /* @__PURE__ */ jsx("span", {
4551
- className: "nx-tool-key",
4551
+ className: "db-tool-key",
4552
4552
  children: shortcut
4553
4553
  })
4554
4554
  });
@@ -4590,24 +4590,24 @@ function Toolbar({ start, end }) {
4590
4590
  })), ...registry.toolbar.list().filter((item) => !isHidden(`toolbar:${item.id}`))]);
4591
4591
  let previousOrder = 0;
4592
4592
  return /* @__PURE__ */ jsx(Island, {
4593
- className: "nx-toolbar",
4593
+ className: "db-toolbar",
4594
4594
  label: t("toolbar.label"),
4595
4595
  role: "toolbar",
4596
4596
  testId: "toolbar",
4597
4597
  children: /* @__PURE__ */ jsxs("div", {
4598
- className: "nx-toolbar-items",
4598
+ className: "db-toolbar-items",
4599
4599
  onKeyDown: (event) => handleRovingKeys(event, "horizontal"),
4600
4600
  children: [
4601
4601
  start,
4602
4602
  !isHidden("toolLock") && /* @__PURE__ */ jsx(ToolLockButton, {}),
4603
- /* @__PURE__ */ jsx("div", { className: "nx-separator nx-vertical" }),
4603
+ /* @__PURE__ */ jsx("div", { className: "db-separator db-vertical" }),
4604
4604
  entries.map((entry) => {
4605
4605
  const breakBefore = [...GROUP_BREAKS].some((limit) => previousOrder < limit && entry.order >= limit);
4606
4606
  previousOrder = entry.order;
4607
- return /* @__PURE__ */ jsxs(Fragment, { children: [breakBefore && /* @__PURE__ */ jsx("div", { className: cx("nx-separator", "nx-vertical") }), entry.render()] }, entry.id);
4607
+ return /* @__PURE__ */ jsxs(Fragment, { children: [breakBefore && /* @__PURE__ */ jsx("div", { className: cx("db-separator", "db-vertical") }), entry.render()] }, entry.id);
4608
4608
  }),
4609
4609
  end,
4610
- overflow.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: "nx-separator nx-vertical" }), /* @__PURE__ */ jsx(ToolOverflow, { tools: overflow })] })
4610
+ overflow.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", { className: "db-separator db-vertical" }), /* @__PURE__ */ jsx(ToolOverflow, { tools: overflow })] })
4611
4611
  ]
4612
4612
  })
4613
4613
  });
@@ -4655,17 +4655,17 @@ function Layout({ components = {}, slots = {}, canvas, minimapRenderers, fileNam
4655
4655
  ]);
4656
4656
  return /* @__PURE__ */ jsxs(EditorView, {
4657
4657
  options: canvasOptions,
4658
- className: "nx-canvas",
4658
+ className: "db-canvas",
4659
4659
  ...onMount === void 0 ? {} : { onMount },
4660
4660
  children: [
4661
4661
  /* @__PURE__ */ jsxs("div", {
4662
- className: "nx-overlay",
4662
+ className: "db-overlay",
4663
4663
  children: [
4664
4664
  /* @__PURE__ */ jsxs("div", {
4665
- className: "nx-top",
4665
+ className: "db-top",
4666
4666
  children: [
4667
4667
  /* @__PURE__ */ jsxs("div", {
4668
- className: "nx-top-left",
4668
+ className: "db-top-left",
4669
4669
  children: [show("mainMenu") && !zen && /* @__PURE__ */ jsx(Menu, { ...slots.mainMenuItems === void 0 ? {} : { items: slots.mainMenuItems } }), slots.topLeft]
4670
4670
  }),
4671
4671
  show("toolbar") && /* @__PURE__ */ jsx(ToolbarComponent, {
@@ -4673,7 +4673,7 @@ function Layout({ components = {}, slots = {}, canvas, minimapRenderers, fileNam
4673
4673
  end: slots.toolbarEnd
4674
4674
  }),
4675
4675
  /* @__PURE__ */ jsxs("div", {
4676
- className: "nx-top-right",
4676
+ className: "db-top-right",
4677
4677
  children: [slots.topRight, show("layers") && !zen && /* @__PURE__ */ jsx(IconButton, {
4678
4678
  icon: "layers",
4679
4679
  label: t("layers.toggle"),
@@ -4685,44 +4685,44 @@ function Layout({ components = {}, slots = {}, canvas, minimapRenderers, fileNam
4685
4685
  ]
4686
4686
  }),
4687
4687
  /* @__PURE__ */ jsxs("div", {
4688
- className: "nx-middle",
4688
+ className: "db-middle",
4689
4689
  children: [/* @__PURE__ */ jsx("div", {
4690
- className: "nx-side nx-side-start",
4690
+ className: "db-side db-side-start",
4691
4691
  children: showProperties && /* @__PURE__ */ jsx(Properties, {})
4692
4692
  }), /* @__PURE__ */ jsx("div", {
4693
- className: "nx-side nx-side-end",
4693
+ className: "db-side db-side-end",
4694
4694
  children: layersOpen && /* @__PURE__ */ jsx(Layers, { onClose: () => setOpen("layers", false) })
4695
4695
  })]
4696
4696
  }),
4697
4697
  /* @__PURE__ */ jsxs("div", {
4698
- className: "nx-bottom",
4698
+ className: "db-bottom",
4699
4699
  children: [
4700
4700
  /* @__PURE__ */ jsxs("div", {
4701
- className: "nx-bottom-left",
4701
+ className: "db-bottom-left",
4702
4702
  children: [
4703
4703
  !zen && show("zoom") && /* @__PURE__ */ jsx(Zoom, { ...show("minimap") ? { minimap: /* @__PURE__ */ jsx(MinimapComponent, { ...minimapRenderers === void 0 && canvas?.renderers === void 0 ? {} : { renderers: minimapRenderers ?? canvas?.renderers } }) } : {} }),
4704
4704
  !zen && !viewing && show("undoRedo") && /* @__PURE__ */ jsx(History, {}),
4705
4705
  !zen && show("grid") && /* @__PURE__ */ jsx(Island, {
4706
- className: "nx-row",
4706
+ className: "db-row",
4707
4707
  children: /* @__PURE__ */ jsx(GridControls, {})
4708
4708
  }),
4709
4709
  slots.bottomLeft
4710
4710
  ]
4711
4711
  }),
4712
4712
  /* @__PURE__ */ jsxs("div", {
4713
- className: "nx-bottom-center",
4713
+ className: "db-bottom-center",
4714
4714
  children: [show("scrollToContent") && /* @__PURE__ */ jsx(ScrollToContent, {}), zen && /* @__PURE__ */ jsx("button", {
4715
4715
  type: "button",
4716
- className: "nx-pill",
4716
+ className: "db-pill",
4717
4717
  "data-testid": "exit-zen",
4718
4718
  onClick: () => editor.modes.setPresentation({ zen: false }),
4719
4719
  children: t("zen.exit")
4720
4720
  })]
4721
4721
  }),
4722
4722
  /* @__PURE__ */ jsxs("div", {
4723
- className: "nx-bottom-right",
4723
+ className: "db-bottom-right",
4724
4724
  children: [slots.bottomRight, !zen && show("help") && /* @__PURE__ */ jsx(Island, {
4725
- className: "nx-row",
4725
+ className: "db-row",
4726
4726
  children: /* @__PURE__ */ jsx(IconButton, {
4727
4727
  icon: "help",
4728
4728
  label: t("menu.shortcuts"),
@@ -4784,7 +4784,7 @@ function DefaultEditor({ editor, theme, onThemeChange, messages, locale, onLocal
4784
4784
  });
4785
4785
  }
4786
4786
  /**
4787
- * Scoped root element for UI components: carries the theme, direction and the `.nx-editor`
4787
+ * Scoped root element for UI components: carries the theme, direction and the `.db-editor`
4788
4788
  * class all styles are scoped to. Opens the shortcut reference on `?`.
4789
4789
  */
4790
4790
  function EditorRoot({ ref, className, dir, children }) {
@@ -4811,10 +4811,10 @@ function EditorRoot({ ref, className, dir, children }) {
4811
4811
  setElement(node);
4812
4812
  ref?.(node);
4813
4813
  },
4814
- className: cx("nx-editor", className),
4814
+ className: cx("db-editor", className),
4815
4815
  "data-theme": theme,
4816
4816
  dir,
4817
- "data-testid": "nx-editor",
4817
+ "data-testid": "db-editor",
4818
4818
  children
4819
4819
  });
4820
4820
  }