@seanyeh77/ui 0.40.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 (441) 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 +19 -19
  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-C7iBqN3J.js → i18n.js} +10 -225
  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 -2258
  325. package/dist/index.js +79 -12715
  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 +4419 -4195
  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 +78 -19
  356. package/docs/AccentPicker.md +17 -2
  357. package/docs/ActionBar.md +6 -4
  358. package/docs/AiMark.md +12 -6
  359. package/docs/Alert.md +17 -5
  360. package/docs/AppShell.md +20 -11
  361. package/docs/Badge.md +20 -9
  362. package/docs/BarChart.md +21 -3
  363. package/docs/Breadcrumb.md +9 -4
  364. package/docs/Button.md +18 -8
  365. package/docs/Calendar.md +10 -5
  366. package/docs/Card.md +17 -9
  367. package/docs/Checkbox.md +15 -4
  368. package/docs/CodeView.md +16 -13
  369. package/docs/CommandPalette.md +18 -10
  370. package/docs/ConsoleLayout.md +24 -2
  371. package/docs/DangerZone.md +9 -3
  372. package/docs/DataColors.md +11 -4
  373. package/docs/DataTable.md +77 -28
  374. package/docs/DatePicker.md +16 -2
  375. package/docs/DateRangePicker.md +13 -1
  376. package/docs/DetailList.md +17 -12
  377. package/docs/Dialog.md +11 -6
  378. package/docs/Drawer.md +13 -7
  379. package/docs/EmptyState.md +13 -1
  380. package/docs/ErrorPage.md +6 -0
  381. package/docs/EventTimeline.md +11 -5
  382. package/docs/FileUpload.md +21 -5
  383. package/docs/FormGrid.md +11 -2
  384. package/docs/Format.md +19 -1
  385. package/docs/Graph.md +17 -2
  386. package/docs/Grid.md +13 -4
  387. package/docs/IconButton.md +16 -13
  388. package/docs/InlineCode.md +18 -8
  389. package/docs/KpiCard.md +21 -7
  390. package/docs/LayerGraph.md +36 -23
  391. package/docs/LineChart.md +22 -1
  392. package/docs/LoadingBar.md +7 -1
  393. package/docs/LoginCard.md +19 -3
  394. package/docs/Markdown.md +18 -2
  395. package/docs/Menu.md +13 -7
  396. package/docs/Meter.md +12 -5
  397. package/docs/MobileTabBar.md +18 -2
  398. package/docs/MultiSelect.md +13 -3
  399. package/docs/NotificationBell.md +13 -3
  400. package/docs/Popover.md +12 -2
  401. package/docs/ProgressBar.md +8 -2
  402. package/docs/ProgressRing.md +8 -2
  403. package/docs/ProjectSwitcher.md +15 -9
  404. package/docs/RadioGroup.md +21 -3
  405. package/docs/SearchField.md +8 -2
  406. package/docs/Section.md +16 -4
  407. package/docs/SegmentedControl.md +21 -19
  408. package/docs/Select.md +16 -1
  409. package/docs/SettingsLayout.md +19 -4
  410. package/docs/SideNav.md +20 -2
  411. package/docs/Skeleton.md +7 -1
  412. package/docs/SplitPane.md +7 -1
  413. package/docs/StatusBand.md +12 -6
  414. package/docs/Suggestion.md +12 -5
  415. package/docs/Switch.md +15 -2
  416. package/docs/Tabs.md +25 -6
  417. package/docs/Tag.md +16 -12
  418. package/docs/Term.md +18 -1
  419. package/docs/TextArea.md +12 -1
  420. package/docs/TextField.md +15 -5
  421. package/docs/ThemePicker.md +16 -4
  422. package/docs/TimeControl.md +10 -5
  423. package/docs/Toast.md +13 -3
  424. package/docs/Tooltip.md +17 -5
  425. package/docs/TopBar.md +16 -3
  426. package/docs/Tour.md +25 -1
  427. package/docs/TreeList.md +16 -9
  428. package/docs/Workbench.md +12 -6
  429. package/docs/ZoneMap.md +17 -10
  430. package/docs/code.md +28 -0
  431. package/docs/data.md +45 -0
  432. package/docs/forms.md +29 -0
  433. package/docs/guidelines.md +65 -315
  434. package/docs/layout.md +24 -4
  435. package/docs/monitoring.md +30 -0
  436. package/docs/motion.md +1 -1
  437. package/docs/theme.md +153 -0
  438. package/package.json +6 -5
  439. package/dist/format-entry-BJI8MU2K.d.ts +0 -75
  440. package/dist/format-entry-C7iBqN3J.js.map +0 -1
  441. package/dist/index.js.map +0 -1
