@handijit/ui 0.0.0-stage → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (639) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +786 -2
  3. package/build/base.css +1 -0
  4. package/build/charts.cjs +2 -0
  5. package/build/charts.cjs.map +1 -0
  6. package/build/charts.css +1 -0
  7. package/build/charts.js +1866 -0
  8. package/build/charts.js.map +1 -0
  9. package/build/chat.cjs +4 -0
  10. package/build/chat.cjs.map +1 -0
  11. package/build/chat.css +1 -0
  12. package/build/chat.js +1121 -0
  13. package/build/chat.js.map +1 -0
  14. package/build/components/Accordion/index.cjs +2 -0
  15. package/build/components/Accordion/index.cjs.map +1 -0
  16. package/build/components/Accordion/index.d.ts +29 -0
  17. package/build/components/Accordion/index.js +42 -0
  18. package/build/components/Accordion/index.js.map +1 -0
  19. package/build/components/Accordion/style.css +1 -0
  20. package/build/components/Alert/index.cjs +2 -0
  21. package/build/components/Alert/index.cjs.map +1 -0
  22. package/build/components/Alert/index.d.ts +15 -0
  23. package/build/components/Alert/index.js +30 -0
  24. package/build/components/Alert/index.js.map +1 -0
  25. package/build/components/Alert/style.css +1 -0
  26. package/build/components/Avatar/index.cjs +2 -0
  27. package/build/components/Avatar/index.cjs.map +1 -0
  28. package/build/components/Avatar/index.d.ts +26 -0
  29. package/build/components/Avatar/index.js +57 -0
  30. package/build/components/Avatar/index.js.map +1 -0
  31. package/build/components/Avatar/style.css +1 -0
  32. package/build/components/Badge/index.cjs +2 -0
  33. package/build/components/Badge/index.cjs.map +1 -0
  34. package/build/components/Badge/index.d.ts +21 -0
  35. package/build/components/Badge/index.js +26 -0
  36. package/build/components/Badge/index.js.map +1 -0
  37. package/build/components/Badge/style.css +1 -0
  38. package/build/components/BottomSheet/index.cjs +2 -0
  39. package/build/components/BottomSheet/index.cjs.map +1 -0
  40. package/build/components/BottomSheet/index.d.ts +21 -0
  41. package/build/components/BottomSheet/index.js +85 -0
  42. package/build/components/BottomSheet/index.js.map +1 -0
  43. package/build/components/BottomSheet/style.css +1 -0
  44. package/build/components/Breadcrumb/index.cjs +2 -0
  45. package/build/components/Breadcrumb/index.cjs.map +1 -0
  46. package/build/components/Breadcrumb/index.d.ts +20 -0
  47. package/build/components/Breadcrumb/index.js +31 -0
  48. package/build/components/Breadcrumb/index.js.map +1 -0
  49. package/build/components/Breadcrumb/style.css +1 -0
  50. package/build/components/Button/index.cjs +2 -0
  51. package/build/components/Button/index.cjs.map +1 -0
  52. package/build/components/Button/index.d.ts +32 -0
  53. package/build/components/Button/index.js +88 -0
  54. package/build/components/Button/index.js.map +1 -0
  55. package/build/components/Button/style.css +1 -0
  56. package/build/components/Card/index.cjs +2 -0
  57. package/build/components/Card/index.cjs.map +1 -0
  58. package/build/components/Card/index.d.ts +51 -0
  59. package/build/components/Card/index.js +58 -0
  60. package/build/components/Card/index.js.map +1 -0
  61. package/build/components/Card/style.css +1 -0
  62. package/build/components/Carousel/index.cjs +2 -0
  63. package/build/components/Carousel/index.cjs.map +1 -0
  64. package/build/components/Carousel/index.d.ts +24 -0
  65. package/build/components/Carousel/index.js +111 -0
  66. package/build/components/Carousel/index.js.map +1 -0
  67. package/build/components/Carousel/style.css +1 -0
  68. package/build/components/Checkbox/index.cjs +2 -0
  69. package/build/components/Checkbox/index.cjs.map +1 -0
  70. package/build/components/Checkbox/index.d.ts +10 -0
  71. package/build/components/Checkbox/index.js +33 -0
  72. package/build/components/Checkbox/index.js.map +1 -0
  73. package/build/components/Checkbox/style.css +1 -0
  74. package/build/components/Chip/index.cjs +2 -0
  75. package/build/components/Chip/index.cjs.map +1 -0
  76. package/build/components/Chip/index.d.ts +27 -0
  77. package/build/components/Chip/index.js +67 -0
  78. package/build/components/Chip/index.js.map +1 -0
  79. package/build/components/Chip/style.css +1 -0
  80. package/build/components/ChipGroup/index.cjs +2 -0
  81. package/build/components/ChipGroup/index.cjs.map +1 -0
  82. package/build/components/ChipGroup/index.d.ts +34 -0
  83. package/build/components/ChipGroup/index.js +64 -0
  84. package/build/components/ChipGroup/index.js.map +1 -0
  85. package/build/components/ChipGroup/style.css +1 -0
  86. package/build/components/CodeBadge/index.cjs +2 -0
  87. package/build/components/CodeBadge/index.cjs.map +1 -0
  88. package/build/components/CodeBadge/index.d.ts +36 -0
  89. package/build/components/CodeBadge/index.js +62 -0
  90. package/build/components/CodeBadge/index.js.map +1 -0
  91. package/build/components/CodeBadge/style.css +1 -0
  92. package/build/components/Combobox/index.cjs +2 -0
  93. package/build/components/Combobox/index.cjs.map +1 -0
  94. package/build/components/Combobox/index.d.ts +6 -0
  95. package/build/components/Combobox/index.js +302 -0
  96. package/build/components/Combobox/index.js.map +1 -0
  97. package/build/components/Combobox/style.css +1 -0
  98. package/build/components/CommandPalette/index.cjs +2 -0
  99. package/build/components/CommandPalette/index.cjs.map +1 -0
  100. package/build/components/CommandPalette/index.d.ts +37 -0
  101. package/build/components/CommandPalette/index.js +181 -0
  102. package/build/components/CommandPalette/index.js.map +1 -0
  103. package/build/components/CommandPalette/style.css +1 -0
  104. package/build/components/ConfirmDialog/index.cjs +2 -0
  105. package/build/components/ConfirmDialog/index.cjs.map +1 -0
  106. package/build/components/ConfirmDialog/index.d.ts +34 -0
  107. package/build/components/ConfirmDialog/index.js +85 -0
  108. package/build/components/ConfirmDialog/index.js.map +1 -0
  109. package/build/components/CopyField/index.cjs +2 -0
  110. package/build/components/CopyField/index.cjs.map +1 -0
  111. package/build/components/CopyField/index.d.ts +20 -0
  112. package/build/components/CopyField/index.js +44 -0
  113. package/build/components/CopyField/index.js.map +1 -0
  114. package/build/components/CopyField/style.css +1 -0
  115. package/build/components/DataTable/index.cjs +2 -0
  116. package/build/components/DataTable/index.cjs.map +1 -0
  117. package/build/components/DataTable/index.d.ts +60 -0
  118. package/build/components/DataTable/index.js +109 -0
  119. package/build/components/DataTable/index.js.map +1 -0
  120. package/build/components/DataTable/style.css +1 -0
  121. package/build/components/DateField/index.cjs +2 -0
  122. package/build/components/DateField/index.cjs.map +1 -0
  123. package/build/components/DateField/index.d.ts +44 -0
  124. package/build/components/DateField/index.js +79 -0
  125. package/build/components/DateField/index.js.map +1 -0
  126. package/build/components/DateField/style.css +1 -0
  127. package/build/components/Directory/index.cjs +2 -0
  128. package/build/components/Directory/index.cjs.map +1 -0
  129. package/build/components/Directory/index.d.ts +51 -0
  130. package/build/components/Directory/index.js +46 -0
  131. package/build/components/Directory/index.js.map +1 -0
  132. package/build/components/Directory/style.css +1 -0
  133. package/build/components/Disclosure/index.cjs +2 -0
  134. package/build/components/Disclosure/index.cjs.map +1 -0
  135. package/build/components/Disclosure/index.d.ts +34 -0
  136. package/build/components/Disclosure/index.js +64 -0
  137. package/build/components/Disclosure/index.js.map +1 -0
  138. package/build/components/Disclosure/style.css +1 -0
  139. package/build/components/Divider/index.cjs +2 -0
  140. package/build/components/Divider/index.cjs.map +1 -0
  141. package/build/components/Divider/index.d.ts +10 -0
  142. package/build/components/Divider/index.js +24 -0
  143. package/build/components/Divider/index.js.map +1 -0
  144. package/build/components/Divider/style.css +1 -0
  145. package/build/components/Drawer/index.cjs +2 -0
  146. package/build/components/Drawer/index.cjs.map +1 -0
  147. package/build/components/Drawer/index.d.ts +22 -0
  148. package/build/components/Drawer/index.js +88 -0
  149. package/build/components/Drawer/index.js.map +1 -0
  150. package/build/components/Drawer/style.css +1 -0
  151. package/build/components/EmptyState/index.cjs +2 -0
  152. package/build/components/EmptyState/index.cjs.map +1 -0
  153. package/build/components/EmptyState/index.d.ts +19 -0
  154. package/build/components/EmptyState/index.js +35 -0
  155. package/build/components/EmptyState/index.js.map +1 -0
  156. package/build/components/EmptyState/style.css +1 -0
  157. package/build/components/Field/index.cjs +2 -0
  158. package/build/components/Field/index.cjs.map +1 -0
  159. package/build/components/Field/index.d.ts +31 -0
  160. package/build/components/Field/index.js +52 -0
  161. package/build/components/Field/index.js.map +1 -0
  162. package/build/components/Field/style.css +1 -0
  163. package/build/components/FileUpload/index.cjs +2 -0
  164. package/build/components/FileUpload/index.cjs.map +1 -0
  165. package/build/components/FileUpload/index.d.ts +42 -0
  166. package/build/components/FileUpload/index.js +145 -0
  167. package/build/components/FileUpload/index.js.map +1 -0
  168. package/build/components/FileUpload/style.css +1 -0
  169. package/build/components/FilterBar/index.cjs +2 -0
  170. package/build/components/FilterBar/index.cjs.map +1 -0
  171. package/build/components/FilterBar/index.d.ts +28 -0
  172. package/build/components/FilterBar/index.js +35 -0
  173. package/build/components/FilterBar/index.js.map +1 -0
  174. package/build/components/FilterBar/style.css +1 -0
  175. package/build/components/IconButton/index.cjs +2 -0
  176. package/build/components/IconButton/index.cjs.map +1 -0
  177. package/build/components/IconButton/index.d.ts +22 -0
  178. package/build/components/IconButton/index.js +61 -0
  179. package/build/components/IconButton/index.js.map +1 -0
  180. package/build/components/IconButton/style.css +1 -0
  181. package/build/components/Input/index.cjs +2 -0
  182. package/build/components/Input/index.cjs.map +1 -0
  183. package/build/components/Input/index.d.ts +15 -0
  184. package/build/components/Input/index.js +52 -0
  185. package/build/components/Input/index.js.map +1 -0
  186. package/build/components/Input/style.css +1 -0
  187. package/build/components/Kbd/index.cjs +2 -0
  188. package/build/components/Kbd/index.cjs.map +1 -0
  189. package/build/components/Kbd/index.d.ts +12 -0
  190. package/build/components/Kbd/index.js +13 -0
  191. package/build/components/Kbd/index.js.map +1 -0
  192. package/build/components/Kbd/style.css +1 -0
  193. package/build/components/Link/index.cjs +2 -0
  194. package/build/components/Link/index.cjs.map +1 -0
  195. package/build/components/Link/index.d.ts +5 -0
  196. package/build/components/Link/index.js +11 -0
  197. package/build/components/Link/index.js.map +1 -0
  198. package/build/components/Menu/index.cjs +2 -0
  199. package/build/components/Menu/index.cjs.map +1 -0
  200. package/build/components/Menu/index.d.ts +46 -0
  201. package/build/components/Menu/index.js +241 -0
  202. package/build/components/Menu/index.js.map +1 -0
  203. package/build/components/Menu/style.css +1 -0
  204. package/build/components/Modal/index.cjs +2 -0
  205. package/build/components/Modal/index.cjs.map +1 -0
  206. package/build/components/Modal/index.d.ts +28 -0
  207. package/build/components/Modal/index.js +92 -0
  208. package/build/components/Modal/index.js.map +1 -0
  209. package/build/components/Modal/style.css +1 -0
  210. package/build/components/PageHeader/index.cjs +2 -0
  211. package/build/components/PageHeader/index.cjs.map +1 -0
  212. package/build/components/PageHeader/index.d.ts +24 -0
  213. package/build/components/PageHeader/index.js +34 -0
  214. package/build/components/PageHeader/index.js.map +1 -0
  215. package/build/components/PageHeader/style.css +1 -0
  216. package/build/components/Pagination/index.cjs +2 -0
  217. package/build/components/Pagination/index.cjs.map +1 -0
  218. package/build/components/Pagination/index.d.ts +39 -0
  219. package/build/components/Pagination/index.js +128 -0
  220. package/build/components/Pagination/index.js.map +1 -0
  221. package/build/components/Pagination/style.css +1 -0
  222. package/build/components/Panel/index.cjs +2 -0
  223. package/build/components/Panel/index.cjs.map +1 -0
  224. package/build/components/Panel/index.d.ts +43 -0
  225. package/build/components/Panel/index.js +55 -0
  226. package/build/components/Panel/index.js.map +1 -0
  227. package/build/components/Panel/style.css +1 -0
  228. package/build/components/PasswordInput/index.cjs +2 -0
  229. package/build/components/PasswordInput/index.cjs.map +1 -0
  230. package/build/components/PasswordInput/index.d.ts +14 -0
  231. package/build/components/PasswordInput/index.js +40 -0
  232. package/build/components/PasswordInput/index.js.map +1 -0
  233. package/build/components/PasswordInput/style.css +1 -0
  234. package/build/components/Popover/index.cjs +2 -0
  235. package/build/components/Popover/index.cjs.map +1 -0
  236. package/build/components/Popover/index.d.ts +20 -0
  237. package/build/components/Popover/index.js +91 -0
  238. package/build/components/Popover/index.js.map +1 -0
  239. package/build/components/Popover/style.css +1 -0
  240. package/build/components/Price/index.cjs +2 -0
  241. package/build/components/Price/index.cjs.map +1 -0
  242. package/build/components/Price/index.d.ts +22 -0
  243. package/build/components/Price/index.js +46 -0
  244. package/build/components/Price/index.js.map +1 -0
  245. package/build/components/Price/style.css +1 -0
  246. package/build/components/Progress/index.cjs +2 -0
  247. package/build/components/Progress/index.cjs.map +1 -0
  248. package/build/components/Progress/index.d.ts +49 -0
  249. package/build/components/Progress/index.js +120 -0
  250. package/build/components/Progress/index.js.map +1 -0
  251. package/build/components/Progress/style.css +1 -0
  252. package/build/components/PromptDialog/index.cjs +2 -0
  253. package/build/components/PromptDialog/index.cjs.map +1 -0
  254. package/build/components/PromptDialog/index.d.ts +36 -0
  255. package/build/components/PromptDialog/index.js +119 -0
  256. package/build/components/PromptDialog/index.js.map +1 -0
  257. package/build/components/PromptDialog/style.css +1 -0
  258. package/build/components/QuantityStepper/index.cjs +2 -0
  259. package/build/components/QuantityStepper/index.cjs.map +1 -0
  260. package/build/components/QuantityStepper/index.d.ts +21 -0
  261. package/build/components/QuantityStepper/index.js +106 -0
  262. package/build/components/QuantityStepper/index.js.map +1 -0
  263. package/build/components/QuantityStepper/style.css +1 -0
  264. package/build/components/Radio/index.cjs +2 -0
  265. package/build/components/Radio/index.cjs.map +1 -0
  266. package/build/components/Radio/index.d.ts +12 -0
  267. package/build/components/Radio/index.js +35 -0
  268. package/build/components/Radio/index.js.map +1 -0
  269. package/build/components/Radio/style.css +1 -0
  270. package/build/components/RadioCard/index.cjs +2 -0
  271. package/build/components/RadioCard/index.cjs.map +1 -0
  272. package/build/components/RadioCard/index.d.ts +16 -0
  273. package/build/components/RadioCard/index.js +48 -0
  274. package/build/components/RadioCard/index.js.map +1 -0
  275. package/build/components/RadioCard/style.css +1 -0
  276. package/build/components/RangeSlider/index.cjs +2 -0
  277. package/build/components/RangeSlider/index.cjs.map +1 -0
  278. package/build/components/RangeSlider/index.d.ts +26 -0
  279. package/build/components/RangeSlider/index.js +102 -0
  280. package/build/components/RangeSlider/index.js.map +1 -0
  281. package/build/components/RangeSlider/style.css +1 -0
  282. package/build/components/Rating/index.cjs +2 -0
  283. package/build/components/Rating/index.cjs.map +1 -0
  284. package/build/components/Rating/index.d.ts +16 -0
  285. package/build/components/Rating/index.js +29 -0
  286. package/build/components/Rating/index.js.map +1 -0
  287. package/build/components/Rating/style.css +1 -0
  288. package/build/components/RatingInput/index.cjs +2 -0
  289. package/build/components/RatingInput/index.cjs.map +1 -0
  290. package/build/components/RatingInput/index.d.ts +21 -0
  291. package/build/components/RatingInput/index.js +75 -0
  292. package/build/components/RatingInput/index.js.map +1 -0
  293. package/build/components/RatingInput/style.css +1 -0
  294. package/build/components/ScrollArea/index.cjs +2 -0
  295. package/build/components/ScrollArea/index.cjs.map +1 -0
  296. package/build/components/ScrollArea/index.d.ts +23 -0
  297. package/build/components/ScrollArea/index.js +65 -0
  298. package/build/components/ScrollArea/index.js.map +1 -0
  299. package/build/components/ScrollArea/style.css +1 -0
  300. package/build/components/SectionHeader/index.cjs +2 -0
  301. package/build/components/SectionHeader/index.cjs.map +1 -0
  302. package/build/components/SectionHeader/index.d.ts +17 -0
  303. package/build/components/SectionHeader/index.js +25 -0
  304. package/build/components/SectionHeader/index.js.map +1 -0
  305. package/build/components/SectionHeader/style.css +1 -0
  306. package/build/components/SegmentedControl/index.cjs +2 -0
  307. package/build/components/SegmentedControl/index.cjs.map +1 -0
  308. package/build/components/SegmentedControl/index.d.ts +24 -0
  309. package/build/components/SegmentedControl/index.js +69 -0
  310. package/build/components/SegmentedControl/index.js.map +1 -0
  311. package/build/components/SegmentedControl/style.css +1 -0
  312. package/build/components/Select/index.cjs +2 -0
  313. package/build/components/Select/index.cjs.map +1 -0
  314. package/build/components/Select/index.d.ts +39 -0
  315. package/build/components/Select/index.js +179 -0
  316. package/build/components/Select/index.js.map +1 -0
  317. package/build/components/Select/style.css +1 -0
  318. package/build/components/Skeleton/index.cjs +2 -0
  319. package/build/components/Skeleton/index.cjs.map +1 -0
  320. package/build/components/Skeleton/index.d.ts +25 -0
  321. package/build/components/Skeleton/index.js +50 -0
  322. package/build/components/Skeleton/index.js.map +1 -0
  323. package/build/components/Skeleton/style.css +1 -0
  324. package/build/components/Spinner/index.cjs +2 -0
  325. package/build/components/Spinner/index.cjs.map +1 -0
  326. package/build/components/Spinner/index.d.ts +11 -0
  327. package/build/components/Spinner/index.js +15 -0
  328. package/build/components/Spinner/index.js.map +1 -0
  329. package/build/components/Spinner/style.css +1 -0
  330. package/build/components/Stat/index.cjs +2 -0
  331. package/build/components/Stat/index.cjs.map +1 -0
  332. package/build/components/Stat/index.d.ts +34 -0
  333. package/build/components/Stat/index.js +72 -0
  334. package/build/components/Stat/index.js.map +1 -0
  335. package/build/components/Stat/style.css +1 -0
  336. package/build/components/StatusDot/index.cjs +2 -0
  337. package/build/components/StatusDot/index.cjs.map +1 -0
  338. package/build/components/StatusDot/index.d.ts +23 -0
  339. package/build/components/StatusDot/index.js +23 -0
  340. package/build/components/StatusDot/index.js.map +1 -0
  341. package/build/components/StatusDot/style.css +1 -0
  342. package/build/components/Steps/index.cjs +2 -0
  343. package/build/components/Steps/index.cjs.map +1 -0
  344. package/build/components/Steps/index.d.ts +23 -0
  345. package/build/components/Steps/index.js +69 -0
  346. package/build/components/Steps/index.js.map +1 -0
  347. package/build/components/Steps/style.css +1 -0
  348. package/build/components/SummaryCard/index.cjs +2 -0
  349. package/build/components/SummaryCard/index.cjs.map +1 -0
  350. package/build/components/SummaryCard/index.d.ts +24 -0
  351. package/build/components/SummaryCard/index.js +33 -0
  352. package/build/components/SummaryCard/index.js.map +1 -0
  353. package/build/components/SummaryCard/style.css +1 -0
  354. package/build/components/Switch/index.cjs +2 -0
  355. package/build/components/Switch/index.cjs.map +1 -0
  356. package/build/components/Switch/index.d.ts +16 -0
  357. package/build/components/Switch/index.js +42 -0
  358. package/build/components/Switch/index.js.map +1 -0
  359. package/build/components/Switch/style.css +1 -0
  360. package/build/components/Table/index.cjs +2 -0
  361. package/build/components/Table/index.cjs.map +1 -0
  362. package/build/components/Table/index.d.ts +28 -0
  363. package/build/components/Table/index.js +58 -0
  364. package/build/components/Table/index.js.map +1 -0
  365. package/build/components/Table/style.css +1 -0
  366. package/build/components/TableCheckbox/index.cjs +2 -0
  367. package/build/components/TableCheckbox/index.cjs.map +1 -0
  368. package/build/components/TableCheckbox/index.d.ts +15 -0
  369. package/build/components/TableCheckbox/index.js +31 -0
  370. package/build/components/TableCheckbox/index.js.map +1 -0
  371. package/build/components/TableCheckbox/style.css +1 -0
  372. package/build/components/Tabs/index.cjs +2 -0
  373. package/build/components/Tabs/index.cjs.map +1 -0
  374. package/build/components/Tabs/index.d.ts +27 -0
  375. package/build/components/Tabs/index.js +102 -0
  376. package/build/components/Tabs/index.js.map +1 -0
  377. package/build/components/Tabs/style.css +1 -0
  378. package/build/components/TagInput/index.cjs +2 -0
  379. package/build/components/TagInput/index.cjs.map +1 -0
  380. package/build/components/TagInput/index.d.ts +25 -0
  381. package/build/components/TagInput/index.js +124 -0
  382. package/build/components/TagInput/index.js.map +1 -0
  383. package/build/components/TagInput/style.css +1 -0
  384. package/build/components/TextLink/index.cjs +2 -0
  385. package/build/components/TextLink/index.cjs.map +1 -0
  386. package/build/components/TextLink/index.d.ts +16 -0
  387. package/build/components/TextLink/index.js +32 -0
  388. package/build/components/TextLink/index.js.map +1 -0
  389. package/build/components/TextLink/style.css +1 -0
  390. package/build/components/Textarea/index.cjs +2 -0
  391. package/build/components/Textarea/index.cjs.map +1 -0
  392. package/build/components/Textarea/index.d.ts +20 -0
  393. package/build/components/Textarea/index.js +68 -0
  394. package/build/components/Textarea/index.js.map +1 -0
  395. package/build/components/Textarea/style.css +1 -0
  396. package/build/components/Tile/index.cjs +2 -0
  397. package/build/components/Tile/index.cjs.map +1 -0
  398. package/build/components/Tile/index.d.ts +19 -0
  399. package/build/components/Tile/index.js +24 -0
  400. package/build/components/Tile/index.js.map +1 -0
  401. package/build/components/Tile/style.css +1 -0
  402. package/build/components/Timeline/index.cjs +2 -0
  403. package/build/components/Timeline/index.cjs.map +1 -0
  404. package/build/components/Timeline/index.d.ts +24 -0
  405. package/build/components/Timeline/index.js +56 -0
  406. package/build/components/Timeline/index.js.map +1 -0
  407. package/build/components/Timeline/style.css +1 -0
  408. package/build/components/Toast/index.cjs +2 -0
  409. package/build/components/Toast/index.cjs.map +1 -0
  410. package/build/components/Toast/index.d.ts +43 -0
  411. package/build/components/Toast/index.js +136 -0
  412. package/build/components/Toast/index.js.map +1 -0
  413. package/build/components/Toast/style.css +1 -0
  414. package/build/components/ToastPortal/index.cjs +2 -0
  415. package/build/components/ToastPortal/index.cjs.map +1 -0
  416. package/build/components/ToastPortal/index.d.ts +8 -0
  417. package/build/components/ToastPortal/index.js +15 -0
  418. package/build/components/ToastPortal/index.js.map +1 -0
  419. package/build/components/Tooltip/index.cjs +2 -0
  420. package/build/components/Tooltip/index.cjs.map +1 -0
  421. package/build/components/Tooltip/index.d.ts +23 -0
  422. package/build/components/Tooltip/index.js +116 -0
  423. package/build/components/Tooltip/index.js.map +1 -0
  424. package/build/components/Tooltip/style.css +1 -0
  425. package/build/constants/breakpoint.constants.cjs +2 -0
  426. package/build/constants/breakpoint.constants.cjs.map +1 -0
  427. package/build/constants/breakpoint.constants.d.ts +13 -0
  428. package/build/constants/breakpoint.constants.js +11 -0
  429. package/build/constants/breakpoint.constants.js.map +1 -0
  430. package/build/constants/combobox.constants.cjs +2 -0
  431. package/build/constants/combobox.constants.cjs.map +1 -0
  432. package/build/constants/combobox.constants.d.ts +11 -0
  433. package/build/constants/combobox.constants.js +7 -0
  434. package/build/constants/combobox.constants.js.map +1 -0
  435. package/build/constants/scroll.constants.cjs +2 -0
  436. package/build/constants/scroll.constants.cjs.map +1 -0
  437. package/build/constants/scroll.constants.d.ts +7 -0
  438. package/build/constants/scroll.constants.js +5 -0
  439. package/build/constants/scroll.constants.js.map +1 -0
  440. package/build/enums/ui-size.enum.cjs +2 -0
  441. package/build/enums/ui-size.enum.cjs.map +1 -0
  442. package/build/enums/ui-size.enum.d.ts +12 -0
  443. package/build/enums/ui-size.enum.js +5 -0
  444. package/build/enums/ui-size.enum.js.map +1 -0
  445. package/build/enums/ui-variant.enum.cjs +2 -0
  446. package/build/enums/ui-variant.enum.cjs.map +1 -0
  447. package/build/enums/ui-variant.enum.d.ts +20 -0
  448. package/build/enums/ui-variant.enum.js +5 -0
  449. package/build/enums/ui-variant.enum.js.map +1 -0
  450. package/build/helpers/class-name.helper.cjs +2 -0
  451. package/build/helpers/class-name.helper.cjs.map +1 -0
  452. package/build/helpers/class-name.helper.d.ts +3 -0
  453. package/build/helpers/class-name.helper.js +10 -0
  454. package/build/helpers/class-name.helper.js.map +1 -0
  455. package/build/helpers/component.helper.cjs +2 -0
  456. package/build/helpers/component.helper.cjs.map +1 -0
  457. package/build/helpers/component.helper.d.ts +13 -0
  458. package/build/helpers/component.helper.js +5 -0
  459. package/build/helpers/component.helper.js.map +1 -0
  460. package/build/helpers/focus.helper.cjs +2 -0
  461. package/build/helpers/focus.helper.cjs.map +1 -0
  462. package/build/helpers/focus.helper.d.ts +42 -0
  463. package/build/helpers/focus.helper.js +65 -0
  464. package/build/helpers/focus.helper.js.map +1 -0
  465. package/build/helpers/label.helper.cjs +2 -0
  466. package/build/helpers/label.helper.cjs.map +1 -0
  467. package/build/helpers/label.helper.d.ts +11 -0
  468. package/build/helpers/label.helper.js +11 -0
  469. package/build/helpers/label.helper.js.map +1 -0
  470. package/build/helpers/portal.helper.cjs +2 -0
  471. package/build/helpers/portal.helper.cjs.map +1 -0
  472. package/build/helpers/portal.helper.d.ts +28 -0
  473. package/build/helpers/portal.helper.js +36 -0
  474. package/build/helpers/portal.helper.js.map +1 -0
  475. package/build/helpers/scroll.helper.cjs +2 -0
  476. package/build/helpers/scroll.helper.cjs.map +1 -0
  477. package/build/helpers/scroll.helper.d.ts +8 -0
  478. package/build/helpers/scroll.helper.js +11 -0
  479. package/build/helpers/scroll.helper.js.map +1 -0
  480. package/build/helpers/text.helper.cjs +2 -0
  481. package/build/helpers/text.helper.cjs.map +1 -0
  482. package/build/helpers/text.helper.d.ts +5 -0
  483. package/build/helpers/text.helper.js +6 -0
  484. package/build/helpers/text.helper.js.map +1 -0
  485. package/build/helpers/theme.helper.cjs +2 -0
  486. package/build/helpers/theme.helper.cjs.map +1 -0
  487. package/build/helpers/theme.helper.d.ts +18 -0
  488. package/build/helpers/theme.helper.js +37 -0
  489. package/build/helpers/theme.helper.js.map +1 -0
  490. package/build/hooks/useAnnounce.cjs +2 -0
  491. package/build/hooks/useAnnounce.cjs.map +1 -0
  492. package/build/hooks/useAnnounce.d.ts +4 -0
  493. package/build/hooks/useAnnounce.js +23 -0
  494. package/build/hooks/useAnnounce.js.map +1 -0
  495. package/build/hooks/useAsyncSearch.cjs +2 -0
  496. package/build/hooks/useAsyncSearch.cjs.map +1 -0
  497. package/build/hooks/useAsyncSearch.d.ts +11 -0
  498. package/build/hooks/useAsyncSearch.js +17 -0
  499. package/build/hooks/useAsyncSearch.js.map +1 -0
  500. package/build/hooks/useCopyFeedback.cjs +2 -0
  501. package/build/hooks/useCopyFeedback.cjs.map +1 -0
  502. package/build/hooks/useCopyFeedback.d.ts +10 -0
  503. package/build/hooks/useCopyFeedback.js +25 -0
  504. package/build/hooks/useCopyFeedback.js.map +1 -0
  505. package/build/hooks/useDismissOnEscape.cjs +2 -0
  506. package/build/hooks/useDismissOnEscape.cjs.map +1 -0
  507. package/build/hooks/useDismissOnEscape.d.ts +12 -0
  508. package/build/hooks/useDismissOnEscape.js +18 -0
  509. package/build/hooks/useDismissOnEscape.js.map +1 -0
  510. package/build/hooks/useListboxNavigation.cjs +2 -0
  511. package/build/hooks/useListboxNavigation.cjs.map +1 -0
  512. package/build/hooks/useListboxNavigation.d.ts +7 -0
  513. package/build/hooks/useListboxNavigation.js +53 -0
  514. package/build/hooks/useListboxNavigation.js.map +1 -0
  515. package/build/hooks/usePortalSurface.cjs +2 -0
  516. package/build/hooks/usePortalSurface.cjs.map +1 -0
  517. package/build/hooks/usePortalSurface.d.ts +25 -0
  518. package/build/hooks/usePortalSurface.js +19 -0
  519. package/build/hooks/usePortalSurface.js.map +1 -0
  520. package/build/hooks/usePositioning.cjs +2 -0
  521. package/build/hooks/usePositioning.cjs.map +1 -0
  522. package/build/hooks/usePositioning.d.ts +13 -0
  523. package/build/hooks/usePositioning.js +74 -0
  524. package/build/hooks/usePositioning.js.map +1 -0
  525. package/build/hooks/useScrollLock.cjs +2 -0
  526. package/build/hooks/useScrollLock.cjs.map +1 -0
  527. package/build/hooks/useScrollLock.d.ts +2 -0
  528. package/build/hooks/useScrollLock.js +34 -0
  529. package/build/hooks/useScrollLock.js.map +1 -0
  530. package/build/hooks/useSheetViewport.cjs +2 -0
  531. package/build/hooks/useSheetViewport.cjs.map +1 -0
  532. package/build/hooks/useSheetViewport.d.ts +6 -0
  533. package/build/hooks/useSheetViewport.js +29 -0
  534. package/build/hooks/useSheetViewport.js.map +1 -0
  535. package/build/hooks/useStickToBottom.cjs +2 -0
  536. package/build/hooks/useStickToBottom.cjs.map +1 -0
  537. package/build/hooks/useStickToBottom.d.ts +12 -0
  538. package/build/hooks/useStickToBottom.js +39 -0
  539. package/build/hooks/useStickToBottom.js.map +1 -0
  540. package/build/hooks/useUiTheme.cjs +2 -0
  541. package/build/hooks/useUiTheme.cjs.map +1 -0
  542. package/build/hooks/useUiTheme.d.ts +10 -0
  543. package/build/hooks/useUiTheme.js +42 -0
  544. package/build/hooks/useUiTheme.js.map +1 -0
  545. package/build/hooks/useUiTokens.cjs +2 -0
  546. package/build/hooks/useUiTokens.cjs.map +1 -0
  547. package/build/hooks/useUiTokens.d.ts +11 -0
  548. package/build/hooks/useUiTokens.js +36 -0
  549. package/build/hooks/useUiTokens.js.map +1 -0
  550. package/build/hooks/useVirtualList.cjs +2 -0
  551. package/build/hooks/useVirtualList.cjs.map +1 -0
  552. package/build/hooks/useVirtualList.d.ts +13 -0
  553. package/build/hooks/useVirtualList.js +41 -0
  554. package/build/hooks/useVirtualList.js.map +1 -0
  555. package/build/index.cjs +2 -0
  556. package/build/index.cjs.map +1 -0
  557. package/build/index.d.ts +93 -0
  558. package/build/index.js +199 -0
  559. package/build/index.js.map +1 -0
  560. package/build/scss/_index.scss +7 -0
  561. package/build/scss/_mixins.scss +828 -0
  562. package/build/scss/_variables.scss +243 -0
  563. package/build/styles/base.d.ts +0 -0
  564. package/build/styles.css +133 -0
  565. package/build/theme/UiProvider.cjs +2 -0
  566. package/build/theme/UiProvider.cjs.map +1 -0
  567. package/build/theme/UiProvider.d.ts +23 -0
  568. package/build/theme/UiProvider.js +12 -0
  569. package/build/theme/UiProvider.js.map +1 -0
  570. package/build/theme/UiThemeScript.cjs +2 -0
  571. package/build/theme/UiThemeScript.cjs.map +1 -0
  572. package/build/theme/UiThemeScript.d.ts +22 -0
  573. package/build/theme/UiThemeScript.js +8 -0
  574. package/build/theme/UiThemeScript.js.map +1 -0
  575. package/build/theme/context.cjs +2 -0
  576. package/build/theme/context.cjs.map +1 -0
  577. package/build/theme/context.d.ts +5 -0
  578. package/build/theme/context.js +8 -0
  579. package/build/theme/context.js.map +1 -0
  580. package/build/types/charts/AreaChart/index.d.ts +14 -0
  581. package/build/types/charts/BarChart/index.d.ts +16 -0
  582. package/build/types/charts/BoxPlot/index.d.ts +43 -0
  583. package/build/types/charts/ComposedChart/index.d.ts +16 -0
  584. package/build/types/charts/Heatmap/index.d.ts +30 -0
  585. package/build/types/charts/Histogram/index.d.ts +29 -0
  586. package/build/types/charts/LineChart/index.d.ts +14 -0
  587. package/build/types/charts/PieChart/index.d.ts +36 -0
  588. package/build/types/charts/RadarChart/index.d.ts +40 -0
  589. package/build/types/charts/ScatterPlot/index.d.ts +41 -0
  590. package/build/types/charts/core/CartesianChart.d.ts +43 -0
  591. package/build/types/charts/core/ChartFrame.d.ts +55 -0
  592. package/build/types/charts/core/axes.d.ts +37 -0
  593. package/build/types/charts/core/cartesian.d.ts +80 -0
  594. package/build/types/charts/core/format.d.ts +19 -0
  595. package/build/types/charts/core/margins.d.ts +9 -0
  596. package/build/types/charts/core/palette.d.ts +11 -0
  597. package/build/types/charts/core/path.d.ts +24 -0
  598. package/build/types/charts/core/scale.d.ts +40 -0
  599. package/build/types/charts/core/series.d.ts +11 -0
  600. package/build/types/charts/core/spatial.d.ts +12 -0
  601. package/build/types/charts/core/stats.d.ts +34 -0
  602. package/build/types/charts/core/types.d.ts +31 -0
  603. package/build/types/charts/core/useChartWidth.d.ts +7 -0
  604. package/build/types/charts/index.d.ts +21 -0
  605. package/build/types/chat/ActionList/index.d.ts +46 -0
  606. package/build/types/chat/AppBar/index.d.ts +21 -0
  607. package/build/types/chat/ChatMessage/index.d.ts +24 -0
  608. package/build/types/chat/ChatThread/index.d.ts +24 -0
  609. package/build/types/chat/Citation/index.d.ts +15 -0
  610. package/build/types/chat/CodeBlock/format.d.ts +7 -0
  611. package/build/types/chat/CodeBlock/grammars.d.ts +44 -0
  612. package/build/types/chat/CodeBlock/highlight.d.ts +22 -0
  613. package/build/types/chat/CodeBlock/index.d.ts +33 -0
  614. package/build/types/chat/DescriptionList/index.d.ts +16 -0
  615. package/build/types/chat/Legend/index.d.ts +21 -0
  616. package/build/types/chat/MessageActions/index.d.ts +21 -0
  617. package/build/types/chat/PromptInput/index.d.ts +47 -0
  618. package/build/types/chat/PromptSuggestions/index.d.ts +25 -0
  619. package/build/types/chat/Prose/index.d.ts +15 -0
  620. package/build/types/chat/ReasoningBlock/index.d.ts +24 -0
  621. package/build/types/chat/ReasoningText/index.d.ts +14 -0
  622. package/build/types/chat/SegmentBar/index.d.ts +46 -0
  623. package/build/types/chat/SourceList/index.d.ts +25 -0
  624. package/build/types/chat/TerminalOutput/index.d.ts +25 -0
  625. package/build/types/chat/ToolCall/index.d.ts +41 -0
  626. package/build/types/chat/index.d.ts +26 -0
  627. package/build/types/combobox.type.d.ts +49 -0
  628. package/build/types/common-element-props.type.d.ts +8 -0
  629. package/build/types/helpers/class-name.helper.d.ts +3 -0
  630. package/build/types/helpers/component.helper.d.ts +13 -0
  631. package/build/types/helpers/label.helper.d.ts +12 -0
  632. package/build/types/hook.type.d.ts +36 -0
  633. package/build/types/link.type.d.ts +14 -0
  634. package/build/types/positioning.type.d.ts +38 -0
  635. package/build/types/theme.type.d.ts +181 -0
  636. package/build/types/types/common-element-props.type.d.ts +8 -0
  637. package/build/types/types/link.type.d.ts +14 -0
  638. package/build/types/types/theme.type.d.ts +181 -0
  639. package/package.json +487 -4
