@deepseek-ai/dsh-client-ui-primitives 0.2.1-rc.5 → 0.2.2-alpha.2
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.i18n.yaml +18 -18
- package/README.md +35 -14
- package/README.zh.md +35 -14
- package/lib/AnimatedRows.module.css +7 -0
- package/lib/Button.module.css +18 -11
- package/lib/CodeCard.module.css +4 -2
- package/lib/ConnectionIndicator.module.css +8 -6
- package/lib/DetailDocument.module.css +67 -0
- package/lib/DiffBlock.module.css +4 -2
- package/lib/DisclosureRow.module.css +11 -7
- package/lib/HoverCard.module.css +13 -0
- package/lib/JsonTree.module.css +45 -9
- package/lib/Menu.module.css +14 -4
- package/lib/Modal.module.css +4 -2
- package/lib/Pill.module.css +4 -2
- package/lib/QuotePreview.module.css +101 -0
- package/lib/ReadBlock.module.css +4 -2
- package/lib/RowDragPreview.module.css +12 -0
- package/lib/SearchBlock.module.css +4 -2
- package/lib/SegmentedControl.module.css +6 -1
- package/lib/SegmentedTabs.module.css +25 -3
- package/lib/TerminalBlock.module.css +4 -2
- package/lib/Toast.module.css +4 -2
- package/lib/UserMessageBubble.module.css +11 -0
- package/lib/WebBlock.module.css +14 -2
- package/lib/ZoomControls.module.css +54 -0
- package/lib/index.js +3346 -4315
- package/lib/markdown/JsonBlock.module.css +4 -2
- package/lib/markdown/MarkdownText.module.css +37 -12
- package/lib/settings-form/fields.module.css +11 -3
- package/lib/types/AnimatedRows.d.ts +46 -0
- package/lib/types/Button.d.ts +1 -1
- package/lib/types/DetailDocument.d.ts +78 -0
- package/lib/types/DraggableImage.d.ts +19 -0
- package/lib/types/HoverCard.d.ts +7 -2
- package/lib/types/HoverCardGroup.d.ts +4 -2
- package/lib/types/QuotePreview.d.ts +24 -0
- package/lib/types/SegmentedTabs.d.ts +3 -1
- package/lib/types/Tooltip.d.ts +13 -7
- package/lib/types/UserMessageBubble.d.ts +11 -0
- package/lib/types/ZoomControls.d.ts +27 -0
- package/lib/types/document-zoom.d.ts +17 -0
- package/lib/types/file-drag-actions.d.ts +32 -0
- package/lib/types/focus.d.ts +7 -0
- package/lib/types/icons/artwork.d.ts +418 -0
- package/lib/types/icons/index.d.ts +195 -194
- package/lib/types/icons/shared-artwork.d.ts +6 -12
- package/lib/types/image-drag.d.ts +17 -0
- package/lib/types/index.d.ts +20 -1
- package/lib/types/markdown/MarkdownDelegate.d.ts +6 -1
- package/lib/types/markdown/MarkdownText.d.ts +9 -4
- package/lib/types/markdown/highlight.d.ts +22 -0
- package/lib/types/markdown/mathCompatibility.d.ts +14 -5
- package/lib/types/markdown/quote-text.d.ts +8 -0
- package/lib/types/markdown/render.d.ts +4 -1
- package/lib/types/markdown/windows-path-destinations.d.ts +11 -0
- package/lib/types/overlay-top-margin.d.ts +9 -2
- package/lib/types/use-clipboard-copy.d.ts +14 -0
- package/lib/types/useRowDragPreview.d.ts +20 -0
- package/package.json +9 -7
- package/lib/types/use-copy-feedback.d.ts +0 -14
package/lib/Button.module.css
CHANGED
|
@@ -38,34 +38,41 @@
|
|
|
38
38
|
color: var(--dsw-alias-label-primary-foreground);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
@media (hover: hover) {
|
|
42
|
+
.primary:hover:not(:disabled) {
|
|
43
|
+
background: var(--dsw-alias-button-primary-hover);
|
|
44
|
+
}
|
|
44
45
|
|
|
45
|
-
.ghost:hover:not(:disabled) {
|
|
46
|
-
|
|
46
|
+
.ghost:hover:not(:disabled) {
|
|
47
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
48
|
+
}
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
.ghost:active:not(:disabled) {
|
|
50
52
|
background: var(--dsw-alias-interactive-bg-active);
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
/*
|
|
55
|
+
/* The transparent border preserves layout; the inset stroke stays complete at fractional widths. */
|
|
54
56
|
.outline {
|
|
55
|
-
border: 0.5px solid
|
|
57
|
+
border: 0.5px solid transparent;
|
|
56
58
|
background: transparent;
|
|
59
|
+
box-shadow: inset 0 0 0 var(--dsh-hairline-width, 0.5px) var(--dsh-button-outline-color, var(--dsw-alias-border-l3));
|
|
57
60
|
}
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
@media (hover: hover) {
|
|
63
|
+
.outline:hover:not(:disabled) {
|
|
64
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
.toolbar {
|
|
64
69
|
background: var(--dsw-alias-button-tool-bar-fill);
|
|
65
70
|
}
|
|
66
71
|
|
|
67
|
-
|
|
68
|
-
|
|
72
|
+
@media (hover: hover) {
|
|
73
|
+
.toolbar:hover:not(:disabled) {
|
|
74
|
+
background: var(--dsw-alias-button-tool-bar-hover);
|
|
75
|
+
}
|
|
69
76
|
}
|
|
70
77
|
|
|
71
78
|
.icon {
|
package/lib/CodeCard.module.css
CHANGED
|
@@ -39,12 +39,14 @@
|
|
|
39
39
|
cursor: pointer;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
@media (hover: hover) {
|
|
43
|
+
.warning:hover {
|
|
44
|
+
background: color-mix(
|
|
45
|
+
in srgb,
|
|
46
|
+
var(--dsw-alias-state-warn-tertiary),
|
|
47
|
+
var(--dsw-alias-state-warn-primary) 6%
|
|
48
|
+
);
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.warning:active {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.section {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.document {
|
|
9
|
+
min-width: 0;
|
|
10
|
+
/* A long README scrolls inside the section instead of pushing the page's later sections out of reach. */
|
|
11
|
+
max-height: min(560px, 60vh);
|
|
12
|
+
overflow-y: auto;
|
|
13
|
+
/* Horizontal rules separate the document from its neighbors; a full frame would clash with the images' own corners. */
|
|
14
|
+
border-block: 0.5px solid var(--dsw-alias-border-l1);
|
|
15
|
+
/* Keep the scrollbar off the text and the text width independent of overflow. */
|
|
16
|
+
scrollbar-gutter: stable;
|
|
17
|
+
padding: 12px 0;
|
|
18
|
+
overflow-wrap: anywhere;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.document:focus-visible {
|
|
22
|
+
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
23
|
+
outline-offset: 3px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.failure {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.error {
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 6px;
|
|
36
|
+
margin: 0;
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
line-height: 20px;
|
|
39
|
+
color: var(--dsw-alias-state-error-primary);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.skeleton {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
gap: 10px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.bar {
|
|
49
|
+
display: block;
|
|
50
|
+
height: 12px;
|
|
51
|
+
border-radius: var(--dsw-radius-xs);
|
|
52
|
+
background: var(--dsw-alias-bg-skeleton);
|
|
53
|
+
animation: dsh-plugin-detail-skeleton 2s cubic-bezier(0.36, 0, 0.64, 1) infinite;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.long { width: min(480px, 90%); }
|
|
57
|
+
.short { width: min(240px, 50%); }
|
|
58
|
+
|
|
59
|
+
@keyframes dsh-plugin-detail-skeleton {
|
|
60
|
+
0% { opacity: 1; }
|
|
61
|
+
40% { opacity: 0.6; }
|
|
62
|
+
80%, 100% { opacity: 1; }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@media (prefers-reduced-motion: reduce) {
|
|
66
|
+
.bar { animation: none; }
|
|
67
|
+
}
|
package/lib/DiffBlock.module.css
CHANGED
|
@@ -43,8 +43,10 @@
|
|
|
43
43
|
cursor: pointer;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
@media (hover: hover) {
|
|
47
|
+
.row:hover {
|
|
48
|
+
color: var(--dsw-alias-label-secondary);
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
.leading {
|
|
@@ -89,12 +91,14 @@ button.leading {
|
|
|
89
91
|
transition: opacity 100ms ease;
|
|
90
92
|
}
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
@media (hover: hover) {
|
|
95
|
+
.row:hover .iconIdle {
|
|
96
|
+
opacity: 0;
|
|
97
|
+
}
|
|
95
98
|
|
|
96
|
-
.row:hover .chevronHover {
|
|
97
|
-
|
|
99
|
+
.row:hover .chevronHover {
|
|
100
|
+
opacity: 1;
|
|
101
|
+
}
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
.title {
|
package/lib/HoverCard.module.css
CHANGED
|
@@ -88,3 +88,16 @@
|
|
|
88
88
|
backdrop-filter: var(--dsw-menu-backdrop-filter);
|
|
89
89
|
box-shadow: var(--dsw-elevation-panel);
|
|
90
90
|
}
|
|
91
|
+
|
|
92
|
+
.fitContent {
|
|
93
|
+
width: max-content;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.portal {
|
|
97
|
+
display: contents;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.bridge {
|
|
101
|
+
position: fixed;
|
|
102
|
+
z-index: 100;
|
|
103
|
+
}
|
package/lib/JsonTree.module.css
CHANGED
|
@@ -43,11 +43,16 @@
|
|
|
43
43
|
padding: 6px 8px 8px 14px;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.expandedTopLevel:has(> .topLevelBracket[data-json-root-row]:hover),
|
|
47
46
|
.expandedTopLevel:has(> .topLevelBracket[data-json-root-row][data-json-copy-active]) {
|
|
48
47
|
background: var(--json-tree-hover);
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
@media (hover: hover) {
|
|
51
|
+
.expandedTopLevel:has(> .topLevelBracket[data-json-root-row]:hover) {
|
|
52
|
+
background: var(--json-tree-hover);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
51
56
|
.expandedTopLevelContainer {
|
|
52
57
|
padding: 0;
|
|
53
58
|
}
|
|
@@ -75,7 +80,6 @@
|
|
|
75
80
|
white-space: pre-wrap;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
|
-
.row:not(.topLevelBracket):hover:not(:has(.row:hover))::after,
|
|
79
83
|
.row:not(.topLevelBracket)[data-json-copy-active]::after,
|
|
80
84
|
.row:has(> .expander:focus-visible)::after {
|
|
81
85
|
position: absolute;
|
|
@@ -89,6 +93,20 @@
|
|
|
89
93
|
pointer-events: none;
|
|
90
94
|
}
|
|
91
95
|
|
|
96
|
+
@media (hover: hover) {
|
|
97
|
+
.row:not(.topLevelBracket):hover:not(:has(.row:hover))::after {
|
|
98
|
+
position: absolute;
|
|
99
|
+
z-index: 0;
|
|
100
|
+
top: 0;
|
|
101
|
+
right: 0;
|
|
102
|
+
left: 0;
|
|
103
|
+
height: var(--json-tree-row-height, 16px);
|
|
104
|
+
background: var(--json-tree-hover);
|
|
105
|
+
content: '';
|
|
106
|
+
pointer-events: none;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
92
110
|
.row > span:not(.expander, .copySlot) {
|
|
93
111
|
position: relative;
|
|
94
112
|
z-index: 1;
|
|
@@ -182,8 +200,10 @@
|
|
|
182
200
|
pointer-events: auto;
|
|
183
201
|
}
|
|
184
202
|
|
|
185
|
-
|
|
186
|
-
|
|
203
|
+
@media (hover: hover) {
|
|
204
|
+
.stringToggle:hover {
|
|
205
|
+
color: var(--dsw-alias-label-primary);
|
|
206
|
+
}
|
|
187
207
|
}
|
|
188
208
|
|
|
189
209
|
.stringToggle:focus-visible {
|
|
@@ -254,13 +274,19 @@
|
|
|
254
274
|
padding-right: 24px;
|
|
255
275
|
}
|
|
256
276
|
|
|
257
|
-
.row:hover:not(:has(.row:hover)) > .copySlot,
|
|
258
277
|
.row[data-json-copy-active] > .copySlot,
|
|
259
278
|
.copySlot:focus-within {
|
|
260
279
|
opacity: 1;
|
|
261
280
|
pointer-events: auto;
|
|
262
281
|
}
|
|
263
282
|
|
|
283
|
+
@media (hover: hover) {
|
|
284
|
+
.row:hover:not(:has(.row:hover)) > .copySlot {
|
|
285
|
+
opacity: 1;
|
|
286
|
+
pointer-events: auto;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
264
290
|
.actionButton {
|
|
265
291
|
box-sizing: border-box;
|
|
266
292
|
display: inline-flex;
|
|
@@ -277,8 +303,10 @@
|
|
|
277
303
|
cursor: pointer;
|
|
278
304
|
}
|
|
279
305
|
|
|
280
|
-
|
|
281
|
-
|
|
306
|
+
@media (hover: hover) {
|
|
307
|
+
.actionButton:hover {
|
|
308
|
+
color: var(--dsw-alias-label-primary);
|
|
309
|
+
}
|
|
282
310
|
}
|
|
283
311
|
|
|
284
312
|
.actionButton[aria-pressed='true'] {
|
|
@@ -326,8 +354,10 @@
|
|
|
326
354
|
transform: rotate(90deg) scale(0.75);
|
|
327
355
|
}
|
|
328
356
|
|
|
329
|
-
|
|
330
|
-
|
|
357
|
+
@media (hover: hover) {
|
|
358
|
+
.expander:hover {
|
|
359
|
+
color: var(--dsw-alias-label-primary);
|
|
360
|
+
}
|
|
331
361
|
}
|
|
332
362
|
|
|
333
363
|
.expander:focus-visible {
|
|
@@ -343,3 +373,9 @@
|
|
|
343
373
|
.collapsedContent::after {
|
|
344
374
|
content: '…';
|
|
345
375
|
}
|
|
376
|
+
|
|
377
|
+
@media (hover: none) {
|
|
378
|
+
.copySlot { opacity: 1; pointer-events: auto; }
|
|
379
|
+
|
|
380
|
+
.row:has(> .copySlot) { padding-right: 24px; }
|
|
381
|
+
}
|
package/lib/Menu.module.css
CHANGED
|
@@ -109,8 +109,10 @@
|
|
|
109
109
|
text-align: left;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
@media (hover: hover) {
|
|
113
|
+
.item:hover:not(:disabled) {
|
|
114
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
115
|
+
}
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
/* Arrow navigation moves real focus, so the row the keyboard is on carries the
|
|
@@ -206,6 +208,12 @@
|
|
|
206
208
|
line-height: 16px;
|
|
207
209
|
}
|
|
208
210
|
|
|
211
|
+
@media (pointer: coarse) {
|
|
212
|
+
:global(html:not([data-input-modality='keyboard'])) .shortcut {
|
|
213
|
+
display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
209
217
|
.check {
|
|
210
218
|
flex: none;
|
|
211
219
|
color: var(--dsw-alias-label-primary);
|
|
@@ -231,8 +239,10 @@
|
|
|
231
239
|
color: var(--dsw-alias-state-error-primary);
|
|
232
240
|
}
|
|
233
241
|
|
|
234
|
-
|
|
235
|
-
|
|
242
|
+
@media (hover: hover) {
|
|
243
|
+
.danger:hover:not(:disabled) {
|
|
244
|
+
background: var(--dsw-alias-interactive-bg-hover-danger);
|
|
245
|
+
}
|
|
236
246
|
}
|
|
237
247
|
|
|
238
248
|
.danger:focus-visible:not(:disabled) {
|
package/lib/Modal.module.css
CHANGED
|
@@ -98,8 +98,10 @@
|
|
|
98
98
|
color: var(--dsw-alias-label-secondary);
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
@media (hover: hover) {
|
|
102
|
+
.close:hover {
|
|
103
|
+
background: var(--dsw-alias-interactive-bg-hover);
|
|
104
|
+
}
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
/* Description and body share the 332px content column (24px side pads). */
|
package/lib/Pill.module.css
CHANGED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.quote {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: baseline;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
max-width: min(80%, 300px);
|
|
7
|
+
margin: 0;
|
|
8
|
+
padding: 0;
|
|
9
|
+
vertical-align: baseline;
|
|
10
|
+
color: var(--dsw-alias-state-business-primary);
|
|
11
|
+
font-size: var(--dsh-content-font-size, 14px);
|
|
12
|
+
line-height: calc(20px + var(--dsh-content-font-delta, 0px));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.popoverText {
|
|
16
|
+
display: block;
|
|
17
|
+
padding: 8px 10px;
|
|
18
|
+
color: var(--dsw-alias-label-primary);
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
line-height: 20px;
|
|
21
|
+
overflow-wrap: anywhere;
|
|
22
|
+
white-space: pre-wrap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.source {
|
|
26
|
+
min-width: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
border: none;
|
|
29
|
+
outline: none;
|
|
30
|
+
background: none;
|
|
31
|
+
color: inherit;
|
|
32
|
+
font: inherit;
|
|
33
|
+
line-height: inherit;
|
|
34
|
+
text-align: left;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
text-overflow: ellipsis;
|
|
37
|
+
white-space: nowrap;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.marker,
|
|
41
|
+
.remove {
|
|
42
|
+
display: grid;
|
|
43
|
+
place-items: center;
|
|
44
|
+
align-self: center;
|
|
45
|
+
flex: none;
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
padding: 0;
|
|
49
|
+
color: inherit;
|
|
50
|
+
user-select: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.marker {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.remove {
|
|
58
|
+
border: none;
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
corner-shape: round;
|
|
61
|
+
background: transparent;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.quoteMark,
|
|
66
|
+
.closeMark {
|
|
67
|
+
grid-area: 1 / 1;
|
|
68
|
+
transition: opacity 120ms ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.closeMark {
|
|
72
|
+
opacity: 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.quote[data-removable]:focus-within .quoteMark {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.quote[data-removable]:focus-within .closeMark {
|
|
80
|
+
opacity: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (hover: hover) {
|
|
84
|
+
.quote[data-removable]:hover .quoteMark {
|
|
85
|
+
opacity: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.quote[data-removable]:hover .closeMark {
|
|
89
|
+
opacity: 1;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (hover: none) {
|
|
94
|
+
.quote[data-removable] .quoteMark {
|
|
95
|
+
opacity: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.quote[data-removable] .closeMark {
|
|
99
|
+
opacity: 1;
|
|
100
|
+
}
|
|
101
|
+
}
|
package/lib/ReadBlock.module.css
CHANGED
|
@@ -53,11 +53,16 @@
|
|
|
53
53
|
transition: color 120ms ease;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
.tab:hover:not(:disabled),
|
|
57
56
|
.tab[aria-selected='true'] {
|
|
58
57
|
color: var(--dsw-alias-label-primary);
|
|
59
58
|
}
|
|
60
59
|
|
|
60
|
+
@media (hover: hover) {
|
|
61
|
+
.tab:hover:not(:disabled) {
|
|
62
|
+
color: var(--dsw-alias-label-primary);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
61
66
|
.tab:disabled {
|
|
62
67
|
cursor: default;
|
|
63
68
|
opacity: 0.4;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
.tabs {
|
|
2
|
+
--segmented-tabs-inset: 4px;
|
|
3
|
+
|
|
2
4
|
position: relative;
|
|
3
5
|
display: grid;
|
|
4
|
-
padding:
|
|
6
|
+
padding: var(--segmented-tabs-inset);
|
|
5
7
|
border-radius: var(--dsw-radius-lg);
|
|
6
8
|
background: var(--dsw-alias-bg-module-platform);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
.indicator {
|
|
10
12
|
position: absolute;
|
|
11
|
-
inset:
|
|
13
|
+
inset: var(--segmented-tabs-inset) auto var(--segmented-tabs-inset) var(--segmented-tabs-inset);
|
|
12
14
|
box-sizing: border-box;
|
|
13
15
|
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
14
16
|
border-radius: var(--dsw-radius-md);
|
|
@@ -30,16 +32,36 @@
|
|
|
30
32
|
transition: color 180ms ease;
|
|
31
33
|
}
|
|
32
34
|
|
|
33
|
-
.tab:hover,
|
|
34
35
|
.tab[aria-selected='true'] {
|
|
35
36
|
background: transparent;
|
|
36
37
|
color: var(--dsw-alias-label-primary);
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
@media (hover: hover) {
|
|
41
|
+
.tab:hover {
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--dsw-alias-label-primary);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
39
47
|
.tab[aria-selected='true'] {
|
|
40
48
|
font-weight: 600;
|
|
41
49
|
}
|
|
42
50
|
|
|
51
|
+
.tabs[data-size='sm'] {
|
|
52
|
+
--segmented-tabs-inset: 2px;
|
|
53
|
+
|
|
54
|
+
border-radius: calc(var(--dsw-radius-md) + var(--segmented-tabs-inset));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tabs[data-size='sm'] .tab {
|
|
58
|
+
height: 30px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tabs[data-size='sm'] .tab[aria-selected='true'] {
|
|
62
|
+
font-weight: 500;
|
|
63
|
+
}
|
|
64
|
+
|
|
43
65
|
.tab:focus-visible {
|
|
44
66
|
outline: none;
|
|
45
67
|
text-decoration: underline;
|
package/lib/Toast.module.css
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.bubble {
|
|
2
|
+
max-width: 100%;
|
|
3
|
+
background: var(--dsw-specific-bubble);
|
|
4
|
+
border-radius: var(--dsw-radius-xl);
|
|
5
|
+
padding: 10px 16px;
|
|
6
|
+
font-size: var(--dsh-content-font-size, 14px);
|
|
7
|
+
line-height: calc(22px + var(--dsh-content-font-delta, 0px));
|
|
8
|
+
color: var(--dsw-alias-label-primary);
|
|
9
|
+
white-space: pre-wrap;
|
|
10
|
+
word-break: break-word;
|
|
11
|
+
}
|
package/lib/WebBlock.module.css
CHANGED
|
@@ -69,12 +69,18 @@
|
|
|
69
69
|
margin-right: 5px;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
.sourceLink:hover,
|
|
73
72
|
.sourceLink:focus-visible {
|
|
74
73
|
text-decoration: underline dotted;
|
|
75
74
|
text-underline-offset: 3px;
|
|
76
75
|
}
|
|
77
76
|
|
|
77
|
+
@media (hover: hover) {
|
|
78
|
+
.sourceLink:hover {
|
|
79
|
+
text-decoration: underline dotted;
|
|
80
|
+
text-underline-offset: 3px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
.snippet {
|
|
79
85
|
margin-top: 2px;
|
|
80
86
|
color: var(--dsw-alias-label-secondary);
|
|
@@ -117,12 +123,18 @@
|
|
|
117
123
|
text-decoration: none;
|
|
118
124
|
}
|
|
119
125
|
|
|
120
|
-
.fetchUrl:hover,
|
|
121
126
|
.fetchUrl:focus-visible {
|
|
122
127
|
text-decoration: underline dotted;
|
|
123
128
|
text-underline-offset: 3px;
|
|
124
129
|
}
|
|
125
130
|
|
|
131
|
+
@media (hover: hover) {
|
|
132
|
+
.fetchUrl:hover {
|
|
133
|
+
text-decoration: underline dotted;
|
|
134
|
+
text-underline-offset: 3px;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
126
138
|
.fetchMeta {
|
|
127
139
|
display: flex;
|
|
128
140
|
align-items: baseline;
|