@seanyeh77/ui 0.42.0 → 0.43.1

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 (421) hide show
  1. package/dist/bundle.js +24 -24
  2. package/dist/bundle.js.map +1 -1
  3. package/dist/components/AccentPicker/AccentPicker.js +3 -0
  4. package/dist/components/AccentPicker/AccentPicker.js.map +1 -1
  5. package/dist/components/Alert/Alert.js +3 -0
  6. package/dist/components/Alert/Alert.js.map +1 -1
  7. package/dist/components/AppShell/AppShell.js +3 -0
  8. package/dist/components/AppShell/AppShell.js.map +1 -1
  9. package/dist/components/Button/Button.js +2 -1
  10. package/dist/components/Button/Button.js.map +1 -1
  11. package/dist/components/Calendar/Calendar.js +4 -0
  12. package/dist/components/Calendar/Calendar.js.map +1 -1
  13. package/dist/components/CodeView/CodeView.js +4 -0
  14. package/dist/components/CodeView/CodeView.js.map +1 -1
  15. package/dist/components/CommandPalette/CommandPalette.js +8 -0
  16. package/dist/components/CommandPalette/CommandPalette.js.map +1 -1
  17. package/dist/components/ConsoleLayout/ConsoleLayout.js +4 -0
  18. package/dist/components/ConsoleLayout/ConsoleLayout.js.map +1 -1
  19. package/dist/components/DataTable/DataTable.js +10 -3
  20. package/dist/components/DataTable/DataTable.js.map +1 -1
  21. package/dist/components/DataTable/SortButton.js +6 -0
  22. package/dist/components/DataTable/SortButton.js.map +1 -1
  23. package/dist/components/DataTable/parts.js +14 -4
  24. package/dist/components/DataTable/parts.js.map +1 -1
  25. package/dist/components/DatePicker/DatePicker.js +3 -0
  26. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  27. package/dist/components/DateRangePicker/DateRangePicker.js +3 -0
  28. package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
  29. package/dist/components/Dialog/Dialog.js +3 -0
  30. package/dist/components/Dialog/Dialog.js.map +1 -1
  31. package/dist/components/Drawer/Drawer.js +3 -0
  32. package/dist/components/Drawer/Drawer.js.map +1 -1
  33. package/dist/components/EventTimeline/EventTimeline.js +6 -0
  34. package/dist/components/EventTimeline/EventTimeline.js.map +1 -1
  35. package/dist/components/FileUpload/FileUpload.js +5 -0
  36. package/dist/components/FileUpload/FileUpload.js.map +1 -1
  37. package/dist/components/IconButton/IconButton.js +3 -0
  38. package/dist/components/IconButton/IconButton.js.map +1 -1
  39. package/dist/components/LayerGraph/LayerGraph.js +16 -8
  40. package/dist/components/LayerGraph/LayerGraph.js.map +1 -1
  41. package/dist/components/LineChart/LineChart.js +1 -1
  42. package/dist/components/LineChart/LineChart.js.map +1 -1
  43. package/dist/components/LoginCard/LoginCard.js +4 -0
  44. package/dist/components/LoginCard/LoginCard.js.map +1 -1
  45. package/dist/components/Markdown/Markdown.js +7 -4
  46. package/dist/components/Markdown/Markdown.js.map +1 -1
  47. package/dist/components/Menu/Menu.js +3 -0
  48. package/dist/components/Menu/Menu.js.map +1 -1
  49. package/dist/components/MultiSelect/MultiSelect.js +3 -0
  50. package/dist/components/MultiSelect/MultiSelect.js.map +1 -1
  51. package/dist/components/NotificationBell/NotificationBell.js +3 -0
  52. package/dist/components/NotificationBell/NotificationBell.js.map +1 -1
  53. package/dist/components/ProjectSwitcher/ProjectSwitcher.js +3 -0
  54. package/dist/components/ProjectSwitcher/ProjectSwitcher.js.map +1 -1
  55. package/dist/components/SearchField/SearchField.js +4 -0
  56. package/dist/components/SearchField/SearchField.js.map +1 -1
  57. package/dist/components/Section/Section.js +6 -1
  58. package/dist/components/Section/Section.js.map +1 -1
  59. package/dist/components/SegmentedControl/SegmentedControl.js +4 -4
  60. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  61. package/dist/components/Select/Select.js +5 -0
  62. package/dist/components/Select/Select.js.map +1 -1
  63. package/dist/components/SideNav/SideNav.js +5 -0
  64. package/dist/components/SideNav/SideNav.js.map +1 -1
  65. package/dist/components/SplitPane/SplitPane.js +6 -6
  66. package/dist/components/SplitPane/SplitPane.js.map +1 -1
  67. package/dist/components/Suggestion/Suggestion.js +3 -0
  68. package/dist/components/Suggestion/Suggestion.js.map +1 -1
  69. package/dist/components/Tabs/Tabs.js +5 -5
  70. package/dist/components/Tabs/Tabs.js.map +1 -1
  71. package/dist/components/Tag/Tag.js +4 -0
  72. package/dist/components/Tag/Tag.js.map +1 -1
  73. package/dist/components/Term/Term.js +5 -0
  74. package/dist/components/Term/Term.js.map +1 -1
  75. package/dist/components/Toast/Toast.js +3 -0
  76. package/dist/components/Toast/Toast.js.map +1 -1
  77. package/dist/components/TopBar/TopBar.js +4 -0
  78. package/dist/components/TopBar/TopBar.js.map +1 -1
  79. package/dist/components/Tour/Tour.js +3 -3
  80. package/dist/components/Tour/Tour.js.map +1 -1
  81. package/dist/components/TreeList/TreeList.js +6 -0
  82. package/dist/components/TreeList/TreeList.js.map +1 -1
  83. package/dist/components/Workbench/Workbench.js +12 -7
  84. package/dist/components/Workbench/Workbench.js.map +1 -1
  85. package/dist/icons/Icon.d.ts +5 -4
  86. package/dist/icons/Icon.js +16 -40
  87. package/dist/icons/Icon.js.map +1 -1
  88. package/dist/icons/Spinner.js +18 -0
  89. package/dist/icons/Spinner.js.map +1 -0
  90. package/dist/icons/all.js +212 -0
  91. package/dist/icons/all.js.map +1 -0
  92. package/dist/icons/map.d.ts +3 -0
  93. package/dist/icons/map.js +31 -0
  94. package/dist/icons/map.js.map +1 -0
  95. package/dist/icons/names.d.ts +253 -0
  96. package/dist/icons/names.js +153 -0
  97. package/dist/icons/names.js.map +1 -0
  98. package/dist/icons/ph/archive.d.ts +10 -0
  99. package/dist/icons/ph/archive.js +11 -0
  100. package/dist/icons/ph/archive.js.map +1 -0
  101. package/dist/icons/ph/arrow-down.d.ts +10 -0
  102. package/dist/icons/ph/arrow-down.js +11 -0
  103. package/dist/icons/ph/arrow-down.js.map +1 -0
  104. package/dist/icons/ph/arrow-left.d.ts +10 -0
  105. package/dist/icons/ph/arrow-left.js +11 -0
  106. package/dist/icons/ph/arrow-left.js.map +1 -0
  107. package/dist/icons/ph/arrow-right.d.ts +10 -0
  108. package/dist/icons/ph/arrow-right.js +11 -0
  109. package/dist/icons/ph/arrow-right.js.map +1 -0
  110. package/dist/icons/ph/arrow-square-out.d.ts +10 -0
  111. package/dist/icons/ph/arrow-square-out.js +11 -0
  112. package/dist/icons/ph/arrow-square-out.js.map +1 -0
  113. package/dist/icons/ph/arrow-u-up-left.d.ts +10 -0
  114. package/dist/icons/ph/arrow-u-up-left.js +11 -0
  115. package/dist/icons/ph/arrow-u-up-left.js.map +1 -0
  116. package/dist/icons/ph/arrow-u-up-right.d.ts +10 -0
  117. package/dist/icons/ph/arrow-u-up-right.js +11 -0
  118. package/dist/icons/ph/arrow-u-up-right.js.map +1 -0
  119. package/dist/icons/ph/arrow-up.d.ts +10 -0
  120. package/dist/icons/ph/arrow-up.js +11 -0
  121. package/dist/icons/ph/arrow-up.js.map +1 -0
  122. package/dist/icons/ph/arrows-clockwise.d.ts +10 -0
  123. package/dist/icons/ph/arrows-clockwise.js +11 -0
  124. package/dist/icons/ph/arrows-clockwise.js.map +1 -0
  125. package/dist/icons/ph/arrows-in-line-vertical.d.ts +10 -0
  126. package/dist/icons/ph/arrows-in-line-vertical.js +11 -0
  127. package/dist/icons/ph/arrows-in-line-vertical.js.map +1 -0
  128. package/dist/icons/ph/arrows-left-right.d.ts +10 -0
  129. package/dist/icons/ph/arrows-left-right.js +11 -0
  130. package/dist/icons/ph/arrows-left-right.js.map +1 -0
  131. package/dist/icons/ph/arrows-out-line-vertical.d.ts +10 -0
  132. package/dist/icons/ph/arrows-out-line-vertical.js +11 -0
  133. package/dist/icons/ph/arrows-out-line-vertical.js.map +1 -0
  134. package/dist/icons/ph/bell.d.ts +10 -0
  135. package/dist/icons/ph/bell.js +11 -0
  136. package/dist/icons/ph/bell.js.map +1 -0
  137. package/dist/icons/ph/brackets-curly.d.ts +10 -0
  138. package/dist/icons/ph/brackets-curly.js +11 -0
  139. package/dist/icons/ph/brackets-curly.js.map +1 -0
  140. package/dist/icons/ph/calendar-blank.d.ts +10 -0
  141. package/dist/icons/ph/calendar-blank.js +11 -0
  142. package/dist/icons/ph/calendar-blank.js.map +1 -0
  143. package/dist/icons/ph/caret-down.d.ts +10 -0
  144. package/dist/icons/ph/caret-down.js +11 -0
  145. package/dist/icons/ph/caret-down.js.map +1 -0
  146. package/dist/icons/ph/caret-left.d.ts +10 -0
  147. package/dist/icons/ph/caret-left.js +11 -0
  148. package/dist/icons/ph/caret-left.js.map +1 -0
  149. package/dist/icons/ph/caret-right.d.ts +10 -0
  150. package/dist/icons/ph/caret-right.js +11 -0
  151. package/dist/icons/ph/caret-right.js.map +1 -0
  152. package/dist/icons/ph/caret-up.d.ts +10 -0
  153. package/dist/icons/ph/caret-up.js +11 -0
  154. package/dist/icons/ph/caret-up.js.map +1 -0
  155. package/dist/icons/ph/chart-bar.d.ts +10 -0
  156. package/dist/icons/ph/chart-bar.js +11 -0
  157. package/dist/icons/ph/chart-bar.js.map +1 -0
  158. package/dist/icons/ph/chart-line.d.ts +10 -0
  159. package/dist/icons/ph/chart-line.js +11 -0
  160. package/dist/icons/ph/chart-line.js.map +1 -0
  161. package/dist/icons/ph/chart-pie.d.ts +10 -0
  162. package/dist/icons/ph/chart-pie.js +11 -0
  163. package/dist/icons/ph/chart-pie.js.map +1 -0
  164. package/dist/icons/ph/chat-centered.d.ts +10 -0
  165. package/dist/icons/ph/chat-centered.js +11 -0
  166. package/dist/icons/ph/chat-centered.js.map +1 -0
  167. package/dist/icons/ph/check-circle.d.ts +10 -0
  168. package/dist/icons/ph/check-circle.js +11 -0
  169. package/dist/icons/ph/check-circle.js.map +1 -0
  170. package/dist/icons/ph/check-square.d.ts +10 -0
  171. package/dist/icons/ph/check-square.js +11 -0
  172. package/dist/icons/ph/check-square.js.map +1 -0
  173. package/dist/icons/ph/check.d.ts +10 -0
  174. package/dist/icons/ph/check.js +11 -0
  175. package/dist/icons/ph/check.js.map +1 -0
  176. package/dist/icons/ph/circle-notch.d.ts +10 -0
  177. package/dist/icons/ph/circle-notch.js +11 -0
  178. package/dist/icons/ph/circle-notch.js.map +1 -0
  179. package/dist/icons/ph/clock.d.ts +10 -0
  180. package/dist/icons/ph/clock.js +11 -0
  181. package/dist/icons/ph/clock.js.map +1 -0
  182. package/dist/icons/ph/cloud.d.ts +10 -0
  183. package/dist/icons/ph/cloud.js +11 -0
  184. package/dist/icons/ph/cloud.js.map +1 -0
  185. package/dist/icons/ph/columns.d.ts +10 -0
  186. package/dist/icons/ph/columns.js +11 -0
  187. package/dist/icons/ph/columns.js.map +1 -0
  188. package/dist/icons/ph/command.d.ts +10 -0
  189. package/dist/icons/ph/command.js +11 -0
  190. package/dist/icons/ph/command.js.map +1 -0
  191. package/dist/icons/ph/copy.d.ts +10 -0
  192. package/dist/icons/ph/copy.js +11 -0
  193. package/dist/icons/ph/copy.js.map +1 -0
  194. package/dist/icons/ph/corners-in.d.ts +10 -0
  195. package/dist/icons/ph/corners-in.js +11 -0
  196. package/dist/icons/ph/corners-in.js.map +1 -0
  197. package/dist/icons/ph/corners-out.d.ts +10 -0
  198. package/dist/icons/ph/corners-out.js +11 -0
  199. package/dist/icons/ph/corners-out.js.map +1 -0
  200. package/dist/icons/ph/cpu.d.ts +10 -0
  201. package/dist/icons/ph/cpu.js +11 -0
  202. package/dist/icons/ph/cpu.js.map +1 -0
  203. package/dist/icons/ph/database.d.ts +10 -0
  204. package/dist/icons/ph/database.js +11 -0
  205. package/dist/icons/ph/database.js.map +1 -0
  206. package/dist/icons/ph/dots-six-vertical.d.ts +10 -0
  207. package/dist/icons/ph/dots-six-vertical.js +11 -0
  208. package/dist/icons/ph/dots-six-vertical.js.map +1 -0
  209. package/dist/icons/ph/dots-three-vertical.d.ts +10 -0
  210. package/dist/icons/ph/dots-three-vertical.js +11 -0
  211. package/dist/icons/ph/dots-three-vertical.js.map +1 -0
  212. package/dist/icons/ph/dots-three.d.ts +10 -0
  213. package/dist/icons/ph/dots-three.js +11 -0
  214. package/dist/icons/ph/dots-three.js.map +1 -0
  215. package/dist/icons/ph/download-simple.d.ts +10 -0
  216. package/dist/icons/ph/download-simple.js +11 -0
  217. package/dist/icons/ph/download-simple.js.map +1 -0
  218. package/dist/icons/ph/envelope-simple.d.ts +10 -0
  219. package/dist/icons/ph/envelope-simple.js +11 -0
  220. package/dist/icons/ph/envelope-simple.js.map +1 -0
  221. package/dist/icons/ph/eye-slash.d.ts +10 -0
  222. package/dist/icons/ph/eye-slash.js +11 -0
  223. package/dist/icons/ph/eye-slash.js.map +1 -0
  224. package/dist/icons/ph/eye.d.ts +10 -0
  225. package/dist/icons/ph/eye.js +11 -0
  226. package/dist/icons/ph/eye.js.map +1 -0
  227. package/dist/icons/ph/file-code.d.ts +10 -0
  228. package/dist/icons/ph/file-code.js +11 -0
  229. package/dist/icons/ph/file-code.js.map +1 -0
  230. package/dist/icons/ph/file-text.d.ts +10 -0
  231. package/dist/icons/ph/file-text.js +11 -0
  232. package/dist/icons/ph/file-text.js.map +1 -0
  233. package/dist/icons/ph/file.d.ts +10 -0
  234. package/dist/icons/ph/file.js +11 -0
  235. package/dist/icons/ph/file.js.map +1 -0
  236. package/dist/icons/ph/floppy-disk.d.ts +10 -0
  237. package/dist/icons/ph/floppy-disk.js +11 -0
  238. package/dist/icons/ph/floppy-disk.js.map +1 -0
  239. package/dist/icons/ph/folder-open.d.ts +10 -0
  240. package/dist/icons/ph/folder-open.js +11 -0
  241. package/dist/icons/ph/folder-open.js.map +1 -0
  242. package/dist/icons/ph/folder.d.ts +10 -0
  243. package/dist/icons/ph/folder.js +11 -0
  244. package/dist/icons/ph/folder.js.map +1 -0
  245. package/dist/icons/ph/function.d.ts +10 -0
  246. package/dist/icons/ph/function.js +11 -0
  247. package/dist/icons/ph/function.js.map +1 -0
  248. package/dist/icons/ph/funnel.d.ts +10 -0
  249. package/dist/icons/ph/funnel.js +11 -0
  250. package/dist/icons/ph/funnel.js.map +1 -0
  251. package/dist/icons/ph/gauge.d.ts +10 -0
  252. package/dist/icons/ph/gauge.js +11 -0
  253. package/dist/icons/ph/gauge.js.map +1 -0
  254. package/dist/icons/ph/gear.d.ts +10 -0
  255. package/dist/icons/ph/gear.js +11 -0
  256. package/dist/icons/ph/gear.js.map +1 -0
  257. package/dist/icons/ph/globe.d.ts +10 -0
  258. package/dist/icons/ph/globe.js +11 -0
  259. package/dist/icons/ph/globe.js.map +1 -0
  260. package/dist/icons/ph/hard-drives.d.ts +10 -0
  261. package/dist/icons/ph/hard-drives.js +11 -0
  262. package/dist/icons/ph/hard-drives.js.map +1 -0
  263. package/dist/icons/ph/hash.d.ts +10 -0
  264. package/dist/icons/ph/hash.js +11 -0
  265. package/dist/icons/ph/hash.js.map +1 -0
  266. package/dist/icons/ph/heart.d.ts +10 -0
  267. package/dist/icons/ph/heart.js +11 -0
  268. package/dist/icons/ph/heart.js.map +1 -0
  269. package/dist/icons/ph/house.d.ts +10 -0
  270. package/dist/icons/ph/house.js +11 -0
  271. package/dist/icons/ph/house.js.map +1 -0
  272. package/dist/icons/ph/image.d.ts +10 -0
  273. package/dist/icons/ph/image.js +11 -0
  274. package/dist/icons/ph/image.js.map +1 -0
  275. package/dist/icons/ph/info.d.ts +10 -0
  276. package/dist/icons/ph/info.js +11 -0
  277. package/dist/icons/ph/info.js.map +1 -0
  278. package/dist/icons/ph/key.d.ts +10 -0
  279. package/dist/icons/ph/key.js +11 -0
  280. package/dist/icons/ph/key.js.map +1 -0
  281. package/dist/icons/ph/keyboard.d.ts +10 -0
  282. package/dist/icons/ph/keyboard.js +11 -0
  283. package/dist/icons/ph/keyboard.js.map +1 -0
  284. package/dist/icons/ph/layout.d.ts +10 -0
  285. package/dist/icons/ph/layout.js +11 -0
  286. package/dist/icons/ph/layout.js.map +1 -0
  287. package/dist/icons/ph/link.d.ts +10 -0
  288. package/dist/icons/ph/link.js +11 -0
  289. package/dist/icons/ph/link.js.map +1 -0
  290. package/dist/icons/ph/list-bullets.d.ts +10 -0
  291. package/dist/icons/ph/list-bullets.js +11 -0
  292. package/dist/icons/ph/list-bullets.js.map +1 -0
  293. package/dist/icons/ph/list.d.ts +10 -0
  294. package/dist/icons/ph/list.js +11 -0
  295. package/dist/icons/ph/list.js.map +1 -0
  296. package/dist/icons/ph/lock.d.ts +10 -0
  297. package/dist/icons/ph/lock.js +11 -0
  298. package/dist/icons/ph/lock.js.map +1 -0
  299. package/dist/icons/ph/magnifying-glass.d.ts +10 -0
  300. package/dist/icons/ph/magnifying-glass.js +11 -0
  301. package/dist/icons/ph/magnifying-glass.js.map +1 -0
  302. package/dist/icons/ph/minus.d.ts +10 -0
  303. package/dist/icons/ph/minus.js +11 -0
  304. package/dist/icons/ph/minus.js.map +1 -0
  305. package/dist/icons/ph/monitor.d.ts +10 -0
  306. package/dist/icons/ph/monitor.js +11 -0
  307. package/dist/icons/ph/monitor.js.map +1 -0
  308. package/dist/icons/ph/moon.d.ts +10 -0
  309. package/dist/icons/ph/moon.js +11 -0
  310. package/dist/icons/ph/moon.js.map +1 -0
  311. package/dist/icons/ph/paper-plane-tilt.d.ts +10 -0
  312. package/dist/icons/ph/paper-plane-tilt.js +11 -0
  313. package/dist/icons/ph/paper-plane-tilt.js.map +1 -0
  314. package/dist/icons/ph/pencil-simple.d.ts +10 -0
  315. package/dist/icons/ph/pencil-simple.js +11 -0
  316. package/dist/icons/ph/pencil-simple.js.map +1 -0
  317. package/dist/icons/ph/plus.d.ts +10 -0
  318. package/dist/icons/ph/plus.js +11 -0
  319. package/dist/icons/ph/plus.js.map +1 -0
  320. package/dist/icons/ph/printer.d.ts +10 -0
  321. package/dist/icons/ph/printer.js +11 -0
  322. package/dist/icons/ph/printer.js.map +1 -0
  323. package/dist/icons/ph/pulse.d.ts +10 -0
  324. package/dist/icons/ph/pulse.js +11 -0
  325. package/dist/icons/ph/pulse.js.map +1 -0
  326. package/dist/icons/ph/push-pin.d.ts +10 -0
  327. package/dist/icons/ph/push-pin.js +11 -0
  328. package/dist/icons/ph/push-pin.js.map +1 -0
  329. package/dist/icons/ph/question.d.ts +10 -0
  330. package/dist/icons/ph/question.js +11 -0
  331. package/dist/icons/ph/question.js.map +1 -0
  332. package/dist/icons/ph/share-network.d.ts +10 -0
  333. package/dist/icons/ph/share-network.js +11 -0
  334. package/dist/icons/ph/share-network.js.map +1 -0
  335. package/dist/icons/ph/shield.d.ts +10 -0
  336. package/dist/icons/ph/shield.js +11 -0
  337. package/dist/icons/ph/shield.js.map +1 -0
  338. package/dist/icons/ph/sidebar-simple.d.ts +10 -0
  339. package/dist/icons/ph/sidebar-simple.js +11 -0
  340. package/dist/icons/ph/sidebar-simple.js.map +1 -0
  341. package/dist/icons/ph/sign-in.d.ts +10 -0
  342. package/dist/icons/ph/sign-in.js +11 -0
  343. package/dist/icons/ph/sign-in.js.map +1 -0
  344. package/dist/icons/ph/sign-out.d.ts +10 -0
  345. package/dist/icons/ph/sign-out.js +11 -0
  346. package/dist/icons/ph/sign-out.js.map +1 -0
  347. package/dist/icons/ph/sliders-horizontal.d.ts +10 -0
  348. package/dist/icons/ph/sliders-horizontal.js +11 -0
  349. package/dist/icons/ph/sliders-horizontal.js.map +1 -0
  350. package/dist/icons/ph/sort-ascending.d.ts +10 -0
  351. package/dist/icons/ph/sort-ascending.js +11 -0
  352. package/dist/icons/ph/sort-ascending.js.map +1 -0
  353. package/dist/icons/ph/sparkle.d.ts +10 -0
  354. package/dist/icons/ph/sparkle.js +11 -0
  355. package/dist/icons/ph/sparkle.js.map +1 -0
  356. package/dist/icons/ph/square.d.ts +10 -0
  357. package/dist/icons/ph/square.js +11 -0
  358. package/dist/icons/ph/square.js.map +1 -0
  359. package/dist/icons/ph/squares-four.d.ts +10 -0
  360. package/dist/icons/ph/squares-four.js +11 -0
  361. package/dist/icons/ph/squares-four.js.map +1 -0
  362. package/dist/icons/ph/stack.d.ts +10 -0
  363. package/dist/icons/ph/stack.js +11 -0
  364. package/dist/icons/ph/stack.js.map +1 -0
  365. package/dist/icons/ph/star.d.ts +10 -0
  366. package/dist/icons/ph/star.js +11 -0
  367. package/dist/icons/ph/star.js.map +1 -0
  368. package/dist/icons/ph/sun.d.ts +10 -0
  369. package/dist/icons/ph/sun.js +11 -0
  370. package/dist/icons/ph/sun.js.map +1 -0
  371. package/dist/icons/ph/tag.d.ts +10 -0
  372. package/dist/icons/ph/tag.js +11 -0
  373. package/dist/icons/ph/tag.js.map +1 -0
  374. package/dist/icons/ph/terminal-window.d.ts +10 -0
  375. package/dist/icons/ph/terminal-window.js +11 -0
  376. package/dist/icons/ph/terminal-window.js.map +1 -0
  377. package/dist/icons/ph/trash.d.ts +10 -0
  378. package/dist/icons/ph/trash.js +11 -0
  379. package/dist/icons/ph/trash.js.map +1 -0
  380. package/dist/icons/ph/trend-up.d.ts +10 -0
  381. package/dist/icons/ph/trend-up.js +11 -0
  382. package/dist/icons/ph/trend-up.js.map +1 -0
  383. package/dist/icons/ph/upload-simple.d.ts +10 -0
  384. package/dist/icons/ph/upload-simple.js +11 -0
  385. package/dist/icons/ph/upload-simple.js.map +1 -0
  386. package/dist/icons/ph/user.d.ts +10 -0
  387. package/dist/icons/ph/user.js +11 -0
  388. package/dist/icons/ph/user.js.map +1 -0
  389. package/dist/icons/ph/users.d.ts +10 -0
  390. package/dist/icons/ph/users.js +11 -0
  391. package/dist/icons/ph/users.js.map +1 -0
  392. package/dist/icons/ph/warning-circle.d.ts +10 -0
  393. package/dist/icons/ph/warning-circle.js +11 -0
  394. package/dist/icons/ph/warning-circle.js.map +1 -0
  395. package/dist/icons/ph/warning.d.ts +10 -0
  396. package/dist/icons/ph/warning.js +11 -0
  397. package/dist/icons/ph/warning.js.map +1 -0
  398. package/dist/icons/ph/x-circle.d.ts +10 -0
  399. package/dist/icons/ph/x-circle.js +11 -0
  400. package/dist/icons/ph/x-circle.js.map +1 -0
  401. package/dist/icons/ph/x.d.ts +10 -0
  402. package/dist/icons/ph/x.js +11 -0
  403. package/dist/icons/ph/x.js.map +1 -0
  404. package/dist/icons/store.d.ts +6 -0
  405. package/dist/icons/store.js +77 -0
  406. package/dist/icons/store.js.map +1 -0
  407. package/dist/index.d.ts +5 -3
  408. package/dist/index.js +6 -4
  409. package/dist/internal/Field.js +3 -0
  410. package/dist/internal/Field.js.map +1 -1
  411. package/dist/internal/scrollHint.js +8 -5
  412. package/dist/internal/scrollHint.js.map +1 -1
  413. package/dist/internal/tableTools.js +6 -1
  414. package/dist/internal/tableTools.js.map +1 -1
  415. package/dist/internal/util.js +5 -1
  416. package/dist/internal/util.js.map +1 -1
  417. package/docs/theme.md +2 -0
  418. package/package.json +4 -2
  419. package/dist/icons/data.d.ts +0 -150
  420. package/dist/icons/data.js +0 -256
  421. package/dist/icons/data.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Field.js","names":[],"sources":["../../src/internal/Field.tsx"],"sourcesContent":["import * as React from 'react';\nimport { CHECK, Icon } from '../icons/Icon';\nimport { cx } from './util';\n\n/** A field's label above it, with the red asterisk when required. A <label> when it names one input, otherwise a <span>. */\nexport function FieldLabel({ htmlFor, id, required, children }: { htmlFor?: string; id?: string; required?: boolean; children: React.ReactNode }) {\n const Tag = htmlFor ? 'label' : 'span';\n return (\n <Tag htmlFor={htmlFor} id={id} className=\"ui-field-label\">\n {children}\n {required ? (\n <span className=\"ui-req\" aria-hidden=\"true\">\n {' *'}\n </span>\n ) : null}\n </Tag>\n );\n}\n\n/** The mark inside a check box: a drawn check, a dash for 'mixed', or nothing. The check draws itself only when it\n * turns on after mount, never when a list or menu opens with it already on. */\nexport function CheckMark({ v }: { v: boolean | 'mixed' }) {\n const [prev, setPrev] = React.useState(v);\n const [draw, setDraw] = React.useState(false);\n if (prev !== v) {\n setPrev(v);\n setDraw(v === true);\n }\n if (v === 'mixed') return <span className=\"ui-check-dash\" />;\n if (!v) return null;\n return (\n <svg\n className={cx(draw && 'ui-draw')}\n width={14}\n height={14}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d={CHECK} />\n </svg>\n );\n}\n\n/** The error mark inside a field with an error: a red warning circle at the field's right end (TextField and every other\n * field type, so an error always shows the red border and this icon). `inline` sits in a flex row before the field's\n * own trailing button (show password, calendar, caret) instead of over the input. */\nexport function FieldErrorIcon({ inline }: { inline?: boolean }) {\n return <Icon name=\"warning-circle\" className={cx('ui-field-icon', inline && 'is-inline')} />;\n}\n\n/** The line under a field: the error (cause and fix) when there is one, otherwise the hint. The error is inserted only\n * while there is one, keyed by its text: a new error is a new alert node, announced once; the hint never announces. */\nexport function FieldMessage({ id, error, hint, className }: { id: string; error?: string; hint?: React.ReactNode; className?: string }) {\n if (error)\n return (\n <div key={error} id={id} className={cx('ui-field-error', className)} role=\"alert\">\n {error}\n </div>\n );\n return hint ? (\n <div id={id} className={cx('ui-field-hint', className)}>\n {hint}\n </div>\n ) : null;\n}\n"],"mappings":";;;;;;;AAKA,SAAgB,WAAW,EAAE,SAAS,IAAI,UAAU,YAA8F;CAEhJ,OACE,qBAFU,UAAU,UAAU,QAE9B;EAAc;EAAa;EAAI,WAAU;EAAzC,UAAA,CACG,UACA,WACC,oBAAC,QAAD;GAAM,WAAU;GAAS,eAAY;GAClC,UAAA;EACG,CAAA,IACJ,IACD;;AAET;;;AAIA,SAAgB,UAAU,EAAE,KAA+B;CACzD,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,CAAC;CACxC,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,KAAK;CAC5C,IAAI,SAAS,GAAG;EACd,QAAQ,CAAC;EACT,QAAQ,MAAM,IAAI;CACpB;CACA,IAAI,MAAM,SAAS,OAAO,oBAAC,QAAD,EAAM,WAAU,gBAAiB,CAAA;CAC3D,IAAI,CAAC,GAAG,OAAO;CACf,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,QAAQ,SAAS;EAC/B,OAAO;EACP,QAAQ;EACR,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAa;EACb,eAAc;EACd,gBAAe;EACf,eAAY;EAEZ,UAAA,oBAAC,QAAD,EAAM,GAAG,MAAQ,CAAA;CACd,CAAA;AAET;;;;AAKA,SAAgB,eAAe,EAAE,UAAgC;CAC/D,OAAO,oBAAC,MAAD;EAAM,MAAK;EAAiB,WAAW,GAAG,iBAAiB,UAAU,WAAW;CAAI,CAAA;AAC7F;;;AAIA,SAAgB,aAAa,EAAE,IAAI,OAAO,MAAM,aAAyF;CACvI,IAAI,OACF,OACE,oBAAC,OAAD;EAAqB;EAAI,WAAW,GAAG,kBAAkB,SAAS;EAAG,MAAK;EACvE,UAAA;CACE,GAFK,KAEL;CAET,OAAO,OACL,oBAAC,OAAD;EAAS;EAAI,WAAW,GAAG,iBAAiB,SAAS;EAClD,UAAA;CACE,CAAA,IACH;AACN"}