package/build/chat.js ADDED
@@ -0,0 +1,1121 @@
1
+ "use client";
2
+ import { jsxs as p, jsx as a, Fragment as We } from "react/jsx-runtime";
3
+ import { memo as g, useRef as L, useEffect as U, forwardRef as Xe, useState as ce, useMemo as pe, Fragment as Je, Children as Qe, isValidElement as Ve, cloneElement as et } from "react";
4
+ import { ArrowDown as tt, StopFill as nt, ArrowUp as st, CheckLg as at, ClipboardFill as it } from "react-bootstrap-icons";
5
+ import { useUi as C, useAnnounce as Pe, useStickToBottom as Ke, IconButton as te, Textarea as rt, hasOpenSurface as ot, Disclosure as Be, Spinner as ct, ScrollArea as lt, StatusDot as dt } from "@handijit/ui";
6
+ import { cssVar as Fe } from "@handijit/design";
7
+ const m = (...e) => {
8
+ let n = "";
9
+ for (const t of e)
10
+ t && (n = n === "" ? t : `${n} ${t}`);
11
+ return n;
12
+ }, k = (e, n) => Object.assign(e, { displayName: n }), he = /* @__PURE__ */ new Set(), x = (e, ...n) => {
13
+ for (const t of n) if (t !== void 0) return t;
14
+ return process.env.NODE_ENV !== "production" && !he.has(e) && (he.add(e), console.error(
15
+ `[@handijit/ui] Eksik metin: ${e}. Prop olarak geçin ya da <UiProvider labels={…}> içinde bir kez tanımlayın. Metinsiz bırakılan öğe ekran okuyucuda adsız kalır.`
16
+ )), "";
17
+ }, je = (e, n, ...t) => n ? n(...t) : x(e), _t = "ui-thread-R1LCJ", ut = "ui-thread__scroll-37EaI", mt = "ui-thread__column-57FQh", pt = "ui-thread__dock-y0Tt9", ht = "ui-thread__latest-ZNmqY", D = {
18
+ thread: _t,
19
+ thread__scroll: ut,
20
+ thread__column: mt,
21
+ thread__dock: pt,
22
+ thread__latest: ht
23
+ }, bt = ({ children: e, dock: n, isStreaming: t, label: i, className: r, testId: o }) => {
24
+ var f, b, y;
25
+ const { labels: s } = C(), l = Pe(), c = L(null), { isAtEnd: _, scrollToEnd: d } = Ke(c), u = L(t);
26
+ return U(() => {
27
+ var v;
28
+ u.current && !t && l(x("ChatThread.replyReady", (v = s == null ? void 0 : s.chat) == null ? void 0 : v.replyReady)), u.current = t;
29
+ }, [l, t, (f = s == null ? void 0 : s.chat) == null ? void 0 : f.replyReady]), /* @__PURE__ */ p("div", { className: m(D.thread, r), "data-testid": o, children: [
30
+ /* @__PURE__ */ a(
31
+ "div",
32
+ {
33
+ ref: c,
34
+ className: D.thread__scroll,
35
+ role: "region",
36
+ "aria-label": x("ChatThread.label", i, (b = s == null ? void 0 : s.chat) == null ? void 0 : b.thread),
37
+ tabIndex: 0,
38
+ children: /* @__PURE__ */ a("div", { className: D.thread__column, children: e })
39
+ }
40
+ ),
41
+ /* @__PURE__ */ p("div", { className: D.thread__dock, children: [
42
+ !_ && /* @__PURE__ */ a(
43
+ te,
44
+ {
45
+ className: D.thread__latest,
46
+ icon: /* @__PURE__ */ a(tt, { "aria-hidden": !0 }),
47
+ label: x("ChatThread.scrollToLatest", (y = s == null ? void 0 : s.chat) == null ? void 0 : y.scrollToLatest),
48
+ variant: "outline",
49
+ shape: "round",
50
+ size: "sm",
51
+ onClick: d
52
+ }
53
+ ),
54
+ n !== void 0 && /* @__PURE__ */ a("div", { className: D.thread__column, children: n })
55
+ ] })
56
+ ] });
57
+ }, Qs = /* @__PURE__ */ g(
58
+ /* @__PURE__ */ k(bt, "ChatThread")
59
+ ), ft = "ui-message-z5uVx", yt = "ui-message__avatar-QzWck", gt = "ui-message__main-1rh-A", kt = "ui-message__body-Ngiqq", wt = "ui-message__actions-dQ0Fn", M = {
60
+ message: ft,
61
+ "message--user": "ui-message--user-Mq6gb",
62
+ message__avatar: yt,
63
+ message__main: gt,
64
+ "message--assistant": "ui-message--assistant-ndkmH",
65
+ message__body: kt,
66
+ message__actions: wt
67
+ }, vt = ({
68
+ author: e,
69
+ children: n,
70
+ avatar: t,
71
+ actions: i,
72
+ isStreaming: r,
73
+ className: o,
74
+ testId: s
75
+ }) => /* @__PURE__ */ p(
76
+ "article",
77
+ {
78
+ className: m(M.message, M[`message--${e}`], o),
79
+ "aria-busy": r || void 0,
80
+ "data-testid": s,
81
+ children: [
82
+ e === "assistant" && t !== void 0 && /* @__PURE__ */ a("div", { className: M.message__avatar, children: t }),
83
+ /* @__PURE__ */ p("div", { className: M.message__main, children: [
84
+ /* @__PURE__ */ a("div", { className: M.message__body, children: n }),
85
+ i !== void 0 && /* @__PURE__ */ a("div", { className: M.message__actions, children: i })
86
+ ] })
87
+ ]
88
+ }
89
+ ), Vs = /* @__PURE__ */ g(
90
+ /* @__PURE__ */ k(vt, "ChatMessage")
91
+ ), Nt = "ui-prompt-qHV1e", St = "ui-prompt__box-sUQDu", xt = "ui-prompt__field-EmvTZ", Tt = "ui-prompt__start-2tqre", At = "ui-prompt__end-Zp7fi", Ct = "ui-prompt__hint-4TpeC", R = {
92
+ prompt: Nt,
93
+ prompt__box: St,
94
+ "prompt__box--disabled": "ui-prompt__box--disabled-xu-Yk",
95
+ prompt__field: xt,
96
+ prompt__start: Tt,
97
+ prompt__end: At,
98
+ prompt__hint: Ct
99
+ }, Et = /* @__PURE__ */ Xe(
100
+ ({
101
+ value: e,
102
+ onChange: n,
103
+ onSubmit: t,
104
+ onStop: i,
105
+ isBusy: r,
106
+ isDisabled: o,
107
+ isSubmitDisabled: s,
108
+ placeholder: l,
109
+ label: c,
110
+ maxRows: _ = 8,
111
+ hint: d,
112
+ start: u,
113
+ end: f,
114
+ className: b,
115
+ testId: y
116
+ }, v) => {
117
+ var _e, ue;
118
+ const { labels: w } = C(), K = e.trim() === "";
119
+ U(() => {
120
+ if (!r || !i) return;
121
+ const T = (me) => {
122
+ me.key !== "Escape" || me.defaultPrevented || ot() || i();
123
+ };
124
+ return document.addEventListener("keydown", T), () => document.removeEventListener("keydown", T);
125
+ }, [r, i]);
126
+ const Ye = (T) => {
127
+ T.key !== "Enter" || T.shiftKey || T.nativeEvent.isComposing || (T.preventDefault(), !K && !r && !o && !s && t());
128
+ };
129
+ return /* @__PURE__ */ p("div", { className: m(R.prompt, b), "data-testid": y, children: [
130
+ /* @__PURE__ */ p("div", { className: m(R.prompt__box, o && R["prompt__box--disabled"]), children: [
131
+ u !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__start, children: u }),
132
+ /* @__PURE__ */ a(
133
+ rt,
134
+ {
135
+ ref: v,
136
+ className: R.prompt__field,
137
+ variant: "bare",
138
+ rows: 1,
139
+ isAutoSize: !0,
140
+ maxRows: _,
141
+ value: e,
142
+ placeholder: l,
143
+ "aria-label": c ?? l,
144
+ disabled: o,
145
+ onChange: (T) => n(T.target.value),
146
+ onKeyDown: Ye
147
+ }
148
+ ),
149
+ f !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__end, children: f }),
150
+ r ? /* @__PURE__ */ a(
151
+ te,
152
+ {
153
+ icon: /* @__PURE__ */ a(nt, { "aria-hidden": !0 }),
154
+ label: x("PromptInput.stop", (_e = w == null ? void 0 : w.chat) == null ? void 0 : _e.stop),
155
+ variant: "outline",
156
+ shape: "round",
157
+ onClick: i,
158
+ disabled: !i
159
+ }
160
+ ) : /* @__PURE__ */ a(
161
+ te,
162
+ {
163
+ icon: /* @__PURE__ */ a(st, { "aria-hidden": !0 }),
164
+ label: x("PromptInput.send", (ue = w == null ? void 0 : w.chat) == null ? void 0 : ue.send),
165
+ variant: "solid",
166
+ shape: "round",
167
+ onClick: t,
168
+ disabled: K || o || s
169
+ }
170
+ )
171
+ ] }),
172
+ d !== void 0 && /* @__PURE__ */ a("div", { className: R.prompt__hint, children: d })
173
+ ] });
174
+ }
175
+ ), ea = /* @__PURE__ */ g(
176
+ /* @__PURE__ */ k(Et, "PromptInput")
177
+ ), $t = "ui-grid-4EfQ-", Rt = "ui-card-KTt0-", Ot = "ui-card__label-LNLTF", Lt = "ui-card__description-eIx-0", H = {
178
+ grid: $t,
179
+ card: Rt,
180
+ card__label: Ot,
181
+ card__description: Lt
182
+ }, zt = ({ label: e, items: n, onPick: t, className: i, testId: r }) => /* @__PURE__ */ a("div", { role: "group", "aria-label": e, className: m(H.grid, i), "data-testid": r, children: n.map((o) => /* @__PURE__ */ p("button", { type: "button", className: H.card, onClick: () => t(o), children: [
183
+ /* @__PURE__ */ a("span", { className: H.card__label, children: o.label }),
184
+ o.description && /* @__PURE__ */ a("span", { className: H.card__description, children: o.description })
185
+ ] }, o.id)) }), ta = /* @__PURE__ */ g(
186
+ /* @__PURE__ */ k(zt, "PromptSuggestions")
187
+ ), It = "ui-prose-kAp6f", Dt = {
188
+ prose: It
189
+ }, Mt = ({ className: e, testId: n, ...t }) => /* @__PURE__ */ a("div", { className: m(Dt.prose, e), "data-testid": n, ...t }), na = /* @__PURE__ */ g(/* @__PURE__ */ k(Mt, "Prose")), Pt = /^(?:[ \t]*\r?\n)+/, Kt = " ", Bt = (e) => (e == null ? void 0 : e.trim().toLowerCase()) === "json", Ft = (e, n) => {
190
+ let t = n + 1;
191
+ for (; t < e.length && e[t] !== '"'; ) t += e[t] === "\\" ? 2 : 1;
192
+ return t + 1;
193
+ }, jt = (e, n) => {
194
+ let t = n;
195
+ for (; t < e.length && /\s/.test(e[t]); ) t++;
196
+ return t;
197
+ }, Zt = (e) => {
198
+ try {
199
+ JSON.parse(e);
200
+ } catch {
201
+ return e;
202
+ }
203
+ let n = "", t = 0;
204
+ const i = () => `
205
+ ${Kt.repeat(t)}`;
206
+ for (let r = 0; r < e.length; r++) {
207
+ const o = e[r];
208
+ if (o === '"') {
209
+ const s = Ft(e, r);
210
+ n += e.slice(r, s), r = s - 1;
211
+ } else if (o === "{" || o === "[") {
212
+ const s = jt(e, r + 1);
213
+ e[s] === (o === "{" ? "}" : "]") ? (n += o + e[s], r = s) : (t++, n += o + i());
214
+ } else o === "}" || o === "]" ? (t--, n += i() + o) : o === "," ? n += `,${i()}` : o === ":" ? n += ": " : /\s/.test(o) || (n += o);
215
+ }
216
+ return n;
217
+ }, Ut = (e, n) => {
218
+ const t = e.replace(Pt, "").trimEnd();
219
+ return Bt(n) ? Zt(t) : t;
220
+ }, h = (e) => new Set(e.split(" ")), $ = /"(?:[^"\\\n]|\\.)*"?/, G = /'(?:[^'\\\n]|\\.)*'?/, Ze = /`(?:[^`\\]|\\[\s\S])*`?/, le = /"""[\s\S]*?(?:"""|(?![\s\S]))/, Gt = /'''[\s\S]*?(?:'''|(?![\s\S]))/, qt = /'(?:\\[^\n]{1,8}?|[^'\\\n])'/, ne = /\/\/.*/, q = /\/\*[\s\S]*?(?:\*\/|(?![\s\S]))/, z = /#.*/, P = /\b(?:0[xX][\dA-Fa-f_]+|0[bB][01_]+|0[oO][0-7_]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[eE][+-]?\d+)?)[A-Za-z]*\b/, I = /[A-Za-z_]\w*/, se = /[{}[\]();,.:]/, de = /@[A-Za-z_][\w.]*/, Ht = /[\w$)\]]/, be = /\S/, fe = "break case catch class const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield async await of static get set as from", Yt = "type interface enum implements namespace declare abstract private protected public readonly keyof infer is satisfies override module asserts unique", Wt = "true false null undefined NaN Infinity", Xt = "string number boolean any unknown never object symbol bigint", Jt = "int long short char float double bool boolean byte void unsigned signed string str usize isize u8 u16 u32 u64 u128 i8 i16 i32 i64 i128 f32 f64 rune uint uint8 uint16 uint32 uint64 int8 int16 int32 int64 float32 float64 error any decimal size_t", Qt = "true false null nil nullptr NULL", Ue = "auto break case const continue default do else enum extern for goto if inline register restrict return sizeof static struct switch typedef union volatile while", Vt = `${Ue} alignas alignof catch class constexpr consteval const_cast decltype delete dynamic_cast explicit export friend mutable namespace new noexcept operator private protected public reinterpret_cast static_assert static_cast template this thread_local throw try typeid typename using virtual override final concept requires co_await co_return co_yield`, en = "abstract as async await base break case catch checked class const continue default delegate do dynamic else enum event explicit extern finally fixed for foreach get goto if implicit in init interface internal is lock namespace new operator out override params partial private protected public readonly record ref return sealed set sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using var virtual volatile when where while yield", tn = "abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package permits private protected public record return sealed static strictfp super switch synchronized this throw throws transient try var volatile while yield", nn = "abstract annotation as break by catch class companion const constructor continue crossinline data do else enum external final finally for fun get if import in infix init inline inner interface internal is lateinit noinline object open operator out override package private protected public reified return sealed set super suspend this throw try typealias val var vararg when where while", sn = "actor as associatedtype async await break case catch class continue default defer deinit do else enum extension fallthrough fileprivate final for func guard if import in init inout internal is lazy let mutating open operator override private protocol public repeat rethrows return self Self some static struct subscript super switch throw throws try typealias var weak where while", an = "break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var", rn = "as async await break const continue crate dyn else enum extern fn for if impl in let loop match mod move mut pub ref return self Self static struct super trait type unsafe use where while", on = "abstract and array as break callable case catch class clone const continue declare default do echo else elseif empty extends final finally fn for foreach function global goto if implements include include_once instanceof insteadof interface isset list match namespace new or print private protected public readonly require require_once return static switch throw trait try unset use var while xor yield", cn = "if then else elif fi for while until do done case esac in function return local export select time break continue declare readonly unset shift source alias exit", ln = "FROM AS RUN CMD LABEL EXPOSE ENV ADD COPY ENTRYPOINT VOLUME USER WORKDIR ARG ONBUILD STOPSIGNAL HEALTHCHECK SHELL MAINTAINER", ae = (e, n) => ({
221
+ rules: [
222
+ ["comment", ne],
223
+ ["comment", q],
224
+ ["string", $],
225
+ ["string", G],
226
+ ["string", Ze],
227
+ /*
228
+ * Düzenli ifade. Tamamı (kapanış `/` ve bayraklar) önce gelir; alternatifler AYRIK olduğu
229
+ * için geri dönüş doğrusaldır.
230
+ * ⚠ Karakter sınıfının kapanışı bu kuralda ZORUNLU. `\]?` dıştaki tekrar ve sondaki `/` ile
231
+ * birkaç bin `[`de üstel geri dönüş yapıp sayfayı kilitliyordu.
232
+ * Kapanmamış ifade alttaki kural: sonda aranan bir `/` yok, bu yüzden başarısız olup geri
233
+ * dönmez; gövde satır sonuna kadar boyanır.
234
+ */
235
+ ["regex", /\/(?![*/])(?:\\.|\[(?:\\.|[^\]\\\n])*\]|[^/\\\n[])+\/[dgimsuvy]*/],
236
+ ["regex", /\/(?![*/])(?:\\.|\[(?:\\.|[^\]\\\n])*\]?|[^/\\\n[])*/],
237
+ /*
238
+ * Bileşen etiketi yalnızca JSX'te; TS'te `<` bir tür parametresi ya da karşılaştırma. Açılış
239
+ * etiketi addan sonra gelemez (`useState<string>`); kapanış gelebilir (`Kaydet</Button>`).
240
+ */
241
+ ...n ? [
242
+ ["tag", /<\/[A-Za-z][\w.:-]*/],
243
+ ["tag", /<[A-Za-z][\w.:-]*/, Ht]
244
+ ] : [],
245
+ ["name", de],
246
+ ["number", P],
247
+ ["word", /[A-Za-z_$][\w$]*/],
248
+ ["punctuation", se]
249
+ ],
250
+ keywords: h(e ? `${fe} ${Yt}` : fe),
251
+ literals: h(Wt),
252
+ types: e ? h(Xt) : void 0,
253
+ hasCapitalTypes: !0
254
+ }), A = (e, n = []) => ({
255
+ rules: [
256
+ ...n,
257
+ ["comment", ne],
258
+ ["comment", q],
259
+ /* Önişlemci (`#include`) ve Rust özniteliği (`#[derive(Debug)]`). */
260
+ ["keyword", /^[ \t]*#[ \t]*[a-z]+|#!?\[[^\]\n]*\]/],
261
+ ["string", le],
262
+ ["string", $],
263
+ ["string", qt],
264
+ /* Go'nun ham dizesi. */
265
+ ["string", Ze],
266
+ ["name", de],
267
+ ["number", P],
268
+ ["word", I],
269
+ ["punctuation", se]
270
+ ],
271
+ keywords: h(e),
272
+ literals: h(Qt),
273
+ types: h(Jt),
274
+ hasCapitalTypes: !0
275
+ }), ye = () => ({
276
+ rules: [
277
+ ["comment", z],
278
+ [
279
+ "string",
280
+ /(?:\b[rRbBuUfF]{1,2})?(?:"""[\s\S]*?(?:"""|(?![\s\S]))|'''[\s\S]*?(?:'''|(?![\s\S])))/
281
+ ],
282
+ ["string", /(?:\b[rRbBuUfF]{1,2})?(?:"(?:[^"\\\n]|\\.)*"?|'(?:[^'\\\n]|\\.)*'?)/],
283
+ ["name", de],
284
+ ["number", P],
285
+ ["word", I],
286
+ ["punctuation", se]
287
+ ],
288
+ keywords: h(
289
+ "and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield match case"
290
+ ),
291
+ literals: h("True False None"),
292
+ types: h("int float str bool list dict set tuple bytes object"),
293
+ hasCapitalTypes: !0
294
+ }), ge = () => ({
295
+ rules: [
296
+ ["comment", z],
297
+ ["string", $],
298
+ ["string", G],
299
+ /* Sembol (`:ad`) sabittir; `Foo::Bar` içindeki `:Bar` değil. */
300
+ ["number", /:[A-Za-z_]\w*[?!]?/, /[\w:]/],
301
+ ["name", /@{1,2}[A-Za-z_]\w*/],
302
+ ["number", P],
303
+ ["word", /[A-Za-z_]\w*[?!]?/],
304
+ ["punctuation", se]
305
+ ],
306
+ keywords: h(
307
+ "alias and begin break case class def defined? do else elsif end ensure for if in module next not or redo rescue retry return self super then undef unless until when while yield require require_relative attr_accessor attr_reader attr_writer private protected public raise"
308
+ ),
309
+ literals: h("true false nil"),
310
+ hasCapitalTypes: !0
311
+ }), Ge = (e) => ({
312
+ rules: [
313
+ /* `#` yorum açar yalnızca kelime başında: `$#`, `a#b` yorum değil. */
314
+ ["comment", z, /[^\s;|&(]/],
315
+ /* Kabukta çift tırnak satır aşar, tek tırnak kaçış tanımaz. */
316
+ ["string", /"(?:[^"\\]|\\[\s\S])*"?/],
317
+ ["string", /'[^']*'?/],
318
+ ["name", /\$(?:\{[^}\n]*\}?|[A-Za-z_]\w*|[@#?$!*\d-])/],
319
+ ["number", /\b\d+\b/],
320
+ ["word", /[A-Za-z_][\w-]*/],
321
+ ["punctuation", /[{}[\]();|&]/]
322
+ ],
323
+ keywords: h(e)
324
+ }), ke = () => ({
325
+ rules: [
326
+ ["comment", ne],
327
+ ["comment", q],
328
+ /* Anahtar: ardından `:` gelen dize. */
329
+ ["name", /"(?:[^"\\\n]|\\.)*"(?=\s*:)/],
330
+ ["string", $],
331
+ ["number", /-?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],
332
+ ["word", I],
333
+ ["punctuation", /[{}[\],:]/]
334
+ ],
335
+ literals: h("true false null")
336
+ }), we = () => ({
337
+ rules: [
338
+ ["comment", z, be],
339
+ /* Anahtar; ilk karakteri `-` olamaz (`- ad:` bir liste öğesi). */
340
+ [
341
+ "name",
342
+ /(?:"(?:[^"\\\n]|\\.)*"|'[^'\n]*'|[\w$./][\w$./-]*(?:[ \t]+[\w$./-]+)*)(?=[ \t]*:(?:[ \t]|$))/
343
+ ],
344
+ ["string", $],
345
+ ["string", G],
346
+ /* Çapa (`&ad`), takma ad (`*ad`), etiket (`!!str`). */
347
+ ["type", /[&*][\w-]+|!!?[\w-]+/, be],
348
+ ["punctuation", /^[ \t]*-(?=[ \t]|$)|[{}[\],]|[|>][-+]?(?=[ \t]*$)/],
349
+ ["number", /[-+]?\b\d[\d_]*(?:\.\d+)?(?:[eE][+-]?\d+)?\b/],
350
+ ["word", I]
351
+ ],
352
+ literals: h("true false null True False Null TRUE FALSE NULL")
353
+ }), dn = () => ({
354
+ rules: [
355
+ ["comment", z],
356
+ ["type", /^[ \t]*\[\[?[^\]\n]*\]\]?/],
357
+ ["name", /(?:"[^"\n]*"|[\w.-]+)(?=[ \t]*=)/],
358
+ ["string", le],
359
+ ["string", Gt],
360
+ ["string", $],
361
+ ["string", /'[^'\n]*'?/],
362
+ [
363
+ "number",
364
+ /\b\d{4}-\d{2}-\d{2}(?:[T ]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b|[-+]?\b\d[\d_]*(?:\.\d+)?(?:[eE][+-]?\d+)?\b/
365
+ ],
366
+ ["word", I],
367
+ ["punctuation", /[{}[\],=]/]
368
+ ],
369
+ literals: h("true false inf nan")
370
+ }), ie = () => ({
371
+ rules: [
372
+ ["comment", q],
373
+ /* SCSS/Less satır yorumu; `url(http://…)` içindeki `//` değil. */
374
+ ["comment", ne, /:/],
375
+ ["string", $],
376
+ ["string", G],
377
+ ["keyword", /@[\w-]+|!important\b/],
378
+ /*
379
+ * Özellik adı: ardındaki `:` bir bildirimi açıyorsa (`;` ya da `}` `{`dan önce geliyorsa).
380
+ * `a:hover {` bir seçici — ardından önce `{` geliyor.
381
+ */
382
+ ["name", /-{0,2}[A-Za-z][\w-]*(?=\s*:[^;{}]*[;}])/],
383
+ ["name", /\$[\w-]+/],
384
+ ["number", /#[\dA-Fa-f]{3,8}\b|-?(?:\b\d+(?:\.\d+)?|\.\d+)(?:%|[A-Za-z]+\b)?/],
385
+ ["word", /-?[A-Za-z_][\w-]*/],
386
+ ["punctuation", /[{}();:,]/]
387
+ ]
388
+ }), Y = () => ({
389
+ rules: [
390
+ ["comment", /<!--[\s\S]*?(?:-->|(?![\s\S]))/],
391
+ ["keyword", /<![A-Za-z][^>]*>?|<\?[\s\S]*?(?:\?>|(?![\s\S]))/],
392
+ ["markup", /<\/?[A-Za-z][\w:.-]*(?:"[^"]*"?|'[^']*'?|[^'">])*>?/],
393
+ /* Karakter başvurusu (`&amp;`). */
394
+ ["number", /&#?\w+;/]
395
+ ]
396
+ }), ve = () => ({
397
+ rules: [
398
+ [
399
+ "string",
400
+ /^[ \t]*```[\s\S]*?(?:^[ \t]*```|(?![\s\S]))|^[ \t]*~~~[\s\S]*?(?:^[ \t]*~~~|(?![\s\S]))/
401
+ ],
402
+ ["keyword", /^#{1,6}[ \t].*/],
403
+ ["punctuation", /^[ \t]*(?:[-*+]|\d+[.)])(?=[ \t])|^[ \t]*>/],
404
+ ["string", /`[^`\n]+`/],
405
+ ["name", /!?\[[^\]\n]*\]\([^)\n]*\)/]
406
+ ]
407
+ }), _n = () => ({
408
+ rules: [
409
+ ["comment", /--.*/],
410
+ ["comment", q],
411
+ ["string", /'(?:[^']|'')*'?/],
412
+ ["name", /"[^"\n]*"?|`[^`\n]*`?/],
413
+ ["number", P],
414
+ ["word", I],
415
+ ["punctuation", /[(),;.]/]
416
+ ],
417
+ keywords: h(
418
+ "select from where and or not insert into values update set delete create table alter drop index view join inner left right full outer cross on as group by order having limit offset union all distinct case when then else end is in exists between like ilike primary key foreign references default unique constraint returning with asc desc begin commit rollback transaction if replace check cascade grant revoke add column database schema trigger procedure function declare"
419
+ ),
420
+ literals: h("null true false"),
421
+ types: h(
422
+ "int integer bigint smallint serial bigserial text varchar char boolean bool date time timestamp timestamptz interval numeric decimal real float double json jsonb uuid bytea"
423
+ ),
424
+ isCaseInsensitive: !0
425
+ }), Ne = () => ({
426
+ rules: [
427
+ ["keyword", /^(?:diff|index|\+\+\+|---)(?: .*|$)/],
428
+ ["name", /^@@.*/],
429
+ ["inserted", /^\+.*/],
430
+ ["deleted", /^-.*/]
431
+ ]
432
+ }), Se = () => ({
433
+ rules: [
434
+ ["comment", z],
435
+ ["string", le],
436
+ ["string", $],
437
+ ["name", /\$\w+/],
438
+ ["name", /@\w+/],
439
+ ["number", P],
440
+ ["word", I],
441
+ ["punctuation", /[{}[\]():,!=|]/]
442
+ ],
443
+ keywords: h(
444
+ "query mutation subscription fragment on type input enum interface union scalar schema extend directive implements"
445
+ ),
446
+ literals: h("true false null"),
447
+ /* `ID` tamamı büyük harf ama sabit değil, yerleşik tip. */
448
+ types: h("ID"),
449
+ hasCapitalTypes: !0
450
+ }), un = () => ({
451
+ rules: [
452
+ ["tag", /<\/?[A-Za-z][\w:.-]*/],
453
+ ["string", /"[^"]*"?|'[^']*'?/],
454
+ ["name", /[^\s"'<>/=]+/],
455
+ ["punctuation", /\/?>|=/]
456
+ ]
457
+ }), W = () => ae(!1, !1), mn = () => ae(!1, !0), X = () => ae(!0, !1), pn = () => ae(!0, !0), B = () => Ge(cn), xe = () => Ge(ln), Te = () => A(Ue), re = () => A(Vt), Ae = () => A(en), Ce = () => A(nn), Ee = () => A(an), $e = () => A(rn), hn = () => A(on, [
458
+ ["comment", z],
459
+ ["name", /\$[A-Za-z_]\w*/],
460
+ ["string", G]
461
+ ]), Re = {
462
+ javascript: W,
463
+ js: W,
464
+ mjs: W,
465
+ cjs: W,
466
+ jsx: mn,
467
+ typescript: X,
468
+ ts: X,
469
+ mts: X,
470
+ cts: X,
471
+ tsx: pn,
472
+ json: ke,
473
+ jsonc: ke,
474
+ bash: B,
475
+ sh: B,
476
+ shell: B,
477
+ zsh: B,
478
+ console: B,
479
+ dockerfile: xe,
480
+ docker: xe,
481
+ python: ye,
482
+ py: ye,
483
+ ruby: ge,
484
+ rb: ge,
485
+ yaml: we,
486
+ yml: we,
487
+ toml: dn,
488
+ css: ie,
489
+ scss: ie,
490
+ less: ie,
491
+ html: Y,
492
+ xml: Y,
493
+ svg: Y,
494
+ vue: Y,
495
+ markdown: ve,
496
+ md: ve,
497
+ sql: _n,
498
+ diff: Ne,
499
+ patch: Ne,
500
+ graphql: Se,
501
+ gql: Se,
502
+ c: Te,
503
+ h: Te,
504
+ cpp: re,
505
+ "c++": re,
506
+ hpp: re,
507
+ csharp: Ae,
508
+ cs: Ae,
509
+ java: () => A(tn),
510
+ kotlin: Ce,
511
+ kt: Ce,
512
+ swift: () => A(sn),
513
+ go: Ee,
514
+ golang: Ee,
515
+ rust: $e,
516
+ rs: $e,
517
+ php: hn
518
+ }, bn = 2e4, Oe = /!?[ \t]*\(/y, fn = /^[A-Z][A-Z\d_]+$/, yn = /[(,=:[!&|?{};~+\-*%<>^]/, gn = /* @__PURE__ */ new Set([
519
+ "return",
520
+ "typeof",
521
+ "case",
522
+ "do",
523
+ "else",
524
+ "in",
525
+ "of",
526
+ "new",
527
+ "delete",
528
+ "void",
529
+ "throw",
530
+ "yield",
531
+ "await"
532
+ ]), Le = /* @__PURE__ */ new Map(), qe = (e) => {
533
+ const n = Le.get(e);
534
+ if (n) return n;
535
+ const t = e(), r = { pattern: new RegExp(t.rules.map(([, o]) => `(${o.source})`).join("|"), "gm"), grammar: t };
536
+ return Le.set(e, r), r;
537
+ }, kn = (e) => {
538
+ const n = e == null ? void 0 : e.trim().toLowerCase();
539
+ return n && Object.hasOwn(Re, n) ? Re[n] : void 0;
540
+ }, wn = (e, n) => {
541
+ let t = n - 1;
542
+ for (; t >= 0 && /\s/.test(e[t]); ) t--;
543
+ if (t < 0 || yn.test(e[t])) return !0;
544
+ const i = t + 1;
545
+ for (; t >= 0 && /[\w$]/.test(e[t]); ) t--;
546
+ return gn.has(e.slice(t + 1, i));
547
+ }, vn = (e, n, t, i, r) => {
548
+ var l, c, _;
549
+ Oe.lastIndex = r;
550
+ const o = Oe.test(t);
551
+ if (t[i - 1] === ".") return o ? "name" : void 0;
552
+ const s = e.isCaseInsensitive ? n.toLowerCase() : n;
553
+ if ((l = e.keywords) != null && l.has(s)) return "keyword";
554
+ if ((c = e.literals) != null && c.has(s)) return "number";
555
+ if ((_ = e.types) != null && _.has(s)) return "type";
556
+ if (o) return "name";
557
+ if (e.hasCapitalTypes && /^[A-Z]/.test(n))
558
+ return fn.test(n) ? "number" : "type";
559
+ }, He = ({ pattern: e, grammar: n }, t) => {
560
+ const i = [], r = (s, l) => {
561
+ if (!s) return;
562
+ const c = i.at(-1);
563
+ c && c.type === l ? c.text += s : i.push({ text: s, type: l });
564
+ };
565
+ let o = 0;
566
+ e.lastIndex = 0;
567
+ for (let s = e.exec(t); s; s = e.exec(t)) {
568
+ const [l] = s, { index: c } = s, _ = c + l.length;
569
+ if (_ === c) {
570
+ e.lastIndex = c + 1;
571
+ continue;
572
+ }
573
+ const [d, , u] = n.rules[s.indexOf(l, 1) - 1];
574
+ if (u !== void 0 && c > 0 && u.test(t[c - 1]) || d === "regex" && !wn(t, c)) {
575
+ e.lastIndex = c + 1;
576
+ continue;
577
+ }
578
+ if (r(t.slice(o, c)), o = _, d === "word") r(l, vn(n, l, t, c, _));
579
+ else if (d === "regex") r(l, "string");
580
+ else if (d === "tag") {
581
+ const b = l[1] === "/" ? 2 : 1, y = l.slice(b);
582
+ r(l.slice(0, b), "punctuation"), r(y, /^[A-Z]/.test(y) || y.includes(".") ? "type" : "keyword");
583
+ } else if (d === "markup")
584
+ for (const b of He(qe(un), l)) r(b.text, b.type);
585
+ else r(l, d);
586
+ }
587
+ return r(t.slice(o)), i;
588
+ }, Nn = (e, n) => {
589
+ const t = kn(n);
590
+ return t && e.length <= bn ? He(qe(t), e) : [{ text: e }];
591
+ }, Sn = "ui-block-M1yL9", xn = "ui-block__header-F2iBP", Tn = "ui-block__language-lmdS9", An = "ui-block__body-wDCJ2", Cn = "ui-block__pre--EERi", En = "ui-block__highlighted-JK1Yj", O = {
592
+ block: Sn,
593
+ block__header: xn,
594
+ block__language: Tn,
595
+ block__body: An,
596
+ block__pre: Cn,
597
+ block__highlighted: En,
598
+ "block__token--comment": "ui-block__token--comment-eFTyh",
599
+ "block__token--keyword": "ui-block__token--keyword-qQpj9",
600
+ "block__token--string": "ui-block__token--string-4onwX",
601
+ "block__token--number": "ui-block__token--number-DThtL",
602
+ "block__token--name": "ui-block__token--name-283C9",
603
+ "block__token--type": "ui-block__token--type-cNUbM",
604
+ "block__token--punctuation": "ui-block__token--punctuation-Te2u8",
605
+ "block__token--inserted": "ui-block__token--inserted-sUKnQ",
606
+ "block__token--deleted": "ui-block__token--deleted-s74a-"
607
+ }, $n = 1600, Rn = ({ code: e, language: n, html: t, maxHeight: i, className: r, testId: o }) => {
608
+ var v;
609
+ const { labels: s } = C(), l = Pe(), [c, _] = ce(!1), d = L(void 0), u = pe(() => t ? e : Ut(e, n), [e, t, n]), f = pe(() => t ? [] : Nn(u, n), [u, t, n]);
610
+ U(() => () => window.clearTimeout(d.current), []);
611
+ const b = async () => {
612
+ var w;
613
+ try {
614
+ await navigator.clipboard.writeText(u);
615
+ } catch {
616
+ return;
617
+ }
618
+ _(!0), l(x("CodeBlock.copied", (w = s == null ? void 0 : s.chat) == null ? void 0 : w.codeCopied)), window.clearTimeout(d.current), d.current = window.setTimeout(() => _(!1), $n);
619
+ }, y = n ?? "";
620
+ return /* @__PURE__ */ p("figure", { className: m(O.block, r), "data-testid": o, children: [
621
+ /* @__PURE__ */ p("figcaption", { className: O.block__header, children: [
622
+ /* @__PURE__ */ a("span", { className: O.block__language, children: y }),
623
+ /* @__PURE__ */ a(
624
+ te,
625
+ {
626
+ icon: c ? /* @__PURE__ */ a(at, { "aria-hidden": !0 }) : /* @__PURE__ */ a(it, { "aria-hidden": !0 }),
627
+ label: je("CodeBlock.copy", (v = s == null ? void 0 : s.chat) == null ? void 0 : v.codeCopy, y),
628
+ size: "sm",
629
+ onClick: b
630
+ }
631
+ )
632
+ ] }),
633
+ /* @__PURE__ */ a(
634
+ "div",
635
+ {
636
+ className: O.block__body,
637
+ style: i === void 0 ? void 0 : { maxBlockSize: i },
638
+ tabIndex: 0,
639
+ role: y ? "region" : void 0,
640
+ "aria-label": y || void 0,
641
+ children: t ? /* @__PURE__ */ a("div", { className: O.block__highlighted, dangerouslySetInnerHTML: { __html: t } }) : /* @__PURE__ */ a("pre", { className: O.block__pre, children: /* @__PURE__ */ a("code", { children: f.map(
642
+ (w, K) => w.type ? /* @__PURE__ */ a("span", { className: O[`block__token--${w.type}`], children: w.text }, K) : /* @__PURE__ */ a(Je, { children: w.text }, K)
643
+ ) }) })
644
+ }
645
+ )
646
+ ] });
647
+ }, sa = /* @__PURE__ */ g(/* @__PURE__ */ k(Rn, "CodeBlock")), On = "ui-block-zqPjp", Ln = "ui-block__summary-Kkp-X", zn = "ui-block__indicator-GuJMa", In = "ui-block__body-mDvrV", J = {
648
+ block: On,
649
+ block__summary: Ln,
650
+ block__indicator: zn,
651
+ block__body: In
652
+ }, Dn = ({
653
+ summary: e,
654
+ isRunning: n = !1,
655
+ indicator: t,
656
+ isDefaultOpen: i = !1,
657
+ children: r,
658
+ className: o,
659
+ testId: s
660
+ }) => {
661
+ const [l, c] = ce(n || i), _ = L(!1);
662
+ return U(() => {
663
+ _.current || c(n || i);
664
+ }, [n, i]), /* @__PURE__ */ a(
665
+ Be,
666
+ {
667
+ variant: "plain",
668
+ className: m(J.block, o),
669
+ summary: /* @__PURE__ */ p("span", { className: J.block__summary, children: [
670
+ n && /* @__PURE__ */ a("span", { className: J.block__indicator, children: t ?? /* @__PURE__ */ a(ct, { size: "sm" }) }),
671
+ e
672
+ ] }),
673
+ isOpen: l,
674
+ onOpenChange: (d) => {
675
+ _.current = !0, c(d);
676
+ },
677
+ testId: s,
678
+ children: /* @__PURE__ */ a("div", { className: J.block__body, children: r })
679
+ }
680
+ );
681
+ }, aa = /* @__PURE__ */ g(
682
+ /* @__PURE__ */ k(Dn, "ReasoningBlock")
683
+ ), Mn = "ui-text-WKVxU", Pn = "ui-text__body--uP0k", ze = {
684
+ text: Mn,
685
+ text__body: Pn
686
+ }, Kn = ({ text: e, label: n, maxHeight: t = 180, className: i, testId: r }) => /* @__PURE__ */ a(
687
+ lt,
688
+ {
689
+ className: m(ze.text, i),
690
+ label: n,
691
+ maxHeight: t,
692
+ hasFade: !0,
693
+ isFollowingEnd: !0,
694
+ testId: r,
695
+ children: /* @__PURE__ */ a("p", { className: ze.text__body, children: e })
696
+ }
697
+ ), ia = /* @__PURE__ */ g(
698
+ /* @__PURE__ */ k(Kn, "ReasoningText")
699
+ ), Bn = "ui-call-tV2P8", Fn = "ui-call__header-8Tw7m", jn = "ui-call__icon-TLzwf", Zn = "ui-call__name-EHz6G", Un = "ui-call__summary-M4sLU", Gn = "ui-call__meta-bvpp7", qn = "ui-call__body-nFK-C", Hn = "ui-section-TjSGF", Yn = "ui-section__label-UrgqM", Wn = "ui-section__body-Dy1PX", N = {
700
+ call: Bn,
701
+ "call--static": "ui-call--static-Nldru",
702
+ call__header: Fn,
703
+ call__icon: jn,
704
+ "call__icon--running": "ui-call__icon--running-Mx1XK",
705
+ call__name: Zn,
706
+ call__summary: Un,
707
+ call__meta: Gn,
708
+ call__body: qn,
709
+ section: Hn,
710
+ section__label: Yn,
711
+ section__body: Wn
712
+ }, Xn = {
713
+ running: "neutral",
714
+ ok: "success",
715
+ error: "danger",
716
+ aborted: "warning",
717
+ interrupted: "danger"
718
+ }, Jn = ({
719
+ icon: e,
720
+ name: n,
721
+ summary: t,
722
+ status: i,
723
+ meta: r,
724
+ isDefaultOpen: o,
725
+ isOpen: s,
726
+ onOpenChange: l,
727
+ children: c,
728
+ className: _,
729
+ testId: d
730
+ }) => {
731
+ var y, v;
732
+ const { labels: u } = C(), f = x(`ToolCall.status.${i}`, (v = (y = u == null ? void 0 : u.chat) == null ? void 0 : y.toolStatus) == null ? void 0 : v[i]), b = /* @__PURE__ */ p("span", { className: N.call__header, children: [
733
+ e !== void 0 && /* @__PURE__ */ a(
734
+ "span",
735
+ {
736
+ className: m(N.call__icon, i === "running" && N["call__icon--running"]),
737
+ "aria-hidden": !0,
738
+ children: e
739
+ }
740
+ ),
741
+ /* @__PURE__ */ a("span", { className: N.call__name, children: n }),
742
+ t !== void 0 && /* @__PURE__ */ a("span", { className: N.call__summary, children: t }),
743
+ /* @__PURE__ */ a(dt, { tone: Xn[i], label: f, isPulsing: i === "running" })
744
+ ] });
745
+ return c === void 0 ? /* @__PURE__ */ p("div", { className: m(N.call, N["call--static"], _), "data-testid": d, children: [
746
+ b,
747
+ r !== void 0 && /* @__PURE__ */ a("span", { className: N.call__meta, children: r })
748
+ ] }) : /* @__PURE__ */ a(
749
+ Be,
750
+ {
751
+ className: m(N.call, _),
752
+ summary: b,
753
+ meta: r,
754
+ isDefaultOpen: o,
755
+ isOpen: s,
756
+ onOpenChange: l,
757
+ testId: d,
758
+ children: /* @__PURE__ */ a("div", { className: N.call__body, children: c })
759
+ }
760
+ );
761
+ }, ra = ({ label: e, children: n, className: t }) => (
762
+ /*
763
+ * Başlık bir HEADING değil: sohbet akışında başlık düzeyi tüketicinin sayfasına bağlı ve sabit bir
764
+ * `h4` hiyerarşiyi bozuyordu. Bölüm de bir landmark değil (her araç kartında bir "bölge" gürültü).
765
+ */
766
+ /* @__PURE__ */ p("div", { className: m(N.section, t), children: [
767
+ /* @__PURE__ */ a("span", { className: N.section__label, children: e }),
768
+ /* @__PURE__ */ a("div", { className: N.section__body, children: n })
769
+ ] })
770
+ ), oa = /* @__PURE__ */ g(/* @__PURE__ */ k(Jn, "ToolCall")), Qn = "ui-terminal-D4Bz8", Vn = "ui-terminal__command-A7PG2", es = "ui-terminal__prompt-9N1g2", ts = "ui-terminal__stderr-qCNFe", ns = "ui-terminal__srOnly-2pmQA", F = {
771
+ terminal: Qn,
772
+ terminal__command: Vn,
773
+ terminal__prompt: es,
774
+ terminal__stderr: ts,
775
+ terminal__srOnly: ns
776
+ }, ss = ({
777
+ command: e,
778
+ chunks: n,
779
+ label: t,
780
+ maxHeight: i = 300,
781
+ className: r,
782
+ testId: o
783
+ }) => {
784
+ var _;
785
+ const { labels: s } = C(), l = L(null);
786
+ Ke(l);
787
+ const c = x("TerminalOutput.stderr", (_ = s == null ? void 0 : s.chat) == null ? void 0 : _.stderr);
788
+ return /* @__PURE__ */ p(
789
+ "pre",
790
+ {
791
+ ref: l,
792
+ className: m(F.terminal, r),
793
+ style: { maxBlockSize: i },
794
+ tabIndex: 0,
795
+ role: "region",
796
+ "aria-label": t,
797
+ "data-testid": o,
798
+ children: [
799
+ e !== void 0 && /* @__PURE__ */ p("span", { className: F.terminal__command, children: [
800
+ /* @__PURE__ */ p("span", { className: F.terminal__prompt, "aria-hidden": !0, children: [
801
+ "$",
802
+ " "
803
+ ] }),
804
+ e,
805
+ `
806
+ `
807
+ ] }),
808
+ n.map(
809
+ (d, u) => d.stream === "stderr" ? /* @__PURE__ */ p("span", { className: F.terminal__stderr, children: [
810
+ /* @__PURE__ */ a("span", { className: F.terminal__srOnly, children: `${c}: ` }),
811
+ d.text
812
+ ] }, u) : /* @__PURE__ */ a("span", { children: d.text }, u)
813
+ )
814
+ ]
815
+ }
816
+ );
817
+ }, ca = /* @__PURE__ */ g(
818
+ /* @__PURE__ */ k(ss, "TerminalOutput")
819
+ ), as = "ui-list-GC4NK", is = "ui-list__item-N8DAn", rs = "ui-list__index-VrSMs", os = "ui-list__text-4tll-", cs = "ui-list__title-seHfJ", ls = "ui-list__plain-ZcCvx", ds = "ui-list__domain-sJLI7", E = {
820
+ list: as,
821
+ list__item: is,
822
+ list__index: rs,
823
+ list__text: os,
824
+ list__title: cs,
825
+ list__plain: ls,
826
+ list__domain: ds
827
+ }, _s = ({ items: e, label: n, className: t, testId: i }) => {
828
+ var o;
829
+ const { labels: r } = C();
830
+ return /* @__PURE__ */ a(
831
+ "ol",
832
+ {
833
+ className: m(E.list, t),
834
+ "aria-label": x("SourceList.label", n, (o = r == null ? void 0 : r.chat) == null ? void 0 : o.sources),
835
+ "data-testid": i,
836
+ children: e.map((s, l) => /* @__PURE__ */ p("li", { className: E.list__item, children: [
837
+ /* @__PURE__ */ a("span", { className: E.list__index, "aria-hidden": !0, children: l + 1 }),
838
+ /* @__PURE__ */ p("span", { className: E.list__text, children: [
839
+ s.url ? /* @__PURE__ */ a(
840
+ "a",
841
+ {
842
+ className: E.list__title,
843
+ href: s.url,
844
+ target: "_blank",
845
+ rel: "noopener noreferrer",
846
+ children: s.title
847
+ }
848
+ ) : s.onSelect ? /* @__PURE__ */ a("button", { type: "button", className: E.list__title, onClick: s.onSelect, children: s.title }) : /* @__PURE__ */ a("span", { className: E.list__plain, children: s.title }),
849
+ s.domain && /* @__PURE__ */ a("span", { className: E.list__domain, children: s.domain })
850
+ ] })
851
+ ] }, s.id))
852
+ }
853
+ );
854
+ }, la = /* @__PURE__ */ g(
855
+ /* @__PURE__ */ k(_s, "SourceList")
856
+ ), us = "ui-citation-XrGMb", ms = "ui-citation__srOnly-GnMQp", j = {
857
+ citation: us,
858
+ citation__srOnly: ms,
859
+ "citation--static": "ui-citation--static-8gXHs"
860
+ }, ps = ({ index: e, href: n, onClick: t, className: i }) => {
861
+ var s;
862
+ const { labels: r } = C(), o = je("Citation.label", (s = r == null ? void 0 : r.chat) == null ? void 0 : s.citation, e);
863
+ return n ? /* @__PURE__ */ a("a", { className: m(j.citation, i), href: n, "aria-label": o, children: e }) : t ? /* @__PURE__ */ a(
864
+ "button",
865
+ {
866
+ type: "button",
867
+ className: m(j.citation, i),
868
+ onClick: t,
869
+ "aria-label": o,
870
+ children: e
871
+ }
872
+ ) : /* @__PURE__ */ p("span", { className: m(j.citation, j["citation--static"], i), children: [
873
+ /* @__PURE__ */ a("span", { "aria-hidden": !0, children: e }),
874
+ /* @__PURE__ */ a("span", { className: j.citation__srOnly, children: o })
875
+ ] });
876
+ }, da = /* @__PURE__ */ g(/* @__PURE__ */ k(ps, "Citation")), hs = "ui-actions-c8XlJ", bs = "ui-actions__meta-j-X3I", Ie = {
877
+ actions: hs,
878
+ actions__meta: bs
879
+ }, fs = "button:not(:disabled), a[href]", ys = ({ children: e, meta: n, label: t, className: i, testId: r }) => {
880
+ var c;
881
+ const { labels: o } = C(), s = L(null), l = (_) => {
882
+ var w;
883
+ const d = [...((w = s.current) == null ? void 0 : w.querySelectorAll(fs)) ?? []], u = d.indexOf(document.activeElement);
884
+ if (u < 0 || d.length === 0) return;
885
+ const f = getComputedStyle(_.currentTarget).direction === "rtl", b = f ? "ArrowLeft" : "ArrowRight", y = f ? "ArrowRight" : "ArrowLeft", v = _.key === b ? d[(u + 1) % d.length] : _.key === y ? d[(u - 1 + d.length) % d.length] : _.key === "Home" ? d[0] : _.key === "End" ? d[d.length - 1] : null;
886
+ v && (_.preventDefault(), v.focus());
887
+ };
888
+ return /* @__PURE__ */ p(
889
+ "div",
890
+ {
891
+ ref: s,
892
+ role: "toolbar",
893
+ "aria-label": x("MessageActions.label", t, (c = o == null ? void 0 : o.chat) == null ? void 0 : c.messageActions),
894
+ className: m(Ie.actions, i),
895
+ onKeyDown: l,
896
+ "data-testid": r,
897
+ children: [
898
+ e,
899
+ n !== void 0 && /* @__PURE__ */ a("span", { className: Ie.actions__meta, children: n })
900
+ ]
901
+ }
902
+ );
903
+ }, _a = /* @__PURE__ */ g(
904
+ /* @__PURE__ */ k(ys, "MessageActions")
905
+ ), gs = "ui-bar-UJGDL", ks = "ui-bar__brand-ZUcIw", ws = "ui-bar__start-nvmHH", vs = "ui-bar__end-NNQve", Q = {
906
+ bar: gs,
907
+ bar__brand: ks,
908
+ bar__start: ws,
909
+ bar__end: vs
910
+ }, De = "--ui-header-height", Ns = ({ brand: e, start: n, end: t, className: i, testId: r }) => {
911
+ const o = L(null);
912
+ return U(() => {
913
+ const s = o.current;
914
+ if (!s || typeof ResizeObserver > "u") return;
915
+ const l = document.documentElement, c = new ResizeObserver(
916
+ ([_]) => {
917
+ var d, u;
918
+ return l.style.setProperty(
919
+ De,
920
+ `${Math.round(((u = (d = _.borderBoxSize) == null ? void 0 : d[0]) == null ? void 0 : u.blockSize) ?? s.offsetHeight)}px`
921
+ );
922
+ }
923
+ );
924
+ return c.observe(s), () => {
925
+ c.disconnect(), l.style.removeProperty(De);
926
+ };
927
+ }, []), /* @__PURE__ */ p("header", { ref: o, className: m(Q.bar, i), "data-testid": r, children: [
928
+ /* @__PURE__ */ a("div", { className: Q.bar__brand, children: e }),
929
+ n !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__start, children: n }),
930
+ t !== void 0 && /* @__PURE__ */ a("div", { className: Q.bar__end, children: t })
931
+ ] });
932
+ }, ua = /* @__PURE__ */ g(/* @__PURE__ */ k(Ns, "AppBar")), Ss = "ui-list-e54gu", xs = "ui-list__window-ESrZX", Ts = "ui-list__slot-DxSnX", As = "ui-item-DKEGh", Cs = "ui-item__start-Yb3xf", Es = "ui-item__body-kD4Qk", $s = "ui-item__end-3SCT-", S = {
933
+ list: Ss,
934
+ "list--virtual": "ui-list--virtual-zxqy5",
935
+ list__window: xs,
936
+ list__slot: Ts,
937
+ item: As,
938
+ "item--selected": "ui-item--selected-AMl3I",
939
+ "item--muted": "ui-item--muted-XBeA3",
940
+ item__start: Cs,
941
+ item__body: Es,
942
+ item__end: $s
943
+ }, Me = 6, Rs = ({
944
+ label: e,
945
+ children: n,
946
+ rowHeight: t,
947
+ maxHeight: i = 320,
948
+ className: r,
949
+ testId: o
950
+ }) => {
951
+ const s = Qe.toArray(n).filter(Ve), [l, c] = ce(0);
952
+ if (!t)
953
+ return /* @__PURE__ */ a("ul", { className: m(S.list, r), "aria-label": e, "data-testid": o, children: s });
954
+ const _ = Math.max(0, Math.floor(l / t) - Me), d = Math.min(s.length, Math.ceil((l + i) / t) + Me);
955
+ return /* @__PURE__ */ a(
956
+ "div",
957
+ {
958
+ className: m(S.list, S["list--virtual"], r),
959
+ style: { maxBlockSize: i, "--ui-row-height": `${t}px` },
960
+ onScroll: (u) => c(u.currentTarget.scrollTop),
961
+ "data-testid": o,
962
+ children: /* @__PURE__ */ a(
963
+ "ul",
964
+ {
965
+ "aria-label": e,
966
+ className: S.list__window,
967
+ style: {
968
+ blockSize: s.length * t,
969
+ paddingBlockStart: _ * t
970
+ },
971
+ children: s.slice(_, d).map(
972
+ (u, f) => et(u, {
973
+ "aria-posinset": _ + f + 1,
974
+ "aria-setsize": s.length
975
+ })
976
+ )
977
+ }
978
+ )
979
+ }
980
+ );
981
+ }, ma = ({
982
+ children: e,
983
+ start: n,
984
+ end: t,
985
+ onClick: i,
986
+ href: r,
987
+ isSelected: o,
988
+ isMuted: s,
989
+ testId: l,
990
+ "aria-posinset": c,
991
+ "aria-setsize": _
992
+ }) => {
993
+ const { linkComponent: d } = C(), u = m(
994
+ S.item,
995
+ o && S["item--selected"],
996
+ s && S["item--muted"]
997
+ ), f = /* @__PURE__ */ p(We, { children: [
998
+ n !== void 0 && /* @__PURE__ */ a("span", { className: S.item__start, children: n }),
999
+ /* @__PURE__ */ a("span", { className: S.item__body, children: e }),
1000
+ t !== void 0 && /* @__PURE__ */ a("span", { className: S.item__end, children: t })
1001
+ ] }), b = d ?? "a";
1002
+ return /* @__PURE__ */ a("li", { className: S.list__slot, "aria-posinset": c, "aria-setsize": _, children: r ? /* @__PURE__ */ a(b, { href: r, className: u, "data-testid": l, children: f }) : /* @__PURE__ */ a(
1003
+ "button",
1004
+ {
1005
+ type: "button",
1006
+ className: u,
1007
+ onClick: i,
1008
+ "aria-pressed": o,
1009
+ "data-testid": l,
1010
+ children: f
1011
+ }
1012
+ ) });
1013
+ }, pa = /* @__PURE__ */ g(
1014
+ /* @__PURE__ */ k(Rs, "ActionList")
1015
+ ), Os = "ui-bar-OZjXz", Ls = "ui-bar__segment-hexbp", zs = "ui-bar__marker-E0FeF", V = {
1016
+ bar: Os,
1017
+ bar__segment: Ls,
1018
+ bar__marker: zs,
1019
+ "bar__marker--danger": "ui-bar__marker--danger-245FK"
1020
+ }, ee = (e, n) => n <= 0 ? 0 : Math.min(100, Math.max(0, e / n * 100)), Is = (e) => Fe(e === "muted" ? "text-3" : e), Ds = ({ label: e, max: n, segments: t, markers: i = [], className: r, testId: o }) => {
1021
+ const s = [
1022
+ ...t.map((c) => c.label),
1023
+ ...i.map((c) => c.label)
1024
+ ];
1025
+ let l = 0;
1026
+ return /* @__PURE__ */ p(
1027
+ "div",
1028
+ {
1029
+ role: "img",
1030
+ "aria-label": `${e}: ${s.join(", ")}`,
1031
+ className: m(V.bar, r),
1032
+ "data-testid": o,
1033
+ children: [
1034
+ t.map((c) => {
1035
+ const _ = c.from ?? l, d = c.to ?? _ + (c.value ?? 0);
1036
+ return l = d, /* @__PURE__ */ a(
1037
+ "span",
1038
+ {
1039
+ className: V.bar__segment,
1040
+ title: c.label,
1041
+ style: {
1042
+ insetInlineStart: `${ee(_, n)}%`,
1043
+ inlineSize: `${ee(d, n) - ee(_, n)}%`,
1044
+ backgroundColor: Is(c.tone)
1045
+ }
1046
+ },
1047
+ c.id
1048
+ );
1049
+ }),
1050
+ i.map((c) => /* @__PURE__ */ a(
1051
+ "span",
1052
+ {
1053
+ className: m(
1054
+ V.bar__marker,
1055
+ c.tone === "danger" && V["bar__marker--danger"]
1056
+ ),
1057
+ title: c.label,
1058
+ style: { insetInlineStart: `${ee(c.at, n)}%` }
1059
+ },
1060
+ c.id
1061
+ ))
1062
+ ]
1063
+ }
1064
+ );
1065
+ }, ha = /* @__PURE__ */ g(
1066
+ /* @__PURE__ */ k(Ds, "SegmentBar")
1067
+ ), Ms = "ui-legend-zryov", Ps = "ui-legend__item-GGrR-", Ks = "ui-legend__swatch-2MkAR", oe = {
1068
+ legend: Ms,
1069
+ legend__item: Ps,
1070
+ legend__swatch: Ks
1071
+ }, Bs = (e) => Fe(e === "muted" ? "text-3" : e), Fs = ({ items: e, className: n, testId: t }) => /* @__PURE__ */ a("ul", { className: m(oe.legend, n), "data-testid": t, children: e.map((i) => /* @__PURE__ */ p("li", { className: oe.legend__item, children: [
1072
+ /* @__PURE__ */ a(
1073
+ "span",
1074
+ {
1075
+ "aria-hidden": !0,
1076
+ className: oe.legend__swatch,
1077
+ style: { backgroundColor: Bs(i.tone) }
1078
+ }
1079
+ ),
1080
+ i.label
1081
+ ] }, i.id)) }), ba = /* @__PURE__ */ g(/* @__PURE__ */ k(Fs, "Legend")), js = "ui-list-KSLu5", Zs = "ui-list__row-k7aHp", Us = "ui-list__term-vsD5B", Gs = "ui-list__value-6GY6z", Z = {
1082
+ list: js,
1083
+ list__row: Zs,
1084
+ list__term: Us,
1085
+ list__value: Gs,
1086
+ "list__value--technical": "ui-list__value--technical-I-UYE"
1087
+ }, qs = ({ items: e, className: n, testId: t }) => /* @__PURE__ */ a("dl", { className: m(Z.list, n), "data-testid": t, children: e.map((i, r) => /* @__PURE__ */ p("div", { className: Z.list__row, children: [
1088
+ /* @__PURE__ */ a("dt", { className: Z.list__term, children: i.term }),
1089
+ /* @__PURE__ */ a(
1090
+ "dd",
1091
+ {
1092
+ className: m(Z.list__value, i.isTechnical && Z["list__value--technical"]),
1093
+ children: i.description
1094
+ }
1095
+ )
1096
+ ] }, r)) }), fa = /* @__PURE__ */ g(
1097
+ /* @__PURE__ */ k(qs, "DescriptionList")
1098
+ );
1099
+ export {
1100
+ pa as ActionList,
1101
+ ma as ActionListItem,
1102
+ ua as AppBar,
1103
+ Vs as ChatMessage,
1104
+ Qs as ChatThread,
1105
+ da as Citation,
1106
+ sa as CodeBlock,
1107
+ fa as DescriptionList,
1108
+ ba as Legend,
1109
+ _a as MessageActions,
1110
+ ea as PromptInput,
1111
+ ta as PromptSuggestions,
1112
+ na as Prose,
1113
+ aa as ReasoningBlock,
1114
+ ia as ReasoningText,
1115
+ ha as SegmentBar,
1116
+ la as SourceList,
1117
+ ca as TerminalOutput,
1118
+ oa as ToolCall,
1119
+ ra as ToolCallSection
1120
+ };
1121
+ //# sourceMappingURL=chat.js.map