@deepseek-ai/dsh-client-ui-primitives 0.2.2-rc.1 → 0.2.2-rc.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 +16 -16
- package/README.md +21 -14
- package/README.zh.md +21 -14
- package/lib/HoverCard.module.css +8 -3
- package/lib/JsonTree.module.css +7 -17
- package/lib/Menu.module.css +157 -37
- package/lib/Modal.module.css +16 -0
- package/lib/QuotePreview.module.css +37 -0
- package/lib/RiskConfirmation.module.css +11 -37
- package/lib/Toast.module.css +2 -3
- package/lib/Tooltip.module.css +2 -1
- package/lib/index.js +1447 -776
- package/lib/index.js.map +1 -0
- package/lib/markdown/CodeBlock.module.css +64 -0
- package/lib/markdown/MarkdownText.module.css +20 -1
- package/lib/types/AnimatedRows.d.ts +3 -0
- package/lib/types/AnimatedRows.d.ts.map +1 -0
- package/lib/types/AnimatedRows.js.map +1 -0
- package/lib/types/BrandWordmark.d.ts.map +1 -0
- package/lib/types/BrandWordmark.js.map +1 -0
- package/lib/types/Button.d.ts.map +1 -0
- package/lib/types/Button.js.map +1 -0
- package/lib/types/Checkbox.d.ts +3 -1
- package/lib/types/Checkbox.d.ts.map +1 -0
- package/lib/types/Checkbox.js.map +1 -0
- package/lib/types/CodeFileIcon.d.ts.map +1 -0
- package/lib/types/CodeFileIcon.js.map +1 -0
- package/lib/types/CodeToolbar.d.ts.map +1 -0
- package/lib/types/CodeToolbar.js.map +1 -0
- package/lib/types/CommandText.d.ts.map +1 -0
- package/lib/types/CommandText.js.map +1 -0
- package/lib/types/ConfigField.d.ts.map +1 -0
- package/lib/types/ConfigField.js.map +1 -0
- package/lib/types/ConnectionIndicator.d.ts.map +1 -0
- package/lib/types/ConnectionIndicator.js.map +1 -0
- package/lib/types/DetailDocument.d.ts.map +1 -0
- package/lib/types/DetailDocument.js.map +1 -0
- package/lib/types/DiffBlock.d.ts.map +1 -0
- package/lib/types/DiffBlock.js.map +1 -0
- package/lib/types/DisclosureRow.d.ts.map +1 -0
- package/lib/types/DisclosureRow.js.map +1 -0
- package/lib/types/DraggableImage.d.ts.map +1 -0
- package/lib/types/DraggableImage.js.map +1 -0
- package/lib/types/FileTypeIcon.d.ts.map +1 -0
- package/lib/types/FileTypeIcon.js.map +1 -0
- package/lib/types/FishLogo.d.ts.map +1 -0
- package/lib/types/FishLogo.js.map +1 -0
- package/lib/types/FoldToggle.d.ts.map +1 -0
- package/lib/types/FoldToggle.js.map +1 -0
- package/lib/types/HoverCard.d.ts.map +1 -0
- package/lib/types/HoverCard.js.map +1 -0
- package/lib/types/HoverCardGroup.d.ts.map +1 -0
- package/lib/types/HoverCardGroup.js.map +1 -0
- package/lib/types/ImageLightbox.d.ts.map +1 -0
- package/lib/types/ImageLightbox.js.map +1 -0
- package/lib/types/ImagePreview.d.ts.map +1 -0
- package/lib/types/ImagePreview.js.map +1 -0
- package/lib/types/InlineEditor.d.ts.map +1 -0
- package/lib/types/InlineEditor.js.map +1 -0
- package/lib/types/Input.d.ts.map +1 -0
- package/lib/types/Input.js.map +1 -0
- package/lib/types/JsonTree.d.ts.map +1 -0
- package/lib/types/JsonTree.js.map +1 -0
- package/lib/types/LinkIcon.d.ts.map +1 -0
- package/lib/types/LinkIcon.js.map +1 -0
- package/lib/types/Menu.d.ts +26 -14
- package/lib/types/Menu.d.ts.map +1 -0
- package/lib/types/Menu.js.map +1 -0
- package/lib/types/MenuGroup.d.ts.map +1 -0
- package/lib/types/MenuGroup.js.map +1 -0
- package/lib/types/MenuRow.d.ts +37 -0
- package/lib/types/MenuRow.d.ts.map +1 -0
- package/lib/types/MenuRow.js.map +1 -0
- package/lib/types/MenuSurface.d.ts.map +1 -0
- package/lib/types/MenuSurface.js.map +1 -0
- package/lib/types/Modal.d.ts +3 -1
- package/lib/types/Modal.d.ts.map +1 -0
- package/lib/types/Modal.js.map +1 -0
- package/lib/types/PathLabel.d.ts.map +1 -0
- package/lib/types/PathLabel.js.map +1 -0
- package/lib/types/PermissionIcon.d.ts.map +1 -0
- package/lib/types/PermissionIcon.js.map +1 -0
- package/lib/types/Pill.d.ts.map +1 -0
- package/lib/types/Pill.js.map +1 -0
- package/lib/types/QuotePreview.d.ts +17 -4
- package/lib/types/QuotePreview.d.ts.map +1 -0
- package/lib/types/QuotePreview.js.map +1 -0
- package/lib/types/ReadBlock.d.ts.map +1 -0
- package/lib/types/ReadBlock.js.map +1 -0
- package/lib/types/ReferenceIcon.d.ts.map +1 -0
- package/lib/types/ReferenceIcon.js.map +1 -0
- package/lib/types/RiskConfirmation.d.ts.map +1 -0
- package/lib/types/RiskConfirmation.js.map +1 -0
- package/lib/types/SearchBlock.d.ts.map +1 -0
- package/lib/types/SearchBlock.js.map +1 -0
- package/lib/types/SegmentedControl.d.ts.map +1 -0
- package/lib/types/SegmentedControl.js.map +1 -0
- package/lib/types/SegmentedTabs.d.ts.map +1 -0
- package/lib/types/SegmentedTabs.js.map +1 -0
- package/lib/types/ShortcutKeys.d.ts.map +1 -0
- package/lib/types/ShortcutKeys.js.map +1 -0
- package/lib/types/SiteGlyph.d.ts.map +1 -0
- package/lib/types/SiteGlyph.js.map +1 -0
- package/lib/types/StateDot.d.ts.map +1 -0
- package/lib/types/StateDot.js.map +1 -0
- package/lib/types/SubmenuPanel.d.ts +19 -0
- package/lib/types/SubmenuPanel.d.ts.map +1 -0
- package/lib/types/SubmenuPanel.js.map +1 -0
- package/lib/types/Switch.d.ts.map +1 -0
- package/lib/types/Switch.js.map +1 -0
- package/lib/types/Tag.d.ts.map +1 -0
- package/lib/types/Tag.js.map +1 -0
- package/lib/types/TerminalBlock.d.ts.map +1 -0
- package/lib/types/TerminalBlock.js.map +1 -0
- package/lib/types/TextShimmer.d.ts.map +1 -0
- package/lib/types/TextShimmer.js.map +1 -0
- package/lib/types/Toast.d.ts.map +1 -0
- package/lib/types/Toast.js.map +1 -0
- package/lib/types/Tooltip.d.ts.map +1 -0
- package/lib/types/Tooltip.js.map +1 -0
- package/lib/types/UserMessageBubble.d.ts.map +1 -0
- package/lib/types/UserMessageBubble.js.map +1 -0
- package/lib/types/WebBlock.d.ts.map +1 -0
- package/lib/types/WebBlock.js.map +1 -0
- package/lib/types/ZoomControls.d.ts.map +1 -0
- package/lib/types/ZoomControls.js.map +1 -0
- package/lib/types/ansi.d.ts.map +1 -0
- package/lib/types/ansi.js.map +1 -0
- package/lib/types/clipboard.d.ts.map +1 -0
- package/lib/types/clipboard.js.map +1 -0
- package/lib/types/code-file-icon-artwork.d.ts.map +1 -0
- package/lib/types/code-file-icon-artwork.js.map +1 -0
- package/lib/types/code-file-types.d.ts.map +1 -0
- package/lib/types/code-file-types.js.map +1 -0
- package/lib/types/code-highlighting.d.ts.map +1 -0
- package/lib/types/code-highlighting.js.map +1 -0
- package/lib/types/darwin-desktop.d.ts.map +1 -0
- package/lib/types/darwin-desktop.js.map +1 -0
- package/lib/types/document-zoom.d.ts.map +1 -0
- package/lib/types/document-zoom.js.map +1 -0
- package/lib/types/file-drag-actions.d.ts.map +1 -0
- package/lib/types/file-drag-actions.js.map +1 -0
- package/lib/types/file-size.d.ts.map +1 -0
- package/lib/types/file-size.js.map +1 -0
- package/lib/types/focus.d.ts.map +1 -0
- package/lib/types/focus.js.map +1 -0
- package/lib/types/guide-artwork.d.ts.map +1 -0
- package/lib/types/guide-artwork.js.map +1 -0
- package/lib/types/head-tail-cap.d.ts.map +1 -0
- package/lib/types/head-tail-cap.js.map +1 -0
- package/lib/types/icons/artwork.d.ts +12 -0
- package/lib/types/icons/artwork.d.ts.map +1 -0
- package/lib/types/icons/artwork.js.map +1 -0
- package/lib/types/icons/index.d.ts +12 -0
- package/lib/types/icons/index.d.ts.map +1 -0
- package/lib/types/icons/index.js.map +1 -0
- package/lib/types/icons/props.d.ts.map +1 -0
- package/lib/types/icons/props.js.map +1 -0
- package/lib/types/icons/shared-artwork.d.ts.map +1 -0
- package/lib/types/icons/shared-artwork.js.map +1 -0
- package/lib/types/image-drag.d.ts.map +1 -0
- package/lib/types/image-drag.js.map +1 -0
- package/lib/types/index.d.ts +5 -4
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/input-modality.d.ts.map +1 -0
- package/lib/types/input-modality.js.map +1 -0
- package/lib/types/keyboard-composition.d.ts.map +1 -0
- package/lib/types/keyboard-composition.js.map +1 -0
- package/lib/types/markdown/CodeBlock.d.ts +8 -1
- package/lib/types/markdown/CodeBlock.d.ts.map +1 -0
- package/lib/types/markdown/CodeBlock.js.map +1 -0
- package/lib/types/markdown/FenceBlocks.d.ts +31 -0
- package/lib/types/markdown/FenceBlocks.d.ts.map +1 -0
- package/lib/types/markdown/FenceBlocks.js.map +1 -0
- package/lib/types/markdown/JsonBlock.d.ts.map +1 -0
- package/lib/types/markdown/JsonBlock.js.map +1 -0
- package/lib/types/markdown/MarkdownDelegate.d.ts +23 -1
- package/lib/types/markdown/MarkdownDelegate.d.ts.map +1 -0
- package/lib/types/markdown/MarkdownDelegate.js.map +1 -0
- package/lib/types/markdown/MarkdownText.d.ts +2 -0
- package/lib/types/markdown/MarkdownText.d.ts.map +1 -0
- package/lib/types/markdown/MarkdownText.js.map +1 -0
- package/lib/types/markdown/cjkFriendlyStrong.d.ts.map +1 -0
- package/lib/types/markdown/cjkFriendlyStrong.js.map +1 -0
- package/lib/types/markdown/copy-tex.d.ts +14 -0
- package/lib/types/markdown/copy-tex.d.ts.map +1 -0
- package/lib/types/markdown/copy-tex.js.map +1 -0
- package/lib/types/markdown/diff-fence.d.ts +58 -0
- package/lib/types/markdown/diff-fence.d.ts.map +1 -0
- package/lib/types/markdown/diff-fence.js.map +1 -0
- package/lib/types/markdown/file-link.d.ts.map +1 -0
- package/lib/types/markdown/file-link.js.map +1 -0
- package/lib/types/markdown/highlight.d.ts +18 -0
- package/lib/types/markdown/highlight.d.ts.map +1 -0
- package/lib/types/markdown/highlight.js.map +1 -0
- package/lib/types/markdown/incremental.d.ts.map +1 -0
- package/lib/types/markdown/incremental.js.map +1 -0
- package/lib/types/markdown/katex.d.ts.map +1 -0
- package/lib/types/markdown/katex.js.map +1 -0
- package/lib/types/markdown/local-image-syntax.d.ts.map +1 -0
- package/lib/types/markdown/local-image-syntax.js.map +1 -0
- package/lib/types/markdown/mathCompatibility.d.ts.map +1 -0
- package/lib/types/markdown/mathCompatibility.js.map +1 -0
- package/lib/types/markdown/parse.d.ts.map +1 -0
- package/lib/types/markdown/parse.js.map +1 -0
- package/lib/types/markdown/plain-text.d.ts.map +1 -0
- package/lib/types/markdown/plain-text.js.map +1 -0
- package/lib/types/markdown/quote-text.d.ts.map +1 -0
- package/lib/types/markdown/quote-text.js.map +1 -0
- package/lib/types/markdown/render.d.ts.map +1 -0
- package/lib/types/markdown/render.js.map +1 -0
- package/lib/types/markdown/useViewportHighlighting.d.ts.map +1 -0
- package/lib/types/markdown/useViewportHighlighting.js.map +1 -0
- package/lib/types/markdown/windows-path-destinations.d.ts.map +1 -0
- package/lib/types/markdown/windows-path-destinations.js.map +1 -0
- package/lib/types/menu-submenu-position.d.ts +15 -0
- package/lib/types/menu-submenu-position.d.ts.map +1 -0
- package/lib/types/menu-submenu-position.js.map +1 -0
- package/lib/types/overlay-top-margin.d.ts.map +1 -0
- package/lib/types/overlay-top-margin.js.map +1 -0
- package/lib/types/plugin-artwork.d.ts.map +1 -0
- package/lib/types/plugin-artwork.js.map +1 -0
- package/lib/types/pointer-grace.d.ts.map +1 -0
- package/lib/types/pointer-grace.js.map +1 -0
- package/lib/types/rank-by-name.d.ts.map +1 -0
- package/lib/types/rank-by-name.js.map +1 -0
- package/lib/types/relative-time.d.ts.map +1 -0
- package/lib/types/relative-time.js.map +1 -0
- package/lib/types/settings-form/SettingsForm.d.ts.map +1 -0
- package/lib/types/settings-form/SettingsForm.js.map +1 -0
- package/lib/types/settings-form/fields.d.ts.map +1 -0
- package/lib/types/settings-form/fields.js.map +1 -0
- package/lib/types/settings-form/form-model.d.ts.map +1 -0
- package/lib/types/settings-form/form-model.js.map +1 -0
- package/lib/types/tooltip-placement.d.ts.map +1 -0
- package/lib/types/tooltip-placement.js.map +1 -0
- package/lib/types/use-clipboard-copy.d.ts.map +1 -0
- package/lib/types/use-clipboard-copy.js.map +1 -0
- package/lib/types/useAnchoredMaxHeight.d.ts.map +1 -0
- package/lib/types/useAnchoredMaxHeight.js.map +1 -0
- package/lib/types/useDismissOnOutsidePointer.d.ts.map +1 -0
- package/lib/types/useDismissOnOutsidePointer.js.map +1 -0
- package/lib/types/useMenuSubmenu.d.ts +43 -0
- package/lib/types/useMenuSubmenu.d.ts.map +1 -0
- package/lib/types/useMenuSubmenu.js.map +1 -0
- package/lib/types/useModalLayer.d.ts.map +1 -0
- package/lib/types/useModalLayer.js.map +1 -0
- package/lib/types/useRowDragPreview.d.ts.map +1 -0
- package/lib/types/useRowDragPreview.js.map +1 -0
- package/lib/types/user-text.d.ts.map +1 -0
- package/lib/types/user-text.js.map +1 -0
- package/package.json +9 -6
- package/src/AnimatedRows.module.css +7 -0
- package/src/AnimatedRows.tsx +195 -0
- package/src/BrandWordmark.tsx +59 -0
- package/src/Button.module.css +84 -0
- package/src/Button.tsx +36 -0
- package/src/Checkbox.module.css +28 -0
- package/src/Checkbox.tsx +34 -0
- package/src/CodeCard.module.css +85 -0
- package/src/CodeFileIcon.tsx +28 -0
- package/src/CodeToolbar.tsx +62 -0
- package/src/CommandText.module.css +12 -0
- package/src/CommandText.tsx +46 -0
- package/src/ConfigField.module.css +12 -0
- package/src/ConfigField.tsx +53 -0
- package/src/ConnectionIndicator.module.css +120 -0
- package/src/ConnectionIndicator.tsx +103 -0
- package/src/DetailDocument.module.css +67 -0
- package/src/DetailDocument.tsx +120 -0
- package/src/DiffBlock.module.css +82 -0
- package/src/DiffBlock.tsx +221 -0
- package/src/DisclosureRow.module.css +115 -0
- package/src/DisclosureRow.tsx +124 -0
- package/src/DraggableImage.tsx +26 -0
- package/src/FileTypeIcon.module.css +50 -0
- package/src/FileTypeIcon.tsx +285 -0
- package/src/FishLogo.tsx +28 -0
- package/src/FoldToggle.tsx +33 -0
- package/src/HoverCard.module.css +108 -0
- package/src/HoverCard.tsx +356 -0
- package/src/HoverCardGroup.tsx +77 -0
- package/src/ImageLightbox.module.css +54 -0
- package/src/ImageLightbox.tsx +72 -0
- package/src/ImagePreview.module.css +24 -0
- package/src/ImagePreview.tsx +36 -0
- package/src/InlineEditor.module.css +23 -0
- package/src/InlineEditor.tsx +69 -0
- package/src/Input.module.css +38 -0
- package/src/Input.tsx +24 -0
- package/src/JsonTree.module.css +371 -0
- package/src/JsonTree.tsx +850 -0
- package/src/LinkIcon.tsx +118 -0
- package/src/Menu.module.css +443 -0
- package/src/Menu.tsx +553 -0
- package/src/MenuGroup.module.css +37 -0
- package/src/MenuGroup.tsx +103 -0
- package/src/MenuRow.tsx +89 -0
- package/src/MenuSurface.module.css +65 -0
- package/src/MenuSurface.tsx +54 -0
- package/src/Modal.module.css +147 -0
- package/src/Modal.tsx +96 -0
- package/src/PathLabel.module.css +28 -0
- package/src/PathLabel.tsx +41 -0
- package/src/PermissionIcon.tsx +119 -0
- package/src/Pill.module.css +30 -0
- package/src/Pill.tsx +36 -0
- package/src/QuotePreview.module.css +138 -0
- package/src/QuotePreview.tsx +133 -0
- package/src/ReadBlock.module.css +45 -0
- package/src/ReadBlock.tsx +151 -0
- package/src/ReferenceIcon.tsx +49 -0
- package/src/RiskConfirmation.module.css +47 -0
- package/src/RiskConfirmation.tsx +79 -0
- package/src/RowDragPreview.module.css +12 -0
- package/src/SearchBlock.module.css +114 -0
- package/src/SearchBlock.tsx +281 -0
- package/src/SegmentedControl.module.css +81 -0
- package/src/SegmentedControl.tsx +140 -0
- package/src/SegmentedTabs.module.css +77 -0
- package/src/SegmentedTabs.tsx +84 -0
- package/src/ShortcutKeys.module.css +33 -0
- package/src/ShortcutKeys.tsx +12 -0
- package/src/SiteGlyph.tsx +149 -0
- package/src/StateDot.module.css +100 -0
- package/src/StateDot.tsx +77 -0
- package/src/SubmenuPanel.tsx +51 -0
- package/src/Switch.module.css +49 -0
- package/src/Switch.tsx +42 -0
- package/src/Tag.module.css +57 -0
- package/src/Tag.tsx +42 -0
- package/src/TerminalBlock.module.css +207 -0
- package/src/TerminalBlock.tsx +294 -0
- package/src/TextShimmer.module.css +88 -0
- package/src/TextShimmer.tsx +58 -0
- package/src/Toast.module.css +102 -0
- package/src/Toast.tsx +101 -0
- package/src/Tooltip.module.css +68 -0
- package/src/Tooltip.tsx +273 -0
- package/src/UserMessageBubble.module.css +11 -0
- package/src/UserMessageBubble.tsx +16 -0
- package/src/WebBlock.module.css +153 -0
- package/src/WebBlock.tsx +196 -0
- package/src/ZoomControls.module.css +54 -0
- package/src/ZoomControls.tsx +92 -0
- package/src/ansi.ts +447 -0
- package/src/clipboard.ts +47 -0
- package/src/code-file-icon-artwork.manifest.json +71 -0
- package/src/code-file-icon-artwork.ts +60 -0
- package/src/code-file-types.ts +340 -0
- package/src/code-highlighting.ts +25 -0
- package/src/css-modules.d.ts +6 -0
- package/src/darwin-desktop.ts +11 -0
- package/src/document-zoom.ts +12 -0
- package/src/file-drag-actions.ts +29 -0
- package/src/file-size.ts +16 -0
- package/src/focus.ts +44 -0
- package/src/guide-artwork.tsx +32 -0
- package/src/head-tail-cap.ts +27 -0
- package/src/icons/artwork.ts +156 -0
- package/src/icons/index.tsx +634 -0
- package/src/icons/props.ts +8 -0
- package/src/icons/shared-artwork.tsx +71 -0
- package/src/image-drag.ts +84 -0
- package/src/index.ts +142 -0
- package/src/input-modality.ts +59 -0
- package/src/keyboard-composition.ts +36 -0
- package/src/markdown/CodeBlock.module.css +209 -0
- package/src/markdown/CodeBlock.tsx +268 -0
- package/src/markdown/FenceBlocks.tsx +51 -0
- package/src/markdown/JsonBlock.module.css +34 -0
- package/src/markdown/JsonBlock.tsx +36 -0
- package/src/markdown/MarkdownDelegate.tsx +102 -0
- package/src/markdown/MarkdownText.module.css +511 -0
- package/src/markdown/MarkdownText.tsx +218 -0
- package/src/markdown/cjkFriendlyStrong.ts +83 -0
- package/src/markdown/copy-tex.ts +53 -0
- package/src/markdown/diff-fence.ts +212 -0
- package/src/markdown/file-link.ts +45 -0
- package/src/markdown/highlight.ts +689 -0
- package/src/markdown/incremental.ts +360 -0
- package/src/markdown/katex.tsx +90 -0
- package/src/markdown/local-image-syntax.ts +29 -0
- package/src/markdown/mathCompatibility.ts +349 -0
- package/src/markdown/parse.ts +49 -0
- package/src/markdown/plain-text.ts +121 -0
- package/src/markdown/quote-text.ts +10 -0
- package/src/markdown/render.tsx +834 -0
- package/src/markdown/useViewportHighlighting.ts +72 -0
- package/src/markdown/windows-path-destinations.ts +34 -0
- package/src/menu-submenu-position.ts +20 -0
- package/src/overlay-top-margin.ts +18 -0
- package/src/plugin-artwork.tsx +110 -0
- package/src/pointer-grace.ts +47 -0
- package/src/rank-by-name.ts +93 -0
- package/src/relative-time.ts +36 -0
- package/src/settings-form/SettingsForm.module.css +53 -0
- package/src/settings-form/SettingsForm.tsx +74 -0
- package/src/settings-form/fields.module.css +153 -0
- package/src/settings-form/fields.tsx +151 -0
- package/src/settings-form/form-model.ts +393 -0
- package/src/tooltip-placement.ts +60 -0
- package/src/use-clipboard-copy.ts +44 -0
- package/src/useAnchoredMaxHeight.ts +45 -0
- package/src/useDismissOnOutsidePointer.ts +34 -0
- package/src/useMenuSubmenu.ts +182 -0
- package/src/useModalLayer.ts +108 -0
- package/src/useRowDragPreview.ts +76 -0
- package/src/user-text.module.css +46 -0
- package/src/user-text.tsx +67 -0
- package/lib/types/useAnchoredPosition.d.ts +0 -36
|
@@ -0,0 +1,511 @@
|
|
|
1
|
+
/* Visual baseline: deepsuite `@deepseek/md` markdown.css, adapted to CSS
|
|
2
|
+
Modules. Cite pills and header anchors are absent (no matching DOM).
|
|
3
|
+
Token names match that sheet. */
|
|
4
|
+
|
|
5
|
+
.markdown {
|
|
6
|
+
min-width: 0;
|
|
7
|
+
overflow-wrap: anywhere;
|
|
8
|
+
font: var(--dsw-font-markdown-base);
|
|
9
|
+
color: var(--dsw-alias-label-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.markdown strong {
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.markdown h1 {
|
|
17
|
+
font: var(--dsw-font-markdown-h1);
|
|
18
|
+
margin: 32px 0 16px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.markdown h2 {
|
|
22
|
+
font: var(--dsw-font-markdown-h2);
|
|
23
|
+
margin: 32px 0 16px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.markdown h3 {
|
|
27
|
+
font: var(--dsw-font-markdown-h3);
|
|
28
|
+
margin: 32px 0 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.markdown h4 {
|
|
32
|
+
font: var(--dsw-font-markdown-h4);
|
|
33
|
+
margin: 16px 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.markdown :where(h5, h6) {
|
|
37
|
+
font: var(--dsw-font-markdown-base-strong);
|
|
38
|
+
margin: 16px 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.markdown :where(h1, h2, h3, h4, h5, h6) strong {
|
|
42
|
+
font-weight: inherit;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.markdown p {
|
|
46
|
+
margin: 16px 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Tighten h4–h6 against a following list (design: 8px gap). */
|
|
50
|
+
.markdown :where(h4, h5, h6) + :where(ul, ol) {
|
|
51
|
+
margin-top: 8px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.markdown :where(h4, h5, h6):has(+ :where(ul, ol)) {
|
|
55
|
+
margin-bottom: 8px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.markdown a,
|
|
59
|
+
.markdown .fileLink {
|
|
60
|
+
/* deepsuite markdown.css uses brand-text (blue in newDesign); this sheet
|
|
61
|
+
keeps design-platform brand-text as near-black, so links use the
|
|
62
|
+
dedicated link alias instead. */
|
|
63
|
+
color: var(--dsw-alias-link);
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
transition: box-shadow var(--ds-transition-duration) var(--ds-ease-in-out);
|
|
66
|
+
position: relative;
|
|
67
|
+
text-decoration: none;
|
|
68
|
+
/* Transparent hit-area padding; literal zero-alpha only (no painted color). */
|
|
69
|
+
border-left: 3px solid rgb(255 255 255 / 0);
|
|
70
|
+
border-right: 3px solid rgb(255 255 255 / 0);
|
|
71
|
+
border-top: 2px solid rgb(255 255 255 / 0);
|
|
72
|
+
border-bottom: 2px solid rgb(255 255 255 / 0);
|
|
73
|
+
margin-left: -3px;
|
|
74
|
+
margin-right: -3px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.markdown a:focus {
|
|
78
|
+
outline: none;
|
|
79
|
+
text-decoration: underline dotted var(--dsw-alias-link);
|
|
80
|
+
text-underline-offset: 3px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@media (hover: hover) {
|
|
84
|
+
.markdown a:hover {
|
|
85
|
+
outline: none;
|
|
86
|
+
text-decoration: underline dotted var(--dsw-alias-link);
|
|
87
|
+
text-underline-offset: 3px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.markdown a:focus-visible,
|
|
92
|
+
.fileMention:focus-visible {
|
|
93
|
+
box-shadow: 0 0 0 2px var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Leading link-category glyph inside anchors, file mentions, and
|
|
97
|
+
URL-promoted inline code: outline glyphs ride the link's currentColor.
|
|
98
|
+
1.1em keeps the glyph proportional to the surrounding text's size (it
|
|
99
|
+
shrinks with the code chip's 0.875em); the small negative offset seats
|
|
100
|
+
its optical center on the cap height. */
|
|
101
|
+
.linkIcon {
|
|
102
|
+
flex: none;
|
|
103
|
+
width: 1.1em;
|
|
104
|
+
height: 1.1em;
|
|
105
|
+
vertical-align: -0.25em;
|
|
106
|
+
margin-right: 5px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.markdown :where(ul, ol) {
|
|
110
|
+
margin: 16px 0;
|
|
111
|
+
padding-left: 18px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.markdown li:not(:first-child) {
|
|
115
|
+
margin-top: 6px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.markdown li > :where(ul, ol) {
|
|
119
|
+
margin-top: 4px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.markdown li::marker {
|
|
123
|
+
line-height: 24px;
|
|
124
|
+
color: var(--dsw-alias-label-secondary);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* Nested ol under ul/ol: markers inside (models sometimes emit this shape). */
|
|
128
|
+
.markdown :where(ul, ol) ol {
|
|
129
|
+
list-style-position: inside;
|
|
130
|
+
padding-left: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.markdown :where(ul, ol) ol li p {
|
|
134
|
+
display: inline;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.markdown li > p {
|
|
138
|
+
margin: 8px 0;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.markdown li > *:first-child {
|
|
142
|
+
margin-top: 0;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Keep list-nested code-block vertical margins (design: +4px vs other last children). */
|
|
146
|
+
.markdown li > *:last-child:not(:global(.md-code-block), .fenceSeat) {
|
|
147
|
+
margin-bottom: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.markdown hr {
|
|
151
|
+
display: block;
|
|
152
|
+
border: none;
|
|
153
|
+
height: 0.5px;
|
|
154
|
+
margin: 32px 0;
|
|
155
|
+
background: var(--dsw-alias-border-l2);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.markdown blockquote {
|
|
159
|
+
border-left: 2px solid var(--dsw-alias-label-caption);
|
|
160
|
+
margin: 16px 0 0;
|
|
161
|
+
padding-left: 14px;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.markdown pre {
|
|
165
|
+
margin: 16px 0;
|
|
166
|
+
font-family: var(--ds-font-family-code);
|
|
167
|
+
overflow: auto;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.markdown :not(pre) > code {
|
|
171
|
+
display: inline-flex;
|
|
172
|
+
align-items: center;
|
|
173
|
+
box-sizing: border-box;
|
|
174
|
+
font: var(--dsw-font-markdown-code);
|
|
175
|
+
font-family: var(--ds-font-family-code);
|
|
176
|
+
font-size: 0.875em !important;
|
|
177
|
+
background-color: var(--dsw-alias-markdown-inline-code);
|
|
178
|
+
border: 0.5px solid var(--dsw-alias-border-l1);
|
|
179
|
+
border-radius: var(--dsw-radius-sm);
|
|
180
|
+
padding: 0 5px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.markdown :where(h1, h2, h3, h4, h5, h6) code {
|
|
184
|
+
font: inherit;
|
|
185
|
+
font-family: var(--ds-font-family-code);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.markdown :global(.katex-display) {
|
|
189
|
+
max-width: 100%;
|
|
190
|
+
overflow-x: auto;
|
|
191
|
+
overflow-y: hidden;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.markdown input[type='checkbox'] {
|
|
195
|
+
margin: 0 8px 0 0;
|
|
196
|
+
accent-color: var(--dsw-alias-label-secondary);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.tableScroll {
|
|
200
|
+
max-width: 100%;
|
|
201
|
+
overflow-x: auto;
|
|
202
|
+
overscroll-behavior-x: contain;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* Hover-capable inputs reveal a wide table's bar on hover or keyboard focus.
|
|
206
|
+
Other inputs keep native horizontal scrolling. Chromium never repaints state-conditioned
|
|
207
|
+
scrollbar STYLES (neither hover-conditioned `::-webkit-scrollbar*` rules
|
|
208
|
+
nor a :hover `scrollbar-color` change reaches the painted bar), so the
|
|
209
|
+
toggle is `overflow-x` itself — a layout change repaints reliably. The
|
|
210
|
+
resting padding matches the themed bar's height on the WebKit scrollbar
|
|
211
|
+
path. There, `scroll` reserves that height even when the table fits.
|
|
212
|
+
Other engines and overlay scrollbars may reserve a different height.
|
|
213
|
+
Wheel and trackpad scrolling need the pointer over the table, which is
|
|
214
|
+
already the hover that re-enables scrolling. */
|
|
215
|
+
.tableScroll:global(.md-table-wide):focus-visible {
|
|
216
|
+
overflow-x: scroll;
|
|
217
|
+
padding-bottom: 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@media (hover: hover) {
|
|
221
|
+
.tableScroll:global(.md-table-wide) {
|
|
222
|
+
overflow-x: hidden;
|
|
223
|
+
padding-bottom: var(--dsh-scrollbar-width, 5px);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.tableScroll:global(.md-table-wide):hover {
|
|
227
|
+
overflow-x: scroll;
|
|
228
|
+
padding-bottom: 0;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/* Chromium keyboard-focuses scrollable containers by default; the ring uses
|
|
233
|
+
the sheet's link focus color. */
|
|
234
|
+
.tableScroll:focus-visible {
|
|
235
|
+
outline: none;
|
|
236
|
+
box-shadow: 0 0 0 2px var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/* Many-column tables (the renderer's `md-table-wide` hook) keep their
|
|
240
|
+
natural width and scroll inside the wrapper; a hosting layout may widen
|
|
241
|
+
the wrapper through the hook (deepsuite chat TableWrapper parity). */
|
|
242
|
+
.tableScroll table {
|
|
243
|
+
border-collapse: collapse;
|
|
244
|
+
width: max-content;
|
|
245
|
+
max-width: max-content;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Tables under four columns, and any table inside a blockquote, fill the
|
|
249
|
+
column instead: cells wrap down to their minimum readable width, and the
|
|
250
|
+
wrapper's scroll only remains for the below-floor case (deepsuite chat
|
|
251
|
+
parity: `.wrapper:not(:has(th:nth-child(4), td:nth-child(4)))`). */
|
|
252
|
+
.tableFill table {
|
|
253
|
+
width: 100%;
|
|
254
|
+
max-width: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.tableScroll th {
|
|
258
|
+
text-align: start;
|
|
259
|
+
padding: 10px 16px;
|
|
260
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l3);
|
|
261
|
+
border-top: none;
|
|
262
|
+
font: var(--dsw-font-markdown-table-head);
|
|
263
|
+
max-width: 320px;
|
|
264
|
+
max-width: min(30vw, 320px);
|
|
265
|
+
min-width: 100px;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.tableScroll td {
|
|
269
|
+
padding: 10px 16px;
|
|
270
|
+
border-bottom: 0.5px solid var(--dsw-alias-border-l2);
|
|
271
|
+
font: var(--dsw-font-markdown-table);
|
|
272
|
+
max-width: 320px;
|
|
273
|
+
max-width: min(30vw, 320px);
|
|
274
|
+
min-width: 100px;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.tableScroll th:first-child,
|
|
278
|
+
.tableScroll td:first-child {
|
|
279
|
+
padding-left: 0;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.tableScroll td:last-child {
|
|
283
|
+
padding-right: 0;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.tableScroll table code {
|
|
287
|
+
font-size: 11px;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.markdown > *:first-child,
|
|
291
|
+
.markdown p:first-child {
|
|
292
|
+
margin-top: 0 !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.markdown > *:last-child,
|
|
296
|
+
.markdown p:last-child {
|
|
297
|
+
margin-bottom: 0 !important;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.imageAlt {
|
|
301
|
+
color: var(--dsw-alias-label-tertiary);
|
|
302
|
+
font-style: italic;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.image {
|
|
306
|
+
display: block;
|
|
307
|
+
width: auto;
|
|
308
|
+
max-width: 100%;
|
|
309
|
+
height: auto;
|
|
310
|
+
margin: 0;
|
|
311
|
+
border-radius: var(--dsw-radius-md);
|
|
312
|
+
background: var(--dsw-alias-bg-base);
|
|
313
|
+
object-fit: contain;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* Inline file mention: the same link language this sheet gives anchors (and
|
|
317
|
+
thereby URL-promoted inline code) — link-blue at rest, dotted underline only
|
|
318
|
+
on hover/focus. An underline at rest reads badly inside the code chip, where
|
|
319
|
+
it collides with monospace descenders and the pill background. */
|
|
320
|
+
.fileMention {
|
|
321
|
+
margin: 0;
|
|
322
|
+
padding: 0;
|
|
323
|
+
border: none;
|
|
324
|
+
background: none;
|
|
325
|
+
font: inherit;
|
|
326
|
+
font-weight: 500;
|
|
327
|
+
color: var(--dsw-alias-link);
|
|
328
|
+
text-decoration: none;
|
|
329
|
+
cursor: pointer;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.fileLink {
|
|
333
|
+
max-width: 100%;
|
|
334
|
+
text-align: inherit;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.fileMention:focus {
|
|
338
|
+
outline: none;
|
|
339
|
+
text-decoration: underline dotted var(--dsw-alias-link);
|
|
340
|
+
text-underline-offset: 3px;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
@media (hover: hover) {
|
|
344
|
+
.fileMention:hover {
|
|
345
|
+
outline: none;
|
|
346
|
+
text-decoration: underline dotted var(--dsw-alias-link);
|
|
347
|
+
text-underline-offset: 3px;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.compact {
|
|
352
|
+
max-width: 100%;
|
|
353
|
+
font-size: var(--dsh-content-font-size-secondary, 13px);
|
|
354
|
+
line-height: calc(20px + var(--dsh-content-font-delta-secondary, 0px));
|
|
355
|
+
color: var(--dsw-alias-label-tertiary);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.compact :is(h1, h2, h3, h4, h5, h6) {
|
|
359
|
+
margin: 8px 0 4px;
|
|
360
|
+
font: inherit;
|
|
361
|
+
font-weight: 600;
|
|
362
|
+
color: inherit;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.compact :is(p, ul, ol, blockquote) {
|
|
366
|
+
margin: 4px 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.compact li:not(:first-child) {
|
|
370
|
+
margin-top: 2px;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.compact li > p {
|
|
374
|
+
margin: 4px 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.compact li::marker {
|
|
378
|
+
line-height: inherit;
|
|
379
|
+
color: inherit;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.compact blockquote {
|
|
383
|
+
padding-left: 8px;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.compact hr {
|
|
387
|
+
margin: 8px 0;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.compact a,
|
|
391
|
+
.compact .fileMention {
|
|
392
|
+
font-weight: inherit;
|
|
393
|
+
color: inherit;
|
|
394
|
+
text-decoration: underline dotted;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.compact a:focus,
|
|
398
|
+
.compact .fileMention:focus {
|
|
399
|
+
text-decoration-color: currentColor;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
@media (hover: hover) {
|
|
403
|
+
.compact a:hover,
|
|
404
|
+
.compact .fileMention:hover {
|
|
405
|
+
text-decoration-color: currentColor;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.compact :not(pre) > code {
|
|
410
|
+
display: inline;
|
|
411
|
+
font: inherit;
|
|
412
|
+
font-family: var(--ds-font-family-code);
|
|
413
|
+
font-size: 1em !important;
|
|
414
|
+
border-radius: var(--dsw-radius-xs);
|
|
415
|
+
padding: 0 3px;
|
|
416
|
+
box-decoration-break: clone;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.markdown.compact :global(.md-code-block) {
|
|
420
|
+
margin: 4px 0;
|
|
421
|
+
color: inherit;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.compact :global(.md-code-block) > :has(> [data-code-block-banner]) {
|
|
425
|
+
position: static;
|
|
426
|
+
z-index: auto;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/* Shiki writes token colors inline; compact code uses the surrounding text color. */
|
|
430
|
+
.compact pre,
|
|
431
|
+
.compact pre :is(code, span) {
|
|
432
|
+
color: inherit !important;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.markdown.compact .tableScroll {
|
|
436
|
+
width: 100%;
|
|
437
|
+
max-width: 100%;
|
|
438
|
+
margin: 4px 0;
|
|
439
|
+
padding-left: 0;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
.markdown.compact .tableScroll > table {
|
|
443
|
+
z-index: auto;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.compact :is(th, td) {
|
|
447
|
+
padding: 4px 8px;
|
|
448
|
+
font: inherit;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.compact th {
|
|
452
|
+
font-weight: 600;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.compact :global(.katex) {
|
|
456
|
+
font-size: 1em;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/* Keep KaTeX's inline baseline and scroll the containing block only when needed. */
|
|
460
|
+
.compact :is(p, h1, h2, h3, h4, h5, h6, ul, ol):has(:global(.katex)) {
|
|
461
|
+
overflow-x: auto;
|
|
462
|
+
overflow-y: hidden;
|
|
463
|
+
/* KaTeX descenders can paint one pixel below a fractional line-box edge. */
|
|
464
|
+
padding-bottom: 1px;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.compact :global(.katex-display) {
|
|
468
|
+
margin: 4px 0;
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.imageButton {
|
|
472
|
+
display: inline-block;
|
|
473
|
+
max-width: 100%;
|
|
474
|
+
padding: 0;
|
|
475
|
+
border: 0;
|
|
476
|
+
border-radius: var(--dsw-radius-sm);
|
|
477
|
+
background: transparent;
|
|
478
|
+
vertical-align: middle;
|
|
479
|
+
cursor: zoom-in;
|
|
480
|
+
}
|
|
481
|
+
.imageButton .image { max-width: min(100%, 640px); max-height: 360px; }
|
|
482
|
+
.imageButton:focus-visible { outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary)); outline-offset: 3px; }
|
|
483
|
+
.previewName {
|
|
484
|
+
display: block;
|
|
485
|
+
margin-top: 8px;
|
|
486
|
+
overflow: hidden;
|
|
487
|
+
text-overflow: ellipsis;
|
|
488
|
+
white-space: nowrap;
|
|
489
|
+
color: var(--dsw-alias-label-secondary);
|
|
490
|
+
font-size: 12px;
|
|
491
|
+
line-height: 18px;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
/* A fence that a delegate renders sits in this box, which takes a code
|
|
495
|
+
block's spacing among its siblings; the blocks inside it carry none, so
|
|
496
|
+
wrappers between the box and a block do not change the document rhythm. */
|
|
497
|
+
.fenceSeat {
|
|
498
|
+
margin: 16px 0;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.fenceSeat:not(:last-child) {
|
|
502
|
+
margin-bottom: 11px;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
.markdown.compact .fenceSeat {
|
|
506
|
+
margin: 4px 0;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.markdown .fenceSeat :is(:global(.md-code-block), :global(.katex-display)) {
|
|
510
|
+
margin-block: 0;
|
|
511
|
+
}
|