@signalsafe/tree-spec-editor-theme-bootstrap 0.2.0 → 0.3.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/README.md +3 -2
- package/package.json +1 -1
- package/src/shell/icons.css +293 -0
- package/styles.css +1 -0
package/README.md
CHANGED
|
@@ -15,8 +15,9 @@ 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
|
|
19
|
-
- **
|
|
18
|
+
- **Slice 2:** canvas and React Flow styling (`graph-editor-canvas*`, node cards, choice rows, handles).
|
|
19
|
+
- **Slice 3 (current):** Bootstrap Icons via semantic icon/action classes (`graph-editor-btn--toolbar-add`, panel add/collapse/delete, choice action icons).
|
|
20
|
+
- **Not included yet:** DeliveryPlus page/read-only/injected-form bridges.
|
|
20
21
|
|
|
21
22
|
## Requirements
|
|
22
23
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bootstrap Icons via ::before on semantic icon/action classes from @signalsafe/tree-spec-editor@0.3.2+.
|
|
3
|
+
* Requires bootstrap-icons font in the host app.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
.graph-editor-root .graph-editor-btn--toolbar-add {
|
|
7
|
+
position: relative;
|
|
8
|
+
padding-left: 1.625rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.graph-editor-root summary.graph-editor-btn--toolbar-add,
|
|
12
|
+
.graph-editor-root .graph-editor-btn.graph-editor-btn--toolbar-add {
|
|
13
|
+
position: relative;
|
|
14
|
+
padding-left: 1.625rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.graph-editor-root summary.graph-editor-btn--toolbar-add::before,
|
|
18
|
+
.graph-editor-root .graph-editor-btn.graph-editor-btn--toolbar-add::before {
|
|
19
|
+
content: "\f4fe";
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0.375rem;
|
|
22
|
+
top: 50%;
|
|
23
|
+
transform: translateY(-50%);
|
|
24
|
+
font-family: bootstrap-icons, sans-serif !important;
|
|
25
|
+
font-size: 0.875rem;
|
|
26
|
+
font-weight: normal !important;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
color: var(--graph-editor-accent);
|
|
29
|
+
-webkit-font-smoothing: antialiased;
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.graph-editor-root summary.graph-editor-btn--toolbar-add.graph-editor-btn--disabled::before,
|
|
34
|
+
.graph-editor-root .graph-editor-btn.graph-editor-btn--toolbar-add.graph-editor-btn--disabled::before,
|
|
35
|
+
.graph-editor-root summary.graph-editor-btn--toolbar-add:disabled::before,
|
|
36
|
+
.graph-editor-root .graph-editor-btn.graph-editor-btn--toolbar-add:disabled::before {
|
|
37
|
+
color: var(--graph-editor-muted);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-node,
|
|
41
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice,
|
|
42
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse,
|
|
43
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand {
|
|
44
|
+
position: relative;
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
inline-size: var(--graph-editor-icon-button-size);
|
|
49
|
+
block-size: var(--graph-editor-icon-button-size);
|
|
50
|
+
min-inline-size: var(--graph-editor-icon-button-size);
|
|
51
|
+
min-block-size: var(--graph-editor-icon-button-size);
|
|
52
|
+
padding: 0 !important;
|
|
53
|
+
margin: 0;
|
|
54
|
+
border: 0 !important;
|
|
55
|
+
background: transparent !important;
|
|
56
|
+
box-shadow: none !important;
|
|
57
|
+
color: transparent !important;
|
|
58
|
+
font-size: 0 !important;
|
|
59
|
+
line-height: 0 !important;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
flex-shrink: 0;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse,
|
|
66
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand {
|
|
67
|
+
margin-inline-start: 0.375rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-node::before,
|
|
71
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice::before,
|
|
72
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse::before,
|
|
73
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand::before {
|
|
74
|
+
position: absolute;
|
|
75
|
+
inset: 0;
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
font-family: bootstrap-icons, sans-serif !important;
|
|
80
|
+
font-style: normal;
|
|
81
|
+
font-weight: normal !important;
|
|
82
|
+
font-variant: normal;
|
|
83
|
+
text-transform: none;
|
|
84
|
+
text-indent: 0;
|
|
85
|
+
font-size: var(--graph-editor-icon-size);
|
|
86
|
+
line-height: 1;
|
|
87
|
+
-webkit-font-smoothing: antialiased;
|
|
88
|
+
-moz-osx-font-smoothing: grayscale;
|
|
89
|
+
color: var(--graph-editor-muted);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-node::before,
|
|
93
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice::before {
|
|
94
|
+
content: "\f4fe";
|
|
95
|
+
color: var(--graph-editor-accent);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice.graph-editor-btn--disabled::before,
|
|
99
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice:disabled::before {
|
|
100
|
+
color: var(--graph-editor-muted);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse::before {
|
|
104
|
+
content: "\f235";
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand::before {
|
|
108
|
+
content: "\f229";
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse:hover:not(:disabled):not(.graph-editor-btn--disabled)::before,
|
|
112
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand:hover:not(:disabled):not(.graph-editor-btn--disabled)::before {
|
|
113
|
+
color: var(--graph-editor-text);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-node:hover:not(:disabled):not(.graph-editor-btn--disabled)::before,
|
|
117
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice:hover:not(:disabled):not(.graph-editor-btn--disabled)::before {
|
|
118
|
+
color: var(--graph-editor-accent);
|
|
119
|
+
opacity: 0.85;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-collapse:hover:not(:disabled):not(.graph-editor-btn--disabled),
|
|
123
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-expand:hover:not(:disabled):not(.graph-editor-btn--disabled),
|
|
124
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-node:hover:not(:disabled):not(.graph-editor-btn--disabled),
|
|
125
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--panel-add-choice:hover:not(:disabled):not(.graph-editor-btn--disabled) {
|
|
126
|
+
background: transparent !important;
|
|
127
|
+
border: none !important;
|
|
128
|
+
opacity: 0.85;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node,
|
|
132
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node {
|
|
133
|
+
position: relative;
|
|
134
|
+
display: inline-flex;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: center;
|
|
137
|
+
inline-size: var(--graph-editor-icon-button-size);
|
|
138
|
+
block-size: var(--graph-editor-icon-button-size);
|
|
139
|
+
min-inline-size: var(--graph-editor-icon-button-size);
|
|
140
|
+
min-block-size: var(--graph-editor-icon-button-size);
|
|
141
|
+
padding: 0 !important;
|
|
142
|
+
margin: 0;
|
|
143
|
+
border: 0 !important;
|
|
144
|
+
background: transparent !important;
|
|
145
|
+
box-shadow: none !important;
|
|
146
|
+
color: transparent !important;
|
|
147
|
+
font-size: 0 !important;
|
|
148
|
+
line-height: 0 !important;
|
|
149
|
+
overflow: hidden;
|
|
150
|
+
flex-shrink: 0;
|
|
151
|
+
cursor: pointer;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node {
|
|
155
|
+
align-self: flex-start;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node::before,
|
|
159
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node::before {
|
|
160
|
+
position: absolute;
|
|
161
|
+
inset: 0;
|
|
162
|
+
display: flex;
|
|
163
|
+
align-items: center;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
font-family: bootstrap-icons, sans-serif !important;
|
|
166
|
+
font-style: normal;
|
|
167
|
+
font-weight: normal !important;
|
|
168
|
+
font-variant: normal;
|
|
169
|
+
text-transform: none;
|
|
170
|
+
text-indent: 0;
|
|
171
|
+
content: "\f5de";
|
|
172
|
+
font-size: var(--graph-editor-icon-size);
|
|
173
|
+
line-height: 1;
|
|
174
|
+
-webkit-font-smoothing: antialiased;
|
|
175
|
+
-moz-osx-font-smoothing: grayscale;
|
|
176
|
+
color: var(--graph-editor-danger);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node:hover:not(:disabled):not(.graph-editor-btn--disabled)::before,
|
|
180
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node:hover:not(:disabled):not(.graph-editor-btn--disabled)::before {
|
|
181
|
+
color: var(--graph-editor-danger);
|
|
182
|
+
opacity: 0.85;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node:disabled::before,
|
|
186
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node.graph-editor-btn--disabled::before,
|
|
187
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node:disabled::before,
|
|
188
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node.graph-editor-btn--disabled::before {
|
|
189
|
+
color: var(--graph-editor-muted);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node:disabled,
|
|
193
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node.graph-editor-btn--disabled,
|
|
194
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node:disabled,
|
|
195
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node.graph-editor-btn--disabled {
|
|
196
|
+
opacity: 0.55;
|
|
197
|
+
cursor: not-allowed;
|
|
198
|
+
pointer-events: none;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node.graph-editor-btn--disabled:hover,
|
|
202
|
+
.graph-editor-root .graph-editor-list .graph-editor-btn--delete-node:disabled:hover,
|
|
203
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node.graph-editor-btn--disabled:hover,
|
|
204
|
+
.graph-editor-root .graph-editor-card__header .graph-editor-btn--delete-node:disabled:hover {
|
|
205
|
+
background: transparent !important;
|
|
206
|
+
opacity: 0.55;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.graph-editor-root .graph-editor-action-icon {
|
|
210
|
+
position: relative;
|
|
211
|
+
display: inline-flex;
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
inline-size: var(--graph-editor-icon-button-size);
|
|
215
|
+
block-size: var(--graph-editor-icon-button-size);
|
|
216
|
+
min-inline-size: var(--graph-editor-icon-button-size);
|
|
217
|
+
min-block-size: var(--graph-editor-icon-button-size);
|
|
218
|
+
padding: 0;
|
|
219
|
+
margin: 0;
|
|
220
|
+
border: none;
|
|
221
|
+
background: transparent;
|
|
222
|
+
font-size: 0;
|
|
223
|
+
line-height: 0;
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
cursor: pointer;
|
|
226
|
+
flex-shrink: 0;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.graph-editor-root .graph-editor-action-icon::before {
|
|
230
|
+
position: absolute;
|
|
231
|
+
inset: 0;
|
|
232
|
+
display: flex;
|
|
233
|
+
align-items: center;
|
|
234
|
+
justify-content: center;
|
|
235
|
+
font-family: bootstrap-icons, sans-serif !important;
|
|
236
|
+
font-style: normal;
|
|
237
|
+
font-weight: normal !important;
|
|
238
|
+
font-variant: normal;
|
|
239
|
+
text-transform: none;
|
|
240
|
+
font-size: var(--graph-editor-icon-size);
|
|
241
|
+
line-height: 1;
|
|
242
|
+
-webkit-font-smoothing: antialiased;
|
|
243
|
+
-moz-osx-font-smoothing: grayscale;
|
|
244
|
+
color: var(--graph-editor-muted);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.graph-editor-root .graph-editor-action-icon--move-up::before {
|
|
248
|
+
content: "\f148";
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.graph-editor-root .graph-editor-action-icon--move-down::before {
|
|
252
|
+
content: "\f128";
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.graph-editor-root .graph-editor-action-icon--delete::before,
|
|
256
|
+
.graph-editor-root .graph-editor-action-icon--danger::before {
|
|
257
|
+
content: "\f5de";
|
|
258
|
+
color: var(--graph-editor-danger);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.graph-editor-root .graph-editor-action-icon--delete.graph-editor-action-icon--disabled::before,
|
|
262
|
+
.graph-editor-root .graph-editor-action-icon--danger.graph-editor-action-icon--disabled::before {
|
|
263
|
+
color: var(--graph-editor-muted);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.graph-editor-root .graph-editor-action-icon:hover:not(.graph-editor-action-icon--disabled) {
|
|
267
|
+
opacity: 0.85;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.graph-editor-root .graph-editor-action-icon--disabled {
|
|
271
|
+
opacity: 0.55;
|
|
272
|
+
cursor: not-allowed;
|
|
273
|
+
pointer-events: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.graph-editor-list__item--with-delete > .graph-editor-flex--between {
|
|
277
|
+
align-items: flex-start;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.graph-editor-list__item--selected .graph-editor-btn--delete-node::before,
|
|
281
|
+
.graph-editor-list__item--selected .graph-editor-btn--icon.graph-editor-btn--danger::before {
|
|
282
|
+
color: var(--graph-editor-danger) !important;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.graph-editor-list__item--selected .graph-editor-btn--delete-node:disabled::before,
|
|
286
|
+
.graph-editor-list__item--selected .graph-editor-btn--delete-node.graph-editor-btn--disabled::before {
|
|
287
|
+
color: var(--graph-editor-muted) !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.graph-editor-empty-state {
|
|
291
|
+
font-size: 0.875rem;
|
|
292
|
+
text-align: start;
|
|
293
|
+
}
|
package/styles.css
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
@import './src/shell/panels.css';
|
|
18
18
|
@import './src/shell/dropdowns.css';
|
|
19
19
|
@import './src/shell/selection.css';
|
|
20
|
+
@import './src/shell/icons.css';
|
|
20
21
|
@import './src/canvas/react-flow.css';
|
|
21
22
|
@import './src/canvas/nodes.css';
|
|
22
23
|
@import './src/canvas/choices.css';
|