@dorsk/tsumikit 0.78.0 → 0.80.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/dist/components/atoms/Artwork.svelte +5 -3
- package/dist/components/atoms/Badge.svelte +2 -5
- package/dist/components/atoms/Button.svelte +327 -17
- package/dist/components/atoms/Button.svelte.d.ts +4 -1
- package/dist/components/atoms/Card.svelte +160 -12
- package/dist/components/atoms/Checkbox.svelte +181 -3
- package/dist/components/atoms/Gauge.svelte +2 -2
- package/dist/components/atoms/Input.svelte +41 -3
- package/dist/components/atoms/Kbd.svelte +1 -1
- package/dist/components/atoms/Link.svelte +61 -0
- package/dist/components/atoms/Progress.svelte +75 -2
- package/dist/components/atoms/Progress.svelte.d.ts +1 -0
- package/dist/components/atoms/SegmentedProgress.svelte +2 -2
- package/dist/components/atoms/Select.svelte +39 -3
- package/dist/components/atoms/Skeleton.svelte +54 -3
- package/dist/components/atoms/Skeleton.svelte.d.ts +1 -0
- package/dist/components/atoms/Slider.svelte +8 -6
- package/dist/components/atoms/Spinner.svelte +152 -3
- package/dist/components/atoms/Spinner.svelte.d.ts +1 -1
- package/dist/components/atoms/Swatch.svelte +1 -1
- package/dist/components/atoms/Switch.svelte +138 -2
- package/dist/components/atoms/Textarea.svelte +42 -3
- package/dist/components/atoms/Thinking.svelte +130 -0
- package/dist/components/atoms/Thinking.svelte.d.ts +15 -0
- package/dist/components/layouts/AppShell.svelte +6 -6
- package/dist/components/layouts/MasterDetail.svelte +3 -3
- package/dist/components/layouts/NavBar.svelte +4 -4
- package/dist/components/layouts/NavSection.svelte +1 -1
- package/dist/components/layouts/ResizablePanel.svelte +7 -7
- package/dist/components/layouts/TabBar.svelte +2 -2
- package/dist/components/molecules/Accordion.svelte +2 -2
- package/dist/components/molecules/AttachmentList.svelte +2 -2
- package/dist/components/molecules/CapBar.svelte +2 -2
- package/dist/components/molecules/CodeBlock.svelte +5 -5
- package/dist/components/molecules/Combobox.svelte +3 -3
- package/dist/components/molecules/CopyButton.svelte +146 -5
- package/dist/components/molecules/Drawer.svelte +8 -8
- package/dist/components/molecules/EmojiPicker.svelte +1 -1
- package/dist/components/molecules/Field.svelte +55 -1
- package/dist/components/molecules/FileButton.svelte +20 -6
- package/dist/components/molecules/FilterInput.svelte +4 -4
- package/dist/components/molecules/GitRef.svelte +2 -2
- package/dist/components/molecules/GlyphStack.svelte +21 -3
- package/dist/components/molecules/InputGroup.svelte +3 -3
- package/dist/components/molecules/LookPicker.svelte +87 -0
- package/dist/components/molecules/LookPicker.svelte.d.ts +17 -0
- package/dist/components/molecules/Modal.svelte +5 -5
- package/dist/components/molecules/MotionSettings.svelte +166 -0
- package/dist/components/molecules/MotionSettings.svelte.d.ts +18 -0
- package/dist/components/molecules/OptionButton.svelte +8 -3
- package/dist/components/molecules/Pagination.svelte +3 -1
- package/dist/components/molecules/Popover.svelte +18 -11
- package/dist/components/molecules/Prose.svelte +6 -6
- package/dist/components/molecules/RadialMenu.svelte +3 -3
- package/dist/components/molecules/RadioGroup.svelte +67 -4
- package/dist/components/molecules/RichSelect.svelte +6 -4
- package/dist/components/molecules/SectionHeader.svelte +1 -1
- package/dist/components/molecules/SeekSlider.svelte +6 -6
- package/dist/components/molecules/SegmentedControl.svelte +7 -7
- package/dist/components/molecules/SortableList.svelte +2 -2
- package/dist/components/molecules/SplitButton.svelte +1 -1
- package/dist/components/molecules/Tabs.svelte +160 -7
- package/dist/components/molecules/ThemePicker.svelte +1 -1
- package/dist/components/molecules/Timestamp.svelte +1 -1
- package/dist/components/molecules/Toggle.svelte +5 -3
- package/dist/components/molecules/Tooltip.svelte +2 -2
- package/dist/components/molecules/VolumeSlider.svelte +3 -3
- package/dist/components/organisms/ConversationFeed.svelte +1 -1
- package/dist/components/organisms/ConversationPanel.svelte +3 -3
- package/dist/components/organisms/DataTable.svelte +18 -16
- package/dist/fx.d.ts +149 -0
- package/dist/fx.js +111 -0
- package/dist/fx.md +58 -0
- package/dist/index.d.ts +8 -2
- package/dist/index.js +8 -2
- package/dist/looks/README.md +101 -0
- package/dist/looks/depth.css +939 -0
- package/dist/looks/editorial.css +545 -0
- package/dist/looks/tactile.css +871 -0
- package/dist/pointer.d.ts +3 -0
- package/dist/pointer.js +40 -0
- package/dist/stores/fx.svelte.d.ts +17 -0
- package/dist/stores/fx.svelte.js +64 -0
- package/dist/stores/theme.svelte.d.ts +8 -2
- package/dist/stores/theme.svelte.js +33 -7
- package/dist/styles/themes.css +249 -249
- package/dist/styles/tokens.css +37 -2
- package/dist/theme-mode.d.ts +31 -0
- package/dist/theme-mode.js +19 -0
- package/package.json +3 -2
|
@@ -36,11 +36,13 @@
|
|
|
36
36
|
|
|
37
37
|
const field = getFieldContext();
|
|
38
38
|
const isInvalid = $derived(invalid || !!field?.invalid);
|
|
39
|
+
let armed = $state(false);
|
|
39
40
|
|
|
40
41
|
function toggle(e: MouseEvent & { currentTarget: EventTarget & HTMLButtonElement }) {
|
|
41
42
|
onclick?.(e);
|
|
42
43
|
if (e.defaultPrevented) return;
|
|
43
44
|
checked = !checked;
|
|
45
|
+
armed = true;
|
|
44
46
|
playSound(checked ? 'toggle-on' : 'toggle-off', sound);
|
|
45
47
|
}
|
|
46
48
|
</script>
|
|
@@ -53,6 +55,7 @@
|
|
|
53
55
|
class="switch {klass}"
|
|
54
56
|
class:on={checked}
|
|
55
57
|
class:switch-sm={size === 'sm'}
|
|
58
|
+
class:armed
|
|
56
59
|
role="switch"
|
|
57
60
|
aria-checked={checked}
|
|
58
61
|
id={id ?? field?.id}
|
|
@@ -78,6 +81,8 @@
|
|
|
78
81
|
/* Track and knob sit on the 4px grid: md 24 / sm 20 tall, knob = track minus
|
|
79
82
|
border and padding, travel = track width minus the knob and insets. */
|
|
80
83
|
.switch {
|
|
84
|
+
position: relative;
|
|
85
|
+
isolation: isolate;
|
|
81
86
|
--sw-h: var(--chip-md);
|
|
82
87
|
--sw-w: 2.75rem;
|
|
83
88
|
--sw-inset: calc(var(--sp-0-5) + 1px);
|
|
@@ -86,8 +91,8 @@
|
|
|
86
91
|
width: var(--sw-w);
|
|
87
92
|
height: var(--sw-h);
|
|
88
93
|
border-radius: var(--r-pill);
|
|
89
|
-
border:
|
|
90
|
-
background: var(--
|
|
94
|
+
border: var(--edge-width) solid var(--border-strong);
|
|
95
|
+
background: var(--track-fill);
|
|
91
96
|
padding: var(--sp-0-5);
|
|
92
97
|
display: flex;
|
|
93
98
|
align-items: center;
|
|
@@ -97,6 +102,7 @@
|
|
|
97
102
|
border-color var(--dur-fast) var(--ease);
|
|
98
103
|
}
|
|
99
104
|
.switch .knob {
|
|
105
|
+
position: relative;
|
|
100
106
|
width: var(--sw-knob);
|
|
101
107
|
height: var(--sw-knob);
|
|
102
108
|
border-radius: var(--r-pill);
|
|
@@ -122,9 +128,139 @@
|
|
|
122
128
|
scale: calc(1 + (var(--press-scale) - var(--press-scale-sm)) * 2.4) 1;
|
|
123
129
|
transition-duration: var(--dur-press);
|
|
124
130
|
}
|
|
131
|
+
/* Effects follow the closest data-fx-switch ancestor; squash is the default. */
|
|
132
|
+
.switch:not(:global([data-fx-switch]:not([data-fx-switch='squash'])) *),
|
|
133
|
+
:global([data-fx-switch='squash']) .switch:not(:global([data-fx-switch='squash'] [data-fx-switch]:not([data-fx-switch='squash'])) *) {
|
|
134
|
+
&.armed.on .knob {
|
|
135
|
+
animation: sw-squash-on var(--dur-spring) var(--ease-out);
|
|
136
|
+
}
|
|
137
|
+
&.armed:not(.on) .knob {
|
|
138
|
+
animation: sw-squash-off var(--dur-spring) var(--ease-out);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
/* On and off use separate names so the animation restarts on every toggle. */
|
|
142
|
+
@keyframes sw-squash-on {
|
|
143
|
+
35% {
|
|
144
|
+
scale: 1.4 0.8;
|
|
145
|
+
}
|
|
146
|
+
70% {
|
|
147
|
+
scale: 0.86 1.1;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@keyframes sw-squash-off {
|
|
151
|
+
35% {
|
|
152
|
+
scale: 1.4 0.8;
|
|
153
|
+
}
|
|
154
|
+
70% {
|
|
155
|
+
scale: 0.86 1.1;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/* A streak trails the knob in flight; a soft accent halo glows while on. */
|
|
160
|
+
:global([data-fx-switch='glow']) .switch:not(:global([data-fx-switch='glow'] [data-fx-switch]:not([data-fx-switch='glow'])) *) {
|
|
161
|
+
&::after {
|
|
162
|
+
content: '';
|
|
163
|
+
position: absolute;
|
|
164
|
+
inset: -40% -18%;
|
|
165
|
+
z-index: -1;
|
|
166
|
+
pointer-events: none;
|
|
167
|
+
background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
|
|
168
|
+
opacity: 0;
|
|
169
|
+
transition: opacity var(--dur-slow) var(--ease);
|
|
170
|
+
}
|
|
171
|
+
&.on::after {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
& .knob::before {
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
top: 18%;
|
|
178
|
+
bottom: 18%;
|
|
179
|
+
width: 170%;
|
|
180
|
+
z-index: -1;
|
|
181
|
+
pointer-events: none;
|
|
182
|
+
border-radius: var(--r-pill);
|
|
183
|
+
opacity: 0;
|
|
184
|
+
}
|
|
185
|
+
&.on .knob::before {
|
|
186
|
+
right: 40%;
|
|
187
|
+
transform-origin: right center;
|
|
188
|
+
background: linear-gradient(to left, color-mix(in srgb, var(--text-on-accent) 75%, transparent), transparent);
|
|
189
|
+
}
|
|
190
|
+
&:not(.on) .knob::before {
|
|
191
|
+
left: 40%;
|
|
192
|
+
transform-origin: left center;
|
|
193
|
+
background: linear-gradient(to right, color-mix(in srgb, var(--accent) 80%, transparent), transparent);
|
|
194
|
+
}
|
|
195
|
+
&.armed.on .knob::before {
|
|
196
|
+
animation: sw-trail-on var(--dur-spring) var(--ease-out);
|
|
197
|
+
}
|
|
198
|
+
&.armed:not(.on) .knob::before {
|
|
199
|
+
animation: sw-trail-off var(--dur-spring) var(--ease-out);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
@keyframes sw-trail-on {
|
|
203
|
+
0%,
|
|
204
|
+
100% {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
scale: 0.2 1;
|
|
207
|
+
}
|
|
208
|
+
30% {
|
|
209
|
+
opacity: 1;
|
|
210
|
+
scale: 1;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
@keyframes sw-trail-off {
|
|
214
|
+
0%,
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 0;
|
|
217
|
+
scale: 0.2 1;
|
|
218
|
+
}
|
|
219
|
+
30% {
|
|
220
|
+
opacity: 1;
|
|
221
|
+
scale: 1;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/* Calm: an unhurried glide with no overshoot; a small accent pip settles into the knob once on. */
|
|
226
|
+
:global([data-fx-switch='calm']) .switch:not(:global([data-fx-switch='calm'] [data-fx-switch]:not([data-fx-switch='calm'])) *) {
|
|
227
|
+
transition:
|
|
228
|
+
background var(--dur-slow) var(--ease),
|
|
229
|
+
border-color var(--dur-slow) var(--ease);
|
|
230
|
+
& .knob {
|
|
231
|
+
transform-origin: center;
|
|
232
|
+
transition:
|
|
233
|
+
translate var(--dur-slow) var(--ease-in-out),
|
|
234
|
+
scale var(--dur-fast) var(--ease-out),
|
|
235
|
+
background var(--dur-slow) var(--ease);
|
|
236
|
+
}
|
|
237
|
+
&:active:not(:disabled) .knob {
|
|
238
|
+
scale: var(--press-scale-sm);
|
|
239
|
+
}
|
|
240
|
+
& .knob::after {
|
|
241
|
+
content: '';
|
|
242
|
+
position: absolute;
|
|
243
|
+
inset: 32%;
|
|
244
|
+
border-radius: var(--r-pill);
|
|
245
|
+
background: var(--accent);
|
|
246
|
+
opacity: 0;
|
|
247
|
+
scale: 0.4;
|
|
248
|
+
transition:
|
|
249
|
+
opacity var(--dur-exit-fast) var(--ease-out),
|
|
250
|
+
scale var(--dur-exit-fast) var(--ease-out);
|
|
251
|
+
}
|
|
252
|
+
&.on .knob::after {
|
|
253
|
+
opacity: 1;
|
|
254
|
+
scale: 1;
|
|
255
|
+
transition:
|
|
256
|
+
opacity var(--dur-base) var(--ease) var(--dur-fast),
|
|
257
|
+
scale var(--dur-base) var(--ease-out) var(--dur-fast);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
125
260
|
.switch:focus-visible {
|
|
126
261
|
outline: var(--focus-ring);
|
|
127
262
|
outline-offset: var(--focus-ring-offset);
|
|
263
|
+
box-shadow: var(--focus-glow);
|
|
128
264
|
}
|
|
129
265
|
.switch:disabled {
|
|
130
266
|
opacity: var(--disabled-opacity);
|
|
@@ -211,6 +211,7 @@
|
|
|
211
211
|
bind:value
|
|
212
212
|
use:autoresizeAction={typeof value === 'string' ? value : ''}
|
|
213
213
|
{...rest}
|
|
214
|
+
placeholder={rest.placeholder ?? (field ? ' ' : undefined)}
|
|
214
215
|
onkeydown={onsubmit || onkeydown ? handleKeydown : undefined}
|
|
215
216
|
id={id ?? field?.id}
|
|
216
217
|
aria-describedby={ariaDescribedby ?? field?.describedBy}
|
|
@@ -230,6 +231,7 @@
|
|
|
230
231
|
style:max-height={maxHeight}
|
|
231
232
|
bind:value
|
|
232
233
|
{...rest}
|
|
234
|
+
placeholder={rest.placeholder ?? (field ? ' ' : undefined)}
|
|
233
235
|
onkeydown={onsubmit || onkeydown ? handleKeydown : undefined}
|
|
234
236
|
id={id ?? field?.id}
|
|
235
237
|
aria-describedby={ariaDescribedby ?? field?.describedBy}
|
|
@@ -278,9 +280,10 @@
|
|
|
278
280
|
--sp-3 top+bottom would overshoot it and a `rows={1}` textarea would
|
|
279
281
|
render taller than the buttons it sits beside. */
|
|
280
282
|
padding: var(--sp-2) var(--control-px-md);
|
|
281
|
-
background: var(--textarea-bg, var(--
|
|
282
|
-
border:
|
|
283
|
+
background: var(--textarea-bg, var(--control-fill));
|
|
284
|
+
border: var(--edge-width) solid var(--textarea-border, var(--control-edge));
|
|
283
285
|
border-radius: var(--textarea-radius, var(--r-md));
|
|
286
|
+
box-shadow: var(--control-shadow);
|
|
284
287
|
color: var(--textarea-fg, var(--text));
|
|
285
288
|
transition: border-color var(--dur-fast) ease;
|
|
286
289
|
/* Custom handle replaces the native grip; never show the native one. */
|
|
@@ -299,6 +302,11 @@
|
|
|
299
302
|
.textarea:focus-visible {
|
|
300
303
|
outline: var(--focus-ring);
|
|
301
304
|
outline-offset: var(--focus-ring-offset);
|
|
305
|
+
box-shadow: var(--control-shadow), var(--focus-glow);
|
|
306
|
+
}
|
|
307
|
+
.textarea::placeholder {
|
|
308
|
+
color: var(--text-faint);
|
|
309
|
+
opacity: 1;
|
|
302
310
|
}
|
|
303
311
|
.textarea:disabled {
|
|
304
312
|
cursor: not-allowed;
|
|
@@ -333,6 +341,36 @@
|
|
|
333
341
|
.textarea[aria-invalid='true']:focus {
|
|
334
342
|
border-color: var(--danger);
|
|
335
343
|
}
|
|
344
|
+
.textarea {
|
|
345
|
+
--focus-tint: var(--accent);
|
|
346
|
+
}
|
|
347
|
+
.textarea[aria-invalid='true'] {
|
|
348
|
+
--focus-tint: var(--danger);
|
|
349
|
+
}
|
|
350
|
+
/* Focus bloom: a solid ring whose soft halo swells, then settles to a quieter glow. */
|
|
351
|
+
.textarea:not(.grouped):focus:not(:global([data-fx-focus='none']) *),
|
|
352
|
+
:global(:is([data-fx-focus='bloom'], [data-fx-focus='label'])) .textarea:not(.grouped):focus:not(:global(:is([data-fx-focus='bloom'], [data-fx-focus='label']) [data-fx-focus='none']) *) {
|
|
353
|
+
outline: none;
|
|
354
|
+
box-shadow:
|
|
355
|
+
var(--control-shadow),
|
|
356
|
+
0 0 0 var(--focus-ring-width) var(--focus-tint),
|
|
357
|
+
0 0 16px 2px color-mix(in srgb, var(--focus-tint) 24%, transparent);
|
|
358
|
+
animation: focus-bloom var(--dur-fast) var(--ease-out);
|
|
359
|
+
}
|
|
360
|
+
@keyframes focus-bloom {
|
|
361
|
+
0% {
|
|
362
|
+
box-shadow:
|
|
363
|
+
var(--control-shadow),
|
|
364
|
+
0 0 0 0 transparent,
|
|
365
|
+
0 0 0 0 transparent;
|
|
366
|
+
}
|
|
367
|
+
45% {
|
|
368
|
+
box-shadow:
|
|
369
|
+
var(--control-shadow),
|
|
370
|
+
0 0 0 calc(var(--focus-ring-width) + 1px) var(--focus-tint),
|
|
371
|
+
0 0 20px 4px color-mix(in srgb, var(--focus-tint) 32%, transparent);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
336
374
|
/* Inside an InputGroup the group draws the focus ring and the overlaid
|
|
337
375
|
adornments report their widths; the text stays clear of them. */
|
|
338
376
|
.textarea.grouped {
|
|
@@ -347,6 +385,7 @@
|
|
|
347
385
|
}
|
|
348
386
|
.textarea.grouped:focus-visible {
|
|
349
387
|
outline: none;
|
|
388
|
+
box-shadow: var(--control-shadow);
|
|
350
389
|
}
|
|
351
390
|
.textarea.grouped.bar {
|
|
352
391
|
padding-inline: var(--ig-pad-x);
|
|
@@ -408,7 +447,7 @@
|
|
|
408
447
|
}
|
|
409
448
|
@media (hover: hover) and (pointer: fine) {
|
|
410
449
|
.textarea:hover:not(:disabled, :focus, [aria-invalid='true']) {
|
|
411
|
-
border-color: var(--
|
|
450
|
+
border-color: var(--control-edge-hover);
|
|
412
451
|
}
|
|
413
452
|
.resize-handle:hover::after {
|
|
414
453
|
background: var(--accent);
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { Snippet } from 'svelte';
|
|
3
|
+
// Chat "assistant is working" indicator. `dots`: three dots rise one after
|
|
4
|
+
// the other, drawn in currentColor. `sheen`: a light sweeps through the
|
|
5
|
+
// status word (children, or `label`), with a blinking caret after it.
|
|
6
|
+
let {
|
|
7
|
+
variant = 'dots',
|
|
8
|
+
label = 'Thinking',
|
|
9
|
+
caret = true,
|
|
10
|
+
children,
|
|
11
|
+
class: klass = '',
|
|
12
|
+
style: styleProp = '',
|
|
13
|
+
...rest
|
|
14
|
+
}: {
|
|
15
|
+
variant?: 'dots' | 'sheen';
|
|
16
|
+
/** Announced to AT; also the visible word of `sheen` when there are no children. */
|
|
17
|
+
label?: string;
|
|
18
|
+
/** Blinking caret after the sheen text. */
|
|
19
|
+
caret?: boolean;
|
|
20
|
+
children?: Snippet;
|
|
21
|
+
class?: string;
|
|
22
|
+
style?: string;
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
} = $props();
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<span
|
|
28
|
+
data-tsu="Thinking"
|
|
29
|
+
class="thinking v-{variant} {klass}"
|
|
30
|
+
style={styleProp}
|
|
31
|
+
role="status"
|
|
32
|
+
aria-label={variant === 'dots' ? label : undefined}
|
|
33
|
+
{...rest}
|
|
34
|
+
>
|
|
35
|
+
{#if variant === 'dots'}
|
|
36
|
+
<span class="dots" aria-hidden="true"><span></span><span></span><span></span></span>
|
|
37
|
+
{:else}
|
|
38
|
+
<span class="text">{#if children}{@render children()}{:else}{label}{/if}</span>
|
|
39
|
+
{#if caret}<span class="caret" aria-hidden="true"></span>{/if}
|
|
40
|
+
{/if}
|
|
41
|
+
</span>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
.thinking {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
line-height: 1;
|
|
48
|
+
vertical-align: middle;
|
|
49
|
+
}
|
|
50
|
+
.dots {
|
|
51
|
+
display: inline-flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
gap: 0.3em;
|
|
54
|
+
padding: 0.25em 0;
|
|
55
|
+
}
|
|
56
|
+
.dots span {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 0.4em;
|
|
59
|
+
height: 0.4em;
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
background: currentColor;
|
|
62
|
+
animation: tsu-thinking-dot 1.2s var(--ease-in-out) infinite;
|
|
63
|
+
}
|
|
64
|
+
.dots span:nth-child(1) {
|
|
65
|
+
opacity: 1;
|
|
66
|
+
}
|
|
67
|
+
.dots span:nth-child(2) {
|
|
68
|
+
opacity: 0.6;
|
|
69
|
+
animation-delay: 0.15s;
|
|
70
|
+
}
|
|
71
|
+
.dots span:nth-child(3) {
|
|
72
|
+
opacity: 0.3;
|
|
73
|
+
animation-delay: 0.3s;
|
|
74
|
+
}
|
|
75
|
+
@keyframes tsu-thinking-dot {
|
|
76
|
+
0%,
|
|
77
|
+
55%,
|
|
78
|
+
100% {
|
|
79
|
+
opacity: 0.35;
|
|
80
|
+
transform: translateY(0);
|
|
81
|
+
}
|
|
82
|
+
25% {
|
|
83
|
+
opacity: 1;
|
|
84
|
+
transform: translateY(-0.3em);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.v-sheen {
|
|
89
|
+
line-height: inherit;
|
|
90
|
+
}
|
|
91
|
+
.text {
|
|
92
|
+
background: linear-gradient(90deg, var(--text-muted) 0 38%, var(--text) 50%, var(--text-muted) 62% 100%);
|
|
93
|
+
background-size: 300% 100%;
|
|
94
|
+
background-position: 100% 0;
|
|
95
|
+
-webkit-background-clip: text;
|
|
96
|
+
background-clip: text;
|
|
97
|
+
color: transparent;
|
|
98
|
+
animation: tsu-thinking-sheen 1.8s linear infinite;
|
|
99
|
+
}
|
|
100
|
+
@keyframes tsu-thinking-sheen {
|
|
101
|
+
to {
|
|
102
|
+
background-position: 0% 0;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.caret {
|
|
106
|
+
display: inline-block;
|
|
107
|
+
width: 2px;
|
|
108
|
+
height: 1em;
|
|
109
|
+
margin-left: 0.2em;
|
|
110
|
+
border-radius: 1px;
|
|
111
|
+
background: var(--accent);
|
|
112
|
+
animation: tsu-thinking-blink 1s steps(2, jump-none) infinite;
|
|
113
|
+
}
|
|
114
|
+
@keyframes tsu-thinking-blink {
|
|
115
|
+
to {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@media (prefers-reduced-motion: reduce) {
|
|
121
|
+
.dots span,
|
|
122
|
+
.text,
|
|
123
|
+
.caret {
|
|
124
|
+
animation: none;
|
|
125
|
+
}
|
|
126
|
+
.text {
|
|
127
|
+
background-position: 50% 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
</style>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Snippet } from 'svelte';
|
|
2
|
+
type $$ComponentProps = {
|
|
3
|
+
variant?: 'dots' | 'sheen';
|
|
4
|
+
/** Announced to AT; also the visible word of `sheen` when there are no children. */
|
|
5
|
+
label?: string;
|
|
6
|
+
/** Blinking caret after the sheen text. */
|
|
7
|
+
caret?: boolean;
|
|
8
|
+
children?: Snippet;
|
|
9
|
+
class?: string;
|
|
10
|
+
style?: string;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
declare const Thinking: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
14
|
+
type Thinking = ReturnType<typeof Thinking>;
|
|
15
|
+
export default Thinking;
|
|
@@ -276,7 +276,7 @@
|
|
|
276
276
|
padding-top: var(--safe-top);
|
|
277
277
|
background: color-mix(in srgb, var(--bg) 88%, transparent);
|
|
278
278
|
backdrop-filter: blur(8px);
|
|
279
|
-
border-bottom:
|
|
279
|
+
border-bottom: var(--edge-width) solid var(--surface-edge);
|
|
280
280
|
}
|
|
281
281
|
.shell-header > :global(*) {
|
|
282
282
|
min-width: 0;
|
|
@@ -302,7 +302,7 @@
|
|
|
302
302
|
}
|
|
303
303
|
.shell-footer {
|
|
304
304
|
grid-area: footer;
|
|
305
|
-
border-top:
|
|
305
|
+
border-top: var(--edge-width) solid var(--surface-edge);
|
|
306
306
|
padding: var(--sp-4) max(var(--sp-4), var(--safe-right)) calc(var(--sp-4) + var(--safe-bottom))
|
|
307
307
|
max(var(--sp-4), var(--safe-left));
|
|
308
308
|
}
|
|
@@ -318,8 +318,8 @@
|
|
|
318
318
|
overflow-y: auto;
|
|
319
319
|
overflow-x: hidden; /* overflow-y:auto would otherwise make x auto too */
|
|
320
320
|
-webkit-overflow-scrolling: touch;
|
|
321
|
-
background: var(--
|
|
322
|
-
border-right:
|
|
321
|
+
background: var(--surface-fill);
|
|
322
|
+
border-right: var(--edge-width) solid var(--surface-edge);
|
|
323
323
|
--shell-sidebar-pad: var(--sp-3);
|
|
324
324
|
padding: var(--shell-sidebar-pad);
|
|
325
325
|
padding-top: max(var(--shell-sidebar-pad), var(--safe-top));
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
}
|
|
339
339
|
.shell-sidebar.open {
|
|
340
340
|
translate: 0 0;
|
|
341
|
-
box-shadow: var(--shadow
|
|
341
|
+
box-shadow: var(--overlay-shadow);
|
|
342
342
|
transition-duration: var(--dur-sheet);
|
|
343
343
|
}
|
|
344
344
|
.shell-scrim {
|
|
@@ -396,7 +396,7 @@
|
|
|
396
396
|
transition: none;
|
|
397
397
|
z-index: auto;
|
|
398
398
|
box-shadow: none;
|
|
399
|
-
border-right:
|
|
399
|
+
border-right: var(--edge-width) solid var(--surface-edge);
|
|
400
400
|
}
|
|
401
401
|
.shell.sticky-sidebar .shell-sidebar {
|
|
402
402
|
position: sticky;
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
class:selected
|
|
108
108
|
style="--md-list-w: {listWidth}; --md-gap: {gap}; --md-divider: {divider === 'none'
|
|
109
109
|
? 'none'
|
|
110
|
-
: '
|
|
110
|
+
: 'var(--edge-width) solid var(--surface-edge)'};{style ? ` ${style}` : ''}"
|
|
111
111
|
data-tsu="MasterDetail"
|
|
112
112
|
{...rest}
|
|
113
113
|
>
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
-webkit-overflow-scrolling: touch;
|
|
160
160
|
}
|
|
161
161
|
.md-list {
|
|
162
|
-
border-right: var(--md-divider,
|
|
162
|
+
border-right: var(--md-divider, var(--edge-width) solid var(--surface-edge));
|
|
163
163
|
}
|
|
164
164
|
.md-detail {
|
|
165
165
|
display: flex;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
padding-inline: var(--sp-3);
|
|
181
181
|
background: color-mix(in srgb, var(--bg) 88%, transparent);
|
|
182
182
|
backdrop-filter: blur(8px);
|
|
183
|
-
border-bottom:
|
|
183
|
+
border-bottom: var(--edge-width) solid var(--surface-edge);
|
|
184
184
|
}
|
|
185
185
|
.md-detail-header-content {
|
|
186
186
|
flex: 1;
|
|
@@ -239,14 +239,14 @@
|
|
|
239
239
|
padding-inline: max(var(--safe-left), var(--sp-1)) max(var(--safe-right), var(--sp-1));
|
|
240
240
|
background: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
|
|
241
241
|
backdrop-filter: blur(12px);
|
|
242
|
-
border-top:
|
|
242
|
+
border-top: var(--edge-width) solid var(--surface-edge);
|
|
243
243
|
}
|
|
244
244
|
.floating {
|
|
245
245
|
padding: var(--sp-1);
|
|
246
|
-
border:
|
|
246
|
+
border: var(--edge-width) solid var(--raised-edge);
|
|
247
247
|
border-radius: var(--r-md);
|
|
248
|
-
background: var(--
|
|
249
|
-
box-shadow: var(--shadow
|
|
248
|
+
background: var(--raised-fill);
|
|
249
|
+
box-shadow: var(--raised-shadow);
|
|
250
250
|
}
|
|
251
251
|
.bar.floating {
|
|
252
252
|
left: calc(var(--sp-2) + var(--safe-left));
|
|
@@ -401,8 +401,8 @@
|
|
|
401
401
|
min-width: 0;
|
|
402
402
|
min-height: 0;
|
|
403
403
|
width: var(--panel-current-width);
|
|
404
|
-
background: var(--
|
|
405
|
-
border-right:
|
|
404
|
+
background: var(--surface-fill);
|
|
405
|
+
border-right: var(--edge-width) solid var(--surface-edge);
|
|
406
406
|
transition:
|
|
407
407
|
width var(--dur-base) var(--ease),
|
|
408
408
|
box-shadow var(--dur-base) var(--ease);
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
grid-column: 2;
|
|
415
415
|
grid-row: 1;
|
|
416
416
|
border-right: 0;
|
|
417
|
-
border-left:
|
|
417
|
+
border-left: var(--edge-width) solid var(--surface-edge);
|
|
418
418
|
}
|
|
419
419
|
.main {
|
|
420
420
|
min-width: 0;
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
font: inherit;
|
|
450
450
|
font-size: var(--icon-sm);
|
|
451
451
|
background: transparent;
|
|
452
|
-
border:
|
|
452
|
+
border: var(--edge-width) solid transparent;
|
|
453
453
|
border-radius: var(--r-sm);
|
|
454
454
|
cursor: pointer;
|
|
455
455
|
transition:
|
|
@@ -475,7 +475,7 @@
|
|
|
475
475
|
.collapse-control:hover {
|
|
476
476
|
color: var(--text);
|
|
477
477
|
background: var(--bg-elevated-2);
|
|
478
|
-
border-color: var(--
|
|
478
|
+
border-color: var(--surface-edge);
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
.collapse-control:focus-visible,
|
|
@@ -547,7 +547,7 @@
|
|
|
547
547
|
left: 0;
|
|
548
548
|
z-index: 1;
|
|
549
549
|
width: min(var(--panel-current-width), 85cqw);
|
|
550
|
-
box-shadow: var(--shadow
|
|
550
|
+
box-shadow: var(--raised-shadow);
|
|
551
551
|
}
|
|
552
552
|
.right .panel {
|
|
553
553
|
right: 0;
|
|
@@ -581,7 +581,7 @@
|
|
|
581
581
|
left: 0;
|
|
582
582
|
z-index: var(--z-drawer);
|
|
583
583
|
width: min(var(--panel-current-width), 100%);
|
|
584
|
-
box-shadow: var(--shadow
|
|
584
|
+
box-shadow: var(--raised-shadow);
|
|
585
585
|
outline: none;
|
|
586
586
|
animation: panel-slide-left var(--dur-base) var(--ease);
|
|
587
587
|
}
|
|
@@ -144,8 +144,8 @@
|
|
|
144
144
|
<style>
|
|
145
145
|
.tabbar {
|
|
146
146
|
min-width: 0;
|
|
147
|
-
background: var(--
|
|
148
|
-
border-top:
|
|
147
|
+
background: var(--surface-fill);
|
|
148
|
+
border-top: var(--edge-width) solid var(--surface-edge);
|
|
149
149
|
}
|
|
150
150
|
.bar {
|
|
151
151
|
position: fixed;
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
<style>
|
|
126
126
|
.accordion {
|
|
127
|
-
border:
|
|
127
|
+
border: var(--edge-width) solid var(--surface-edge);
|
|
128
128
|
border-radius: var(--r-lg);
|
|
129
129
|
overflow: hidden;
|
|
130
130
|
}
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
border-radius: 0;
|
|
134
134
|
}
|
|
135
135
|
.accordion > :global(.acc-item + .acc-item) {
|
|
136
|
-
border-top:
|
|
136
|
+
border-top: var(--edge-width) solid var(--surface-edge);
|
|
137
137
|
}
|
|
138
138
|
.acc-title {
|
|
139
139
|
min-width: 0;
|
|
@@ -317,7 +317,7 @@
|
|
|
317
317
|
right: -0.35em;
|
|
318
318
|
min-width: 1.4em;
|
|
319
319
|
padding: 0.1em 0.3em;
|
|
320
|
-
border:
|
|
320
|
+
border: var(--edge-width) solid var(--surface-edge-strong);
|
|
321
321
|
border-radius: var(--r-pill);
|
|
322
322
|
background: var(--bg);
|
|
323
323
|
color: var(--text);
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
.preview {
|
|
327
327
|
display: block;
|
|
328
328
|
padding: 0;
|
|
329
|
-
border:
|
|
329
|
+
border: var(--edge-width) solid var(--surface-edge);
|
|
330
330
|
border-radius: var(--r-md);
|
|
331
331
|
background: none;
|
|
332
332
|
cursor: pointer;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
inset: 0 0 0 var(--cap);
|
|
285
285
|
border-radius: 0 var(--r-pill) var(--r-pill) 0;
|
|
286
286
|
background: var(--bg);
|
|
287
|
-
box-shadow: inset 0 0 0
|
|
287
|
+
box-shadow: inset 0 0 0 var(--edge-width) var(--track-edge);
|
|
288
288
|
pointer-events: none;
|
|
289
289
|
}
|
|
290
290
|
.fill-clip {
|
|
@@ -363,7 +363,7 @@
|
|
|
363
363
|
left: clamp(0%, var(--cap), 100%);
|
|
364
364
|
translate: calc(-1 * clamp(0%, var(--cap), 100%)) 0;
|
|
365
365
|
padding: var(--sp-px) var(--sp-1);
|
|
366
|
-
border:
|
|
366
|
+
border: var(--edge-width) solid var(--raised-edge);
|
|
367
367
|
border-radius: var(--r-sm);
|
|
368
368
|
background: var(--bg-elevated-2);
|
|
369
369
|
box-shadow: var(--shadow-sm);
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<style>
|
|
86
86
|
.codeblock {
|
|
87
87
|
margin: 0;
|
|
88
|
-
border:
|
|
88
|
+
border: var(--edge-width) solid var(--surface-edge);
|
|
89
89
|
border-radius: var(--r-lg);
|
|
90
90
|
background: var(--bg);
|
|
91
91
|
overflow: hidden;
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
align-items: center;
|
|
96
96
|
gap: var(--sp-2);
|
|
97
97
|
padding: var(--sp-1) var(--sp-1) var(--sp-1) var(--sp-3);
|
|
98
|
-
background: var(--
|
|
99
|
-
border-bottom:
|
|
98
|
+
background: var(--surface-fill-2);
|
|
99
|
+
border-bottom: var(--edge-width) solid var(--surface-edge);
|
|
100
100
|
font-size: var(--fs-xs);
|
|
101
101
|
font-family: var(--font-mono);
|
|
102
102
|
color: var(--text-muted);
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
padding: var(--sp-3) var(--sp-2);
|
|
121
121
|
text-align: right;
|
|
122
122
|
color: var(--text-faint);
|
|
123
|
-
background: var(--
|
|
124
|
-
border-right:
|
|
123
|
+
background: var(--surface-fill);
|
|
124
|
+
border-right: var(--edge-width) solid var(--surface-edge);
|
|
125
125
|
user-select: none;
|
|
126
126
|
font-family: var(--font-mono);
|
|
127
127
|
font-size: var(--fs-sm);
|