@seanyeh77/ui 0.41.0 → 0.42.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (361) hide show
  1. package/README.md +32 -0
  2. package/dist/announce.d.ts +3 -0
  3. package/dist/announce.js +35 -0
  4. package/dist/announce.js.map +1 -0
  5. package/dist/bundle.js +1 -1
  6. package/dist/bundle.js.map +1 -1
  7. package/dist/components/AccentPicker/AccentPicker.d.ts +12 -0
  8. package/dist/components/AccentPicker/AccentPicker.js +96 -0
  9. package/dist/components/AccentPicker/AccentPicker.js.map +1 -0
  10. package/dist/components/ActionBar/ActionBar.d.ts +27 -0
  11. package/dist/components/ActionBar/ActionBar.js +62 -0
  12. package/dist/components/ActionBar/ActionBar.js.map +1 -0
  13. package/dist/components/AiMark/AiMark.d.ts +10 -0
  14. package/dist/components/AiMark/AiMark.js +21 -0
  15. package/dist/components/AiMark/AiMark.js.map +1 -0
  16. package/dist/components/Alert/Alert.d.ts +17 -0
  17. package/dist/components/Alert/Alert.js +56 -0
  18. package/dist/components/Alert/Alert.js.map +1 -0
  19. package/dist/components/AppShell/AppShell.d.ts +36 -0
  20. package/dist/components/AppShell/AppShell.js +195 -0
  21. package/dist/components/AppShell/AppShell.js.map +1 -0
  22. package/dist/components/Badge/Badge.d.ts +12 -0
  23. package/dist/components/Badge/Badge.js +58 -0
  24. package/dist/components/Badge/Badge.js.map +1 -0
  25. package/dist/components/BarChart/BarChart.d.ts +19 -0
  26. package/dist/components/BarChart/BarChart.js +78 -0
  27. package/dist/components/BarChart/BarChart.js.map +1 -0
  28. package/dist/components/Breadcrumb/Breadcrumb.d.ts +11 -0
  29. package/dist/components/Breadcrumb/Breadcrumb.js +29 -0
  30. package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
  31. package/dist/components/Button/Button.d.ts +39 -0
  32. package/dist/components/Button/Button.js +54 -0
  33. package/dist/components/Button/Button.js.map +1 -0
  34. package/dist/components/Calendar/Calendar.d.ts +18 -0
  35. package/dist/components/Calendar/Calendar.js +125 -0
  36. package/dist/components/Calendar/Calendar.js.map +1 -0
  37. package/dist/components/Card/Card.d.ts +14 -0
  38. package/dist/components/Card/Card.js +33 -0
  39. package/dist/components/Card/Card.js.map +1 -0
  40. package/dist/components/Checkbox/Checkbox.d.ts +14 -0
  41. package/dist/components/Checkbox/Checkbox.js +27 -0
  42. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  43. package/dist/components/CodeView/CodeView.d.ts +111 -0
  44. package/dist/components/CodeView/CodeView.js +790 -0
  45. package/dist/components/CodeView/CodeView.js.map +1 -0
  46. package/dist/components/CodeView/tokens.d.ts +5 -0
  47. package/dist/components/CodeView/tokens.js +70 -0
  48. package/dist/components/CodeView/tokens.js.map +1 -0
  49. package/dist/components/CommandPalette/CommandPalette.d.ts +52 -0
  50. package/dist/components/CommandPalette/CommandPalette.js +242 -0
  51. package/dist/components/CommandPalette/CommandPalette.js.map +1 -0
  52. package/dist/components/ConsoleLayout/ConsoleLayout.d.ts +44 -0
  53. package/dist/components/ConsoleLayout/ConsoleLayout.js +119 -0
  54. package/dist/components/ConsoleLayout/ConsoleLayout.js.map +1 -0
  55. package/dist/components/DangerZone/DangerZone.d.ts +16 -0
  56. package/dist/components/DangerZone/DangerZone.js +28 -0
  57. package/dist/components/DangerZone/DangerZone.js.map +1 -0
  58. package/dist/components/DataTable/DataTable.d.ts +99 -0
  59. package/dist/components/DataTable/DataTable.js +1267 -0
  60. package/dist/components/DataTable/DataTable.js.map +1 -0
  61. package/dist/components/DataTable/SortButton.js +222 -0
  62. package/dist/components/DataTable/SortButton.js.map +1 -0
  63. package/dist/components/DataTable/filters.js +147 -0
  64. package/dist/components/DataTable/filters.js.map +1 -0
  65. package/dist/components/DataTable/parts.js +373 -0
  66. package/dist/components/DataTable/parts.js.map +1 -0
  67. package/dist/components/DataTable/types.d.ts +85 -0
  68. package/dist/components/DatePicker/DatePicker.d.ts +15 -0
  69. package/dist/components/DatePicker/DatePicker.js +104 -0
  70. package/dist/components/DatePicker/DatePicker.js.map +1 -0
  71. package/dist/components/DateRangePicker/DateRangePicker.d.ts +11 -0
  72. package/dist/components/DateRangePicker/DateRangePicker.js +88 -0
  73. package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -0
  74. package/dist/components/DetailList/DetailList.d.ts +17 -0
  75. package/dist/components/DetailList/DetailList.js +18 -0
  76. package/dist/components/DetailList/DetailList.js.map +1 -0
  77. package/dist/components/Dialog/Dialog.d.ts +30 -0
  78. package/dist/components/Dialog/Dialog.js +87 -0
  79. package/dist/components/Dialog/Dialog.js.map +1 -0
  80. package/dist/components/Drawer/Drawer.d.ts +20 -0
  81. package/dist/components/Drawer/Drawer.js +64 -0
  82. package/dist/components/Drawer/Drawer.js.map +1 -0
  83. package/dist/components/EmptyState/EmptyState.d.ts +15 -0
  84. package/dist/components/EmptyState/EmptyState.js +34 -0
  85. package/dist/components/EmptyState/EmptyState.js.map +1 -0
  86. package/dist/components/ErrorPage/ErrorPage.d.ts +14 -0
  87. package/dist/components/ErrorPage/ErrorPage.js +47 -0
  88. package/dist/components/ErrorPage/ErrorPage.js.map +1 -0
  89. package/dist/components/EventTimeline/EventTimeline.d.ts +19 -0
  90. package/dist/components/EventTimeline/EventTimeline.js +63 -0
  91. package/dist/components/EventTimeline/EventTimeline.js.map +1 -0
  92. package/dist/components/FileUpload/FileUpload.d.ts +27 -0
  93. package/dist/components/FileUpload/FileUpload.js +121 -0
  94. package/dist/components/FileUpload/FileUpload.js.map +1 -0
  95. package/dist/components/FormGrid/FormGrid.d.ts +7 -0
  96. package/dist/components/FormGrid/FormGrid.js +14 -0
  97. package/dist/components/FormGrid/FormGrid.js.map +1 -0
  98. package/dist/components/Graph/Graph.d.ts +18 -0
  99. package/dist/components/Graph/Graph.js +97 -0
  100. package/dist/components/Graph/Graph.js.map +1 -0
  101. package/dist/components/Grid/Grid.d.ts +16 -0
  102. package/dist/components/Grid/Grid.js +21 -0
  103. package/dist/components/Grid/Grid.js.map +1 -0
  104. package/dist/components/IconButton/IconButton.d.ts +32 -0
  105. package/dist/components/IconButton/IconButton.js +104 -0
  106. package/dist/components/IconButton/IconButton.js.map +1 -0
  107. package/dist/components/InlineCode/InlineCode.d.ts +46 -0
  108. package/dist/components/InlineCode/InlineCode.js +71 -0
  109. package/dist/components/InlineCode/InlineCode.js.map +1 -0
  110. package/dist/components/KpiCard/KpiCard.d.ts +38 -0
  111. package/dist/components/KpiCard/KpiCard.js +116 -0
  112. package/dist/components/KpiCard/KpiCard.js.map +1 -0
  113. package/dist/components/LayerGraph/LayerGraph.d.ts +117 -0
  114. package/dist/components/LayerGraph/LayerGraph.js +1644 -0
  115. package/dist/components/LayerGraph/LayerGraph.js.map +1 -0
  116. package/dist/components/LineChart/LineChart.d.ts +73 -0
  117. package/dist/components/LineChart/LineChart.js +337 -0
  118. package/dist/components/LineChart/LineChart.js.map +1 -0
  119. package/dist/components/LoadingBar/LoadingBar.d.ts +7 -0
  120. package/dist/components/LoadingBar/LoadingBar.js +18 -0
  121. package/dist/components/LoadingBar/LoadingBar.js.map +1 -0
  122. package/dist/components/LoginCard/LoginCard.d.ts +23 -0
  123. package/dist/components/LoginCard/LoginCard.js +113 -0
  124. package/dist/components/LoginCard/LoginCard.js.map +1 -0
  125. package/dist/components/Markdown/Markdown.d.ts +38 -0
  126. package/dist/components/Markdown/Markdown.js +716 -0
  127. package/dist/components/Markdown/Markdown.js.map +1 -0
  128. package/dist/components/Menu/Menu.d.ts +33 -0
  129. package/dist/components/Menu/Menu.js +75 -0
  130. package/dist/components/Menu/Menu.js.map +1 -0
  131. package/dist/components/Meter/Meter.d.ts +20 -0
  132. package/dist/components/Meter/Meter.js +120 -0
  133. package/dist/components/Meter/Meter.js.map +1 -0
  134. package/dist/components/MobileTabBar/MobileTabBar.d.ts +21 -0
  135. package/dist/components/MobileTabBar/MobileTabBar.js +47 -0
  136. package/dist/components/MobileTabBar/MobileTabBar.js.map +1 -0
  137. package/dist/components/MultiSelect/MultiSelect.d.ts +25 -0
  138. package/dist/components/MultiSelect/MultiSelect.js +116 -0
  139. package/dist/components/MultiSelect/MultiSelect.js.map +1 -0
  140. package/dist/components/NotificationBell/NotificationBell.d.ts +20 -0
  141. package/dist/components/NotificationBell/NotificationBell.js +92 -0
  142. package/dist/components/NotificationBell/NotificationBell.js.map +1 -0
  143. package/dist/components/Popover/Popover.d.ts +20 -0
  144. package/dist/components/Popover/Popover.js +48 -0
  145. package/dist/components/Popover/Popover.js.map +1 -0
  146. package/dist/components/ProgressBar/ProgressBar.d.ts +10 -0
  147. package/dist/components/ProgressBar/ProgressBar.js +38 -0
  148. package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
  149. package/dist/components/ProgressRing/ProgressRing.d.ts +11 -0
  150. package/dist/components/ProgressRing/ProgressRing.js +53 -0
  151. package/dist/components/ProgressRing/ProgressRing.js.map +1 -0
  152. package/dist/components/ProjectSwitcher/ProjectSwitcher.d.ts +25 -0
  153. package/dist/components/ProjectSwitcher/ProjectSwitcher.js +97 -0
  154. package/dist/components/ProjectSwitcher/ProjectSwitcher.js.map +1 -0
  155. package/dist/components/RadioGroup/RadioGroup.d.ts +18 -0
  156. package/dist/components/RadioGroup/RadioGroup.js +63 -0
  157. package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
  158. package/dist/components/SearchField/SearchField.d.ts +9 -0
  159. package/dist/components/SearchField/SearchField.js +46 -0
  160. package/dist/components/SearchField/SearchField.js.map +1 -0
  161. package/dist/components/Section/Section.d.ts +50 -0
  162. package/dist/components/Section/Section.js +220 -0
  163. package/dist/components/Section/Section.js.map +1 -0
  164. package/dist/components/SegmentedControl/SegmentedControl.d.ts +23 -0
  165. package/dist/components/SegmentedControl/SegmentedControl.js +86 -0
  166. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
  167. package/dist/components/Select/Select.d.ts +31 -0
  168. package/dist/components/Select/Select.js +138 -0
  169. package/dist/components/Select/Select.js.map +1 -0
  170. package/dist/components/SettingsLayout/SettingsLayout.d.ts +27 -0
  171. package/dist/components/SettingsLayout/SettingsLayout.js +69 -0
  172. package/dist/components/SettingsLayout/SettingsLayout.js.map +1 -0
  173. package/dist/components/SideNav/SideNav.d.ts +48 -0
  174. package/dist/components/SideNav/SideNav.js +220 -0
  175. package/dist/components/SideNav/SideNav.js.map +1 -0
  176. package/dist/components/Skeleton/Skeleton.d.ts +8 -0
  177. package/dist/components/Skeleton/Skeleton.js +17 -0
  178. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  179. package/dist/components/SplitPane/SplitPane.d.ts +23 -0
  180. package/dist/components/SplitPane/SplitPane.js +140 -0
  181. package/dist/components/SplitPane/SplitPane.js.map +1 -0
  182. package/dist/components/StatusBand/StatusBand.d.ts +31 -0
  183. package/dist/components/StatusBand/StatusBand.js +43 -0
  184. package/dist/components/StatusBand/StatusBand.js.map +1 -0
  185. package/dist/components/Suggestion/Suggestion.d.ts +22 -0
  186. package/dist/components/Suggestion/Suggestion.js +72 -0
  187. package/dist/components/Suggestion/Suggestion.js.map +1 -0
  188. package/dist/components/Switch/Switch.d.ts +11 -0
  189. package/dist/components/Switch/Switch.js +56 -0
  190. package/dist/components/Switch/Switch.js.map +1 -0
  191. package/dist/components/Tabs/Tabs.d.ts +23 -0
  192. package/dist/components/Tabs/Tabs.js +117 -0
  193. package/dist/components/Tabs/Tabs.js.map +1 -0
  194. package/dist/components/Tag/Tag.d.ts +13 -0
  195. package/dist/components/Tag/Tag.js +22 -0
  196. package/dist/components/Tag/Tag.js.map +1 -0
  197. package/dist/components/Term/Term.d.ts +34 -0
  198. package/dist/components/Term/Term.js +138 -0
  199. package/dist/components/Term/Term.js.map +1 -0
  200. package/dist/components/TextArea/TextArea.d.ts +15 -0
  201. package/dist/components/TextArea/TextArea.js +75 -0
  202. package/dist/components/TextArea/TextArea.js.map +1 -0
  203. package/dist/components/TextField/TextField.d.ts +15 -0
  204. package/dist/components/TextField/TextField.js +43 -0
  205. package/dist/components/TextField/TextField.js.map +1 -0
  206. package/dist/components/ThemePicker/ThemePicker.d.ts +13 -0
  207. package/dist/components/ThemePicker/ThemePicker.js +66 -0
  208. package/dist/components/ThemePicker/ThemePicker.js.map +1 -0
  209. package/dist/components/TimeControl/TimeControl.d.ts +19 -0
  210. package/dist/components/TimeControl/TimeControl.js +47 -0
  211. package/dist/components/TimeControl/TimeControl.js.map +1 -0
  212. package/dist/components/Toast/Toast.d.ts +10 -0
  213. package/dist/components/Toast/Toast.js +27 -0
  214. package/dist/components/Toast/Toast.js.map +1 -0
  215. package/dist/components/Tooltip/Tooltip.d.ts +17 -0
  216. package/dist/components/Tooltip/Tooltip.js +69 -0
  217. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  218. package/dist/components/TopBar/TopBar.d.ts +18 -0
  219. package/dist/components/TopBar/TopBar.js +55 -0
  220. package/dist/components/TopBar/TopBar.js.map +1 -0
  221. package/dist/components/Tour/Tour.d.ts +44 -0
  222. package/dist/components/Tour/Tour.js +440 -0
  223. package/dist/components/Tour/Tour.js.map +1 -0
  224. package/dist/components/TreeList/TreeList.d.ts +90 -0
  225. package/dist/components/TreeList/TreeList.js +588 -0
  226. package/dist/components/TreeList/TreeList.js.map +1 -0
  227. package/dist/components/TreeList/helpers.d.ts +2 -0
  228. package/dist/components/TreeList/helpers.js +104 -0
  229. package/dist/components/TreeList/helpers.js.map +1 -0
  230. package/dist/components/Workbench/Workbench.d.ts +100 -0
  231. package/dist/components/Workbench/Workbench.js +1137 -0
  232. package/dist/components/Workbench/Workbench.js.map +1 -0
  233. package/dist/components/ZoneMap/ZoneMap.d.ts +49 -0
  234. package/dist/components/ZoneMap/ZoneMap.js +89 -0
  235. package/dist/components/ZoneMap/ZoneMap.js.map +1 -0
  236. package/dist/css/AccentPicker.css +49 -0
  237. package/dist/css/ActionBar.css +36 -0
  238. package/dist/css/AiMark.css +14 -0
  239. package/dist/css/Alert.css +80 -0
  240. package/dist/css/AppShell.css +81 -0
  241. package/dist/css/Badge.css +68 -0
  242. package/dist/css/BarChart.css +66 -0
  243. package/dist/css/Breadcrumb.css +33 -0
  244. package/dist/css/Button.css +190 -0
  245. package/dist/css/Calendar.css +96 -0
  246. package/dist/css/Card.css +70 -0
  247. package/dist/css/Checkbox.css +38 -0
  248. package/dist/css/CodeView.css +302 -0
  249. package/dist/css/CommandPalette.css +232 -0
  250. package/dist/css/ConsoleLayout.css +131 -0
  251. package/dist/css/DangerZone.css +32 -0
  252. package/dist/css/DataTable.css +1195 -0
  253. package/dist/css/DatePicker.css +38 -0
  254. package/dist/css/DateRangePicker.css +70 -0
  255. package/dist/css/DetailList.css +69 -0
  256. package/dist/css/Dialog.css +3 -0
  257. package/dist/css/Drawer.css +90 -0
  258. package/dist/css/EmptyState.css +61 -0
  259. package/dist/css/ErrorPage.css +40 -0
  260. package/dist/css/EventTimeline.css +43 -0
  261. package/dist/css/FileUpload.css +92 -0
  262. package/dist/css/FormGrid.css +17 -0
  263. package/dist/css/Graph.css +99 -0
  264. package/dist/css/Grid.css +48 -0
  265. package/dist/css/IconButton.css +149 -0
  266. package/dist/css/InlineCode.css +92 -0
  267. package/dist/css/KpiCard.css +121 -0
  268. package/dist/css/LayerGraph.css +575 -0
  269. package/dist/css/LineChart.css +3 -0
  270. package/dist/css/LoadingBar.css +45 -0
  271. package/dist/css/LoginCard.css +65 -0
  272. package/dist/css/Markdown.css +266 -0
  273. package/dist/css/Menu.css +88 -0
  274. package/dist/css/Meter.css +110 -0
  275. package/dist/css/MobileTabBar.css +63 -0
  276. package/dist/css/MultiSelect.css +78 -0
  277. package/dist/css/NotificationBell.css +129 -0
  278. package/dist/css/Popover.css +57 -0
  279. package/dist/css/ProgressBar.css +42 -0
  280. package/dist/css/ProgressRing.css +19 -0
  281. package/dist/css/ProjectSwitcher.css +153 -0
  282. package/dist/css/RadioGroup.css +52 -0
  283. package/dist/css/SearchField.css +79 -0
  284. package/dist/css/Section.css +115 -0
  285. package/dist/css/SegmentedControl.css +67 -0
  286. package/dist/css/Select.css +136 -0
  287. package/dist/css/SettingsLayout.css +110 -0
  288. package/dist/css/SideNav.css +281 -0
  289. package/dist/css/Skeleton.css +19 -0
  290. package/dist/css/SplitPane.css +108 -0
  291. package/dist/css/StatusBand.css +23 -0
  292. package/dist/css/Suggestion.css +82 -0
  293. package/dist/css/Switch.css +46 -0
  294. package/dist/css/Tabs.css +91 -0
  295. package/dist/css/Tag.css +36 -0
  296. package/dist/css/Term.css +160 -0
  297. package/dist/css/TextArea.css +22 -0
  298. package/dist/css/TextField.css +2 -0
  299. package/dist/css/ThemePicker.css +70 -0
  300. package/dist/css/TimeControl.css +33 -0
  301. package/dist/css/Toast.css +47 -0
  302. package/dist/css/Tooltip.css +58 -0
  303. package/dist/css/TopBar.css +86 -0
  304. package/dist/css/Tour.css +90 -0
  305. package/dist/css/TreeList.css +532 -0
  306. package/dist/css/Workbench.css +652 -0
  307. package/dist/css/ZoneMap.css +203 -0
  308. package/dist/css/base.css +556 -0
  309. package/dist/css/end.css +273 -0
  310. package/dist/format-entry.d.ts +3 -0
  311. package/dist/format-entry.js +3 -0
  312. package/dist/format.d.ts +68 -2
  313. package/dist/format.js +237 -1
  314. package/dist/format.js.map +1 -0
  315. package/dist/i18n.d.ts +11 -0
  316. package/dist/{format-entry-CyChe8bk.js → i18n.js} +2 -235
  317. package/dist/i18n.js.map +1 -0
  318. package/dist/icons/Icon.d.ts +23 -0
  319. package/dist/icons/Icon.js +90 -0
  320. package/dist/icons/Icon.js.map +1 -0
  321. package/dist/icons/data.d.ts +150 -0
  322. package/dist/icons/data.js +256 -0
  323. package/dist/icons/data.js.map +1 -0
  324. package/dist/index.d.ts +84 -2293
  325. package/dist/index.js +79 -13348
  326. package/dist/internal/Field.js +71 -0
  327. package/dist/internal/Field.js.map +1 -0
  328. package/dist/internal/FloatingPanel.js +41 -0
  329. package/dist/internal/FloatingPanel.js.map +1 -0
  330. package/dist/internal/chart.js +131 -0
  331. package/dist/internal/chart.js.map +1 -0
  332. package/dist/internal/dev.js +21 -0
  333. package/dist/internal/dev.js.map +1 -0
  334. package/dist/internal/focus.js +94 -0
  335. package/dist/internal/focus.js.map +1 -0
  336. package/dist/internal/focusMain.d.ts +4 -0
  337. package/dist/internal/focusMain.js +22 -0
  338. package/dist/internal/focusMain.js.map +1 -0
  339. package/dist/internal/scrollHint.js +75 -0
  340. package/dist/internal/scrollHint.js.map +1 -0
  341. package/dist/internal/tableTools.js +109 -0
  342. package/dist/internal/tableTools.js.map +1 -0
  343. package/dist/internal/terms.d.ts +18 -0
  344. package/dist/internal/terms.js +64 -0
  345. package/dist/internal/terms.js.map +1 -0
  346. package/dist/internal/util.js +107 -0
  347. package/dist/internal/util.js.map +1 -0
  348. package/dist/motion.d.ts +5 -0
  349. package/dist/motion.js +29 -0
  350. package/dist/motion.js.map +1 -0
  351. package/dist/styles.css +4280 -4265
  352. package/dist/theme.d.ts +20 -0
  353. package/dist/theme.js +210 -0
  354. package/dist/theme.js.map +1 -0
  355. package/dist/tokens.css +4 -0
  356. package/docs/guidelines.md +1 -0
  357. package/docs/theme.md +49 -0
  358. package/package.json +5 -4
  359. package/dist/format-entry-CgMBtkni.d.ts +0 -79
  360. package/dist/format-entry-CyChe8bk.js.map +0 -1
  361. package/dist/index.js.map +0 -1
