dsh-better-ask-user 0.3.1 → 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/lib/client.js +287 -148
- package/package.json +2 -2
- package/src/client/AskHistoryRow.module.css +9 -6
- package/src/client/AskHistoryRow.tsx +51 -23
- package/src/client/PlanReviewPanel.module.css +35 -54
- package/src/client/QuestionComposer.module.css +50 -82
- package/src/client/QuestionComposer.tsx +12 -15
- package/src/client/QuestionReplyView.module.css +18 -19
- package/src/client/QuestionWaitBar.module.css +30 -39
- package/src/client/QuestionWaitBar.tsx +2 -0
- package/src/client/index.ts +37 -1
- package/src/client/locales.ts +8 -2
- package/src/client/settings-locales.ts +37 -27
- package/src/client/settings.module.css +94 -91
- package/src/client/settings.tsx +142 -65
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-better-ask-user",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"description": "Independent ask_user_question plugin: configurable wait, input-extended countdown, markdown/mobile card, native or default timeout behavior, and PTC deadline exemption.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -78,4 +78,4 @@
|
|
|
78
78
|
"registry": "https://registry.npmjs.org/",
|
|
79
79
|
"access": "public"
|
|
80
80
|
}
|
|
81
|
-
}
|
|
81
|
+
}
|
|
@@ -2,22 +2,25 @@
|
|
|
2
2
|
--cfg-line: var(--dsw-alias-border-l2);
|
|
3
3
|
--cfg-ink: var(--dsw-alias-label-primary);
|
|
4
4
|
--cfg-muted: var(--dsw-alias-label-secondary);
|
|
5
|
-
--cfg-accent: #3388bb;
|
|
6
|
-
--cfg-accent-text:
|
|
5
|
+
--cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
|
|
6
|
+
--cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
|
|
7
7
|
--cfg-hover: var(--dsw-alias-interactive-bg-hover);
|
|
8
8
|
min-width: 0;
|
|
9
9
|
}
|
|
10
10
|
.row { appearance: none; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; min-width: 0; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--cfg-muted); font: inherit; line-height: 20px; text-align: left; }
|
|
11
|
-
button.row { cursor: pointer;
|
|
11
|
+
button.row { cursor: pointer; }
|
|
12
12
|
button.row:hover { background: var(--cfg-hover); color: var(--cfg-ink); }
|
|
13
13
|
button.row:active { background: color-mix(in srgb, var(--cfg-accent) 9%, transparent); }
|
|
14
14
|
button.row:focus-visible { outline: 2px solid var(--cfg-accent); outline-offset: -2px; }
|
|
15
15
|
.icon { display: inline-flex; flex: none; color: var(--dsw-alias-label-tertiary); }
|
|
16
16
|
.icon svg { width: 14px; height: 14px; }
|
|
17
|
-
.summary { min-width: 0; flex: 1; overflow: hidden;
|
|
18
|
-
.open { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--cfg-muted); font-size:
|
|
17
|
+
.summary { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
18
|
+
.open { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--cfg-muted); font-size: 12px; }
|
|
19
|
+
.state { flex: none; color: var(--dsw-alias-label-tertiary); font-size: 12px; }
|
|
19
20
|
.error { display: block; padding: 4px 8px 4px 30px; color: var(--dsw-alias-state-error-primary); font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
|
|
21
|
+
@media (max-width: 640px) { .row { min-height: 44px; align-items: flex-start; padding-block: 10px; } .summary { white-space: normal; overflow-wrap: anywhere; } .open { align-self: center; } }
|
|
20
22
|
@media (pointer: coarse) { .row { min-height: 44px; } }
|
|
21
23
|
@media (prefers-reduced-motion: reduce) { button.row { transition: none; } }
|
|
22
24
|
|
|
23
|
-
[data-ds-dark-theme] .frame { --cfg-accent: #4eb0e8; --cfg-accent-text:
|
|
25
|
+
[data-ds-dark-theme] .frame { --cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8); --cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink)); }
|
|
26
|
+
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
/** History row for ask_user_question: compact summary plus a
|
|
1
|
+
/** History row for ask_user_question: compact summary plus a live or review action. */
|
|
2
2
|
import { useState } from 'react'
|
|
3
3
|
import { IconChevronRightOutlineRegular, IconQuestionOutlineRegular } from '@deepseek-ai/dsh-client-ui-primitives'
|
|
4
|
-
import type { PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
|
|
4
|
+
import type { HostObservable, InjectFace, PropsLocale } from '@deepseek-ai/dsh-client-ui-slots'
|
|
5
5
|
import type { ToolCallViewProps, UserQuestionRecord } from '@deepseek-ai/dsh-client-ui-tool/client'
|
|
6
6
|
import type { AskUserQuestionItem } from '@deepseek-ai/dsh-user-questions/types'
|
|
7
7
|
import css from './AskHistoryRow.module.css'
|
|
8
8
|
|
|
9
|
-
type AskHistoryRowProps = ToolCallViewProps & PropsLocale<'question'> & {
|
|
9
|
+
type AskHistoryRowProps = ToolCallViewProps & PropsLocale<'question'> & InjectFace<{
|
|
10
10
|
revealPanel: (callId: string) => boolean
|
|
11
11
|
reviewPanel: (callId: string, record: UserQuestionRecord) => boolean
|
|
12
|
-
}
|
|
12
|
+
keyedHooks: { questionPanelLive: (callId: string) => HostObservable<boolean> }
|
|
13
|
+
}>
|
|
13
14
|
|
|
14
15
|
interface AnswerEntry {
|
|
15
16
|
id: string
|
|
@@ -85,44 +86,71 @@ function answerList(text: string | undefined): AnswerEntry[] | undefined {
|
|
|
85
86
|
return answers
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
89
|
+
/**
|
|
90
|
+
* The compact history re-entry for one ask call, top-level or nested.
|
|
91
|
+
*
|
|
92
|
+
* The action follows what is actually reachable, not a guess from the result
|
|
93
|
+
* shape: a card still in the plugin registry opens the live panel, and a
|
|
94
|
+
* settled call opens a read-only review built from its recorded answers. A
|
|
95
|
+
* finished question therefore stays inspectable even when it recorded no
|
|
96
|
+
* answers, and never offers a reopen that cannot succeed.
|
|
97
|
+
*/
|
|
95
98
|
export function AskHistoryRow({
|
|
96
99
|
callId,
|
|
97
100
|
block,
|
|
98
101
|
phase,
|
|
102
|
+
useProjection,
|
|
103
|
+
useQuestionPanelLive,
|
|
99
104
|
revealPanel,
|
|
100
105
|
reviewPanel,
|
|
101
106
|
t,
|
|
102
107
|
}: AskHistoryRowProps): React.JSX.Element {
|
|
103
108
|
const [failedAction, setFailedAction] = useState<string | null>(null)
|
|
104
|
-
const argsRaw = 'kind' in block ? block.call?.argsRaw ?? '' : block.argsRaw
|
|
109
|
+
const argsRaw = 'kind' in block ? block.call?.argsRaw ?? '' : 'argsRaw' in block ? block.argsRaw : ''
|
|
105
110
|
const output = 'kind' in block ? resultText(block.content) : undefined
|
|
106
111
|
const questions = questionList(argsRaw)
|
|
107
|
-
|
|
108
|
-
const
|
|
112
|
+
// A late reply settles through the projection, not through a second tool result.
|
|
113
|
+
const settled = useProjection('userQuestions', view => view?.settled.find(row => row.callId === callId))
|
|
114
|
+
const answers = settled?.answers ?? answerList(output) ?? []
|
|
115
|
+
// Every settled call with readable questions can be reviewed; an empty answer
|
|
116
|
+
// batch still shows the question and its "no answer recorded" state.
|
|
117
|
+
const record: UserQuestionRecord | undefined = questions !== undefined && phase === 'result'
|
|
109
118
|
? { questions, answers }
|
|
110
119
|
: undefined
|
|
120
|
+
const live = useQuestionPanelLive(callId, present => present === true)
|
|
121
|
+
const errorCode = 'kind' in block ? block.error?.code : undefined
|
|
122
|
+
// A live card is the truth; a terminal label belongs only to the settled view.
|
|
123
|
+
const status = live
|
|
124
|
+
? undefined
|
|
125
|
+
: errorCode === 'ASK_ABORTED' || errorCode === 'interrupted'
|
|
126
|
+
? t('history.interrupted')
|
|
127
|
+
: errorCode === 'ASK_CANCELLED'
|
|
128
|
+
? t('history.cancelled')
|
|
129
|
+
: undefined
|
|
111
130
|
const summary = questions?.[0]?.question.split('\n').find(line => line.trim() !== '')?.trim() ?? t('history.title')
|
|
112
|
-
const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
131
|
+
const action = live
|
|
132
|
+
? () => revealPanel(callId)
|
|
133
|
+
: record === undefined
|
|
134
|
+
? undefined
|
|
135
|
+
: () => reviewPanel(callId, record)
|
|
136
|
+
const review = !live && record !== undefined
|
|
119
137
|
const actionKey = `${callId}-${review ? 'review' : 'open'}`
|
|
138
|
+
const actionLabel = review ? t('history.review') : t('history.reopen')
|
|
139
|
+
|
|
140
|
+
const trailing = action === undefined
|
|
141
|
+
? status === undefined ? null : <span className={css.state}>{status}</span>
|
|
142
|
+
: (
|
|
143
|
+
<span className={css.open}>
|
|
144
|
+
{status !== undefined && <span className={css.state}>{status}</span>}
|
|
145
|
+
{actionLabel}<IconChevronRightOutlineRegular size={14} />
|
|
146
|
+
</span>
|
|
147
|
+
)
|
|
120
148
|
|
|
121
149
|
const content = (
|
|
122
150
|
<>
|
|
123
151
|
<span className={css.icon} aria-hidden="true"><IconQuestionOutlineRegular /></span>
|
|
124
152
|
<span className={css.summary} title={summary}>{summary}</span>
|
|
125
|
-
{
|
|
153
|
+
{trailing}
|
|
126
154
|
</>
|
|
127
155
|
)
|
|
128
156
|
return (
|
|
@@ -132,7 +160,7 @@ export function AskHistoryRow({
|
|
|
132
160
|
: <button
|
|
133
161
|
type="button" className={css.row} data-question-history={callId} data-history-action={review ? 'review' : 'open'}
|
|
134
162
|
onClick={() => { setFailedAction(action() ? null : actionKey) }}
|
|
135
|
-
aria-label={`${
|
|
163
|
+
aria-label={`${actionLabel}${status === undefined ? '' : ` · ${status}`} · ${summary}`}
|
|
136
164
|
>{content}</button>}
|
|
137
165
|
{failedAction === actionKey && <span className={css.error} role="alert">{t('history.unavailable')}</span>}
|
|
138
166
|
</div>
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
.frame {
|
|
2
2
|
--cfg-line: var(--dsw-alias-border-l2);
|
|
3
|
-
--cfg-
|
|
4
|
-
--cfg-surface: var(--dsw-alias-bg-layer-2);
|
|
5
|
-
--cfg-sunken: color-mix(in srgb, var(--dsw-alias-label-primary) 4%, var(--dsw-alias-bg-layer-1));
|
|
3
|
+
--cfg-surface: var(--dsw-alias-bg-layer-3);
|
|
6
4
|
--cfg-ink: var(--dsw-alias-label-primary);
|
|
7
5
|
--cfg-muted: var(--dsw-alias-label-secondary);
|
|
8
|
-
--cfg-accent: #3388bb;
|
|
9
|
-
--cfg-accent-text:
|
|
6
|
+
--cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
|
|
7
|
+
--cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
|
|
10
8
|
--cfg-hover: var(--dsw-alias-interactive-bg-hover);
|
|
11
9
|
--cfg-danger: var(--dsw-alias-state-error-primary);
|
|
12
|
-
--cfg-solid: #20709e;
|
|
13
|
-
--cfg-solid-hover:
|
|
14
|
-
--cfg-on-solid: #fff;
|
|
10
|
+
--cfg-solid: var(--dsw-alias-button-primary-fill, #20709e);
|
|
11
|
+
--cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
|
|
12
|
+
--cfg-on-solid: var(--dsw-alias-label-primary-foreground, #fff);
|
|
15
13
|
display: flex;
|
|
16
14
|
justify-content: center;
|
|
17
|
-
|
|
15
|
+
width: 100%;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
box-sizing: border-box;
|
|
18
|
+
padding: 6px calc(var(--dsh-composer-side-clearance, 0px) + 16px) calc(10px + env(safe-area-inset-bottom));
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
.card {
|
|
@@ -26,9 +27,8 @@
|
|
|
26
27
|
max-height: min(75vh, 640px);
|
|
27
28
|
max-height: min(75dvh, 640px);
|
|
28
29
|
overflow: hidden;
|
|
29
|
-
border: 1px solid var(--
|
|
30
|
-
border-
|
|
31
|
-
border-radius: 12px;
|
|
30
|
+
border: 1px solid var(--dsw-alias-border-l3);
|
|
31
|
+
border-radius: 10px;
|
|
32
32
|
background: var(--cfg-surface);
|
|
33
33
|
color: var(--cfg-ink);
|
|
34
34
|
--dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
|
|
@@ -47,23 +47,15 @@
|
|
|
47
47
|
flex-wrap: wrap;
|
|
48
48
|
gap: 8px;
|
|
49
49
|
min-width: 0;
|
|
50
|
-
padding:
|
|
50
|
+
padding: 6px 12px;
|
|
51
51
|
border-bottom: 1px solid var(--cfg-line);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.panelLabel {
|
|
55
|
-
display: inline-flex;
|
|
56
|
-
align-items: center;
|
|
57
|
-
height: 20px;
|
|
58
|
-
padding: 0 7px;
|
|
59
|
-
border: 1px solid var(--cfg-line);
|
|
60
|
-
border-radius: 999px;
|
|
61
|
-
background: var(--cfg-sunken);
|
|
62
55
|
color: var(--cfg-muted);
|
|
63
|
-
font-size:
|
|
64
|
-
line-height: 18px;
|
|
56
|
+
font-size: 12px;
|
|
65
57
|
font-weight: 500;
|
|
66
|
-
|
|
58
|
+
line-height: 20px;
|
|
67
59
|
}
|
|
68
60
|
|
|
69
61
|
.previewActions {
|
|
@@ -81,7 +73,7 @@
|
|
|
81
73
|
overflow-y: auto;
|
|
82
74
|
overscroll-behavior: contain;
|
|
83
75
|
scrollbar-gutter: stable;
|
|
84
|
-
padding: 12px
|
|
76
|
+
padding: 10px 12px;
|
|
85
77
|
}
|
|
86
78
|
|
|
87
79
|
.documentHeading { display: flex; align-items: flex-start; gap: 8px; }
|
|
@@ -108,8 +100,8 @@
|
|
|
108
100
|
overflow: hidden;
|
|
109
101
|
margin: 4px 0 0;
|
|
110
102
|
color: var(--cfg-muted);
|
|
111
|
-
font-size:
|
|
112
|
-
line-height:
|
|
103
|
+
font-size: inherit;
|
|
104
|
+
line-height: 20px;
|
|
113
105
|
}
|
|
114
106
|
|
|
115
107
|
.footer {
|
|
@@ -142,18 +134,17 @@
|
|
|
142
134
|
display: inline-flex;
|
|
143
135
|
align-items: center;
|
|
144
136
|
justify-content: center;
|
|
145
|
-
height: 32px;
|
|
146
|
-
padding: 0
|
|
137
|
+
min-height: 32px;
|
|
138
|
+
padding: 0 10px;
|
|
147
139
|
border: 1px solid var(--cfg-line);
|
|
148
140
|
border-radius: 8px;
|
|
149
|
-
background:
|
|
141
|
+
background: transparent;
|
|
150
142
|
color: var(--cfg-ink);
|
|
151
143
|
box-shadow: none;
|
|
152
144
|
font: inherit;
|
|
153
145
|
font-size: 13px;
|
|
154
146
|
font-weight: 500;
|
|
155
147
|
cursor: pointer;
|
|
156
|
-
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
|
|
157
148
|
}
|
|
158
149
|
.discuss:hover:not(:disabled) { background: var(--cfg-hover); }
|
|
159
150
|
.primary { border-color: transparent; background: var(--cfg-solid); color: var(--cfg-on-solid); }
|
|
@@ -174,13 +165,13 @@
|
|
|
174
165
|
|
|
175
166
|
.decline {
|
|
176
167
|
min-height: 32px;
|
|
177
|
-
padding: 0
|
|
168
|
+
padding: 0 10px;
|
|
178
169
|
border: 0;
|
|
179
170
|
border-radius: 8px;
|
|
180
171
|
background: transparent;
|
|
181
172
|
color: var(--cfg-muted);
|
|
182
173
|
font: inherit;
|
|
183
|
-
font-size:
|
|
174
|
+
font-size: inherit;
|
|
184
175
|
line-height: 20px;
|
|
185
176
|
cursor: pointer;
|
|
186
177
|
}
|
|
@@ -222,16 +213,19 @@
|
|
|
222
213
|
max-height: calc(100dvh - 160px);
|
|
223
214
|
}
|
|
224
215
|
|
|
216
|
+
.frame { padding-inline: 16px; }
|
|
217
|
+
.card button { min-height: 44px; }
|
|
218
|
+
|
|
225
219
|
.strip {
|
|
226
|
-
padding:
|
|
220
|
+
padding: 6px 12px;
|
|
227
221
|
}
|
|
228
222
|
|
|
229
223
|
.summary {
|
|
230
|
-
padding: 12px;
|
|
224
|
+
padding: 10px 12px;
|
|
231
225
|
}
|
|
232
226
|
|
|
233
227
|
.footer {
|
|
234
|
-
padding: 8px;
|
|
228
|
+
padding: 8px 12px;
|
|
235
229
|
}
|
|
236
230
|
|
|
237
231
|
.feedback {
|
|
@@ -241,24 +235,11 @@
|
|
|
241
235
|
|
|
242
236
|
@media (max-width: 420px) {
|
|
243
237
|
.actions {
|
|
244
|
-
display: grid;
|
|
245
|
-
grid-template-columns: 1fr 1fr;
|
|
246
238
|
width: 100%;
|
|
247
|
-
gap: 8px;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
.decline {
|
|
251
|
-
grid-column: 1 / -1;
|
|
252
|
-
justify-content: flex-start;
|
|
253
239
|
}
|
|
254
240
|
|
|
255
241
|
.actions > button {
|
|
256
|
-
flex:
|
|
257
|
-
width: 100%;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.discuss, .primary, .decline {
|
|
261
|
-
white-space: nowrap;
|
|
242
|
+
flex: 1;
|
|
262
243
|
}
|
|
263
244
|
}
|
|
264
245
|
|
|
@@ -266,9 +247,9 @@
|
|
|
266
247
|
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
|
|
267
248
|
|
|
268
249
|
[data-ds-dark-theme] .frame {
|
|
269
|
-
--cfg-accent: #4eb0e8;
|
|
270
|
-
--cfg-accent-text:
|
|
271
|
-
--cfg-solid: #4eb0e8;
|
|
272
|
-
--cfg-solid-hover:
|
|
273
|
-
--cfg-on-solid: #0e1014;
|
|
250
|
+
--cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8);
|
|
251
|
+
--cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
|
|
252
|
+
--cfg-solid: var(--dsw-alias-button-primary-fill, #4eb0e8);
|
|
253
|
+
--cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
|
|
254
|
+
--cfg-on-solid: var(--dsw-alias-label-primary-foreground, #0e1014);
|
|
274
255
|
}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
/* Keep both takeovers on the host composer's content axis. */
|
|
2
2
|
.frame {
|
|
3
3
|
--cfg-line: var(--dsw-alias-border-l2);
|
|
4
|
-
--cfg-
|
|
5
|
-
--cfg-surface: var(--dsw-alias-bg-layer-2);
|
|
6
|
-
--cfg-sunken: color-mix(in srgb, var(--dsw-alias-label-primary) 4%, var(--dsw-alias-bg-layer-1));
|
|
4
|
+
--cfg-surface: var(--dsw-alias-bg-layer-3);
|
|
7
5
|
--cfg-ink: var(--dsw-alias-label-primary);
|
|
8
6
|
--cfg-muted: var(--dsw-alias-label-secondary);
|
|
9
|
-
--cfg-accent: #3388bb;
|
|
10
|
-
--cfg-accent-text:
|
|
7
|
+
--cfg-accent: var(--dsw-alias-state-business-primary, #3388bb);
|
|
8
|
+
--cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
|
|
11
9
|
--cfg-hover: var(--dsw-alias-interactive-bg-hover);
|
|
12
10
|
--cfg-danger: var(--dsw-alias-state-error-primary);
|
|
13
|
-
--cfg-solid: #20709e;
|
|
14
|
-
--cfg-solid-hover:
|
|
15
|
-
--cfg-on-solid: #fff;
|
|
11
|
+
--cfg-solid: var(--dsw-alias-button-primary-fill, #20709e);
|
|
12
|
+
--cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
|
|
13
|
+
--cfg-on-solid: var(--dsw-alias-label-primary-foreground, #fff);
|
|
16
14
|
display: flex;
|
|
17
15
|
justify-content: center;
|
|
18
|
-
|
|
16
|
+
width: 100%;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
padding: 6px calc(var(--dsh-composer-side-clearance, 0px) + 16px) calc(10px + env(safe-area-inset-bottom));
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.card {
|
|
@@ -28,9 +29,8 @@
|
|
|
28
29
|
max-height: min(75vh, 640px);
|
|
29
30
|
max-height: min(75dvh, 640px);
|
|
30
31
|
overflow: hidden;
|
|
31
|
-
border: 1px solid var(--
|
|
32
|
-
border-
|
|
33
|
-
border-radius: 12px;
|
|
32
|
+
border: 1px solid var(--dsw-alias-border-l3);
|
|
33
|
+
border-radius: 10px;
|
|
34
34
|
background: var(--cfg-surface);
|
|
35
35
|
color: var(--cfg-ink);
|
|
36
36
|
font-size: inherit;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
justify-content: space-between;
|
|
54
54
|
flex-shrink: 0;
|
|
55
55
|
gap: 12px;
|
|
56
|
-
padding:
|
|
56
|
+
padding: 10px 12px 6px;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.headingBlock {
|
|
@@ -61,16 +61,14 @@
|
|
|
61
61
|
min-width: 0;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
min-width: 0;
|
|
64
|
+
.eyebrow {
|
|
65
|
+
margin-bottom: 2px;
|
|
66
|
+
color: var(--cfg-muted);
|
|
67
|
+
font-size: 11px;
|
|
68
|
+
line-height: 16px;
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
.title {
|
|
73
|
-
flex: 1 1 auto;
|
|
74
72
|
margin: 0;
|
|
75
73
|
max-height: 24vh;
|
|
76
74
|
max-height: 24dvh;
|
|
@@ -80,35 +78,8 @@
|
|
|
80
78
|
font-weight: 500;
|
|
81
79
|
}
|
|
82
80
|
|
|
83
|
-
.headerChip,
|
|
84
|
-
.statusChip {
|
|
85
|
-
display: inline-flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
flex: none;
|
|
88
|
-
height: 20px;
|
|
89
|
-
max-width: 200px;
|
|
90
|
-
padding: 0 7px;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
border: 1px solid var(--cfg-line);
|
|
93
|
-
border-radius: 999px;
|
|
94
|
-
background: var(--cfg-sunken);
|
|
95
|
-
color: var(--cfg-muted);
|
|
96
|
-
font-size: 11px;
|
|
97
|
-
line-height: 18px;
|
|
98
|
-
white-space: nowrap;
|
|
99
|
-
text-overflow: ellipsis;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.statusChip {
|
|
103
|
-
border-color: color-mix(in srgb, var(--cfg-accent) 30%, var(--cfg-line));
|
|
104
|
-
background: color-mix(in srgb, var(--cfg-accent) 10%, transparent);
|
|
105
|
-
color: var(--cfg-accent-text);
|
|
106
|
-
font-weight: 500;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
81
|
.title,
|
|
110
|
-
.
|
|
111
|
-
.statusChip,
|
|
82
|
+
.eyebrow,
|
|
112
83
|
.optionLabel,
|
|
113
84
|
.description,
|
|
114
85
|
.detail {
|
|
@@ -118,8 +89,7 @@
|
|
|
118
89
|
}
|
|
119
90
|
|
|
120
91
|
.title > div,
|
|
121
|
-
.
|
|
122
|
-
.statusChip > div,
|
|
92
|
+
.eyebrow > div,
|
|
123
93
|
.optionLabel > div,
|
|
124
94
|
.description > div {
|
|
125
95
|
margin: 0;
|
|
@@ -127,10 +97,8 @@
|
|
|
127
97
|
|
|
128
98
|
/* Compact Markdown should retain the primary label's typography. */
|
|
129
99
|
.title > [data-markdown-variant='compact'],
|
|
130
|
-
.headerChip > [data-markdown-variant='compact'],
|
|
131
100
|
.optionLabel > [data-markdown-variant='compact'],
|
|
132
101
|
.title > [data-markdown-variant='compact'] > p,
|
|
133
|
-
.headerChip > [data-markdown-variant='compact'] > p,
|
|
134
102
|
.optionLabel > [data-markdown-variant='compact'] > p {
|
|
135
103
|
color: inherit;
|
|
136
104
|
font: inherit;
|
|
@@ -207,7 +175,7 @@
|
|
|
207
175
|
display: flex;
|
|
208
176
|
flex-direction: column;
|
|
209
177
|
gap: 2px;
|
|
210
|
-
padding: 0
|
|
178
|
+
padding: 0 6px 6px;
|
|
211
179
|
}
|
|
212
180
|
|
|
213
181
|
.option,
|
|
@@ -217,11 +185,10 @@
|
|
|
217
185
|
flex-shrink: 0;
|
|
218
186
|
gap: 8px;
|
|
219
187
|
width: 100%;
|
|
220
|
-
min-height:
|
|
221
|
-
padding:
|
|
188
|
+
min-height: 32px;
|
|
189
|
+
padding: 4px 8px;
|
|
222
190
|
border: 1px solid transparent;
|
|
223
191
|
border-radius: 8px;
|
|
224
|
-
transition: background-color 140ms ease, border-color 140ms ease;
|
|
225
192
|
}
|
|
226
193
|
|
|
227
194
|
.option {
|
|
@@ -264,7 +231,8 @@
|
|
|
264
231
|
border: 1px solid var(--dsw-alias-border-l4);
|
|
265
232
|
}
|
|
266
233
|
.radio::before { border-radius: 50%; }
|
|
267
|
-
.radioChecked::before { border:
|
|
234
|
+
.radioChecked::before { border-color: var(--cfg-accent); }
|
|
235
|
+
.radioChecked::after { content: ''; grid-area: 1 / 1; width: 8px; height: 8px; border-radius: 50%; background: var(--cfg-accent); }
|
|
268
236
|
.checkbox::before { border-radius: 4px; }
|
|
269
237
|
.checkbox > svg { grid-area: 1 / 1; }
|
|
270
238
|
.checkboxChecked { color: var(--cfg-accent); }
|
|
@@ -292,27 +260,25 @@
|
|
|
292
260
|
}
|
|
293
261
|
|
|
294
262
|
.badge {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
border: 1px solid color-mix(in srgb, var(--cfg-accent) 30%, var(--cfg-line));
|
|
300
|
-
border-radius: 999px;
|
|
301
|
-
background: color-mix(in srgb, var(--cfg-accent) 10%, transparent);
|
|
302
|
-
color: var(--cfg-accent-text);
|
|
263
|
+
padding: 0 4px;
|
|
264
|
+
border: 1px solid var(--cfg-line);
|
|
265
|
+
border-radius: 4px;
|
|
266
|
+
color: var(--cfg-muted);
|
|
303
267
|
font-size: 11px;
|
|
304
|
-
font-weight:
|
|
305
|
-
line-height:
|
|
268
|
+
font-weight: 400;
|
|
269
|
+
line-height: 16px;
|
|
306
270
|
}
|
|
307
271
|
|
|
308
272
|
.description {
|
|
309
273
|
display: block;
|
|
310
274
|
color: var(--cfg-muted);
|
|
311
275
|
font-size: 12px;
|
|
312
|
-
line-height:
|
|
276
|
+
line-height: 20px;
|
|
313
277
|
font-weight: 400;
|
|
314
278
|
}
|
|
315
279
|
|
|
280
|
+
.reviewStatus { margin: 0; padding: 0 16px 8px; color: var(--cfg-muted); font-size: 12px; line-height: 20px; }
|
|
281
|
+
|
|
316
282
|
.reviewNote {
|
|
317
283
|
margin: 0;
|
|
318
284
|
padding: 6px 8px;
|
|
@@ -324,7 +290,7 @@
|
|
|
324
290
|
.customRow {
|
|
325
291
|
margin-top: 8px;
|
|
326
292
|
border-color: var(--cfg-line);
|
|
327
|
-
background: var(--
|
|
293
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
328
294
|
}
|
|
329
295
|
|
|
330
296
|
.customRow:has(.fieldInput:focus-visible),
|
|
@@ -384,7 +350,6 @@
|
|
|
384
350
|
margin: 0 8px;
|
|
385
351
|
border: 1px solid var(--cfg-line);
|
|
386
352
|
border-radius: 8px;
|
|
387
|
-
background: var(--cfg-surface);
|
|
388
353
|
--dsh-answer-field-padding: 8px 12px;
|
|
389
354
|
}
|
|
390
355
|
|
|
@@ -394,7 +359,7 @@
|
|
|
394
359
|
justify-content: space-between;
|
|
395
360
|
flex-shrink: 0;
|
|
396
361
|
gap: 8px;
|
|
397
|
-
padding:
|
|
362
|
+
padding: 6px 12px;
|
|
398
363
|
border-top: 1px solid var(--cfg-line);
|
|
399
364
|
}
|
|
400
365
|
|
|
@@ -425,23 +390,21 @@
|
|
|
425
390
|
align-items: center;
|
|
426
391
|
justify-content: center;
|
|
427
392
|
gap: 6px;
|
|
428
|
-
height: 32px;
|
|
393
|
+
min-height: 32px;
|
|
429
394
|
padding: 0 12px;
|
|
430
395
|
border: 1px solid var(--cfg-line);
|
|
431
396
|
border-radius: 8px;
|
|
432
397
|
box-shadow: none;
|
|
433
|
-
background:
|
|
398
|
+
background: transparent;
|
|
434
399
|
color: var(--cfg-ink);
|
|
435
400
|
font: inherit;
|
|
436
401
|
font-size: 13px;
|
|
437
402
|
font-weight: 500;
|
|
438
403
|
cursor: pointer;
|
|
439
|
-
transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
|
|
440
404
|
}
|
|
441
405
|
.button:hover:not(:disabled) { background: var(--cfg-hover); }
|
|
442
406
|
.primary { min-width: 128px; border-color: transparent; background: var(--cfg-solid); color: var(--cfg-on-solid); }
|
|
443
407
|
.primary:hover:not(:disabled) { background: var(--cfg-solid-hover); }
|
|
444
|
-
.button:active:not(:disabled), .primary:active:not(:disabled) { background: color-mix(in srgb, var(--cfg-accent) 12%, var(--cfg-surface)); }
|
|
445
408
|
.iconButton, .option { appearance: none; box-shadow: none; }
|
|
446
409
|
.spinner { width: 12px; height: 12px; border: 1px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 800ms linear infinite; }
|
|
447
410
|
@keyframes spin { to { transform: rotate(360deg); } }
|
|
@@ -456,9 +419,11 @@
|
|
|
456
419
|
max-height: calc(100dvh - 160px);
|
|
457
420
|
}
|
|
458
421
|
|
|
422
|
+
.frame { padding-inline: 16px; }
|
|
423
|
+
|
|
459
424
|
.header {
|
|
460
425
|
gap: 8px;
|
|
461
|
-
padding:
|
|
426
|
+
padding: 12px 16px 8px;
|
|
462
427
|
}
|
|
463
428
|
|
|
464
429
|
.field > * {
|
|
@@ -470,9 +435,12 @@
|
|
|
470
435
|
max-height: 144px;
|
|
471
436
|
}
|
|
472
437
|
|
|
438
|
+
.option, .customRow, .card button { min-height: 44px; }
|
|
439
|
+
.iconButton { width: 44px; height: 44px; }
|
|
440
|
+
|
|
473
441
|
.footer {
|
|
474
442
|
flex-wrap: wrap;
|
|
475
|
-
padding: 8px;
|
|
443
|
+
padding: 8px 12px;
|
|
476
444
|
}
|
|
477
445
|
|
|
478
446
|
.feedback {
|
|
@@ -518,9 +486,9 @@
|
|
|
518
486
|
}
|
|
519
487
|
|
|
520
488
|
[data-ds-dark-theme] .frame {
|
|
521
|
-
--cfg-accent: #4eb0e8;
|
|
522
|
-
--cfg-accent-text:
|
|
523
|
-
--cfg-solid: #4eb0e8;
|
|
524
|
-
--cfg-solid-hover:
|
|
525
|
-
--cfg-on-solid: #0e1014;
|
|
489
|
+
--cfg-accent: var(--dsw-alias-state-business-primary, #4eb0e8);
|
|
490
|
+
--cfg-accent-text: color-mix(in srgb, var(--cfg-accent) 70%, var(--cfg-ink));
|
|
491
|
+
--cfg-solid: var(--dsw-alias-button-primary-fill, #4eb0e8);
|
|
492
|
+
--cfg-solid-hover: color-mix(in srgb, var(--cfg-solid) 88%, var(--cfg-on-solid));
|
|
493
|
+
--cfg-on-solid: var(--dsw-alias-label-primary-foreground, #0e1014);
|
|
526
494
|
}
|