@deepseek-ai/dsh-client-ui-primitives 0.2.2-alpha.3 → 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.
Files changed (412) hide show
  1. package/README.i18n.yaml +16 -16
  2. package/README.md +21 -14
  3. package/README.zh.md +21 -14
  4. package/lib/HoverCard.module.css +8 -3
  5. package/lib/JsonTree.module.css +7 -17
  6. package/lib/Menu.module.css +157 -37
  7. package/lib/Modal.module.css +16 -0
  8. package/lib/QuotePreview.module.css +37 -0
  9. package/lib/RiskConfirmation.module.css +11 -37
  10. package/lib/Toast.module.css +2 -3
  11. package/lib/Tooltip.module.css +2 -1
  12. package/lib/index.js +1447 -776
  13. package/lib/index.js.map +1 -0
  14. package/lib/markdown/CodeBlock.module.css +64 -0
  15. package/lib/markdown/MarkdownText.module.css +20 -1
  16. package/lib/types/AnimatedRows.d.ts +3 -0
  17. package/lib/types/AnimatedRows.d.ts.map +1 -0
  18. package/lib/types/AnimatedRows.js.map +1 -0
  19. package/lib/types/BrandWordmark.d.ts.map +1 -0
  20. package/lib/types/BrandWordmark.js.map +1 -0
  21. package/lib/types/Button.d.ts.map +1 -0
  22. package/lib/types/Button.js.map +1 -0
  23. package/lib/types/Checkbox.d.ts +3 -1
  24. package/lib/types/Checkbox.d.ts.map +1 -0
  25. package/lib/types/Checkbox.js.map +1 -0
  26. package/lib/types/CodeFileIcon.d.ts.map +1 -0
  27. package/lib/types/CodeFileIcon.js.map +1 -0
  28. package/lib/types/CodeToolbar.d.ts.map +1 -0
  29. package/lib/types/CodeToolbar.js.map +1 -0
  30. package/lib/types/CommandText.d.ts.map +1 -0
  31. package/lib/types/CommandText.js.map +1 -0
  32. package/lib/types/ConfigField.d.ts.map +1 -0
  33. package/lib/types/ConfigField.js.map +1 -0
  34. package/lib/types/ConnectionIndicator.d.ts.map +1 -0
  35. package/lib/types/ConnectionIndicator.js.map +1 -0
  36. package/lib/types/DetailDocument.d.ts.map +1 -0
  37. package/lib/types/DetailDocument.js.map +1 -0
  38. package/lib/types/DiffBlock.d.ts.map +1 -0
  39. package/lib/types/DiffBlock.js.map +1 -0
  40. package/lib/types/DisclosureRow.d.ts.map +1 -0
  41. package/lib/types/DisclosureRow.js.map +1 -0
  42. package/lib/types/DraggableImage.d.ts.map +1 -0
  43. package/lib/types/DraggableImage.js.map +1 -0
  44. package/lib/types/FileTypeIcon.d.ts.map +1 -0
  45. package/lib/types/FileTypeIcon.js.map +1 -0
  46. package/lib/types/FishLogo.d.ts.map +1 -0
  47. package/lib/types/FishLogo.js.map +1 -0
  48. package/lib/types/FoldToggle.d.ts.map +1 -0
  49. package/lib/types/FoldToggle.js.map +1 -0
  50. package/lib/types/HoverCard.d.ts.map +1 -0
  51. package/lib/types/HoverCard.js.map +1 -0
  52. package/lib/types/HoverCardGroup.d.ts.map +1 -0
  53. package/lib/types/HoverCardGroup.js.map +1 -0
  54. package/lib/types/ImageLightbox.d.ts.map +1 -0
  55. package/lib/types/ImageLightbox.js.map +1 -0
  56. package/lib/types/ImagePreview.d.ts.map +1 -0
  57. package/lib/types/ImagePreview.js.map +1 -0
  58. package/lib/types/InlineEditor.d.ts.map +1 -0
  59. package/lib/types/InlineEditor.js.map +1 -0
  60. package/lib/types/Input.d.ts.map +1 -0
  61. package/lib/types/Input.js.map +1 -0
  62. package/lib/types/JsonTree.d.ts.map +1 -0
  63. package/lib/types/JsonTree.js.map +1 -0
  64. package/lib/types/LinkIcon.d.ts.map +1 -0
  65. package/lib/types/LinkIcon.js.map +1 -0
  66. package/lib/types/Menu.d.ts +26 -14
  67. package/lib/types/Menu.d.ts.map +1 -0
  68. package/lib/types/Menu.js.map +1 -0
  69. package/lib/types/MenuGroup.d.ts.map +1 -0
  70. package/lib/types/MenuGroup.js.map +1 -0
  71. package/lib/types/MenuRow.d.ts +37 -0
  72. package/lib/types/MenuRow.d.ts.map +1 -0
  73. package/lib/types/MenuRow.js.map +1 -0
  74. package/lib/types/MenuSurface.d.ts.map +1 -0
  75. package/lib/types/MenuSurface.js.map +1 -0
  76. package/lib/types/Modal.d.ts +3 -1
  77. package/lib/types/Modal.d.ts.map +1 -0
  78. package/lib/types/Modal.js.map +1 -0
  79. package/lib/types/PathLabel.d.ts.map +1 -0
  80. package/lib/types/PathLabel.js.map +1 -0
  81. package/lib/types/PermissionIcon.d.ts.map +1 -0
  82. package/lib/types/PermissionIcon.js.map +1 -0
  83. package/lib/types/Pill.d.ts.map +1 -0
  84. package/lib/types/Pill.js.map +1 -0
  85. package/lib/types/QuotePreview.d.ts +17 -4
  86. package/lib/types/QuotePreview.d.ts.map +1 -0
  87. package/lib/types/QuotePreview.js.map +1 -0
  88. package/lib/types/ReadBlock.d.ts.map +1 -0
  89. package/lib/types/ReadBlock.js.map +1 -0
  90. package/lib/types/ReferenceIcon.d.ts.map +1 -0
  91. package/lib/types/ReferenceIcon.js.map +1 -0
  92. package/lib/types/RiskConfirmation.d.ts.map +1 -0
  93. package/lib/types/RiskConfirmation.js.map +1 -0
  94. package/lib/types/SearchBlock.d.ts.map +1 -0
  95. package/lib/types/SearchBlock.js.map +1 -0
  96. package/lib/types/SegmentedControl.d.ts.map +1 -0
  97. package/lib/types/SegmentedControl.js.map +1 -0
  98. package/lib/types/SegmentedTabs.d.ts.map +1 -0
  99. package/lib/types/SegmentedTabs.js.map +1 -0
  100. package/lib/types/ShortcutKeys.d.ts.map +1 -0
  101. package/lib/types/ShortcutKeys.js.map +1 -0
  102. package/lib/types/SiteGlyph.d.ts.map +1 -0
  103. package/lib/types/SiteGlyph.js.map +1 -0
  104. package/lib/types/StateDot.d.ts.map +1 -0
  105. package/lib/types/StateDot.js.map +1 -0
  106. package/lib/types/SubmenuPanel.d.ts +19 -0
  107. package/lib/types/SubmenuPanel.d.ts.map +1 -0
  108. package/lib/types/SubmenuPanel.js.map +1 -0
  109. package/lib/types/Switch.d.ts.map +1 -0
  110. package/lib/types/Switch.js.map +1 -0
  111. package/lib/types/Tag.d.ts.map +1 -0
  112. package/lib/types/Tag.js.map +1 -0
  113. package/lib/types/TerminalBlock.d.ts.map +1 -0
  114. package/lib/types/TerminalBlock.js.map +1 -0
  115. package/lib/types/TextShimmer.d.ts.map +1 -0
  116. package/lib/types/TextShimmer.js.map +1 -0
  117. package/lib/types/Toast.d.ts.map +1 -0
  118. package/lib/types/Toast.js.map +1 -0
  119. package/lib/types/Tooltip.d.ts.map +1 -0
  120. package/lib/types/Tooltip.js.map +1 -0
  121. package/lib/types/UserMessageBubble.d.ts.map +1 -0
  122. package/lib/types/UserMessageBubble.js.map +1 -0
  123. package/lib/types/WebBlock.d.ts.map +1 -0
  124. package/lib/types/WebBlock.js.map +1 -0
  125. package/lib/types/ZoomControls.d.ts.map +1 -0
  126. package/lib/types/ZoomControls.js.map +1 -0
  127. package/lib/types/ansi.d.ts.map +1 -0
  128. package/lib/types/ansi.js.map +1 -0
  129. package/lib/types/clipboard.d.ts.map +1 -0
  130. package/lib/types/clipboard.js.map +1 -0
  131. package/lib/types/code-file-icon-artwork.d.ts.map +1 -0
  132. package/lib/types/code-file-icon-artwork.js.map +1 -0
  133. package/lib/types/code-file-types.d.ts.map +1 -0
  134. package/lib/types/code-file-types.js.map +1 -0
  135. package/lib/types/code-highlighting.d.ts.map +1 -0
  136. package/lib/types/code-highlighting.js.map +1 -0
  137. package/lib/types/darwin-desktop.d.ts.map +1 -0
  138. package/lib/types/darwin-desktop.js.map +1 -0
  139. package/lib/types/document-zoom.d.ts.map +1 -0
  140. package/lib/types/document-zoom.js.map +1 -0
  141. package/lib/types/file-drag-actions.d.ts.map +1 -0
  142. package/lib/types/file-drag-actions.js.map +1 -0
  143. package/lib/types/file-size.d.ts.map +1 -0
  144. package/lib/types/file-size.js.map +1 -0
  145. package/lib/types/focus.d.ts.map +1 -0
  146. package/lib/types/focus.js.map +1 -0
  147. package/lib/types/guide-artwork.d.ts.map +1 -0
  148. package/lib/types/guide-artwork.js.map +1 -0
  149. package/lib/types/head-tail-cap.d.ts.map +1 -0
  150. package/lib/types/head-tail-cap.js.map +1 -0
  151. package/lib/types/icons/artwork.d.ts +12 -0
  152. package/lib/types/icons/artwork.d.ts.map +1 -0
  153. package/lib/types/icons/artwork.js.map +1 -0
  154. package/lib/types/icons/index.d.ts +12 -0
  155. package/lib/types/icons/index.d.ts.map +1 -0
  156. package/lib/types/icons/index.js.map +1 -0
  157. package/lib/types/icons/props.d.ts.map +1 -0
  158. package/lib/types/icons/props.js.map +1 -0
  159. package/lib/types/icons/shared-artwork.d.ts.map +1 -0
  160. package/lib/types/icons/shared-artwork.js.map +1 -0
  161. package/lib/types/image-drag.d.ts.map +1 -0
  162. package/lib/types/image-drag.js.map +1 -0
  163. package/lib/types/index.d.ts +5 -4
  164. package/lib/types/index.d.ts.map +1 -0
  165. package/lib/types/index.js.map +1 -0
  166. package/lib/types/input-modality.d.ts.map +1 -0
  167. package/lib/types/input-modality.js.map +1 -0
  168. package/lib/types/keyboard-composition.d.ts.map +1 -0
  169. package/lib/types/keyboard-composition.js.map +1 -0
  170. package/lib/types/markdown/CodeBlock.d.ts +8 -1
  171. package/lib/types/markdown/CodeBlock.d.ts.map +1 -0
  172. package/lib/types/markdown/CodeBlock.js.map +1 -0
  173. package/lib/types/markdown/FenceBlocks.d.ts +31 -0
  174. package/lib/types/markdown/FenceBlocks.d.ts.map +1 -0
  175. package/lib/types/markdown/FenceBlocks.js.map +1 -0
  176. package/lib/types/markdown/JsonBlock.d.ts.map +1 -0
  177. package/lib/types/markdown/JsonBlock.js.map +1 -0
  178. package/lib/types/markdown/MarkdownDelegate.d.ts +23 -1
  179. package/lib/types/markdown/MarkdownDelegate.d.ts.map +1 -0
  180. package/lib/types/markdown/MarkdownDelegate.js.map +1 -0
  181. package/lib/types/markdown/MarkdownText.d.ts +2 -0
  182. package/lib/types/markdown/MarkdownText.d.ts.map +1 -0
  183. package/lib/types/markdown/MarkdownText.js.map +1 -0
  184. package/lib/types/markdown/cjkFriendlyStrong.d.ts.map +1 -0
  185. package/lib/types/markdown/cjkFriendlyStrong.js.map +1 -0
  186. package/lib/types/markdown/copy-tex.d.ts +14 -0
  187. package/lib/types/markdown/copy-tex.d.ts.map +1 -0
  188. package/lib/types/markdown/copy-tex.js.map +1 -0
  189. package/lib/types/markdown/diff-fence.d.ts +58 -0
  190. package/lib/types/markdown/diff-fence.d.ts.map +1 -0
  191. package/lib/types/markdown/diff-fence.js.map +1 -0
  192. package/lib/types/markdown/file-link.d.ts.map +1 -0
  193. package/lib/types/markdown/file-link.js.map +1 -0
  194. package/lib/types/markdown/highlight.d.ts +18 -0
  195. package/lib/types/markdown/highlight.d.ts.map +1 -0
  196. package/lib/types/markdown/highlight.js.map +1 -0
  197. package/lib/types/markdown/incremental.d.ts.map +1 -0
  198. package/lib/types/markdown/incremental.js.map +1 -0
  199. package/lib/types/markdown/katex.d.ts.map +1 -0
  200. package/lib/types/markdown/katex.js.map +1 -0
  201. package/lib/types/markdown/local-image-syntax.d.ts.map +1 -0
  202. package/lib/types/markdown/local-image-syntax.js.map +1 -0
  203. package/lib/types/markdown/mathCompatibility.d.ts.map +1 -0
  204. package/lib/types/markdown/mathCompatibility.js.map +1 -0
  205. package/lib/types/markdown/parse.d.ts.map +1 -0
  206. package/lib/types/markdown/parse.js.map +1 -0
  207. package/lib/types/markdown/plain-text.d.ts.map +1 -0
  208. package/lib/types/markdown/plain-text.js.map +1 -0
  209. package/lib/types/markdown/quote-text.d.ts.map +1 -0
  210. package/lib/types/markdown/quote-text.js.map +1 -0
  211. package/lib/types/markdown/render.d.ts.map +1 -0
  212. package/lib/types/markdown/render.js.map +1 -0
  213. package/lib/types/markdown/useViewportHighlighting.d.ts.map +1 -0
  214. package/lib/types/markdown/useViewportHighlighting.js.map +1 -0
  215. package/lib/types/markdown/windows-path-destinations.d.ts.map +1 -0
  216. package/lib/types/markdown/windows-path-destinations.js.map +1 -0
  217. package/lib/types/menu-submenu-position.d.ts +15 -0
  218. package/lib/types/menu-submenu-position.d.ts.map +1 -0
  219. package/lib/types/menu-submenu-position.js.map +1 -0
  220. package/lib/types/overlay-top-margin.d.ts.map +1 -0
  221. package/lib/types/overlay-top-margin.js.map +1 -0
  222. package/lib/types/plugin-artwork.d.ts.map +1 -0
  223. package/lib/types/plugin-artwork.js.map +1 -0
  224. package/lib/types/pointer-grace.d.ts.map +1 -0
  225. package/lib/types/pointer-grace.js.map +1 -0
  226. package/lib/types/rank-by-name.d.ts.map +1 -0
  227. package/lib/types/rank-by-name.js.map +1 -0
  228. package/lib/types/relative-time.d.ts.map +1 -0
  229. package/lib/types/relative-time.js.map +1 -0
  230. package/lib/types/settings-form/SettingsForm.d.ts.map +1 -0
  231. package/lib/types/settings-form/SettingsForm.js.map +1 -0
  232. package/lib/types/settings-form/fields.d.ts.map +1 -0
  233. package/lib/types/settings-form/fields.js.map +1 -0
  234. package/lib/types/settings-form/form-model.d.ts.map +1 -0
  235. package/lib/types/settings-form/form-model.js.map +1 -0
  236. package/lib/types/tooltip-placement.d.ts.map +1 -0
  237. package/lib/types/tooltip-placement.js.map +1 -0
  238. package/lib/types/use-clipboard-copy.d.ts.map +1 -0
  239. package/lib/types/use-clipboard-copy.js.map +1 -0
  240. package/lib/types/useAnchoredMaxHeight.d.ts.map +1 -0
  241. package/lib/types/useAnchoredMaxHeight.js.map +1 -0
  242. package/lib/types/useDismissOnOutsidePointer.d.ts.map +1 -0
  243. package/lib/types/useDismissOnOutsidePointer.js.map +1 -0
  244. package/lib/types/useMenuSubmenu.d.ts +43 -0
  245. package/lib/types/useMenuSubmenu.d.ts.map +1 -0
  246. package/lib/types/useMenuSubmenu.js.map +1 -0
  247. package/lib/types/useModalLayer.d.ts.map +1 -0
  248. package/lib/types/useModalLayer.js.map +1 -0
  249. package/lib/types/useRowDragPreview.d.ts.map +1 -0
  250. package/lib/types/useRowDragPreview.js.map +1 -0
  251. package/lib/types/user-text.d.ts.map +1 -0
  252. package/lib/types/user-text.js.map +1 -0
  253. package/package.json +11 -8
  254. package/src/AnimatedRows.module.css +7 -0
  255. package/src/AnimatedRows.tsx +195 -0
  256. package/src/BrandWordmark.tsx +59 -0
  257. package/src/Button.module.css +84 -0
  258. package/src/Button.tsx +36 -0
  259. package/src/Checkbox.module.css +28 -0
  260. package/src/Checkbox.tsx +34 -0
  261. package/src/CodeCard.module.css +85 -0
  262. package/src/CodeFileIcon.tsx +28 -0
  263. package/src/CodeToolbar.tsx +62 -0
  264. package/src/CommandText.module.css +12 -0
  265. package/src/CommandText.tsx +46 -0
  266. package/src/ConfigField.module.css +12 -0
  267. package/src/ConfigField.tsx +53 -0
  268. package/src/ConnectionIndicator.module.css +120 -0
  269. package/src/ConnectionIndicator.tsx +103 -0
  270. package/src/DetailDocument.module.css +67 -0
  271. package/src/DetailDocument.tsx +120 -0
  272. package/src/DiffBlock.module.css +82 -0
  273. package/src/DiffBlock.tsx +221 -0
  274. package/src/DisclosureRow.module.css +115 -0
  275. package/src/DisclosureRow.tsx +124 -0
  276. package/src/DraggableImage.tsx +26 -0
  277. package/src/FileTypeIcon.module.css +50 -0
  278. package/src/FileTypeIcon.tsx +285 -0
  279. package/src/FishLogo.tsx +28 -0
  280. package/src/FoldToggle.tsx +33 -0
  281. package/src/HoverCard.module.css +108 -0
  282. package/src/HoverCard.tsx +356 -0
  283. package/src/HoverCardGroup.tsx +77 -0
  284. package/src/ImageLightbox.module.css +54 -0
  285. package/src/ImageLightbox.tsx +72 -0
  286. package/src/ImagePreview.module.css +24 -0
  287. package/src/ImagePreview.tsx +36 -0
  288. package/src/InlineEditor.module.css +23 -0
  289. package/src/InlineEditor.tsx +69 -0
  290. package/src/Input.module.css +38 -0
  291. package/src/Input.tsx +24 -0
  292. package/src/JsonTree.module.css +371 -0
  293. package/src/JsonTree.tsx +850 -0
  294. package/src/LinkIcon.tsx +118 -0
  295. package/src/Menu.module.css +443 -0
  296. package/src/Menu.tsx +553 -0
  297. package/src/MenuGroup.module.css +37 -0
  298. package/src/MenuGroup.tsx +103 -0
  299. package/src/MenuRow.tsx +89 -0
  300. package/src/MenuSurface.module.css +65 -0
  301. package/src/MenuSurface.tsx +54 -0
  302. package/src/Modal.module.css +147 -0
  303. package/src/Modal.tsx +96 -0
  304. package/src/PathLabel.module.css +28 -0
  305. package/src/PathLabel.tsx +41 -0
  306. package/src/PermissionIcon.tsx +119 -0
  307. package/src/Pill.module.css +30 -0
  308. package/src/Pill.tsx +36 -0
  309. package/src/QuotePreview.module.css +138 -0
  310. package/src/QuotePreview.tsx +133 -0
  311. package/src/ReadBlock.module.css +45 -0
  312. package/src/ReadBlock.tsx +151 -0
  313. package/src/ReferenceIcon.tsx +49 -0
  314. package/src/RiskConfirmation.module.css +47 -0
  315. package/src/RiskConfirmation.tsx +79 -0
  316. package/src/RowDragPreview.module.css +12 -0
  317. package/src/SearchBlock.module.css +114 -0
  318. package/src/SearchBlock.tsx +281 -0
  319. package/src/SegmentedControl.module.css +81 -0
  320. package/src/SegmentedControl.tsx +140 -0
  321. package/src/SegmentedTabs.module.css +77 -0
  322. package/src/SegmentedTabs.tsx +84 -0
  323. package/src/ShortcutKeys.module.css +33 -0
  324. package/src/ShortcutKeys.tsx +12 -0
  325. package/src/SiteGlyph.tsx +149 -0
  326. package/src/StateDot.module.css +100 -0
  327. package/src/StateDot.tsx +77 -0
  328. package/src/SubmenuPanel.tsx +51 -0
  329. package/src/Switch.module.css +49 -0
  330. package/src/Switch.tsx +42 -0
  331. package/src/Tag.module.css +57 -0
  332. package/src/Tag.tsx +42 -0
  333. package/src/TerminalBlock.module.css +207 -0
  334. package/src/TerminalBlock.tsx +294 -0
  335. package/src/TextShimmer.module.css +88 -0
  336. package/src/TextShimmer.tsx +58 -0
  337. package/src/Toast.module.css +102 -0
  338. package/src/Toast.tsx +101 -0
  339. package/src/Tooltip.module.css +68 -0
  340. package/src/Tooltip.tsx +273 -0
  341. package/src/UserMessageBubble.module.css +11 -0
  342. package/src/UserMessageBubble.tsx +16 -0
  343. package/src/WebBlock.module.css +153 -0
  344. package/src/WebBlock.tsx +196 -0
  345. package/src/ZoomControls.module.css +54 -0
  346. package/src/ZoomControls.tsx +92 -0
  347. package/src/ansi.ts +447 -0
  348. package/src/clipboard.ts +47 -0
  349. package/src/code-file-icon-artwork.manifest.json +71 -0
  350. package/src/code-file-icon-artwork.ts +60 -0
  351. package/src/code-file-types.ts +340 -0
  352. package/src/code-highlighting.ts +25 -0
  353. package/src/css-modules.d.ts +6 -0
  354. package/src/darwin-desktop.ts +11 -0
  355. package/src/document-zoom.ts +12 -0
  356. package/src/file-drag-actions.ts +29 -0
  357. package/src/file-size.ts +16 -0
  358. package/src/focus.ts +44 -0
  359. package/src/guide-artwork.tsx +32 -0
  360. package/src/head-tail-cap.ts +27 -0
  361. package/src/icons/artwork.ts +156 -0
  362. package/src/icons/index.tsx +634 -0
  363. package/src/icons/props.ts +8 -0
  364. package/src/icons/shared-artwork.tsx +71 -0
  365. package/src/image-drag.ts +84 -0
  366. package/src/index.ts +142 -0
  367. package/src/input-modality.ts +59 -0
  368. package/src/keyboard-composition.ts +36 -0
  369. package/src/markdown/CodeBlock.module.css +209 -0
  370. package/src/markdown/CodeBlock.tsx +268 -0
  371. package/src/markdown/FenceBlocks.tsx +51 -0
  372. package/src/markdown/JsonBlock.module.css +34 -0
  373. package/src/markdown/JsonBlock.tsx +36 -0
  374. package/src/markdown/MarkdownDelegate.tsx +102 -0
  375. package/src/markdown/MarkdownText.module.css +511 -0
  376. package/src/markdown/MarkdownText.tsx +218 -0
  377. package/src/markdown/cjkFriendlyStrong.ts +83 -0
  378. package/src/markdown/copy-tex.ts +53 -0
  379. package/src/markdown/diff-fence.ts +212 -0
  380. package/src/markdown/file-link.ts +45 -0
  381. package/src/markdown/highlight.ts +689 -0
  382. package/src/markdown/incremental.ts +360 -0
  383. package/src/markdown/katex.tsx +90 -0
  384. package/src/markdown/local-image-syntax.ts +29 -0
  385. package/src/markdown/mathCompatibility.ts +349 -0
  386. package/src/markdown/parse.ts +49 -0
  387. package/src/markdown/plain-text.ts +121 -0
  388. package/src/markdown/quote-text.ts +10 -0
  389. package/src/markdown/render.tsx +834 -0
  390. package/src/markdown/useViewportHighlighting.ts +72 -0
  391. package/src/markdown/windows-path-destinations.ts +34 -0
  392. package/src/menu-submenu-position.ts +20 -0
  393. package/src/overlay-top-margin.ts +18 -0
  394. package/src/plugin-artwork.tsx +110 -0
  395. package/src/pointer-grace.ts +47 -0
  396. package/src/rank-by-name.ts +93 -0
  397. package/src/relative-time.ts +36 -0
  398. package/src/settings-form/SettingsForm.module.css +53 -0
  399. package/src/settings-form/SettingsForm.tsx +74 -0
  400. package/src/settings-form/fields.module.css +153 -0
  401. package/src/settings-form/fields.tsx +151 -0
  402. package/src/settings-form/form-model.ts +393 -0
  403. package/src/tooltip-placement.ts +60 -0
  404. package/src/use-clipboard-copy.ts +44 -0
  405. package/src/useAnchoredMaxHeight.ts +45 -0
  406. package/src/useDismissOnOutsidePointer.ts +34 -0
  407. package/src/useMenuSubmenu.ts +182 -0
  408. package/src/useModalLayer.ts +108 -0
  409. package/src/useRowDragPreview.ts +76 -0
  410. package/src/user-text.module.css +46 -0
  411. package/src/user-text.tsx +67 -0
  412. package/lib/types/useAnchoredPosition.d.ts +0 -36