1
+ {"version":3,"file":"Field.js","names":["phWarningCircle"],"sources":["../../src/internal/Field.tsx"],"sourcesContent":["import * as React from 'react';\nimport { CHECK, Icon } from '../icons/Icon';\nimport { cx } from './util';\nimport { includeIcons } from '../icons/store';\nimport phWarningCircle from '../icons/ph/warning-circle';\n\nincludeIcons(phWarningCircle);\n\n/** A field's label above it, with the red asterisk when required. A <label> when it names one input, otherwise a <span>. */\nexport function FieldLabel({ htmlFor, id, required, children }: { htmlFor?: string; id?: string; required?: boolean; children: React.ReactNode }) {\n const Tag = htmlFor ? 'label' : 'span';\n return (\n <Tag htmlFor={htmlFor} id={id} className=\"ui-field-label\">\n {children}\n {required ? (\n <span className=\"ui-req\" aria-hidden=\"true\">\n {' *'}\n </span>\n ) : null}\n </Tag>\n );\n}\n\n/** The mark inside a check box: a drawn check, a dash for 'mixed', or nothing. The check draws itself only when it\n * turns on after mount, never when a list or menu opens with it already on. */\nexport function CheckMark({ v }: { v: boolean | 'mixed' }) {\n const [prev, setPrev] = React.useState(v);\n const [draw, setDraw] = React.useState(false);\n if (prev !== v) {\n setPrev(v);\n setDraw(v === true);\n }\n if (v === 'mixed') return <span className=\"ui-check-dash\" />;\n if (!v) return null;\n return (\n <svg\n className={cx(draw && 'ui-draw')}\n width={14}\n height={14}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={3.5}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d={CHECK} />\n </svg>\n );\n}\n\n/** The error mark inside a field with an error: a red warning circle at the field's right end (TextField and every other\n * field type, so an error always shows the red border and this icon). `inline` sits in a flex row before the field's\n * own trailing button (show password, calendar, caret) instead of over the input. */\nexport function FieldErrorIcon({ inline }: { inline?: boolean }) {\n return <Icon name=\"warning-circle\" className={cx('ui-field-icon', inline && 'is-inline')} />;\n}\n\n/** The line under a field: the error (cause and fix) when there is one, otherwise the hint. The error is inserted only\n * while there is one, keyed by its text: a new error is a new alert node, announced once; the hint never announces. */\nexport function FieldMessage({ id, error, hint, className }: { id: string; error?: string; hint?: React.ReactNode; className?: string }) {\n if (error)\n return (\n <div key={error} id={id} className={cx('ui-field-error', className)} role=\"alert\">\n {error}\n </div>\n );\n return hint ? (\n <div id={id} className={cx('ui-field-hint', className)}>\n {hint}\n </div>\n ) : null;\n}\n"],"mappings":";;;;;;;;AAMA,aAAaA,sBAAe;;AAG5B,SAAgB,WAAW,EAAE,SAAS,IAAI,UAAU,YAA8F;CAEhJ,OACE,qBAFU,UAAU,UAAU,QAE9B;EAAc;EAAa;EAAI,WAAU;EAAzC,UAAA,CACG,UACA,WACC,oBAAC,QAAD;GAAM,WAAU;GAAS,eAAY;GAClC,UAAA;EACG,CAAA,IACJ,IACD;;AAET;;;AAIA,SAAgB,UAAU,EAAE,KAA+B;CACzD,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,CAAC;CACxC,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,KAAK;CAC5C,IAAI,SAAS,GAAG;EACd,QAAQ,CAAC;EACT,QAAQ,MAAM,IAAI;CACpB;CACA,IAAI,MAAM,SAAS,OAAO,oBAAC,QAAD,EAAM,WAAU,gBAAiB,CAAA;CAC3D,IAAI,CAAC,GAAG,OAAO;CACf,OACE,oBAAC,OAAD;EACE,WAAW,GAAG,QAAQ,SAAS;EAC/B,OAAO;EACP,QAAQ;EACR,SAAQ;EACR,MAAK;EACL,QAAO;EACP,aAAa;EACb,eAAc;EACd,gBAAe;EACf,eAAY;EAEZ,UAAA,oBAAC,QAAD,EAAM,GAAG,MAAQ,CAAA;CACd,CAAA;AAET;;;;AAKA,SAAgB,eAAe,EAAE,UAAgC;CAC/D,OAAO,oBAAC,MAAD;EAAM,MAAK;EAAiB,WAAW,GAAG,iBAAiB,UAAU,WAAW;CAAI,CAAA;AAC7F;;;AAIA,SAAgB,aAAa,EAAE,IAAI,OAAO,MAAM,aAAyF;CACvI,IAAI,OACF,OACE,oBAAC,OAAD;EAAqB;EAAI,WAAW,GAAG,kBAAkB,SAAS;EAAG,MAAK;EACvE,UAAA;CACE,GAFK,KAEL;CAET,OAAO,OACL,oBAAC,OAAD;EAAS;EAAI,WAAW,GAAG,iBAAiB,SAAS;EAClD,UAAA;CACE,CAAA,IACH;AACN"}
@@ -1,10 +1,13 @@
1
1
  "use client";