@@ -0,0 +1,302 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './IconButton.css';
4
+ @import './Popover.css';
5
+ @import './InlineCode.css';
6
+ @import './Term.css';
7
+ @layer ui.components {
8
+ /* CodeView: the keys that move inside the code, shown while it has focus. */
9
+ .ui-cv-keys {
10
+ outline: none;
11
+ padding: var(--space-2) var(--space-3);
12
+ max-width: min(320px, calc(100vw - 32px));
13
+ }
14
+ .ui-cv-keylist {
15
+ margin: 0;
16
+ display: grid;
17
+ gap: 4px;
18
+ font-size: var(--text-small);
19
+ }
20
+ .ui-cv-keylist > div {
21
+ display: flex;
22
+ align-items: baseline;
23
+ gap: var(--space-2);
24
+ }
25
+ .ui-cv-keylist dt {
26
+ flex: 0 0 64px;
27
+ }
28
+ .ui-cv-keylist dd {
29
+ margin: 0;
30
+ color: var(--ink-muted);
31
+ }
32
+ .ui-cv-keylist kbd {
33
+ padding: 0 var(--space-1);
34
+ border: 1px solid var(--line);
35
+ border-bottom-width: 2px;
36
+ border-radius: var(--radius-xs);
37
+ background: var(--surface);
38
+ font-family: var(--font-mono);
39
+ font-size: var(--text-mini);
40
+ }
41
+ /* header="float": the language and buttons float at the top right while the pointer is over the code or focus is in
42
+ it; always on touch screens. */
43
+ .ui-cv {
44
+ position: relative;
45
+ }
46
+ .ui-cv-tools {
47
+ position: absolute;
48
+ top: 6px;
49
+ right: 6px;
50
+ z-index: var(--z-sticky);
51
+ display: flex;
52
+ align-items: center;
53
+ gap: 2px;
54
+ padding: 2px 2px 2px var(--space-2);
55
+ border-radius: var(--radius-sm);
56
+ background: var(--surface);
57
+ box-shadow: var(--shadow-sm);
58
+ font-size: var(--text-mini);
59
+ opacity: 0;
60
+ transition: opacity var(--dur-hover) ease;
61
+ }
62
+ .ui-cv:is(:hover, :focus-within) .ui-cv-tools,
63
+ .ui-cv-tools:has([aria-expanded='true']) {
64
+ opacity: 1;
65
+ }
66
+ @media (pointer: coarse) {
67
+ .ui-cv-tools {
68
+ opacity: 1;
69
+ }
70
+ }
71
+ .ui-cv-keyanchor {
72
+ position: absolute;
73
+ top: 4px;
74
+ right: 8px;
75
+ width: 1px;
76
+ height: 1px;
77
+ }
78
+
79
+ /* CodeView */
80
+ .ui-cv {
81
+ border-radius: var(--radius-md);
82
+ background: var(--surface-sub);
83
+ overflow: hidden;
84
+ }
85
+ .ui-cv-head {
86
+ display: flex;
87
+ align-items: center;
88
+ gap: var(--space-2);
89
+ min-height: 40px;
90
+ padding: 0 var(--space-3);
91
+ border-bottom: 1px solid var(--line);
92
+ font-size: var(--text-small);
93
+ }
94
+ .ui-cv-file {
95
+ min-width: 0;
96
+ overflow: hidden;
97
+ text-overflow: ellipsis;
98
+ white-space: nowrap;
99
+ font-family: var(--font-mono);
100
+ }
101
+ .ui-cv-title {
102
+ font-weight: 600;
103
+ white-space: nowrap;
104
+ }
105
+ .ui-cv-lang {
106
+ margin-left: auto;
107
+ flex: 0 0 auto;
108
+ color: var(--ink-muted);
109
+ white-space: nowrap;
110
+ }
111
+ /* No line numbers: the code starts 16 px in, like the header text. */
112
+ .ui-cv.no-nums .ui-cv-text {
113
+ margin-left: var(--space-4);
114
+ padding-right: var(--space-4);
115
+ }
116
+ /* KB: a Markdown code block has a low header (32 px) with no rule under it. */
117
+ .ui-md-code .ui-cv-head {
118
+ min-height: 32px;
119
+ padding-left: var(--space-4);
120
+ border-bottom: 0;
121
+ }
122
+ .ui-md-code .ui-cv-body {
123
+ padding: 2px 0 10px;
124
+ }
125
+ /* A small copy icon at the right of the header, as in Suggestion; 48 px on phones. */
126
+ .ui-cv-copy {
127
+ flex: 0 0 auto;
128
+ width: 32px;
129
+ height: 32px;
130
+ margin-right: calc(-1 * var(--space-1));
131
+ border-color: transparent;
132
+ }
133
+ .ui-cv-lang + .ui-cv-copy {
134
+ margin-left: 0;
135
+ }
136
+ .ui-cv-copy:first-child,
137
+ .ui-cv-file + .ui-cv-copy,
138
+ .ui-cv-title + .ui-cv-copy {
139
+ margin-left: auto;
140
+ }
141
+ .ui-cv-copy:hover {
142
+ background: var(--surface);
143
+ }
144
+ .ui-cv-copy.is-copied {
145
+ color: var(--success-text);
146
+ }
147
+ @media (max-width: 599px) {
148
+ .ui-cv-copy {
149
+ width: var(--touch-target);
150
+ height: var(--touch-target);
151
+ }
152
+ }
153
+ .ui-cv-body {
154
+ margin: 0;
155
+ padding: 6px 0;
156
+ overflow-y: auto;
157
+ overflow-x: hidden;
158
+ font-family: var(--font-mono);
159
+ font-size: var(--text-small);
160
+ line-height: 20px;
161
+ color: var(--ink);
162
+ tab-size: 4;
163
+ outline: none;
164
+ }
165
+ .ui-cv-body code {
166
+ display: block;
167
+ font: inherit;
168
+ background: none;
169
+ padding: 0;
170
+ }
171
+ .ui-cv-line {
172
+ display: flex;
173
+ }
174
+ .ui-cv-line.is-peek {
175
+ /* peek: a line marked for a moment from outside (an item pointing at it); quieter than the target. */
176
+ background: var(--surface);
177
+ box-shadow: inset 3px 0 0 var(--line-strong);
178
+ transition: background var(--dur-hover) ease;
179
+ }
180
+ .ui-cv-line.is-target {
181
+ background: var(--accent-soft);
182
+ box-shadow: inset 3px 0 0 var(--accent);
183
+ }
184
+ .ui-cv-num {
185
+ flex: 0 0 auto;
186
+ box-sizing: border-box;
187
+ /* VA: off the left edge, and clear of the code. */
188
+ padding: 0 var(--space-4) 0 var(--space-3);
189
+ text-align: right;
190
+ color: var(--ink-muted);
191
+ font-variant-numeric: tabular-nums;
192
+ -webkit-user-select: none;
193
+ user-select: none;
194
+ }
195
+ .ui-cv-line.is-target .ui-cv-num {
196
+ color: var(--ink);
197
+ font-weight: 600;
198
+ }
199
+ .ui-cv-text {
200
+ flex: 1 1 auto;
201
+ min-width: 0;
202
+ padding: 0 var(--space-3) 0 4ch;
203
+ text-indent: -4ch;
204
+ white-space: pre-wrap;
205
+ overflow-wrap: anywhere;
206
+ /* Continuation of a wrapped line: a 2 px bar in the 4ch hanging indent, from the second line down, so it never
207
+ reads as the next line of code. Nothing shows on a line that fits. */
208
+ background: linear-gradient(var(--line-strong), var(--line-strong)) no-repeat 1.5ch 20px / 2px calc(100% - 20px);
209
+ }
210
+ /* 「第 62 行」 for screen readers only: never selected or copied with the code. */
211
+ /* A path in a comment or string, as a link (refHref, onRef): link colour, underlined; a button looks the same. */
212
+ .ui-cv-ref {
213
+ padding: 0;
214
+ border: 0;
215
+ background: none;
216
+ font: inherit;
217
+ color: var(--accent-text);
218
+ text-decoration: underline;
219
+ text-underline-offset: 2px;
220
+ border-radius: 2px;
221
+ }
222
+ .ui-cv-ref:hover {
223
+ text-decoration-thickness: 2px;
224
+ }
225
+ .ui-cv-ref:is(button) {
226
+ cursor: pointer;
227
+ }
228
+ /* A name in the code that is a link (links): keeps its syntax colour, with a faint dotted underline (accent-text at
229
+ 55 %, opaque on the target line's soft background), 3 px below the text so it never merges with an underscore.
230
+ It only acts while Ctrl or ⌘ is held (is-armed): then hover turns it into a solid 2 px link-coloured underline and a
231
+ hand cursor. A plain click selects text. Touch screens have no Ctrl: a tap opens it, so the cursor is a hand there. */
232
+ .ui-cv-name {
233
+ color: inherit;
234
+ text-decoration: underline dotted color-mix(in srgb, var(--accent-text) 55%, transparent);
235
+ text-decoration-thickness: 1px;
236
+ text-underline-offset: 3px;
237
+ border-radius: 2px;
238
+ cursor: text;
239
+ -webkit-box-decoration-break: clone;
240
+ box-decoration-break: clone;
241
+ -webkit-user-drag: none;
242
+ }
243
+ .ui-cv-line.is-target .ui-cv-name {
244
+ text-decoration-color: var(--accent-text);
245
+ }
246
+ .ui-cv-body.is-armed .ui-cv-name:hover,
247
+ .ui-cv-name:focus-visible {
248
+ color: var(--accent-text);
249
+ text-decoration-style: solid;
250
+ text-decoration-color: var(--accent-text);
251
+ text-decoration-thickness: 2px;
252
+ }
253
+ .ui-cv-body.is-armed .ui-cv-name:hover :is(.is-keyword, .is-constant, .is-string),
254
+ .ui-cv-name:focus-visible :is(.is-keyword, .is-constant, .is-string) {
255
+ color: inherit;
256
+ }
257
+ .ui-cv-body.is-armed .ui-cv-name:hover {
258
+ cursor: pointer;
259
+ }
260
+ @media (pointer: coarse) {
261
+ .ui-cv-name {
262
+ cursor: pointer;
263
+ }
264
+ }
265
+ /* The preview card under a name (preview). */
266
+ .ui-cv-preview {
267
+ max-width: 320px;
268
+ padding: var(--space-3);
269
+ font-size: var(--text-small);
270
+ line-height: 20px;
271
+ }
272
+ .ui-cv-sr {
273
+ -webkit-user-select: none;
274
+ user-select: none;
275
+ }
276
+ /* An operator never splits across lines (-> stays ->). */
277
+ .ui-cv-op {
278
+ white-space: nowrap;
279
+ }
280
+ .ui-cv .is-keyword {
281
+ color: var(--code-keyword);
282
+ }
283
+ .ui-cv .is-constant {
284
+ color: var(--code-constant);
285
+ }
286
+ .ui-cv .is-string {
287
+ color: var(--code-constant);
288
+ }
289
+ .ui-cv .is-comment {
290
+ color: var(--ink-muted);
291
+ font-style: italic;
292
+ }
293
+ .ui-cv-more {
294
+ display: inline-flex;
295
+ align-items: center;
296
+ min-height: 40px;
297
+ margin: 0 var(--space-3) var(--space-1);
298
+ font-size: var(--text-compact);
299
+ font-weight: 600;
300
+ white-space: nowrap;
301
+ }
302
+ }
@@ -0,0 +1,232 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './InlineCode.css';
4
+ @layer ui.components {
5
+ /* CommandPalette */
6
+ .ui-pal-backdrop {
7
+ position: fixed;
8
+ z-index: var(--z-palette);
9
+ inset: 0;
10
+ background: var(--scrim);
11
+ -webkit-backdrop-filter: blur(4px);
12
+ backdrop-filter: blur(4px);
13
+ animation: ui-fade var(--dur-hover) ease both;
14
+ }
15
+ .ui-pal {
16
+ position: fixed;
17
+ z-index: calc(var(--z-palette) + 1);
18
+ left: 50%;
19
+ top: 12vh;
20
+ width: 640px;
21
+ max-width: calc(100vw - 24px);
22
+ /* PB: down to 24 px above the bottom of the window. */
23
+ max-height: calc(88vh - 24px);
24
+ transform: translateX(-50%);
25
+ display: flex;
26
+ flex-direction: column;
27
+ box-sizing: border-box;
28
+ border-radius: var(--radius-lg);
29
+ background: var(--surface);
30
+ border: 1px solid var(--line);
31
+ box-shadow: var(--shadow-overlay);
32
+ overflow: hidden;
33
+ animation: ui-pal-in var(--dur-nav) cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
34
+ }
35
+ @keyframes ui-pal-in {
36
+ from {
37
+ opacity: 0;
38
+ transform: translateX(-50%) translateY(-6px) scale(0.98);
39
+ }
40
+ to {
41
+ opacity: 1;
42
+ transform: translateX(-50%);
43
+ }
44
+ }
45
+ .ui-pal-head {
46
+ flex: 0 0 auto;
47
+ display: flex;
48
+ align-items: center;
49
+ gap: var(--space-2);
50
+ padding: 0 var(--space-2) 0 var(--space-4);
51
+ border-bottom: 1px solid var(--line);
52
+ }
53
+ .ui-pal-icon {
54
+ flex: 0 0 auto;
55
+ color: var(--ink-muted);
56
+ }
57
+ .ui-pal-input {
58
+ flex: 1 1 auto;
59
+ min-width: 0;
60
+ height: 56px;
61
+ border: 0;
62
+ outline: none;
63
+ background: transparent;
64
+ color: var(--ink);
65
+ font: inherit;
66
+ font-size: var(--text-body);
67
+ }
68
+ .ui-pal-input::placeholder {
69
+ color: var(--ink-muted);
70
+ }
71
+ .ui-pal-cancel {
72
+ flex: 0 0 auto;
73
+ height: 40px;
74
+ padding: 0 var(--space-3);
75
+ border: 0;
76
+ border-radius: var(--radius-md);
77
+ background: transparent;
78
+ color: var(--accent-text);
79
+ font: inherit;
80
+ font-size: var(--text-control);
81
+ font-weight: 600;
82
+ white-space: nowrap;
83
+ cursor: pointer;
84
+ }
85
+ .ui-pal-cancel:hover {
86
+ background: var(--surface-sub);
87
+ }
88
+ .ui-pal-group {
89
+ padding: var(--space-3) var(--space-4) var(--space-1);
90
+ font-size: var(--text-small);
91
+ font-weight: 700;
92
+ color: var(--ink-muted);
93
+ }
94
+ .ui-pal-list {
95
+ flex: 1 1 auto;
96
+ min-height: 0;
97
+ overflow-y: auto;
98
+ margin: 0;
99
+ padding: 6px;
100
+ list-style: none;
101
+ overscroll-behavior: contain;
102
+ }
103
+ .ui-pal-item {
104
+ display: flex;
105
+ align-items: center;
106
+ gap: var(--space-3);
107
+ min-height: var(--touch-target);
108
+ padding: 4px 10px;
109
+ border-radius: var(--radius-sm);
110
+ cursor: pointer;
111
+ }
112
+ .ui-pal-item.is-active {
113
+ background: var(--surface-sub);
114
+ }
115
+ .ui-pal-kind {
116
+ flex: 0 0 28px;
117
+ width: 28px;
118
+ height: 28px;
119
+ display: inline-flex;
120
+ align-items: center;
121
+ justify-content: center;
122
+ border-radius: var(--radius-sm);
123
+ background: var(--surface-sub);
124
+ color: var(--ink-muted);
125
+ }
126
+ .ui-pal-item.is-active .ui-pal-kind {
127
+ background: var(--surface);
128
+ }
129
+ .ui-pal-text {
130
+ flex: 1 1 auto;
131
+ min-width: 0;
132
+ display: flex;
133
+ flex-direction: column;
134
+ }
135
+ .ui-pal-line,
136
+ .ui-pal-detail {
137
+ display: block;
138
+ overflow: hidden;
139
+ text-overflow: ellipsis;
140
+ white-space: nowrap;
141
+ }
142
+ .ui-pal-label {
143
+ font-size: var(--text-control);
144
+ color: var(--ink);
145
+ }
146
+ .ui-pal-label.is-code {
147
+ font-family: var(--font-mono);
148
+ font-size: var(--text-compact);
149
+ }
150
+ .ui-pal-hit {
151
+ background: transparent;
152
+ color: inherit;
153
+ font-weight: 700;
154
+ }
155
+ .ui-pal-detail {
156
+ font-size: var(--text-small);
157
+ line-height: 20px;
158
+ color: var(--ink-muted);
159
+ }
160
+ /* PA: the description wraps onto a second line; cut from the third. */
161
+ .ui-pal .ui-pal-detail {
162
+ display: -webkit-box;
163
+ -webkit-box-orient: vertical;
164
+ -webkit-line-clamp: 2;
165
+ line-clamp: 2;
166
+ white-space: normal;
167
+ overflow-wrap: anywhere;
168
+ }
169
+ .ui-pal-empty {
170
+ margin: 0;
171
+ padding: var(--space-6) var(--space-4);
172
+ font-size: var(--text-compact);
173
+ color: var(--ink-muted);
174
+ text-align: center;
175
+ }
176
+ .ui-pal-loading,
177
+ .ui-pal-count {
178
+ flex: 0 0 auto;
179
+ margin: 0;
180
+ padding: var(--space-2) var(--space-4);
181
+ border-top: 1px solid var(--line);
182
+ font-size: var(--text-small);
183
+ color: var(--ink-muted);
184
+ }
185
+ .ui-pal-keys {
186
+ flex: 0 0 auto;
187
+ display: flex;
188
+ gap: var(--space-4);
189
+ padding: var(--space-2) var(--space-4);
190
+ border-top: 1px solid var(--line);
191
+ font-size: var(--text-small);
192
+ color: var(--ink-muted);
193
+ white-space: nowrap;
194
+ }
195
+ .ui-pal-keys span {
196
+ display: inline-flex;
197
+ align-items: center;
198
+ gap: 4px;
199
+ }
200
+ .ui-pal-keys kbd {
201
+ min-width: 20px;
202
+ height: 20px;
203
+ padding: 0 5px;
204
+ box-sizing: border-box;
205
+ display: inline-flex;
206
+ align-items: center;
207
+ justify-content: center;
208
+ border: 1px solid var(--line-strong);
209
+ border-radius: var(--radius-xs);
210
+ font-family: var(--font-mono);
211
+ font-size: var(--text-mini);
212
+ }
213
+ @media (hover: none), (pointer: coarse) {
214
+ .ui-pal-keys {
215
+ display: none;
216
+ }
217
+ }
218
+ @media (max-width: 599px) {
219
+ .ui-pal {
220
+ top: 64px;
221
+ max-height: 55dvh;
222
+ }
223
+ .ui-pal-input {
224
+ height: 52px;
225
+ }
226
+ }
227
+ @media (prefers-reduced-motion: reduce) {
228
+ .ui-pal {
229
+ animation: none;
230
+ }
231
+ }
232
+ }
@@ -0,0 +1,131 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './IconButton.css';
4
+ @layer ui.components {
5
+ /* ConsoleLayout: a full-screen monitoring layout. Top bar, main view with a side panel and a bottom row, no page
6
+ scroll; the frame zooms 1 to 1.5x from 1440 x 900 up (inline zoom, width and height from the component). */
7
+ .ui-console {
8
+ container-type: inline-size;
9
+ height: 100dvh;
10
+ overflow: hidden;
11
+ background: var(--bg);
12
+ color: var(--ink);
13
+ }
14
+ .ui-console-frame {
15
+ box-sizing: border-box;
16
+ width: 100%;
17
+ height: 100%;
18
+ display: grid;
19
+ grid-template-columns: minmax(0, 1fr) 400px;
20
+ grid-template-rows: auto minmax(0, 1fr) auto;
21
+ gap: 12px;
22
+ padding: 12px;
23
+ }
24
+ @container (max-width: 1279px) {
25
+ .ui-console-frame {
26
+ grid-template-columns: minmax(0, 1fr) 360px;
27
+ }
28
+ }
29
+ .ui-console-top {
30
+ grid-column: 1 / -1;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: space-between;
34
+ gap: var(--space-4);
35
+ min-height: 64px;
36
+ padding: 0 var(--space-4);
37
+ border-radius: var(--radius-lg);
38
+ background: var(--surface);
39
+ box-shadow: var(--shadow-card);
40
+ font-size: var(--text-body);
41
+ line-height: 1.5;
42
+ }
43
+ .ui-console-start,
44
+ .ui-console-end {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: var(--space-3);
48
+ min-width: 0;
49
+ }
50
+ .ui-console-title {
51
+ margin: 0;
52
+ font-size: inherit;
53
+ line-height: inherit;
54
+ font-weight: 700;
55
+ white-space: nowrap;
56
+ }
57
+ .ui-console-status,
58
+ .ui-console-clock {
59
+ white-space: nowrap;
60
+ }
61
+ .ui-console-kpis {
62
+ display: flex;
63
+ align-items: stretch;
64
+ }
65
+ .ui-console-main {
66
+ grid-column: 1;
67
+ grid-row: 2;
68
+ min-width: 0;
69
+ min-height: 0;
70
+ display: flex;
71
+ flex-direction: column;
72
+ }
73
+ .ui-console-main > * {
74
+ flex: 1 1 auto;
75
+ min-height: 0;
76
+ overflow: auto;
77
+ /* a column, so a ZoneMap with fill (or any flex: 1 child) takes the card's remaining height */
78
+ display: flex;
79
+ flex-direction: column;
80
+ }
81
+ .ui-console-side {
82
+ grid-column: 2;
83
+ grid-row: 2 / 4;
84
+ min-height: 0;
85
+ overflow-y: auto;
86
+ display: flex;
87
+ flex-direction: column;
88
+ gap: 12px;
89
+ /* room for the cards' shadows inside the scrolling column */
90
+ margin: -12px;
91
+ padding: 12px;
92
+ }
93
+ .ui-console-side > * {
94
+ flex: none;
95
+ }
96
+ .ui-console-bottom {
97
+ grid-column: 1;
98
+ grid-row: 3;
99
+ min-width: 0;
100
+ min-height: 0;
101
+ display: flex;
102
+ flex-direction: column;
103
+ }
104
+ /* Phones: one scrolling column, top bar first, then the main view, side cards, bottom row and extra cards. */
105
+ .ui-console.is-stacked {
106
+ height: auto;
107
+ min-height: 100dvh;
108
+ overflow: visible;
109
+ }
110
+ .ui-console.is-stacked .ui-console-frame {
111
+ display: flex;
112
+ flex-direction: column;
113
+ height: auto;
114
+ }
115
+ .ui-console.is-stacked .ui-console-top {
116
+ flex-wrap: wrap;
117
+ padding: var(--space-3) var(--space-4);
118
+ }
119
+ .ui-console.is-stacked .ui-console-end {
120
+ flex-wrap: wrap;
121
+ row-gap: var(--space-2);
122
+ }
123
+ .ui-console.is-stacked .ui-console-kpis {
124
+ order: 1;
125
+ width: 100%;
126
+ overflow-x: auto;
127
+ }
128
+ .ui-console.is-stacked .ui-console-main {
129
+ min-height: 320px;
130
+ }
131
+ }
@@ -0,0 +1,32 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './Button.css';
4
+ @layer ui.components {
5
+ .ui-danger {
6
+ padding: 18px;
7
+ border: 1px solid var(--danger);
8
+ border-radius: var(--radius-lg);
9
+ background: var(--surface);
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: 8px;
13
+ }
14
+ .ui-danger-title {
15
+ margin: 0;
16
+ font-size: var(--text-lead);
17
+ font-weight: 700;
18
+ color: var(--danger-text);
19
+ }
20
+ .ui-danger-row {
21
+ display: flex;
22
+ justify-content: space-between;
23
+ align-items: center;
24
+ gap: 12px;
25
+ flex-wrap: wrap;
26
+ }
27
+ .ui-danger-row p {
28
+ margin: 0;
29
+ font-size: var(--text-compact);
30
+ color: var(--ink-muted);
31
+ }
32
+ }