@signalsafe/tree-spec-editor-theme-bootstrap 0.3.2 → 0.3.4
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 +1 -1
- package/package.json +1 -1
- package/src/canvas/handles.css +6 -6
- package/src/canvas/react-flow.css +16 -0
- package/src/shell/choice-inspector.css +27 -0
- package/src/tokens.css +3 -1
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
package/src/canvas/handles.css
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
height: 10px;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
.graph-editor-
|
|
18
|
-
.graph-editor-
|
|
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-
|
|
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-
|
|
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-
|
|
45
|
-
.graph-editor-
|
|
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;
|
|
@@ -18,3 +18,30 @@
|
|
|
18
18
|
margin: 0;
|
|
19
19
|
border: 0;
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
.graph-editor-choice-toggle {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 0.5rem;
|
|
26
|
+
width: 100%;
|
|
27
|
+
padding: 0.25rem 0;
|
|
28
|
+
border: 0;
|
|
29
|
+
background: transparent;
|
|
30
|
+
color: inherit;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
text-align: left;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.graph-editor-choice-toggle::before {
|
|
37
|
+
content: "\25B8";
|
|
38
|
+
transition: transform 0.15s ease;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.graph-editor-choice-toggle[aria-expanded="true"] {
|
|
42
|
+
margin-bottom: 0.5rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.graph-editor-choice-toggle[aria-expanded="true"]::before {
|
|
46
|
+
transform: rotate(90deg);
|
|
47
|
+
}
|
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);
|