@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,82 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './IconButton.css';
4
+ @import './InlineCode.css';
5
+ @layer ui.components {
6
+ /* Suggestion */
7
+ .ui-sug {
8
+ position: relative;
9
+ padding: var(--space-3);
10
+ border-radius: var(--radius-md);
11
+ background: var(--surface-sub);
12
+ font-size: var(--text-control);
13
+ line-height: 1.5;
14
+ }
15
+ .ui-sug-head {
16
+ display: flex;
17
+ align-items: center;
18
+ gap: var(--space-2);
19
+ min-height: 36px;
20
+ margin: -6px -6px 6px 0;
21
+ }
22
+ .ui-sug-title {
23
+ flex: 1 1 auto;
24
+ font-size: var(--text-compact);
25
+ font-weight: 700;
26
+ white-space: nowrap;
27
+ }
28
+ .ui-sug-copy {
29
+ flex: 0 0 auto;
30
+ width: 36px;
31
+ height: 36px;
32
+ border-color: transparent;
33
+ }
34
+ .ui-sug-copy:hover {
35
+ background: var(--surface);
36
+ }
37
+ .ui-sug-copy.is-copied {
38
+ color: var(--success-text);
39
+ }
40
+ .ui-sug-line {
41
+ display: flex;
42
+ gap: var(--space-2);
43
+ padding: 4px var(--space-2);
44
+ }
45
+ .ui-sug-line.is-del {
46
+ border-radius: var(--radius-sm) var(--radius-sm) 0 0;
47
+ background: var(--danger-soft);
48
+ }
49
+ .ui-sug-line.is-add {
50
+ border-radius: 0 0 var(--radius-sm) var(--radius-sm);
51
+ background: var(--success-soft);
52
+ }
53
+ .ui-sug-head + .ui-sug-line.is-add {
54
+ border-radius: var(--radius-sm);
55
+ }
56
+ .ui-sug-mark {
57
+ flex: 0 0 auto;
58
+ width: 12px;
59
+ font-family: var(--font-mono);
60
+ font-weight: 700;
61
+ }
62
+ .ui-sug-line.is-del .ui-sug-mark {
63
+ color: var(--danger-text);
64
+ }
65
+ .ui-sug-line.is-add .ui-sug-mark {
66
+ color: var(--success-text);
67
+ }
68
+ .ui-sug-text {
69
+ min-width: 0;
70
+ overflow-wrap: anywhere;
71
+ }
72
+ @media (max-width: 599px) {
73
+ .ui-sug-copy {
74
+ width: var(--touch-target);
75
+ height: var(--touch-target);
76
+ }
77
+ .ui-sug-head {
78
+ margin-top: -10px;
79
+ margin-bottom: 2px;
80
+ }
81
+ }
82
+ }
@@ -0,0 +1,46 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ .ui-switch {
5
+ position: relative;
6
+ flex: 0 0 52px;
7
+ width: 52px;
8
+ height: 32px;
9
+ padding: 0;
10
+ box-sizing: border-box;
11
+ border-radius: var(--radius-full);
12
+ border: 2px solid var(--line-strong);
13
+ background: var(--surface-sub);
14
+ cursor: pointer;
15
+ transition:
16
+ background-color var(--dur-nav) ease,
17
+ border-color var(--dur-nav) ease;
18
+ }
19
+ .ui-switch.is-on {
20
+ background: var(--accent);
21
+ border-color: var(--accent);
22
+ }
23
+ .ui-switch:disabled {
24
+ opacity: 0.5;
25
+ cursor: not-allowed;
26
+ }
27
+ .ui-switch-thumb {
28
+ position: absolute;
29
+ top: 50%;
30
+ border-radius: var(--radius-full);
31
+ background: var(--line-strong);
32
+ color: var(--surface);
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+ }
37
+ .ui-switch.is-on .ui-switch-thumb {
38
+ background: var(--on-solid);
39
+ color: var(--accent);
40
+ }
41
+ @media (prefers-reduced-motion: reduce) {
42
+ .ui-switch-thumb {
43
+ transition: background-color var(--dur-hover) ease !important;
44
+ }
45
+ }
46
+ }
@@ -0,0 +1,91 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ .ui-tabs {
5
+ position: relative;
6
+ display: inline-flex;
7
+ max-width: 100%;
8
+ box-sizing: border-box;
9
+ padding: 4px;
10
+ border-radius: var(--radius-md);
11
+ background: var(--surface-sub);
12
+ /* Tabs never wrap or overlap: wider than their box, the row scrolls sideways (the indicator moves with it). */
13
+ overflow-x: auto;
14
+ scrollbar-width: none;
15
+ }
16
+ .ui-tabs::-webkit-scrollbar {
17
+ display: none;
18
+ }
19
+ /* More tabs past an edge: that edge fades out, so a cut tab reads as 「more this way」 (G0). */
20
+ .ui-tabs.has-more-right {
21
+ mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
22
+ }
23
+ .ui-tabs.has-more-left {
24
+ mask-image: linear-gradient(to left, #000 calc(100% - 40px), transparent);
25
+ }
26
+ .ui-tabs.has-more-left.has-more-right {
27
+ mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
28
+ }
29
+ /* The selected tab's pill: a line-strong border, so it shows the selection at 3:1 on the gray row (surface on
30
+ surface-sub alone is about 1.1:1). */
31
+ .ui-tabs-ind {
32
+ position: absolute;
33
+ top: 4px;
34
+ bottom: 4px;
35
+ box-sizing: border-box;
36
+ border: 1px solid var(--line-strong);
37
+ border-radius: var(--radius-sm);
38
+ background: var(--surface);
39
+ box-shadow: var(--shadow-sm);
40
+ pointer-events: none;
41
+ }
42
+ .ui-tab {
43
+ position: relative;
44
+ flex: none;
45
+ min-width: 96px;
46
+ white-space: nowrap;
47
+ height: 38px;
48
+ padding: 0 var(--space-4);
49
+ border: 0;
50
+ border-radius: var(--radius-sm);
51
+ background: transparent;
52
+ color: var(--ink-muted);
53
+ font: inherit;
54
+ font-size: var(--text-control);
55
+ font-weight: 500;
56
+ cursor: pointer;
57
+ transition: color var(--dur-hover) ease;
58
+ }
59
+ .ui-tab.is-selected {
60
+ color: var(--ink);
61
+ font-weight: 700;
62
+ }
63
+
64
+ @media (prefers-reduced-motion: reduce) {
65
+ .ui-tabs-ind {
66
+ transition: opacity var(--dur-hover) ease !important;
67
+ }
68
+ }
69
+ .ui-dt-summary .ui-tab {
70
+ white-space: nowrap;
71
+ scroll-snap-align: start;
72
+ }
73
+ @media (max-width: 599px) {
74
+ .ui-dt-summary .ui-tab {
75
+ min-width: 0;
76
+ padding-left: 6px;
77
+ padding-right: 6px;
78
+ font-size: var(--text-compact);
79
+ }
80
+ }
81
+ .ui-tab-count {
82
+ /* With the space before it: about 6 px from the name. */
83
+ margin-left: 2px;
84
+ font-family: var(--font-mono);
85
+ font-size: var(--text-small);
86
+ color: var(--ink-muted);
87
+ }
88
+ .ui-tab.is-selected .ui-tab-count {
89
+ color: var(--ink);
90
+ }
91
+ }
@@ -0,0 +1,36 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ /* Tag: category, small gray text only */
5
+ .ui-tag {
6
+ flex: 0 0 auto;
7
+ font-size: var(--text-mini);
8
+ font-weight: 600;
9
+ line-height: 1.4;
10
+ color: var(--ink-muted);
11
+ white-space: nowrap;
12
+ }
13
+ /* Tag variant="forecast" and "demo": an icon and words, no fill, the size of the text beside them (a mark beside the
14
+ brand is as large as the brand). Forecast is in the accent text color; demo keeps the color of the text around it. */
15
+ .ui-tag.is-forecast,
16
+ .ui-tag.is-demo {
17
+ display: inline-flex;
18
+ align-items: center;
19
+ gap: 0.3em;
20
+ font-size: inherit;
21
+ font-weight: 600;
22
+ line-height: inherit;
23
+ }
24
+ .ui-tag.is-forecast {
25
+ color: var(--accent-text);
26
+ }
27
+ .ui-tag.is-demo {
28
+ color: inherit;
29
+ }
30
+ .ui-tag.is-forecast > svg,
31
+ .ui-tag.is-demo > svg {
32
+ flex: none;
33
+ width: 1em;
34
+ height: 1em;
35
+ }
36
+ }
@@ -0,0 +1,160 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './Dialog.css';
4
+ @import './InlineCode.css';
5
+ @layer ui.components {
6
+ /* Term */
7
+ .ui-term {
8
+ display: inline;
9
+ padding: 0;
10
+ border: 0;
11
+ background: transparent;
12
+ color: inherit;
13
+ font: inherit;
14
+ text-align: inherit;
15
+ cursor: pointer;
16
+ border-radius: var(--radius-xs);
17
+ }
18
+ .ui-term-q {
19
+ display: inline-block;
20
+ margin-left: 2px;
21
+ vertical-align: -2px;
22
+ color: var(--ink-muted);
23
+ transition: color var(--dur-hover) ease;
24
+ }
25
+ .ui-term:hover .ui-term-q,
26
+ .ui-term.is-open .ui-term-q {
27
+ color: var(--accent-text);
28
+ }
29
+ /* Term variant="inline": a dashed underline inside a sentence, no icon; the card opens after resting on the word. */
30
+ .ui-term.is-word {
31
+ cursor: help;
32
+ text-decoration: underline dashed var(--line-strong);
33
+ text-decoration-thickness: 1px;
34
+ text-underline-offset: 4px;
35
+ transition: text-decoration-color var(--dur-hover) ease;
36
+ }
37
+ .ui-term.is-word:hover,
38
+ .ui-term.is-word.is-open,
39
+ .ui-term.is-word:focus-visible {
40
+ text-decoration-color: var(--accent-text);
41
+ }
42
+ .ui-term-pop {
43
+ width: 340px;
44
+ /* No wider than the block it explains (see Term), nor the window. */
45
+ max-width: min(calc(100vw - 16px), var(--available-width, 100vw));
46
+ box-sizing: border-box;
47
+ padding: var(--space-3) var(--space-4) var(--space-4);
48
+ border-radius: var(--radius-lg);
49
+ background: var(--surface);
50
+ border: 1px solid var(--line);
51
+ box-shadow: var(--shadow-overlay);
52
+ color: var(--ink);
53
+ font-size: var(--text-compact);
54
+ font-weight: 400;
55
+ line-height: 1.55;
56
+ text-align: left;
57
+ white-space: normal;
58
+ animation: ui-pop-scale var(--dur-nav) var(--ease-spring) both;
59
+ transform-origin: 16px 0;
60
+ }
61
+ .ui-term-pop[data-side='top'] {
62
+ transform-origin: 16px 100%;
63
+ }
64
+ .ui-term-head {
65
+ display: flex;
66
+ align-items: center;
67
+ gap: var(--space-2);
68
+ margin-right: -8px;
69
+ }
70
+ .ui-term-title {
71
+ flex: 1 1 auto;
72
+ min-width: 0;
73
+ font-weight: 700;
74
+ }
75
+ .ui-term-close {
76
+ flex: 0 0 auto;
77
+ }
78
+ .ui-term-body {
79
+ margin-top: 2px;
80
+ }
81
+ .ui-term-code {
82
+ margin: var(--space-2) 0 0;
83
+ padding: var(--space-2) var(--space-3);
84
+ border-radius: var(--radius-sm);
85
+ background: var(--surface-sub);
86
+ font-family: var(--font-mono);
87
+ font-size: var(--text-small);
88
+ line-height: 1.5;
89
+ white-space: pre;
90
+ overflow-x: auto;
91
+ }
92
+ .ui-term-action {
93
+ display: inline-flex;
94
+ align-items: center;
95
+ min-height: 32px;
96
+ margin-top: var(--space-1);
97
+ font-weight: 600;
98
+ }
99
+ .ui-term-backdrop {
100
+ position: fixed;
101
+ z-index: var(--z-modal);
102
+ inset: 0;
103
+ background: var(--scrim);
104
+ animation: ui-fade var(--dur-nav) ease both;
105
+ }
106
+ .ui-term-sheet {
107
+ position: fixed;
108
+ z-index: calc(var(--z-modal) + 1);
109
+ left: 0;
110
+ right: 0;
111
+ bottom: 0;
112
+ max-height: 70dvh;
113
+ overflow-y: auto;
114
+ box-sizing: border-box;
115
+ padding: var(--space-3) var(--space-4) calc(var(--space-6) + env(safe-area-inset-bottom));
116
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
117
+ background: var(--surface);
118
+ box-shadow: var(--shadow-overlay);
119
+ color: var(--ink);
120
+ font-size: var(--text-control);
121
+ font-weight: 400;
122
+ line-height: 1.6;
123
+ text-align: left;
124
+ white-space: normal;
125
+ animation: ui-sheet-up var(--dur-expand) var(--ease-standard) both;
126
+ }
127
+ .ui-term-sheet .ui-term-title {
128
+ font-size: var(--text-title);
129
+ }
130
+ .ui-term-sheet .ui-term-close {
131
+ width: var(--touch-target);
132
+ height: var(--touch-target);
133
+ }
134
+ .ui-term-sheet .ui-term-action {
135
+ min-height: var(--touch-target);
136
+ }
137
+ @keyframes ui-sheet-up {
138
+ from {
139
+ transform: translateY(100%);
140
+ }
141
+ to {
142
+ transform: none;
143
+ }
144
+ }
145
+ @media (prefers-reduced-motion: reduce) {
146
+ .ui-term-sheet,
147
+ .ui-term-pop {
148
+ animation: none;
149
+ }
150
+ }
151
+ /* Base UI renders dialog and popover titles as h2: keep the look of the text around them. */
152
+ .ui-term-title:where(h2) {
153
+ margin: 0;
154
+ font-size: inherit;
155
+ line-height: inherit;
156
+ }
157
+ .ui-term-sheet .ui-term-title:where(h2) {
158
+ font-size: var(--text-title);
159
+ }
160
+ }
@@ -0,0 +1,22 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ .ui-field-box > .ui-textarea ~ .ui-field-icon {
5
+ top: 12px;
6
+ transform: none;
7
+ }
8
+
9
+ .ui-textarea {
10
+ height: auto;
11
+ min-height: calc(3 * 26px + 22px);
12
+ padding: 10px var(--space-3);
13
+ line-height: 1.6;
14
+ resize: none;
15
+ overflow-y: auto;
16
+ }
17
+ .ui-count {
18
+ font-family: var(--font-mono);
19
+ font-size: var(--text-small);
20
+ color: var(--ink-muted);
21
+ }
22
+ }
@@ -0,0 +1,2 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
@@ -0,0 +1,70 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ .ui-themepick {
5
+ display: grid;
6
+ grid-template-columns: repeat(3, minmax(0, 1fr));
7
+ gap: 8px;
8
+ max-width: 360px;
9
+ }
10
+ .ui-themepick-opt {
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: 6px;
14
+ padding: 6px;
15
+ border: 1px solid var(--line);
16
+ border-radius: var(--radius-md);
17
+ background: transparent;
18
+ color: var(--ink);
19
+ font: inherit;
20
+ font-size: var(--text-small);
21
+ cursor: pointer;
22
+ }
23
+ .ui-themepick-opt.is-on {
24
+ border: 2px solid var(--accent);
25
+ padding: 5px;
26
+ font-weight: 700;
27
+ }
28
+ .ui-themepick-mini {
29
+ position: relative;
30
+ display: block;
31
+ height: 48px;
32
+ border-radius: var(--radius-sm);
33
+ border: 1px solid var(--line);
34
+ overflow: hidden;
35
+ }
36
+ .ui-themepick-mini span {
37
+ position: absolute;
38
+ left: 8px;
39
+ right: 8px;
40
+ height: 8px;
41
+ border-radius: 3px;
42
+ }
43
+ .ui-themepick-mini span:first-child {
44
+ top: 10px;
45
+ width: 40%;
46
+ }
47
+ .ui-themepick-mini span:last-child {
48
+ top: 24px;
49
+ }
50
+ /* The theme previews show the light and dark themes whatever the current one is: their own fixed colors (bg and line
51
+ of each theme), not tokens. */
52
+ .ui-themepick-mini.is-light {
53
+ background: #fcfbfb;
54
+ }
55
+ .ui-themepick-mini.is-light span {
56
+ background: #e2dfdc;
57
+ }
58
+ .ui-themepick-mini.is-dark {
59
+ background: #2f2a25;
60
+ }
61
+ .ui-themepick-mini.is-dark span {
62
+ background: #4c4844;
63
+ }
64
+ .ui-themepick-mini.is-auto {
65
+ background: linear-gradient(135deg, #fcfbfb 50%, #2f2a25 50%);
66
+ }
67
+ .ui-themepick-mini.is-auto span {
68
+ background: #8c8073;
69
+ }
70
+ }
@@ -0,0 +1,33 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './Button.css';
4
+ @layer ui.components {
5
+ /* TimeControl: a column for a side panel: the clock, two lines, two buttons. */
6
+ .ui-timecontrol {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 4px;
10
+ }
11
+ .ui-timecontrol-clock {
12
+ font-family: var(--font-mono);
13
+ font-size: 28px; /* token-exempt: TimeControl clock, one use */
14
+ font-weight: 700;
15
+ line-height: 36px;
16
+ font-variant-numeric: tabular-nums;
17
+ }
18
+ .ui-timecontrol-status {
19
+ margin: 0;
20
+ }
21
+ .ui-timecontrol-detail {
22
+ margin: 0;
23
+ font-size: var(--text-small);
24
+ line-height: 20px;
25
+ color: var(--ink-muted);
26
+ }
27
+ .ui-timecontrol-actions {
28
+ display: flex;
29
+ flex-wrap: wrap;
30
+ gap: var(--space-2);
31
+ margin-top: var(--space-2);
32
+ }
33
+ }
@@ -0,0 +1,47 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ @keyframes ui-toast-in {
5
+ from {
6
+ opacity: 0;
7
+ transform: translateY(12px);
8
+ }
9
+ to {
10
+ opacity: 1;
11
+ transform: none;
12
+ }
13
+ }
14
+ .ui-toast {
15
+ display: inline-flex;
16
+ align-items: center;
17
+ gap: 10px;
18
+ padding: var(--space-3) var(--space-4);
19
+ border-radius: var(--radius-md);
20
+ background: var(--surface);
21
+ color: var(--ink);
22
+ border: 1px solid var(--line);
23
+ box-shadow: var(--shadow-overlay);
24
+ font-size: var(--text-compact);
25
+ animation: ui-toast-in 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
26
+ }
27
+ .ui-toast-icon {
28
+ color: var(--success);
29
+ }
30
+ .ui-toast-action {
31
+ margin-left: var(--space-1);
32
+ padding: 0 var(--space-1);
33
+ min-height: 28px;
34
+ border: 0;
35
+ border-radius: var(--radius-sm);
36
+ background: transparent;
37
+ color: var(--accent-text);
38
+ font: inherit;
39
+ font-weight: 700;
40
+ cursor: pointer;
41
+ }
42
+ @media (prefers-reduced-motion: reduce) {
43
+ .ui-toast {
44
+ animation: ui-fade var(--dur-hover) ease both;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,58 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @layer ui.components {
4
+ .ui-tooltip {
5
+ padding: 6px 10px;
6
+ border-radius: var(--radius-chip);
7
+ background: var(--ink);
8
+ color: var(--bg);
9
+ font-size: var(--text-small);
10
+ font-weight: 600;
11
+ line-height: 1.4;
12
+ white-space: nowrap;
13
+ pointer-events: none;
14
+ animation: ui-pop-scale var(--dur-tooltip) var(--ease-spring) both;
15
+ }
16
+ .ui-tooltip {
17
+ transform-origin: var(--transform-origin);
18
+ }
19
+ /* Closing: no animation left to wait for, so the popup leaves at once (an entrance still running kept it on screen). */
20
+ .ui-tooltip[data-ending-style] {
21
+ animation: none;
22
+ }
23
+ .ui-tooltip.is-wrap {
24
+ max-width: min(360px, calc(100vw - 2 * var(--space-3)));
25
+ font-weight: 400;
26
+ line-height: 20px;
27
+ white-space: normal;
28
+ }
29
+ .ui-tooltip-arrow {
30
+ position: absolute;
31
+ width: 8px;
32
+ height: 8px;
33
+ background: inherit;
34
+ transform: rotate(45deg);
35
+ }
36
+ .ui-tooltip[data-side='top'] .ui-tooltip-arrow {
37
+ bottom: -4px;
38
+ }
39
+ .ui-tooltip[data-side='bottom'] .ui-tooltip-arrow {
40
+ top: -4px;
41
+ }
42
+ .ui-tooltip[data-side='right'] .ui-tooltip-arrow {
43
+ left: -4px;
44
+ }
45
+ .ui-tooltip[data-side='left'] .ui-tooltip-arrow {
46
+ right: -4px;
47
+ }
48
+
49
+ @media (prefers-reduced-motion: reduce) {
50
+ .ui-tooltip {
51
+ animation: ui-pop-fade var(--dur-hover) ease both;
52
+ }
53
+ }
54
+ .ui-tooltip-positioner {
55
+ z-index: var(--z-tooltip);
56
+ pointer-events: none;
57
+ }
58
+ }