@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
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* Zero specificity lets an owner className move the toolbar regardless of stylesheet order. */
|
|
2
|
+
:where(.panel) {
|
|
3
|
+
bottom: 14px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.panel {
|
|
7
|
+
position: absolute;
|
|
8
|
+
z-index: 2;
|
|
9
|
+
inset-inline-start: 50%;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: 2px;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
padding: 4px 6px;
|
|
15
|
+
/* TODO: replace this border and the literal shadow with `border: 0` and `--dsw-elevation-panel`
|
|
16
|
+
* (docs/web-styling.md#component-rules), with visual review of the document preview. */
|
|
17
|
+
border: 0.5px solid var(--dsw-alias-border-l3);
|
|
18
|
+
border-radius: var(--dsw-radius-lg);
|
|
19
|
+
color: var(--dsw-alias-label-primary);
|
|
20
|
+
background: var(--dsw-alias-bg-layer-1);
|
|
21
|
+
box-shadow: 0 8px 24px light-dark(#0000001a, #00000060), 0 2px 5px light-dark(#00000009, #00000035);
|
|
22
|
+
font-size: 12px;
|
|
23
|
+
line-height: 18px;
|
|
24
|
+
opacity: 0;
|
|
25
|
+
pointer-events: none;
|
|
26
|
+
transform: translate(-50%, 16px) scale(0.98);
|
|
27
|
+
transition: opacity 160ms ease-in, transform 160ms cubic-bezier(0.4, 0, 1, 1);
|
|
28
|
+
will-change: opacity, transform;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.visible {
|
|
32
|
+
opacity: 1;
|
|
33
|
+
pointer-events: auto;
|
|
34
|
+
transform: translate(-50%, 0) scale(1);
|
|
35
|
+
transition: opacity 140ms ease-out, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.controlAnchor { display: flex; }
|
|
39
|
+
.zoomButton { width: 28px; padding: 0; flex: none; }
|
|
40
|
+
.percent { display: inline-flex; align-items: center; justify-content: center; gap: 2px; min-width: 58px; padding-inline: 6px; font-variant-numeric: tabular-nums; }
|
|
41
|
+
.zoomMenu { min-width: 112px; }
|
|
42
|
+
|
|
43
|
+
@media (hover: none), (pointer: coarse) {
|
|
44
|
+
.panel {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
pointer-events: auto;
|
|
47
|
+
transform: translate(-50%, 0) scale(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: reduce) {
|
|
52
|
+
.panel,
|
|
53
|
+
.visible { transition-duration: 0.01ms; }
|
|
54
|
+
}
|