@@ -0,0 +1,84 @@
1
+ /* Button sizes share the global control-radius scale. */
2
+ .button {
3
+ box-sizing: border-box;
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ gap: 4px;
8
+ border: none;
9
+ border-radius: var(--dsw-radius-md);
10
+ cursor: pointer;
11
+ font-size: 14px;
12
+ line-height: 22px;
13
+ color: var(--dsw-alias-label-primary);
14
+ background: transparent;
15
+ padding: 0 14px;
16
+ }
17
+
18
+ .button:disabled {
19
+ cursor: not-allowed;
20
+ opacity: 0.4;
21
+ }
22
+
23
+ .md {
24
+ height: 36px;
25
+ }
26
+
27
+ /* Compact controls retain their dimensions across filled and outlined variants. */
28
+ .sm {
29
+ height: 28px;
30
+ font-size: 12px;
31
+ line-height: 18px;
32
+ padding: 0 10px;
33
+ border-radius: var(--dsw-radius-sm);
34
+ }
35
+
36
+ .primary {
37
+ background: var(--dsw-alias-button-primary-fill);
38
+ color: var(--dsw-alias-label-primary-foreground);
39
+ }
40
+
41
+ @media (hover: hover) {
42
+ .primary:hover:not(:disabled) {
43
+ background: var(--dsw-alias-button-primary-hover);
44
+ }
45
+
46
+ .ghost:hover:not(:disabled) {
47
+ background: var(--dsw-alias-interactive-bg-hover);
48
+ }
49
+ }
50
+
51
+ .ghost:active:not(:disabled) {
52
+ background: var(--dsw-alias-interactive-bg-active);
53
+ }
54
+
55
+ /* The transparent border preserves layout; the inset stroke stays complete at fractional widths. */
56
+ .outline {
57
+ border: 0.5px solid transparent;
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));
60
+ }
61
+
62
+ @media (hover: hover) {
63
+ .outline:hover:not(:disabled) {
64
+ background: var(--dsw-alias-interactive-bg-hover);
65
+ }
66
+ }
67
+
68
+ .toolbar {
69
+ background: var(--dsw-alias-button-tool-bar-fill);
70
+ }
71
+
72
+ @media (hover: hover) {
73
+ .toolbar:hover:not(:disabled) {
74
+ background: var(--dsw-alias-button-tool-bar-hover);
75
+ }
76
+ }
77
+
78
+ .icon {
79
+ display: inline-flex;
80
+ width: 16px;
81
+ height: 16px;
82
+ align-items: center;
83
+ justify-content: center;
84
+ }
package/src/Button.tsx ADDED
@@ -0,0 +1,36 @@
1
+ // Button: token-styled button atom. Variants map to the --dsw-alias-button-*
2
+ // fill families; no framework imports, all behavior via props.
3
+
4
+ import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react'
5
+ import clsx from 'clsx'
6
+ import css from './Button.module.css'
7
+
8
+ /** Visual variant, each backed by its --dsw-alias-button-* token family. */
9
+ export type ButtonVariant = 'primary' | 'ghost' | 'outline' | 'toolbar'
10
+
11
+ type ButtonProps = {
12
+ variant?: ButtonVariant
13
+ size?: 'md' | 'sm'
14
+ icon?: ReactNode
15
+ className?: string | undefined
16
+ children?: ReactNode
17
+ } & ButtonHTMLAttributes<HTMLButtonElement>
18
+
19
+ /**
20
+ * Render a button.
21
+ * @param props.variant - visual family (default 'ghost'); outlined buttons use a DPR-aware inset stroke.
22
+ * @param props.size - 'md' 36px control with 12px corners or 'sm' 28px control with 8px corners.
23
+ * @param props.icon - optional leading 16px icon node.
24
+ * @param ref - native button for focus management and overlay anchors.
25
+ * @returns the button element; native button attributes pass through.
26
+ */
27
+ export const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button({
28
+ variant = 'ghost', size = 'md', icon, className, children, ...rest
29
+ }, ref) {
30
+ return (
31
+ <button ref={ref} type="button" className={clsx(css.button, css[variant], css[size], className)} {...rest}>
32
+ {icon != null && <span className={css.icon}>{icon}</span>}
33
+ {children}
34
+ </button>
35
+ )
36
+ })
@@ -0,0 +1,28 @@
1
+ .checkbox {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 6px;
5
+ font-size: 14px;
6
+ line-height: 20px;
7
+ color: var(--dsw-alias-label-primary);
8
+ cursor: pointer;
9
+ }
10
+
11
+ .checkbox input {
12
+ flex: 0 0 auto;
13
+ width: 16px;
14
+ height: 16px;
15
+ margin: 0;
16
+ accent-color: var(--dsw-alias-brand-primary);
17
+ cursor: inherit;
18
+ }
19
+
20
+ .checkbox input:focus-visible {
21
+ outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
22
+ outline-offset: 2px;
23
+ }
24
+
25
+ .checkbox:has(input:disabled) {
26
+ cursor: default;
27
+ opacity: 0.5;
28
+ }
@@ -0,0 +1,34 @@
1
+ /** Controlled native checkbox with a caller-owned visible and accessible label. */
2
+
3
+ import clsx from 'clsx'
4
+ import css from './Checkbox.module.css'
5
+
6
+ /**
7
+ * Render a labeled checkbox with native keyboard and form semantics.
8
+ * @param props.checked - current checked state.
9
+ * @param props.onChange - receives the requested checked state.
10
+ * @param props.label - localized visible and accessible label.
11
+ * @param props.disabled - whether the control refuses changes.
12
+ * @param props.title - optional localized hover text.
13
+ * @param props.className - extra class for the label's placement.
14
+ * @param props.modalAutofocus - designate the input for the owning Modal's initial focus without React autoFocus.
15
+ * @returns the label containing its checkbox.
16
+ */
17
+ export function Checkbox({ checked, onChange, label, disabled = false, title, className, modalAutofocus = false }: {
18
+ checked: boolean
19
+ onChange: (next: boolean) => void
20
+ label: string
21
+ disabled?: boolean
22
+ title?: string | undefined
23
+ className?: string | undefined
24
+ modalAutofocus?: boolean
25
+ }) {
26
+ return (
27
+ <label className={clsx(css.checkbox, className)} title={title}>
28
+ <input type="checkbox" checked={checked} disabled={disabled}
29
+ data-modal-autofocus={modalAutofocus || undefined}
30
+ onChange={(event) => { onChange(event.target.checked) }} />
31
+ <span>{label}</span>
32
+ </label>
33
+ )
34
+ }
@@ -0,0 +1,85 @@
1
+ .card {
2
+ position: relative;
3
+ margin: 16px 0;
4
+ color: var(--dsw-alias-label-primary);
5
+ background: var(--dsw-alias-markdown-code-block);
6
+ border-radius: var(--dsw-radius-lg);
7
+ font: var(--dsw-font-markdown-code-block);
8
+ }
9
+
10
+ .header {
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: space-between;
14
+ gap: 12px;
15
+ padding: 10px 18px 8px 22px;
16
+ background: var(--dsl-code-block-background, var(--dsw-alias-markdown-code-block));
17
+ border-top-left-radius: inherit;
18
+ border-top-right-radius: inherit;
19
+ color: var(--dsw-alias-label-secondary);
20
+ font: 11px/18px var(--dsw-font-family);
21
+ }
22
+
23
+ .heading {
24
+ display: flex;
25
+ align-items: baseline;
26
+ gap: 12px;
27
+ min-width: 0;
28
+ }
29
+
30
+ .language {
31
+ color: var(--dsw-alias-label-tertiary);
32
+ flex: none;
33
+ font-family: var(--ds-font-family-code);
34
+ }
35
+
36
+ .title {
37
+ color: var(--dsw-alias-label-tertiary);
38
+ overflow: hidden;
39
+ text-overflow: ellipsis;
40
+ white-space: nowrap;
41
+ }
42
+
43
+ .actions {
44
+ display: flex;
45
+ align-items: center;
46
+ gap: 4px;
47
+ flex: none;
48
+ }
49
+
50
+ .status {
51
+ margin-right: 8px;
52
+ color: var(--dsw-alias-label-tertiary);
53
+ white-space: nowrap;
54
+ }
55
+
56
+ .action {
57
+ display: inline-flex;
58
+ align-items: center;
59
+ justify-content: center;
60
+ width: 24px;
61
+ height: 24px;
62
+ padding: 0;
63
+ border: 0;
64
+ border-radius: var(--dsw-radius-sm);
65
+ color: var(--dsw-alias-label-secondary);
66
+ background: transparent;
67
+ cursor: pointer;
68
+ }
69
+
70
+ @media (hover: hover) {
71
+ .action:hover {
72
+ background: var(--dsw-alias-interactive-bg-hover);
73
+ }
74
+ }
75
+
76
+ .action:focus-visible {
77
+ outline: 1px solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
78
+ outline-offset: 2px;
79
+ }
80
+
81
+ .body {
82
+ padding: 6px 22px 20px;
83
+ font: var(--dsw-font-markdown-code-block);
84
+ overflow-x: auto;
85
+ }
@@ -0,0 +1,28 @@
1
+ import { useId } from 'react'
2
+ import type { ReactNode } from 'react'
3
+ import type { IconProps } from './icons/props.ts'
4
+ import type { CodeFileType } from './code-file-types.ts'
5
+ import { CODE_FILE_ARTWORK, CODE_FILE_ICON_ID_TOKEN } from './code-file-icon-artwork.ts'
6
+
7
+ /**
8
+ * Render one full-color square code-file glyph from the embedded icon set.
9
+ * @param props - Detailed code type, optional size, and optional CSS class.
10
+ * @returns The selected decorative SVG with its identifying palette intact.
11
+ */
12
+ export function CodeFileIcon({ type, size = 20, className }: IconProps & { readonly type: CodeFileType }): ReactNode {
13
+ const instanceId = `dsh-code-icon-${useId().replaceAll(':', '')}`
14
+ const artwork = CODE_FILE_ARTWORK[type].replaceAll(CODE_FILE_ICON_ID_TOKEN, instanceId)
15
+ // Package tests reject unsafe markup and invalid local references in this
16
+ // static table. Per-instance ids keep gradients and clip paths independent.
17
+ return (
18
+ <svg
19
+ width={size}
20
+ height={size}
21
+ className={className}
22
+ viewBox="0 0 20 20"
23
+ xmlns="http://www.w3.org/2000/svg"
24
+ aria-hidden
25
+ dangerouslySetInnerHTML={{ __html: artwork }}
26
+ />
27
+ )
28
+ }
@@ -0,0 +1,62 @@
1
+ /** Shared language, wrapping, and clipboard controls for code cards. */
2
+ import {
3
+ IconCheckOutlineRegular, IconCopyOutlineRegular, IconNowrapFillRegular, IconWrapFillRegular,
4
+ } from './icons/index.tsx'
5
+ import { Tooltip } from './Tooltip.tsx'
6
+ import { supportsHighlighting } from './markdown/highlight.ts'
7
+ import css from './CodeCard.module.css'
8
+
9
+ /** Localized language fallback and wrapping actions supplied by the card owner. */
10
+ export interface CodeToolbarLabels {
11
+ /** Title for an absent or unsupported language. */
12
+ codeLabel: string
13
+ /** Action that enables wrapping. */
14
+ wrapLabel: string
15
+ /** Action that preserves source columns with horizontal scrolling. */
16
+ unwrapLabel: string
17
+ }
18
+
19
+ /** Display state and callbacks for a code card's toolbar. */
20
+ interface CodeToolbarProps {
21
+ lang?: string | undefined
22
+ title?: string | undefined
23
+ status?: string | undefined
24
+ labels: CodeToolbarLabels
25
+ copyLabel: string
26
+ copiedLabel: string
27
+ copied: boolean
28
+ wrapped: boolean
29
+ onCopy?: (() => void) | undefined
30
+ onWrap?: (() => void) | undefined
31
+ }
32
+
33
+ /**
34
+ * Render a language label and keyboard-accessible icon actions with tooltips.
35
+ * @param props - Localized labels, current state, and card-owned actions.
36
+ * @returns The shared code-card header.
37
+ */
38
+ export function CodeToolbar({ lang, title, status, labels, copyLabel, copiedLabel, copied, wrapped, onCopy, onWrap }: CodeToolbarProps) {
39
+ const wrapLabel = wrapped ? labels.unwrapLabel : labels.wrapLabel
40
+ const clipboardLabel = copied ? copiedLabel : copyLabel
41
+ return (
42
+ <div className={css.header} data-code-block-banner>
43
+ <div className={css.heading}>
44
+ <span className={css.language}>{supportsHighlighting(lang) ? lang : labels.codeLabel}</span>
45
+ {title !== undefined && <span className={css.title} title={title}>{title}</span>}
46
+ </div>
47
+ <div className={css.actions}>
48
+ {status !== undefined && <span className={css.status}>{status}</span>}
49
+ {onWrap !== undefined && <Tooltip label={wrapLabel} side="top" portal>
50
+ <button type="button" className={css.action} aria-label={labels.wrapLabel} aria-pressed={wrapped} onClick={onWrap}>
51
+ {wrapped ? <IconNowrapFillRegular size={14} /> : <IconWrapFillRegular size={14} />}
52
+ </button>
53
+ </Tooltip>}
54
+ {onCopy !== undefined && <Tooltip label={clipboardLabel} side="top" portal>
55
+ <button type="button" className={css.action} aria-label={clipboardLabel} onClick={onCopy}>
56
+ {copied ? <IconCheckOutlineRegular size={14} /> : <IconCopyOutlineRegular size={14} />}
57
+ </button>
58
+ </Tooltip>}
59
+ </div>
60
+ </div>
61
+ )
62
+ }
@@ -0,0 +1,12 @@
1
+ .text {
2
+ display: block;
3
+ min-width: 0;
4
+ overflow-x: auto;
5
+ white-space: var(--dsl-command-whitespace, pre);
6
+ overflow-wrap: anywhere;
7
+ }
8
+
9
+ .text:focus-visible {
10
+ outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
11
+ outline-offset: -2px;
12
+ }
@@ -0,0 +1,46 @@
1
+ /** Selectable command text with keyboard access while horizontally overflowing. */
2
+ import { useLayoutEffect, useRef, useState } from 'react'
3
+ import clsx from 'clsx'
4
+ import css from './CommandText.module.css'
5
+
6
+ /** Display text and owner-localized identification for a command scrollport. */
7
+ export interface CommandTextProps {
8
+ /** Original command or formatted command arguments, without truncation. */
9
+ text: string
10
+ /** Accessible name while the text can scroll horizontally. */
11
+ label: string
12
+ /** Owner typography and positioning. */
13
+ className?: string | undefined
14
+ }
15
+
16
+ /**
17
+ * Render command text without adding Tab stops for content that fits.
18
+ * @param props - Text, localized scrollport name, and owner styling.
19
+ * @returns A horizontal text scrollport, named and keyboard-focusable only when overflowing.
20
+ */
21
+ export function CommandText({ text, label, className }: CommandTextProps) {
22
+ const ref = useRef<HTMLSpanElement>(null)
23
+ const [overflow, setOverflow] = useState(false)
24
+ useLayoutEffect(() => {
25
+ const element = ref.current
26
+ /* v8 ignore next -- the span is rendered unconditionally. */
27
+ if (element === null) return undefined
28
+ const measure = () => { setOverflow(element.scrollWidth > element.clientWidth) }
29
+ measure()
30
+ const observer = typeof ResizeObserver === 'undefined' ? undefined : new ResizeObserver(measure)
31
+ observer?.observe(element)
32
+ const fonts = 'fonts' in element.ownerDocument ? element.ownerDocument.fonts : undefined
33
+ fonts?.addEventListener('loadingdone', measure)
34
+ return () => {
35
+ observer?.disconnect()
36
+ fonts?.removeEventListener('loadingdone', measure)
37
+ }
38
+ }, [text])
39
+ return (
40
+ <span ref={ref} className={clsx(css.text, className)} data-command-text
41
+ tabIndex={overflow ? 0 : undefined}
42
+ role={overflow ? 'group' : undefined}
43
+ aria-label={overflow ? label : undefined}
44
+ >{text}</span>
45
+ )
46
+ }
@@ -0,0 +1,12 @@
1
+ .field { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
2
+ .field + .field { border-top: 0.5px solid var(--dsw-alias-border-l2); }
3
+ .head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
4
+ .head label { color: var(--dsw-alias-label-primary); font-size: 13px; font-weight: 500; }
5
+ .head button { border: none; background: none; color: var(--dsw-alias-label-secondary); font: inherit; cursor: pointer; }
6
+ .field input, .field select, .field textarea {
7
+ padding: 6px 12px; border: 0.5px solid var(--dsw-alias-border-l4); border-radius: var(--dsw-radius-md);
8
+ background: var(--dsw-alias-bg-layer-3); color: var(--dsw-alias-label-primary); font: inherit;
9
+ }
10
+ .field textarea { resize: vertical; }
11
+ .field [aria-invalid='true'] { border-color: var(--dsw-alias-state-error-primary); }
12
+ .field p { margin: 0; color: var(--dsw-alias-state-error-primary); font-size: 12px; }
@@ -0,0 +1,53 @@
1
+ /** Controlled configuration input shared by generated and custom forms. */
2
+ import { useId } from 'react'
3
+ import css from './ConfigField.module.css'
4
+
5
+ /** Field state and localized controls supplied by the owning form. */
6
+ export interface ConfigFieldProps {
7
+ /** Display label from the owning plugin. */
8
+ label: string
9
+ /** Editable text; containers may use JSON. */
10
+ value: string
11
+ /** Hide the input text and disable browser password autofill. */
12
+ secret: boolean
13
+ /** Finite choices; an empty list uses a text control. */
14
+ choices: readonly string[]
15
+ /** Whether the field is currently read-only. */
16
+ disabled: boolean
17
+ /** Whether the field has a user override. */
18
+ overridden: boolean
19
+ /** Whether the draft fails validation. */
20
+ invalid: boolean
21
+ /** Localized reset, inherited-value choice, and validation text. */
22
+ labels: { reset: string; inherited: string; invalid: string }
23
+ /** Stage a new text value. */
24
+ onChange: (value: string) => void
25
+ /** Stage removal of the user override. */
26
+ onReset: () => void
27
+ }
28
+
29
+ /** Render a field without owning its schema, draft, or persistence.
30
+ * @param props Controlled field state and actions.
31
+ * @returns A labelled input with reset and validation feedback.
32
+ */
33
+ export function ConfigField(props: ConfigFieldProps) {
34
+ const id = useId()
35
+ return <div className={css.field}>
36
+ <div className={css.head}>
37
+ <label htmlFor={id}>{props.label}</label>
38
+ {props.overridden ? <button type="button" disabled={props.disabled} onClick={props.onReset}>{props.labels.reset}</button> : null}
39
+ </div>
40
+ {props.choices.length > 0
41
+ ? <select id={id} value={props.value} disabled={props.disabled} aria-invalid={props.invalid}
42
+ onChange={(event) => { if (event.target.value === '') props.onReset(); else props.onChange(event.target.value) }}>
43
+ <option value="">{props.labels.inherited}</option>
44
+ {props.choices.map(choice => <option key={choice} value={choice}>{choice}</option>)}
45
+ </select>
46
+ : props.secret
47
+ ? <input id={id} type="password" autoComplete="new-password" value={props.value} disabled={props.disabled}
48
+ aria-invalid={props.invalid} onChange={(event) => { props.onChange(event.target.value) }} />
49
+ : <textarea id={id} value={props.value} disabled={props.disabled} aria-invalid={props.invalid}
50
+ rows={Math.min(8, Math.max(1, props.value.split('\n').length))} onChange={(event) => { props.onChange(event.target.value) }} />}
51
+ {props.invalid ? <p role="status">{props.labels.invalid}</p> : null}
52
+ </div>
53
+ }
@@ -0,0 +1,120 @@
1
+ .indicator {
2
+ flex: none;
3
+ display: inline-grid;
4
+ grid-template-columns: 14px max-content;
5
+ align-items: center;
6
+ column-gap: 4px;
7
+ height: 28px;
8
+ padding: 0 8px;
9
+ box-sizing: border-box;
10
+ border: 1px solid transparent;
11
+ border-radius: var(--dsw-radius-sm);
12
+ font-family: inherit;
13
+ font-size: 12px;
14
+ font-weight: 500;
15
+ line-height: 18px;
16
+ white-space: nowrap;
17
+ transition:
18
+ background-color 160ms ease-out,
19
+ color 160ms ease-out,
20
+ border-color 160ms ease-out,
21
+ opacity 150ms ease-out;
22
+ animation: indicator-enter 150ms ease-out;
23
+ }
24
+
25
+ .leaving {
26
+ opacity: 0;
27
+ }
28
+
29
+ @keyframes indicator-enter {
30
+ from {
31
+ opacity: 0;
32
+ }
33
+ }
34
+
35
+ .warning {
36
+ background: var(--dsw-alias-state-warn-tertiary);
37
+ color: var(--dsw-alias-state-warn-label);
38
+ border-color: color-mix(in srgb, var(--dsw-alias-state-warn-label) 20%, transparent);
39
+ cursor: pointer;
40
+ }
41
+
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
+ }
50
+ }
51
+
52
+ .warning:active {
53
+ background: color-mix(
54
+ in srgb,
55
+ var(--dsw-alias-state-warn-tertiary),
56
+ var(--dsw-alias-state-warn-primary) 10%
57
+ );
58
+ }
59
+
60
+ .warning:focus-visible {
61
+ outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
62
+ outline-offset: 2px;
63
+ }
64
+
65
+ .success {
66
+ background: var(--dsw-alias-state-success-tertiary);
67
+ color: var(--dsw-alias-state-success-primary);
68
+ border-color: color-mix(in srgb, var(--dsw-alias-state-success-primary) 20%, transparent);
69
+ }
70
+
71
+ .icon {
72
+ display: grid;
73
+ place-items: center;
74
+ width: 14px;
75
+ height: 14px;
76
+ }
77
+
78
+ .icon > svg {
79
+ color: inherit;
80
+ }
81
+
82
+ .label {
83
+ text-align: left;
84
+ }
85
+
86
+ .dots {
87
+ display: inline-block;
88
+ width: 1em;
89
+ text-align: left;
90
+ }
91
+
92
+ .secondDot {
93
+ animation: reveal-second-dot 1.5s step-end infinite;
94
+ }
95
+
96
+ .thirdDot {
97
+ animation: reveal-third-dot 1.5s step-end infinite;
98
+ }
99
+
100
+ @keyframes reveal-second-dot {
101
+ 0%, 33.32% { opacity: 0; }
102
+ 33.33%, 100% { opacity: 1; }
103
+ }
104
+
105
+ @keyframes reveal-third-dot {
106
+ 0%, 66.65% { opacity: 0; }
107
+ 66.66%, 100% { opacity: 1; }
108
+ }
109
+
110
+ @media (prefers-reduced-motion: reduce) {
111
+ .indicator,
112
+ .secondDot,
113
+ .thirdDot {
114
+ animation: none;
115
+ }
116
+
117
+ .indicator {
118
+ transition: none;
119
+ }
120
+ }