@signalsafe/tree-spec-editor-theme-bootstrap 0.3.2 → 0.3.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/README.md CHANGED
@@ -15,7 +15,7 @@ Host apps may keep a thin bridge stylesheet for DeliveryPlus-specific layout, re
15
15
  ## What this package includes
16
16
 
17
17
  - **Slice 1:** design tokens on `.graph-editor-root`, primitives (buttons, forms, lists, badges, spacing, typography, surfaces, flex), and shell chrome (toolbar, cards, modals, panels, dropdowns, selection).
18
- - **Slice 2:** canvas and React Flow styling (`graph-editor-canvas*`, node cards, choice rows, handles).
18
+ - **Slice 2:** canvas and React Flow styling (`graph-editor-canvas*`, node cards, choice rows, handles), including standalone `TreeSpecGraphEditor` token inheritance and edge-label styling.
19
19
  - **Slice 3 (current):** Bootstrap Icons via semantic icon/action classes (`graph-editor-btn--toolbar-add`, panel add/collapse/delete, choice action icons).
20
20
  - **Not included yet:** DeliveryPlus page/read-only/injected-form bridges.
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalsafe/tree-spec-editor-theme-bootstrap",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "type": "module",
5
5
  "description": "Bootstrap-token theme for @signalsafe/tree-spec-editor semantic classes.",
6
6
  "license": "MIT",
@@ -14,8 +14,8 @@
14
14
  height: 10px;
15
15
  }
16
16
 
17
- .graph-editor-root .graph-editor-choice-handle,
18
- .graph-editor-root .graph-editor-target-handle {
17
+ .graph-editor-canvas .graph-editor-choice-handle,
18
+ .graph-editor-canvas .graph-editor-target-handle {
19
19
  width: 1px !important;
20
20
  height: 1px !important;
21
21
  min-width: 1px !important;
@@ -26,7 +26,7 @@
26
26
  box-shadow: none !important;
27
27
  }
28
28
 
29
- .graph-editor-root .graph-editor-choice-handle {
29
+ .graph-editor-canvas .graph-editor-choice-handle {
30
30
  position: absolute !important;
31
31
  top: 50% !important;
32
32
  right: calc(-1px - var(--graph-editor-node-border-width, 4px) / 2) !important;
@@ -35,14 +35,14 @@
35
35
  margin: 0 !important;
36
36
  }
37
37
 
38
- .graph-editor-root .graph-editor-target-handle {
38
+ .graph-editor-canvas .graph-editor-target-handle {
39
39
  top: 50% !important;
40
40
  left: calc(-1px - var(--graph-editor-node-border-width, 4px) / 2) !important;
41
41
  transform: translateY(-50%) !important;
42
42
  }
43
43
 
44
- .graph-editor-root .graph-editor-target-handle--default,
45
- .graph-editor-root .graph-editor-target-handle--danger {
44
+ .graph-editor-canvas .graph-editor-target-handle--default,
45
+ .graph-editor-canvas .graph-editor-target-handle--danger {
46
46
  opacity: 0 !important;
47
47
  background: transparent !important;
48
48
  border: 0 !important;
@@ -7,6 +7,22 @@
7
7
  flex: 1 1 auto;
8
8
  }
9
9
 
10
+ .graph-editor-canvas {
11
+ color: var(--graph-editor-text);
12
+ font-family: var(--bs-body-font-family, system-ui, sans-serif);
13
+ font-size: 1rem;
14
+ line-height: 1.5;
15
+ }
16
+
17
+ .graph-editor-canvas .react-flow__edge-text {
18
+ fill: var(--graph-editor-text);
19
+ font-family: inherit;
20
+ }
21
+
22
+ .graph-editor-canvas .react-flow__edge-textbg {
23
+ fill: var(--graph-editor-bg);
24
+ }
25
+
10
26
  /* NodeResizer: invisible edge hit targets with resize cursors (square line frame stays hidden). */
11
27
  .graph-editor-canvas .react-flow__node .react-flow__resize-control {
12
28
  z-index: 5;
package/src/tokens.css CHANGED
@@ -3,11 +3,13 @@
3
3
  */
4
4
 
5
5
  .graph-editor-root,
6
+ .graph-editor-canvas-root,
6
7
  .graph-editor-toolbar {
7
8
  min-width: 0;
8
9
  }
9
10
 
10
- .graph-editor-root {
11
+ .graph-editor-root,
12
+ .graph-editor-canvas-root {
11
13
  --graph-editor-bg: var(--bs-body-bg);
12
14
  --graph-editor-text: var(--bs-body-color);
13
15
  --graph-editor-muted: var(--bs-secondary-color);