2
2
  import { Icon } from "../icons/Icon.js";
3
3
  import { tr } from "../i18n.js";
4
- import { cx, useMedia } from "./util.js";
4
+ import { cx, resizeObserver, useMedia } from "./util.js";
5
+ import { includeIcons } from "../icons/store.js";
6
+ import arrow_right_default from "../icons/ph/arrow-right.js";
5
7
  import * as React from "react";
6
8
  import { jsx, jsxs } from "react/jsx-runtime";
7
9
  // src/internal/scrollHint.tsx
10
+ includeIcons(arrow_right_default);
8
11
  /** A box that may be wider than its container: whether it overflows, whether more is to the right, and whether the
9
12
  * person has scrolled yet. Used by LayerGraph and DataTable for the right-edge fade and the 「左右滑動」 hint. */
10
13
  function useScrollHint() {
@@ -23,9 +26,9 @@ function useScrollHint() {
23
26
  const el = ref.current;
24
27
  if (!el) return;
25
28
  measure();
26
- const ro = new ResizeObserver(measure);
27
- ro.observe(el);
28
- if (el.firstElementChild) ro.observe(el.firstElementChild);
29
+ const ro = resizeObserver(measure);
30
+ ro?.observe(el);
31
+ if (el.firstElementChild) ro?.observe(el.firstElementChild);
29
32
  let raf = 0;
30
33
  const later = () => {
31
34
  cancelAnimationFrame(raf);
@@ -39,7 +42,7 @@ function useScrollHint() {
39
42
  });
40
43
  document.fonts?.ready.then(later).catch(() => {});
41
44
  return () => {
42
- ro.disconnect();
45
+ ro?.disconnect();
43
46
  mo.disconnect();
44
47
  cancelAnimationFrame(raf);
45
48
  };
@@ -1 +1 @@
1
- {"version":3,"file":"scrollHint.js","names":[],"sources":["../../src/internal/scrollHint.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Icon } from '../icons/Icon';\nimport { tr } from '../i18n';\nimport { cx, useMedia } from './util';\n\n/** A box that may be wider than its container: whether it overflows, whether more is to the right, and whether the\n * person has scrolled yet. Used by LayerGraph and DataTable for the right-edge fade and the 「左右滑動」 hint. */\nexport function useScrollHint<E extends HTMLElement = HTMLDivElement>() {\n const ref = React.useRef<E>(null);\n const [more, setMore] = React.useState(false);\n const [scrolled, setScrolled] = React.useState(false);\n const [overflows, setOverflows] = React.useState(false);\n const measure = React.useCallback(() => {\n const el = ref.current;\n if (!el) return;\n const wide = el.scrollWidth > el.clientWidth + 1;\n setOverflows(wide);\n setMore(wide && el.scrollLeft + el.clientWidth < el.scrollWidth - 1);\n }, []);\n React.useLayoutEffect(() => {\n const el = ref.current;\n if (!el) return;\n measure();\n const ro = new ResizeObserver(measure);\n ro.observe(el);\n if (el.firstElementChild) ro.observe(el.firstElementChild);\n // Content that changes without resizing the box (a column hidden, rows replaced, text measured again) and web\n // fonts that load late change the scroll width too: measured again after each.\n let raf = 0;\n const later = () => {\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(measure);\n };\n const mo = new MutationObserver(later);\n mo.observe(el, { childList: true, subtree: true, characterData: true });\n document.fonts?.ready.then(later).catch(() => {});\n return () => {\n ro.disconnect();\n mo.disconnect();\n cancelAnimationFrame(raf);\n };\n }, [measure]);\n const onScroll = React.useCallback(() => {\n const el = ref.current;\n // Only a sideways scroll counts: a table also scrolls down.\n if (el && el.scrollLeft > 0) setScrolled(true);\n measure();\n }, [measure]);\n return { ref, more, overflows, scrolled, onScroll, measure };\n}\n\n/** 「→ 左右滑動」 (touch) or 「→ 向右捲動」 (mouse, trackpad) under the box, right-aligned. Hidden after the first sideways\n * scroll but keeps its line, so nothing below jumps. */\nexport function ScrollHint({ show, done }: { show: boolean; done: boolean }) {\n const touch = useMedia('(pointer: coarse)');\n return show ? (\n <span className={cx('ui-scroll-hint', done && 'is-done')} aria-hidden=\"true\">\n <Icon name=\"arrow-right\" size={14} />\n {touch ? tr('左右滑動') : tr('向右捲動')}\n </span>\n ) : null;\n}\n"],"mappings":";;;;;;;;;AAOA,SAAgB,gBAAwD;CACtE,MAAM,MAAM,MAAM,OAAU,IAAI;CAChC,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,KAAK;CAC5C,MAAM,CAAC,UAAU,eAAe,MAAM,SAAS,KAAK;CACpD,MAAM,CAAC,WAAW,gBAAgB,MAAM,SAAS,KAAK;CACtD,MAAM,UAAU,MAAM,kBAAkB;EACtC,MAAM,KAAK,IAAI;EACf,IAAI,CAAC,IAAI;EACT,MAAM,OAAO,GAAG,cAAc,GAAG,cAAc;EAC/C,aAAa,IAAI;EACjB,QAAQ,QAAQ,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrE,GAAG,CAAC,CAAC;CACL,MAAM,sBAAsB;EAC1B,MAAM,KAAK,IAAI;EACf,IAAI,CAAC,IAAI;EACT,QAAQ;EACR,MAAM,KAAK,IAAI,eAAe,OAAO;EACrC,GAAG,QAAQ,EAAE;EACb,IAAI,GAAG,mBAAmB,GAAG,QAAQ,GAAG,iBAAiB;EAGzD,IAAI,MAAM;EACV,MAAM,cAAc;GAClB,qBAAqB,GAAG;GACxB,MAAM,sBAAsB,OAAO;EACrC;EACA,MAAM,KAAK,IAAI,iBAAiB,KAAK;EACrC,GAAG,QAAQ,IAAI;GAAE,WAAW;GAAM,SAAS;GAAM,eAAe;EAAK,CAAC;EACtE,SAAS,OAAO,MAAM,KAAK,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC;EAChD,aAAa;GACX,GAAG,WAAW;GACd,GAAG,WAAW;GACd,qBAAqB,GAAG;EAC1B;CACF,GAAG,CAAC,OAAO,CAAC;CAOZ,OAAO;EAAE;EAAK;EAAM;EAAW;EAAU,UANxB,MAAM,kBAAkB;GACvC,MAAM,KAAK,IAAI;GAEf,IAAI,MAAM,GAAG,aAAa,GAAG,YAAY,IAAI;GAC7C,QAAQ;EACV,GAAG,CAAC,OAAO,CACqC;EAAG;CAAQ;AAC7D;;;AAIA,SAAgB,WAAW,EAAE,MAAM,QAA0C;CAC3E,MAAM,QAAQ,SAAS,mBAAmB;CAC1C,OAAO,OACL,qBAAC,QAAD;EAAM,WAAW,GAAG,kBAAkB,QAAQ,SAAS;EAAG,eAAY;EAAtE,UAAA,CACE,oBAAC,MAAD;GAAM,MAAK;GAAc,MAAM;EAAK,CAAA,GACnC,QAAQ,GAAG,MAAM,IAAI,GAAG,MAAM,CAC3B;CACJ,CAAA,IAAA;AACN"}
1
+ {"version":3,"file":"scrollHint.js","names":["phArrowRight"],"sources":["../../src/internal/scrollHint.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Icon } from '../icons/Icon';\nimport { tr } from '../i18n';\nimport { cx, useMedia, resizeObserver } from './util';\nimport { includeIcons } from '../icons/store';\nimport phArrowRight from '../icons/ph/arrow-right';\n\nincludeIcons(phArrowRight);\n\n/** A box that may be wider than its container: whether it overflows, whether more is to the right, and whether the\n * person has scrolled yet. Used by LayerGraph and DataTable for the right-edge fade and the 「左右滑動」 hint. */\nexport function useScrollHint<E extends HTMLElement = HTMLDivElement>() {\n const ref = React.useRef<E>(null);\n const [more, setMore] = React.useState(false);\n const [scrolled, setScrolled] = React.useState(false);\n const [overflows, setOverflows] = React.useState(false);\n const measure = React.useCallback(() => {\n const el = ref.current;\n if (!el) return;\n const wide = el.scrollWidth > el.clientWidth + 1;\n setOverflows(wide);\n setMore(wide && el.scrollLeft + el.clientWidth < el.scrollWidth - 1);\n }, []);\n React.useLayoutEffect(() => {\n const el = ref.current;\n if (!el) return;\n measure();\n const ro = resizeObserver(measure);\n ro?.observe(el);\n if (el.firstElementChild) ro?.observe(el.firstElementChild);\n // Content that changes without resizing the box (a column hidden, rows replaced, text measured again) and web\n // fonts that load late change the scroll width too: measured again after each.\n let raf = 0;\n const later = () => {\n cancelAnimationFrame(raf);\n raf = requestAnimationFrame(measure);\n };\n const mo = new MutationObserver(later);\n mo.observe(el, { childList: true, subtree: true, characterData: true });\n document.fonts?.ready.then(later).catch(() => {});\n return () => {\n ro?.disconnect();\n mo.disconnect();\n cancelAnimationFrame(raf);\n };\n }, [measure]);\n const onScroll = React.useCallback(() => {\n const el = ref.current;\n // Only a sideways scroll counts: a table also scrolls down.\n if (el && el.scrollLeft > 0) setScrolled(true);\n measure();\n }, [measure]);\n return { ref, more, overflows, scrolled, onScroll, measure };\n}\n\n/** 「→ 左右滑動」 (touch) or 「→ 向右捲動」 (mouse, trackpad) under the box, right-aligned. Hidden after the first sideways\n * scroll but keeps its line, so nothing below jumps. */\nexport function ScrollHint({ show, done }: { show: boolean; done: boolean }) {\n const touch = useMedia('(pointer: coarse)');\n return show ? (\n <span className={cx('ui-scroll-hint', done && 'is-done')} aria-hidden=\"true\">\n <Icon name=\"arrow-right\" size={14} />\n {touch ? tr('左右滑動') : tr('向右捲動')}\n </span>\n ) : null;\n}\n"],"mappings":";;;;;;;;;AAOA,aAAaA,mBAAY;;;AAIzB,SAAgB,gBAAwD;CACtE,MAAM,MAAM,MAAM,OAAU,IAAI;CAChC,MAAM,CAAC,MAAM,WAAW,MAAM,SAAS,KAAK;CAC5C,MAAM,CAAC,UAAU,eAAe,MAAM,SAAS,KAAK;CACpD,MAAM,CAAC,WAAW,gBAAgB,MAAM,SAAS,KAAK;CACtD,MAAM,UAAU,MAAM,kBAAkB;EAC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,IAAA;AACN"}
@@ -3,8 +3,13 @@ import { tr } from "../i18n.js";
3
3
  import { Dialog } from "../components/Dialog/Dialog.js";
4
4
  import { IconButton } from "../components/IconButton/IconButton.js";
5
5
  import { cx } from "./util.js";
6
+ import { includeIcons } from "../icons/store.js";
7
+ import copy_default from "../icons/ph/copy.js";
8
+ import corners_out_default from "../icons/ph/corners-out.js";
6
9
  import * as React from "react";
7
10
  import { jsx } from "react/jsx-runtime";
11
+ // src/internal/tableTools.tsx
12
+ includeIcons(copy_default, corners_out_default);
8
13
  /** The right border of a header cell, dragged to set the column's width. ← → 16 px, Enter or a double-click back
9
14
  * to the widths by content. Hidden on touch screens (CSS), where 「放大表格」 shows the whole table instead. */
10
15
  function ColResize(p) {
@@ -29,7 +34,7 @@ function ColResize(p) {
29
34
  if (e.button !== 0) return;
30
35
  e.preventDefault();
31
36
  e.stopPropagation();
32
- e.currentTarget.setPointerCapture(e.pointerId);
37
+ e.currentTarget.setPointerCapture?.(e.pointerId);
33
38
  from.current = {
34
39
  x: e.clientX,
35
40
  w: p.start()
@@ -1 +1 @@
1
- {"version":3,"file":"tableTools.js","names":[],"sources":["../../src/internal/tableTools.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tr } from '../i18n';\nimport { CHECK } from '../icons/Icon';\nimport { Dialog } from '../components/Dialog/Dialog';\nimport { IconButton } from '../components/IconButton/IconButton';\nimport { announce } from '../announce';\nimport { copyText, cx } from './util';\n\n/* What Markdown tables and DataTable share: the column border that drags, the 「放大表格」 dialog, and the\n 「複製成 Markdown」 icon. One implementation, so both tables behave and look the same. */\n\n/** The narrowest a dragged column gets (px); a DataTable column also never gets narrower than its heading. */\nexport const MIN_COL = 48;\n/** One ← or → on a column border (px). */\nexport const COL_STEP = 16;\n\n/** The right border of a header cell, dragged to set the column's width. ← → 16 px, Enter or a double-click back\n * to the widths by content. Hidden on touch screens (CSS), where 「放大表格」 shows the whole table instead. */\nexport function ColResize(p: {\n /** The column's name: the border is called 「調整「名稱」欄寬」. */\n name: string;\n /** Its width now (px), for aria-valuenow. */\n width: number;\n /** The narrowest it may get (px). */\n min?: number;\n /** The width when a drag or a key starts: the set width, or the drawn one. */\n start: () => number;\n onWidth: (px: number) => void;\n onReset: () => void;\n onDragging?: (on: boolean) => void;\n}) {\n const [on, setOn] = React.useState(false);\n const from = React.useRef<{ x: number; w: number } | null>(null);\n const min = p.min ?? MIN_COL;\n const set = (w: number) => p.onWidth(Math.max(min, Math.round(w)));\n const drag = (v: boolean) => {\n setOn(v);\n p.onDragging?.(v);\n };\n return (\n <span\n className={cx('ui-col-resize', on && 'is-dragging')}\n role=\"separator\"\n aria-orientation=\"vertical\"\n aria-label={tr('調整「{name}」欄寬', { name: p.name })}\n aria-valuenow={Math.round(p.width)}\n aria-valuemin={min}\n tabIndex={0}\n onClick={(e) => e.stopPropagation()}\n onPointerDown={(e) => {\n if (e.button !== 0) return;\n e.preventDefault();\n e.stopPropagation();\n e.currentTarget.setPointerCapture(e.pointerId);\n from.current = { x: e.clientX, w: p.start() };\n drag(true);\n }}\n onPointerMove={(e) => {\n if (from.current) set(from.current.w + e.clientX - from.current.x);\n }}\n onPointerUp={() => {\n from.current = null;\n drag(false);\n }}\n onPointerCancel={() => {\n from.current = null;\n drag(false);\n }}\n onDoubleClick={(e) => {\n e.stopPropagation();\n p.onReset();\n }}\n onKeyDown={(e) => {\n if (e.altKey || e.metaKey || e.ctrlKey) return;\n if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {\n e.preventDefault();\n e.stopPropagation();\n set(p.start() + (e.key === 'ArrowRight' ? COL_STEP : -COL_STEP));\n } else if (e.key === 'Enter') {\n e.preventDefault();\n e.stopPropagation();\n p.onReset();\n }\n }}\n />\n );\n}\n\n/** The 「放大表格」 icon: 32 px, no border, at a Markdown table's top right; in a DataTable's toolbar (inToolbar) it is a\n * toolbar button like 「複製成 Markdown」. */\nexport function ZoomButton({ onClick, inToolbar }: { onClick: () => void; inToolbar?: boolean }) {\n return <IconButton className={inToolbar ? 'ui-dt-zoombtn' : 'ui-table-zoom'} icon=\"corners-out\" label={tr('放大表格')} onClick={onClick} />;\n}\n\n/** The whole table in a wide dialog (at most 1200 px). A plain click on a link inside (a function, a path) closes the\n * dialog after the link has done its job; Ctrl, ⌘, Shift or the middle button open a new tab and keep it open. */\nexport function TableDialog(p: { open: boolean; onClose: () => void; title?: string; children: React.ReactNode }) {\n if (!p.open) return null;\n return (\n <Dialog open onClose={p.onClose} title={p.title || tr('表格')} className=\"ui-table-dialog\">\n <div\n className=\"ui-table-dialog-body\"\n onClick={(e) => {\n if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0) return;\n const link = (e.target as Element).closest('a[href], [role=\"link\"], .ui-code.is-link, .ui-md-link');\n if (link && e.currentTarget.contains(link)) p.onClose();\n }}\n >\n {p.children}\n </div>\n </Dialog>\n );\n}\n\n/** The 「複製成 Markdown」 icon: copies the text, turns into a check for 2 s and says 「已複製」, as CodeView's copy. */\nexport function CopyMarkdownButton(p: { text: () => string; onCopyError?: () => void; className?: string }) {\n const [done, setDone] = React.useState(false);\n const timer = React.useRef<ReturnType<typeof setTimeout>>(undefined);\n React.useEffect(() => () => clearTimeout(timer.current), []);\n return (\n <IconButton\n className={cx('ui-table-copy', done && 'is-copied', p.className)}\n icon={done ? CHECK : 'copy'}\n label={done ? tr('已複製') : tr('複製成 Markdown')}\n onClick={() =>\n copyText(p.text()).then(\n () => {\n setDone(true);\n announce(tr('已複製'));\n clearTimeout(timer.current);\n timer.current = setTimeout(() => setDone(false), 2000);\n },\n () => p.onCopyError?.(),\n )\n }\n />\n );\n}\n\n/** A table as GitHub Markdown: | in a cell is escaped, line breaks become spaces. */\nexport function markdownTable(heads: string[], rows: string[][]): string {\n const cell = (s: string) => s.replace(/\\r?\\n/g, ' ').replace(/\\|/g, '\\\\|').trim();\n return [`| ${heads.map(cell).join(' | ')} |`, `|${heads.map(() => '---').join('|')}|`, ...rows.map((r) => `| ${r.map(cell).join(' | ')} |`)].join('\\n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/tableTools.tsx"],"sourcesContent":["import * as React from 'react';\nimport { tr } from '../i18n';\nimport { CHECK } from '../icons/Icon';\nimport { Dialog } from '../components/Dialog/Dialog';\nimport { IconButton } from '../components/IconButton/IconButton';\nimport { announce } from '../announce';\nimport { copyText, cx } from './util';\nimport { includeIcons } from '../icons/store';\nimport phCopy from '../icons/ph/copy';\nimport phCornersOut from '../icons/ph/corners-out';\n\nincludeIcons(phCopy, phCornersOut);\n\n/* What Markdown tables and DataTable share: the column border that drags, the 「放大表格」 dialog, and the\n 「複製成 Markdown」 icon. One implementation, so both tables behave and look the same. */\n\n/** The narrowest a dragged column gets (px); a DataTable column also never gets narrower than its heading. */\nexport const MIN_COL = 48;\n/** One ← or → on a column border (px). */\nexport const COL_STEP = 16;\n\n/** The right border of a header cell, dragged to set the column's width. ← → 16 px, Enter or a double-click back\n * to the widths by content. Hidden on touch screens (CSS), where 「放大表格」 shows the whole table instead. */\nexport function ColResize(p: {\n /** The column's name: the border is called 「調整「名稱」欄寬」. */\n name: string;\n /** Its width now (px), for aria-valuenow. */\n width: number;\n /** The narrowest it may get (px). */\n min?: number;\n /** The width when a drag or a key starts: the set width, or the drawn one. */\n start: () => number;\n onWidth: (px: number) => void;\n onReset: () => void;\n onDragging?: (on: boolean) => void;\n}) {\n const [on, setOn] = React.useState(false);\n const from = React.useRef<{ x: number; w: number } | null>(null);\n const min = p.min ?? MIN_COL;\n const set = (w: number) => p.onWidth(Math.max(min, Math.round(w)));\n const drag = (v: boolean) => {\n setOn(v);\n p.onDragging?.(v);\n };\n return (\n <span\n className={cx('ui-col-resize', on && 'is-dragging')}\n role=\"separator\"\n aria-orientation=\"vertical\"\n aria-label={tr('調整「{name}」欄寬', { name: p.name })}\n aria-valuenow={Math.round(p.width)}\n aria-valuemin={min}\n tabIndex={0}\n onClick={(e) => e.stopPropagation()}\n onPointerDown={(e) => {\n if (e.button !== 0) return;\n e.preventDefault();\n e.stopPropagation();\n e.currentTarget.setPointerCapture?.(e.pointerId);\n from.current = { x: e.clientX, w: p.start() };\n drag(true);\n }}\n onPointerMove={(e) => {\n if (from.current) set(from.current.w + e.clientX - from.current.x);\n }}\n onPointerUp={() => {\n from.current = null;\n drag(false);\n }}\n onPointerCancel={() => {\n from.current = null;\n drag(false);\n }}\n onDoubleClick={(e) => {\n e.stopPropagation();\n p.onReset();\n }}\n onKeyDown={(e) => {\n if (e.altKey || e.metaKey || e.ctrlKey) return;\n if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {\n e.preventDefault();\n e.stopPropagation();\n set(p.start() + (e.key === 'ArrowRight' ? COL_STEP : -COL_STEP));\n } else if (e.key === 'Enter') {\n e.preventDefault();\n e.stopPropagation();\n p.onReset();\n }\n }}\n />\n );\n}\n\n/** The 「放大表格」 icon: 32 px, no border, at a Markdown table's top right; in a DataTable's toolbar (inToolbar) it is a\n * toolbar button like 「複製成 Markdown」. */\nexport function ZoomButton({ onClick, inToolbar }: { onClick: () => void; inToolbar?: boolean }) {\n return <IconButton className={inToolbar ? 'ui-dt-zoombtn' : 'ui-table-zoom'} icon=\"corners-out\" label={tr('放大表格')} onClick={onClick} />;\n}\n\n/** The whole table in a wide dialog (at most 1200 px). A plain click on a link inside (a function, a path) closes the\n * dialog after the link has done its job; Ctrl, ⌘, Shift or the middle button open a new tab and keep it open. */\nexport function TableDialog(p: { open: boolean; onClose: () => void; title?: string; children: React.ReactNode }) {\n if (!p.open) return null;\n return (\n <Dialog open onClose={p.onClose} title={p.title || tr('表格')} className=\"ui-table-dialog\">\n <div\n className=\"ui-table-dialog-body\"\n onClick={(e) => {\n if (e.metaKey || e.ctrlKey || e.shiftKey || e.button !== 0) return;\n const link = (e.target as Element).closest('a[href], [role=\"link\"], .ui-code.is-link, .ui-md-link');\n if (link && e.currentTarget.contains(link)) p.onClose();\n }}\n >\n {p.children}\n </div>\n </Dialog>\n );\n}\n\n/** The 「複製成 Markdown」 icon: copies the text, turns into a check for 2 s and says 「已複製」, as CodeView's copy. */\nexport function CopyMarkdownButton(p: { text: () => string; onCopyError?: () => void; className?: string }) {\n const [done, setDone] = React.useState(false);\n const timer = React.useRef<ReturnType<typeof setTimeout>>(undefined);\n React.useEffect(() => () => clearTimeout(timer.current), []);\n return (\n <IconButton\n className={cx('ui-table-copy', done && 'is-copied', p.className)}\n icon={done ? CHECK : 'copy'}\n label={done ? tr('已複製') : tr('複製成 Markdown')}\n onClick={() =>\n copyText(p.text()).then(\n () => {\n setDone(true);\n announce(tr('已複製'));\n clearTimeout(timer.current);\n timer.current = setTimeout(() => setDone(false), 2000);\n },\n () => p.onCopyError?.(),\n )\n }\n />\n );\n}\n\n/** A table as GitHub Markdown: | in a cell is escaped, line breaks become spaces. */\nexport function markdownTable(heads: string[], rows: string[][]): string {\n const cell = (s: string) => s.replace(/\\r?\\n/g, ' ').replace(/\\|/g, '\\\\|').trim();\n return [`| ${heads.map(cell).join(' | ')} |`, `|${heads.map(() => '---').join('|')}|`, ...rows.map((r) => `| ${r.map(cell).join(' | ')} |`)].join('\\n');\n}\n"],"mappings":";;;;;;;;;;;AAWA,aAAaA,cAAQC,mBAAY;;;AAYjC,SAAgB,UAAU,GAYvB;CACD,MAAM,CAAC,IAAI,SAAS,MAAM,SAAS,KAAK;CACxC,MAAM,OAAO,MAAM,OAAwC,IAAI;CAC/D,MAAM,MAAM,EAAE,OAAA;CACd,MAAM,OAAO,MAAc,EAAE,QAAQ,KAAK,IAAI,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC;CACjE,MAAM,QAAQ,MAAe;EAC3B,MAAM,CAAC;EACP,EAAE,aAAa,CAAC;CAClB;CACA,OACE,oBAAC,QAAD;EACE,WAAW,GAAG,iBAAiB,MAAM,aAAa;EAClD,MAAK;EACL,oBAAiB;EACjB,cAAY,GAAG,gBAAgB,EAAE,MAAM,EAAE,KAAK,CAAC;EAC/C,iBAAe,KAAK,MAAM,EAAE,KAAK;EACjC,iBAAe;EACf,UAAU;EACV,UAAU,MAAM,EAAE,gBAAgB;EAClC,gBAAgB,M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W,EAAE,YAAY,EAAE,WAAW,GAAG;IAC5D,MAAM,OAAQ,EAAE,OAAmB,QAAQ,yDAAuD;IAClG,IAAI,QAAQ,EAAE,cAAc,SAAS,IAAI,GAAG,EAAE,QAAQ;GACxD;GAEC,UAAA,EAAE;EACA,CAAA;CACC,CAAA;AAEZ;;AA4BA,SAAgB,cAAc,OAAiB,MAA0B;CACvE,MAAM,QAAQ,MAAc,EAAE,QAAQ,UAAU,GAAG,CAAC,CAAC,QAAQ,OAAO,KAAK,CAAC,CAAC,KAAK;CAChF,OAAO;EAAC,KAAK,MAAM,IAAI,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE;EAAK,IAAI,MAAM,UAAU,KAAK,CAAC,CAAC,KAAK,GAAG,EAAE;EAAI,GAAG,KAAK,KAAK,MAAM,KAAK,EAAE,IAAI,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,GAAG;CAAC,CAAC,CAAC,KAAK,IAAI;AACxJ"}
@@ -60,6 +60,10 @@ function useMedia(query) {
60
60
  }, [query]);
61
61
  return match;
62
62
  }
63
+ /** A ResizeObserver, or null where there is none (jsdom, old browsers): the first measure then stays. */
64
+ function resizeObserver(cb) {
65
+ return typeof ResizeObserver === "function" ? new ResizeObserver(cb) : null;
66
+ }
63
67
  /** True under 600 px, the same width where cards stack. */
64
68
  function useNarrow() {
65
69
  return useMedia("(max-width: 599px)");
@@ -102,6 +106,6 @@ function nodeText(node) {
102
106
  }
103
107
  return "";
104
108
  }
105
- export { IS_MAC, SHORTCUT, TOUCH_ONLY, browserKey, copyText, cx, digits, idPart, monoNums, nodeText, reduced, seenOnly, store, useMedia, useNarrow };
109
+ export { IS_MAC, SHORTCUT, TOUCH_ONLY, browserKey, copyText, cx, digits, idPart, monoNums, nodeText, reduced, resizeObserver, seenOnly, store, useMedia, useNarrow };
106
110
 
107
111
  //# sourceMappingURL=util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"util.js","names":[],"sources":["../../src/internal/util.tsx"],"sourcesContent":["import * as React from 'react';\n\n/** A value (a row or node id, a file path) as part of an element id: no spaces, so aria-owns, aria-controls and\n * aria-labelledby, which split their value at spaces, still find it. */\nexport const idPart = (s: string): string => encodeURIComponent(s);\n\n/** Joins the truthy class names. */\nexport function cx(...names: unknown[]): string {\n return names.filter(Boolean).join(' ');\n}\n\n// Text that is only seen: drawn by CSS (::before), so it is neither in the page's text (copy, innerText, text-reading\n// tools) nor read aloud. The readable version goes beside it, visually hidden. Numbers keep Geist Mono.\nexport function seenOnly(text: string, nums: string[]): React.ReactNode[] {\n return splitMarks(text).map(([t, k], i) => <span key={i} className={cx('ui-seen', k >= 0 && 'ui-num')} data-text={k >= 0 ? nums[k] : t} />);\n}\n\n// A translated sentence cut at its number marks (\\u0001, \\u0002, \\u0003): [text, -1] or [mark, its index].\nfunction splitMarks(text: string): [string, number][] {\n return (\n text\n // eslint-disable-next-line no-control-regex -- the marks are control characters on purpose\n .split(/(\\u0001|\\u0002|\\u0003)/)\n .filter(Boolean)\n .map((t) => [t, ['\\u0001', '\\u0002', '\\u0003'].indexOf(t)])\n );\n}\n\n// Puts the numbers of a translated sentence in Geist Mono and leaves the words in the text font.\n// The sentence marks each number with \\u0001, \\u0002 or \\u0003 in the order of nums.\nexport function monoNums(text: string, nums: React.ReactNode[]): React.ReactNode[] {\n return splitMarks(text).map(([t, k], i) =>\n k >= 0 ? (\n <span key={i} className=\"ui-num\">\n {nums[k]}\n </span>\n ) : (\n t\n ),\n );\n}\n\n/** localStorage get (no value) or set; null when storage is blocked. */\nexport function store(key: string, value?: string): string | null {\n try {\n if (value === undefined) return localStorage.getItem(key);\n localStorage.setItem(key, value);\n } catch {\n /* storage blocked (private mode, sandboxed frame) */\n }\n return null;\n}\n\nexport function reduced(): boolean {\n return typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n\nconst nav = typeof navigator !== 'undefined' ? (navigator as Navigator & { userAgentData?: { platform?: string } }) : undefined;\nexport const IS_MAC = /mac|iphone|ipad/i.test(nav?.userAgentData?.platform || nav?.platform || nav?.userAgent || '');\n/** A touch screen as the main input (phones, tablets): no keyboard to press a shortcut with, no hover. Phones and\n * tablets report (pointer: coarse); (hover: none) alone is not used, since Chromium keeps it after touch emulation is\n * turned off and a mouse would then lose its Tooltips. */\nexport const TOUCH_ONLY = '(pointer: coarse)';\nexport const SHORTCUT = IS_MAC ? '⌘K' : 'Ctrl K';\n\n/** Matches a media query and follows changes. */\nexport function useMedia(query: string): boolean {\n const get = () => typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia(query).matches;\n const [match, setMatch] = React.useState(get);\n React.useEffect(() => {\n if (typeof window.matchMedia !== 'function') return;\n const m = window.matchMedia(query);\n const f = () => setMatch(m.matches);\n f();\n m.addEventListener('change', f);\n return () => m.removeEventListener('change', f);\n }, [query]);\n return match;\n}\n\n/** True under 600 px, the same width where cards stack. */\nexport function useNarrow(): boolean {\n return useMedia('(max-width: 599px)');\n}\n\nexport async function copyText(text: string): Promise<void> {\n if (navigator.clipboard?.writeText) {\n try {\n return await navigator.clipboard.writeText(text);\n } catch {\n /* fall back below (insecure context, denied permission) */\n }\n }\n const t = document.createElement('textarea');\n t.value = text;\n t.setAttribute('readonly', '');\n t.style.position = 'fixed';\n t.style.opacity = '0';\n document.body.appendChild(t);\n t.select();\n try {\n if (!document.execCommand('copy')) throw new Error('copy failed');\n } finally {\n document.body.removeChild(t);\n }\n}\n\n/** Text with every number in Geist Mono and the words in the text font, for labels that mix both (「第 1 週」). */\nexport function digits(text: string, numbers = /(\\d[\\d,.:/]*)/): React.ReactNode[] {\n return text.split(numbers).map((t, i) =>\n i % 2 ? (\n <span key={i} className=\"ui-num\">\n {t}\n </span>\n ) : (\n t\n ),\n );\n}\n\n/** Alt, Meta or Ctrl held: the key belongs to the browser or the system (Alt+← goes back a page), not to the widget. */\nexport const browserKey = (e: { altKey: boolean; metaKey: boolean; ctrlKey: boolean }): boolean => e.altKey || e.metaKey || e.ctrlKey;\n\n/** The words in a React node, as a screen reader would read them: strings and numbers, through elements' children. */\nexport function nodeText(node: React.ReactNode): string {\n if (node == null || typeof node === 'boolean') return '';\n if (typeof node === 'string' || typeof node === 'number') return String(node);\n if (Array.isArray(node)) return node.map(nodeText).join('');\n if (React.isValidElement(node)) {\n const props = node.props as { 'aria-label'?: string; label?: unknown; children?: React.ReactNode };\n if (typeof props['aria-label'] === 'string') return props['aria-label'];\n return nodeText(props.children) || (typeof props.label === 'string' ? props.label : '');\n }\n return '';\n}\n"],"mappings":";;;;;;AAIA,MAAa,UAAU,MAAsB,mBAAmB,CAAC;;AAGjE,SAAgB,GAAG,GAAG,OAA0B;CAC9C,OAAO,MAAM,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG;AACvC;AAIA,SAAgB,SAAS,MAAc,MAAmC;CACxE,OAAO,WAAW,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,MAAM,oBAAC,QAAD;EAAc,WAAW,GAAG,WAAW,KAAK,KAAK,QAAQ;EAAG,aAAW,KAAK,IAAI,KAAK,KAAK;CAAI,GAAnF,CAAmF,CAAC;AAC5I;AAGA,SAAS,WAAW,MAAkC;CACpD,OACE,KAEG,MAAM,wBAAwB,CAAC,CAC/B,OAAO,OAAO,CAAC,CACf,KAAK,MAAM,CAAC,GAAG;EAAC;EAAU;EAAU;CAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAEhE;AAIA,SAAgB,SAAS,MAAc,MAA4C;CACjF,OAAO,WAAW,IAAI,CAAC,CAAC,KAAK,CAAC,GAAG,IAAI,MACnC,KAAK,IACH,oBAAC,QAAD;EAAc,WAAU;EACrB,UAAA,KAAK;CACF,GAFK,CAEL,IAEN,CAEJ;AACF;;AAGA,SAAgB,MAAM,KAAa,OAA+B;CAChE,IAAI;EACF,IAAI,UAAU,KAAA,GAAW,OAAO,aAAa,QAAQ,GAAG;EACxD,aAAa,QAAQ,KAAK,KAAK;CACjC,QAAQ,CA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;;AAGA,SAAgB,OAAO,MAAc,UAAU,iBAAoC;CACjF,OAAO,KAAK,MAAM,OAAO,CAAC,CAAC,KAAK,GAAG,MACjC,IAAI,IACF,oBAAC,QAAD;EAAc,WAAU;EACrB,UAAA;CACG,GAFK,CAEL,IAEN,CAEJ;AACF;;AAGA,MAAa,cAAc,MAAwE,EAAE,UAAU,EAAE,WAAW,EAAE;;AAG9H,SAAgB,SAAS,MAA+B;CACtD,IAAI,QAAQ,QAAQ,OAAO,SAAS,WAAW,OAAO;CACtD,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU,OAAO,OAAO,IAAI;CAC5E,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,KAAK,EAAE;CAC1D,IAAI,MAAM,eAAe,IAAI,GAAG;EAC9B,MAAM,QAAQ,KAAK;EACnB,IAAI,OAAO,MAAM,kBAAkB,UAAU,OAAO,MAAM;EAC1D,OAAO,SAAS,MAAM,QAAQ,MAAM,OAAO,MAAM,UAAU,WAAW,MAAM,QAAQ;CACtF;CACA,OAAO;AACT"}
1
+ {"version":3,"file":"util.js","names":[],"sources":["../../src/internal/util.tsx"],"sourcesContent":["import * as React from 'react';\n\n/** A value (a row or node id, a file path) as part of an element id: no spaces, so aria-owns, aria-controls and\n * aria-labelledby, which split their value at spaces, still find it. */\nexport const idPart = (s: string): string => encodeURIComponent(s);\n\n/** Joins the truthy class names. */\nexport function cx(...names: unknown[]): string {\n return names.filter(Boolean).join(' ');\n}\n\n// Text that is only seen: drawn by CSS (::before), so it is neither in the page's text (copy, innerText, text-reading\n// tools) nor read aloud. The readable version goes beside it, visually hidden. Numbers keep Geist Mono.\nexport function seenOnly(text: string, nums: string[]): React.ReactNode[] {\n return splitMarks(text).map(([t, k], i) => <span key={i} className={cx('ui-seen', k >= 0 && 'ui-num')} data-text={k >= 0 ? nums[k] : t} />);\n}\n\n// A translated sentence cut at its number marks (\\u0001, \\u0002, \\u0003): [text, -1] or [mark, its index].\nfunction splitMarks(text: string): [string, number][] {\n return (\n text\n // eslint-disable-next-line no-control-regex -- the marks are control characters on purpose\n .split(/(\\u0001|\\u0002|\\u0003)/)\n .filter(Boolean)\n .map((t) => [t, ['\\u0001', '\\u0002', '\\u0003'].indexOf(t)])\n );\n}\n\n// Puts the numbers of a translated sentence in Geist Mono and leaves the words in the text font.\n// The sentence marks each number with \\u0001, \\u0002 or \\u0003 in the order of nums.\nexport function monoNums(text: string, nums: React.ReactNode[]): React.ReactNode[] {\n return splitMarks(text).map(([t, k], i) =>\n k >= 0 ? (\n <span key={i} className=\"ui-num\">\n {nums[k]}\n </span>\n ) : (\n t\n ),\n );\n}\n\n/** localStorage get (no value) or set; null when storage is blocked. */\nexport function store(key: string, value?: string): string | null {\n try {\n if (value === undefined) return localStorage.getItem(key);\n localStorage.setItem(key, value);\n } catch {\n /* storage blocked (private mode, sandboxed frame) */\n }\n return null;\n}\n\nexport function reduced(): boolean {\n return typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n}\n\nconst nav = typeof navigator !== 'undefined' ? (navigator as Navigator & { userAgentData?: { platform?: string } }) : undefined;\nexport const IS_MAC = /mac|iphone|ipad/i.test(nav?.userAgentData?.platform || nav?.platform || nav?.userAgent || '');\n/** A touch screen as the main input (phones, tablets): no keyboard to press a shortcut with, no hover. Phones and\n * tablets report (pointer: coarse); (hover: none) alone is not used, since Chromium keeps it after touch emulation is\n * turned off and a mouse would then lose its Tooltips. */\nexport const TOUCH_ONLY = '(pointer: coarse)';\nexport const SHORTCUT = IS_MAC ? '⌘K' : 'Ctrl K';\n\n/** Matches a media query and follows changes. */\nexport function useMedia(query: string): boolean {\n const get = () => typeof window !== 'undefined' && typeof window.matchMedia === 'function' && window.matchMedia(query).matches;\n const [match, setMatch] = React.useState(get);\n React.useEffect(() => {\n if (typeof window.matchMedia !== 'function') return;\n const m = window.matchMedia(query);\n const f = () => setMatch(m.matches);\n f();\n m.addEventListener('change', f);\n return () => m.removeEventListener('change', f);\n }, [query]);\n return match;\n}\n\n/** A ResizeObserver, or null where there is none (jsdom, old browsers): the first measure then stays. */\nexport function resizeObserver(cb: ResizeObserverCallback): ResizeObserver | null {\n return typeof ResizeObserver === 'function' ? new ResizeObserver(cb) : null;\n}\n\n/** True under 600 px, the same width where cards stack. */\nexport function useNarrow(): boolean {\n return useMedia('(max-width: 599px)');\n}\n\nexport async function copyText(text: string): Promise<void> {\n if (navigator.clipboard?.writeText) {\n try {\n return await navigator.clipboard.writeText(text);\n } catch {\n /* fall back below (insecure context, denied permission) */\n }\n }\n const t = document.createElement('textarea');\n t.value = text;\n t.setAttribute('readonly', '');\n t.style.position = 'fixed';\n t.style.opacity = '0';\n document.body.appendChild(t);\n t.select();\n try {\n if (!document.execCommand('copy')) throw new Error('copy failed');\n } finally {\n document.body.removeChild(t);\n }\n}\n\n/** Text with every number in Geist Mono and the words in the text font, for labels that mix both (「第 1 週」). */\nexport function digits(text: string, numbers = /(\\d[\\d,.:/]*)/): React.ReactNode[] {\n return text.split(numbers).map((t, i) =>\n i % 2 ? (\n <span key={i} className=\"ui-num\">\n {t}\n </span>\n ) : (\n t\n ),\n );\n}\n\n/** Alt, Meta or Ctrl held: the key belongs to the browser or the system (Alt+← goes back a page), not to the widget. */\nexport const browserKey = (e: { altKey: boolean; metaKey: boolean; ctrlKey: boolean }): boolean => e.altKey || e.metaKey || e.ctrlKey;\n\n/** The words in a React node, as a screen reader would read them: strings and numbers, through elements' children. */\nexport function nodeText(node: React.ReactNode): string {\n if (node == null || typeof node === 'boolean') return '';\n if (typeof node === 'string' || typeof node === 'number') return String(node);\n if (Array.isArray(node)) return node.map(nodeText).join('');\n if (React.isValidElement(node)) {\n const props = node.props as { 'aria-label'?: string; label?: unknown; children?: React.ReactNode };\n if (typeof props['aria-label'] === 'string') return props['aria-label'];\n return nodeText(props.children) || (typeof props.label === 'string' ? props.label : '');\n }\n return '';\n}\n"],"mappings":";;;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,SAAS,MAA+B;CACtD,IAAI,QAAQ,QAAQ,OAAO,SAAS,WAAW,OAAO;CACtD,IAAI,OAAO,SAAS,YAAY,OAAO,SAAS,UAAU,OAAO,OAAO,IAAI;CAC5E,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO,KAAK,IAAI,QAAQ,CAAC,CAAC,KAAK,EAAE;CAC1D,IAAI,MAAM,eAAe,IAAI,GAAG;EAC9B,MAAM,QAAQ,KAAK;EACnB,IAAI,OAAO,MAAM,kBAAkB,UAAU,OAAO,MAAM;EAC1D,OAAO,SAAS,MAAM,QAAQ,MAAM,OAAO,MAAM,UAAU,WAAW,MAAM,QAAQ;CACtF;CACA,OAAO;AACT"}
package/docs/theme.md CHANGED
@@ -116,6 +116,8 @@ import './ui.css';
116
116
  - 圖示組:Phosphor(MIT 授權,可商用),平常用 Regular 線條版;選中時換成同一個圖示的實心版(Fill)並用強調色,例如側邊欄和手機底部分頁列的選中項目。
117
117
  - 線寬:Phosphor 的線寬固定,不另外調整;自訂的 24 × 24 線條圖示用 2 px(`icon-stroke`)。
118
118
  - 用法:`h(UI.Icon, { name: 'house' })`,加 `filled: true` 用實心版;名稱照 Phosphor,常用的 80 個已內建,`icons` 列出全部名稱(也接受 Lucide 的名稱,例如 `trash-2`)。元件的 `icon` 屬性接受同樣的名稱,或自訂圖示的 24 px path。
119
+ - 載入:每個圖示是一個獨立的模組,有 build 的專案只打包頁面用到的圖示,用法不變。元件固定會顯示的圖示(下拉箭頭、關閉的 x、勾號等)跟著元件一起打包,第一次畫面就有,server render 也有。用 `name` 或 `icon` 指定的其他圖示在第一次顯示時才載入:載入前是同樣大小的空白方框(版面不會跳動),載入後同一個圖示之後都立即顯示。server render 時這些圖示是空白方框,hydrate 後再補上。
120
+ - 首屏的圖示想在第一次畫面就出現時,render 前先 `await preloadIcons(['house', 'gear'])`;不呼叫也能用,只是晚一個網路來回。import `icons` 的頁面會帶入全部圖示,所以只在真的需要全部名稱時才 import。`bundle.js` 內含全部圖示,一律立即顯示。
119
121
 
120
122
  ## 外觀設定
121
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seanyeh77/ui",
3
- "version": "0.42.0",
3
+ "version": "0.43.1",
4
4
  "description": "SeanYeh's design system: typed React components on Base UI, styled with design tokens.",
5
5
  "license": "MIT",
6
6
  "author": "Hsiu-An Yeh",
@@ -40,17 +40,19 @@
40
40
  "react-dom": ">=19"
41
41
  },
42
42
  "devDependencies": {
43
+ "@storybook/react": "^10.6.6",
43
44
  "@testing-library/react": "^16.3.3",
44
45
  "@testing-library/user-event": "^14.6.8",
45
46
  "@types/react": "^19.3.0",
46
47
  "@types/react-dom": "^19.3.0",
47
48
  "@vitest/browser-playwright": "^5.1.0",
49
+ "jsdom": "^31.0.1",
48
50
  "playwright": "^1.65.0",
49
51
  "react": "^19.3.1",
50
52
  "react-dom": "^19.3.1",
51
53
  "tsdown": "^0.23.7",
52
54
  "vitest": "^5.1.0",
53
- "@seanyeh77/tokens": "^0.42.0"
55
+ "@seanyeh77/tokens": "^0.43.1"
54
56
  },
55
57
  "dependencies": {
56
58
  "@base-ui/react": "^1.9.0"
@@ -1,150 +0,0 @@
1
- export declare const PH: {
2
- 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"/>';
3
- 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"/>';
4
- 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"/>';
5
- 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"/>';
6
- 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"/>';
7
- 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"/>';
8
- 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"/>';
9
- 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"/>';
10
- 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"/>';
11
- 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"/>';
12
- 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"/>';
13
- 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"/>';
14
- 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"/>';
15
- 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"/>';
16
- 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"/>';
17
- 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"/>';
18
- 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"/>';
19
- 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"/>';
20
- 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"/>';
21
- 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"/>';
22
- 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"/>';
23
- 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"/>';
24
- 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"/>';
25
- 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"/>';
26
- 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"/>';
27
- 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"/>';
28
- 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"/>';
29
- 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"/>';
30
- 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"/>';
31
- 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"/>';
32
- 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"/>';
33
- 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"/>';
34
- 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"/>';
35
- 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"/>';
36
- 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"/>';
37
- 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"/>';
38
- 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"/>';
39
- 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"/>';
40
- 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"/>';
41
- 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"/>';
42
- 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"/>';
43
- 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"/>';
44
- 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"/>';
45
- 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"/>';
46
- 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"/>';
47
- 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"/>';
48
- 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"/>';
49
- 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"/>';
50
- 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"/>';
51
- 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"/>';
52
- 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"/>';
53
- 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"/>';
54
- 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"/>';
55
- 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"/>';
56
- 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"/>';
57
- 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"/>';
58
- 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"/>';
59
- readonly minus: '<path d="M224,128a8,8,0,0,1-8,8H40a8,8,0,0,1,0-16H216A8,8,0,0,1,224,128Z"/>';
60
- 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"/>';
61
- 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"/>';
62
- 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"/>';
63
- 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"/>';
64
- 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"/>';
65
- 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"/>';
66
- 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"/>';
67
- 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"/>';
68
- 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"/>';
69
- 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"/>';
70
- 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"/>';
71
- 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"/>';
72
- 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"/>';
73
- 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"/>';
74
- 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"/>';
75
- 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"/>';
76
- 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"/>';
77
- 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"/>';
78
- 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"/>';
79
- 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"/>';
80
- 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"/>';
81
- 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"/>';
82
- 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"/>';
83
- 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"/>';
84
- 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"/>';
85
- 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"/>';
86
- 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"/>';
87
- 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"/>';
88
- 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"/>';
89
- 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"/>';
90
- 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"/>';
91
- 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"/>';
92
- 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"/>';
93
- 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"/>';
94
- 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"/>';
95
- 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"/>';
96
- 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"/>';
97
- 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"/>';
98
- 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"/>';
99
- 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"/>';
100
- 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"/>';
101
- 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"/>';
102
- 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"/>';
103
- 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"/>';
104
- };
105
- /** Lucide names that map to a Phosphor icon. */
106
- export declare const PH_ALIAS: {
107
- readonly 'chart-column': 'chart-bar';
108
- readonly settings: 'gear';
109
- readonly search: 'magnifying-glass';
110
- readonly pencil: 'pencil-simple';
111
- readonly 'trash-2': 'trash';
112
- readonly download: 'download-simple';
113
- readonly upload: 'upload-simple';
114
- readonly 'refresh-cw': 'arrows-clockwise';
115
- readonly 'chevron-right': 'caret-right';
116
- readonly 'chevron-left': 'caret-left';
117
- readonly 'chevron-down': 'caret-down';
118
- readonly 'chevron-up': 'caret-up';
119
- readonly ellipsis: 'dots-three';
120
- readonly 'ellipsis-vertical': 'dots-three-vertical';
121
- readonly calendar: 'calendar-blank';
122
- readonly 'log-out': 'sign-out';
123
- readonly 'log-in': 'sign-in';
124
- readonly 'eye-off': 'eye-slash';
125
- readonly 'circle-alert': 'warning-circle';
126
- readonly 'triangle-alert': 'warning';
127
- readonly 'circle-check': 'check-circle';
128
- readonly 'circle-x': 'x-circle';
129
- readonly 'loader-circle': 'circle-notch';
130
- readonly 'panel-left-close': 'sidebar-simple';
131
- readonly 'panel-left-open': 'sidebar-simple';
132
- readonly 'external-link': 'arrow-square-out';
133
- readonly mail: 'envelope-simple';
134
- readonly 'share-2': 'share-network';
135
- readonly send: 'paper-plane-tilt';
136
- readonly save: 'floppy-disk';
137
- readonly 'undo-2': 'arrow-u-up-left';
138
- readonly 'redo-2': 'arrow-u-up-right';
139
- readonly list: 'list-bullets';
140
- readonly 'layout-grid': 'squares-four';
141
- readonly 'layout-dashboard': 'layout';
142
- readonly server: 'hard-drives';
143
- readonly menu: 'list';
144
- readonly activity: 'pulse';
145
- readonly 'circle-help': 'question';
146
- readonly 'message-square': 'chat-centered';
147
- };
148
- export type PhosphorName = keyof typeof PH;
149
- /** A built-in icon: a Phosphor name, or a Lucide name that maps to one. */
150
- export type IconName = PhosphorName | keyof typeof PH_ALIAS;