@@ -0,0 +1,1195 @@
1
+ @layer theme, base, ui, components, utilities;
2
+ @layer ui.tokens, ui.components;
3
+ @import './Button.css';
4
+ @import './Dialog.css';
5
+ @import './Tabs.css';
6
+ @import './Checkbox.css';
7
+ @import './RadioGroup.css';
8
+ @import './SearchField.css';
9
+ @import './Tooltip.css';
10
+ @import './IconButton.css';
11
+ @import './Menu.css';
12
+ @import './Popover.css';
13
+ @import './NotificationBell.css';
14
+ @layer ui.components {
15
+ .ui-dt {
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: var(--space-3);
19
+ min-width: 0;
20
+ /* The toolbar wraps by the table's own width (a table beside a panel is narrow on a wide screen). As a size
21
+ container it cannot take its width from its content, so it fills its parent. */
22
+ container: ui-dt / inline-size;
23
+ width: 100%;
24
+ /* Row grounds. Zebra rows are surface-sub; hover is a neutral wash of ink over surface (not accent: selection is
25
+ accent). Text on each keeps 4.5:1 for ink, ink-muted and every *-text token (DataTable.test.tsx checks it). */
26
+ --dt-zebra: var(--surface-sub);
27
+ --dt-hover: color-mix(in srgb, var(--surface), var(--ink) 6%);
28
+ }
29
+ /* Dark: surface-sub rows stood out too much; half-way between surface and surface-sub. A 5 % wash keeps
30
+ accent-text, danger-text and info-text above 4.5:1 (6 % gave 4.4:1). */
31
+ [data-theme='dark'] .ui-dt {
32
+ --dt-zebra: color-mix(in srgb, var(--surface), var(--surface-sub) 50%);
33
+ --dt-hover: color-mix(in srgb, var(--surface), var(--ink) 5%);
34
+ }
35
+ .ui-dt-caption {
36
+ /* The same size as a Card title: a table's heading is a block heading whether or not it sits in a card. */
37
+ font-size: var(--text-title);
38
+ font-weight: 700;
39
+ }
40
+ .ui-dt-tools {
41
+ display: flex;
42
+ align-items: center;
43
+ gap: 8px;
44
+ }
45
+ /* Search on the left; the count and every button in one group on the right that keeps to one line: when it runs out of
46
+ room the sort button's text is cut with … first. Every control is 40 px tall. */
47
+ .ui-dt-tools > .ui-dt-search {
48
+ position: relative;
49
+ flex: 0 1 320px;
50
+ min-width: 240px;
51
+ }
52
+ .ui-dt-search .ui-input {
53
+ padding-left: 40px;
54
+ }
55
+ /* 「/」 focuses the field (searchShortcut): a small key in the empty, unfocused field on desktop. */
56
+ .ui-dt-kbd {
57
+ position: absolute;
58
+ top: 50%;
59
+ right: 10px;
60
+ transform: translateY(-50%);
61
+ min-width: 20px;
62
+ height: 22px;
63
+ padding: 0 5px;
64
+ box-sizing: border-box;
65
+ display: inline-flex;
66
+ align-items: center;
67
+ justify-content: center;
68
+ border: 1px solid var(--line-strong);
69
+ border-radius: var(--radius-sm);
70
+ color: var(--ink-muted);
71
+ font-family: var(--font-mono);
72
+ font-size: var(--text-mini);
73
+ line-height: 1;
74
+ pointer-events: none;
75
+ }
76
+ .ui-dt-actions > :is(.ui-dt-filterbtn, .ui-dt-sortbtn) {
77
+ height: var(--control-height);
78
+ }
79
+ /* 「⋯」 (更多表格操作): quiet, but as tall as the other tools. */
80
+ .ui-dt-actions > .ui-dt-menubtn {
81
+ width: var(--control-height);
82
+ height: var(--control-height);
83
+ }
84
+ /* Filters applied: the button says so in accent, besides its count. */
85
+ .ui-dt-filterbtn.is-active {
86
+ color: var(--accent-text);
87
+ border-color: var(--accent);
88
+ }
89
+ /* 「已複製」 under the 「⋯」 button for 2 s after copying (the menu has closed). */
90
+ .ui-dt-actions {
91
+ position: relative;
92
+ }
93
+ .ui-dt-copied {
94
+ position: absolute;
95
+ top: calc(100% + 8px);
96
+ right: 0;
97
+ z-index: var(--z-tooltip);
98
+ display: inline-flex;
99
+ align-items: center;
100
+ gap: 6px;
101
+ padding: 6px 10px;
102
+ border-radius: var(--radius-chip);
103
+ background: var(--ink);
104
+ color: var(--bg);
105
+ font-size: var(--text-small);
106
+ font-weight: 600;
107
+ line-height: 1.4;
108
+ white-space: nowrap;
109
+ pointer-events: none;
110
+ animation: ui-pop-fade var(--dur-hover) ease both;
111
+ }
112
+ .ui-dt-subcaret {
113
+ margin-left: auto;
114
+ color: var(--ink-muted);
115
+ }
116
+ /* The applied conditions under the toolbar: removable chips and 「清除全部」. */
117
+ .ui-dt-chips {
118
+ display: flex;
119
+ flex-wrap: wrap;
120
+ align-items: center;
121
+ gap: var(--space-2);
122
+ }
123
+ .ui-dt-chip {
124
+ display: inline-flex;
125
+ align-items: center;
126
+ gap: 4px;
127
+ height: 32px;
128
+ max-width: 100%;
129
+ padding: 0 6px 0 12px;
130
+ border: 1px solid var(--line-strong);
131
+ border-radius: var(--radius-chip);
132
+ background: var(--surface);
133
+ color: var(--ink);
134
+ font: inherit;
135
+ font-size: var(--text-compact);
136
+ cursor: pointer;
137
+ }
138
+ .ui-dt-chip-text {
139
+ min-width: 0;
140
+ overflow: hidden;
141
+ text-overflow: ellipsis;
142
+ white-space: nowrap;
143
+ }
144
+ .ui-dt-chip .ui-icon {
145
+ color: var(--ink-muted);
146
+ }
147
+ .ui-dt-chip:hover {
148
+ background: var(--surface-sub);
149
+ }
150
+ .ui-dt-chip:hover .ui-icon {
151
+ color: var(--ink);
152
+ }
153
+ .ui-dt-actions {
154
+ flex: 1 1 auto;
155
+ min-width: 0;
156
+ display: flex;
157
+ align-items: center;
158
+ justify-content: flex-end;
159
+ gap: 8px;
160
+ }
161
+ .ui-dt-actions > * {
162
+ flex: none;
163
+ }
164
+ .ui-dt-actions > .ui-dt-sortbtn {
165
+ flex: 0 1 auto;
166
+ min-width: 96px;
167
+ max-width: 280px;
168
+ }
169
+ /* No search field: the caption on the left of the buttons; they move under it, right-aligned, when the caption would
170
+ get narrower than about 12 characters. */
171
+ .ui-dt-tools > .ui-dt-caption {
172
+ flex: 1 1 12em;
173
+ min-width: 0;
174
+ overflow: hidden;
175
+ text-overflow: ellipsis;
176
+ white-space: nowrap;
177
+ }
178
+ .ui-dt-tools > .ui-dt-caption + .ui-dt-actions {
179
+ flex: none;
180
+ margin-left: auto;
181
+ }
182
+ .ui-dt-sortbtn-short {
183
+ display: none;
184
+ align-items: center;
185
+ gap: 6px;
186
+ }
187
+ /* By the table's own width (a table beside a panel is narrow on a wide screen). Under 760 px: the search field on a row
188
+ of its own, the buttons on the next. */
189
+ @container ui-dt (max-width: 759px) {
190
+ .ui-dt-tools {
191
+ flex-wrap: wrap;
192
+ }
193
+ .ui-dt-tools > .ui-dt-search,
194
+ .ui-dt-tools > .ui-dt-search + .ui-dt-actions {
195
+ flex: 1 1 100%;
196
+ min-width: 0;
197
+ }
198
+ }
199
+ /* Under 480 px: 「排序」 and the number of levels instead of the whole sort. With copy, columns and zoom as well (not
200
+ on phones, which hide them), 「篩選」「排序」「欄位」 keep only their icons and counts; the words stay in the
201
+ accessible names. The buttons wrap only when even that does not fit. */
202
+ @container ui-dt (max-width: 479px) {
203
+ .ui-dt-sortbtn-text {
204
+ display: none;
205
+ }
206
+ .ui-dt-sortbtn-short {
207
+ display: inline-flex;
208
+ }
209
+ .ui-dt-actions > .ui-dt-sortbtn {
210
+ min-width: 0;
211
+ }
212
+ .ui-dt-actions:has(> .ui-dt-menubtn) .ui-dt-btntext {
213
+ position: absolute;
214
+ width: 1px;
215
+ height: 1px;
216
+ overflow: hidden;
217
+ clip: rect(0 0 0 0);
218
+ white-space: nowrap;
219
+ }
220
+ .ui-dt-actions:has(> .ui-dt-menubtn) :is(.ui-dt-filterbtn, .ui-dt-sortbtn) {
221
+ padding-inline: 10px;
222
+ }
223
+ .ui-dt-actions {
224
+ flex-wrap: wrap;
225
+ }
226
+ }
227
+ /* Phones, also for tools that moved into a Card title row (outside the table, so not reached by the container). */
228
+ @media (max-width: 599px) {
229
+ .ui-dt-sortbtn-text {
230
+ display: none;
231
+ }
232
+ .ui-dt-sortbtn-short {
233
+ display: inline-flex;
234
+ }
235
+ }
236
+ .ui-card-head > .ui-dt-tools.is-inhead {
237
+ flex: none;
238
+ margin-left: auto;
239
+ }
240
+ /* Wider than its box (a narrow container beside a panel): a fade on the right while columns are to the right. */
241
+ .ui-dt-scroller {
242
+ position: relative;
243
+ }
244
+ .ui-dt-scroller::after {
245
+ content: '';
246
+ position: absolute;
247
+ top: 1px;
248
+ right: 1px;
249
+ bottom: 1px;
250
+ width: 48px;
251
+ border-radius: 0 var(--radius-md) var(--radius-md) 0;
252
+ pointer-events: none;
253
+ background: linear-gradient(to right, transparent, var(--surface));
254
+ opacity: 0;
255
+ transition: opacity var(--dur-hover) ease;
256
+ }
257
+ .ui-dt-scroller.has-more::after {
258
+ opacity: 1;
259
+ }
260
+ /* A table without page numbers can hold many rows: it scrolls in a box up to 560 px tall, its header staying on top.
261
+ With page numbers (is-paged) a page is short, so it has no height limit and no box of its own to scroll in. Either
262
+ way the wheel passes on to the page at the box's end (no overscroll-behavior: contain). */
263
+ .ui-dt-scroll {
264
+ max-height: var(--dt-max-height, 560px);
265
+ overflow: auto;
266
+ border: 1px solid var(--line);
267
+ border-radius: var(--radius-md);
268
+ background: var(--surface);
269
+ }
270
+ .ui-dt-table {
271
+ /* As wide as the box, and wider only when the columns' minimum widths do not fit. max-content made a long
272
+ column grow the table past a box it would fit in. */
273
+ width: 100%;
274
+ min-width: min-content;
275
+ }
276
+ .ui-dt-row {
277
+ display: grid;
278
+ align-items: center;
279
+ min-height: 48px;
280
+ border-bottom: 1px solid var(--line);
281
+ background: var(--surface);
282
+ }
283
+ .ui-dt-body .ui-dt-row.is-even {
284
+ background: var(--dt-zebra);
285
+ }
286
+ .ui-dt-body {
287
+ position: relative;
288
+ }
289
+ .ui-dt-body .ui-dt-row {
290
+ transition: background-color 0.12s ease;
291
+ }
292
+ .ui-dt-body .ui-dt-row:hover {
293
+ background: var(--dt-hover);
294
+ }
295
+ /* EC: rows with details or a page (rowHref) are clickable as a whole; the hover above already shows it. */
296
+ .ui-dt-body .ui-dt-row:is(.has-exp, .has-href) {
297
+ cursor: pointer;
298
+ }
299
+ /* Selected: accent-soft and a 3 px accent bar on the left. The row a keyboard is in: a 2 px bar only. The bar sits on
300
+ the first cell, so a sticky first cell (stickyFirst) does not cover it. */
301
+ .ui-dt-body .ui-dt-row {
302
+ --dt-mark: 0 0 transparent;
303
+ }
304
+ .ui-dt-body .ui-dt-row:has(:focus-visible) {
305
+ --dt-mark: inset 2px 0 0 var(--accent);
306
+ }
307
+ .ui-dt-body .ui-dt-row.is-selected,
308
+ .ui-dt-body .ui-dt-row.is-selected:hover {
309
+ --dt-mark: inset 3px 0 0 var(--accent);
310
+ background: var(--accent-soft);
311
+ }
312
+ .ui-dt-body .ui-dt-row > .ui-dt-cell:first-child {
313
+ box-shadow: var(--dt-mark);
314
+ }
315
+ /* rowHref: the first cell's text is the row's link. */
316
+ .ui-dt-rowlink {
317
+ color: inherit;
318
+ font-weight: 600;
319
+ text-decoration: none;
320
+ border-radius: var(--radius-sm);
321
+ min-width: 0;
322
+ }
323
+ .ui-dt-row:hover .ui-dt-rowlink,
324
+ .ui-dt-rowlink:hover {
325
+ text-decoration: underline;
326
+ text-underline-offset: 3px;
327
+ }
328
+ /* secondary: a second line under the cell's text, smaller and muted, one line cut with …. */
329
+ .ui-dt-stack {
330
+ display: flex;
331
+ flex-direction: column;
332
+ justify-content: center;
333
+ min-width: 0;
334
+ max-width: 100%;
335
+ padding-block: 6px;
336
+ }
337
+ .ui-dt-cell.is-num .ui-dt-stack {
338
+ align-items: flex-end;
339
+ }
340
+ .ui-dt-main {
341
+ display: flex;
342
+ align-items: center;
343
+ min-width: 0;
344
+ max-width: 100%;
345
+ }
346
+ .ui-dt-sub {
347
+ min-width: 0;
348
+ max-width: 100%;
349
+ overflow: hidden;
350
+ text-overflow: ellipsis;
351
+ white-space: nowrap;
352
+ font-family: var(--font-sans);
353
+ font-size: var(--text-small);
354
+ line-height: 20px;
355
+ font-weight: 400;
356
+ color: var(--ink-muted);
357
+ }
358
+ /* Dates: <time>, figures of one width so a column of times lines up. */
359
+ .ui-dt-time {
360
+ /* Dates and 「2 小時前」 hold words: the text font, with figures of one width so a column of times lines up. */
361
+ font-family: var(--font-sans);
362
+ font-variant-numeric: tabular-nums;
363
+ white-space: nowrap;
364
+ }
365
+ /* Hugging columns are measured on one line (DataTable adds is-measuring for the read only). */
366
+ .ui-dt.is-measuring .ui-dt-cell.is-hug {
367
+ white-space: nowrap;
368
+ }
369
+
370
+ .ui-dt-body .ui-dt-row:last-child {
371
+ border-bottom: 0;
372
+ }
373
+ .ui-dt-ghost {
374
+ position: absolute;
375
+ left: 0;
376
+ right: 0;
377
+ z-index: var(--z-base);
378
+ pointer-events: none;
379
+ }
380
+ .ui-dt-cell {
381
+ padding: 0 12px;
382
+ min-width: 0;
383
+ align-self: stretch;
384
+ display: flex;
385
+ align-items: center;
386
+ border-right: 1px solid var(--line);
387
+ overflow: hidden;
388
+ }
389
+ .ui-dt-cell:last-child {
390
+ border-right: 0;
391
+ }
392
+ .ui-dt-cell.is-num {
393
+ justify-content: flex-end;
394
+ text-align: right;
395
+ font-family: var(--font-mono);
396
+ font-variant-numeric: tabular-nums;
397
+ white-space: nowrap;
398
+ }
399
+ .ui-dt-head {
400
+ position: sticky;
401
+ top: 0;
402
+ z-index: var(--z-sticky);
403
+ min-height: 44px;
404
+ background: var(--surface-sub);
405
+ /* Its own level: a stronger line under the headings than between rows. */
406
+ border-bottom-color: var(--line-strong);
407
+ font-size: var(--text-compact);
408
+ font-weight: 700;
409
+ color: var(--ink);
410
+ white-space: nowrap;
411
+ }
412
+ .ui-dt-head .ui-dt-cell {
413
+ font-family: var(--font-sans);
414
+ }
415
+ /* A2: the right border of each heading drags (internal/tableTools ColResize, shared with Markdown tables). */
416
+ .ui-dt-head .ui-dt-cell:not(.is-sticky) {
417
+ position: relative;
418
+ }
419
+ .ui-dt-head .ui-col-resize {
420
+ right: 0;
421
+ width: 8px;
422
+ }
423
+ .ui-dt-head .ui-col-resize::after {
424
+ left: auto;
425
+ right: -1px;
426
+ transform: none;
427
+ }
428
+ /* B2: 「放大表格」 above the table's top right, as on Markdown tables. */
429
+ .ui-dt-scroll.is-paged {
430
+ max-height: none;
431
+ }
432
+ .ui-dt-zoomed .ui-dt-scroll {
433
+ max-height: calc(100vh - 280px);
434
+ overflow: auto;
435
+ }
436
+ .ui-dt-sort {
437
+ display: inline-flex;
438
+ align-items: center;
439
+ gap: 4px;
440
+ min-height: 32px;
441
+ margin: 0 -4px;
442
+ padding: 0 4px;
443
+ border: 0;
444
+ border-radius: var(--radius-sm);
445
+ background: transparent;
446
+ color: inherit;
447
+ font: inherit;
448
+ white-space: nowrap;
449
+ cursor: pointer;
450
+ }
451
+ .ui-dt-cell.is-num .ui-dt-sort {
452
+ flex-direction: row-reverse;
453
+ }
454
+ .ui-dt-arrow {
455
+ opacity: 0;
456
+ color: var(--ink-muted);
457
+ transition: opacity 0.12s ease;
458
+ }
459
+ .ui-dt-sort:hover .ui-dt-arrow,
460
+ .ui-dt-sort:focus-visible .ui-dt-arrow {
461
+ opacity: 1;
462
+ }
463
+ .ui-dt-sort.is-on .ui-dt-arrow {
464
+ color: inherit;
465
+ }
466
+ .ui-dt-sort.is-on {
467
+ color: var(--accent-text);
468
+ }
469
+ .ui-dt-sort.is-on .ui-dt-arrow {
470
+ opacity: 1;
471
+ }
472
+ .ui-dt-check {
473
+ padding: 0;
474
+ cursor: pointer;
475
+ }
476
+ .ui-dt-sel > *,
477
+ .ui-dt-acts > * {
478
+ transition: opacity 0.12s ease;
479
+ }
480
+ .ui-dt-sel > * {
481
+ opacity: 0;
482
+ }
483
+ .ui-dt-row:hover .ui-dt-sel > *,
484
+ .ui-dt-row:focus-within .ui-dt-sel > *,
485
+ .ui-dt.has-sel .ui-dt-sel > * {
486
+ opacity: 1;
487
+ }
488
+ .ui-dt-acts {
489
+ justify-content: flex-end;
490
+ gap: 2px;
491
+ padding: 0 8px;
492
+ }
493
+ .ui-dt-acts > * {
494
+ opacity: 0;
495
+ }
496
+ .ui-dt-row:hover .ui-dt-acts > *,
497
+ .ui-dt-row:focus-within .ui-dt-acts > * {
498
+ opacity: 1;
499
+ }
500
+ @media (hover: none) {
501
+ .ui-dt-sel > *,
502
+ .ui-dt-acts > *,
503
+ .ui-dt-arrow {
504
+ opacity: 1;
505
+ }
506
+ }
507
+ .ui-dt-bulk {
508
+ display: flex;
509
+ gap: 12px;
510
+ padding-right: 8px;
511
+ background: var(--accent-soft);
512
+ color: var(--accent-text);
513
+ }
514
+ .ui-dt-bulk .ui-dt-cell {
515
+ border-right: 0;
516
+ }
517
+ .ui-dt-bulk-count {
518
+ font-size: var(--text-compact);
519
+ }
520
+ .ui-dt-bulk-actions {
521
+ margin-left: auto;
522
+ display: flex;
523
+ gap: 8px;
524
+ }
525
+ .ui-dt-bulk-close {
526
+ width: 32px;
527
+ height: 32px;
528
+ border: 0;
529
+ border-radius: var(--radius-sm);
530
+ background: transparent;
531
+ color: inherit;
532
+ display: flex;
533
+ align-items: center;
534
+ justify-content: center;
535
+ cursor: pointer;
536
+ }
537
+ .ui-dt-empty {
538
+ padding: 28px 12px;
539
+ text-align: center;
540
+ color: var(--ink-muted);
541
+ }
542
+ .ui-dt-foot {
543
+ display: flex;
544
+ flex-wrap: wrap;
545
+ align-items: center;
546
+ justify-content: space-between;
547
+ gap: 12px;
548
+ }
549
+ .ui-dt-range {
550
+ font-size: var(--text-small);
551
+ color: var(--ink-muted);
552
+ }
553
+ .ui-dt-pages {
554
+ display: flex;
555
+ gap: 4px;
556
+ }
557
+ .ui-dt-page {
558
+ min-width: 36px;
559
+ height: 36px;
560
+ padding: 0 8px;
561
+ border: 1px solid var(--line);
562
+ border-radius: var(--radius-chip);
563
+ background: var(--surface);
564
+ color: var(--ink);
565
+ font: inherit;
566
+ font-family: var(--font-mono);
567
+ font-weight: 600;
568
+ cursor: pointer;
569
+ }
570
+ .ui-dt-page.is-on {
571
+ background: var(--accent);
572
+ border-color: var(--accent);
573
+ color: var(--on-accent);
574
+ }
575
+ .ui-dt-page:disabled {
576
+ opacity: 0.4;
577
+ cursor: default;
578
+ }
579
+
580
+ .ui-dt-summary {
581
+ margin-bottom: var(--space-3);
582
+ align-self: flex-start;
583
+ /* Wider than the table (phones): the row scrolls sideways, the edge with more tabs fades (Tabs), and it comes to rest
584
+ on a whole tab rather than in the middle of a word. */
585
+ scroll-snap-type: x mandatory;
586
+ scroll-padding-inline: 4px;
587
+ }
588
+ .ui-dt-cell.is-long > .ui-dt-long {
589
+ /* As wide as the column: the text is cut where the column ends, not after a set number of characters. */
590
+ display: block;
591
+ flex: 1 1 auto;
592
+ min-width: 0;
593
+ overflow: hidden;
594
+ text-overflow: ellipsis;
595
+ white-space: nowrap;
596
+ }
597
+ /* A link inside a cut text that has keyboard focus could sit past the cut, out of sight: while focus is inside, the
598
+ text shows in full (the row grows) so the focused link and its outline are seen. */
599
+ .ui-dt-cell.is-long > .ui-dt-long:has(:focus-visible) {
600
+ white-space: normal;
601
+ overflow: visible;
602
+ }
603
+ .ui-dt-more {
604
+ display: none;
605
+ }
606
+ /* A short cell with fullText: as wide as its content, cut at the column's edge. */
607
+ .ui-dt-full {
608
+ display: inline-flex;
609
+ align-items: center;
610
+ max-width: 100%;
611
+ min-width: 0;
612
+ }
613
+ /* The caret that opens a row's long columns in full, below the row (desktop). */
614
+ .ui-dt-exp {
615
+ padding: 0;
616
+ justify-content: center;
617
+ }
618
+ .ui-dt-exp-btn {
619
+ width: 40px;
620
+ height: 48px;
621
+ display: inline-flex;
622
+ align-items: center;
623
+ justify-content: center;
624
+ border: 0;
625
+ background: transparent;
626
+ color: var(--ink-muted);
627
+ cursor: pointer;
628
+ border-radius: var(--radius-sm);
629
+ }
630
+ .ui-dt-exp-btn:hover {
631
+ color: var(--ink);
632
+ }
633
+ .ui-dt-exp-btn .ui-icon {
634
+ transition: transform var(--dur-nav) ease;
635
+ }
636
+ .ui-dt-exp-btn.is-open .ui-icon {
637
+ transform: rotate(90deg);
638
+ }
639
+ .ui-dt-detail {
640
+ background: var(--surface);
641
+ border-bottom: 1px solid var(--line);
642
+ }
643
+ .ui-dt-detail.is-even {
644
+ background: var(--dt-zebra);
645
+ }
646
+ .ui-dt-detail-cell {
647
+ display: flex;
648
+ flex-direction: column;
649
+ gap: var(--space-2);
650
+ padding: var(--space-1) var(--space-4) var(--space-4);
651
+ max-width: 72em;
652
+ }
653
+ .ui-dt-detail-label {
654
+ font-size: var(--text-small);
655
+ line-height: 20px;
656
+ color: var(--ink-muted);
657
+ }
658
+ .ui-dt-detail-text {
659
+ white-space: normal;
660
+ overflow-wrap: anywhere;
661
+ }
662
+ @media (prefers-reduced-motion: reduce) {
663
+ .ui-dt-exp-btn .ui-icon {
664
+ transition: none;
665
+ }
666
+ }
667
+ @media (max-width: 599px) {
668
+ .ui-dt-scroll {
669
+ max-height: none;
670
+ overflow: visible;
671
+ border: 0;
672
+ border-radius: var(--radius-lg);
673
+ background: var(--surface);
674
+ box-shadow: var(--shadow-card);
675
+ }
676
+ .ui-dt-table {
677
+ width: auto;
678
+ min-width: 0;
679
+ }
680
+ .ui-dt-head:not(.ui-dt-bulk) {
681
+ display: none;
682
+ }
683
+ .ui-dt-bulk {
684
+ position: static;
685
+ border: 0;
686
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
687
+ }
688
+ .ui-dt-body .ui-dt-row {
689
+ display: grid;
690
+ grid-template-columns: auto minmax(0, 1fr) auto auto !important;
691
+ align-items: center;
692
+ min-width: 0 !important;
693
+ min-height: 0;
694
+ padding: var(--space-3) var(--space-4);
695
+ border: 0;
696
+ border-top: 1px solid var(--line);
697
+ border-radius: 0;
698
+ background: transparent !important;
699
+ box-shadow: none;
700
+ }
701
+ .ui-dt-body .ui-dt-row:first-child {
702
+ border-top: 0;
703
+ }
704
+ .ui-dt-body .ui-dt-row.is-selected {
705
+ background: var(--accent-soft) !important;
706
+ box-shadow: inset 3px 0 0 var(--accent);
707
+ }
708
+ .ui-dt-body .ui-dt-row > .ui-dt-cell:first-child {
709
+ box-shadow: none;
710
+ }
711
+ .ui-dt-kbd {
712
+ display: none;
713
+ }
714
+
715
+ .ui-dt-body .ui-dt-cell {
716
+ grid-column: 1 / -1;
717
+ display: block;
718
+ margin-top: 4px;
719
+ padding: 0;
720
+ border-right: 0;
721
+ text-align: left;
722
+ overflow: visible;
723
+ white-space: normal;
724
+ /* Break a word only when it is wider than the card: 「anywhere」 also let a name in a flex row with tags shrink
725
+ and break mid-word (「ucp_worker_progre / ss」). */
726
+ overflow-wrap: break-word;
727
+ }
728
+ .ui-dt-body .ui-dt-cell[data-label]::before {
729
+ content: attr(data-label);
730
+ display: block;
731
+ margin-bottom: 0;
732
+ color: var(--ink-muted);
733
+ font-family: var(--font-sans);
734
+ font-size: var(--text-mini);
735
+ line-height: 18px;
736
+ font-weight: 400;
737
+ white-space: nowrap;
738
+ }
739
+ .ui-dt-body .ui-dt-cell.ui-dt-sel {
740
+ grid-column: 1;
741
+ grid-row: 1;
742
+ margin: 0 var(--space-2) 0 0;
743
+ }
744
+ .ui-dt-body .ui-dt-cell.is-m-title {
745
+ grid-column: 2;
746
+ grid-row: 1;
747
+ margin-top: 0;
748
+ font-weight: 600;
749
+ }
750
+ /* A title made of a name and tags in a row: the tags go to the next line instead of squeezing the name. */
751
+ .ui-dt-body .ui-dt-cell.is-m-title > :is(span, div):only-child {
752
+ flex-wrap: wrap;
753
+ }
754
+ .ui-dt-body .ui-dt-cell.is-m-status {
755
+ grid-column: 3;
756
+ grid-row: 1;
757
+ margin: 0 0 0 var(--space-2);
758
+ }
759
+ .ui-dt-body .ui-dt-cell.is-m-title::before,
760
+ .ui-dt-body .ui-dt-cell.is-m-status::before {
761
+ display: none;
762
+ }
763
+ .ui-dt-body .ui-dt-cell.is-m-hide {
764
+ display: none;
765
+ }
766
+ .ui-dt-body .ui-dt-cell.ui-dt-acts {
767
+ grid-column: 4;
768
+ grid-row: 1;
769
+ display: flex;
770
+ justify-content: flex-end;
771
+ align-items: center;
772
+ gap: 4px;
773
+ margin: 0 0 0 var(--space-2);
774
+ }
775
+ .ui-dt-sel > *,
776
+ .ui-dt-acts > * {
777
+ opacity: 1;
778
+ }
779
+ .ui-dt-body .ui-dt-cell.is-long > .ui-dt-long {
780
+ overflow: visible;
781
+ white-space: normal;
782
+ }
783
+ /* Equal widths while every tab fits; else each keeps its text whole and the row scrolls. */
784
+ .ui-dt-summary {
785
+ display: grid;
786
+ grid-auto-flow: column;
787
+ grid-auto-columns: minmax(max-content, 1fr);
788
+ align-self: stretch;
789
+ }
790
+ }
791
+ @media (max-width: 599px) {
792
+ .ui-dt-body .ui-dt-cell.is-long > .ui-dt-long {
793
+ max-width: none;
794
+ }
795
+ .ui-dt-long-text.is-clamped {
796
+ display: -webkit-box;
797
+ -webkit-box-orient: vertical;
798
+ -webkit-line-clamp: 2;
799
+ overflow: hidden;
800
+ }
801
+ .ui-dt-more {
802
+ display: inline;
803
+ margin-top: 4px;
804
+ padding: 0;
805
+ border: 0;
806
+ background: transparent;
807
+ color: var(--accent-text);
808
+ font: inherit;
809
+ font-size: var(--text-small);
810
+ font-weight: 600;
811
+ cursor: pointer;
812
+ }
813
+ }
814
+ @media (prefers-reduced-motion: reduce) {
815
+ .ui-dt-body .ui-dt-row {
816
+ transition: none;
817
+ }
818
+ }
819
+ /* A long cell cut off on desktop: focusable, so the keyboard gets its Tooltip too. */
820
+ .ui-dt-long.is-cut {
821
+ cursor: default;
822
+ border-radius: var(--radius-sm);
823
+ }
824
+
825
+ .ui-dt-views {
826
+ display: flex;
827
+ gap: 4px;
828
+ border-bottom: 1px solid var(--line);
829
+ }
830
+ .ui-dt-view {
831
+ position: relative;
832
+ height: 40px;
833
+ padding: 0 12px;
834
+ border: 0;
835
+ background: transparent;
836
+ color: var(--ink-muted);
837
+ font: inherit;
838
+ font-size: var(--text-compact);
839
+ cursor: pointer;
840
+ }
841
+ .ui-dt-view.is-on {
842
+ color: var(--ink);
843
+ font-weight: 700;
844
+ }
845
+ .ui-dt-view.is-on::after {
846
+ content: '';
847
+ position: absolute;
848
+ left: 8px;
849
+ right: 8px;
850
+ bottom: -1px;
851
+ height: 3px;
852
+ border-radius: 3px 3px 0 0;
853
+ background: var(--accent);
854
+ }
855
+ .ui-dt-view-n {
856
+ margin-left: 6px;
857
+ font-family: var(--font-mono);
858
+ font-size: var(--text-mini);
859
+ color: var(--ink-muted);
860
+ font-weight: 400;
861
+ }
862
+ .ui-dt-filterbtn {
863
+ height: var(--control-height);
864
+ }
865
+ .ui-dt-result {
866
+ margin-left: auto;
867
+ font-size: var(--text-small);
868
+ color: var(--ink-muted);
869
+ white-space: nowrap;
870
+ }
871
+ .ui-dt-filterpop {
872
+ width: 520px;
873
+ /* No wider than its table (the space Base UI leaves inside the boundary), nor the window. */
874
+ max-width: min(calc(100vw - 16px), var(--available-width, 100vw));
875
+ padding: 16px;
876
+ box-sizing: border-box;
877
+ border-radius: var(--radius-lg);
878
+ background: var(--surface);
879
+ border: 1px solid var(--line);
880
+ box-shadow: var(--shadow-overlay);
881
+ animation: ui-pop-fade var(--dur-hover) ease both;
882
+ }
883
+ /* S2C: the 「排序」 button writes the current sort (「排序:程式 ↑、ΔT ↓」, cut with … when long); on phones 「排序」 and
884
+ the number of levels. Its panel looks like the filter panel. */
885
+ .ui-dt-sortbtn {
886
+ height: var(--control-height);
887
+ }
888
+ .ui-dt-sortbtn-text {
889
+ min-width: 0;
890
+ overflow: hidden;
891
+ text-overflow: ellipsis;
892
+ white-space: nowrap;
893
+ }
894
+ .ui-dt-sortpop {
895
+ width: 400px;
896
+ max-width: min(calc(100vw - 16px), var(--available-width, 100vw));
897
+ padding: 16px;
898
+ box-sizing: border-box;
899
+ border-radius: var(--radius-lg);
900
+ background: var(--surface);
901
+ border: 1px solid var(--line);
902
+ box-shadow: var(--shadow-overlay);
903
+ }
904
+ .ui-dt-sortlist {
905
+ list-style: none;
906
+ margin: 0;
907
+ padding: 0;
908
+ display: flex;
909
+ flex-direction: column;
910
+ gap: 4px;
911
+ }
912
+ .ui-dt-sortlvl {
913
+ display: flex;
914
+ align-items: center;
915
+ gap: 8px;
916
+ min-height: 44px;
917
+ border-radius: var(--radius-sm);
918
+ }
919
+ .ui-dt-sortlvl.is-dragging {
920
+ opacity: 0.4;
921
+ }
922
+ .ui-dt-sortlvl.is-over {
923
+ box-shadow: 0 -2px 0 var(--accent);
924
+ }
925
+ .ui-dt-sortgrip,
926
+ .ui-dt-sortrm {
927
+ flex: none;
928
+ width: 32px;
929
+ height: 32px;
930
+ display: inline-flex;
931
+ align-items: center;
932
+ justify-content: center;
933
+ border: 0;
934
+ border-radius: var(--radius-sm);
935
+ background: transparent;
936
+ color: var(--ink-muted);
937
+ cursor: pointer;
938
+ }
939
+ .ui-dt-sortgrip {
940
+ cursor: grab;
941
+ }
942
+ .ui-dt-sortgrip:hover,
943
+ .ui-dt-sortrm:hover {
944
+ background: var(--surface-sub);
945
+ color: var(--ink);
946
+ }
947
+ .ui-dt-sortn {
948
+ flex: none;
949
+ width: 1ch;
950
+ font-family: var(--font-mono);
951
+ font-size: var(--text-small);
952
+ color: var(--ink-muted);
953
+ }
954
+ .ui-dt-sortname {
955
+ flex: 1 1 auto;
956
+ min-width: 0;
957
+ font-weight: 600;
958
+ overflow: hidden;
959
+ text-overflow: ellipsis;
960
+ white-space: nowrap;
961
+ }
962
+ .ui-dt-sortdir {
963
+ flex: none;
964
+ display: inline-flex;
965
+ border: 1px solid var(--line-strong);
966
+ border-radius: var(--radius-sm);
967
+ overflow: hidden;
968
+ }
969
+ .ui-dt-sortdir button {
970
+ min-height: 32px;
971
+ padding: 0 10px;
972
+ border: 0;
973
+ background: transparent;
974
+ color: var(--ink);
975
+ font: inherit;
976
+ font-size: var(--text-small);
977
+ white-space: nowrap;
978
+ cursor: pointer;
979
+ }
980
+ .ui-dt-sortdir button + button {
981
+ border-left: 1px solid var(--line-strong);
982
+ }
983
+ .ui-dt-sortdir button.is-on {
984
+ background: var(--accent-soft);
985
+ color: var(--accent-text);
986
+ font-weight: 600;
987
+ }
988
+ .ui-dt-sortnone {
989
+ margin: 0;
990
+ font-size: var(--text-small);
991
+ color: var(--ink-muted);
992
+ }
993
+ .ui-dt-sortmore {
994
+ display: inline-flex;
995
+ align-items: center;
996
+ gap: 4px;
997
+ min-height: 40px;
998
+ margin-top: 4px;
999
+ font-size: var(--text-compact);
1000
+ }
1001
+ .ui-dt-sortadd {
1002
+ margin-top: 8px;
1003
+ padding-top: 8px;
1004
+ border-top: 1px solid var(--line);
1005
+ }
1006
+ .ui-dt-sortaddhead {
1007
+ display: block;
1008
+ margin-bottom: 4px;
1009
+ font-size: var(--text-small);
1010
+ color: var(--ink-muted);
1011
+ }
1012
+ .ui-dt-sortadd .ui-dt-opt {
1013
+ color: var(--accent-text);
1014
+ }
1015
+ /* The heading's place in a multi-column sort, after its arrow. */
1016
+ .ui-dt-sortpri {
1017
+ font-family: var(--font-mono);
1018
+ font-size: var(--text-mini);
1019
+ line-height: 1;
1020
+ color: var(--accent-text);
1021
+ margin-left: -2px;
1022
+ }
1023
+ .ui-dt-filterhead {
1024
+ display: flex;
1025
+ justify-content: space-between;
1026
+ align-items: center;
1027
+ margin-bottom: 8px;
1028
+ }
1029
+ .ui-dt-facets {
1030
+ display: grid;
1031
+ grid-template-columns: repeat(2, minmax(0, 1fr));
1032
+ gap: 16px;
1033
+ }
1034
+ .ui-dt-facet {
1035
+ margin: 0;
1036
+ padding: 0;
1037
+ border: 0;
1038
+ min-width: 0;
1039
+ }
1040
+ .ui-dt-facet legend {
1041
+ padding: 0;
1042
+ margin-bottom: 6px;
1043
+ font-size: var(--text-small);
1044
+ font-weight: 700;
1045
+ }
1046
+ .ui-dt-opt {
1047
+ display: flex;
1048
+ align-items: center;
1049
+ gap: 8px;
1050
+ width: 100%;
1051
+ min-height: 34px;
1052
+ padding: 0 4px;
1053
+ border: 0;
1054
+ border-radius: var(--radius-sm);
1055
+ background: transparent;
1056
+ color: var(--ink);
1057
+ font: inherit;
1058
+ font-size: var(--text-compact);
1059
+ text-align: left;
1060
+ cursor: pointer;
1061
+ }
1062
+ .ui-dt-opt:hover {
1063
+ background: var(--surface-sub);
1064
+ }
1065
+ .ui-dt-opt.is-zero {
1066
+ color: var(--ink-muted);
1067
+ }
1068
+ .ui-dt-opt .ui-check-box,
1069
+ .ui-dt-opt .ui-radio-ring {
1070
+ flex: 0 0 18px;
1071
+ width: 18px;
1072
+ height: 18px;
1073
+ }
1074
+ .ui-dt-opt-label {
1075
+ flex: 1 1 auto;
1076
+ }
1077
+ .ui-dt-opt-n {
1078
+ font-family: var(--font-mono);
1079
+ font-size: var(--text-mini);
1080
+ color: var(--ink-muted);
1081
+ }
1082
+ .ui-dt-range-inputs {
1083
+ display: flex;
1084
+ align-items: center;
1085
+ gap: 6px;
1086
+ }
1087
+ .ui-dt-range-inputs .ui-input {
1088
+ height: 36px;
1089
+ min-width: 0;
1090
+ font-family: var(--font-mono);
1091
+ }
1092
+ .ui-mark {
1093
+ background: var(--mark);
1094
+ color: inherit;
1095
+ border-radius: 2px;
1096
+ padding: 0 1px;
1097
+ }
1098
+ .ui-dt-empty .ui-btn {
1099
+ margin-top: 10px;
1100
+ }
1101
+ .ui-dt-total {
1102
+ font-weight: 700;
1103
+ background: var(--surface-sub) !important;
1104
+ border-top: 2px solid var(--line-strong);
1105
+ }
1106
+ .ui-dt-total .ui-dt-cell.is-num {
1107
+ font-family: var(--font-mono);
1108
+ }
1109
+ .ui-dt-cell.is-sticky {
1110
+ position: sticky;
1111
+ z-index: var(--z-raised);
1112
+ /* The row's ground (zebra, hover, selected), so nothing shows through while the table scrolls sideways. */
1113
+ background: inherit;
1114
+ }
1115
+ .ui-dt-cell.is-sticky-end {
1116
+ box-shadow: 6px 0 8px -6px var(--edge-shadow);
1117
+ }
1118
+ .ui-dt-body .ui-dt-row > .ui-dt-cell.is-sticky-end:first-child {
1119
+ box-shadow:
1120
+ var(--dt-mark),
1121
+ 6px 0 8px -6px var(--edge-shadow);
1122
+ }
1123
+ .ui-dt-head .ui-dt-cell.is-sticky {
1124
+ background: var(--surface-sub);
1125
+ }
1126
+ .ui-dt-colmenu {
1127
+ min-width: 200px;
1128
+ max-height: min(420px, var(--available-height, 420px));
1129
+ overflow-y: auto;
1130
+ }
1131
+ @media (max-width: 599px) {
1132
+ /* Phones: the totals stay, as a summary under the cards: 「合計 n 筆」, then one line per total, its column's name on
1133
+ the left and the value on the right. Columns without a total are left out. */
1134
+ .ui-dt-total {
1135
+ display: flex;
1136
+ flex-direction: column;
1137
+ gap: var(--space-1);
1138
+ min-width: 0 !important;
1139
+ min-height: 0;
1140
+ padding: var(--space-3) var(--space-4);
1141
+ border-radius: 0 0 var(--radius-lg) var(--radius-lg);
1142
+ }
1143
+ .ui-dt-total .ui-dt-cell {
1144
+ display: flex;
1145
+ justify-content: space-between;
1146
+ align-items: baseline;
1147
+ gap: var(--space-3);
1148
+ padding: 0;
1149
+ border-right: 0;
1150
+ overflow: visible;
1151
+ white-space: normal;
1152
+ }
1153
+ .ui-dt-total .ui-dt-cell:empty {
1154
+ display: none;
1155
+ }
1156
+ .ui-dt-total .ui-dt-cell[data-label]::before {
1157
+ content: attr(data-label);
1158
+ color: var(--ink-muted);
1159
+ font-family: var(--font-sans);
1160
+ font-weight: 400;
1161
+ }
1162
+ .ui-dt-cell.is-sticky {
1163
+ position: static;
1164
+ box-shadow: none;
1165
+ background: none;
1166
+ }
1167
+ .ui-dt-facets {
1168
+ grid-template-columns: 1fr;
1169
+ }
1170
+ }
1171
+ .ui-dt-head .ui-dt-cell.is-sticky {
1172
+ z-index: calc(var(--z-sticky) + 1);
1173
+ }
1174
+ .ui-dt-filterhead .ui-link-btn {
1175
+ font-size: var(--text-small);
1176
+ }
1177
+ .ui-card.is-flush > .ui-dt {
1178
+ padding-bottom: var(--space-4);
1179
+ }
1180
+ .ui-card.is-flush > .ui-dt:first-child {
1181
+ padding-top: var(--space-4);
1182
+ }
1183
+ .ui-card.is-flush > .ui-dt > :not(.ui-dt-scroller, .ui-dt-summary) {
1184
+ padding-inline: var(--space-4);
1185
+ }
1186
+ /* The summary tabs draw their own track: kept off the card's edges by a margin, not padded inside the track. */
1187
+ .ui-card.is-flush > .ui-dt > .ui-dt-summary {
1188
+ margin-inline: var(--space-4);
1189
+ max-width: calc(100% - 2 * var(--space-4));
1190
+ }
1191
+ .ui-card.is-flush > .ui-dt .ui-dt-scroll {
1192
+ border-inline: 0;
1193
+ border-radius: 0;
1194
+ }
1195
+ }