dsh-coding 0.1.1-rc1 → 0.1.1-rc2
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/AGENTS.md +80 -0
- package/LICENSE +21 -21
- package/README.md +96 -37
- package/cordis.patch.yml +51 -8
- package/docs/CHANGELOG.md +47 -0
- package/docs/DETAIL.md +143 -54
- package/icon.svg +6 -6
- package/lib/client/card.js +92 -4
- package/lib/client/locales.js +14 -0
- package/lib/client/styles.js +240 -240
- package/lib/client.js +114 -3
- package/lib/config.js +14 -0
- package/lib/contract.js +20 -6
- package/lib/handoff.js +37 -2
- package/lib/index.js +3 -2
- package/lib/memory.js +336 -0
- package/lib/preset.js +75 -11
- package/lib/stages.js +45 -7
- package/lib/state.js +40 -5
- package/lib/types/client/card.d.ts +5 -1
- package/lib/types/client/locales.d.ts +1 -1
- package/lib/types/config.d.ts +15 -0
- package/lib/types/handoff.d.ts +20 -0
- package/lib/types/index.d.ts +8 -2
- package/lib/types/memory.d.ts +71 -0
- package/lib/types/stages.d.ts +29 -0
- package/lib/types/state.d.ts +14 -2
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +3 -2
- package/docs/DEVELOPMENT.md +0 -189
package/lib/client/styles.js
CHANGED
|
@@ -23,246 +23,246 @@
|
|
|
23
23
|
export const STYLE_ID = 'dsh-coding/ui.css';
|
|
24
24
|
/** Plugin id recorded on the style tag for HMR ownership. */
|
|
25
25
|
const PLUGIN_ID = 'dsh-coding';
|
|
26
|
-
const CSS = `
|
|
27
|
-
/* Card: the shipped plan-card surface recipe. */
|
|
28
|
-
.dsh-coding-card {
|
|
29
|
-
box-sizing: border-box;
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: 6px;
|
|
33
|
-
margin: 0;
|
|
34
|
-
padding: 8px 10px;
|
|
35
|
-
border: 0.5px solid var(--dsw-alias-border-l1);
|
|
36
|
-
border-radius: var(--dsw-radius-lg);
|
|
37
|
-
background: var(--dsw-alias-card-fill);
|
|
38
|
-
color: var(--dsw-alias-label-primary);
|
|
39
|
-
font: inherit;
|
|
40
|
-
/* One base type for the whole card: the shipped status-row size. Without it
|
|
41
|
-
a color-only utility (verification, separator, history hint) inherits the
|
|
42
|
-
chat body size and the last row mixes two sizes. */
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
line-height: 18px;
|
|
45
|
-
}
|
|
46
|
-
.dsh-coding-row {
|
|
47
|
-
display: flex;
|
|
48
|
-
flex-wrap: wrap;
|
|
49
|
-
align-items: baseline;
|
|
50
|
-
gap: 6px;
|
|
51
|
-
margin: 0;
|
|
52
|
-
}
|
|
53
|
-
.dsh-coding-label {
|
|
54
|
-
font-size: 12px;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
line-height: 18px;
|
|
57
|
-
color: var(--dsw-alias-label-primary);
|
|
58
|
-
}
|
|
59
|
-
.dsh-coding-value {
|
|
60
|
-
font-size: 12px;
|
|
61
|
-
line-height: 18px;
|
|
62
|
-
color: var(--dsw-alias-label-secondary);
|
|
63
|
-
}
|
|
64
|
-
.dsh-coding-hint {
|
|
65
|
-
margin: 0;
|
|
66
|
-
font-size: 12px;
|
|
67
|
-
line-height: 18px;
|
|
68
|
-
color: var(--dsw-alias-label-tertiary);
|
|
69
|
-
}
|
|
70
|
-
.dsh-coding-error {
|
|
71
|
-
margin: 0;
|
|
72
|
-
font-size: 12px;
|
|
73
|
-
line-height: 18px;
|
|
74
|
-
color: var(--dsw-alias-state-error-primary);
|
|
75
|
-
}
|
|
76
|
-
.dsh-coding-actions {
|
|
77
|
-
display: flex;
|
|
78
|
-
flex-wrap: wrap;
|
|
79
|
-
gap: 6px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/* One coding command receipt: the line, then its own text. */
|
|
83
|
-
.dsh-coding-command {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
gap: 2px;
|
|
87
|
-
margin: 0;
|
|
88
|
-
font-size: 12px;
|
|
89
|
-
line-height: 18px;
|
|
90
|
-
}
|
|
91
|
-
.dsh-coding-command .dsh-coding-value,
|
|
92
|
-
.dsh-coding-command .dsh-coding-error {
|
|
93
|
-
white-space: pre-wrap;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/* First-message mode picker: the same status-row type as the card. */
|
|
97
|
-
.dsh-coding-picker {
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-wrap: wrap;
|
|
100
|
-
align-items: center;
|
|
101
|
-
gap: 6px;
|
|
102
|
-
font-size: 12px;
|
|
103
|
-
line-height: 18px;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/* Button: the shipped secondary-button recipe. */
|
|
107
|
-
.dsh-coding-button {
|
|
108
|
-
box-sizing: border-box;
|
|
109
|
-
height: 28px;
|
|
110
|
-
padding: 4px 8px;
|
|
111
|
-
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
112
|
-
border-radius: var(--dsw-radius-sm);
|
|
113
|
-
background: var(--dsw-alias-button-floating-fill);
|
|
114
|
-
color: var(--dsw-alias-label-secondary);
|
|
115
|
-
font: inherit;
|
|
116
|
-
font-size: 12px;
|
|
117
|
-
line-height: 18px;
|
|
118
|
-
cursor: pointer;
|
|
119
|
-
transition: background-color 0.12s, color 0.12s;
|
|
120
|
-
}
|
|
121
|
-
@media (hover: hover) {
|
|
122
|
-
.dsh-coding-button:hover:not(:disabled) {
|
|
123
|
-
color: var(--dsw-alias-label-primary);
|
|
124
|
-
background: var(--dsw-alias-interactive-bg-hover);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
.dsh-coding-button[aria-pressed="true"] {
|
|
128
|
-
border-color: var(--dsw-alias-state-business-primary);
|
|
129
|
-
background: var(--dsw-alias-state-business-tertiary);
|
|
130
|
-
color: var(--dsw-alias-state-business-primary);
|
|
131
|
-
}
|
|
132
|
-
.dsh-coding-button:focus-visible {
|
|
133
|
-
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
134
|
-
outline-offset: 2px;
|
|
135
|
-
}
|
|
136
|
-
.dsh-coding-button:disabled {
|
|
137
|
-
opacity: 0.6;
|
|
138
|
-
cursor: default;
|
|
139
|
-
}
|
|
140
|
-
/* The page's primary action: one step up from the card's compact button. */
|
|
141
|
-
.dsh-coding-button-lg {
|
|
142
|
-
height: 40px;
|
|
143
|
-
padding: 8px 20px;
|
|
144
|
-
border-radius: var(--dsw-radius-md);
|
|
145
|
-
font-size: 14px;
|
|
146
|
-
line-height: 20px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/* Stage path: plain text at the shipped caption size, never a chip. */
|
|
150
|
-
.dsh-coding-stage {
|
|
151
|
-
font-size: 12px;
|
|
152
|
-
line-height: 18px;
|
|
153
|
-
color: var(--dsw-alias-label-tertiary);
|
|
154
|
-
}
|
|
155
|
-
.dsh-coding-stage[data-current="true"] {
|
|
156
|
-
color: var(--dsw-alias-label-primary);
|
|
157
|
-
font-weight: 500;
|
|
158
|
-
}
|
|
159
|
-
.dsh-coding-stage[data-done="true"] {
|
|
160
|
-
color: var(--dsw-alias-label-secondary);
|
|
161
|
-
}
|
|
162
|
-
.dsh-coding-arrow {
|
|
163
|
-
font-size: 12px;
|
|
164
|
-
line-height: 18px;
|
|
165
|
-
color: var(--dsw-alias-label-caption);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* Capsule: one status line in the transcript, same type as the rows around it. */
|
|
169
|
-
.dsh-coding-capsule {
|
|
170
|
-
display: flex;
|
|
171
|
-
flex-wrap: wrap;
|
|
172
|
-
align-items: baseline;
|
|
173
|
-
gap: 6px;
|
|
174
|
-
padding: 2px 0;
|
|
175
|
-
font: inherit;
|
|
176
|
-
font-size: 12px;
|
|
177
|
-
line-height: 18px;
|
|
178
|
-
color: var(--dsw-alias-label-secondary);
|
|
179
|
-
}
|
|
180
|
-
.dsh-coding-capsule .dsh-coding-stage,
|
|
181
|
-
.dsh-coding-capsule .dsh-coding-arrow,
|
|
182
|
-
.dsh-coding-capsule .dsh-coding-muted,
|
|
183
|
-
.dsh-coding-capsule .dsh-coding-faint,
|
|
184
|
-
.dsh-coding-capsule .dsh-coding-success,
|
|
185
|
-
.dsh-coding-capsule .dsh-coding-warn {
|
|
186
|
-
font-size: inherit;
|
|
187
|
-
line-height: inherit;
|
|
188
|
-
}
|
|
189
|
-
/* Color utilities also state the type role, so a bare span never inherits a
|
|
190
|
-
different size from its container. */
|
|
191
|
-
.dsh-coding-muted,
|
|
192
|
-
.dsh-coding-faint,
|
|
193
|
-
.dsh-coding-success,
|
|
194
|
-
.dsh-coding-warn {
|
|
195
|
-
font-size: 12px;
|
|
196
|
-
line-height: 18px;
|
|
197
|
-
}
|
|
198
|
-
.dsh-coding-muted { color: var(--dsw-alias-label-secondary); }
|
|
199
|
-
.dsh-coding-faint { color: var(--dsw-alias-label-tertiary); }
|
|
200
|
-
/* The raw success token is a saturated green-500; at 12px on the card it reads
|
|
201
|
-
too bright. Mixing in the theme's own label color keeps it green while giving
|
|
202
|
-
light themes a deeper shade and dark themes a slightly lighter one. */
|
|
203
|
-
.dsh-coding-success {
|
|
204
|
-
color: color-mix(in srgb, var(--dsw-alias-state-success-primary) 72%, var(--dsw-alias-label-primary));
|
|
205
|
-
}
|
|
206
|
-
.dsh-coding-warn { color: var(--dsw-alias-state-warn-primary); }
|
|
207
|
-
|
|
208
|
-
/* Configuration page: shipped field and control recipes. */
|
|
209
|
-
.dsh-coding-form {
|
|
210
|
-
display: flex;
|
|
211
|
-
flex-direction: column;
|
|
212
|
-
gap: 16px;
|
|
213
|
-
padding: 4px 0;
|
|
214
|
-
font: inherit;
|
|
215
|
-
}
|
|
216
|
-
.dsh-coding-field {
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
gap: 6px;
|
|
220
|
-
}
|
|
221
|
-
.dsh-coding-field > label {
|
|
222
|
-
font-size: 13px;
|
|
223
|
-
line-height: 20px;
|
|
224
|
-
color: var(--dsw-alias-label-primary);
|
|
225
|
-
}
|
|
226
|
-
.dsh-coding-field > .dsh-coding-hint {
|
|
227
|
-
font-size: 12px;
|
|
228
|
-
line-height: 18px;
|
|
229
|
-
}
|
|
230
|
-
.dsh-coding-input {
|
|
231
|
-
box-sizing: border-box;
|
|
232
|
-
width: 100%;
|
|
233
|
-
height: 40px;
|
|
234
|
-
padding: 0 14px;
|
|
235
|
-
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
236
|
-
border-radius: var(--dsw-radius-md);
|
|
237
|
-
outline: none;
|
|
238
|
-
background: var(--dsw-alias-bg-layer-3);
|
|
239
|
-
font: inherit;
|
|
240
|
-
font-size: 13px;
|
|
241
|
-
color: var(--dsw-alias-label-primary);
|
|
242
|
-
}
|
|
243
|
-
.dsh-coding-input:focus {
|
|
244
|
-
border-color: var(--dsw-alias-state-business-primary);
|
|
245
|
-
box-shadow: inset 0 0 0 0.5px var(--dsw-alias-state-business-primary);
|
|
246
|
-
}
|
|
247
|
-
.dsh-coding-input-warn {
|
|
248
|
-
border-color: var(--dsw-alias-state-warn-primary);
|
|
249
|
-
box-shadow: inset 0 0 0 0.5px var(--dsw-alias-state-warn-primary);
|
|
250
|
-
}
|
|
251
|
-
.dsh-coding-notice { margin: 0; font-size: 12px; line-height: 18px; }
|
|
252
|
-
.dsh-coding-notice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
253
|
-
.dsh-coding-mono {
|
|
254
|
-
font-family: var(--ds-font-family-code);
|
|
255
|
-
font-size: 12px;
|
|
256
|
-
line-height: 18px;
|
|
257
|
-
color: var(--dsw-alias-label-secondary);
|
|
258
|
-
white-space: pre-wrap;
|
|
259
|
-
}
|
|
260
|
-
.dsh-coding-footer {
|
|
261
|
-
display: flex;
|
|
262
|
-
flex-wrap: wrap;
|
|
263
|
-
align-items: center;
|
|
264
|
-
gap: 10px;
|
|
265
|
-
}
|
|
26
|
+
const CSS = `
|
|
27
|
+
/* Card: the shipped plan-card surface recipe. */
|
|
28
|
+
.dsh-coding-card {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
gap: 6px;
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 8px 10px;
|
|
35
|
+
border: 0.5px solid var(--dsw-alias-border-l1);
|
|
36
|
+
border-radius: var(--dsw-radius-lg);
|
|
37
|
+
background: var(--dsw-alias-card-fill);
|
|
38
|
+
color: var(--dsw-alias-label-primary);
|
|
39
|
+
font: inherit;
|
|
40
|
+
/* One base type for the whole card: the shipped status-row size. Without it
|
|
41
|
+
a color-only utility (verification, separator, history hint) inherits the
|
|
42
|
+
chat body size and the last row mixes two sizes. */
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
line-height: 18px;
|
|
45
|
+
}
|
|
46
|
+
.dsh-coding-row {
|
|
47
|
+
display: flex;
|
|
48
|
+
flex-wrap: wrap;
|
|
49
|
+
align-items: baseline;
|
|
50
|
+
gap: 6px;
|
|
51
|
+
margin: 0;
|
|
52
|
+
}
|
|
53
|
+
.dsh-coding-label {
|
|
54
|
+
font-size: 12px;
|
|
55
|
+
font-weight: 500;
|
|
56
|
+
line-height: 18px;
|
|
57
|
+
color: var(--dsw-alias-label-primary);
|
|
58
|
+
}
|
|
59
|
+
.dsh-coding-value {
|
|
60
|
+
font-size: 12px;
|
|
61
|
+
line-height: 18px;
|
|
62
|
+
color: var(--dsw-alias-label-secondary);
|
|
63
|
+
}
|
|
64
|
+
.dsh-coding-hint {
|
|
65
|
+
margin: 0;
|
|
66
|
+
font-size: 12px;
|
|
67
|
+
line-height: 18px;
|
|
68
|
+
color: var(--dsw-alias-label-tertiary);
|
|
69
|
+
}
|
|
70
|
+
.dsh-coding-error {
|
|
71
|
+
margin: 0;
|
|
72
|
+
font-size: 12px;
|
|
73
|
+
line-height: 18px;
|
|
74
|
+
color: var(--dsw-alias-state-error-primary);
|
|
75
|
+
}
|
|
76
|
+
.dsh-coding-actions {
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-wrap: wrap;
|
|
79
|
+
gap: 6px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* One coding command receipt: the line, then its own text. */
|
|
83
|
+
.dsh-coding-command {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: 2px;
|
|
87
|
+
margin: 0;
|
|
88
|
+
font-size: 12px;
|
|
89
|
+
line-height: 18px;
|
|
90
|
+
}
|
|
91
|
+
.dsh-coding-command .dsh-coding-value,
|
|
92
|
+
.dsh-coding-command .dsh-coding-error {
|
|
93
|
+
white-space: pre-wrap;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* First-message mode picker: the same status-row type as the card. */
|
|
97
|
+
.dsh-coding-picker {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
align-items: center;
|
|
101
|
+
gap: 6px;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 18px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/* Button: the shipped secondary-button recipe. */
|
|
107
|
+
.dsh-coding-button {
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
height: 28px;
|
|
110
|
+
padding: 4px 8px;
|
|
111
|
+
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
112
|
+
border-radius: var(--dsw-radius-sm);
|
|
113
|
+
background: var(--dsw-alias-button-floating-fill);
|
|
114
|
+
color: var(--dsw-alias-label-secondary);
|
|
115
|
+
font: inherit;
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
line-height: 18px;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
transition: background-color 0.12s, color 0.12s;
|
|
120
|
+
}
|
|
121
|
+
@media (hover: hover) {
|
|
122
|
+
.dsh-coding-button:hover:not(:disabled) {
|
|
123
|
+
color: var(--dsw-alias-label-primary);
|
|
124
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.dsh-coding-button[aria-pressed="true"] {
|
|
128
|
+
border-color: var(--dsw-alias-state-business-primary);
|
|
129
|
+
background: var(--dsw-alias-state-business-tertiary);
|
|
130
|
+
color: var(--dsw-alias-state-business-primary);
|
|
131
|
+
}
|
|
132
|
+
.dsh-coding-button:focus-visible {
|
|
133
|
+
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
134
|
+
outline-offset: 2px;
|
|
135
|
+
}
|
|
136
|
+
.dsh-coding-button:disabled {
|
|
137
|
+
opacity: 0.6;
|
|
138
|
+
cursor: default;
|
|
139
|
+
}
|
|
140
|
+
/* The page's primary action: one step up from the card's compact button. */
|
|
141
|
+
.dsh-coding-button-lg {
|
|
142
|
+
height: 40px;
|
|
143
|
+
padding: 8px 20px;
|
|
144
|
+
border-radius: var(--dsw-radius-md);
|
|
145
|
+
font-size: 14px;
|
|
146
|
+
line-height: 20px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* Stage path: plain text at the shipped caption size, never a chip. */
|
|
150
|
+
.dsh-coding-stage {
|
|
151
|
+
font-size: 12px;
|
|
152
|
+
line-height: 18px;
|
|
153
|
+
color: var(--dsw-alias-label-tertiary);
|
|
154
|
+
}
|
|
155
|
+
.dsh-coding-stage[data-current="true"] {
|
|
156
|
+
color: var(--dsw-alias-label-primary);
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
}
|
|
159
|
+
.dsh-coding-stage[data-done="true"] {
|
|
160
|
+
color: var(--dsw-alias-label-secondary);
|
|
161
|
+
}
|
|
162
|
+
.dsh-coding-arrow {
|
|
163
|
+
font-size: 12px;
|
|
164
|
+
line-height: 18px;
|
|
165
|
+
color: var(--dsw-alias-label-caption);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/* Capsule: one status line in the transcript, same type as the rows around it. */
|
|
169
|
+
.dsh-coding-capsule {
|
|
170
|
+
display: flex;
|
|
171
|
+
flex-wrap: wrap;
|
|
172
|
+
align-items: baseline;
|
|
173
|
+
gap: 6px;
|
|
174
|
+
padding: 2px 0;
|
|
175
|
+
font: inherit;
|
|
176
|
+
font-size: 12px;
|
|
177
|
+
line-height: 18px;
|
|
178
|
+
color: var(--dsw-alias-label-secondary);
|
|
179
|
+
}
|
|
180
|
+
.dsh-coding-capsule .dsh-coding-stage,
|
|
181
|
+
.dsh-coding-capsule .dsh-coding-arrow,
|
|
182
|
+
.dsh-coding-capsule .dsh-coding-muted,
|
|
183
|
+
.dsh-coding-capsule .dsh-coding-faint,
|
|
184
|
+
.dsh-coding-capsule .dsh-coding-success,
|
|
185
|
+
.dsh-coding-capsule .dsh-coding-warn {
|
|
186
|
+
font-size: inherit;
|
|
187
|
+
line-height: inherit;
|
|
188
|
+
}
|
|
189
|
+
/* Color utilities also state the type role, so a bare span never inherits a
|
|
190
|
+
different size from its container. */
|
|
191
|
+
.dsh-coding-muted,
|
|
192
|
+
.dsh-coding-faint,
|
|
193
|
+
.dsh-coding-success,
|
|
194
|
+
.dsh-coding-warn {
|
|
195
|
+
font-size: 12px;
|
|
196
|
+
line-height: 18px;
|
|
197
|
+
}
|
|
198
|
+
.dsh-coding-muted { color: var(--dsw-alias-label-secondary); }
|
|
199
|
+
.dsh-coding-faint { color: var(--dsw-alias-label-tertiary); }
|
|
200
|
+
/* The raw success token is a saturated green-500; at 12px on the card it reads
|
|
201
|
+
too bright. Mixing in the theme's own label color keeps it green while giving
|
|
202
|
+
light themes a deeper shade and dark themes a slightly lighter one. */
|
|
203
|
+
.dsh-coding-success {
|
|
204
|
+
color: color-mix(in srgb, var(--dsw-alias-state-success-primary) 72%, var(--dsw-alias-label-primary));
|
|
205
|
+
}
|
|
206
|
+
.dsh-coding-warn { color: var(--dsw-alias-state-warn-primary); }
|
|
207
|
+
|
|
208
|
+
/* Configuration page: shipped field and control recipes. */
|
|
209
|
+
.dsh-coding-form {
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
gap: 16px;
|
|
213
|
+
padding: 4px 0;
|
|
214
|
+
font: inherit;
|
|
215
|
+
}
|
|
216
|
+
.dsh-coding-field {
|
|
217
|
+
display: flex;
|
|
218
|
+
flex-direction: column;
|
|
219
|
+
gap: 6px;
|
|
220
|
+
}
|
|
221
|
+
.dsh-coding-field > label {
|
|
222
|
+
font-size: 13px;
|
|
223
|
+
line-height: 20px;
|
|
224
|
+
color: var(--dsw-alias-label-primary);
|
|
225
|
+
}
|
|
226
|
+
.dsh-coding-field > .dsh-coding-hint {
|
|
227
|
+
font-size: 12px;
|
|
228
|
+
line-height: 18px;
|
|
229
|
+
}
|
|
230
|
+
.dsh-coding-input {
|
|
231
|
+
box-sizing: border-box;
|
|
232
|
+
width: 100%;
|
|
233
|
+
height: 40px;
|
|
234
|
+
padding: 0 14px;
|
|
235
|
+
border: 0.5px solid var(--dsw-alias-border-l4);
|
|
236
|
+
border-radius: var(--dsw-radius-md);
|
|
237
|
+
outline: none;
|
|
238
|
+
background: var(--dsw-alias-bg-layer-3);
|
|
239
|
+
font: inherit;
|
|
240
|
+
font-size: 13px;
|
|
241
|
+
color: var(--dsw-alias-label-primary);
|
|
242
|
+
}
|
|
243
|
+
.dsh-coding-input:focus {
|
|
244
|
+
border-color: var(--dsw-alias-state-business-primary);
|
|
245
|
+
box-shadow: inset 0 0 0 0.5px var(--dsw-alias-state-business-primary);
|
|
246
|
+
}
|
|
247
|
+
.dsh-coding-input-warn {
|
|
248
|
+
border-color: var(--dsw-alias-state-warn-primary);
|
|
249
|
+
box-shadow: inset 0 0 0 0.5px var(--dsw-alias-state-warn-primary);
|
|
250
|
+
}
|
|
251
|
+
.dsh-coding-notice { margin: 0; font-size: 12px; line-height: 18px; }
|
|
252
|
+
.dsh-coding-notice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
|
|
253
|
+
.dsh-coding-mono {
|
|
254
|
+
font-family: var(--ds-font-family-code);
|
|
255
|
+
font-size: 12px;
|
|
256
|
+
line-height: 18px;
|
|
257
|
+
color: var(--dsw-alias-label-secondary);
|
|
258
|
+
white-space: pre-wrap;
|
|
259
|
+
}
|
|
260
|
+
.dsh-coding-footer {
|
|
261
|
+
display: flex;
|
|
262
|
+
flex-wrap: wrap;
|
|
263
|
+
align-items: center;
|
|
264
|
+
gap: 10px;
|
|
265
|
+
}
|
|
266
266
|
`;
|
|
267
267
|
/**
|
|
268
268
|
* Install the bundle stylesheet once per client generation.
|