@seanyeh77/ui 0.41.0 → 0.43.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 (677) 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 +24 -24
  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 +99 -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 +59 -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 +198 -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 +55 -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 +129 -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 +794 -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 +250 -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 +123 -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 +1272 -0
  60. package/dist/components/DataTable/DataTable.js.map +1 -0
  61. package/dist/components/DataTable/SortButton.js +228 -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 +383 -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 +107 -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 +91 -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 +90 -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 +67 -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 +69 -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 +126 -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 +107 -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 +1648 -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 +117 -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 +719 -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 +78 -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 +119 -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 +95 -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 +100 -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 +50 -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 +225 -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 +143 -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 +225 -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 +75 -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 +26 -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 +143 -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 +30 -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 +59 -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 +594 -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 +1142 -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 +24 -0
  319. package/dist/icons/Icon.js +66 -0
  320. package/dist/icons/Icon.js.map +1 -0
  321. package/dist/icons/Spinner.js +18 -0
  322. package/dist/icons/Spinner.js.map +1 -0
  323. package/dist/icons/all.js +212 -0
  324. package/dist/icons/all.js.map +1 -0
  325. package/dist/icons/map.d.ts +3 -0
  326. package/dist/icons/map.js +31 -0
  327. package/dist/icons/map.js.map +1 -0
  328. package/dist/icons/names.d.ts +253 -0
  329. package/dist/icons/names.js +153 -0
  330. package/dist/icons/names.js.map +1 -0
  331. package/dist/icons/ph/archive.d.ts +10 -0
  332. package/dist/icons/ph/archive.js +11 -0
  333. package/dist/icons/ph/archive.js.map +1 -0
  334. package/dist/icons/ph/arrow-down.d.ts +10 -0
  335. package/dist/icons/ph/arrow-down.js +11 -0
  336. package/dist/icons/ph/arrow-down.js.map +1 -0
  337. package/dist/icons/ph/arrow-left.d.ts +10 -0
  338. package/dist/icons/ph/arrow-left.js +11 -0
  339. package/dist/icons/ph/arrow-left.js.map +1 -0
  340. package/dist/icons/ph/arrow-right.d.ts +10 -0
  341. package/dist/icons/ph/arrow-right.js +11 -0
  342. package/dist/icons/ph/arrow-right.js.map +1 -0
  343. package/dist/icons/ph/arrow-square-out.d.ts +10 -0
  344. package/dist/icons/ph/arrow-square-out.js +11 -0
  345. package/dist/icons/ph/arrow-square-out.js.map +1 -0
  346. package/dist/icons/ph/arrow-u-up-left.d.ts +10 -0
  347. package/dist/icons/ph/arrow-u-up-left.js +11 -0
  348. package/dist/icons/ph/arrow-u-up-left.js.map +1 -0
  349. package/dist/icons/ph/arrow-u-up-right.d.ts +10 -0
  350. package/dist/icons/ph/arrow-u-up-right.js +11 -0
  351. package/dist/icons/ph/arrow-u-up-right.js.map +1 -0
  352. package/dist/icons/ph/arrow-up.d.ts +10 -0
  353. package/dist/icons/ph/arrow-up.js +11 -0
  354. package/dist/icons/ph/arrow-up.js.map +1 -0
  355. package/dist/icons/ph/arrows-clockwise.d.ts +10 -0
  356. package/dist/icons/ph/arrows-clockwise.js +11 -0
  357. package/dist/icons/ph/arrows-clockwise.js.map +1 -0
  358. package/dist/icons/ph/arrows-in-line-vertical.d.ts +10 -0
  359. package/dist/icons/ph/arrows-in-line-vertical.js +11 -0
  360. package/dist/icons/ph/arrows-in-line-vertical.js.map +1 -0
  361. package/dist/icons/ph/arrows-left-right.d.ts +10 -0
  362. package/dist/icons/ph/arrows-left-right.js +11 -0
  363. package/dist/icons/ph/arrows-left-right.js.map +1 -0
  364. package/dist/icons/ph/arrows-out-line-vertical.d.ts +10 -0
  365. package/dist/icons/ph/arrows-out-line-vertical.js +11 -0
  366. package/dist/icons/ph/arrows-out-line-vertical.js.map +1 -0
  367. package/dist/icons/ph/bell.d.ts +10 -0
  368. package/dist/icons/ph/bell.js +11 -0
  369. package/dist/icons/ph/bell.js.map +1 -0
  370. package/dist/icons/ph/brackets-curly.d.ts +10 -0
  371. package/dist/icons/ph/brackets-curly.js +11 -0
  372. package/dist/icons/ph/brackets-curly.js.map +1 -0
  373. package/dist/icons/ph/calendar-blank.d.ts +10 -0
  374. package/dist/icons/ph/calendar-blank.js +11 -0
  375. package/dist/icons/ph/calendar-blank.js.map +1 -0
  376. package/dist/icons/ph/caret-down.d.ts +10 -0
  377. package/dist/icons/ph/caret-down.js +11 -0
  378. package/dist/icons/ph/caret-down.js.map +1 -0
  379. package/dist/icons/ph/caret-left.d.ts +10 -0
  380. package/dist/icons/ph/caret-left.js +11 -0
  381. package/dist/icons/ph/caret-left.js.map +1 -0
  382. package/dist/icons/ph/caret-right.d.ts +10 -0
  383. package/dist/icons/ph/caret-right.js +11 -0
  384. package/dist/icons/ph/caret-right.js.map +1 -0
  385. package/dist/icons/ph/caret-up.d.ts +10 -0
  386. package/dist/icons/ph/caret-up.js +11 -0
  387. package/dist/icons/ph/caret-up.js.map +1 -0
  388. package/dist/icons/ph/chart-bar.d.ts +10 -0
  389. package/dist/icons/ph/chart-bar.js +11 -0
  390. package/dist/icons/ph/chart-bar.js.map +1 -0
  391. package/dist/icons/ph/chart-line.d.ts +10 -0
  392. package/dist/icons/ph/chart-line.js +11 -0
  393. package/dist/icons/ph/chart-line.js.map +1 -0
  394. package/dist/icons/ph/chart-pie.d.ts +10 -0
  395. package/dist/icons/ph/chart-pie.js +11 -0
  396. package/dist/icons/ph/chart-pie.js.map +1 -0
  397. package/dist/icons/ph/chat-centered.d.ts +10 -0
  398. package/dist/icons/ph/chat-centered.js +11 -0
  399. package/dist/icons/ph/chat-centered.js.map +1 -0
  400. package/dist/icons/ph/check-circle.d.ts +10 -0
  401. package/dist/icons/ph/check-circle.js +11 -0
  402. package/dist/icons/ph/check-circle.js.map +1 -0
  403. package/dist/icons/ph/check-square.d.ts +10 -0
  404. package/dist/icons/ph/check-square.js +11 -0
  405. package/dist/icons/ph/check-square.js.map +1 -0
  406. package/dist/icons/ph/check.d.ts +10 -0
  407. package/dist/icons/ph/check.js +11 -0
  408. package/dist/icons/ph/check.js.map +1 -0
  409. package/dist/icons/ph/circle-notch.d.ts +10 -0
  410. package/dist/icons/ph/circle-notch.js +11 -0
  411. package/dist/icons/ph/circle-notch.js.map +1 -0
  412. package/dist/icons/ph/clock.d.ts +10 -0
  413. package/dist/icons/ph/clock.js +11 -0
  414. package/dist/icons/ph/clock.js.map +1 -0
  415. package/dist/icons/ph/cloud.d.ts +10 -0
  416. package/dist/icons/ph/cloud.js +11 -0
  417. package/dist/icons/ph/cloud.js.map +1 -0
  418. package/dist/icons/ph/columns.d.ts +10 -0
  419. package/dist/icons/ph/columns.js +11 -0
  420. package/dist/icons/ph/columns.js.map +1 -0
  421. package/dist/icons/ph/command.d.ts +10 -0
  422. package/dist/icons/ph/command.js +11 -0
  423. package/dist/icons/ph/command.js.map +1 -0
  424. package/dist/icons/ph/copy.d.ts +10 -0
  425. package/dist/icons/ph/copy.js +11 -0
  426. package/dist/icons/ph/copy.js.map +1 -0
  427. package/dist/icons/ph/corners-in.d.ts +10 -0
  428. package/dist/icons/ph/corners-in.js +11 -0
  429. package/dist/icons/ph/corners-in.js.map +1 -0
  430. package/dist/icons/ph/corners-out.d.ts +10 -0
  431. package/dist/icons/ph/corners-out.js +11 -0
  432. package/dist/icons/ph/corners-out.js.map +1 -0
  433. package/dist/icons/ph/cpu.d.ts +10 -0
  434. package/dist/icons/ph/cpu.js +11 -0
  435. package/dist/icons/ph/cpu.js.map +1 -0
  436. package/dist/icons/ph/database.d.ts +10 -0
  437. package/dist/icons/ph/database.js +11 -0
  438. package/dist/icons/ph/database.js.map +1 -0
  439. package/dist/icons/ph/dots-six-vertical.d.ts +10 -0
  440. package/dist/icons/ph/dots-six-vertical.js +11 -0
  441. package/dist/icons/ph/dots-six-vertical.js.map +1 -0
  442. package/dist/icons/ph/dots-three-vertical.d.ts +10 -0
  443. package/dist/icons/ph/dots-three-vertical.js +11 -0
  444. package/dist/icons/ph/dots-three-vertical.js.map +1 -0
  445. package/dist/icons/ph/dots-three.d.ts +10 -0
  446. package/dist/icons/ph/dots-three.js +11 -0
  447. package/dist/icons/ph/dots-three.js.map +1 -0
  448. package/dist/icons/ph/download-simple.d.ts +10 -0
  449. package/dist/icons/ph/download-simple.js +11 -0
  450. package/dist/icons/ph/download-simple.js.map +1 -0
  451. package/dist/icons/ph/envelope-simple.d.ts +10 -0
  452. package/dist/icons/ph/envelope-simple.js +11 -0
  453. package/dist/icons/ph/envelope-simple.js.map +1 -0
  454. package/dist/icons/ph/eye-slash.d.ts +10 -0
  455. package/dist/icons/ph/eye-slash.js +11 -0
  456. package/dist/icons/ph/eye-slash.js.map +1 -0
  457. package/dist/icons/ph/eye.d.ts +10 -0
  458. package/dist/icons/ph/eye.js +11 -0
  459. package/dist/icons/ph/eye.js.map +1 -0
  460. package/dist/icons/ph/file-code.d.ts +10 -0
  461. package/dist/icons/ph/file-code.js +11 -0
  462. package/dist/icons/ph/file-code.js.map +1 -0
  463. package/dist/icons/ph/file-text.d.ts +10 -0
  464. package/dist/icons/ph/file-text.js +11 -0
  465. package/dist/icons/ph/file-text.js.map +1 -0
  466. package/dist/icons/ph/file.d.ts +10 -0
  467. package/dist/icons/ph/file.js +11 -0
  468. package/dist/icons/ph/file.js.map +1 -0
  469. package/dist/icons/ph/floppy-disk.d.ts +10 -0
  470. package/dist/icons/ph/floppy-disk.js +11 -0
  471. package/dist/icons/ph/floppy-disk.js.map +1 -0
  472. package/dist/icons/ph/folder-open.d.ts +10 -0
  473. package/dist/icons/ph/folder-open.js +11 -0
  474. package/dist/icons/ph/folder-open.js.map +1 -0
  475. package/dist/icons/ph/folder.d.ts +10 -0
  476. package/dist/icons/ph/folder.js +11 -0
  477. package/dist/icons/ph/folder.js.map +1 -0
  478. package/dist/icons/ph/function.d.ts +10 -0
  479. package/dist/icons/ph/function.js +11 -0
  480. package/dist/icons/ph/function.js.map +1 -0
  481. package/dist/icons/ph/funnel.d.ts +10 -0
  482. package/dist/icons/ph/funnel.js +11 -0
  483. package/dist/icons/ph/funnel.js.map +1 -0
  484. package/dist/icons/ph/gauge.d.ts +10 -0
  485. package/dist/icons/ph/gauge.js +11 -0
  486. package/dist/icons/ph/gauge.js.map +1 -0
  487. package/dist/icons/ph/gear.d.ts +10 -0
  488. package/dist/icons/ph/gear.js +11 -0
  489. package/dist/icons/ph/gear.js.map +1 -0
  490. package/dist/icons/ph/globe.d.ts +10 -0
  491. package/dist/icons/ph/globe.js +11 -0
  492. package/dist/icons/ph/globe.js.map +1 -0
  493. package/dist/icons/ph/hard-drives.d.ts +10 -0
  494. package/dist/icons/ph/hard-drives.js +11 -0
  495. package/dist/icons/ph/hard-drives.js.map +1 -0
  496. package/dist/icons/ph/hash.d.ts +10 -0
  497. package/dist/icons/ph/hash.js +11 -0
  498. package/dist/icons/ph/hash.js.map +1 -0
  499. package/dist/icons/ph/heart.d.ts +10 -0
  500. package/dist/icons/ph/heart.js +11 -0
  501. package/dist/icons/ph/heart.js.map +1 -0
  502. package/dist/icons/ph/house.d.ts +10 -0
  503. package/dist/icons/ph/house.js +11 -0
  504. package/dist/icons/ph/house.js.map +1 -0
  505. package/dist/icons/ph/image.d.ts +10 -0
  506. package/dist/icons/ph/image.js +11 -0
  507. package/dist/icons/ph/image.js.map +1 -0
  508. package/dist/icons/ph/info.d.ts +10 -0
  509. package/dist/icons/ph/info.js +11 -0
  510. package/dist/icons/ph/info.js.map +1 -0
  511. package/dist/icons/ph/key.d.ts +10 -0
  512. package/dist/icons/ph/key.js +11 -0
  513. package/dist/icons/ph/key.js.map +1 -0
  514. package/dist/icons/ph/keyboard.d.ts +10 -0
  515. package/dist/icons/ph/keyboard.js +11 -0
  516. package/dist/icons/ph/keyboard.js.map +1 -0
  517. package/dist/icons/ph/layout.d.ts +10 -0
  518. package/dist/icons/ph/layout.js +11 -0
  519. package/dist/icons/ph/layout.js.map +1 -0
  520. package/dist/icons/ph/link.d.ts +10 -0
  521. package/dist/icons/ph/link.js +11 -0
  522. package/dist/icons/ph/link.js.map +1 -0
  523. package/dist/icons/ph/list-bullets.d.ts +10 -0
  524. package/dist/icons/ph/list-bullets.js +11 -0
  525. package/dist/icons/ph/list-bullets.js.map +1 -0
  526. package/dist/icons/ph/list.d.ts +10 -0
  527. package/dist/icons/ph/list.js +11 -0
  528. package/dist/icons/ph/list.js.map +1 -0
  529. package/dist/icons/ph/lock.d.ts +10 -0
  530. package/dist/icons/ph/lock.js +11 -0
  531. package/dist/icons/ph/lock.js.map +1 -0
  532. package/dist/icons/ph/magnifying-glass.d.ts +10 -0
  533. package/dist/icons/ph/magnifying-glass.js +11 -0
  534. package/dist/icons/ph/magnifying-glass.js.map +1 -0
  535. package/dist/icons/ph/minus.d.ts +10 -0
  536. package/dist/icons/ph/minus.js +11 -0
  537. package/dist/icons/ph/minus.js.map +1 -0
  538. package/dist/icons/ph/monitor.d.ts +10 -0
  539. package/dist/icons/ph/monitor.js +11 -0
  540. package/dist/icons/ph/monitor.js.map +1 -0
  541. package/dist/icons/ph/moon.d.ts +10 -0
  542. package/dist/icons/ph/moon.js +11 -0
  543. package/dist/icons/ph/moon.js.map +1 -0
  544. package/dist/icons/ph/paper-plane-tilt.d.ts +10 -0
  545. package/dist/icons/ph/paper-plane-tilt.js +11 -0
  546. package/dist/icons/ph/paper-plane-tilt.js.map +1 -0
  547. package/dist/icons/ph/pencil-simple.d.ts +10 -0
  548. package/dist/icons/ph/pencil-simple.js +11 -0
  549. package/dist/icons/ph/pencil-simple.js.map +1 -0
  550. package/dist/icons/ph/plus.d.ts +10 -0
  551. package/dist/icons/ph/plus.js +11 -0
  552. package/dist/icons/ph/plus.js.map +1 -0
  553. package/dist/icons/ph/printer.d.ts +10 -0
  554. package/dist/icons/ph/printer.js +11 -0
  555. package/dist/icons/ph/printer.js.map +1 -0
  556. package/dist/icons/ph/pulse.d.ts +10 -0
  557. package/dist/icons/ph/pulse.js +11 -0
  558. package/dist/icons/ph/pulse.js.map +1 -0
  559. package/dist/icons/ph/push-pin.d.ts +10 -0
  560. package/dist/icons/ph/push-pin.js +11 -0
  561. package/dist/icons/ph/push-pin.js.map +1 -0
  562. package/dist/icons/ph/question.d.ts +10 -0
  563. package/dist/icons/ph/question.js +11 -0
  564. package/dist/icons/ph/question.js.map +1 -0
  565. package/dist/icons/ph/share-network.d.ts +10 -0
  566. package/dist/icons/ph/share-network.js +11 -0
  567. package/dist/icons/ph/share-network.js.map +1 -0
  568. package/dist/icons/ph/shield.d.ts +10 -0
  569. package/dist/icons/ph/shield.js +11 -0
  570. package/dist/icons/ph/shield.js.map +1 -0
  571. package/dist/icons/ph/sidebar-simple.d.ts +10 -0
  572. package/dist/icons/ph/sidebar-simple.js +11 -0
  573. package/dist/icons/ph/sidebar-simple.js.map +1 -0
  574. package/dist/icons/ph/sign-in.d.ts +10 -0
  575. package/dist/icons/ph/sign-in.js +11 -0
  576. package/dist/icons/ph/sign-in.js.map +1 -0
  577. package/dist/icons/ph/sign-out.d.ts +10 -0
  578. package/dist/icons/ph/sign-out.js +11 -0
  579. package/dist/icons/ph/sign-out.js.map +1 -0
  580. package/dist/icons/ph/sliders-horizontal.d.ts +10 -0
  581. package/dist/icons/ph/sliders-horizontal.js +11 -0
  582. package/dist/icons/ph/sliders-horizontal.js.map +1 -0
  583. package/dist/icons/ph/sort-ascending.d.ts +10 -0
  584. package/dist/icons/ph/sort-ascending.js +11 -0
  585. package/dist/icons/ph/sort-ascending.js.map +1 -0
  586. package/dist/icons/ph/sparkle.d.ts +10 -0
  587. package/dist/icons/ph/sparkle.js +11 -0
  588. package/dist/icons/ph/sparkle.js.map +1 -0
  589. package/dist/icons/ph/square.d.ts +10 -0
  590. package/dist/icons/ph/square.js +11 -0
  591. package/dist/icons/ph/square.js.map +1 -0
  592. package/dist/icons/ph/squares-four.d.ts +10 -0
  593. package/dist/icons/ph/squares-four.js +11 -0
  594. package/dist/icons/ph/squares-four.js.map +1 -0
  595. package/dist/icons/ph/stack.d.ts +10 -0
  596. package/dist/icons/ph/stack.js +11 -0
  597. package/dist/icons/ph/stack.js.map +1 -0
  598. package/dist/icons/ph/star.d.ts +10 -0
  599. package/dist/icons/ph/star.js +11 -0
  600. package/dist/icons/ph/star.js.map +1 -0
  601. package/dist/icons/ph/sun.d.ts +10 -0
  602. package/dist/icons/ph/sun.js +11 -0
  603. package/dist/icons/ph/sun.js.map +1 -0
  604. package/dist/icons/ph/tag.d.ts +10 -0
  605. package/dist/icons/ph/tag.js +11 -0
  606. package/dist/icons/ph/tag.js.map +1 -0
  607. package/dist/icons/ph/terminal-window.d.ts +10 -0
  608. package/dist/icons/ph/terminal-window.js +11 -0
  609. package/dist/icons/ph/terminal-window.js.map +1 -0
  610. package/dist/icons/ph/trash.d.ts +10 -0
  611. package/dist/icons/ph/trash.js +11 -0
  612. package/dist/icons/ph/trash.js.map +1 -0
  613. package/dist/icons/ph/trend-up.d.ts +10 -0
  614. package/dist/icons/ph/trend-up.js +11 -0
  615. package/dist/icons/ph/trend-up.js.map +1 -0
  616. package/dist/icons/ph/upload-simple.d.ts +10 -0
  617. package/dist/icons/ph/upload-simple.js +11 -0
  618. package/dist/icons/ph/upload-simple.js.map +1 -0
  619. package/dist/icons/ph/user.d.ts +10 -0
  620. package/dist/icons/ph/user.js +11 -0
  621. package/dist/icons/ph/user.js.map +1 -0
  622. package/dist/icons/ph/users.d.ts +10 -0
  623. package/dist/icons/ph/users.js +11 -0
  624. package/dist/icons/ph/users.js.map +1 -0
  625. package/dist/icons/ph/warning-circle.d.ts +10 -0
  626. package/dist/icons/ph/warning-circle.js +11 -0
  627. package/dist/icons/ph/warning-circle.js.map +1 -0
  628. package/dist/icons/ph/warning.d.ts +10 -0
  629. package/dist/icons/ph/warning.js +11 -0
  630. package/dist/icons/ph/warning.js.map +1 -0
  631. package/dist/icons/ph/x-circle.d.ts +10 -0
  632. package/dist/icons/ph/x-circle.js +11 -0
  633. package/dist/icons/ph/x-circle.js.map +1 -0
  634. package/dist/icons/ph/x.d.ts +10 -0
  635. package/dist/icons/ph/x.js +11 -0
  636. package/dist/icons/ph/x.js.map +1 -0
  637. package/dist/icons/store.d.ts +6 -0
  638. package/dist/icons/store.js +77 -0
  639. package/dist/icons/store.js.map +1 -0
  640. package/dist/index.d.ts +86 -2293
  641. package/dist/index.js +82 -13349
  642. package/dist/internal/Field.js +74 -0
  643. package/dist/internal/Field.js.map +1 -0
  644. package/dist/internal/FloatingPanel.js +41 -0
  645. package/dist/internal/FloatingPanel.js.map +1 -0
  646. package/dist/internal/chart.js +131 -0
  647. package/dist/internal/chart.js.map +1 -0
  648. package/dist/internal/dev.js +21 -0
  649. package/dist/internal/dev.js.map +1 -0
  650. package/dist/internal/focus.js +94 -0
  651. package/dist/internal/focus.js.map +1 -0
  652. package/dist/internal/focusMain.d.ts +4 -0
  653. package/dist/internal/focusMain.js +22 -0
  654. package/dist/internal/focusMain.js.map +1 -0
  655. package/dist/internal/scrollHint.js +78 -0
  656. package/dist/internal/scrollHint.js.map +1 -0
  657. package/dist/internal/tableTools.js +114 -0
  658. package/dist/internal/tableTools.js.map +1 -0
  659. package/dist/internal/terms.d.ts +18 -0
  660. package/dist/internal/terms.js +64 -0
  661. package/dist/internal/terms.js.map +1 -0
  662. package/dist/internal/util.js +107 -0
  663. package/dist/internal/util.js.map +1 -0
  664. package/dist/motion.d.ts +5 -0
  665. package/dist/motion.js +29 -0
  666. package/dist/motion.js.map +1 -0
  667. package/dist/styles.css +4280 -4265
  668. package/dist/theme.d.ts +20 -0
  669. package/dist/theme.js +210 -0
  670. package/dist/theme.js.map +1 -0
  671. package/dist/tokens.css +4 -0
  672. package/docs/guidelines.md +1 -0
  673. package/docs/theme.md +51 -0
  674. package/package.json +5 -4
  675. package/dist/format-entry-CgMBtkni.d.ts +0 -79
  676. package/dist/format-entry-CyChe8bk.js.map +0 -1
  677. package/dist/index.js.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1,2293 +1,86 @@
1
- import { a as Decimals, i as tr, n as addMessages, o as format, r as setLocale, t as CountUnit } from "./format-entry-CgMBtkni.js";
2
- import * as React from "react";
3
- declare const PH: {
4
- readonly archive: '<path d="M224,48H32A16,16,0,0,0,16,64V88a16,16,0,0,0,16,16v88a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V104a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48ZM208,192H48V104H208ZM224,88H32V64H224V88ZM96,136a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,136Z"/>';
5
- readonly 'arrow-down': '<path d="M205.66,149.66l-72,72a8,8,0,0,1-11.32,0l-72-72a8,8,0,0,1,11.32-11.32L120,196.69V40a8,8,0,0,1,16,0V196.69l58.34-58.35a8,8,0,0,1,11.32,11.32Z"/>';
6
- readonly 'arrow-left': '<path d="M224,128a8,8,0,0,1-8,8H59.31l58.35,58.34a8,8,0,0,1-11.32,11.32l-72-72a8,8,0,0,1,0-11.32l72-72a8,8,0,0,1,11.32,11.32L59.31,120H216A8,8,0,0,1,224,128Z"/>';
7
- readonly 'arrow-right': '<path d="M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z"/>';
8
- readonly 'arrow-square-out': '<path d="M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"/>';
9
- readonly 'arrow-u-up-left': '<path d="M232,144a64.07,64.07,0,0,1-64,64H80a8,8,0,0,1,0-16h88a48,48,0,0,0,0-96H51.31l34.35,34.34a8,8,0,0,1-11.32,11.32l-48-48a8,8,0,0,1,0-11.32l48-48A8,8,0,0,1,85.66,45.66L51.31,80H168A64.07,64.07,0,0,1,232,144Z"/>';
10
- readonly 'arrow-u-up-right': '<path d="M170.34,130.34,204.69,96H88a48,48,0,0,0,0,96h88a8,8,0,0,1,0,16H88A64,64,0,0,1,88,80H204.69L170.34,45.66a8,8,0,0,1,11.32-11.32l48,48a8,8,0,0,1,0,11.32l-48,48a8,8,0,0,1-11.32-11.32Z"/>';
11
- readonly 'arrow-up': '<path d="M205.66,117.66a8,8,0,0,1-11.32,0L136,59.31V216a8,8,0,0,1-16,0V59.31L61.66,117.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0l72,72A8,8,0,0,1,205.66,117.66Z"/>';
12
- readonly 'arrows-clockwise': '<path d="M224,48V96a8,8,0,0,1-8,8H168a8,8,0,0,1,0-16h28.69L182.06,73.37a79.56,79.56,0,0,0-56.13-23.43h-.45A79.52,79.52,0,0,0,69.59,72.71,8,8,0,0,1,58.41,61.27a96,96,0,0,1,135,.79L208,76.69V48a8,8,0,0,1,16,0ZM186.41,183.29a80,80,0,0,1-112.47-.66L59.31,168H88a8,8,0,0,0,0-16H40a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V179.31l14.63,14.63A95.43,95.43,0,0,0,130,222.06h.53a95.36,95.36,0,0,0,67.07-27.33,8,8,0,0,0-11.18-11.44Z"/>';
13
- readonly 'arrows-in-line-vertical': '<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM122.34,101.66a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32L136,76.69V16a8,8,0,0,0-16,0V76.69L101.66,58.34A8,8,0,0,0,90.34,69.66Zm11.32,52.68a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32L120,179.31V240a8,8,0,0,0,16,0V179.31l18.34,18.35a8,8,0,0,0,11.32-11.32Z"/>';
14
- readonly 'arrows-out-line-vertical': '<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM101.66,53.66,120,35.31V96a8,8,0,0,0,16,0V35.31l18.34,18.35a8,8,0,0,0,11.32-11.32l-32-32a8,8,0,0,0-11.32,0l-32,32a8,8,0,0,0,11.32,11.32Zm52.68,148.68L136,220.69V160a8,8,0,0,0-16,0v60.69l-18.34-18.35a8,8,0,0,0-11.32,11.32l32,32a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"/>';
15
- readonly 'corners-out': '<path d="M216,48V88a8,8,0,0,1-16,0V56H168a8,8,0,0,1,0-16h40A8,8,0,0,1,216,48ZM88,200H56V168a8,8,0,0,0-16,0v40a8,8,0,0,0,8,8H88a8,8,0,0,0,0-16Zm120-40a8,8,0,0,0-8,8v32H168a8,8,0,0,0,0,16h40a8,8,0,0,0,8-8V168A8,8,0,0,0,208,160ZM88,40H48a8,8,0,0,0-8,8V88a8,8,0,0,0,16,0V56H88a8,8,0,0,0,0-16Z"/>';
16
- readonly bell: '<path d="M221.8,175.94C216.25,166.38,208,139.33,208,104a80,80,0,1,0-160,0c0,35.34-8.26,62.38-13.81,71.94A16,16,0,0,0,48,200H88.81a40,40,0,0,0,78.38,0H208a16,16,0,0,0,13.8-24.06ZM128,216a24,24,0,0,1-22.62-16h45.24A24,24,0,0,1,128,216ZM48,184c7.7-13.24,16-43.92,16-80a64,64,0,1,1,128,0c0,36.05,8.28,66.73,16,80Z"/>';
17
- readonly 'calendar-blank': '<path d="M208,32H184V24a8,8,0,0,0-16,0v8H88V24a8,8,0,0,0-16,0v8H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM72,48v8a8,8,0,0,0,16,0V48h80v8a8,8,0,0,0,16,0V48h24V80H48V48ZM208,208H48V96H208V208Z"/>';
18
- readonly 'caret-down': '<path d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"/>';
19
- readonly 'caret-left': '<path d="M165.66,202.34a8,8,0,0,1-11.32,11.32l-80-80a8,8,0,0,1,0-11.32l80-80a8,8,0,0,1,11.32,11.32L91.31,128Z"/>';
20
- readonly 'caret-right': '<path d="M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z"/>';
21
- readonly 'caret-up': '<path d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"/>';
22
- readonly 'chart-bar': '<path d="M224,200h-8V40a8,8,0,0,0-8-8H152a8,8,0,0,0-8,8V80H96a8,8,0,0,0-8,8v40H48a8,8,0,0,0-8,8v64H32a8,8,0,0,0,0,16H224a8,8,0,0,0,0-16ZM160,48h40V200H160ZM104,96h40V200H104ZM56,144H88v56H56Z"/>';
23
- readonly 'chart-line': '<path d="M232,208a8,8,0,0,1-8,8H32a8,8,0,0,1-8-8V48a8,8,0,0,1,16,0v94.37L90.73,98a8,8,0,0,1,10.07-.38l58.81,44.11L218.73,90a8,8,0,1,1,10.54,12l-64,56a8,8,0,0,1-10.07.38L96.39,114.29,40,163.63V200H224A8,8,0,0,1,232,208Z"/>';
24
- readonly 'chart-pie': '<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm71.87,53.27L136,114.14V40.37A88,88,0,0,1,199.87,77.27ZM120,40.37v83l-71.89,41.5A88,88,0,0,1,120,40.37ZM128,216a88,88,0,0,1-71.87-37.27L207.89,91.12A88,88,0,0,1,128,216Z"/>';
25
- readonly 'chat-centered': '<path d="M216,40H40A16,16,0,0,0,24,56V184a16,16,0,0,0,16,16h60.43l13.68,23.94a16,16,0,0,0,27.78,0L155.57,200H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,144H150.93a8,8,0,0,0-7,4l-16,28-16-28a8,8,0,0,0-7-4H40V56H216Z"/>';
26
- readonly check: '<path d="M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z"/>';
27
- readonly 'check-circle': '<path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>';
28
- readonly 'circle-notch': '<path d="M232,128a104,104,0,0,1-208,0c0-41,23.81-78.36,60.66-95.27a8,8,0,0,1,6.68,14.54C60.15,61.59,40,93.27,40,128a88,88,0,0,0,176,0c0-34.73-20.15-66.41-51.34-80.73a8,8,0,0,1,6.68-14.54C208.19,49.64,232,87,232,128Z"/>';
29
- readonly clock: '<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm64-88a8,8,0,0,1-8,8H128a8,8,0,0,1-8-8V72a8,8,0,0,1,16,0v48h48A8,8,0,0,1,192,128Z"/>';
30
- readonly cloud: '<path d="M160,40A88.09,88.09,0,0,0,81.29,88.67,64,64,0,1,0,72,216h88a88,88,0,0,0,0-176Zm0,160H72a48,48,0,0,1,0-96c1.1,0,2.2,0,3.29.11A88,88,0,0,0,72,128a8,8,0,0,0,16,0,72,72,0,1,1,72,72Z"/>';
31
- readonly copy: '<path d="M216,32H88a8,8,0,0,0-8,8V80H40a8,8,0,0,0-8,8V216a8,8,0,0,0,8,8H168a8,8,0,0,0,8-8V176h40a8,8,0,0,0,8-8V40A8,8,0,0,0,216,32ZM160,208H48V96H160Zm48-48H176V88a8,8,0,0,0-8-8H96V48H208Z"/>';
32
- readonly cpu: '<path d="M152,96H104a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V104A8,8,0,0,0,152,96Zm-8,48H112V112h32Zm88,0H216V112h16a8,8,0,0,0,0-16H216V56a16,16,0,0,0-16-16H160V24a8,8,0,0,0-16,0V40H112V24a8,8,0,0,0-16,0V40H56A16,16,0,0,0,40,56V96H24a8,8,0,0,0,0,16H40v32H24a8,8,0,0,0,0,16H40v40a16,16,0,0,0,16,16H96v16a8,8,0,0,0,16,0V216h32v16a8,8,0,0,0,16,0V216h40a16,16,0,0,0,16-16V160h16a8,8,0,0,0,0-16Zm-32,56H56V56H200v95.87s0,.09,0,.13,0,.09,0,.13V200Z"/>';
33
- readonly database: '<path d="M128,24C74.17,24,32,48.6,32,80v96c0,31.4,42.17,56,96,56s96-24.6,96-56V80C224,48.6,181.83,24,128,24Zm80,104c0,9.62-7.88,19.43-21.61,26.92C170.93,163.35,150.19,168,128,168s-42.93-4.65-58.39-13.08C55.88,147.43,48,137.62,48,128V111.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64ZM69.61,53.08C85.07,44.65,105.81,40,128,40s42.93,4.65,58.39,13.08C200.12,60.57,208,70.38,208,80s-7.88,19.43-21.61,26.92C170.93,115.35,150.19,120,128,120s-42.93-4.65-58.39-13.08C55.88,99.43,48,89.62,48,80S55.88,60.57,69.61,53.08ZM186.39,202.92C170.93,211.35,150.19,216,128,216s-42.93-4.65-58.39-13.08C55.88,195.43,48,185.62,48,176V159.36c17.06,15,46.23,24.64,80,24.64s62.94-9.68,80-24.64V176C208,185.62,200.12,195.43,186.39,202.92Z"/>';
34
- readonly 'dots-three': '<path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm56-12a12,12,0,1,0,12,12A12,12,0,0,0,196,116ZM60,116a12,12,0,1,0,12,12A12,12,0,0,0,60,116Z"/>';
35
- readonly 'dots-three-vertical': '<path d="M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128ZM128,72a12,12,0,1,0-12-12A12,12,0,0,0,128,72Zm0,112a12,12,0,1,0,12,12A12,12,0,0,0,128,184Z"/>';
36
- readonly 'download-simple': '<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z"/>';
37
- readonly 'envelope-simple': '<path d="M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z"/>';
38
- readonly eye: '<path d="M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z"/>';
39
- readonly 'eye-slash': '<path d="M53.92,34.62A8,8,0,1,0,42.08,45.38L61.32,66.55C25,88.84,9.38,123.2,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208a127.11,127.11,0,0,0,52.07-10.83l22,24.21a8,8,0,1,0,11.84-10.76Zm47.33,75.84,41.67,45.85a32,32,0,0,1-41.67-45.85ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.16,133.16,0,0,1,25,128c4.69-8.79,19.66-33.39,47.35-49.38l18,19.75a48,48,0,0,0,63.66,70l14.73,16.2A112,112,0,0,1,128,192Zm6-95.43a8,8,0,0,1,3-15.72,48.16,48.16,0,0,1,38.77,42.64,8,8,0,0,1-7.22,8.71,6.39,6.39,0,0,1-.75,0,8,8,0,0,1-8-7.26A32.09,32.09,0,0,0,134,96.57Zm113.28,34.69c-.42.94-10.55,23.37-33.36,43.8a8,8,0,1,1-10.67-11.92A132.77,132.77,0,0,0,231.05,128a133.15,133.15,0,0,0-23.12-30.77C185.67,75.19,158.78,64,128,64a118.37,118.37,0,0,0-19.36,1.57A8,8,0,1,1,106,49.79,134,134,0,0,1,128,48c34.88,0,66.57,13.26,91.66,38.35,18.83,18.83,27.3,37.62,27.65,38.41A8,8,0,0,1,247.31,131.26Z"/>';
40
- readonly file: '<path d="M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Z"/>';
41
- readonly 'file-text': '<path d="M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"/>';
42
- readonly 'floppy-disk': '<path d="M219.31,72,184,36.69A15.86,15.86,0,0,0,172.69,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V83.31A15.86,15.86,0,0,0,219.31,72ZM168,208H88V152h80Zm40,0H184V152a16,16,0,0,0-16-16H88a16,16,0,0,0-16,16v56H48V48H172.69L208,83.31ZM160,72a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h56A8,8,0,0,1,160,72Z"/>';
43
- readonly folder: '<path d="M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216Z"/>';
44
- readonly 'folder-open': '<path d="M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"/>';
45
- readonly funnel: '<path d="M230.6,49.53A15.81,15.81,0,0,0,216,40H40A16,16,0,0,0,28.19,66.76l.08.09L96,139.17V216a16,16,0,0,0,24.87,13.32l32-21.34A16,16,0,0,0,160,194.66V139.17l67.74-72.32.08-.09A15.8,15.8,0,0,0,230.6,49.53ZM40,56h0Zm106.18,74.58A8,8,0,0,0,144,136v58.66L112,216V136a8,8,0,0,0-2.16-5.47L40,56H216Z"/>';
46
- readonly gauge: '<path d="M207.06,72.67A111.24,111.24,0,0,0,128,40h-.4C66.07,40.21,16,91,16,153.13V176a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V152A111.25,111.25,0,0,0,207.06,72.67ZM224,176H119.71l54.76-75.3a8,8,0,0,0-12.94-9.42L99.92,176H32V153.13c0-3.08.15-6.12.43-9.13H56a8,8,0,0,0,0-16H35.27c10.32-38.86,44-68.24,84.73-71.66V80a8,8,0,0,0,16,0V56.33A96.14,96.14,0,0,1,221,128H200a8,8,0,0,0,0,16h23.67c.21,2.65.33,5.31.33,8Z"/>';
47
- readonly gear: '<path d="M128,80a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Zm88-29.84q.06-2.16,0-4.32l14.92-18.64a8,8,0,0,0,1.48-7.06,107.21,107.21,0,0,0-10.88-26.25,8,8,0,0,0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186,40.54a8,8,0,0,0-3.94-6,107.71,107.71,0,0,0-26.25-10.87,8,8,0,0,0-7.06,1.49L130.16,40Q128,40,125.84,40L107.2,25.11a8,8,0,0,0-7.06-1.48A107.6,107.6,0,0,0,73.89,34.51a8,8,0,0,0-3.93,6L67.32,64.27q-1.56,1.49-3,3L40.54,70a8,8,0,0,0-6,3.94,107.71,107.71,0,0,0-10.87,26.25,8,8,0,0,0,1.49,7.06L40,125.84Q40,128,40,130.16L25.11,148.8a8,8,0,0,0-1.48,7.06,107.21,107.21,0,0,0,10.88,26.25,8,8,0,0,0,6,3.93l23.72,2.64q1.49,1.56,3,3L70,215.46a8,8,0,0,0,3.94,6,107.71,107.71,0,0,0,26.25,10.87,8,8,0,0,0,7.06-1.49L125.84,216q2.16.06,4.32,0l18.64,14.92a8,8,0,0,0,7.06,1.48,107.21,107.21,0,0,0,26.25-10.88,8,8,0,0,0,3.93-6l2.64-23.72q1.56-1.48,3-3L215.46,186a8,8,0,0,0,6-3.94,107.71,107.71,0,0,0,10.87-26.25,8,8,0,0,0-1.49-7.06Zm-16.1-6.5a73.93,73.93,0,0,1,0,8.68,8,8,0,0,0,1.74,5.48l14.19,17.73a91.57,91.57,0,0,1-6.23,15L187,173.11a8,8,0,0,0-5.1,2.64,74.11,74.11,0,0,1-6.14,6.14,8,8,0,0,0-2.64,5.1l-2.51,22.58a91.32,91.32,0,0,1-15,6.23l-17.74-14.19a8,8,0,0,0-5-1.75h-.48a73.93,73.93,0,0,1-8.68,0,8,8,0,0,0-5.48,1.74L100.45,215.8a91.57,91.57,0,0,1-15-6.23L82.89,187a8,8,0,0,0-2.64-5.1,74.11,74.11,0,0,1-6.14-6.14,8,8,0,0,0-5.1-2.64L46.43,170.6a91.32,91.32,0,0,1-6.23-15l14.19-17.74a8,8,0,0,0,1.74-5.48,73.93,73.93,0,0,1,0-8.68,8,8,0,0,0-1.74-5.48L40.2,100.45a91.57,91.57,0,0,1,6.23-15L69,82.89a8,8,0,0,0,5.1-2.64,74.11,74.11,0,0,1,6.14-6.14A8,8,0,0,0,82.89,69L85.4,46.43a91.32,91.32,0,0,1,15-6.23l17.74,14.19a8,8,0,0,0,5.48,1.74,73.93,73.93,0,0,1,8.68,0,8,8,0,0,0,5.48-1.74L155.55,40.2a91.57,91.57,0,0,1,15,6.23L173.11,69a8,8,0,0,0,2.64,5.1,74.11,74.11,0,0,1,6.14,6.14,8,8,0,0,0,5.1,2.64l22.58,2.51a91.32,91.32,0,0,1,6.23,15l-14.19,17.74A8,8,0,0,0,199.87,123.66Z"/>';
48
- readonly globe: '<path d="M128,24h0A104,104,0,1,0,232,128,104.12,104.12,0,0,0,128,24Zm88,104a87.61,87.61,0,0,1-3.33,24H174.16a157.44,157.44,0,0,0,0-48h38.51A87.61,87.61,0,0,1,216,128ZM102,168H154a115.11,115.11,0,0,1-26,45A115.27,115.27,0,0,1,102,168Zm-3.9-16a140.84,140.84,0,0,1,0-48h59.88a140.84,140.84,0,0,1,0,48ZM40,128a87.61,87.61,0,0,1,3.33-24H81.84a157.44,157.44,0,0,0,0,48H43.33A87.61,87.61,0,0,1,40,128ZM154,88H102a115.11,115.11,0,0,1,26-45A115.27,115.27,0,0,1,154,88Zm52.33,0H170.71a135.28,135.28,0,0,0-22.3-45.6A88.29,88.29,0,0,1,206.37,88ZM107.59,42.4A135.28,135.28,0,0,0,85.29,88H49.63A88.29,88.29,0,0,1,107.59,42.4ZM49.63,168H85.29a135.28,135.28,0,0,0,22.3,45.6A88.29,88.29,0,0,1,49.63,168Zm98.78,45.6a135.28,135.28,0,0,0,22.3-45.6h35.66A88.29,88.29,0,0,1,148.41,213.6Z"/>';
49
- readonly 'hard-drives': '<path d="M208,136H48a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V152A16,16,0,0,0,208,136Zm0,64H48V152H208v48Zm0-160H48A16,16,0,0,0,32,56v48a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V56A16,16,0,0,0,208,40Zm0,64H48V56H208v48ZM192,80a12,12,0,1,1-12-12A12,12,0,0,1,192,80Zm0,96a12,12,0,1,1-12-12A12,12,0,0,1,192,176Z"/>';
50
- readonly heart: '<path d="M178,40c-20.65,0-38.73,8.88-50,23.89C116.73,48.88,98.65,40,78,40a62.07,62.07,0,0,0-62,62c0,70,103.79,126.66,108.21,129a8,8,0,0,0,7.58,0C136.21,228.66,240,172,240,102A62.07,62.07,0,0,0,178,40ZM128,214.8C109.74,204.16,32,155.69,32,102A46.06,46.06,0,0,1,78,56c19.45,0,35.78,10.36,42.6,27a8,8,0,0,0,14.8,0c6.82-16.67,23.15-27,42.6-27a46.06,46.06,0,0,1,46,46C224,155.61,146.24,204.15,128,214.8Z"/>';
51
- readonly house: '<path d="M219.31,108.68l-80-80a16,16,0,0,0-22.62,0l-80,80A15.87,15.87,0,0,0,32,120v96a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V160h32v56a8,8,0,0,0,8,8h64a8,8,0,0,0,8-8V120A15.87,15.87,0,0,0,219.31,108.68ZM208,208H160V152a8,8,0,0,0-8-8H104a8,8,0,0,0-8,8v56H48V120l80-80,80,80Z"/>';
52
- readonly image: '<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V158.75l-26.07-26.06a16,16,0,0,0-22.63,0l-20,20-44-44a16,16,0,0,0-22.62,0L40,149.37V56ZM40,172l52-52,80,80H40Zm176,28H194.63l-36-36,20-20L216,181.38V200ZM144,100a12,12,0,1,1,12,12A12,12,0,0,1,144,100Z"/>';
53
- readonly info: '<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm16-40a8,8,0,0,1-8,8,16,16,0,0,1-16-16V128a8,8,0,0,1,0-16,16,16,0,0,1,16,16v40A8,8,0,0,1,144,176ZM112,84a12,12,0,1,1,12,12A12,12,0,0,1,112,84Z"/>';
54
- readonly key: '<path d="M216.57,39.43A80,80,0,0,0,83.91,120.78L28.69,176A15.86,15.86,0,0,0,24,187.31V216a16,16,0,0,0,16,16H72a8,8,0,0,0,8-8V208H96a8,8,0,0,0,8-8V184h16a8,8,0,0,0,5.66-2.34l9.56-9.57A79.73,79.73,0,0,0,160,176h.1A80,80,0,0,0,216.57,39.43ZM224,98.1c-1.09,34.09-29.75,61.86-63.89,61.9H160a63.7,63.7,0,0,1-23.65-4.51,8,8,0,0,0-8.84,1.68L116.69,168H96a8,8,0,0,0-8,8v16H72a8,8,0,0,0-8,8v16H40V187.31l58.83-58.82a8,8,0,0,0,1.68-8.84A63.72,63.72,0,0,1,96,95.92c0-34.14,27.81-62.8,61.9-63.89A64,64,0,0,1,224,98.1ZM192,76a12,12,0,1,1-12-12A12,12,0,0,1,192,76Z"/>';
55
- readonly layout: '<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,16V96H40V56ZM40,112H96v88H40Zm176,88H112V112H216v88Z"/>';
56
- readonly link: '<path d="M240,88.23a54.43,54.43,0,0,1-16,37L189.25,160a54.27,54.27,0,0,1-38.63,16h-.05A54.63,54.63,0,0,1,96,119.84a8,8,0,0,1,16,.45A38.62,38.62,0,0,0,150.58,160h0a38.39,38.39,0,0,0,27.31-11.31l34.75-34.75a38.63,38.63,0,0,0-54.63-54.63l-11,11A8,8,0,0,1,135.7,59l11-11A54.65,54.65,0,0,1,224,48,54.86,54.86,0,0,1,240,88.23ZM109,185.66l-11,11A38.41,38.41,0,0,1,70.6,208h0a38.63,38.63,0,0,1-27.29-65.94L78,107.31A38.63,38.63,0,0,1,144,135.71a8,8,0,0,0,16,.45A54.86,54.86,0,0,0,144,96a54.65,54.65,0,0,0-77.27,0L32,130.75A54.62,54.62,0,0,0,70.56,224h0a54.28,54.28,0,0,0,38.64-16l11-11A8,8,0,0,0,109,185.66Z"/>';
57
- readonly list: '<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128ZM40,72H216a8,8,0,0,0,0-16H40a8,8,0,0,0,0,16ZM216,184H40a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Z"/>';
58
- readonly 'list-bullets': '<path d="M80,64a8,8,0,0,1,8-8H216a8,8,0,0,1,0,16H88A8,8,0,0,1,80,64Zm136,56H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16Zm0,64H88a8,8,0,0,0,0,16H216a8,8,0,0,0,0-16ZM44,52A12,12,0,1,0,56,64,12,12,0,0,0,44,52Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,116Zm0,64a12,12,0,1,0,12,12A12,12,0,0,0,44,180Z"/>';
59
- readonly lock: '<path d="M208,80H176V56a48,48,0,0,0-96,0V80H48A16,16,0,0,0,32,96V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V96A16,16,0,0,0,208,80ZM96,56a32,32,0,0,1,64,0V80H96ZM208,208H48V96H208V208Zm-68-56a12,12,0,1,1-12-12A12,12,0,0,1,140,152Z"/>';
60
- readonly 'magnifying-glass': '<path d="M229.66,218.34l-50.07-50.06a88.11,88.11,0,1,0-11.31,11.31l50.06,50.07a8,8,0,0,0,11.32-11.32ZM40,112a72,72,0,1,1,72,72A72.08,72.08,0,0,1,40,112Z"/>';
61
- readonly minus: '<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"/>';
62
- readonly monitor: '<path d="M208,40H48A24,24,0,0,0,24,64V176a24,24,0,0,0,24,24H208a24,24,0,0,0,24-24V64A24,24,0,0,0,208,40Zm8,136a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V64a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8Zm-48,48a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,224Z"/>';
63
- readonly moon: '<path d="M233.54,142.23a8,8,0,0,0-8-2,88.08,88.08,0,0,1-109.8-109.8,8,8,0,0,0-10-10,104.84,104.84,0,0,0-52.91,37A104,104,0,0,0,136,224a103.09,103.09,0,0,0,62.52-20.88,104.84,104.84,0,0,0,37-52.91A8,8,0,0,0,233.54,142.23ZM188.9,190.34A88,88,0,0,1,65.66,67.11a89,89,0,0,1,31.4-26A106,106,0,0,0,96,56,104.11,104.11,0,0,0,200,160a106,106,0,0,0,14.92-1.06A89,89,0,0,1,188.9,190.34Z"/>';
64
- readonly 'paper-plane-tilt': '<path d="M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z"/>';
65
- readonly 'pencil-simple': '<path d="M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z"/>';
66
- readonly plus: '<path d="M224,128a8,8,0,0,1-8,8H136v80a8,8,0,0,1-16,0V136H40a8,8,0,0,1,0-16h80V40a8,8,0,0,1,16,0v80h80A8,8,0,0,1,224,128Z"/>';
67
- readonly printer: '<path d="M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z"/>';
68
- readonly pulse: '<path d="M240,128a8,8,0,0,1-8,8H204.94l-37.78,75.58A8,8,0,0,1,160,216h-.4a8,8,0,0,1-7.08-5.14L95.35,60.76,63.28,131.31A8,8,0,0,1,56,136H24a8,8,0,0,1,0-16H50.85L88.72,36.69a8,8,0,0,1,14.76.46l57.51,151,31.85-63.71A8,8,0,0,1,200,120h32A8,8,0,0,1,240,128Z"/>';
69
- readonly question: '<path d="M140,180a12,12,0,1,1-12-12A12,12,0,0,1,140,180ZM128,72c-22.06,0-40,16.15-40,36v4a8,8,0,0,0,16,0v-4c0-11,10.77-20,24-20s24,9,24,20-10.77,20-24,20a8,8,0,0,0-8,8v8a8,8,0,0,0,16,0v-.72c18.24-3.35,32-17.9,32-35.28C168,88.15,150.06,72,128,72Zm104,56A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>';
70
- readonly 'share-network': '<path d="M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"/>';
71
- readonly shield: '<path d="M208,40H48A16,16,0,0,0,32,56v56c0,52.72,25.52,84.67,46.93,102.19,23.06,18.86,46,25.27,47,25.53a8,8,0,0,0,4.2,0c1-.26,23.91-6.67,47-25.53C198.48,196.67,224,164.72,224,112V56A16,16,0,0,0,208,40Zm0,72c0,37.07-13.66,67.16-40.6,89.42A129.3,129.3,0,0,1,128,223.62a128.25,128.25,0,0,1-38.92-21.81C61.82,179.51,48,149.3,48,112l0-56,160,0Z"/>';
72
- readonly 'sidebar-simple': '<path d="M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"/>';
73
- readonly 'sign-in': '<path d="M141.66,133.66l-40,40a8,8,0,0,1-11.32-11.32L116.69,136H24a8,8,0,0,1,0-16h92.69L90.34,93.66a8,8,0,0,1,11.32-11.32l40,40A8,8,0,0,1,141.66,133.66ZM200,32H136a8,8,0,0,0,0,16h56V208H136a8,8,0,0,0,0,16h64a8,8,0,0,0,8-8V40A8,8,0,0,0,200,32Z"/>';
74
- readonly 'sign-out': '<path d="M120,216a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V40a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H56V208h56A8,8,0,0,1,120,216Zm109.66-93.66-40-40a8,8,0,0,0-11.32,11.32L204.69,120H112a8,8,0,0,0,0,16h92.69l-26.35,26.34a8,8,0,0,0,11.32,11.32l40-40A8,8,0,0,0,229.66,122.34Z"/>';
75
- readonly 'sliders-horizontal': '<path d="M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"/>';
76
- readonly 'squares-four': '<path d="M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z"/>';
77
- readonly star: '<path d="M239.18,97.26A16.38,16.38,0,0,0,224.92,86l-59-4.76L143.14,26.15a16.36,16.36,0,0,0-30.27,0L90.11,81.23,31.08,86a16.46,16.46,0,0,0-9.37,28.86l45,38.83L53,211.75a16.38,16.38,0,0,0,24.5,17.82L128,198.49l50.53,31.08A16.4,16.4,0,0,0,203,211.75l-13.76-58.07,45-38.83A16.43,16.43,0,0,0,239.18,97.26Zm-15.34,5.47-48.7,42a8,8,0,0,0-2.56,7.91l14.88,62.8a.37.37,0,0,1-.17.48c-.18.14-.23.11-.38,0l-54.72-33.65a8,8,0,0,0-8.38,0L69.09,215.94c-.15.09-.19.12-.38,0a.37.37,0,0,1-.17-.48l14.88-62.8a8,8,0,0,0-2.56-7.91l-48.7-42c-.12-.1-.23-.19-.13-.5s.18-.27.33-.29l63.92-5.16A8,8,0,0,0,103,91.86l24.62-59.61c.08-.17.11-.25.35-.25s.27.08.35.25L153,91.86a8,8,0,0,0,6.75,4.92l63.92,5.16c.15,0,.24,0,.33.29S224,102.63,223.84,102.73Z"/>';
78
- readonly sun: '<path d="M120,40V16a8,8,0,0,1,16,0V40a8,8,0,0,1-16,0Zm72,88a64,64,0,1,1-64-64A64.07,64.07,0,0,1,192,128Zm-16,0a48,48,0,1,0-48,48A48.05,48.05,0,0,0,176,128ZM58.34,69.66A8,8,0,0,0,69.66,58.34l-16-16A8,8,0,0,0,42.34,53.66Zm0,116.68-16,16a8,8,0,0,0,11.32,11.32l16-16a8,8,0,0,0-11.32-11.32ZM192,72a8,8,0,0,0,5.66-2.34l16-16a8,8,0,0,0-11.32-11.32l-16,16A8,8,0,0,0,192,72Zm5.66,114.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32-11.32ZM48,128a8,8,0,0,0-8-8H16a8,8,0,0,0,0,16H40A8,8,0,0,0,48,128Zm80,80a8,8,0,0,0-8,8v24a8,8,0,0,0,16,0V216A8,8,0,0,0,128,208Zm112-88H216a8,8,0,0,0,0,16h24a8,8,0,0,0,0-16Z"/>';
79
- readonly trash: '<path d="M216,48H176V40a24,24,0,0,0-24-24H104A24,24,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM96,40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8v8H96Zm96,168H64V64H192ZM112,104v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0v64a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Z"/>';
80
- readonly 'upload-simple': '<path d="M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0ZM93.66,77.66,120,51.31V144a8,8,0,0,0,16,0V51.31l26.34,26.35a8,8,0,0,0,11.32-11.32l-40-40a8,8,0,0,0-11.32,0l-40,40A8,8,0,0,0,93.66,77.66Z"/>';
81
- readonly user: '<path d="M230.92,212c-15.23-26.33-38.7-45.21-66.09-54.16a72,72,0,1,0-73.66,0C63.78,166.78,40.31,185.66,25.08,212a8,8,0,1,0,13.85,8c18.84-32.56,52.14-52,89.07-52s70.23,19.44,89.07,52a8,8,0,1,0,13.85-8ZM72,96a56,56,0,1,1,56,56A56.06,56.06,0,0,1,72,96Z"/>';
82
- readonly users: '<path d="M117.25,157.92a60,60,0,1,0-66.5,0A95.83,95.83,0,0,0,3.53,195.63a8,8,0,1,0,13.4,8.74,80,80,0,0,1,134.14,0,8,8,0,0,0,13.4-8.74A95.83,95.83,0,0,0,117.25,157.92ZM40,108a44,44,0,1,1,44,44A44.05,44.05,0,0,1,40,108Zm210.14,98.7a8,8,0,0,1-11.07-2.33A79.83,79.83,0,0,0,172,168a8,8,0,0,1,0-16,44,44,0,1,0-16.34-84.87,8,8,0,1,1-5.94-14.85,60,60,0,0,1,55.53,105.64,95.83,95.83,0,0,1,47.22,37.71A8,8,0,0,1,250.14,206.7Z"/>';
83
- readonly warning: '<path d="M236.8,188.09,149.35,36.22h0a24.76,24.76,0,0,0-42.7,0L19.2,188.09a23.51,23.51,0,0,0,0,23.72A24.35,24.35,0,0,0,40.55,224h174.9a24.35,24.35,0,0,0,21.33-12.19A23.51,23.51,0,0,0,236.8,188.09ZM222.93,203.8a8.5,8.5,0,0,1-7.48,4.2H40.55a8.5,8.5,0,0,1-7.48-4.2,7.59,7.59,0,0,1,0-7.72L120.52,44.21a8.75,8.75,0,0,1,15,0l87.45,151.87A7.59,7.59,0,0,1,222.93,203.8ZM120,144V104a8,8,0,0,1,16,0v40a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,180Z"/>';
84
- readonly 'warning-circle': '<path d="M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z"/>';
85
- readonly x: '<path d="M205.66,194.34a8,8,0,0,1-11.32,11.32L128,139.31,61.66,205.66a8,8,0,0,1-11.32-11.32L116.69,128,50.34,61.66A8,8,0,0,1,61.66,50.34L128,116.69l66.34-66.35a8,8,0,0,1,11.32,11.32L139.31,128Z"/>';
86
- readonly 'x-circle': '<path d="M165.66,101.66,139.31,128l26.35,26.34a8,8,0,0,1-11.32,11.32L128,139.31l-26.34,26.35a8,8,0,0,1-11.32-11.32L116.69,128,90.34,101.66a8,8,0,0,1,11.32-11.32L128,116.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM232,128A104,104,0,1,1,128,24,104.11,104.11,0,0,1,232,128Zm-16,0a88,88,0,1,0-88,88A88.1,88.1,0,0,0,216,128Z"/>';
87
- readonly columns: '<path d="M104,32H64A16,16,0,0,0,48,48V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,104,32Zm0,176H64V48h40ZM192,32H152a16,16,0,0,0-16,16V208a16,16,0,0,0,16,16h40a16,16,0,0,0,16-16V48A16,16,0,0,0,192,32Zm0,176H152V48h40Z"/>';
88
- readonly square: '<path d="M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32Zm0,176H48V48H208V208Z"/>';
89
- readonly 'check-square': '<path d="M173.66,98.34a8,8,0,0,1,0,11.32l-56,56a8,8,0,0,1-11.32,0l-24-24a8,8,0,0,1,11.32-11.32L112,148.69l50.34-50.35A8,8,0,0,1,173.66,98.34ZM224,48V208a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V48A16,16,0,0,1,48,32H208A16,16,0,0,1,224,48ZM208,208V48H48V208H208Z"/>';
90
- readonly 'brackets-curly': '<path d="M43.18,128a29.78,29.78,0,0,1,8,10.26c4.8,9.9,4.8,22,4.8,33.74,0,24.31,1,36,24,36a8,8,0,0,1,0,16c-17.48,0-29.32-6.14-35.2-18.26-4.8-9.9-4.8-22-4.8-33.74,0-24.31-1-36-24-36a8,8,0,0,1,0-16c23,0,24-11.69,24-36,0-11.72,0-23.84,4.8-33.74C50.68,38.14,62.52,32,80,32a8,8,0,0,1,0,16C57,48,56,59.69,56,84c0,11.72,0,23.84-4.8,33.74A29.78,29.78,0,0,1,43.18,128ZM240,120c-23,0-24-11.69-24-36,0-11.72,0-23.84-4.8-33.74C205.32,38.14,193.48,32,176,32a8,8,0,0,0,0,16c23,0,24,11.69,24,36,0,11.72,0,23.84,4.8,33.74a29.78,29.78,0,0,0,8,10.26,29.78,29.78,0,0,0-8,10.26c-4.8,9.9-4.8,22-4.8,33.74,0,24.31-1,36-24,36a8,8,0,0,0,0,16c17.48,0,29.32-6.14,35.2-18.26,4.8-9.9,4.8-22,4.8-33.74,0-24.31,1-36,24-36a8,8,0,0,0,0-16Z"/>';
91
- readonly function: '<path d="M208,40a8,8,0,0,1-8,8H170.71a24,24,0,0,0-23.62,19.71L137.59,120H184a8,8,0,0,1,0,16H134.68l-10,55.16A40,40,0,0,1,85.29,224H56a8,8,0,0,1,0-16H85.29a24,24,0,0,0,23.62-19.71l9.5-52.29H72a8,8,0,0,1,0-16h49.32l10-55.16A40,40,0,0,1,170.71,32H200A8,8,0,0,1,208,40Z"/>';
92
- readonly stack: '<path d="M230.91,172A8,8,0,0,1,228,182.91l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,36,169.09l92,53.65,92-53.65A8,8,0,0,1,230.91,172ZM220,121.09l-92,53.65L36,121.09A8,8,0,0,0,28,134.91l96,56a8,8,0,0,0,8.06,0l96-56A8,8,0,1,0,220,121.09ZM24,80a8,8,0,0,1,4-6.91l96-56a8,8,0,0,1,8.06,0l96,56a8,8,0,0,1,0,13.82l-96,56a8,8,0,0,1-8.06,0l-96-56A8,8,0,0,1,24,80Zm23.88,0L128,126.74,208.12,80,128,33.26Z"/>';
93
- readonly 'terminal-window': '<path d="M128,128a8,8,0,0,1-3,6.25l-40,32a8,8,0,1,1-10-12.5L107.19,128,75,102.25a8,8,0,1,1,10-12.5l40,32A8,8,0,0,1,128,128Zm48,24H136a8,8,0,0,0,0,16h40a8,8,0,0,0,0-16Zm56-96V200a16,16,0,0,1-16,16H40a16,16,0,0,1-16-16V56A16,16,0,0,1,40,40H216A16,16,0,0,1,232,56ZM216,200V56H40V200H216Z"/>';
94
- readonly 'file-code': '<path d="M181.66,146.34a8,8,0,0,1,0,11.32l-24,24a8,8,0,0,1-11.32-11.32L164.69,152l-18.35-18.34a8,8,0,0,1,11.32-11.32Zm-72-24a8,8,0,0,0-11.32,0l-24,24a8,8,0,0,0,0,11.32l24,24a8,8,0,0,0,11.32-11.32L91.31,152l18.35-18.34A8,8,0,0,0,109.66,122.34ZM216,88V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V40A16,16,0,0,1,56,24h96a8,8,0,0,1,5.66,2.34l56,56A8,8,0,0,1,216,88Zm-56-8h28.69L160,51.31Zm40,136V96H152a8,8,0,0,1-8-8V40H56V216H200Z"/>';
95
- readonly hash: '<path d="M224,88H175.4l8.47-46.57a8,8,0,0,0-15.74-2.86l-9,49.43H111.4l8.47-46.57a8,8,0,0,0-15.74-2.86L95.14,88H48a8,8,0,0,0,0,16H92.23L83.5,152H32a8,8,0,0,0,0,16H80.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,80,224a8,8,0,0,0,7.86-6.57l9-49.43H144.6l-8.47,46.57a8,8,0,0,0,6.44,9.3A7.79,7.79,0,0,0,144,224a8,8,0,0,0,7.86-6.57l9-49.43H208a8,8,0,0,0,0-16H163.77l8.73-48H224a8,8,0,0,0,0-16Zm-76.5,64H99.77l8.73-48h47.73Z"/>';
96
- readonly command: '<path d="M180,144H160V112h20a36,36,0,1,0-36-36V96H112V76a36,36,0,1,0-36,36H96v32H76a36,36,0,1,0,36,36V160h32v20a36,36,0,1,0,36-36ZM160,76a20,20,0,1,1,20,20H160ZM56,76a20,20,0,0,1,40,0V96H76A20,20,0,0,1,56,76ZM96,180a20,20,0,1,1-20-20H96Zm16-68h32v32H112Zm68,88a20,20,0,0,1-20-20V160h20a20,20,0,0,1,0,40Z"/>';
97
- readonly tag: '<path d="M243.31,136,144,36.69A15.86,15.86,0,0,0,132.69,32H40a8,8,0,0,0-8,8v92.69A15.86,15.86,0,0,0,36.69,144L136,243.31a16,16,0,0,0,22.63,0l84.68-84.68a16,16,0,0,0,0-22.63Zm-96,96L48,132.69V48h84.69L232,147.31ZM96,84A12,12,0,1,1,84,72,12,12,0,0,1,96,84Z"/>';
98
- readonly 'sort-ascending': '<path d="M128,128a8,8,0,0,1-8,8H48a8,8,0,0,1,0-16h72A8,8,0,0,1,128,128ZM48,72H184a8,8,0,0,0,0-16H48a8,8,0,0,0,0,16Zm56,112H48a8,8,0,0,0,0,16h56a8,8,0,0,0,0-16Zm125.66-21.66a8,8,0,0,0-11.32,0L192,188.69V112a8,8,0,0,0-16,0v76.69l-26.34-26.35a8,8,0,0,0-11.32,11.32l40,40a8,8,0,0,0,11.32,0l40-40A8,8,0,0,0,229.66,162.34Z"/>';
99
- readonly 'dots-six-vertical': '<path d="M104,60A12,12,0,1,1,92,48,12,12,0,0,1,104,60Zm60,12a12,12,0,1,0-12-12A12,12,0,0,0,164,72ZM92,116a12,12,0,1,0,12,12A12,12,0,0,0,92,116Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,116ZM92,184a12,12,0,1,0,12,12A12,12,0,0,0,92,184Zm72,0a12,12,0,1,0,12,12A12,12,0,0,0,164,184Z"/>';
100
- readonly 'push-pin': '<path d="M235.32,81.37,174.63,20.69a16,16,0,0,0-22.63,0L98.37,74.49c-10.66-3.34-35-7.37-60.4,13.14a16,16,0,0,0-1.29,23.78L85,159.71,42.34,202.34a8,8,0,0,0,11.32,11.32L96.29,171l48.29,48.29A16,16,0,0,0,155.9,224c.38,0,.75,0,1.13,0a15.93,15.93,0,0,0,11.64-6.33c19.64-26.1,17.75-47.32,13.19-60L235.33,104A16,16,0,0,0,235.32,81.37ZM224,92.69h0l-57.27,57.46a8,8,0,0,0-1.49,9.22c9.46,18.93-1.8,38.59-9.34,48.62L48,100.08c12.08-9.74,23.64-12.31,32.48-12.31A40.13,40.13,0,0,1,96.81,91a8,8,0,0,0,9.25-1.51L163.32,32,224,92.68Z"/>';
101
- readonly keyboard: '<path d="M224,48H32A16,16,0,0,0,16,64V192a16,16,0,0,0,16,16H224a16,16,0,0,0,16-16V64A16,16,0,0,0,224,48Zm0,144H32V64H224V192Zm-16-64a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,128Zm0-32a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16H200A8,8,0,0,1,208,96ZM72,160a8,8,0,0,1-8,8H56a8,8,0,0,1,0-16h8A8,8,0,0,1,72,160Zm96,0a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,160Zm40,0a8,8,0,0,1-8,8h-8a8,8,0,0,1,0-16h8A8,8,0,0,1,208,160Z"/>';
102
- readonly 'arrows-left-right': '<path d="M213.66,181.66l-32,32a8,8,0,0,1-11.32-11.32L188.69,184H48a8,8,0,0,1,0-16H188.69l-18.35-18.34a8,8,0,0,1,11.32-11.32l32,32A8,8,0,0,1,213.66,181.66Zm-139.32-64a8,8,0,0,0,11.32-11.32L67.31,88H208a8,8,0,0,0,0-16H67.31L85.66,53.66A8,8,0,0,0,74.34,42.34l-32,32a8,8,0,0,0,0,11.32Z"/>';
103
- readonly sparkle: '<path d="M197.58,129.06,146,110l-19-51.62a15.92,15.92,0,0,0-29.88,0L78,110l-51.62,19a15.92,15.92,0,0,0,0,29.88L78,178l19,51.62a15.92,15.92,0,0,0,29.88,0L146,178l51.62-19a15.92,15.92,0,0,0,0-29.88ZM137,164.22a8,8,0,0,0-4.74,4.74L112,223.85,91.78,169A8,8,0,0,0,87,164.22L32.15,144,87,123.78A8,8,0,0,0,91.78,119L112,64.15,132.22,119a8,8,0,0,0,4.74,4.74L191.85,144ZM144,40a8,8,0,0,1,8-8h16V16a8,8,0,0,1,16,0V32h16a8,8,0,0,1,0,16H184V64a8,8,0,0,1-16,0V48H152A8,8,0,0,1,144,40ZM248,88a8,8,0,0,1-8,8h-8v8a8,8,0,0,1-16,0V96h-8a8,8,0,0,1,0-16h8V72a8,8,0,0,1,16,0v8h8A8,8,0,0,1,248,88Z"/>';
104
- readonly 'trend-up': '<path d="M240,56v64a8,8,0,0,1-16,0V75.31l-82.34,82.35a8,8,0,0,1-11.32,0L96,123.31,29.66,189.66a8,8,0,0,1-11.32-11.32l72-72a8,8,0,0,1,11.32,0L136,140.69,212.69,64H168a8,8,0,0,1,0-16h64A8,8,0,0,1,240,56Z"/>';
105
- readonly 'corners-in': '<path d="M152,96V48a8,8,0,0,1,16,0V88h40a8,8,0,0,1,0,16H160A8,8,0,0,1,152,96ZM96,152H48a8,8,0,0,0,0,16H88v40a8,8,0,0,0,16,0V160A8,8,0,0,0,96,152Zm112,0H160a8,8,0,0,0-8,8v48a8,8,0,0,0,16,0V168h40a8,8,0,0,0,0-16ZM96,40a8,8,0,0,0-8,8V88H48a8,8,0,0,0,0,16H96a8,8,0,0,0,8-8V48A8,8,0,0,0,96,40Z"/>';
106
- };
107
- /** Lucide names that map to a Phosphor icon. */
108
- declare const PH_ALIAS: {
109
- readonly 'chart-column': 'chart-bar';
110
- readonly settings: 'gear';
111
- readonly search: 'magnifying-glass';
112
- readonly pencil: 'pencil-simple';
113
- readonly 'trash-2': 'trash';
114
- readonly download: 'download-simple';
115
- readonly upload: 'upload-simple';
116
- readonly 'refresh-cw': 'arrows-clockwise';
117
- readonly 'chevron-right': 'caret-right';
118
- readonly 'chevron-left': 'caret-left';
119
- readonly 'chevron-down': 'caret-down';
120
- readonly 'chevron-up': 'caret-up';
121
- readonly ellipsis: 'dots-three';
122
- readonly 'ellipsis-vertical': 'dots-three-vertical';
123
- readonly calendar: 'calendar-blank';
124
- readonly 'log-out': 'sign-out';
125
- readonly 'log-in': 'sign-in';
126
- readonly 'eye-off': 'eye-slash';
127
- readonly 'circle-alert': 'warning-circle';
128
- readonly 'triangle-alert': 'warning';
129
- readonly 'circle-check': 'check-circle';
130
- readonly 'circle-x': 'x-circle';
131
- readonly 'loader-circle': 'circle-notch';
132
- readonly 'panel-left-close': 'sidebar-simple';
133
- readonly 'panel-left-open': 'sidebar-simple';
134
- readonly 'external-link': 'arrow-square-out';
135
- readonly mail: 'envelope-simple';
136
- readonly 'share-2': 'share-network';
137
- readonly send: 'paper-plane-tilt';
138
- readonly save: 'floppy-disk';
139
- readonly 'undo-2': 'arrow-u-up-left';
140
- readonly 'redo-2': 'arrow-u-up-right';
141
- readonly list: 'list-bullets';
142
- readonly 'layout-grid': 'squares-four';
143
- readonly 'layout-dashboard': 'layout';
144
- readonly server: 'hard-drives';
145
- readonly menu: 'list';
146
- readonly activity: 'pulse';
147
- readonly 'circle-help': 'question';
148
- readonly 'message-square': 'chat-centered';
149
- };
150
- type PhosphorName = keyof typeof PH;
151
- /** A built-in icon: a Phosphor name, or a Lucide name that maps to one. */
152
- type IconName = PhosphorName | keyof typeof PH_ALIAS;
153
- /** Path data for a custom 24 x 24 stroke icon ('M4 12h16'), or SVG markup on a 256 x 256 viewBox. */
154
- type CustomIcon = `M${string}` | `m${string}` | `<${string}`;
155
- /** What an `icon` prop takes: a built-in name (checked by TypeScript) or a custom icon. */
156
- type IconSource = IconName | CustomIcon;
157
- interface IconProps {
158
- /** Built-in Phosphor name, e.g. 'house', 'trash' (Lucide names work as aliases). */
159
- name?: IconName;
160
- /** A custom icon when it is not built in: 24 px path data, or SVG markup. */
161
- d?: CustomIcon;
162
- /** Default 20. */
163
- size?: number;
164
- /** Stroke width of a custom path icon. Default 2. */
165
- strokeWidth?: number;
166
- /** The Fill version, for a selected item. */
167
- filled?: boolean;
168
- className?: string;
169
- }
170
- /** Phosphor icon, 20 px, inherits the text color. Decorative: label the control that holds it. */
171
- export declare function Icon({ name, d, size, strokeWidth, filled, className }: IconProps): import("react").JSX.Element;
172
- /** Markup of every built-in icon by name, aliases included. */
173
- export declare const icons: Readonly<Record<IconName, string>>;
174
- interface NavItem {
175
- id: string;
176
- label: string;
177
- /** Top-level items have an icon; the selected one is filled. */
178
- icon?: IconSource;
179
- /** Second level, shown under the item; it opens and closes. */
180
- children?: NavItem[];
181
- }
182
- interface NavSection {
183
- items: NavItem[];
184
- }
185
- /** The product at the top of the sidebar. */
186
- interface NavBrand {
187
- /** Logo or colour block, at most 24 px: stays where it is, collapsed and open. Default: the first character of
188
- * `name` in an accent square. */
189
- mark?: React.ReactNode;
190
- /** The product name: shown beside the mark when the sidebar is open, the link's name when collapsed. */
191
- name: string;
192
- /** Usually the home page. */
193
- href?: string;
194
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
195
- }
196
- interface SideNavProps {
197
- /** Groups separated by a divider. */
198
- sections: NavSection[];
199
- /** Id of the current page. */
200
- value: string;
201
- onChange?: (id: string) => void;
202
- /** 72 px with icons only, labels as tooltips. */
203
- collapsed?: boolean;
204
- /** Adds the collapse button at the bottom left. */
205
- onToggle?: () => void;
206
- /** Adds the pin button at the bottom left (AppShell): pinned, the sidebar stays; not pinned, it hides to icons. */
207
- onPin?: () => void;
208
- /** Whether the sidebar is pinned: the pin button is filled and says 「取消釘選」. */
209
- pinned?: boolean;
210
- /** The product at the top. Prefer { mark, name, href }: collapsed (72 px) it shows only the mark, still a link
211
- * named by `name`; open, the mark with the name fading in beside it. Text alone gets its first character in an
212
- * accent square as the mark. Any other element is hidden while collapsed. */
213
- brand?: React.ReactNode | NavBrand;
214
- /** Default 「主要導覽」. */
215
- label?: string;
216
- className?: string;
217
- }
218
- /** The 240 px dashboard sidebar (72 px collapsed). The selection bar moves like a droplet. */
219
- export declare function SideNav({ sections, value, onChange, collapsed, onToggle, onPin, pinned, brand, label, className }: SideNavProps): React.JSX.Element;
220
- interface BreadcrumbItem {
221
- label: string;
222
- href?: string;
223
- }
224
- interface BreadcrumbProps {
225
- /** From the top level down; the last one is the current page. */
226
- items: BreadcrumbItem[];
227
- className?: string;
228
- }
229
- /** Where the page sits: links to each level, the current page last and not a link. */
230
- export declare function Breadcrumb({ items, className }: BreadcrumbProps): import("react").JSX.Element;
231
- /** Moves keyboard and screen-reader focus to the page's content: its first heading inside main (or the top bar's title),
232
- * else main itself. Call it after the app changes page, e.g. when a CommandPalette result opens another page. The
233
- * heading gets no focus ring: a 3 px accent bar on its left after a key press, nothing after a mouse or touch. */
234
- export declare function focusMain(): void;
235
- interface AppShellProps {
236
- /** Sidebar groups. On phones, top-level items with an icon become bottom tabs; pages they cannot reach go under 「更多」. */
237
- nav: NavSection[];
238
- /** Id of the current page. */
239
- value: string;
240
- onNavigate: (id: string) => void;
241
- /** The product at the top of the sidebar: { mark, name, href } (see SideNav's NavBrand). Collapsed it shows the mark
242
- * alone, a link named by `name`; open or pinned, the name fades in beside it. Plain text gets its first character as
243
- * the mark. */
244
- brand?: React.ReactNode | NavBrand;
245
- /** The page title, shown once in the top bar. Do not repeat it as a heading in the page. */
246
- title?: string;
247
- breadcrumb?: BreadcrumbItem[];
248
- /** Opens search (CommandPalette). */
249
- onSearch?: () => void;
250
- /** Right side of the top bar: NotificationBell, ProjectSwitcher, the account menu. */
251
- actions?: React.ReactNode;
252
- /** The page: Cards and sections, 32 px apart. */
253
- children: React.ReactNode;
254
- /** Labels under the phone tab bar's icons (MobileTabBar labels). Default true. */
255
- tabLabels?: boolean;
256
- /** Desktop: whether the sidebar starts pinned (240 px, or 72 px collapsed, beside the content) until the reader
257
- * pins or unpins it; their choice is kept in the browser. Default false: a 72 px strip of icons that opens to
258
- * 240 px over the content while the pointer or the keyboard focus is on it. */
259
- defaultPinned?: boolean;
260
- className?: string;
261
- }
262
- /** The dashboard frame: sidebar (240 px, 72 px collapsed) above 1024 px, a drawer from the top bar's menu button from
263
- * 600 to 1024 px, and bottom tabs on phones.
264
- * The top bar hides while scrolling down and returns when scrolling up. */
265
- export declare function AppShell({ nav, value, onNavigate, brand, title, breadcrumb, onSearch, actions, children, tabLabels, defaultPinned, className }: AppShellProps): React.JSX.Element;
266
- interface GridProps {
267
- /** Columns from 1280 px. 960–1279 px: 4 becomes 2, 6 becomes 3, 1, 2 and 3 stay. 600–959 px: 2 (1 stays 1).
268
- * Under 600 px: 1. Default 3. */
269
- columns?: 1 | 2 | 3 | 4 | 6;
270
- children: React.ReactNode;
271
- className?: string;
272
- }
273
- /** Equal columns for Cards and KpiCards, 24 px apart. Use it instead of writing your own CSS grid. */
274
- export declare function Grid({ columns, children, className }: GridProps): React.JSX.Element;
275
- interface PageProps {
276
- children: React.ReactNode;
277
- className?: string;
278
- }
279
- /** The content of a page: sections and Grids stacked 32 px apart. */
280
- export declare function Page({ children, className }: PageProps): React.JSX.Element;
281
- interface AccentPickerProps {
282
- /** Controlled #rrggbb. Without it, the picker reads and sets the stored accent itself. */
283
- value?: string;
284
- /** Without it, picking applies the color with setAccent. */
285
- onChange?: (hex: string) => void;
286
- /** Default 「強調色」. */
287
- label?: string;
288
- className?: string;
289
- }
290
- /** 8 swatches plus a hex field for any color. */
291
- export declare function AccentPicker({ value, onChange, label, className }: AccentPickerProps): React.JSX.Element;
292
- interface ButtonBase extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
293
- /** A verb: 儲存, 刪除, 匯出. No 「確定」or 「好」. */
294
- children: React.ReactNode;
295
- /** Shows a spinner and disables the button; pair it with a progressive label such as 儲存中. */
296
- loading?: boolean;
297
- /** Leading icon: a built-in name such as 'plus', or custom path data. */
298
- icon?: IconSource;
299
- ref?: React.Ref<HTMLButtonElement>;
300
- }
301
- /** What the confirm dialog of a danger button says. */
302
- interface DangerConfirm {
303
- /** Names the object: 「刪除 api-gateway?」. */
304
- title: string;
305
- /** What is lost and whether it can be undone. */
306
- body?: React.ReactNode;
307
- /** The danger button's label in the dialog. Default: the button's own label. */
308
- confirmLabel?: string;
309
- }
310
- type ButtonProps = (ButtonBase & {
311
- /** primary: the one main action of a section (solid). secondary (default): everything else (outline). quiet:
312
- * low-emphasis and toolbar actions, text only with no border, a gray background on hover. */
313
- variant?: 'primary' | 'secondary' | 'quiet';
314
- }) | (ButtonBase & {
315
- /** Destructive. Must be confirmed: pass `confirm`, or `confirmed` when this button is itself inside the confirm Dialog. */
316
- variant: 'danger';
317
- /** Opens a Dialog first; onClick runs only after the person confirms. */
318
- confirm: DangerConfirm;
319
- confirmed?: never;
320
- }) | (ButtonBase & {
321
- variant: 'danger';
322
- /** This button is the confirming button of a Dialog (or DangerZone), so it runs at once. */
323
- confirmed: true;
324
- confirm?: never;
325
- });
326
- /** Buttons. Labels are verbs; one primary per section; danger actions are always confirmed. */
327
- export declare function Button(props: ButtonProps): React.JSX.Element;
328
- interface ActionBase {
329
- /** A verb. */
330
- label: string;
331
- onClick?: () => void;
332
- icon?: IconSource;
333
- disabled?: boolean;
334
- }
335
- type ActionBarAction = (ActionBase & {
336
- /** The one primary action. Default: the first action. */
337
- primary?: boolean;
338
- danger?: false;
339
- }) | (ActionBase & {
340
- /** Red in the 「更多」 menu, confirmed first. */
341
- danger: true;
342
- confirm: DangerConfirm;
343
- primary?: false;
344
- });
345
- interface ActionBarProps {
346
- actions: ActionBarAction[];
347
- className?: string;
348
- }
349
- /** A card's actions in a row. Under 600 px the primary one fills the width and the rest go into 「更多」. */
350
- export declare function ActionBar({ actions, className }: ActionBarProps): React.JSX.Element;
351
- type AlertTone = 'info' | 'success' | 'warning' | 'danger';
352
- interface AlertProps {
353
- /** Default 'info'. danger is announced at once (role alert). */
354
- tone?: AlertTone;
355
- title?: string;
356
- /** The cause and the fix, at most 2 short sentences. */
357
- children?: React.ReactNode;
358
- /** A verb, such as 重試. */
359
- actionLabel?: string;
360
- onAction?: () => void;
361
- /** Adds × for info and success; warning and danger stay until the problem is solved. */
362
- onDismiss?: () => void;
363
- className?: string;
364
- }
365
- /** A message inside the page with a colored bar and icon. */
366
- export declare function Alert({ tone, title, children, actionLabel, onAction, onDismiss, className }: AlertProps): React.JSX.Element;
367
- type BadgeStatus = 'draft' | 'doing' | 'review' | 'done' | 'fail';
368
- interface BadgeProps {
369
- status: BadgeStatus;
370
- /** 'dot' on cards: a mark and colored text, no chip. Default 'chip'. */
371
- variant?: 'chip' | 'dot';
372
- /** Default: the status name (草稿, 進行中, 審核中, 完成, 失敗). */
373
- children?: React.ReactNode;
374
- className?: string;
375
- }
376
- /** Status of an item. The mark's shape carries the status too, so it never depends on color alone. */
377
- export declare function Badge({ status, variant, children, className }: BadgeProps): React.JSX.Element;
378
- interface BarDatum {
379
- label: string;
380
- /** Shorter x-axis label when the full one would crowd. */
381
- short?: string;
382
- value: number;
383
- }
384
- interface BarChartProps {
385
- data: BarDatum[];
386
- /** Describes the chart for screen readers. */
387
- label: string;
388
- unit?: string;
389
- /** Decimals of the values in the tooltip. Default 0. */
390
- decimals?: number;
391
- max?: number;
392
- className?: string;
393
- }
394
- /** Compares a few categories: rounded bars that grow in, a tooltip on hover. */
395
- export declare function BarChart({ data, label, unit, decimals, max, className }: BarChartProps): React.JSX.Element;
396
- interface DayState {
397
- selected?: boolean;
398
- inRange?: boolean;
399
- start?: boolean;
400
- end?: boolean;
401
- disabled?: boolean;
402
- }
403
- interface CalendarProps {
404
- /** The month shown first. Default: this month. */
405
- focus?: Date | null;
406
- onPick?: (d: Date) => void;
407
- onHover?: (d: Date | null) => void;
408
- /** How each day looks: selected, inside a range, disabled. */
409
- dayState?: (d: Date) => DayState | undefined;
410
- }
411
- /** A month grid: selected days are rounded squares, today has a dot under the number. */
412
- export declare function Calendar({ focus, onPick, onHover, dayState }: CalendarProps): React.JSX.Element;
413
- interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
414
- /** Heading at the top left. */
415
- title?: React.ReactNode;
416
- /** Buttons at the top right. */
417
- actions?: React.ReactNode;
418
- /** false: no inner padding, for a table or a tree that fills the card. */
419
- padding?: boolean;
420
- /** Element to render. Default 'section'. */
421
- as?: 'section' | 'div' | 'article' | 'aside' | 'form';
422
- children?: React.ReactNode;
423
- }
424
- /** The one container with a shadow. Never put a Card inside a Card: split the content into sections with headings instead. */
425
- export declare function Card({ as: Tag, title, actions, padding, className, children, ...native }: CardProps): React.JSX.Element;
426
- interface CheckboxProps {
427
- /** 'mixed': some of a group are checked (shows a dash). */
428
- checked?: boolean | 'mixed';
429
- /** Receives the new state; from 'mixed' it goes to true. */
430
- onChange?: (checked: boolean) => void;
431
- /** Text to the right of the box. Without it, pass aria-label. */
432
- label?: React.ReactNode;
433
- 'aria-label'?: string;
434
- disabled?: boolean;
435
- className?: string;
436
- }
437
- /** A check box with a drawn check mark. The whole row is the touch target. */
438
- export declare function Checkbox({ checked, onChange, label, disabled, className, ...aria }: CheckboxProps): React.JSX.Element;
439
- interface InlineCodeBase {
440
- children?: React.ReactNode;
441
- className?: string;
442
- }
443
- type Target = {
444
- href: string;
445
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
446
- } | {
447
- href?: undefined;
448
- onClick: (e: React.MouseEvent<HTMLElement>) => void;
449
- };
450
- type InlineCodeProps = InlineCodeBase & ({
451
- /** 'chip' (default): monospace on a light gray chip; with href or onClick an underlined accent link. */
452
- look?: 'chip';
453
- /** Makes it a link. */
454
- href?: string;
455
- onClick?: (e: React.MouseEvent<HTMLElement>) => void;
456
- } | ({
457
- /** 'name': a function, class or variable that opens its definition. Accent monospace without a chip, underlined
458
- * on hover and keyboard focus. 'location': a file and line (src/app.c:86), gray and one step smaller, accent
459
- * and underlined on hover and focus. Both need href or onClick: text that points nowhere keeps the chip. */
460
- look: 'name' | 'location';
461
- } & Target));
462
- /** Code inside a sentence: monospace on a light gray chip. A span that points somewhere is a link; `look` turns a
463
- * link into a name or a location. */
464
- export declare function InlineCode({ children, href, onClick, className, look }: InlineCodeProps): React.JSX.Element;
465
- /** Returns the link of a reference such as src/app.c:86, or undefined when it has no target. */
466
- type RefHref = (ref: string) => string | undefined | null;
467
- /** Called on a plain click on a reference; the default navigation is prevented. */
468
- type OnRef = (ref: string, e: React.MouseEvent<HTMLElement>) => void;
469
- export declare const isCodeRef: (span: string) => boolean;
470
- interface CodeTextProps {
471
- /** Text with `backtick` spans, as written in Markdown. */
472
- text: string;
473
- /** Spans that look like file.c:86 become links; return undefined when the reference has no target. */
474
- refHref?: RefHref;
475
- onRef?: OnRef;
476
- /** Which spans are references. Default: a file name with a line number. */
477
- isRef?: (span: string) => boolean;
478
- as?: 'span' | 'p' | 'div' | 'li';
479
- className?: string;
480
- }
481
- /** Text with `backtick` spans: renders them as InlineCode, never as raw backticks. */
482
- export declare function CodeText({ text, refHref, onRef, isRef, as: Tag, className }: CodeTextProps): React.JSX.Element;
483
- /** A word that gets an explanation wherever it appears (CodeView and Markdown `terms`). */
484
- interface TermDef {
485
- /** The word as written, matched whole and case-sensitive: `cookie` does not match `cookies` or `Cookie`. */
486
- term: string;
487
- /** Heading of the card. Default: the word. */
488
- title?: string;
489
- /** The explanation, at most 2 short sentences; `backticks` are code. */
490
- text: string;
491
- /** One link-style action at the bottom of the card, e.g. 「看它出現的地方」. */
492
- action?: {
493
- label: string;
494
- onClick: () => void;
495
- };
496
- }
497
- /** `first` (default): only the first time each word appears in a block (a paragraph, list item or table cell; in
498
- * CodeView, the file). `all`: every time. */
499
- type TermsMark = 'first' | 'all';
500
- type TokenClass = '' | 'is-keyword' | 'is-constant' | 'is-comment' | 'is-string';
501
- type Token = [TokenClass, string];
502
- /** Splits each line into tokens. Block comments and strings may span lines. */
503
- type Tokenizer = (lines: string[], lang: string) => Token[][];
504
- type CodeLanguage = 'c' | 'js' | 'py' | 'sh' | 'plain';
505
- /** A name in the code that is a link, e.g. a call to a function defined elsewhere. */
506
- interface CodeLink {
507
- /** Line number, counted from `start` like `target`. */
508
- line: number;
509
- /** The name exactly as it is in the code, e.g. `runtime.deploy`: the whole dotted name, never only its last part. */
510
- text: string;
511
- /** Column where `text` starts, from 1, in characters (Unicode code points). Without it, the first whole `text` on the
512
- * line. Convert byte or UTF-16 offsets before passing them. */
513
- col?: number;
514
- /** Where the link goes. Ctrl or ⌘ + click (or Enter) follows it when there is no `onLink`; Shift + click and the
515
- * middle button open it in a new tab or window. */
516
- href?: string;
517
- /** Read by screen readers instead of the name, and the native tooltip when there is no `preview`, e.g.
518
- * 「runtime.deploy,定義在 harness/runtime.py:591」. */
519
- label?: string;
520
- }
521
- interface CodeViewProps<L extends CodeLink = CodeLink> {
522
- /** The source text. */
523
- code: string;
524
- /** Number of the first line. Default 1. */
525
- start?: number;
526
- /** A line or [from, to] to mark. On phones only these lines and `context` lines either side show at first. */
527
- target?: number | [number, number];
528
- /** Lines shown either side of the target on phones. Default 2. */
529
- context?: number;
530
- /** Path in the header; its extension picks the language. */
531
- file?: string;
532
- fileHref?: string;
533
- onFile?: (e: React.MouseEvent<HTMLElement>) => void;
534
- /** Header text when there is no file. */
535
- title?: string;
536
- /** 'c' | 'js' | 'py' | 'sh' | 'plain', or any language your tokenizer knows. Default: from the file extension. */
537
- language?: string;
538
- /** The language, as plain muted text at the right of the header (C is 「C 語言」); false hides it. */
539
- languageLabel?: string | false;
540
- /** false: no syntax colors. */
541
- highlight?: boolean;
542
- /** Replaces the built-in highlighter, e.g. one built on Shiki that returns the same token classes. */
543
- tokenizer?: Tokenizer;
544
- /** Paths in comments and strings (docs/design/ring.md, src/app.c:86) become links: the link of a path, or undefined
545
- * for none. Same as CodeText's refHref. */
546
- refHref?: RefHref;
547
- /** A plain click on a path in the code (the default navigation is prevented); with refHref, Ctrl, ⌘ or Shift still
548
- * opens the link. */
549
- onRef?: OnRef;
550
- /** Names in the code that are links. Dotted underline; Ctrl or ⌘ + click opens one (a plain click only selects
551
- * text; on touch screens a tap opens it). With links the code is one Tab stop: ↑ ↓ move by line, ← → between
552
- * links, Enter opens, Esc goes back to the line. A link that does not match the code is left out, with a
553
- * warning in development. */
554
- links?: readonly L[];
555
- /** Opening a link (Ctrl or ⌘ + click, a tap, or Enter), with the same object you passed in `links`. The default
556
- * navigation is prevented. */
557
- onLink?: (link: L, e: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>) => void;
558
- /** A small card under a link after the pointer or the keyboard focus rests on it for 500 ms, e.g. the name, where it
559
- * is defined and the first line of its doc comment. */
560
- preview?: (link: L) => React.ReactNode;
561
- /** Words in comments and strings that get an explanation: a dashed underline, and the card after the pointer rests
562
- * on the word for 500 ms, or on Enter. Whole words, case-sensitive; names in the code are never marked, and a name
563
- * link or a path wins at the same spot. ← → stop on them as on links. */
564
- terms?: readonly TermDef[];
565
- /** 'first' (default): each word only where it first appears in the file. 'all': everywhere. */
566
- termsMark?: TermsMark;
567
- /** Scrolls inside the box and keeps the target in view, e.g. '420px'. */
568
- maxHeight?: string;
569
- /** Where sections start, e.g. each function: [ and ] jump to the previous and next one (CB), and the section's
570
- * name is read out with its line. Lines count from start, like target. */
571
- sections?: {
572
- line: number;
573
- label: string;
574
- }[];
575
- /** false: no line numbers, for short snippets nobody refers to by line (Markdown code blocks). Screen readers still
576
- * hear 「第 n 行」. Default true. */
577
- lineNumbers?: boolean;
578
- /** true (default): the header row (file or title, language, buttons). 'float': no row; the language and the
579
- * buttons float at the top right while the pointer is over the code or focus is in it (always on touch screens),
580
- * for a page that already shows the file, such as a breadcrumb above. false: nothing. `file` still picks the
581
- * language either way. */
582
- header?: boolean | 'float';
583
- /** A small copy icon at the right of the header: copies the whole code and turns into a check for 2 s. Shows the
584
- * header even without file or title. Default false. */
585
- copy?: boolean;
586
- /** Called after copying, with the text. */
587
- onCopy?: (text: string) => void;
588
- /** Copying failed (the browser does not allow the clipboard): say so, for example in a Toast. */
589
- onCopyError?: () => void;
590
- /** The reader clicked a line, or moved to one with ↑ ↓ (also Home, End, PageUp, PageDown, [ ]): `how` says which.
591
- * Dragging to select text is not a move and does not call it. Given this, ↑ ↓ move by line even without links. */
592
- onLine?: (line: number, how: 'click' | 'key') => void;
593
- /** Marks a line, or a range of lines (`{ from, to }`, both included), for a moment, apart from `target` (both can
594
- * show), e.g. while the pointer rests on an item that points at it. Scrolled with the least movement so the whole
595
- * range is in view; a range taller than the view puts its first line at the top. Focus and selected text stay.
596
- * null or undefined: none. */
597
- peek?: number | {
598
- from: number;
599
- to: number;
600
- } | null;
601
- className?: string;
602
- /** focusTarget() moves keyboard and screen-reader focus to the target line. */
603
- ref?: React.Ref<CodeViewHandle>;
604
- }
605
- interface CodeViewHandle {
606
- /** Focuses the first target line (scrolled into view); nothing happens without a target, or while the reader has
607
- * text selected in the code (the selection stays). */
608
- focusTarget: () => void;
609
- }
610
- /** Source with line numbers and an optional target line: soft accent background, long lines wrap, light syntax colors. */
611
- export declare function CodeView<L extends CodeLink = CodeLink>({ code, start, target, context, file, fileHref, onFile, title, language, languageLabel, highlight, tokenizer, refHref, onRef, links, onLink, preview, terms, termsMark, maxHeight, sections, copy, header, lineNumbers, onCopy, onCopyError, onLine, peek, className, ref }: CodeViewProps<L>): React.JSX.Element;
612
- interface PaletteItem {
613
- id?: string | number;
614
- label: string;
615
- /** Under the label; `backticks` are code. */
616
- detail?: string;
617
- /** What it is: 頁面, 設定, 指令, 檔案, or your own kinds (with `kinds`). Picks the icon. */
618
- kind?: string;
619
- /** Overrides the kind's icon. */
620
- icon?: IconSource;
621
- /** The label is code: Geist Mono. */
622
- code?: boolean;
623
- /** More words that find it. */
624
- keywords?: string[];
625
- }
626
- interface CommandPaletteProps<T extends PaletteItem = PaletteItem> {
627
- open: boolean;
628
- onOpenChange: (open: boolean) => void;
629
- items: T[];
630
- onSelect?: (item: T) => void;
631
- /** Default 「搜尋」. */
632
- placeholder?: string;
633
- /** Shown before anything is typed. */
634
- recent?: T[];
635
- /** Default 「最近開啟」. */
636
- recentLabel?: string;
637
- /** Shown with nothing typed and no recent items. Default 「輸入名稱開始搜尋」. */
638
- emptyText?: string;
639
- /** Shown and read out when the typed text finds nothing, e.g. what else to try. `{q}` is the typed text; a function
640
- * gets it. Default 「找不到符合「{q}」的結果」. Not an item, so it is never counted as a result. */
641
- noResultsText?: string | ((query: string) => string);
642
- /** Icon for each of your own kinds: { 函式: 'brackets-curly' }. */
643
- kinds?: Record<string, IconSource>;
644
- /** false: items are already filtered (server search with onQueryChange). */
645
- filter?: boolean;
646
- onQueryChange?: (query: string) => void;
647
- /** Shows 「搜尋中」 when there are no items yet. */
648
- loading?: boolean;
649
- /** How many matched before you cut the list down to items (RA): the line under the results then says how many
650
- * more there are, e.g. 「顯示 30 筆,另有 17 筆,請輸入更長的字」. Without it the line says 「共 30 筆」. */
651
- total?: number;
652
- /** Most results shown. Default 50. */
653
- limit?: number;
654
- /** Ctrl K / ⌘K toggles it. Default true. */
655
- hotkey?: boolean;
656
- defaultQuery?: string;
657
- /** Default 「搜尋」. */
658
- label?: string;
659
- }
660
- /** One search for everything, opened with Ctrl K (⌘K). A panel in the middle of the screen; results sorted by relevance. */
661
- export declare function CommandPalette<T extends PaletteItem = PaletteItem>(props: CommandPaletteProps<T>): React.JSX.Element;
662
- interface DangerZoneProps {
663
- /** Default 「危險操作」. */
664
- title?: string;
665
- /** What the action destroys. */
666
- description: string;
667
- /** Default 「刪除」. */
668
- actionLabel?: string;
669
- /** Runs after the person confirms. */
670
- onAction: () => void;
671
- /** The confirm dialog: name the object in the title. */
672
- confirm: DangerConfirm;
673
- className?: string;
674
- }
675
- /** A red-bordered block at the bottom of a settings page for delete-type actions; the button asks to confirm. */
676
- export declare function DangerZone({ title, description, actionLabel, onAction, confirm, className }: DangerZoneProps): import("react").JSX.Element;
677
- /** A row: any object. Column keys are checked against it. */
678
- type Row = object;
679
- /** The string keys of a row type. */
680
- type RowKey<R extends Row> = Extract<keyof R, string>;
681
- interface ColumnBase<R extends Row> {
682
- /** Header text; never wraps. */
683
- label: string;
684
- /** Numbers: right-aligned with tabular figures. */
685
- numeric?: boolean;
686
- /** After each value: '%', 'ms', '個'. Write it here, not in the label. */
687
- unit?: string;
688
- sortable?: boolean;
689
- /** What to sort by when it is not the field itself. */
690
- sortValue?: (row: R) => number | string;
691
- /** Least width (px), for any column. It does not change which column takes the room left: the first text column
692
- * still does, with or without a width. */
693
- width?: number;
694
- /** Takes a share of the room left (like fr). Default: the first text column and long columns take it (1); numbers,
695
- * units, dates, durations, status Badges and other short text hug their content (0). */
696
- grow?: number;
697
- /** money: NT$ 1,280. date: 2026/11/04(三). relative: 「2 小時前」 within a week, the full date on hover. percent:
698
- * 1 decimal, no % sign: add unit: '%'. duration: seconds as 46:42 or 1:54:49, right-aligned, sorted by the number. */
699
- format?: 'money' | 'date' | 'datetime' | 'relative' | 'percent' | 'duration';
700
- currency?: string;
701
- decimals?: number;
702
- /** A second line under the cell's text: smaller, muted, one line cut with …. Search finds its text; phone cards show
703
- * it. E.g. the reason an import failed, or 「匯入中 42%」 for a running one. Rows grow only when a column has it. */
704
- secondary?: (row: R) => React.ReactNode;
705
- /** The text search matches for this column. */
706
- searchText?: (row: R) => string;
707
- /** Place on phone cards: title row left, title row right, or hidden. Default: the first column is the title. */
708
- mobile?: 'title' | 'status' | 'hide';
709
- /** Long text: 2 lines with 「顯示全部」 on phone cards, one line with an ellipsis on desktop. */
710
- long?: boolean;
711
- /** The whole text behind a short cell (a file name standing for its full path): shown in a Tooltip on hover or
712
- * keyboard focus, read by screen readers as the cell's description, and listed in the row's details. */
713
- fullText?: (row: R) => string;
714
- /** Hidden at first; still listed in the 「欄位」 menu, where people can turn it on. Back to hidden on a new
715
- * `resetKey`. Not for the first column, which is always shown. Default false. */
716
- hidden?: boolean;
717
- }
718
- /** A column shows a field of the row (key is checked against the row type), or computes its cell with render (any key). */
719
- type DataTableColumn<R extends Row = Record<string, unknown>> = ColumnBase<R> & ({
720
- /** The field shown in this column. */
721
- key: RowKey<R>;
722
- /** Your own cell content (a Badge, a link). Give searchText too, so search finds it. */
723
- render?: (row: R) => React.ReactNode;
724
- } | {
725
- /** A column that is not a field: any unique key, with render (and searchText / sortValue for search and sort). */
726
- key: string;
727
- render: (row: R) => React.ReactNode;
728
- });
729
- interface FilterOption {
730
- value: string;
731
- label: string;
732
- }
733
- interface DataTableFilter<R extends Row = Record<string, unknown>> {
734
- key: RowKey<R>;
735
- label: string;
736
- /** list: options with counts (default). range: min and max. */
737
- type?: 'list' | 'range';
738
- /** Default: every distinct value of the field. */
739
- options?: FilterOption[];
740
- /** More than one option at a time. Default true. */
741
- multiple?: boolean;
742
- /** Range inputs are multiplied by this before comparing, e.g. 1024 for MB typed against bytes. */
743
- scale?: number;
744
- /** Under the range inputs, e.g. 「單位:MB」. */
745
- unitLabel?: string;
746
- /** Your own test for a row. */
747
- match?: (row: R, value: FilterValue) => boolean;
748
- }
749
- type RangeValue = {
750
- min: string;
751
- max: string;
752
- };
753
- type FilterValue = string[] | RangeValue;
754
- interface DataTableView<R extends Row = Record<string, unknown>> {
755
- id: string;
756
- label: string;
757
- filter?: (row: R) => boolean;
758
- }
759
- type Total<R extends Row> = 'sum' | 'avg' | ((rows: R[]) => React.ReactNode);
760
- interface DataTableProps<R extends Row = Record<string, unknown>> {
761
- columns: DataTableColumn<R>[];
762
- /** Give each row an `id` so selection and animations follow the row, not its position. */
763
- rows: R[];
764
- /** Title above the table, also its accessible name. */
765
- caption?: string;
766
- /** Segmented summary above the table: 「全部」 plus one tab per status with its count; picking one filters the rows.
767
- * `unit` follows every count; default 「筆」. A function gets the count, for plurals in other languages. */
768
- summary?: {
769
- key: RowKey<R>;
770
- items: {
771
- value: string;
772
- label: string;
773
- }[];
774
- label?: string;
775
- unit?: CountUnit;
776
- };
777
- /** aria-label when there is no caption. */
778
- label?: string;
779
- /** Rows per page. Default 10. */
780
- pageSize?: number;
781
- /** Change it when the rows become a different data set: search, filters, sort, page, selection and summary reset. */
782
- resetKey?: string | number;
783
- /** Checkboxes appear when a row is hovered, and on every row once any row is selected. */
784
- selectable?: boolean;
785
- /** Buttons for the bar that replaces the header while rows are selected. */
786
- bulkActions?: (ids: string[], clear: () => void) => React.ReactNode;
787
- /** IconButtons at the row's right end, shown when the row is hovered. */
788
- rowActions?: (row: R) => React.ReactNode;
789
- /** px. Default 88. */
790
- actionsWidth?: number;
791
- /** Search box (default on; false hides it). Searches every column unless keys is given. */
792
- search?: false | {
793
- placeholder?: string;
794
- keys?: RowKey<R>[];
795
- };
796
- /** Filters in the 「篩選」 popover. */
797
- filters?: DataTableFilter<R>[];
798
- /** @deprecated use filters. */
799
- filter?: {
800
- key: RowKey<R>;
801
- label?: string;
802
- options: FilterOption[];
803
- };
804
- /** 「/」 focuses this table's search field when focus is not in a text field (no Ctrl, Alt or ⌘). Only the first
805
- * table on the page with a search field takes it; it shows a small 「/」 in the empty field on desktop. Default true. */
806
- searchShortcut?: boolean;
807
- /** Each row's page: the first cell's text becomes a link to it, and a click anywhere else on the row (not on its own
808
- * links, buttons or checkbox, nor a click that ends a text selection) opens it. Like a link, Ctrl, ⌘ or Shift + click
809
- * and a middle click open it in a new tab. */
810
- rowHref?: (row: R) => string;
811
- /** With rowHref: called instead of following the link on a plain click (on the row or its first cell's link), so an
812
- * app router can push the route. Ctrl, ⌘, Shift and middle clicks still open the href in a new tab. */
813
- onRowOpen?: (row: R, event: React.MouseEvent) => void;
814
- /** Write search and filters into the URL. Default true. */
815
- urlSync?: boolean;
816
- /** Prefix of the URL parameters when a page has several tables. */
817
- urlKey?: string;
818
- /** The sort before anyone changes it, first level first, e.g. [{ key: 'prog' }, { key: 'dt', dir: 'desc' }]. A level
819
- * without dir starts like a click on its heading: numbers from the largest, text from A. Default: the rows' order. */
820
- defaultSort?: readonly {
821
- key: RowKey<R>;
822
- dir?: 'asc' | 'desc';
823
- }[];
824
- /** How many columns can sort at once (the 「排序」 panel, Shift + click on a heading). Default: no limit, every sortable
825
- * column. */
826
- maxSort?: number;
827
- /** Saved views shown as tabs above the table. */
828
- views?: DataTableView<R>[];
829
- /** Totals row: 'sum', 'avg' or a function per column key. */
830
- totals?: Partial<Record<string, Total<R>>>;
831
- /** Keep the first column visible while scrolling sideways. */
832
- stickyFirst?: boolean;
833
- /** 「欄位」 in the 「⋯」 menu, to hide columns. Default true. */
834
- columnMenu?: boolean;
835
- /** Remembers the column widths readers drag (the borders in the header) and the columns they hide or show, in
836
- * localStorage under this name (ui-dt-width:<widthKey>, ui-dt-cols:<widthKey>). Without it they go back to the
837
- * defaults when the page reloads. resetKey does not clear them: they are the reader's own; 「欄位」 → 「還原預設」 does. */
838
- widthKey?: string;
839
- /** 「放大表格」 in the 「⋯」 menu: the whole table, with its search, filters, sort and pages, in a dialog up to
840
- * 1200 px wide. A click on a link inside closes the dialog. Not on phones. Default true. */
841
- zoom?: boolean;
842
- /** 「複製成 Markdown」 in the 「⋯」 menu: every row the search and filters keep (all pages), in the shown columns and
843
- * order; each cell is the column's fullText, else its searchText, else its value. Default true. */
844
- copy?: boolean;
845
- /** Your own text for 「複製成 Markdown」, from the same rows (all pages, sorted). */
846
- copyText?: (rows: R[]) => string;
847
- /** Copying failed (the browser does not allow the clipboard): say so, for example in a Toast. */
848
- onCopyError?: () => void;
849
- /** Default 「沒有符合的資料」. */
850
- emptyText?: string;
851
- className?: string;
852
- }
853
- /** The table for records: sort, search, filters, page numbers, selection with a bulk bar, row actions; cards on phones. */
854
- export declare function DataTable<R extends Row = Record<string, unknown>>(p: DataTableProps<R>): React.JSX.Element;
855
- interface DatePickerProps {
856
- label?: string;
857
- value: Date | null;
858
- onChange: (d: Date | null) => void;
859
- /** Default 「可以直接輸入,例如 2026/11/14」. */
860
- hint?: string;
861
- required?: boolean;
862
- /** An error from your own check (「請選擇開始日期」): the cause and the fix. Red border, the warning icon and this line
863
- * under the field, announced when it appears. A date typed in the wrong format gets its own error. */
864
- error?: string;
865
- className?: string;
866
- }
867
- /** A date field: type YYYY/MM/DD, or pick from the calendar button's month grid. */
868
- export declare function DatePicker({ label, value, onChange, hint, required, error, className }: DatePickerProps): React.JSX.Element;
869
- type DateRange = [Date, Date];
870
- interface DateRangePickerProps {
871
- label?: string;
872
- value: [Date | null, Date | null];
873
- onChange: (range: DateRange) => void;
874
- /** Default 「選擇期間」. */
875
- placeholder?: string;
876
- className?: string;
877
- }
878
- export declare function DateRangePicker({ label, value, onChange, placeholder, className }: DateRangePickerProps): React.JSX.Element;
879
- interface DetailListItem {
880
- label: string;
881
- value: React.ReactNode;
882
- }
883
- interface DetailListProps {
884
- items: DetailListItem[];
885
- /** The label column. Default: 30 % of the width (at least 96 px). 'auto': as wide as the longest label (at most
886
- * 40 %), the same on every row, 24 px before the values; a number: that many px. Under 600 px labels go above. */
887
- labelWidth?: 'auto' | number;
888
- /** small (default): 13 px, muted. body: the value's size (16 px) and the ink color, for wide panels where a pale small
889
- * label is hard to read. Under 600 px labels stay 13 px. */
890
- labelSize?: 'small' | 'body';
891
- className?: string;
892
- }
893
- /** Labelled facts about one item: label beside the value when there is room, above it under 600 px. */
894
- export declare function DetailList({ items, labelWidth, labelSize, className }: DetailListProps): React.JSX.Element;
895
- interface DialogProps {
896
- /** Shows the dialog over a blurred backdrop, with focus trapped inside and Esc to close.
897
- * Required unless modal={false}. */
898
- open?: boolean;
899
- /** Called on Esc, a press on the backdrop, × and the cancel button. */
900
- onClose?: () => void;
901
- /** States the decision; may be a question: 「刪除 api-gateway?」. */
902
- title: string;
903
- /** What happens and whether it can be undone, at most 2 short sentences. */
904
- children?: React.ReactNode;
905
- /** The confirming button's label, a verb: 刪除, 發布. With onConfirm, the dialog draws its own buttons. */
906
- confirmLabel?: string;
907
- onConfirm?: () => void;
908
- /** Default 「取消」. */
909
- cancelLabel?: string;
910
- /** danger: the confirming button is red. */
911
- tone?: 'default' | 'danger';
912
- /** Spinner on the confirming button while the action runs. */
913
- confirmLoading?: boolean;
914
- /** Your own buttons instead of confirmLabel: secondary first, primary last. */
915
- actions?: React.ReactNode;
916
- className?: string;
917
- /** @deprecated the id is generated. */
918
- titleId?: string;
919
- /** false: draw the panel inline, as a static preview in docs. Without it, pass open. */
920
- modal?: false;
921
- }
922
- /** A centered 400 px dialog for a decision. Secondary button left, primary right. */
923
- export declare function Dialog(props: DialogProps): React.JSX.Element;
924
- interface SplitPaneProps {
925
- /** The main area, on the left. */
926
- a: React.ReactNode;
927
- /** The side panel, on the right; its width is what the divider changes. */
928
- b: React.ReactNode;
929
- /** px. The side panel's width at first and after a double-click on the divider. Default 420. */
930
- defaultB?: number;
931
- /** px. The main area never gets narrower than this. Default 360. */
932
- minA?: number;
933
- /** px. The side panel never gets narrower than this. Default 280. */
934
- minB?: number;
935
- /** Remembers the side panel's width in localStorage under this name. Without it the width lasts until the page reloads. */
936
- storageKey?: string;
937
- /** Names the divider for screen readers. Default 「調整面板寬度」. */
938
- label?: string;
939
- /** After every change, with the side panel's new width in px. */
940
- onResize?: (b: number) => void;
941
- className?: string;
942
- }
943
- /** A main area and a side panel with a divider between them that can be dragged, moved with the arrow keys and reset
944
- * with a double-click. Under 960 px (its own width) the two stack, side panel below, without the divider. */
945
- export declare function SplitPane({ a, b, defaultB, minA, minB, storageKey, label, onResize, className }: SplitPaneProps): React.JSX.Element;
946
- interface DrawerProps {
947
- open: boolean;
948
- onClose: () => void;
949
- title: string;
950
- /** Footer buttons: secondary first, primary last. Pass a function to get requestClose for your 取消 button: it
951
- * asks before discarding unsaved changes, like ✕ and Esc. */
952
- actions?: React.ReactNode | ((requestClose: () => void) => React.ReactNode);
953
- /** Unsaved changes: closing asks 「放棄未儲存的變更?」 first. */
954
- dirty?: boolean;
955
- /** px. Default 400. */
956
- width?: number;
957
- /** Which edge it slides in from. Default 'right'; 'left' for navigation opened from a menu button at the left. */
958
- side?: 'right' | 'left';
959
- confirmTitle?: string;
960
- confirmText?: string;
961
- children?: React.ReactNode;
962
- }
963
- /** A 400 px panel from the right for editing one item without leaving the page. */
964
- export declare function Drawer({ open, onClose, title, actions, dirty, width, side, confirmTitle, confirmText, children }: DrawerProps): React.JSX.Element;
965
- interface EmptyStateProps {
966
- /** What is empty, stated: 「還沒有專案」. */
967
- title: string;
968
- /** One sentence on what to do. */
969
- description?: string;
970
- /** Numbered first steps. */
971
- steps?: string[];
972
- /** Index of the current step. Default 0. */
973
- current?: number;
974
- /** The one button that starts the first step. */
975
- action?: React.ReactNode;
976
- }
977
- /** What a list or page shows when it has nothing yet: what is missing and the first step. */
978
- export declare function EmptyState({ title, description, steps, current, action }: EmptyStateProps): React.JSX.Element;
979
- interface ErrorPageProps {
980
- /** 404, 403 and 500 come with their own title and sentence. */
981
- code: number;
982
- title?: string;
983
- description?: string;
984
- /** Default: history.back(). */
985
- onBack?: () => void;
986
- onHome?: () => void;
987
- /** Default '/'. */
988
- homeHref?: string;
989
- className?: string;
990
- }
991
- /** A whole page for 404, 403 and 500: the code, a title, one sentence, then 「回上一頁」 and 「回首頁」. */
992
- export declare function ErrorPage({ code, title, description, onBack, onHome, homeHref, className }: ErrorPageProps): import("react").JSX.Element;
993
- interface UploadFile {
994
- id?: string | number;
995
- name: string;
996
- /** format.fileSize(bytes), e.g. 「1.2 MB」. */
997
- size?: string;
998
- /** 0 to 100 while uploading. */
999
- progress?: number;
1000
- status?: 'uploading' | 'done' | 'error';
1001
- /** The cause and the fix, shown in red. */
1002
- error?: string;
1003
- }
1004
- interface FileUploadProps {
1005
- label?: string;
1006
- files?: UploadFile[];
1007
- onAdd?: (files: File[]) => void;
1008
- onRemove?: (file: UploadFile) => void;
1009
- onRetry?: (file: UploadFile) => void;
1010
- /** Written inside the drop zone, e.g. 「每個最大 100 MB」. */
1011
- limitText?: string;
1012
- accept?: string;
1013
- /** Default true. */
1014
- multiple?: boolean;
1015
- className?: string;
1016
- }
1017
- /** A one-line drop zone and a list of files with progress. The upload itself is yours: pass files with progress and status. */
1018
- export declare function FileUpload({ label, files, onAdd, onRemove, onRetry, limitText, accept, multiple, className }: FileUploadProps): React.JSX.Element;
1019
- interface FormGridProps {
1020
- children?: React.ReactNode;
1021
- className?: string;
1022
- }
1023
- /** Form layout: one column, two columns from 960 px. */
1024
- export declare function FormGrid({ children, className }: FormGridProps): React.JSX.Element;
1025
- /** <defs> with the arrowheads #ui-arrow and #ui-arrow-accent; put it first inside your diagram's <svg>. */
1026
- export declare function GraphDefs(): import("react").JSX.Element;
1027
- interface GraphLegendItem {
1028
- /** edge: a confirmed line; inferred: a dashed line; declared: long-short dashes (declared by the project); external: a
1029
- * dashed box; node: a plain box; weight: thin and thick lines. */
1030
- type: 'edge' | 'inferred' | 'declared' | 'external' | 'node' | 'weight';
1031
- /** Your own words for it: 「呼叫」「推測的呼叫」「外部函式」. */
1032
- label: string;
1033
- /** Adds a Term with this explanation. */
1034
- text?: string;
1035
- }
1036
- interface GraphLegendProps {
1037
- /** Default: 確定的關係, 推測的關係, 外部項目. Pass your domain's words. */
1038
- items?: GraphLegendItem[];
1039
- className?: string;
1040
- }
1041
- /** The legend row under a diagram: what each line and box style means. */
1042
- export declare function GraphLegend({ items, className }: GraphLegendProps): import("react").JSX.Element;
1043
- /** A first-use hint on an icon button: an accent dot on the button and a dark bubble below it. */
1044
- interface IconButtonHint {
1045
- /** One short sentence: 「導覽:五個步驟介紹各頁。」. */
1046
- text: string;
1047
- /** The verb on the bubble's button. Default 「開始」. */
1048
- action?: string;
1049
- /** The bubble's button: do the thing the hint is about (start the tour). */
1050
- onAction: () => void;
1051
- /** The bubble's ×: hide the hint for good. */
1052
- onDismiss: () => void;
1053
- }
1054
- interface IconButtonProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
1055
- /** What the button does, a verb: 「刪除」「複製連結」. Becomes aria-label and the tooltip. */
1056
- label: string;
1057
- /** A built-in name such as 'trash', or custom path data. */
1058
- icon: IconSource;
1059
- /** false: no tooltip (when the label is already visible next to it). Default true. */
1060
- tooltip?: boolean;
1061
- /** The Fill version of a built-in icon, for a pressed or selected button. */
1062
- filled?: boolean;
1063
- /** 'outline' (default): 40 px with a border. 'quiet': 32 px, no border, a background only on hover; for top bars and
1064
- * tab bars where several sit in a row. On touch screens both keep a 48 px touch area. */
1065
- variant?: 'outline' | 'quiet';
1066
- /** A first-use hint: a dot on the button and a bubble below it until the user acts on it or closes it. Pass
1067
- * undefined once it was handled (useTour's tour.hint() does this). */
1068
- hint?: IconButtonHint;
1069
- ref?: React.Ref<HTMLButtonElement>;
1070
- }
1071
- /** A square icon-only button with a tooltip. */
1072
- export declare function IconButton({ label, icon, className, tooltip, filled, hint, variant, ...native }: IconButtonProps): React.JSX.Element;
1073
- /** Only http, https, mailto and relative addresses are kept; anything else (javascript:, data:) is not a link. */
1074
- export declare function safeHref(href: string): string | undefined;
1075
- interface MarkdownProps {
1076
- /** The Markdown text. */
1077
- children: string;
1078
- /** Only inline syntax (code, links, bold, italic), no paragraphs: for a one-line summary such as a README's first
1079
- * sentence. Line breaks become spaces. */
1080
- inline?: boolean;
1081
- /** small: 13 px, for notes. Default: the same 16 px as the text around it. */
1082
- size?: 'body' | 'small';
1083
- /** The heading level `#` becomes. Default 4: # is an h4 (20 px), ## an h5, ### and deeper h6 (both 16 px bold). */
1084
- topLevel?: 1 | 2 | 3 | 4 | 5 | 6;
1085
- /** Link schemes of your own, such as ['fn', 'file']: [_sync_as](fn:harness/controller.py:VirtualRouter._sync_as)
1086
- * goes to linkHref and onLink as written, which decide what it opens. javascript:, data: and vbscript: never link. */
1087
- schemes?: string[];
1088
- /** The address of a link (after the http, https, mailto or relative check); return undefined for no link. */
1089
- linkHref?: (href: string) => string | undefined | null;
1090
- /** A plain click on a link (the default navigation is prevented; Ctrl, ⌘ or Shift still open linkHref). */
1091
- onLink?: (href: string, e: React.MouseEvent<HTMLElement>) => void;
1092
- /** Inline code that is a path (harness/routing.py:108, docs/a.md) and paths in code blocks: their link. Same as
1093
- * CodeView's refHref. */
1094
- refHref?: RefHref;
1095
- /** A plain click on such a path. Same as CodeView's onRef. */
1096
- onRef?: OnRef;
1097
- /** Words that get an explanation (Term variant="inline"): matched whole and case-sensitive in plain text, not in
1098
- * inline code, link text or headings; fenced code blocks match them in comments and strings. `[cookie](term:cookie)`
1099
- * marks one explicitly, wherever it is. */
1100
- terms?: readonly TermDef[];
1101
- /** 'first' (default): each word only where it first appears in a paragraph, list item or table cell. 'all': everywhere. */
1102
- termsMark?: TermsMark;
1103
- className?: string;
1104
- }
1105
- /** Markdown from project documents and code comments, in the system's own type, code and table styles. Never runs HTML:
1106
- * tags are dropped and their text kept; links only to http, https, mailto and relative addresses. */
1107
- export declare function Markdown(p: MarkdownProps): React.JSX.Element;
1108
- interface SectionProps {
1109
- /** The heading, 20 px bold (h4 size), above the 16 px content. */
1110
- title: React.ReactNode;
1111
- /** One line of key numbers right of the title, shown open or closed: 「29 個指令、4 個 namespace、3 個沒有逾時」.
1112
- * Muted, cut with 「…」 when it does not fit. Part of the button: no links or buttons in it. */
1113
- summary?: React.ReactNode;
1114
- /** Uncontrolled: open at first. Default false. A stored state (storageKey) wins. */
1115
- defaultOpen?: boolean;
1116
- /** Controlled: open or closed; pair with onOpenChange. */
1117
- open?: boolean;
1118
- /** Called with the new state when the title is clicked, the address jumps here, or 「全部展開/全部收合」. */
1119
- onOpenChange?: (open: boolean) => void;
1120
- /** Anchor. When the address hash (or a link in the page) points at this id, the section opens and scrolls to its title. */
1121
- id?: string;
1122
- /** Closed: the content is not rendered at all. Default false: it stays in the page hidden, and the browser's find
1123
- * (Ctrl+F) opens the section when it finds text in it. Set it on very long sections. */
1124
- lazy?: boolean;
1125
- /** Remembers open or closed in localStorage under this key. If storage fails it works the same, without remembering. */
1126
- storageKey?: string;
1127
- /** Controls right of the summary, such as a copy IconButton. Outside the title button: clicking them does not open
1128
- * or close the section. */
1129
- actions?: React.ReactNode;
1130
- /** Heading level of the title. Default 3. The size stays 20 px whatever the level. */
1131
- level?: 2 | 3 | 4 | 5 | 6;
1132
- children?: React.ReactNode;
1133
- className?: string;
1134
- }
1135
- /** A part of a page that can be closed: the title and a one-line summary stay visible. A line between sections;
1136
- * the caret left of the title turns when it opens (260 ms, none with reduced motion). */
1137
- export declare function Section(p: SectionProps): React.JSX.Element;
1138
- interface SectionGroupProps {
1139
- /** Sections. One icon button above them on the right opens them all, or closes them all once all are open
1140
- * (「全部展開」「全部收合」 as its tooltip and name). */
1141
- children?: React.ReactNode;
1142
- /** More controls on the same row, left of the button. */
1143
- actions?: React.ReactNode;
1144
- /** false: no row above the sections; put <SectionGroupToggle /> where you want it, such as the card's title row next
1145
- * to its other icon buttons. It must be inside the SectionGroup. Default true. */
1146
- bar?: boolean;
1147
- className?: string;
1148
- }
1149
- /** A run of Sections with one 「全部展開/全部收合」 icon button. */
1150
- export declare function SectionGroup({ children, actions, bar, className }: SectionGroupProps): React.JSX.Element;
1151
- interface SectionGroupToggleProps {
1152
- className?: string;
1153
- }
1154
- /** GB: the 「全部展開/全部收合」 icon button of the SectionGroup around it, for a place of your own (with bar={false}).
1155
- * Opens every section while any is closed, else closes them all; its tooltip and name say which. */
1156
- export declare function SectionGroupToggle({ className }: SectionGroupToggleProps): React.JSX.Element | null;
1157
- interface KpiCardProps {
1158
- /** What is measured: 「本月營收」. */
1159
- label: string;
1160
- value: number;
1161
- /** 'money' shows NT$ 1,280; 'percent' 1 decimal without the % sign: pass unit="%" (same as DataTable). Default 'number'. */
1162
- format?: 'number' | 'money' | 'percent';
1163
- /** For money. Default: the locale's currency (TWD). */
1164
- currency?: string;
1165
- /** Abbreviate from 1 萬 (default true). The only place numbers are abbreviated. */
1166
- compact?: boolean;
1167
- /** Written after the number: 元, 人, ms, %. */
1168
- unit?: string;
1169
- decimals?: number;
1170
- /** Change versus the comparison period. */
1171
- delta?: number;
1172
- /** '%' (default) or 'pt' for percentage points. */
1173
- deltaUnit?: '%' | 'pt';
1174
- /** Whether the change is good. Default: delta > 0. Set false where up is bad (error rate, cost). */
1175
- good?: boolean;
1176
- /** Recent values for the sparkline. */
1177
- spark?: number[];
1178
- /** Default 「較上週」. */
1179
- compareLabel?: string;
1180
- /** `compact`: a 22 px number for a top bar, no sparkline; with verdict and target below. Default 'default' (31 px). */
1181
- size?: 'default' | 'compact';
1182
- /** How the figure is judged, in words: 「預測準確」(success), 「偏差變大」(warning), 「需要校正」(danger). Shown only
1183
- * when it is not success, in place of the target line and in its color; screen readers always hear it. */
1184
- verdict?: {
1185
- tone: 'success' | 'warning' | 'danger';
1186
- text: string;
1187
- };
1188
- /** One gray line under the number, e.g. 「目標 ≤ 0.5 °C(示意)」. */
1189
- target?: string;
1190
- className?: string;
1191
- }
1192
- /** One figure with its change and a sparkline. It is a card: put several in a grid, not inside another Card. */
1193
- export declare function KpiCard(props: KpiCardProps): React.JSX.Element;
1194
- interface LayerGraphNode {
1195
- id: string;
1196
- name?: string;
1197
- /** The name is code (a path, a file, a module): Geist Mono. Default: the text font, for names in words (「被追蹤的程式」). */
1198
- code?: boolean;
1199
- /** 0 is the top layer. */
1200
- layer?: number;
1201
- /** How big it is (functions, files, endpoints): drawn as the size bar. */
1202
- size?: number;
1203
- /** @deprecated use size. */
1204
- fns?: number;
1205
- /** Used by most others: not drawn as a layer; shown as a small box under the diagram with how often it is used.
1206
- * Selectable like the other boxes (same selected and onSelect): the boxes that use it show 「使用 N 次」. */
1207
- shared?: boolean;
1208
- /** Outside the repository (a traced program, a library): drawn above every layer with a dashed outline and
1209
- * 「repo 外」 (externalLabel) under the name. Not in any layer and no size bar; its lines, selection and list entry
1210
- * work like any box's. */
1211
- external?: boolean;
1212
- /** A short tag beside the name (「可修改」「受保護」): on the same line, never cut; the name is cut first. In the list
1213
- * and in what a screen reader says too. Keep it to a few characters. */
1214
- tag?: string;
1215
- /** warning: the tag in the warning colors with a lock, for a box that must not be changed. Default neutral. */
1216
- tagTone?: 'neutral' | 'warning';
1217
- }
1218
- interface LayerGraphEdge {
1219
- from: string;
1220
- to: string;
1221
- /** How often: sets the line width. */
1222
- count?: number;
1223
- /** Inferred by a rule rather than known: dashed and labelled. */
1224
- inferred?: boolean;
1225
- /** Declared by the project, e.g. in a config file, rather than seen by a compiler: long-short dashes and labelled
1226
- * like an inferred edge, but with a basis. Wins over `inferred`. */
1227
- declared?: boolean;
1228
- /** Label of an inferred edge; `backticks` and numbers are in Geist Mono. */
1229
- label?: string;
1230
- /** Names the edge for selectedEdge and onSelectEdge. Default `${from}->${to}`. */
1231
- id?: string;
1232
- }
1233
- interface LayerGraphProps {
1234
- nodes: LayerGraphNode[];
1235
- edges: LayerGraphEdge[];
1236
- selected?: string | null;
1237
- /** Selecting a box dims everything unrelated and turns its lines accent. Clears the selected edge. */
1238
- onSelect?: (id: string | null) => void;
1239
- /** The selected edge's id (controlled, like selected). */
1240
- selectedEdge?: string | null;
1241
- /** Makes edges selectable: a click on a line or its label, Enter or Space. null when it is clicked again, on a click on
1242
- * the empty diagram or on Escape. Clears the selected box. Without it, edges cannot be clicked. */
1243
- onSelectEdge?: (id: string | null) => void;
1244
- /** Labels on lines at first: 'shown' (default) always; 'hover' only while the pointer is on the line or its label, the
1245
- * line has keyboard focus, or it is selected or belongs to the selected box. The diagram keeps the room for every
1246
- * label. People switch with the tag button next to 「圖/清單」; their choice is remembered (localStorage). */
1247
- edgeLabels?: 'shown' | 'hover';
1248
- /** The control that shows or hides line labels, shown when the diagram has labelled lines. Default (true or
1249
- * 'switch'): a Switch with the text 「線上文字」, on while labels show. 'icon': the tag icon button with a fixed name
1250
- * and aria-pressed, for a tight toolbar. false: none. */
1251
- labelToggle?: boolean | 'switch' | 'icon';
1252
- /** px. Default 200. */
1253
- nodeWidth?: number;
1254
- /** Text under a box's size bar: a string with {n}, or a function of the size for words that change with the number
1255
- * (`(n) => n === 1 ? '1 function' : `${n} functions``). Default 「{n} 個項目」. */
1256
- sizeLabel?: string | ((n: number) => string);
1257
- /** Label of a selected edge's count: a string with {n}, or a function of the count (`(n) => n === 1 ? '1 call' : …`).
1258
- * Default 「{n} 次」 (English 「1 call」, 「2 calls」). */
1259
- countLabel?: string | ((n: number) => string);
1260
- /** Under the name of an external box, and after it in the list. Default 「repo 外」. */
1261
- externalLabel?: string;
1262
- /** Heading of the shared list. Default 「共用項目」. */
1263
- sharedLabel?: string;
1264
- /** A shared item's line; {a} is how many items use it, {b} the total count. Default 「{a} 個項目使用,共 {b} 次」. */
1265
- sharedMeta?: string;
1266
- /** On a box that uses the selected shared item; {n} is how often. Default 「使用 {n} 次」. */
1267
- useLabel?: string;
1268
- /** Label of inferred edges without their own. Default 「推測」. */
1269
- inferredLabel?: string;
1270
- /** Explains inferred edges in the legend (a Term). */
1271
- inferredText?: string;
1272
- /** The word for declared edges, after a label in the list. Default 「宣告」. */
1273
- declaredLabel?: string;
1274
- /** The legend entry for declared edges. Default 「專案宣告的關係」. */
1275
- declaredLegend?: string;
1276
- /** Explains declared edges in the legend (a Term), e.g. which file declares them. */
1277
- declaredText?: string;
1278
- /** false hides the legend. By default it lists only the kinds of line the diagram has. */
1279
- legend?: boolean;
1280
- legendItems?: GraphLegendItem[];
1281
- /** Default 「架構圖」. */
1282
- label?: string;
1283
- /** The 「圖/清單」 switch above the diagram; the list shows every box and line as text, also for screen readers.
1284
- * false hides the switch. */
1285
- listView?: boolean;
1286
- /** HC: a handle under the diagram to drag its height, like SplitPane's divider. Down: the layers move apart (the gaps
1287
- * between them grow), so lines and their labels have more room. Up past the drawn height: the diagram scrolls up and
1288
- * down inside a shorter frame. ↑↓ 16 px, Enter or a double-click goes back. Default false. */
1289
- resizable?: boolean;
1290
- /** Remembers the dragged height in localStorage under this name (ui-lg-height:<name>). */
1291
- heightKey?: string;
1292
- /** Controls of the page on the same row as 「圖/清單」, at its left, such as the page's own 「依元件/依檔案」 Tabs,
1293
- * so two switches do not sit on two rows. */
1294
- toolbar?: React.ReactNode;
1295
- /** Headings of the list: { nodes, edges }. Default 「項目」 and 「關係」. */
1296
- listLabels?: {
1297
- nodes?: string;
1298
- edges?: string;
1299
- };
1300
- /** Remembers the sideways scroll under this name when the diagram unmounts and comes back (another block, another
1301
- * tab). Default: the box ids. */
1302
- scrollKey?: string;
1303
- className?: string;
1304
- }
1305
- /** Architecture as layers of boxes with arrows. Line width shows how often; inferred relations are dashed and labelled;
1306
- * shared items are listed under the diagram instead of drawn. Wider than its box: the boxes narrow (down to 120 px),
1307
- * then the whole diagram scales down (to 0.75 at least); past that it scrolls sideways at full width (PM, WA). */
1308
- export declare function LayerGraph(p: LayerGraphProps): React.JSX.Element;
1309
- interface StatusSegment {
1310
- /** First point of the segment (index). */
1311
- from: number;
1312
- /** The point after the last one (index), so segments meet: { from: 0, to: 6 }, { from: 6, to: 10 }. */
1313
- to: number;
1314
- /** One of the classes' values. */
1315
- value: string;
1316
- }
1317
- interface StatusBandProps {
1318
- /** Who held each stretch of time, e.g. which control strategy was in use. */
1319
- segments: StatusSegment[];
1320
- /** The classes in color order (chart-1 to chart-4) with their legend words; at most 4. */
1321
- classes: {
1322
- value: string;
1323
- label: string;
1324
- }[];
1325
- /** What the band shows, for screen readers, e.g. 「採用的策略」. */
1326
- label: string;
1327
- /** How many points the time axis has; the band spans all of them. */
1328
- count: number;
1329
- /** One label per point (the chart's x labels), so screen readers hear 「13:00 到 14:00 AI 最佳化」. */
1330
- times?: string[];
1331
- /** The legend under the band. Default true. */
1332
- legend?: boolean;
1333
- className?: string;
1334
- }
1335
- /** A 12 px band along a time axis, one color per class (chart-1 to chart-4), e.g. which strategy was in use every
1336
- * 10 minutes; under a LineChart (its `status`) or on its own. The legend below gives the words. */
1337
- export declare function StatusBand({ segments, classes, label, count, times, legend, className }: StatusBandProps): import("react").JSX.Element;
1338
- /** The legend of a StatusBand: its label, then a swatch and the words for each class. */
1339
- export declare function StatusLegend({ classes, label }: Pick<StatusBandProps, 'classes' | 'label'>): import("react").JSX.Element;
1340
- interface LineSeries {
1341
- name: string;
1342
- /** One value per label; null where there is none (a forecast ahead of the measurements, a gap). */
1343
- values: (number | null)[];
1344
- /** A dashed line, e.g. a forecast or a baseline; the legend shows it dashed too. */
1345
- dashed?: boolean;
1346
- /** Which chart color (chart-1 to chart-4) instead of the series' place, e.g. 3 for a forecast, 4 for a baseline. */
1347
- color?: 1 | 2 | 3 | 4;
1348
- }
1349
- interface LineBand {
1350
- /** The two series (indexes in series) the band fills between, e.g. [0, 1] for actual and forecast. */
1351
- between: [number, number];
1352
- /** `diverge`: orange where the first is above the second, blue where below (diverge-pos / diverge-neg, 30%).
1353
- * `success`: success at 28%, for what was saved between actual use and a baseline. */
1354
- tone: 'diverge' | 'success';
1355
- /** Its entry in the legend, e.g. 「實際偏高/偏低」 or 「省下的電」. */
1356
- label: string;
1357
- }
1358
- interface LineThreshold {
1359
- value: number;
1360
- /** Written on the line at the right, e.g. 「上限 29 °C」. */
1361
- label: string;
1362
- /** `warning` for a level to watch, `danger` for a limit. */
1363
- tone: 'warning' | 'danger';
1364
- }
1365
- interface LineChartProps {
1366
- /** Up to 4 series (chart-1 to chart-4); a legend with each name appears for 2 or more. */
1367
- series: LineSeries[];
1368
- /** One label per point on the x axis. */
1369
- labels: string[];
1370
- /** Describes the chart for screen readers. */
1371
- label: string;
1372
- /** After each value in the tooltip. */
1373
- unit?: string;
1374
- /** Decimals of the values in the tooltip. Default 0. */
1375
- decimals?: number;
1376
- /** Top of the y axis. Default: a round number above the largest value. */
1377
- max?: number;
1378
- /** Bottom of the y axis. Default 0; set it for values far from 0, such as temperatures. */
1379
- min?: number;
1380
- /** Show every nth x label when they would crowd. */
1381
- labelEvery?: number;
1382
- /** Fills between two series: the one exception to lines without fills (actual and forecast, use and baseline). */
1383
- band?: LineBand;
1384
- /** The point that is now: a 「現在」 line, and the part after it striped as forecast. */
1385
- now?: number;
1386
- /** Horizontal dashed lines for levels, e.g. a warning level and a limit. */
1387
- thresholds?: LineThreshold[];
1388
- /** One forecast point ahead, e.g. the next round: a hollow circle with its label. Its color is the series'. */
1389
- marker?: {
1390
- at: number;
1391
- value: number;
1392
- label: string;
1393
- series?: number;
1394
- };
1395
- /** A playhead at this point, for replaying: an accent line with a round handle on the x axis. Dragging (mouse,
1396
- * touch) or ← → Home End on the chart move it. */
1397
- playhead?: number;
1398
- onPlayheadChange?: (at: number) => void;
1399
- /** A large figure above the chart, e.g. 「省 186 kWh(約 12%)」. */
1400
- headline?: React.ReactNode;
1401
- /** Shown in place of the lines when no series has a value. Default 「這段時間沒有資料」. */
1402
- empty?: string;
1403
- /** Height of the plot in px, axes included (x labels, the status band and the legend come on top). Default 240.
1404
- * Text in the chart stays at its own size however wide the chart is. */
1405
- height?: number;
1406
- /** A status band under the x axis, aligned with the points (StatusBand without its own spacing). */
1407
- status?: Omit<StatusBandProps, 'count' | 'times' | 'legend' | 'className'>;
1408
- className?: string;
1409
- }
1410
- export declare function LineChart({ series, labels, label, unit, decimals, max, min, labelEvery, band, now, thresholds, marker, playhead, onPlayheadChange, headline, status, empty, height, className }: LineChartProps): React.JSX.Element;
1411
- interface MeterProps {
1412
- /** What is measured, e.g. 「A 區進氣溫度」; also the name screen readers hear. */
1413
- label: string;
1414
- value: number;
1415
- min: number;
1416
- max: number;
1417
- /** From this value on the state is 「⚠ 注意」 (warning). Higher values are worse. */
1418
- warn?: number;
1419
- /** From this value on the state is 「⚠ 超過上限」 (danger). */
1420
- limit?: number;
1421
- /** After the value, e.g. '°C' or '%'. */
1422
- unit?: string;
1423
- /** Decimals of the value and marks. Default 0. */
1424
- decimals?: number;
1425
- className?: string;
1426
- }
1427
- /** A value against its levels: an 8 px bar shaded normal, watch and over the limit, a dot at the value, and the value
1428
- * with its state in words above. Meters stacked in a card line up: the state and the value end at the same places. */
1429
- export declare function Meter({ label, value, min, max, warn, limit, unit, decimals, className }: MeterProps): React.JSX.Element;
1430
- interface Zone {
1431
- id: string;
1432
- /** 「A 區」. */
1433
- name: string;
1434
- /** The main figure; null or undefined: no data (a dashed outline, not selectable). */
1435
- value?: number | null;
1436
- /** After the figure, smaller: '°C'. */
1437
- unit?: string;
1438
- /** Decimals of the figure. Default 1. */
1439
- decimals?: number;
1440
- /** The fill: a token name such as 'heat-5' or a color. Default: from the value on the heat scale (min, max). */
1441
- fill?: string;
1442
- /** `warning` or `danger`: a 4 px border in that color, and 「⚠」 before the state. Default normal. */
1443
- tone?: 'normal' | 'warning' | 'danger';
1444
- /** The state in words, e.g. 「正常」「注意」「超過上限」. Default 「正常」, or 「預測」 for a forecast. */
1445
- state?: string;
1446
- /** A forecast, not a measurement: the forecast stripes over the fill. */
1447
- forecast?: boolean;
1448
- /** One line of secondary information, e.g. 「進氣 26.1 °C」. */
1449
- detail?: string;
1450
- /** Where it sits on the grid (1-based); default: the next free cell. */
1451
- area?: {
1452
- row: number;
1453
- col: number;
1454
- rows?: number;
1455
- cols?: number;
1456
- };
1457
- }
1458
- interface ZoneMapProps {
1459
- zones: Zone[];
1460
- /** What the map shows, for screen readers, e.g. 「設施分區」. */
1461
- label: string;
1462
- /** Columns of the grid. Default 4. Where a zone would be narrower than 150 px (phones), fewer columns are used and
1463
- * `area` placements are dropped, so zones flow in order. */
1464
- columns?: number;
1465
- /** Height of one grid row in px. Default 120. With `fill`, the least height of a row. */
1466
- rowHeight?: number;
1467
- /** Rows grow to fill the height the map is given (in ConsoleLayout's main view, or any flex column), never below
1468
- * `rowHeight`. */
1469
- fill?: boolean;
1470
- /** The heat scale's range for zones without a fill. Default 20 to 30. */
1471
- min?: number;
1472
- max?: number;
1473
- selectedId?: string | null;
1474
- onSelect?: (zone: Zone) => void;
1475
- className?: string;
1476
- }
1477
- export declare function ZoneMap({ zones, label, columns, rowHeight, fill, min, max, selectedId, onSelect, className }: ZoneMapProps): React.JSX.Element;
1478
- type EventKind = 'alert' | 'switch' | 'ai' | 'manual';
1479
- interface TimelineEvent {
1480
- id?: string;
1481
- time: Date;
1482
- /** alert 告警, switch 切換, ai AI, manual 人工: an icon in front, read aloud as the kind's name. */
1483
- kind: EventKind;
1484
- /** What happened, one short sentence: 「F 區進氣溫度超過上限 29 °C」. */
1485
- text: string;
1486
- }
1487
- interface EventTimelineProps {
1488
- events: TimelineEvent[];
1489
- /** What the list is, for screen readers, e.g. 「近 4 小時的事件」. */
1490
- label: string;
1491
- /** Shown when there are no events, e.g. 「近 4 小時沒有事件」. Default 「沒有事件」. */
1492
- empty?: string;
1493
- className?: string;
1494
- }
1495
- /** Events newest first, one row each: the time (Geist Mono), an icon for the kind, and what happened. */
1496
- export declare function EventTimeline({ events, label, empty, className }: EventTimelineProps): import("react").JSX.Element;
1497
- /** A card that shows only when the screen is tall enough. */
1498
- interface ConsoleExtra {
1499
- /** Stable key for the card. */
1500
- id: string;
1501
- /** The card shows when the layout's logical height (the screen height divided by the zoom) is at least this many
1502
- * px, e.g. 1040. */
1503
- minHeight: number;
1504
- /** The card: usually a Card. */
1505
- node: React.ReactNode;
1506
- }
1507
- interface ConsoleLayoutProps {
1508
- /** The product or screen name, the page's only heading: 「設施監控」. */
1509
- title: string;
1510
- /** Right after the title: `<Tag variant="demo">示範資料</Tag>`. Same size and color as the text around it. */
1511
- tags?: React.ReactNode;
1512
- /** Right side, before the KPIs: one short state in plain words, 「AI 最佳化中」. Shown in body size and ink color;
1513
- * pass plain text, not a Badge. */
1514
- status?: React.ReactNode;
1515
- /** Right side: `<KpiCard size="compact" />` side by side. In the top bar they lose their card look and sit between
1516
- * 1 px lines. */
1517
- kpis?: React.ReactNode;
1518
- /** Right side, after the KPIs: the time and whether it is live, 「16:24 即時」. */
1519
- clock?: React.ReactNode;
1520
- /** A 「全螢幕」 button at the right end (Fullscreen API). Default true; hidden where the browser has no full screen. */
1521
- fullscreen?: boolean;
1522
- /** The main view, left of the side panel; it fills its cell (pass one Card, e.g. with a ZoneMap). */
1523
- main: React.ReactNode;
1524
- /** The side panel, 400 px (360 px under 1280 px): cards from top to bottom (TimeControl, EventTimeline). When they
1525
- * do not fit, the side panel scrolls on its own; the page never does. */
1526
- side?: React.ReactNode;
1527
- /** The bottom row under the main view, as tall as its content: e.g. a LineChart in a Card. The main view takes the
1528
- * height that is left. */
1529
- bottom?: React.ReactNode;
1530
- /** Cards added at the end of the side panel on tall screens: `[{ id, minHeight: 1040, node }]`. */
1531
- extras?: ConsoleExtra[];
1532
- className?: string;
1533
- }
1534
- /** Zoom for a screen of w × h px: 1 up to 1440 × 900, then grows with the screen, at most 1.5. */
1535
- export declare function consoleZoom(w: number, h: number): number;
1536
- /** A full-screen monitoring layout: a top bar (title, tags, then status, KPIs, clock and full screen on the right),
1537
- * the main view with a side panel beside it and a bottom row under it, filling the screen without scrolling. From
1538
- * 1440 × 900 up everything zooms with the screen (at most 1.5×). Phones (under 600 px) get one scrolling column. */
1539
- export declare function ConsoleLayout({ title, tags, status, kpis, clock, fullscreen, main, side, bottom, extras, className }: ConsoleLayoutProps): React.JSX.Element;
1540
- interface TimeControlProps {
1541
- /** The time on show: now when live, the replayed moment during a replay. */
1542
- time: Date;
1543
- /** Replaying past records instead of showing live data. */
1544
- replaying: boolean;
1545
- /** 「回放」 starts a replay, 「停止回放」 stops it. */
1546
- onReplayChange: (replaying: boolean) => void;
1547
- /** 「回到現在」: back to live data; cannot be pressed while live. */
1548
- onNow: () => void;
1549
- /** First line: what is on show, e.g. 「即時:每 10 秒更新一次。」 or 「回放中:14:10 起的紀錄。」. */
1550
- status: string;
1551
- /** Second line, smaller and gray: e.g. the range of the records or the last update. */
1552
- detail?: string;
1553
- className?: string;
1554
- }
1555
- /** The clock of a monitoring screen with replay: the time in 28 px Geist Mono, two lines on what is on show, and
1556
- * 「回放」 (「停止回放」 while replaying) and 「回到現在」. Laid out as a column for a 400 px side panel. Moving within
1557
- * the replay is LineChart's playhead. */
1558
- export declare function TimeControl({ time, replaying, onReplayChange, onNow, status, detail, className }: TimeControlProps): import("react").JSX.Element;
1559
- interface LoadingBarProps {
1560
- /** Announced to screen readers. Default 「載入中」. */
1561
- label?: string;
1562
- className?: string;
1563
- }
1564
- /** Loading with no known end: a drop moving along a thin bar. */
1565
- export declare function LoadingBar({ label, className }: LoadingBarProps): import("react").JSX.Element;
1566
- interface LoginCardProps {
1567
- /** Logo or product name above the title. */
1568
- brand?: React.ReactNode;
1569
- /** Default 「登入」. */
1570
- title?: string;
1571
- onSubmit: (v: {
1572
- account: string;
1573
- password: string;
1574
- }) => void;
1575
- /** Errors from your sign-in check, shown under each field: the cause and the fix. */
1576
- error?: {
1577
- account?: string;
1578
- password?: string;
1579
- } | null;
1580
- /** Adds 「忘記密碼」 beside the password label. */
1581
- forgotHref?: string;
1582
- loading?: boolean;
1583
- className?: string;
1584
- }
1585
- /** A centered sign-in card: account, password with show-password, 「忘記密碼」 beside the password label, errors under each
1586
- * field. Pass error = { account, password } from your sign-in check. */
1587
- export declare function LoginCard(p: LoginCardProps): React.JSX.Element;
1588
- interface MenuItemBase {
1589
- /** A verb: 重新命名, 複製連結. */
1590
- label: string;
1591
- icon?: IconSource;
1592
- /** Shown at the right, e.g. ⌘D. */
1593
- shortcut?: string;
1594
- disabled?: boolean;
1595
- onSelect?: () => void;
1596
- }
1597
- type MenuItem = (MenuItemBase & {
1598
- danger?: false;
1599
- }) | (MenuItemBase & {
1600
- /** Red, last, after a divider. Must be confirmed: onSelect runs after the dialog. */
1601
- danger: true;
1602
- confirm: DangerConfirm;
1603
- });
1604
- interface MenuProps {
1605
- items: MenuItem[];
1606
- /** aria-label and tooltip of the ⋯ button. Default 「更多操作」. */
1607
- label?: string;
1608
- /** Default 'dots-three'. */
1609
- icon?: IconSource;
1610
- /** 'end' lines up right edges (default); flips when the menu would leave the window. */
1611
- align?: 'end' | 'start';
1612
- /** Extra class on the ⋯ button. */
1613
- triggerClassName?: string;
1614
- }
1615
- /** The ⋯ button and its list of actions. Danger items go last, in red, after a divider, and are confirmed. */
1616
- export declare function Menu({ items, label, icon, align, triggerClassName }: MenuProps): React.JSX.Element;
1617
- interface MobileTab {
1618
- id: string;
1619
- label: string;
1620
- icon: IconSource;
1621
- }
1622
- interface MobileTabBarProps {
1623
- /** 3 to 5 top-level pages. */
1624
- items: MobileTab[];
1625
- value: string;
1626
- onChange?: (id: string) => void;
1627
- /** Default 「主要導覽」. */
1628
- label?: string;
1629
- /** Default true: an 11 px label under each icon (MA). false: icons only, each named by its aria-label, as in
1630
- * photo apps, for a bar whose icons people already know. */
1631
- labels?: boolean;
1632
- className?: string;
1633
- }
1634
- /** Bottom navigation on phones, in place of the sidebar. The pill slides like a droplet; the selected icon is filled. */
1635
- export declare function MobileTabBar({ items, value, onChange, label, labels, className }: MobileTabBarProps): React.JSX.Element;
1636
- interface MultiSelectOption {
1637
- value: string;
1638
- label: string;
1639
- }
1640
- interface MultiSelectProps {
1641
- label?: string;
1642
- options: MultiSelectOption[];
1643
- value: string[];
1644
- onChange: (value: string[]) => void;
1645
- /** Allow adding values that are not in options (Enter, or the 「新增」 row). */
1646
- creatable?: boolean;
1647
- /** Chips shown before 「+n」. Default 2. */
1648
- maxChips?: number;
1649
- /** Default 「搜尋」. */
1650
- placeholder?: string;
1651
- /** Default 「找不到符合的選項」. */
1652
- emptyText?: string;
1653
- /** The cause and the fix (「至少選一個標籤」). Red border, the warning icon and this line under the field, announced when
1654
- * it appears. */
1655
- error?: string;
1656
- className?: string;
1657
- }
1658
- /** Pick several options: chips inside the field, type to filter, Backspace removes the last chip. */
1659
- export declare function MultiSelect({ label, options, value, onChange, creatable, maxChips, placeholder, emptyText, error, className }: MultiSelectProps): React.JSX.Element;
1660
- interface NotificationItem {
1661
- id: string | number;
1662
- title: string;
1663
- body?: string;
1664
- /** Relative within a week: format.relative(date). */
1665
- time?: string;
1666
- /** Group heading, e.g. 今天, 更早. Items must already be newest first. */
1667
- group?: string;
1668
- read?: boolean;
1669
- }
1670
- interface NotificationBellProps {
1671
- items: NotificationItem[];
1672
- onOpen?: (item: NotificationItem) => void;
1673
- onReadAll?: () => void;
1674
- /** Default 「沒有通知」. */
1675
- emptyText?: string;
1676
- }
1677
- /** The bell in the top bar: a red count (99+ above 99) and a 360 px panel of notifications grouped by time. */
1678
- export declare function NotificationBell({ items, onOpen, onReadAll, emptyText }: NotificationBellProps): React.JSX.Element;
1679
- interface PopoverProps {
1680
- /** Text of the trigger button. */
1681
- label: string;
1682
- icon?: IconSource;
1683
- /** A number badge on the trigger, e.g. how many filters are on. */
1684
- count?: number | string;
1685
- /** Heading inside the popover; also its accessible name. */
1686
- title?: string;
1687
- /** Default 'bottom'. */
1688
- side?: 'top' | 'bottom';
1689
- /** Default 'end'. */
1690
- align?: 'end' | 'start' | 'center';
1691
- /** Content, or a function that receives close(). */
1692
- children?: React.ReactNode | ((close: () => void) => React.ReactNode);
1693
- triggerClassName?: string;
1694
- }
1695
- /** A small panel with an arrow, opened from a button on hover, click or focus. For extra detail or a few controls. */
1696
- export declare function Popover({ label, icon, count, title, side, align, children, triggerClassName }: PopoverProps): React.JSX.Element;
1697
- interface ProgressBarProps {
1698
- /** 0 to 100. */
1699
- value: number;
1700
- label?: string;
1701
- /** The bar's name for screen readers when there is no visible label (「a.pdf 上傳進度」). */
1702
- 'aria-label'?: string;
1703
- className?: string;
1704
- }
1705
- /** Progress of a task with a known end, with the percentage after the bar. */
1706
- export declare function ProgressBar({ value, label, className, ...aria }: ProgressBarProps): import("react").JSX.Element;
1707
- interface ProgressRingProps {
1708
- /** 0 to 100. */
1709
- value: number;
1710
- /** What is measured; announced to screen readers. */
1711
- label: string;
1712
- /** Diameter in px. Default 72. */
1713
- size?: number;
1714
- className?: string;
1715
- }
1716
- /** A ring that fills to a percentage, for a single figure in a card. */
1717
- export declare function ProgressRing({ value, label, size, className }: ProgressRingProps): import("react").JSX.Element;
1718
- type ProjectStatus = 'live' | 'stale' | 'offline';
1719
- interface ProjectOption {
1720
- id: string;
1721
- label: string;
1722
- /** A second line, e.g. the environment or the last update. */
1723
- detail?: string;
1724
- }
1725
- interface ProjectSwitcherProps {
1726
- /** The project and environment shown, e.g. 「web · production」. */
1727
- project: string;
1728
- /** Whether the data is live. Default 'live'. */
1729
- status?: ProjectStatus;
1730
- /** Replaces the status name (即時, 已過期, 離線). */
1731
- statusLabel?: string;
1732
- /** With onChange, a list to switch project. */
1733
- options?: ProjectOption[];
1734
- value?: string;
1735
- onChange?: (id: string) => void;
1736
- /** Under the list, e.g. a link to all projects. */
1737
- footer?: React.ReactNode;
1738
- className?: string;
1739
- }
1740
- /** The outlined chip in the top bar: which project is shown and whether its data is live; opens a list to switch. */
1741
- export declare function ProjectSwitcher({ project, status, statusLabel, options, value, onChange, footer, className }: ProjectSwitcherProps): React.JSX.Element;
1742
- interface RadioOption<V extends string = string> {
1743
- value: V;
1744
- label: React.ReactNode;
1745
- disabled?: boolean;
1746
- }
1747
- interface RadioGroupProps<V extends string = string> {
1748
- /** Shown above the options and used as the group's name. */
1749
- label?: string;
1750
- value?: V;
1751
- onChange?: (value: V) => void;
1752
- /** 2 to 5 options, all visible. Use Select for more. */
1753
- options: RadioOption<V>[];
1754
- disabled?: boolean;
1755
- className?: string;
1756
- }
1757
- /** One choice out of a few visible options. Arrow keys move between them. */
1758
- export declare function RadioGroup<V extends string = string>({ label, value, onChange, options, disabled, className }: RadioGroupProps<V>): React.JSX.Element;
1759
- interface SearchFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
1760
- value: string;
1761
- onChange: (value: string) => void;
1762
- /** aria-label. Default 「搜尋」. */
1763
- label?: string;
1764
- }
1765
- /** A search box with a clear button. Filter as the person types. */
1766
- export declare function SearchField({ value, onChange, className, label, ...native }: SearchFieldProps): React.JSX.Element;
1767
- interface SelectOption<V extends string = string> {
1768
- value: V;
1769
- label: string;
1770
- disabled?: boolean;
1771
- }
1772
- interface SelectProps<V extends string = string> {
1773
- /** Shown above the trigger. Without it, pass aria-label. */
1774
- label?: string;
1775
- 'aria-label'?: string;
1776
- value?: V | null;
1777
- onChange?: (value: V) => void;
1778
- options: SelectOption<V>[];
1779
- /** A search box at the top of the list. Default: on when there are more than 8 options. */
1780
- searchable?: boolean;
1781
- /** Default 「請選擇」. */
1782
- placeholder?: string;
1783
- /** Default 「搜尋」. */
1784
- searchPlaceholder?: string;
1785
- /** Red asterisk after the label. */
1786
- required?: boolean;
1787
- disabled?: boolean;
1788
- /** The cause and the fix (「請選擇部門」). Red border, the warning icon and this line under the field, announced when it
1789
- * appears. */
1790
- error?: string;
1791
- /** Form field name; the value is submitted with the form. */
1792
- name?: string;
1793
- className?: string;
1794
- }
1795
- /** Pick one option from a list. Use it instead of a native <select>; a search box appears above 8 options. */
1796
- export declare function Select<V extends string = string>(props: SelectProps<V>): React.JSX.Element;
1797
- interface SettingsCategory {
1798
- id: string;
1799
- label: string;
1800
- content: React.ReactNode;
1801
- }
1802
- interface SettingsLayoutProps {
1803
- title?: string;
1804
- categories: SettingsCategory[];
1805
- /** Controlled category id. */
1806
- value?: string;
1807
- onChange?: (id: string) => void;
1808
- /** Text of the 「已儲存」 toast; empty hides it. Changes save on their own, so there is no save button. */
1809
- toast?: string;
1810
- className?: string;
1811
- }
1812
- /** A settings page: categories on the left, their sections on the right. Changes save at once. */
1813
- export declare function SettingsLayout({ title, categories, value, onChange, toast, className }: SettingsLayoutProps): React.JSX.Element;
1814
- interface SettingsSectionProps {
1815
- title?: string;
1816
- /** One sentence under the title. */
1817
- description?: string;
1818
- children?: React.ReactNode;
1819
- className?: string;
1820
- }
1821
- /** One group of settings with a heading. It is a card on its own; inside a Card it drops its shadow. */
1822
- export declare function SettingsSection({ title, description, children, className }: SettingsSectionProps): React.JSX.Element;
1823
- interface SkeletonProps {
1824
- /** Default 100%. */
1825
- width?: number | string;
1826
- /** Default 16 px, one line of text. */
1827
- height?: number | string;
1828
- }
1829
- /** A gray shimmering block that holds the place of content while it loads. Show it at once. */
1830
- export declare function Skeleton({ width, height }: SkeletonProps): import("react").JSX.Element;
1831
- interface SuggestionProps {
1832
- /** Default 「建議修正」. */
1833
- title?: string;
1834
- /** The current line, shown with −. Text in `backticks` is code. */
1835
- before?: string;
1836
- /** The proposed line, shown with +. */
1837
- after: string;
1838
- /** What the copy button copies. Default: after. */
1839
- copyText?: string;
1840
- /** Default 「複製修正」. */
1841
- copyLabel?: string;
1842
- onCopy?: (text: string) => void;
1843
- onCopyError?: () => void;
1844
- refHref?: RefHref;
1845
- onRef?: OnRef;
1846
- isRef?: (span: string) => boolean;
1847
- className?: string;
1848
- }
1849
- /** A proposed fix: the old line (−) above the new one (+), with a copy button at the top right. */
1850
- export declare function Suggestion({ title, before, after, copyText: copyValue, copyLabel, onCopy, onCopyError, refHref, onRef, isRef, className }: SuggestionProps): React.JSX.Element;
1851
- interface SwitchProps {
1852
- checked?: boolean;
1853
- onChange?: (checked: boolean) => void;
1854
- /** What it turns on; becomes aria-label. Put the visible text next to it in the row. */
1855
- label: string;
1856
- disabled?: boolean;
1857
- className?: string;
1858
- }
1859
- /** An on/off setting that applies at once. The thumb stretches like a droplet while it moves. */
1860
- export declare function Switch({ checked, onChange, label, disabled, className }: SwitchProps): React.JSX.Element;
1861
- interface TabItem<V extends string = string> {
1862
- id: V;
1863
- label: string;
1864
- /** A count after the label, e.g. how many rows a view has. */
1865
- count?: number;
1866
- /** Unit after this tab's count, e.g. 「筆」, or a function of the count for plurals. Default: the list's unit. */
1867
- unit?: CountUnit;
1868
- }
1869
- interface TabsProps<V extends string = string> {
1870
- items: TabItem<V>[];
1871
- value: V;
1872
- onChange?: (id: V) => void;
1873
- /** aria-label of the tab list. */
1874
- label?: string;
1875
- /** Unit after every count, e.g. 「筆」 or 「個」: a number carries its unit. A function gets the count, for plurals:
1876
- * `(n) => (n === 1 ? 'item' : 'items')`. */
1877
- unit?: CountUnit;
1878
- className?: string;
1879
- }
1880
- /** Views of the same content. The underline moves like a droplet; arrow keys move between tabs. */
1881
- export declare function Tabs<V extends string = string>({ items, value, onChange, label, unit, className }: TabsProps<V>): React.JSX.Element;
1882
- interface SegmentedItem<V extends string = string> {
1883
- id: V;
1884
- /** The words: shown, or with `iconOnly` the tooltip and what screen readers say. */
1885
- label: string;
1886
- /** Phosphor icon name or element; required with `iconOnly`. */
1887
- icon?: IconSource;
1888
- }
1889
- interface SegmentedControlProps<V extends string = string> {
1890
- items: SegmentedItem<V>[];
1891
- value: V;
1892
- onChange?: (id: V) => void;
1893
- /** What the choice is about, for screen readers, e.g. 「顯示方式」. */
1894
- label: string;
1895
- /** Icons only, 28 px each, the words in a tooltip; for a bar such as Workbench's mainBar. Default false. */
1896
- iconOnly?: boolean;
1897
- className?: string;
1898
- }
1899
- /** A small switch between two or three ways of showing the same thing (預覽/原始碼), 28 px tall to sit in a toolbar
1900
- * or Workbench's mainBar. The selected part is a raised white pill that slides; ← → move and pick. For views of
1901
- * different content use Tabs. */
1902
- export declare function SegmentedControl<V extends string = string>({ items, value, onChange, label, iconOnly, className }: SegmentedControlProps<V>): React.JSX.Element;
1903
- interface TagProps {
1904
- children?: React.ReactNode;
1905
- /** `plain` (default): small gray text. `forecast`: marks a value as forecast, not measured: a trend icon and the
1906
- * words in accent text, e.g. 「預測」 beside it. `demo`: a whole page of sample values: an info icon and the words in
1907
- * the color of the text beside them, e.g. 「示範資料」 beside the brand; one per page. Both take the size of the text
1908
- * beside them. */
1909
- variant?: 'plain' | 'forecast' | 'demo';
1910
- className?: string;
1911
- }
1912
- /** What kind of thing an item is (「外部」「範本」): small gray text. Status uses Badge instead. Two kinds say where
1913
- * numbers come from, with an icon and no fill: forecast and demo. */
1914
- export declare function Tag({ children, variant, className }: TagProps): React.JSX.Element;
1915
- interface TermProps {
1916
- /** The word or label that needs explaining. */
1917
- children?: React.ReactNode;
1918
- /** Heading of the explanation. Default: children when it is text. */
1919
- title?: string;
1920
- /** The explanation, at most 2 short sentences; `backticks` are code. */
1921
- text?: string;
1922
- /** Other content instead of text. */
1923
- content?: React.ReactNode;
1924
- /** An evidence line, shown as a code block. */
1925
- code?: string;
1926
- /** One link-style action at the bottom. */
1927
- action?: {
1928
- label: string;
1929
- onClick?: () => void;
1930
- };
1931
- refHref?: RefHref;
1932
- onRef?: OnRef;
1933
- isRef?: (span: string) => boolean;
1934
- /** `icon` (default): the word with a small question mark, opened by a press. `inline`: a dashed underline inside a
1935
- * sentence; the card opens after resting on the word for 500 ms, at once on keyboard focus, and as a sheet on phones. */
1936
- variant?: 'icon' | 'inline';
1937
- /** inline only: keyboard focus opens the card at once. Default true; false where arrow keys move between words and
1938
- * Enter opens (CodeView). */
1939
- openOnFocus?: boolean;
1940
- /** -1 inside a widget that moves focus with its own keys (CodeView). */
1941
- tabIndex?: number;
1942
- className?: string;
1943
- }
1944
- /** A word that opens its explanation: a floating card from 600 px, a sheet from the bottom on phones. `icon` adds a small
1945
- * question mark; `inline` marks the word with a dashed underline and opens on hover or keyboard focus. */
1946
- export declare function Term({ children, title, text, content, code, action, refHref, onRef, isRef, variant, openOnFocus, tabIndex, className }: TermProps): React.JSX.Element;
1947
- interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'value'> {
1948
- label?: string;
1949
- hint?: string;
1950
- value: string;
1951
- onChange: (value: string) => void;
1952
- /** Shown as a counter. Default 200. */
1953
- maxLength?: number;
1954
- required?: boolean;
1955
- /** The cause and the fix (「請寫下退款原因」). Red border, the warning icon and this line in place of the hint, announced
1956
- * when it appears. Set it when the field is left or the form is sent. */
1957
- error?: string;
1958
- }
1959
- /** Multi-line text that grows up to 8 lines, with a character counter. */
1960
- export declare function TextArea({ label, hint, error, value, onChange, maxLength, className, id, required, ...native }: TextAreaProps): React.JSX.Element;
1961
- interface TextFieldProps extends React.InputHTMLAttributes<HTMLInputElement> {
1962
- /** Above the field, always visible. Never only a placeholder. */
1963
- label: string;
1964
- /** Red asterisk after the label. */
1965
- required?: boolean;
1966
- /** One short line under the field. */
1967
- hint?: string;
1968
- /** The cause and the fix: 「日期格式不正確,請寫成 2026/11/14」. Turns the border red and is announced when it appears.
1969
- * Set it when the field is left (blur) or the form is sent, not on every key; clear it as soon as the value is right. */
1970
- error?: string;
1971
- ref?: React.Ref<HTMLInputElement>;
1972
- }
1973
- /** A labelled one-line input with a hint or an error under it. */
1974
- export declare function TextField({ label, hint, error, id, className, required, disabled, ...native }: TextFieldProps): React.JSX.Element;
1975
- type ThemeSetting = 'auto' | 'light' | 'dark';
1976
- /** Switches the theme on <html data-theme> and remembers it. */
1977
- export declare function setTheme(t: ThemeSetting): void;
1978
- /** Derives every accent token from one color (自訂強調色的換算 in docs/theme.md).
1979
- * Returns false for anything but #rrggbb. quiet: apply without storing. */
1980
- export declare function setAccent(hex: string, quiet?: boolean): boolean;
1981
- /** Applies the stored theme and accent; call once when the page starts. */
1982
- export declare function initTheme(): void;
1983
- /** The text color for something drawn on a fill (a heat-scale zone, a status band): the near-black ink of the light
1984
- * theme (#171512) or white, whichever contrasts more with the fill. `fill` is a color (#hex, rgb()) or a token name
1985
- * such as 'heat-6', read from el (default: the root) so it follows the theme. Every step of heat-*, diverge-* and
1986
- * chart-* reaches 4.5:1 with its pick. Unreadable colors give the near-black ink. */
1987
- export declare function textOn(fill: string, el?: Element): '#171512' | '#ffffff';
1988
- /** The heat-scale token for a value: min (or below) is heat-1, max (or above) is heat-7, evenly in between. */
1989
- export declare function heatToken(value: number, min: number, max: number): `heat-${1 | 2 | 3 | 4 | 5 | 6 | 7}`;
1990
- /** The diverging-scale token for a difference: within ±zero it is diverge-zero; from ±strong on, the -strong step. */
1991
- export declare function divergeToken(diff: number, limits: {
1992
- zero: number;
1993
- strong: number;
1994
- }): 'diverge-neg-strong' | 'diverge-neg' | 'diverge-zero' | 'diverge-pos' | 'diverge-pos-strong';
1995
- interface ThemePickerProps {
1996
- /** Controlled value. Without it, the picker reads and sets the stored theme itself. */
1997
- value?: ThemeSetting;
1998
- /** Without it, picking applies the theme with setTheme. */
1999
- onChange?: (theme: ThemeSetting) => void;
2000
- /** Default 「主題」. */
2001
- label?: string;
2002
- className?: string;
2003
- }
2004
- /** Three preview cards (自動、淺色、深色) for the settings page under 外觀. */
2005
- export declare function ThemePicker({ value, onChange, label, className }: ThemePickerProps): React.JSX.Element;
2006
- interface ToastProps {
2007
- /** What happened, in the past tense: 「已刪除 3 筆」. */
2008
- children?: React.ReactNode;
2009
- /** Usually 「復原」. */
2010
- actionLabel?: string;
2011
- onAction?: () => void;
2012
- }
2013
- /** A short confirmation at the bottom right. The caller shows it for 3 s. */
2014
- export declare function Toast({ children, actionLabel, onAction }: ToastProps): React.JSX.Element;
2015
- interface TooltipProps {
2016
- /** Short text, also announced as the trigger's description. Never the only place important information lives. */
2017
- label: string;
2018
- /** Preferred side; flips when there is no room. 'right' for controls at a sidebar's edge. Default 'top'. */
2019
- side?: 'top' | 'bottom' | 'right';
2020
- /** One focusable element that accepts a ref (a button, IconButton, Button, a link). */
2021
- children: React.ReactElement;
2022
- /** false: the label only repeats the trigger's own name (an IconButton's aria-label), so it is not added as its description. Default true. */
2023
- describe?: boolean;
2024
- /** Long text (a cut-off table cell): wraps at 360 px in regular weight instead of one bold line. */
2025
- wrap?: boolean;
2026
- /** Turns it off without unmounting the trigger, e.g. while a cell's text still fits. */
2027
- disabled?: boolean;
2028
- }
2029
- /** Dark label above the element (below when there is no room), with an arrow. Appears at once on hover and focus. */
2030
- export declare function Tooltip({ label, side, describe, wrap, disabled, children }: TooltipProps): React.JSX.Element;
2031
- interface TopBarProps {
2032
- /** The page title, shown once: either here or as the page's own heading. */
2033
- title?: string;
2034
- breadcrumb?: BreadcrumbItem[];
2035
- /** Opens search (CommandPalette). false hides the search entry. */
2036
- onSearch?: (() => void) | false;
2037
- /** Default 「搜尋」. */
2038
- searchLabel?: string;
2039
- /** Right side: NotificationBell, ProjectSwitcher, the account menu. */
2040
- children?: React.ReactNode;
2041
- /** A menu button at the left that opens the navigation (AppShell from 600 to 1024 px). */
2042
- onMenu?: () => void;
2043
- className?: string;
2044
- }
2045
- /** The bar at the top of a dashboard page: title or breadcrumb on the left, search and tools on the right. */
2046
- export declare function TopBar({ title, breadcrumb, onSearch, searchLabel, children, onMenu, className }: TopBarProps): React.JSX.Element;
2047
- interface TourStep {
2048
- /** A data-tour name ('search' matches [data-tour="search"]), a CSS selector (first visible match), a ref or an element.
2049
- * Leave it out for a step in the middle of the screen. */
2050
- target?: string | React.RefObject<Element | null> | Element;
2051
- /** Names the part: 「搜尋」. */
2052
- title: string;
2053
- /** What it does, 1 short sentence; `backticks` are code. */
2054
- text: string;
2055
- /** Default 'bottom'. The card goes below, above, right or left of the target, the first side where it fits in the
2056
- * window and covers neither the target nor `keepVisible` ('top' tries above first). With no such side the page
2057
- * scrolls to make room; failing that, the side that covers the least of the target. */
2058
- side?: 'bottom' | 'top';
2059
- /** Space around the highlighted part in px. Default 6. */
2060
- padding?: number;
2061
- /** Parts the card must not cover either, e.g. the table the step talks about under a highlighted summary: same forms
2062
- * as target. The card then goes to the next side that leaves them visible. */
2063
- keepVisible?: TourStep['target'] | TourStep['target'][];
2064
- }
2065
- interface TourProps {
2066
- open: boolean;
2067
- steps: TourStep[];
2068
- onClose?: (reason: 'done' | 'skip') => void;
2069
- /** 「略過」 and Esc end the tour early. Default true. */
2070
- skippable?: boolean;
2071
- /** Controlled step index. */
2072
- step?: number;
2073
- onStepChange?: (index: number) => void;
2074
- }
2075
- /** Opens the tour once per browser: { open, start, close, seen, hint }. Pass close to Tour's onClose; start() shows
2076
- * it again. hint(text) gives IconButton's `hint` for the button that starts the tour: a page that uses it shows the dot
2077
- * and the bubble instead of opening the tour by itself. 「開始」 starts the tour; × and finishing it hide the hint for
2078
- * good (the same record as seen). */
2079
- export declare function useTour(key: string): {
2080
- open: boolean;
2081
- start: () => void;
2082
- close: () => void;
2083
- seen: boolean;
2084
- /** IconButton's `hint` for the button that starts this tour, or undefined once seen or while the tour is open. */
2085
- hint: (text: string, action?: string) => IconButtonHint | undefined;
2086
- };
2087
- /** The first-use walkthrough: the page goes dark except the part being introduced, with a card beside it. */
2088
- export declare function Tour({ open, steps, onClose, skippable, step: controlled, onStepChange }: TourProps): React.JSX.Element | null;
2089
- interface AiMarkProps {
2090
- /** The words shown. Default 「AI 撰寫」; another source mark in the same style, e.g. 「推測」. */
2091
- text?: string;
2092
- /** What screen readers say, when it should differ from text. Default: text in parentheses, 「(AI 撰寫)」. */
2093
- label?: string;
2094
- className?: string;
2095
- }
2096
- /** A small gray 「AI 撰寫」 at the end of a sentence, paragraph, list item or cell written by AI. Not a link and not a
2097
- * Tab stop; screen readers hear it in parentheses after the sentence. */
2098
- export declare function AiMark({ text, label, className }: AiMarkProps): import("react").JSX.Element;
2099
- type TreeSort = 'newest' | 'oldest' | 'name' | false;
2100
- interface TreeNode {
2101
- id: string;
2102
- name: string;
2103
- /** A folder (files kind) or an expandable item (plain kind). */
2104
- children?: TreeNode[];
2105
- /** Overrides the extension taken from the name. */
2106
- ext?: string;
2107
- date?: Date | number | string;
2108
- /** Bytes. */
2109
- size?: number;
2110
- /** New to this person: the date turns accent and bold; folders say 「2 個新」. */
2111
- unseen?: boolean;
2112
- /** kind="plain": location shown under the name, shortened with format.path. */
2113
- path?: string;
2114
- /** kind="plain": text under the name instead of path; its numbers are in Geist Mono. */
2115
- meta?: string;
2116
- /** kind="plain": category tags after the name. Tag only what differs from most items. Their words are read as part
2117
- * of the item's name, after the name; give `ariaLabel` when a tag is an element whose words cannot be read off it. */
2118
- tags?: React.ReactNode[];
2119
- /** The whole name screen readers read for this item, instead of 「name,tags,meta,path」. */
2120
- ariaLabel?: string;
2121
- /** Expandable before its children are loaded (with loadChildren). */
2122
- hasChildren?: boolean;
2123
- /** kind="plain": name in the secondary color. */
2124
- muted?: boolean;
2125
- /** kind="plain": icon before the name. */
2126
- icon?: IconSource;
2127
- /** kind="plain": a small dot at the row's right end for something worth a look. Screen readers hear `label` after
2128
- * the name; the dot itself has no text. tone: 'warning' (default), 'danger' or 'accent'. */
2129
- mark?: TreeMark;
2130
- }
2131
- /** The dot after a tree item: `label` says what it means, 「有值得注意的地方」. */
2132
- interface TreeMark {
2133
- label: string;
2134
- tone?: 'warning' | 'danger' | 'accent';
2135
- }
2136
- interface TreeListProps {
2137
- items: TreeNode[];
2138
- /** 'files' (default): folders and files with date and size. 'plain': any other tree, such as a call tree. */
2139
- kind?: 'files' | 'plain';
2140
- /** kind="plain": the selected row. Clicking it again (or Enter on it) still calls onSelect, but does not open or close
2141
- * it; its caret does. */
2142
- selectedId?: string;
2143
- onSelect?: (node: TreeNode) => void;
2144
- /** kind="plain": IconButtons at the row's right end. */
2145
- rowActions?: (node: TreeNode) => React.ReactNode;
2146
- /** kind="plain": show 「全部展開」. */
2147
- toggleAll?: boolean;
2148
- title?: React.ReactNode;
2149
- /** Accessible name when there is no title. */
2150
- label?: string;
2151
- /** Buttons at the top right. */
2152
- actions?: React.ReactNode;
2153
- /** Default 'newest' for files, false (as given) for plain. */
2154
- sort?: TreeSort;
2155
- /** kind="plain": 'compact' gives 28 px rows on one line (meta beside the name), for a file explorer or an outline
2156
- * in a side panel. On touch screens rows stay 48 px. Default 'comfortable'. */
2157
- density?: 'comfortable' | 'compact';
2158
- /** 'single' keeps one folder open per level; choose it when folders are many and messy. Default 'multi'. */
2159
- expand?: 'multi' | 'single';
2160
- defaultOpen?: string[];
2161
- /** Second line under the title, e.g. 「17 個檔案」. */
2162
- subtitle?: React.ReactNode;
2163
- /** Fixed height (px or a CSS length such as '100%'): the header stays and the list scrolls inside. Needed inside a fixed-height panel. */
2164
- height?: number | string;
2165
- /** No card background, shadow or radius, for a tree inside a panel that is not a Card. Inside a Card this happens by itself. */
2166
- bare?: boolean;
2167
- /** Controlled open ids; update them in onToggle. */
2168
- open?: string[];
2169
- onToggle?: (node: TreeNode, isOpen: boolean, openIds: string[]) => void;
2170
- /** Controlled mode: 「全部展開/全部收合」 reports every open id here. */
2171
- onToggleAll?: (isOpen: boolean, openIds: string[]) => void;
2172
- /** Loads the children of a node with hasChildren the first time it opens. */
2173
- loadChildren?: (node: TreeNode) => TreeNode[] | Promise<TreeNode[]>;
2174
- /** Files kind: checkboxes on hover; a folder's checkbox selects every file inside. */
2175
- selectable?: boolean;
2176
- selected?: string[];
2177
- onSelectChange?: (ids: string[]) => void;
2178
- bulkActions?: (files: TreeNode[], clear: () => void) => React.ReactNode;
2179
- /** Adds 「下載」 to each file and to the bulk bar. */
2180
- onDownload?: (files: TreeNode[]) => void;
2181
- onOpen?: (file: TreeNode) => void;
2182
- emptyText?: string;
2183
- className?: string;
2184
- }
2185
- /** Folders and files (or any tree) that expand in place, with guide lines, keyboard navigation and lazy children. It is a card on its own. */
2186
- export declare function TreeList(p: TreeListProps): React.JSX.Element;
2187
- /** Droplet motion of tab and sidebar indicators: lead duration in ms and how much longer the trailing edge takes. */
2188
- export declare const MOTION: {
2189
- readonly dur: 200;
2190
- readonly stretch: 2.2;
2191
- };
2192
- /** Says text to screen readers through the page's polite live region, without moving focus: 「顯示 6 筆」.
2193
- * A second call before the first is read replaces it. */
2194
- export declare function announce(text: string): void;
2195
- type WorkbenchRegion = 'explorer' | 'side' | 'panel';
2196
- /** One view in the side bar or the bottom panel: a tab and what it shows. */
2197
- interface WorkbenchView {
2198
- id: string;
2199
- /** The tab's name, a noun: 「大綱」「問題」. */
2200
- title: string;
2201
- /** The view's content; only the open view is rendered. */
2202
- render: () => React.ReactNode;
2203
- /** Something worth a look (new problems): a dot on the tab, and on the region's top-bar button while it is closed. */
2204
- attention?: boolean;
2205
- }
2206
- /** Where each view sits and what is open; kept in localStorage under 「ui-workbench:」 + id. */
2207
- interface WorkbenchLayout {
2208
- side: string[];
2209
- panel: string[];
2210
- active: {
2211
- side?: string;
2212
- panel?: string;
2213
- };
2214
- open: Record<WorkbenchRegion, boolean>;
2215
- size: Record<WorkbenchRegion, number>;
2216
- }
2217
- interface WorkbenchProps {
2218
- /** Names the stored layout: one per page, such as 'app'. */
2219
- id: string;
2220
- /** Product at the top left. The name is hidden on phones; the mark stays. */
2221
- brand?: {
2222
- mark?: React.ReactNode;
2223
- name: string;
2224
- href?: string;
2225
- };
2226
- /** Where the main view is: on a 36 px bar above the main view, in line with the tab rows of the side bar and the
2227
- * panel. When it does not fit, the levels before the last one shrink first. */
2228
- crumbs?: BreadcrumbItem[];
2229
- /** Small buttons at the right of the bar above the main view, such as 「用 VS Code 開啟」: IconButton
2230
- * variant="quiet". */
2231
- mainBar?: React.ReactNode;
2232
- /** The page's own buttons at the top right (search, help, project switch): IconButton variant="quiet". */
2233
- actions?: React.ReactNode;
2234
- /** The file explorer's content, usually a TreeList kind="plain" density="compact" bare. */
2235
- explorer?: React.ReactNode;
2236
- /** The explorer's filter: a 36 px row at its top (magnifier and a borderless field), in line with the bars beside
2237
- * it. The page filters its own tree. */
2238
- explorerFilter?: {
2239
- value: string;
2240
- onChange: (value: string) => void;
2241
- label?: string;
2242
- };
2243
- /** Above the explorer, under the filter, fixed: anything else. */
2244
- explorerHead?: React.ReactNode;
2245
- /** Below the explorer, fixed: 「設定」 and the like. */
2246
- explorerFoot?: React.ReactNode;
2247
- /** Tabs of the side bar and the bottom panel. Where each one sits is the user's choice, kept per browser. */
2248
- views?: WorkbenchView[];
2249
- /** The layout before the user changes it, and after 「還原預設版面」. Views in neither list go to the panel. */
2250
- defaultLayout?: {
2251
- side?: string[];
2252
- panel?: string[];
2253
- open?: Partial<Record<WorkbenchRegion, boolean>>;
2254
- size?: Partial<Record<WorkbenchRegion, number>>;
2255
- };
2256
- /** The main view: a diagram, a document or code. */
2257
- children?: React.ReactNode;
2258
- /** Accessible name of the whole layout. Default 「編輯器」. */
2259
- label?: string;
2260
- className?: string;
2261
- /** Called with the layout on the first render and after every change (a tab picked or moved, a region opened or
2262
- * closed, a size changed), for example to put the panel's current tab in the URL. */
2263
- onLayoutChange?: (layout: WorkbenchLayout) => void;
2264
- /** show, toggle, resetLayout and getLayout from outside, such as URL handling in the page around the Workbench. */
2265
- ref?: React.Ref<WorkbenchHandle>;
2266
- }
2267
- interface WorkbenchApi {
2268
- /** Back to defaultLayout: places, open regions and sizes. */
2269
- resetLayout: () => void;
2270
- /** Opens or closes a region, as its top-bar button. */
2271
- toggle: (region: WorkbenchRegion) => void;
2272
- /** Call after the user picked something in the explorer: where the explorer covers the main view (below 960 px),
2273
- * it closes so the choice can be seen. */
2274
- explorerPicked: () => void;
2275
- /** Phones (below 600 px). */
2276
- phone: boolean;
2277
- /** Opens a view where it is: makes it the current tab of its region and opens the region (laid over the main view
2278
- * on narrow screens; the merged panel on phones). Does not move the view. Unknown ids are ignored. */
2279
- show: (viewId: string) => void;
2280
- /** The current layout: where each view sits, the current tab of each region, what is open, sizes. */
2281
- layout: WorkbenchLayout;
2282
- }
2283
- /** The same calls from outside the Workbench, through `ref`. */
2284
- type WorkbenchHandle = Omit<WorkbenchApi, 'layout'> & {
2285
- /** The current layout at the time of the call. */
2286
- getLayout: () => WorkbenchLayout;
2287
- };
2288
- /** For anything rendered inside a Workbench (actions, explorer, views). */
2289
- export declare function useWorkbench(): WorkbenchApi;
2290
- /** An editor layout like VS Code: top bar, file explorer, main view, side bar and bottom panel, with resizable borders,
2291
- * views that move between the side bar and the panel, Ctrl B / Ctrl J / Ctrl Alt B, and a remembered layout. */
2292
- export declare function Workbench({ ref, ...p }: WorkbenchProps): React.JSX.Element;
2293
- export { type AccentPickerProps, type ActionBarAction, type ActionBarProps, type AiMarkProps, type AlertProps, type AlertTone, type AppShellProps, type BadgeProps, type BadgeStatus, type BarChartProps, type BarDatum, type BreadcrumbItem, type BreadcrumbProps, type ButtonProps, type CalendarProps, type CardProps, type CheckboxProps, type CodeLanguage, type CodeLink, type CodeTextProps, type CodeViewHandle, type CodeViewProps, type CommandPaletteProps, type ConsoleExtra, type ConsoleLayoutProps, type CountUnit, type CustomIcon, type DangerConfirm, type DangerZoneProps, type DataTableColumn, type DataTableFilter, type DataTableProps, type DataTableView, type DatePickerProps, type DateRange, type DateRangePickerProps, type DayState, type Decimals, type DetailListItem, type DetailListProps, type DialogProps, type DrawerProps, type EmptyStateProps, type ErrorPageProps, type EventKind, type EventTimelineProps, type FileUploadProps, type FilterOption, type FilterValue, type FormGridProps, type GraphLegendItem, type GraphLegendProps, type GridProps, type IconButtonHint, type IconButtonProps, type IconName, type IconProps, type IconSource, type InlineCodeProps, type KpiCardProps, type LayerGraphEdge, type LayerGraphNode, type LayerGraphProps, type LineBand, type LineChartProps, type LineSeries, type LineThreshold, type LoadingBarProps, type LoginCardProps, type MarkdownProps, type MenuItem, type MenuProps, type MeterProps, type MobileTab, type MobileTabBarProps, type MultiSelectOption, type MultiSelectProps, type NavBrand, type NavItem, type NavSection, type NotificationBellProps, type NotificationItem, type OnRef, type PageProps, type PaletteItem, type PopoverProps, type ProgressBarProps, type ProgressRingProps, type ProjectOption, type ProjectStatus, type ProjectSwitcherProps, type RadioGroupProps, type RadioOption, type RangeValue, type RefHref, type Row, type RowKey, type SearchFieldProps, type SectionGroupProps, type SectionGroupToggleProps, type SectionProps, type SegmentedControlProps, type SegmentedItem, type SelectOption, type SelectProps, type SettingsCategory, type SettingsLayoutProps, type SettingsSectionProps, type SideNavProps, type SkeletonProps, type SplitPaneProps, type StatusBandProps, type StatusSegment, type SuggestionProps, type SwitchProps, type TabItem, type TabsProps, type TagProps, type TermDef, type TermProps, type TermsMark, type TextAreaProps, type TextFieldProps, type ThemePickerProps, type ThemeSetting, type TimeControlProps, type TimelineEvent, type ToastProps, type Token, type TokenClass, type Tokenizer, type TooltipProps, type TopBarProps, type Total, type TourProps, type TourStep, type TreeListProps, type TreeMark, type TreeNode, type UploadFile, type WorkbenchApi, type WorkbenchHandle, type WorkbenchLayout, type WorkbenchProps, type WorkbenchRegion, type WorkbenchView, type Zone, type ZoneMapProps, addMessages, format, setLocale, tr as t };
1
+ import { Decimals, format } from "./format.js";
2
+ import { CountUnit, addMessages, setLocale, tr } from "./i18n.js";
3
+ import { IconName } from "./icons/names.js";
4
+ import { AppShell, AppShellProps } from "./components/AppShell/AppShell.js";
5
+ import { Grid, GridProps, Page, PageProps } from "./components/Grid/Grid.js";
6
+ import { AccentPicker, AccentPickerProps } from "./components/AccentPicker/AccentPicker.js";
7
+ import { focusMain } from "./internal/focusMain.js";
8
+ import { ActionBar, ActionBarAction, ActionBarProps } from "./components/ActionBar/ActionBar.js";
9
+ import { Alert, AlertProps, AlertTone } from "./components/Alert/Alert.js";
10
+ import { Badge, BadgeProps, BadgeStatus } from "./components/Badge/Badge.js";
11
+ import { BarChart, BarChartProps, BarDatum } from "./components/BarChart/BarChart.js";
12
+ import { Breadcrumb, BreadcrumbItem, BreadcrumbProps } from "./components/Breadcrumb/Breadcrumb.js";
13
+ import { Button, ButtonProps, DangerConfirm } from "./components/Button/Button.js";
14
+ import { Calendar, CalendarProps, DayState } from "./components/Calendar/Calendar.js";
15
+ import { Card, CardProps } from "./components/Card/Card.js";
16
+ import { Checkbox, CheckboxProps } from "./components/Checkbox/Checkbox.js";
17
+ import { CodeLink, CodeView, CodeViewHandle, CodeViewProps } from "./components/CodeView/CodeView.js";
18
+ import { CommandPalette, CommandPaletteProps, PaletteItem } from "./components/CommandPalette/CommandPalette.js";
19
+ import { DangerZone, DangerZoneProps } from "./components/DangerZone/DangerZone.js";
20
+ import { DataTable, DataTableProps } from "./components/DataTable/DataTable.js";
21
+ import { DatePicker, DatePickerProps } from "./components/DatePicker/DatePicker.js";
22
+ import { DateRange, DateRangePicker, DateRangePickerProps } from "./components/DateRangePicker/DateRangePicker.js";
23
+ import { DetailList, DetailListItem, DetailListProps } from "./components/DetailList/DetailList.js";
24
+ import { Dialog, DialogProps } from "./components/Dialog/Dialog.js";
25
+ import { DataTableColumn, DataTableFilter, DataTableView, FilterOption, FilterValue, RangeValue, Row, RowKey, Total } from "./components/DataTable/types.js";
26
+ import { SplitPane, SplitPaneProps } from "./components/SplitPane/SplitPane.js";
27
+ import { Drawer, DrawerProps } from "./components/Drawer/Drawer.js";
28
+ import { EmptyState, EmptyStateProps } from "./components/EmptyState/EmptyState.js";
29
+ import { ErrorPage, ErrorPageProps } from "./components/ErrorPage/ErrorPage.js";
30
+ import { FileUpload, FileUploadProps, UploadFile } from "./components/FileUpload/FileUpload.js";
31
+ import { FormGrid, FormGridProps } from "./components/FormGrid/FormGrid.js";
32
+ import { GraphDefs, GraphLegend, GraphLegendItem, GraphLegendProps } from "./components/Graph/Graph.js";
33
+ import { IconButton, IconButtonHint, IconButtonProps } from "./components/IconButton/IconButton.js";
34
+ import { CodeText, CodeTextProps, InlineCode, InlineCodeProps, OnRef, RefHref, isCodeRef } from "./components/InlineCode/InlineCode.js";
35
+ import { Markdown, MarkdownProps, safeHref } from "./components/Markdown/Markdown.js";
36
+ import { Section, SectionGroup, SectionGroupProps, SectionGroupToggle, SectionGroupToggleProps, SectionProps } from "./components/Section/Section.js";
37
+ import { KpiCard, KpiCardProps } from "./components/KpiCard/KpiCard.js";
38
+ import { LayerGraph, LayerGraphEdge, LayerGraphNode, LayerGraphProps } from "./components/LayerGraph/LayerGraph.js";
39
+ import { LineBand, LineChart, LineChartProps, LineSeries, LineThreshold } from "./components/LineChart/LineChart.js";
40
+ import { StatusBand, StatusBandProps, StatusLegend, StatusSegment } from "./components/StatusBand/StatusBand.js";
41
+ import { Meter, MeterProps } from "./components/Meter/Meter.js";
42
+ import { Zone, ZoneMap, ZoneMapProps } from "./components/ZoneMap/ZoneMap.js";
43
+ import { EventKind, EventTimeline, EventTimelineProps, TimelineEvent } from "./components/EventTimeline/EventTimeline.js";
44
+ import { ConsoleExtra, ConsoleLayout, ConsoleLayoutProps, consoleZoom } from "./components/ConsoleLayout/ConsoleLayout.js";
45
+ import { TimeControl, TimeControlProps } from "./components/TimeControl/TimeControl.js";
46
+ import { LoadingBar, LoadingBarProps } from "./components/LoadingBar/LoadingBar.js";
47
+ import { LoginCard, LoginCardProps } from "./components/LoginCard/LoginCard.js";
48
+ import { Menu, MenuItem, MenuProps } from "./components/Menu/Menu.js";
49
+ import { MobileTab, MobileTabBar, MobileTabBarProps } from "./components/MobileTabBar/MobileTabBar.js";
50
+ import { MultiSelect, MultiSelectOption, MultiSelectProps } from "./components/MultiSelect/MultiSelect.js";
51
+ import { NotificationBell, NotificationBellProps, NotificationItem } from "./components/NotificationBell/NotificationBell.js";
52
+ import { Popover, PopoverProps } from "./components/Popover/Popover.js";
53
+ import { ProgressBar, ProgressBarProps } from "./components/ProgressBar/ProgressBar.js";
54
+ import { ProgressRing, ProgressRingProps } from "./components/ProgressRing/ProgressRing.js";
55
+ import { ProjectOption, ProjectStatus, ProjectSwitcher, ProjectSwitcherProps } from "./components/ProjectSwitcher/ProjectSwitcher.js";
56
+ import { RadioGroup, RadioGroupProps, RadioOption } from "./components/RadioGroup/RadioGroup.js";
57
+ import { SearchField, SearchFieldProps } from "./components/SearchField/SearchField.js";
58
+ import { Select, SelectOption, SelectProps } from "./components/Select/Select.js";
59
+ import { SettingsCategory, SettingsLayout, SettingsLayoutProps, SettingsSection, SettingsSectionProps } from "./components/SettingsLayout/SettingsLayout.js";
60
+ import { NavBrand, NavItem, NavSection, SideNav, SideNavProps } from "./components/SideNav/SideNav.js";
61
+ import { Skeleton, SkeletonProps } from "./components/Skeleton/Skeleton.js";
62
+ import { Suggestion, SuggestionProps } from "./components/Suggestion/Suggestion.js";
63
+ import { Switch, SwitchProps } from "./components/Switch/Switch.js";
64
+ import { TabItem, Tabs, TabsProps } from "./components/Tabs/Tabs.js";
65
+ import { SegmentedControl, SegmentedControlProps, SegmentedItem } from "./components/SegmentedControl/SegmentedControl.js";
66
+ import { Tag, TagProps } from "./components/Tag/Tag.js";
67
+ import { Term, TermProps } from "./components/Term/Term.js";
68
+ import { TermDef, TermsMark } from "./internal/terms.js";
69
+ import { TextArea, TextAreaProps } from "./components/TextArea/TextArea.js";
70
+ import { TextField, TextFieldProps } from "./components/TextField/TextField.js";
71
+ import { ThemePicker, ThemePickerProps } from "./components/ThemePicker/ThemePicker.js";
72
+ import { Toast, ToastProps } from "./components/Toast/Toast.js";
73
+ import { Tooltip, TooltipProps } from "./components/Tooltip/Tooltip.js";
74
+ import { TopBar, TopBarProps } from "./components/TopBar/TopBar.js";
75
+ import { Tour, TourProps, TourStep, useTour } from "./components/Tour/Tour.js";
76
+ import { AiMark, AiMarkProps } from "./components/AiMark/AiMark.js";
77
+ import { TreeList, TreeListProps, TreeMark, TreeNode } from "./components/TreeList/TreeList.js";
78
+ import { CodeLanguage, Token, TokenClass, Tokenizer } from "./components/CodeView/tokens.js";
79
+ import { CustomIcon, Icon, IconProps, IconSource } from "./icons/Icon.js";
80
+ import { icons } from "./icons/map.js";
81
+ import { preloadIcons } from "./icons/store.js";
82
+ import { MOTION } from "./motion.js";
83
+ import { ThemeSetting, divergeToken, heatToken, initTheme, setAccent, setTheme, textOn } from "./theme.js";
84
+ import { announce } from "./announce.js";
85
+ import { Workbench, WorkbenchApi, WorkbenchHandle, WorkbenchLayout, WorkbenchProps, WorkbenchRegion, WorkbenchView, useWorkbench } from "./components/Workbench/Workbench.js";
86
+ export { AccentPicker, type AccentPickerProps, ActionBar, type ActionBarAction, type ActionBarProps, AiMark, type AiMarkProps, Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, Badge, type BadgeProps, type BadgeStatus, BarChart, type BarChartProps, type BarDatum, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonProps, Calendar, type CalendarProps, Card, type CardProps, Checkbox, type CheckboxProps, type CodeLanguage, type CodeLink, CodeText, type CodeTextProps, CodeView, type CodeViewHandle, type CodeViewProps, CommandPalette, type CommandPaletteProps, type ConsoleExtra, ConsoleLayout, type ConsoleLayoutProps, type CountUnit, type CustomIcon, type DangerConfirm, DangerZone, type DangerZoneProps, DataTable, type DataTableColumn, type DataTableFilter, type DataTableProps, type DataTableView, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DayState, type Decimals, DetailList, type DetailListItem, type DetailListProps, Dialog, type DialogProps, Drawer, type DrawerProps, EmptyState, type EmptyStateProps, ErrorPage, type ErrorPageProps, type EventKind, EventTimeline, type EventTimelineProps, FileUpload, type FileUploadProps, type FilterOption, type FilterValue, FormGrid, type FormGridProps, GraphDefs, GraphLegend, type GraphLegendItem, type GraphLegendProps, Grid, type GridProps, Icon, IconButton, type IconButtonHint, type IconButtonProps, type IconName, type IconProps, type IconSource, InlineCode, type InlineCodeProps, KpiCard, type KpiCardProps, LayerGraph, type LayerGraphEdge, type LayerGraphNode, type LayerGraphProps, type LineBand, LineChart, type LineChartProps, type LineSeries, type LineThreshold, LoadingBar, type LoadingBarProps, LoginCard, type LoginCardProps, MOTION, Markdown, type MarkdownProps, Menu, type MenuItem, type MenuProps, Meter, type MeterProps, type MobileTab, MobileTabBar, type MobileTabBarProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, type NavBrand, type NavItem, type NavSection, NotificationBell, type NotificationBellProps, type NotificationItem, type OnRef, Page, type PageProps, type PaletteItem, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressRing, type ProgressRingProps, type ProjectOption, type ProjectStatus, ProjectSwitcher, type ProjectSwitcherProps, RadioGroup, type RadioGroupProps, type RadioOption, type RangeValue, type RefHref, type Row, type RowKey, SearchField, type SearchFieldProps, Section, SectionGroup, type SectionGroupProps, SectionGroupToggle, type SectionGroupToggleProps, type SectionProps, SegmentedControl, type SegmentedControlProps, type SegmentedItem, Select, type SelectOption, type SelectProps, type SettingsCategory, SettingsLayout, type SettingsLayoutProps, SettingsSection, type SettingsSectionProps, SideNav, type SideNavProps, Skeleton, type SkeletonProps, SplitPane, type SplitPaneProps, StatusBand, type StatusBandProps, StatusLegend, type StatusSegment, Suggestion, type SuggestionProps, Switch, type SwitchProps, type TabItem, Tabs, type TabsProps, Tag, type TagProps, Term, type TermDef, type TermProps, type TermsMark, TextArea, type TextAreaProps, TextField, type TextFieldProps, ThemePicker, type ThemePickerProps, type ThemeSetting, TimeControl, type TimeControlProps, type TimelineEvent, Toast, type ToastProps, type Token, type TokenClass, type Tokenizer, Tooltip, type TooltipProps, TopBar, type TopBarProps, type Total, Tour, type TourProps, type TourStep, TreeList, type TreeListProps, type TreeMark, type TreeNode, type UploadFile, Workbench, type WorkbenchApi, type WorkbenchHandle, type WorkbenchLayout, type WorkbenchProps, type WorkbenchRegion, type WorkbenchView, type Zone, ZoneMap, type ZoneMapProps, addMessages, announce, consoleZoom, divergeToken, focusMain, format, heatToken, icons, initTheme, isCodeRef, preloadIcons, safeHref, setAccent, setLocale, setTheme, tr as t, textOn, useTour, useWorkbench };