@hanzo/ui 8.0.27 → 8.0.28

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 (1260) hide show
  1. package/dist/backends/gui/aspect-ratio.cjs +15 -0
  2. package/dist/backends/gui/aspect-ratio.d.ts +1 -0
  3. package/dist/backends/gui/aspect-ratio.d.ts.map +1 -0
  4. package/dist/backends/gui/aspect-ratio.js +13 -0
  5. package/dist/backends/gui/aspect-ratio.js.map +1 -0
  6. package/dist/backends/gui/avatar.cjs +20 -0
  7. package/dist/backends/gui/avatar.d.ts +1 -0
  8. package/dist/backends/gui/avatar.d.ts.map +1 -0
  9. package/dist/backends/gui/avatar.js +16 -0
  10. package/dist/backends/gui/avatar.js.map +1 -0
  11. package/dist/backends/gui/badge.cjs +80 -0
  12. package/dist/backends/gui/badge.d.ts +1 -0
  13. package/dist/backends/gui/badge.d.ts.map +1 -0
  14. package/dist/backends/gui/badge.js +76 -0
  15. package/dist/backends/gui/badge.js.map +1 -0
  16. package/dist/backends/gui/button.cjs +114 -0
  17. package/dist/backends/gui/button.d.ts +4 -24
  18. package/dist/backends/gui/button.d.ts.map +1 -0
  19. package/dist/backends/gui/button.js +111 -0
  20. package/dist/backends/gui/button.js.map +1 -0
  21. package/dist/backends/gui/card.cjs +49 -0
  22. package/dist/backends/gui/card.d.ts +1 -0
  23. package/dist/backends/gui/card.d.ts.map +1 -0
  24. package/dist/backends/gui/card.js +41 -0
  25. package/dist/backends/gui/card.js.map +1 -0
  26. package/dist/backends/gui/checkbox.cjs +16 -0
  27. package/dist/backends/gui/checkbox.d.ts +2 -1
  28. package/dist/backends/gui/checkbox.d.ts.map +1 -0
  29. package/dist/backends/gui/checkbox.js +14 -0
  30. package/dist/backends/gui/checkbox.js.map +1 -0
  31. package/dist/backends/gui/collapsible.cjs +15 -0
  32. package/dist/backends/gui/collapsible.d.ts +1 -0
  33. package/dist/backends/gui/collapsible.d.ts.map +1 -0
  34. package/dist/backends/gui/collapsible.js +11 -0
  35. package/dist/backends/gui/collapsible.js.map +1 -0
  36. package/dist/backends/gui/command.cjs +198 -0
  37. package/dist/backends/gui/command.d.ts +2 -1
  38. package/dist/backends/gui/command.d.ts.map +1 -0
  39. package/dist/backends/gui/command.js +188 -0
  40. package/dist/backends/gui/command.js.map +1 -0
  41. package/dist/backends/gui/command.logic.cjs +49 -0
  42. package/dist/backends/gui/command.logic.d.ts +1 -0
  43. package/dist/backends/gui/command.logic.d.ts.map +1 -0
  44. package/dist/backends/gui/command.logic.js +45 -0
  45. package/dist/backends/gui/command.logic.js.map +1 -0
  46. package/dist/backends/gui/dialog.cjs +41 -0
  47. package/dist/backends/gui/dialog.d.ts +1 -0
  48. package/dist/backends/gui/dialog.d.ts.map +1 -0
  49. package/dist/backends/gui/dialog.js +30 -0
  50. package/dist/backends/gui/dialog.js.map +1 -0
  51. package/dist/backends/gui/dropdown-menu.cjs +168 -0
  52. package/dist/backends/gui/dropdown-menu.d.ts +7 -6
  53. package/dist/backends/gui/dropdown-menu.d.ts.map +1 -0
  54. package/dist/backends/gui/dropdown-menu.js +119 -0
  55. package/dist/backends/gui/dropdown-menu.js.map +1 -0
  56. package/dist/backends/gui/gesture.cjs +74 -0
  57. package/dist/backends/gui/gesture.d.ts +68 -0
  58. package/dist/backends/gui/gesture.d.ts.map +1 -0
  59. package/dist/backends/gui/gesture.js +69 -0
  60. package/dist/backends/gui/gesture.js.map +1 -0
  61. package/dist/backends/gui/index.cjs +134 -0
  62. package/dist/backends/gui/index.d.ts +25 -24
  63. package/dist/backends/gui/index.d.ts.map +1 -0
  64. package/dist/backends/gui/index.js +41 -0
  65. package/dist/backends/gui/index.js.map +1 -0
  66. package/dist/backends/gui/ink.cjs +14 -0
  67. package/dist/backends/gui/ink.d.ts +1 -0
  68. package/dist/backends/gui/ink.d.ts.map +1 -0
  69. package/dist/backends/gui/ink.js +11 -0
  70. package/dist/backends/gui/ink.js.map +1 -0
  71. package/dist/backends/gui/input.cjs +39 -0
  72. package/dist/backends/gui/input.d.ts +1 -0
  73. package/dist/backends/gui/input.d.ts.map +1 -0
  74. package/dist/backends/gui/input.js +37 -0
  75. package/dist/backends/gui/input.js.map +1 -0
  76. package/dist/backends/gui/label.cjs +10 -0
  77. package/dist/backends/gui/label.d.ts +1 -0
  78. package/dist/backends/gui/label.d.ts.map +1 -0
  79. package/dist/backends/gui/label.js +8 -0
  80. package/dist/backends/gui/label.js.map +1 -0
  81. package/dist/backends/gui/popover.cjs +39 -0
  82. package/dist/backends/gui/popover.d.ts +1 -0
  83. package/dist/backends/gui/popover.d.ts.map +1 -0
  84. package/dist/backends/gui/popover.js +33 -0
  85. package/dist/backends/gui/popover.js.map +1 -0
  86. package/dist/backends/gui/progress.cjs +10 -0
  87. package/dist/backends/gui/progress.d.ts +1 -0
  88. package/dist/backends/gui/progress.d.ts.map +1 -0
  89. package/dist/backends/gui/progress.js +8 -0
  90. package/dist/backends/gui/progress.js.map +1 -0
  91. package/dist/backends/gui/resizable.cjs +174 -0
  92. package/dist/backends/gui/resizable.d.ts +5 -3
  93. package/dist/backends/gui/resizable.d.ts.map +1 -0
  94. package/dist/backends/gui/resizable.js +168 -0
  95. package/dist/backends/gui/resizable.js.map +1 -0
  96. package/dist/backends/gui/resizable.logic.cjs +46 -0
  97. package/dist/backends/gui/resizable.logic.d.ts +1 -0
  98. package/dist/backends/gui/resizable.logic.d.ts.map +1 -0
  99. package/dist/backends/gui/resizable.logic.js +43 -0
  100. package/dist/backends/gui/resizable.logic.js.map +1 -0
  101. package/dist/backends/gui/scroll-area.cjs +126 -0
  102. package/dist/backends/gui/scroll-area.d.ts +1 -0
  103. package/dist/backends/gui/scroll-area.d.ts.map +1 -0
  104. package/dist/backends/gui/scroll-area.js +123 -0
  105. package/dist/backends/gui/scroll-area.js.map +1 -0
  106. package/dist/backends/gui/select.cjs +54 -0
  107. package/dist/backends/gui/select.d.ts +1 -0
  108. package/dist/backends/gui/select.d.ts.map +1 -0
  109. package/dist/backends/gui/select.js +43 -0
  110. package/dist/backends/gui/select.js.map +1 -0
  111. package/dist/backends/gui/separator.cjs +10 -0
  112. package/dist/backends/gui/separator.d.ts +1 -0
  113. package/dist/backends/gui/separator.d.ts.map +1 -0
  114. package/dist/backends/gui/separator.js +8 -0
  115. package/dist/backends/gui/separator.js.map +1 -0
  116. package/dist/backends/gui/slider.cjs +13 -0
  117. package/dist/backends/gui/slider.d.ts +2 -1
  118. package/dist/backends/gui/slider.d.ts.map +1 -0
  119. package/dist/backends/gui/slider.js +11 -0
  120. package/dist/backends/gui/slider.js.map +1 -0
  121. package/dist/backends/gui/slot.cjs +10 -0
  122. package/dist/backends/gui/slot.d.ts +1 -0
  123. package/dist/backends/gui/slot.d.ts.map +1 -0
  124. package/dist/backends/gui/slot.js +7 -0
  125. package/dist/backends/gui/slot.js.map +1 -0
  126. package/dist/backends/gui/switch.cjs +13 -0
  127. package/dist/backends/gui/switch.d.ts +2 -1
  128. package/dist/backends/gui/switch.d.ts.map +1 -0
  129. package/dist/backends/gui/switch.js +11 -0
  130. package/dist/backends/gui/switch.js.map +1 -0
  131. package/dist/backends/gui/tabs.cjs +19 -0
  132. package/dist/backends/gui/tabs.d.ts +1 -0
  133. package/dist/backends/gui/tabs.d.ts.map +1 -0
  134. package/dist/backends/gui/tabs.js +14 -0
  135. package/dist/backends/gui/tabs.js.map +1 -0
  136. package/dist/backends/gui/textarea.cjs +58 -0
  137. package/dist/backends/gui/textarea.d.ts +1 -0
  138. package/dist/backends/gui/textarea.d.ts.map +1 -0
  139. package/dist/backends/gui/textarea.js +23 -0
  140. package/dist/backends/gui/textarea.js.map +1 -0
  141. package/dist/backends/gui/toaster.cjs +13 -0
  142. package/dist/backends/gui/toaster.d.ts +1 -0
  143. package/dist/backends/gui/toaster.d.ts.map +1 -0
  144. package/dist/backends/gui/toaster.js +10 -0
  145. package/dist/backends/gui/toaster.js.map +1 -0
  146. package/dist/backends/gui/tooltip.cjs +22 -0
  147. package/dist/backends/gui/tooltip.d.ts +1 -0
  148. package/dist/backends/gui/tooltip.d.ts.map +1 -0
  149. package/dist/backends/gui/tooltip.js +17 -0
  150. package/dist/backends/gui/tooltip.js.map +1 -0
  151. package/dist/canvas.cjs +27 -15
  152. package/dist/canvas.d.ts +1 -0
  153. package/dist/canvas.d.ts.map +1 -0
  154. package/dist/canvas.js +10 -2
  155. package/dist/canvas.js.map +1 -1
  156. package/dist/cd/layout.cjs +143 -0
  157. package/dist/cd/layout.d.ts +1 -0
  158. package/dist/cd/layout.d.ts.map +1 -0
  159. package/dist/cd/layout.js +141 -0
  160. package/dist/cd/layout.js.map +1 -0
  161. package/dist/cd/status.cjs +132 -0
  162. package/dist/cd/status.d.ts +2 -1
  163. package/dist/cd/status.d.ts.map +1 -0
  164. package/dist/cd/status.js +120 -0
  165. package/dist/cd/status.js.map +1 -0
  166. package/dist/cd/time.cjs +60 -0
  167. package/dist/cd/time.d.ts +1 -0
  168. package/dist/cd/time.d.ts.map +1 -0
  169. package/dist/cd/time.js +56 -0
  170. package/dist/cd/time.js.map +1 -0
  171. package/dist/cd/types.cjs +19 -0
  172. package/dist/cd/types.d.ts +1 -0
  173. package/dist/cd/types.d.ts.map +1 -0
  174. package/dist/cd/types.js +19 -0
  175. package/dist/cd/types.js.map +1 -0
  176. package/dist/core/cn.cjs +15 -0
  177. package/dist/core/cn.d.ts +3 -1
  178. package/dist/core/cn.d.ts.map +1 -0
  179. package/dist/core/cn.js +13 -0
  180. package/dist/core/cn.js.map +1 -0
  181. package/dist/core/fonts.cjs +26 -0
  182. package/dist/core/fonts.d.ts +1 -0
  183. package/dist/core/fonts.d.ts.map +1 -0
  184. package/dist/core/fonts.js +24 -0
  185. package/dist/core/fonts.js.map +1 -0
  186. package/dist/core/index.cjs +31 -92
  187. package/dist/core/index.d.ts +4 -3
  188. package/dist/core/index.d.ts.map +1 -0
  189. package/dist/core/index.js +8 -13
  190. package/dist/core/index.js.map +1 -1
  191. package/dist/core/tokens.cjs +35 -77
  192. package/dist/core/tokens.d.ts +1 -0
  193. package/dist/core/tokens.d.ts.map +1 -0
  194. package/dist/core/tokens.js +15 -3
  195. package/dist/core/tokens.js.map +1 -1
  196. package/dist/dashboard.cjs +24 -15
  197. package/dist/dashboard.d.ts +1 -0
  198. package/dist/dashboard.d.ts.map +1 -0
  199. package/dist/dashboard.js +7 -2
  200. package/dist/dashboard.js.map +1 -1
  201. package/dist/data.cjs +28 -15
  202. package/dist/data.d.ts +1 -0
  203. package/dist/data.d.ts.map +1 -0
  204. package/dist/data.js +11 -2
  205. package/dist/data.js.map +1 -1
  206. package/dist/framework/CollectionBuilder.cjs +77 -0
  207. package/dist/framework/CollectionBuilder.d.ts +3 -2
  208. package/dist/framework/CollectionBuilder.d.ts.map +1 -0
  209. package/dist/framework/CollectionBuilder.js +75 -0
  210. package/dist/framework/CollectionBuilder.js.map +1 -0
  211. package/dist/framework/CollectionsBrowser.cjs +107 -0
  212. package/dist/framework/CollectionsBrowser.d.ts +3 -2
  213. package/dist/framework/CollectionsBrowser.d.ts.map +1 -0
  214. package/dist/framework/CollectionsBrowser.js +105 -0
  215. package/dist/framework/CollectionsBrowser.js.map +1 -0
  216. package/dist/framework/DocTypeDetail.cjs +187 -0
  217. package/dist/framework/DocTypeDetail.d.ts +2 -1
  218. package/dist/framework/DocTypeDetail.d.ts.map +1 -0
  219. package/dist/framework/DocTypeDetail.js +185 -0
  220. package/dist/framework/DocTypeDetail.js.map +1 -0
  221. package/dist/framework/DocTypeRecords.cjs +130 -0
  222. package/dist/framework/DocTypeRecords.d.ts +4 -3
  223. package/dist/framework/DocTypeRecords.d.ts.map +1 -0
  224. package/dist/framework/DocTypeRecords.js +128 -0
  225. package/dist/framework/DocTypeRecords.js.map +1 -0
  226. package/dist/framework/MediaGrid.cjs +134 -0
  227. package/dist/framework/MediaGrid.d.ts +4 -3
  228. package/dist/framework/MediaGrid.d.ts.map +1 -0
  229. package/dist/framework/MediaGrid.js +132 -0
  230. package/dist/framework/MediaGrid.js.map +1 -0
  231. package/dist/framework/RecordCards.cjs +47 -0
  232. package/dist/framework/RecordCards.d.ts +1 -0
  233. package/dist/framework/RecordCards.d.ts.map +1 -0
  234. package/dist/framework/RecordCards.js +45 -0
  235. package/dist/framework/RecordCards.js.map +1 -0
  236. package/dist/framework/builder-logic.cjs +169 -0
  237. package/dist/framework/builder-logic.d.ts +2 -1
  238. package/dist/framework/builder-logic.d.ts.map +1 -0
  239. package/dist/framework/builder-logic.js +156 -0
  240. package/dist/framework/builder-logic.js.map +1 -0
  241. package/dist/framework/client.cjs +95 -0
  242. package/dist/framework/client.d.ts +2 -1
  243. package/dist/framework/client.d.ts.map +1 -0
  244. package/dist/framework/client.js +91 -0
  245. package/dist/framework/client.js.map +1 -0
  246. package/dist/framework/core.cjs +36 -213
  247. package/dist/framework/core.d.ts +7 -6
  248. package/dist/framework/core.d.ts.map +1 -0
  249. package/dist/framework/core.js +20 -3
  250. package/dist/framework/core.js.map +1 -1
  251. package/dist/framework/data.cjs +41 -0
  252. package/dist/framework/data.d.ts +3 -2
  253. package/dist/framework/data.d.ts.map +1 -0
  254. package/dist/framework/data.js +38 -0
  255. package/dist/framework/data.js.map +1 -0
  256. package/dist/framework/fields.cjs +358 -0
  257. package/dist/framework/fields.d.ts +2 -1
  258. package/dist/framework/fields.d.ts.map +1 -0
  259. package/dist/framework/fields.js +335 -0
  260. package/dist/framework/fields.js.map +1 -0
  261. package/dist/framework/index.cjs +58 -1341
  262. package/dist/framework/index.d.ts +10 -9
  263. package/dist/framework/index.d.ts.map +1 -0
  264. package/dist/framework/index.js +35 -1119
  265. package/dist/framework/index.js.map +1 -1
  266. package/dist/framework/media.cjs +133 -0
  267. package/dist/framework/media.d.ts +2 -1
  268. package/dist/framework/media.d.ts.map +1 -0
  269. package/dist/framework/media.js +124 -0
  270. package/dist/framework/media.js.map +1 -0
  271. package/dist/framework/parts.cjs +60 -0
  272. package/dist/framework/parts.d.ts +1 -0
  273. package/dist/framework/parts.d.ts.map +1 -0
  274. package/dist/framework/parts.js +51 -0
  275. package/dist/framework/parts.js.map +1 -0
  276. package/dist/framework/responsive.cjs +62 -0
  277. package/dist/framework/responsive.d.ts +1 -0
  278. package/dist/framework/responsive.d.ts.map +1 -0
  279. package/dist/framework/responsive.js +58 -0
  280. package/dist/framework/responsive.js.map +1 -0
  281. package/dist/framework/types.cjs +20 -0
  282. package/dist/framework/types.d.ts +1 -0
  283. package/dist/framework/types.d.ts.map +1 -0
  284. package/dist/framework/types.js +18 -0
  285. package/dist/framework/types.js.map +1 -0
  286. package/dist/gitops.cjs +21 -15
  287. package/dist/gitops.d.ts +1 -0
  288. package/dist/gitops.d.ts.map +1 -0
  289. package/dist/gitops.js +4 -2
  290. package/dist/gitops.js.map +1 -1
  291. package/dist/gui-config.cjs +145 -113
  292. package/dist/gui-config.d.ts +1 -0
  293. package/dist/gui-config.d.ts.map +1 -0
  294. package/dist/gui-config.js +140 -105
  295. package/dist/gui-config.js.map +1 -1
  296. package/dist/index.cjs +41 -375
  297. package/dist/index.d.ts +3 -2
  298. package/dist/index.d.ts.map +1 -0
  299. package/dist/index.js +23 -5
  300. package/dist/index.js.map +1 -1
  301. package/dist/models/ModelSelector.cjs +58 -0
  302. package/dist/models/ModelSelector.d.ts +10 -6
  303. package/dist/models/ModelSelector.d.ts.map +1 -0
  304. package/dist/models/ModelSelector.js +56 -0
  305. package/dist/models/ModelSelector.js.map +1 -0
  306. package/dist/models/catalog.cjs +191 -0
  307. package/dist/models/catalog.d.ts +1 -0
  308. package/dist/models/catalog.d.ts.map +1 -0
  309. package/dist/models/catalog.js +185 -0
  310. package/dist/models/catalog.js.map +1 -0
  311. package/dist/models/index.cjs +16 -225
  312. package/dist/models/index.d.ts +6 -5
  313. package/dist/models/index.d.ts.map +1 -0
  314. package/dist/models/index.js +7 -217
  315. package/dist/models/index.js.map +1 -1
  316. package/dist/models/types.cjs +8 -0
  317. package/dist/models/types.d.ts +1 -0
  318. package/dist/models/types.d.ts.map +1 -0
  319. package/dist/models/types.js +8 -0
  320. package/dist/models/types.js.map +1 -0
  321. package/dist/oss/blueprint.cjs +96 -0
  322. package/dist/oss/blueprint.d.ts +1 -0
  323. package/dist/oss/blueprint.d.ts.map +1 -0
  324. package/dist/oss/blueprint.js +94 -0
  325. package/dist/oss/blueprint.js.map +1 -0
  326. package/dist/oss/catalog.cjs +174 -0
  327. package/dist/oss/catalog.d.ts +1 -0
  328. package/dist/oss/catalog.d.ts.map +1 -0
  329. package/dist/oss/catalog.js +165 -0
  330. package/dist/oss/catalog.js.map +1 -0
  331. package/dist/oss.cjs +27 -189
  332. package/dist/oss.d.ts +3 -2
  333. package/dist/oss.d.ts.map +1 -0
  334. package/dist/oss.js +12 -179
  335. package/dist/oss.js.map +1 -1
  336. package/dist/primitives/AspectRatio.cjs +8 -14
  337. package/dist/primitives/AspectRatio.d.ts +2 -1
  338. package/dist/primitives/AspectRatio.d.ts.map +1 -0
  339. package/dist/primitives/AspectRatio.js +4 -4
  340. package/dist/primitives/AspectRatio.js.map +1 -1
  341. package/dist/primitives/Avatar.cjs +8 -14
  342. package/dist/primitives/Avatar.d.ts +2 -1
  343. package/dist/primitives/Avatar.d.ts.map +1 -0
  344. package/dist/primitives/Avatar.js +4 -4
  345. package/dist/primitives/Avatar.js.map +1 -1
  346. package/dist/primitives/AvatarFallback.cjs +8 -14
  347. package/dist/primitives/AvatarFallback.d.ts +2 -1
  348. package/dist/primitives/AvatarFallback.d.ts.map +1 -0
  349. package/dist/primitives/AvatarFallback.js +4 -4
  350. package/dist/primitives/AvatarFallback.js.map +1 -1
  351. package/dist/primitives/AvatarImage.cjs +8 -14
  352. package/dist/primitives/AvatarImage.d.ts +2 -1
  353. package/dist/primitives/AvatarImage.d.ts.map +1 -0
  354. package/dist/primitives/AvatarImage.js +4 -4
  355. package/dist/primitives/AvatarImage.js.map +1 -1
  356. package/dist/primitives/Badge.cjs +8 -14
  357. package/dist/primitives/Badge.d.ts +2 -1
  358. package/dist/primitives/Badge.d.ts.map +1 -0
  359. package/dist/primitives/Badge.js +4 -4
  360. package/dist/primitives/Badge.js.map +1 -1
  361. package/dist/primitives/Button.cjs +8 -14
  362. package/dist/primitives/Button.d.ts +2 -1
  363. package/dist/primitives/Button.d.ts.map +1 -0
  364. package/dist/primitives/Button.js +4 -4
  365. package/dist/primitives/Button.js.map +1 -1
  366. package/dist/primitives/Card.cjs +8 -14
  367. package/dist/primitives/Card.d.ts +2 -1
  368. package/dist/primitives/Card.d.ts.map +1 -0
  369. package/dist/primitives/Card.js +4 -4
  370. package/dist/primitives/Card.js.map +1 -1
  371. package/dist/primitives/CardAction.cjs +8 -14
  372. package/dist/primitives/CardAction.d.ts +2 -1
  373. package/dist/primitives/CardAction.d.ts.map +1 -0
  374. package/dist/primitives/CardAction.js +4 -4
  375. package/dist/primitives/CardAction.js.map +1 -1
  376. package/dist/primitives/CardContent.cjs +8 -14
  377. package/dist/primitives/CardContent.d.ts +2 -1
  378. package/dist/primitives/CardContent.d.ts.map +1 -0
  379. package/dist/primitives/CardContent.js +4 -4
  380. package/dist/primitives/CardContent.js.map +1 -1
  381. package/dist/primitives/CardDescription.cjs +8 -14
  382. package/dist/primitives/CardDescription.d.ts +2 -1
  383. package/dist/primitives/CardDescription.d.ts.map +1 -0
  384. package/dist/primitives/CardDescription.js +4 -4
  385. package/dist/primitives/CardDescription.js.map +1 -1
  386. package/dist/primitives/CardFooter.cjs +8 -14
  387. package/dist/primitives/CardFooter.d.ts +2 -1
  388. package/dist/primitives/CardFooter.d.ts.map +1 -0
  389. package/dist/primitives/CardFooter.js +4 -4
  390. package/dist/primitives/CardFooter.js.map +1 -1
  391. package/dist/primitives/CardHeader.cjs +8 -14
  392. package/dist/primitives/CardHeader.d.ts +2 -1
  393. package/dist/primitives/CardHeader.d.ts.map +1 -0
  394. package/dist/primitives/CardHeader.js +4 -4
  395. package/dist/primitives/CardHeader.js.map +1 -1
  396. package/dist/primitives/CardTitle.cjs +8 -14
  397. package/dist/primitives/CardTitle.d.ts +2 -1
  398. package/dist/primitives/CardTitle.d.ts.map +1 -0
  399. package/dist/primitives/CardTitle.js +4 -4
  400. package/dist/primitives/CardTitle.js.map +1 -1
  401. package/dist/primitives/Checkbox.cjs +8 -14
  402. package/dist/primitives/Checkbox.d.ts +2 -1
  403. package/dist/primitives/Checkbox.d.ts.map +1 -0
  404. package/dist/primitives/Checkbox.js +4 -4
  405. package/dist/primitives/Checkbox.js.map +1 -1
  406. package/dist/primitives/Collapsible.cjs +8 -14
  407. package/dist/primitives/Collapsible.d.ts +2 -1
  408. package/dist/primitives/Collapsible.d.ts.map +1 -0
  409. package/dist/primitives/Collapsible.js +4 -4
  410. package/dist/primitives/Collapsible.js.map +1 -1
  411. package/dist/primitives/CollapsibleContent.cjs +8 -14
  412. package/dist/primitives/CollapsibleContent.d.ts +2 -1
  413. package/dist/primitives/CollapsibleContent.d.ts.map +1 -0
  414. package/dist/primitives/CollapsibleContent.js +4 -4
  415. package/dist/primitives/CollapsibleContent.js.map +1 -1
  416. package/dist/primitives/CollapsibleTrigger.cjs +8 -14
  417. package/dist/primitives/CollapsibleTrigger.d.ts +2 -1
  418. package/dist/primitives/CollapsibleTrigger.d.ts.map +1 -0
  419. package/dist/primitives/CollapsibleTrigger.js +4 -4
  420. package/dist/primitives/CollapsibleTrigger.js.map +1 -1
  421. package/dist/primitives/Command.cjs +8 -14
  422. package/dist/primitives/Command.d.ts +2 -1
  423. package/dist/primitives/Command.d.ts.map +1 -0
  424. package/dist/primitives/Command.js +4 -4
  425. package/dist/primitives/Command.js.map +1 -1
  426. package/dist/primitives/CommandDialog.cjs +8 -14
  427. package/dist/primitives/CommandDialog.d.ts +2 -1
  428. package/dist/primitives/CommandDialog.d.ts.map +1 -0
  429. package/dist/primitives/CommandDialog.js +4 -4
  430. package/dist/primitives/CommandDialog.js.map +1 -1
  431. package/dist/primitives/CommandEmpty.cjs +8 -14
  432. package/dist/primitives/CommandEmpty.d.ts +2 -1
  433. package/dist/primitives/CommandEmpty.d.ts.map +1 -0
  434. package/dist/primitives/CommandEmpty.js +4 -4
  435. package/dist/primitives/CommandEmpty.js.map +1 -1
  436. package/dist/primitives/CommandGroup.cjs +8 -14
  437. package/dist/primitives/CommandGroup.d.ts +2 -1
  438. package/dist/primitives/CommandGroup.d.ts.map +1 -0
  439. package/dist/primitives/CommandGroup.js +4 -4
  440. package/dist/primitives/CommandGroup.js.map +1 -1
  441. package/dist/primitives/CommandInput.cjs +8 -14
  442. package/dist/primitives/CommandInput.d.ts +2 -1
  443. package/dist/primitives/CommandInput.d.ts.map +1 -0
  444. package/dist/primitives/CommandInput.js +4 -4
  445. package/dist/primitives/CommandInput.js.map +1 -1
  446. package/dist/primitives/CommandItem.cjs +8 -14
  447. package/dist/primitives/CommandItem.d.ts +2 -1
  448. package/dist/primitives/CommandItem.d.ts.map +1 -0
  449. package/dist/primitives/CommandItem.js +4 -4
  450. package/dist/primitives/CommandItem.js.map +1 -1
  451. package/dist/primitives/CommandList.cjs +8 -14
  452. package/dist/primitives/CommandList.d.ts +2 -1
  453. package/dist/primitives/CommandList.d.ts.map +1 -0
  454. package/dist/primitives/CommandList.js +4 -4
  455. package/dist/primitives/CommandList.js.map +1 -1
  456. package/dist/primitives/CommandSeparator.cjs +8 -14
  457. package/dist/primitives/CommandSeparator.d.ts +2 -1
  458. package/dist/primitives/CommandSeparator.d.ts.map +1 -0
  459. package/dist/primitives/CommandSeparator.js +4 -4
  460. package/dist/primitives/CommandSeparator.js.map +1 -1
  461. package/dist/primitives/CommandShortcut.cjs +8 -14
  462. package/dist/primitives/CommandShortcut.d.ts +2 -1
  463. package/dist/primitives/CommandShortcut.d.ts.map +1 -0
  464. package/dist/primitives/CommandShortcut.js +4 -4
  465. package/dist/primitives/CommandShortcut.js.map +1 -1
  466. package/dist/primitives/Dialog.cjs +8 -14
  467. package/dist/primitives/Dialog.d.ts +2 -1
  468. package/dist/primitives/Dialog.d.ts.map +1 -0
  469. package/dist/primitives/Dialog.js +4 -4
  470. package/dist/primitives/Dialog.js.map +1 -1
  471. package/dist/primitives/DialogClose.cjs +8 -14
  472. package/dist/primitives/DialogClose.d.ts +2 -1
  473. package/dist/primitives/DialogClose.d.ts.map +1 -0
  474. package/dist/primitives/DialogClose.js +4 -4
  475. package/dist/primitives/DialogClose.js.map +1 -1
  476. package/dist/primitives/DialogContent.cjs +8 -14
  477. package/dist/primitives/DialogContent.d.ts +2 -1
  478. package/dist/primitives/DialogContent.d.ts.map +1 -0
  479. package/dist/primitives/DialogContent.js +4 -4
  480. package/dist/primitives/DialogContent.js.map +1 -1
  481. package/dist/primitives/DialogDescription.cjs +8 -14
  482. package/dist/primitives/DialogDescription.d.ts +2 -1
  483. package/dist/primitives/DialogDescription.d.ts.map +1 -0
  484. package/dist/primitives/DialogDescription.js +4 -4
  485. package/dist/primitives/DialogDescription.js.map +1 -1
  486. package/dist/primitives/DialogFooter.cjs +8 -14
  487. package/dist/primitives/DialogFooter.d.ts +2 -1
  488. package/dist/primitives/DialogFooter.d.ts.map +1 -0
  489. package/dist/primitives/DialogFooter.js +4 -4
  490. package/dist/primitives/DialogFooter.js.map +1 -1
  491. package/dist/primitives/DialogHeader.cjs +8 -14
  492. package/dist/primitives/DialogHeader.d.ts +2 -1
  493. package/dist/primitives/DialogHeader.d.ts.map +1 -0
  494. package/dist/primitives/DialogHeader.js +4 -4
  495. package/dist/primitives/DialogHeader.js.map +1 -1
  496. package/dist/primitives/DialogOverlay.cjs +8 -14
  497. package/dist/primitives/DialogOverlay.d.ts +2 -1
  498. package/dist/primitives/DialogOverlay.d.ts.map +1 -0
  499. package/dist/primitives/DialogOverlay.js +4 -4
  500. package/dist/primitives/DialogOverlay.js.map +1 -1
  501. package/dist/primitives/DialogPortal.cjs +8 -14
  502. package/dist/primitives/DialogPortal.d.ts +2 -1
  503. package/dist/primitives/DialogPortal.d.ts.map +1 -0
  504. package/dist/primitives/DialogPortal.js +4 -4
  505. package/dist/primitives/DialogPortal.js.map +1 -1
  506. package/dist/primitives/DialogTitle.cjs +8 -14
  507. package/dist/primitives/DialogTitle.d.ts +2 -1
  508. package/dist/primitives/DialogTitle.d.ts.map +1 -0
  509. package/dist/primitives/DialogTitle.js +4 -4
  510. package/dist/primitives/DialogTitle.js.map +1 -1
  511. package/dist/primitives/DialogTrigger.cjs +8 -14
  512. package/dist/primitives/DialogTrigger.d.ts +2 -1
  513. package/dist/primitives/DialogTrigger.d.ts.map +1 -0
  514. package/dist/primitives/DialogTrigger.js +4 -4
  515. package/dist/primitives/DialogTrigger.js.map +1 -1
  516. package/dist/primitives/DropdownMenu.cjs +8 -14
  517. package/dist/primitives/DropdownMenu.d.ts +2 -1
  518. package/dist/primitives/DropdownMenu.d.ts.map +1 -0
  519. package/dist/primitives/DropdownMenu.js +4 -4
  520. package/dist/primitives/DropdownMenu.js.map +1 -1
  521. package/dist/primitives/DropdownMenuCheckboxItem.cjs +8 -14
  522. package/dist/primitives/DropdownMenuCheckboxItem.d.ts +2 -1
  523. package/dist/primitives/DropdownMenuCheckboxItem.d.ts.map +1 -0
  524. package/dist/primitives/DropdownMenuCheckboxItem.js +4 -4
  525. package/dist/primitives/DropdownMenuCheckboxItem.js.map +1 -1
  526. package/dist/primitives/DropdownMenuContent.cjs +8 -14
  527. package/dist/primitives/DropdownMenuContent.d.ts +2 -1
  528. package/dist/primitives/DropdownMenuContent.d.ts.map +1 -0
  529. package/dist/primitives/DropdownMenuContent.js +4 -4
  530. package/dist/primitives/DropdownMenuContent.js.map +1 -1
  531. package/dist/primitives/DropdownMenuGroup.cjs +8 -14
  532. package/dist/primitives/DropdownMenuGroup.d.ts +2 -1
  533. package/dist/primitives/DropdownMenuGroup.d.ts.map +1 -0
  534. package/dist/primitives/DropdownMenuGroup.js +4 -4
  535. package/dist/primitives/DropdownMenuGroup.js.map +1 -1
  536. package/dist/primitives/DropdownMenuItem.cjs +8 -14
  537. package/dist/primitives/DropdownMenuItem.d.ts +2 -1
  538. package/dist/primitives/DropdownMenuItem.d.ts.map +1 -0
  539. package/dist/primitives/DropdownMenuItem.js +4 -4
  540. package/dist/primitives/DropdownMenuItem.js.map +1 -1
  541. package/dist/primitives/DropdownMenuLabel.cjs +8 -14
  542. package/dist/primitives/DropdownMenuLabel.d.ts +2 -1
  543. package/dist/primitives/DropdownMenuLabel.d.ts.map +1 -0
  544. package/dist/primitives/DropdownMenuLabel.js +4 -4
  545. package/dist/primitives/DropdownMenuLabel.js.map +1 -1
  546. package/dist/primitives/DropdownMenuPortal.cjs +8 -14
  547. package/dist/primitives/DropdownMenuPortal.d.ts +2 -1
  548. package/dist/primitives/DropdownMenuPortal.d.ts.map +1 -0
  549. package/dist/primitives/DropdownMenuPortal.js +4 -4
  550. package/dist/primitives/DropdownMenuPortal.js.map +1 -1
  551. package/dist/primitives/DropdownMenuRadioGroup.cjs +8 -14
  552. package/dist/primitives/DropdownMenuRadioGroup.d.ts +2 -1
  553. package/dist/primitives/DropdownMenuRadioGroup.d.ts.map +1 -0
  554. package/dist/primitives/DropdownMenuRadioGroup.js +4 -4
  555. package/dist/primitives/DropdownMenuRadioGroup.js.map +1 -1
  556. package/dist/primitives/DropdownMenuRadioItem.cjs +8 -14
  557. package/dist/primitives/DropdownMenuRadioItem.d.ts +2 -1
  558. package/dist/primitives/DropdownMenuRadioItem.d.ts.map +1 -0
  559. package/dist/primitives/DropdownMenuRadioItem.js +4 -4
  560. package/dist/primitives/DropdownMenuRadioItem.js.map +1 -1
  561. package/dist/primitives/DropdownMenuSeparator.cjs +8 -14
  562. package/dist/primitives/DropdownMenuSeparator.d.ts +2 -1
  563. package/dist/primitives/DropdownMenuSeparator.d.ts.map +1 -0
  564. package/dist/primitives/DropdownMenuSeparator.js +4 -4
  565. package/dist/primitives/DropdownMenuSeparator.js.map +1 -1
  566. package/dist/primitives/DropdownMenuShortcut.cjs +8 -14
  567. package/dist/primitives/DropdownMenuShortcut.d.ts +2 -1
  568. package/dist/primitives/DropdownMenuShortcut.d.ts.map +1 -0
  569. package/dist/primitives/DropdownMenuShortcut.js +4 -4
  570. package/dist/primitives/DropdownMenuShortcut.js.map +1 -1
  571. package/dist/primitives/DropdownMenuSub.cjs +8 -14
  572. package/dist/primitives/DropdownMenuSub.d.ts +2 -1
  573. package/dist/primitives/DropdownMenuSub.d.ts.map +1 -0
  574. package/dist/primitives/DropdownMenuSub.js +4 -4
  575. package/dist/primitives/DropdownMenuSub.js.map +1 -1
  576. package/dist/primitives/DropdownMenuSubContent.cjs +8 -14
  577. package/dist/primitives/DropdownMenuSubContent.d.ts +2 -1
  578. package/dist/primitives/DropdownMenuSubContent.d.ts.map +1 -0
  579. package/dist/primitives/DropdownMenuSubContent.js +4 -4
  580. package/dist/primitives/DropdownMenuSubContent.js.map +1 -1
  581. package/dist/primitives/DropdownMenuSubTrigger.cjs +8 -14
  582. package/dist/primitives/DropdownMenuSubTrigger.d.ts +2 -1
  583. package/dist/primitives/DropdownMenuSubTrigger.d.ts.map +1 -0
  584. package/dist/primitives/DropdownMenuSubTrigger.js +4 -4
  585. package/dist/primitives/DropdownMenuSubTrigger.js.map +1 -1
  586. package/dist/primitives/DropdownMenuTrigger.cjs +8 -14
  587. package/dist/primitives/DropdownMenuTrigger.d.ts +2 -1
  588. package/dist/primitives/DropdownMenuTrigger.d.ts.map +1 -0
  589. package/dist/primitives/DropdownMenuTrigger.js +4 -4
  590. package/dist/primitives/DropdownMenuTrigger.js.map +1 -1
  591. package/dist/primitives/Input.cjs +8 -14
  592. package/dist/primitives/Input.d.ts +2 -1
  593. package/dist/primitives/Input.d.ts.map +1 -0
  594. package/dist/primitives/Input.js +4 -4
  595. package/dist/primitives/Input.js.map +1 -1
  596. package/dist/primitives/Label.cjs +8 -14
  597. package/dist/primitives/Label.d.ts +2 -1
  598. package/dist/primitives/Label.d.ts.map +1 -0
  599. package/dist/primitives/Label.js +4 -4
  600. package/dist/primitives/Label.js.map +1 -1
  601. package/dist/primitives/Popover.cjs +8 -14
  602. package/dist/primitives/Popover.d.ts +2 -1
  603. package/dist/primitives/Popover.d.ts.map +1 -0
  604. package/dist/primitives/Popover.js +4 -4
  605. package/dist/primitives/Popover.js.map +1 -1
  606. package/dist/primitives/PopoverAnchor.cjs +8 -14
  607. package/dist/primitives/PopoverAnchor.d.ts +2 -1
  608. package/dist/primitives/PopoverAnchor.d.ts.map +1 -0
  609. package/dist/primitives/PopoverAnchor.js +4 -4
  610. package/dist/primitives/PopoverAnchor.js.map +1 -1
  611. package/dist/primitives/PopoverClose.cjs +8 -14
  612. package/dist/primitives/PopoverClose.d.ts +2 -1
  613. package/dist/primitives/PopoverClose.d.ts.map +1 -0
  614. package/dist/primitives/PopoverClose.js +4 -4
  615. package/dist/primitives/PopoverClose.js.map +1 -1
  616. package/dist/primitives/PopoverContent.cjs +8 -14
  617. package/dist/primitives/PopoverContent.d.ts +2 -1
  618. package/dist/primitives/PopoverContent.d.ts.map +1 -0
  619. package/dist/primitives/PopoverContent.js +4 -4
  620. package/dist/primitives/PopoverContent.js.map +1 -1
  621. package/dist/primitives/PopoverTrigger.cjs +8 -14
  622. package/dist/primitives/PopoverTrigger.d.ts +2 -1
  623. package/dist/primitives/PopoverTrigger.d.ts.map +1 -0
  624. package/dist/primitives/PopoverTrigger.js +4 -4
  625. package/dist/primitives/PopoverTrigger.js.map +1 -1
  626. package/dist/primitives/Progress.cjs +8 -14
  627. package/dist/primitives/Progress.d.ts +2 -1
  628. package/dist/primitives/Progress.d.ts.map +1 -0
  629. package/dist/primitives/Progress.js +4 -4
  630. package/dist/primitives/Progress.js.map +1 -1
  631. package/dist/primitives/ResizableHandle.cjs +8 -14
  632. package/dist/primitives/ResizableHandle.d.ts +2 -1
  633. package/dist/primitives/ResizableHandle.d.ts.map +1 -0
  634. package/dist/primitives/ResizableHandle.js +4 -4
  635. package/dist/primitives/ResizableHandle.js.map +1 -1
  636. package/dist/primitives/ResizablePanel.cjs +8 -14
  637. package/dist/primitives/ResizablePanel.d.ts +2 -1
  638. package/dist/primitives/ResizablePanel.d.ts.map +1 -0
  639. package/dist/primitives/ResizablePanel.js +4 -4
  640. package/dist/primitives/ResizablePanel.js.map +1 -1
  641. package/dist/primitives/ResizablePanelGroup.cjs +8 -14
  642. package/dist/primitives/ResizablePanelGroup.d.ts +2 -1
  643. package/dist/primitives/ResizablePanelGroup.d.ts.map +1 -0
  644. package/dist/primitives/ResizablePanelGroup.js +4 -4
  645. package/dist/primitives/ResizablePanelGroup.js.map +1 -1
  646. package/dist/primitives/ScrollArea.cjs +8 -14
  647. package/dist/primitives/ScrollArea.d.ts +2 -1
  648. package/dist/primitives/ScrollArea.d.ts.map +1 -0
  649. package/dist/primitives/ScrollArea.js +4 -4
  650. package/dist/primitives/ScrollArea.js.map +1 -1
  651. package/dist/primitives/ScrollBar.cjs +8 -14
  652. package/dist/primitives/ScrollBar.d.ts +2 -1
  653. package/dist/primitives/ScrollBar.d.ts.map +1 -0
  654. package/dist/primitives/ScrollBar.js +4 -4
  655. package/dist/primitives/ScrollBar.js.map +1 -1
  656. package/dist/primitives/Select.cjs +8 -14
  657. package/dist/primitives/Select.d.ts +2 -1
  658. package/dist/primitives/Select.d.ts.map +1 -0
  659. package/dist/primitives/Select.js +4 -4
  660. package/dist/primitives/Select.js.map +1 -1
  661. package/dist/primitives/SelectContent.cjs +8 -14
  662. package/dist/primitives/SelectContent.d.ts +2 -1
  663. package/dist/primitives/SelectContent.d.ts.map +1 -0
  664. package/dist/primitives/SelectContent.js +4 -4
  665. package/dist/primitives/SelectContent.js.map +1 -1
  666. package/dist/primitives/SelectGroup.cjs +8 -14
  667. package/dist/primitives/SelectGroup.d.ts +2 -1
  668. package/dist/primitives/SelectGroup.d.ts.map +1 -0
  669. package/dist/primitives/SelectGroup.js +4 -4
  670. package/dist/primitives/SelectGroup.js.map +1 -1
  671. package/dist/primitives/SelectItem.cjs +8 -14
  672. package/dist/primitives/SelectItem.d.ts +2 -1
  673. package/dist/primitives/SelectItem.d.ts.map +1 -0
  674. package/dist/primitives/SelectItem.js +4 -4
  675. package/dist/primitives/SelectItem.js.map +1 -1
  676. package/dist/primitives/SelectLabel.cjs +8 -14
  677. package/dist/primitives/SelectLabel.d.ts +2 -1
  678. package/dist/primitives/SelectLabel.d.ts.map +1 -0
  679. package/dist/primitives/SelectLabel.js +4 -4
  680. package/dist/primitives/SelectLabel.js.map +1 -1
  681. package/dist/primitives/SelectScrollDownButton.cjs +8 -14
  682. package/dist/primitives/SelectScrollDownButton.d.ts +2 -1
  683. package/dist/primitives/SelectScrollDownButton.d.ts.map +1 -0
  684. package/dist/primitives/SelectScrollDownButton.js +4 -4
  685. package/dist/primitives/SelectScrollDownButton.js.map +1 -1
  686. package/dist/primitives/SelectScrollUpButton.cjs +8 -14
  687. package/dist/primitives/SelectScrollUpButton.d.ts +2 -1
  688. package/dist/primitives/SelectScrollUpButton.d.ts.map +1 -0
  689. package/dist/primitives/SelectScrollUpButton.js +4 -4
  690. package/dist/primitives/SelectScrollUpButton.js.map +1 -1
  691. package/dist/primitives/SelectSeparator.cjs +8 -14
  692. package/dist/primitives/SelectSeparator.d.ts +2 -1
  693. package/dist/primitives/SelectSeparator.d.ts.map +1 -0
  694. package/dist/primitives/SelectSeparator.js +4 -4
  695. package/dist/primitives/SelectSeparator.js.map +1 -1
  696. package/dist/primitives/SelectTrigger.cjs +8 -14
  697. package/dist/primitives/SelectTrigger.d.ts +2 -1
  698. package/dist/primitives/SelectTrigger.d.ts.map +1 -0
  699. package/dist/primitives/SelectTrigger.js +4 -4
  700. package/dist/primitives/SelectTrigger.js.map +1 -1
  701. package/dist/primitives/SelectValue.cjs +8 -14
  702. package/dist/primitives/SelectValue.d.ts +2 -1
  703. package/dist/primitives/SelectValue.d.ts.map +1 -0
  704. package/dist/primitives/SelectValue.js +4 -4
  705. package/dist/primitives/SelectValue.js.map +1 -1
  706. package/dist/primitives/Separator.cjs +8 -14
  707. package/dist/primitives/Separator.d.ts +2 -1
  708. package/dist/primitives/Separator.d.ts.map +1 -0
  709. package/dist/primitives/Separator.js +4 -4
  710. package/dist/primitives/Separator.js.map +1 -1
  711. package/dist/primitives/Slider.cjs +8 -14
  712. package/dist/primitives/Slider.d.ts +2 -1
  713. package/dist/primitives/Slider.d.ts.map +1 -0
  714. package/dist/primitives/Slider.js +4 -4
  715. package/dist/primitives/Slider.js.map +1 -1
  716. package/dist/primitives/Switch.cjs +8 -14
  717. package/dist/primitives/Switch.d.ts +2 -1
  718. package/dist/primitives/Switch.d.ts.map +1 -0
  719. package/dist/primitives/Switch.js +4 -4
  720. package/dist/primitives/Switch.js.map +1 -1
  721. package/dist/primitives/Tabs.cjs +8 -14
  722. package/dist/primitives/Tabs.d.ts +2 -1
  723. package/dist/primitives/Tabs.d.ts.map +1 -0
  724. package/dist/primitives/Tabs.js +4 -4
  725. package/dist/primitives/Tabs.js.map +1 -1
  726. package/dist/primitives/TabsContent.cjs +8 -14
  727. package/dist/primitives/TabsContent.d.ts +2 -1
  728. package/dist/primitives/TabsContent.d.ts.map +1 -0
  729. package/dist/primitives/TabsContent.js +4 -4
  730. package/dist/primitives/TabsContent.js.map +1 -1
  731. package/dist/primitives/TabsList.cjs +8 -14
  732. package/dist/primitives/TabsList.d.ts +2 -1
  733. package/dist/primitives/TabsList.d.ts.map +1 -0
  734. package/dist/primitives/TabsList.js +4 -4
  735. package/dist/primitives/TabsList.js.map +1 -1
  736. package/dist/primitives/TabsTrigger.cjs +8 -14
  737. package/dist/primitives/TabsTrigger.d.ts +2 -1
  738. package/dist/primitives/TabsTrigger.d.ts.map +1 -0
  739. package/dist/primitives/TabsTrigger.js +4 -4
  740. package/dist/primitives/TabsTrigger.js.map +1 -1
  741. package/dist/primitives/Textarea.cjs +8 -14
  742. package/dist/primitives/Textarea.d.ts +2 -1
  743. package/dist/primitives/Textarea.d.ts.map +1 -0
  744. package/dist/primitives/Textarea.js +4 -4
  745. package/dist/primitives/Textarea.js.map +1 -1
  746. package/dist/primitives/Toaster.cjs +8 -14
  747. package/dist/primitives/Toaster.d.ts +2 -1
  748. package/dist/primitives/Toaster.d.ts.map +1 -0
  749. package/dist/primitives/Toaster.js +4 -4
  750. package/dist/primitives/Toaster.js.map +1 -1
  751. package/dist/primitives/Tooltip.cjs +8 -14
  752. package/dist/primitives/Tooltip.d.ts +2 -1
  753. package/dist/primitives/Tooltip.d.ts.map +1 -0
  754. package/dist/primitives/Tooltip.js +4 -4
  755. package/dist/primitives/Tooltip.js.map +1 -1
  756. package/dist/primitives/TooltipContent.cjs +8 -14
  757. package/dist/primitives/TooltipContent.d.ts +2 -1
  758. package/dist/primitives/TooltipContent.d.ts.map +1 -0
  759. package/dist/primitives/TooltipContent.js +4 -4
  760. package/dist/primitives/TooltipContent.js.map +1 -1
  761. package/dist/primitives/TooltipProvider.cjs +8 -14
  762. package/dist/primitives/TooltipProvider.d.ts +2 -1
  763. package/dist/primitives/TooltipProvider.d.ts.map +1 -0
  764. package/dist/primitives/TooltipProvider.js +4 -4
  765. package/dist/primitives/TooltipProvider.js.map +1 -1
  766. package/dist/primitives/TooltipTrigger.cjs +8 -14
  767. package/dist/primitives/TooltipTrigger.d.ts +2 -1
  768. package/dist/primitives/TooltipTrigger.d.ts.map +1 -0
  769. package/dist/primitives/TooltipTrigger.js +4 -4
  770. package/dist/primitives/TooltipTrigger.js.map +1 -1
  771. package/dist/primitives/badgeVariants.cjs +8 -14
  772. package/dist/primitives/badgeVariants.d.ts +2 -1
  773. package/dist/primitives/badgeVariants.d.ts.map +1 -0
  774. package/dist/primitives/badgeVariants.js +4 -4
  775. package/dist/primitives/badgeVariants.js.map +1 -1
  776. package/dist/primitives/bases/data/index.cjs +28 -15
  777. package/dist/primitives/bases/data/index.d.ts +1 -0
  778. package/dist/primitives/bases/data/index.d.ts.map +1 -0
  779. package/dist/primitives/bases/data/index.js +11 -2
  780. package/dist/primitives/bases/data/index.js.map +1 -1
  781. package/dist/primitives/buttonVariants.cjs +8 -14
  782. package/dist/primitives/buttonVariants.d.ts +2 -1
  783. package/dist/primitives/buttonVariants.d.ts.map +1 -0
  784. package/dist/primitives/buttonVariants.js +4 -4
  785. package/dist/primitives/buttonVariants.js.map +1 -1
  786. package/dist/primitives/index.cjs +20 -370
  787. package/dist/primitives/index.d.ts +2 -1
  788. package/dist/primitives/index.d.ts.map +1 -0
  789. package/dist/primitives/index.js +4 -4
  790. package/dist/primitives/index.js.map +1 -1
  791. package/dist/primitives/toast.cjs +8 -14
  792. package/dist/primitives/toast.d.ts +2 -1
  793. package/dist/primitives/toast.d.ts.map +1 -0
  794. package/dist/primitives/toast.js +4 -4
  795. package/dist/primitives/toast.js.map +1 -1
  796. package/dist/product/AnimatedLogo.cjs +102 -0
  797. package/dist/product/AnimatedLogo.d.ts +2 -1
  798. package/dist/product/AnimatedLogo.d.ts.map +1 -0
  799. package/dist/product/AnimatedLogo.js +100 -0
  800. package/dist/product/AnimatedLogo.js.map +1 -0
  801. package/dist/product/AppHeader.cjs +55 -0
  802. package/dist/product/AppHeader.d.ts +2 -1
  803. package/dist/product/AppHeader.d.ts.map +1 -0
  804. package/dist/product/AppHeader.js +53 -0
  805. package/dist/product/AppHeader.js.map +1 -0
  806. package/dist/product/BackendState.cjs +80 -0
  807. package/dist/product/BackendState.d.ts +1 -0
  808. package/dist/product/BackendState.d.ts.map +1 -0
  809. package/dist/product/BackendState.js +76 -0
  810. package/dist/product/BackendState.js.map +1 -0
  811. package/dist/product/BrandMark.cjs +19 -0
  812. package/dist/product/BrandMark.d.ts +1 -0
  813. package/dist/product/BrandMark.d.ts.map +1 -0
  814. package/dist/product/BrandMark.js +17 -0
  815. package/dist/product/BrandMark.js.map +1 -0
  816. package/dist/product/Charts.cjs +243 -0
  817. package/dist/product/Charts.d.ts +1 -0
  818. package/dist/product/Charts.d.ts.map +1 -0
  819. package/dist/product/Charts.js +235 -0
  820. package/dist/product/Charts.js.map +1 -0
  821. package/dist/product/ComboBox.cjs +44 -0
  822. package/dist/product/ComboBox.d.ts +3 -2
  823. package/dist/product/ComboBox.d.ts.map +1 -0
  824. package/dist/product/ComboBox.js +42 -0
  825. package/dist/product/ComboBox.js.map +1 -0
  826. package/dist/product/CommerceResource.cjs +39 -0
  827. package/dist/product/CommerceResource.d.ts +2 -1
  828. package/dist/product/CommerceResource.d.ts.map +1 -0
  829. package/dist/product/CommerceResource.js +37 -0
  830. package/dist/product/CommerceResource.js.map +1 -0
  831. package/dist/product/ConfirmDelete.cjs +42 -0
  832. package/dist/product/ConfirmDelete.d.ts +1 -0
  833. package/dist/product/ConfirmDelete.d.ts.map +1 -0
  834. package/dist/product/ConfirmDelete.js +40 -0
  835. package/dist/product/ConfirmDelete.js.map +1 -0
  836. package/dist/product/DataTable.cjs +58 -0
  837. package/dist/product/DataTable.d.ts +1 -0
  838. package/dist/product/DataTable.d.ts.map +1 -0
  839. package/dist/product/DataTable.js +56 -0
  840. package/dist/product/DataTable.js.map +1 -0
  841. package/dist/product/Donut.cjs +25 -0
  842. package/dist/product/Donut.d.ts +1 -0
  843. package/dist/product/Donut.d.ts.map +1 -0
  844. package/dist/product/Donut.js +23 -0
  845. package/dist/product/Donut.js.map +1 -0
  846. package/dist/product/EmptyState.cjs +30 -0
  847. package/dist/product/EmptyState.d.ts +2 -1
  848. package/dist/product/EmptyState.d.ts.map +1 -0
  849. package/dist/product/EmptyState.js +28 -0
  850. package/dist/product/EmptyState.js.map +1 -0
  851. package/dist/product/FadeIn.cjs +9 -0
  852. package/dist/product/FadeIn.d.ts +1 -0
  853. package/dist/product/FadeIn.d.ts.map +1 -0
  854. package/dist/product/FadeIn.js +7 -0
  855. package/dist/product/FadeIn.js.map +1 -0
  856. package/dist/product/Field.cjs +111 -0
  857. package/dist/product/Field.d.ts +1 -0
  858. package/dist/product/Field.d.ts.map +1 -0
  859. package/dist/product/Field.js +104 -0
  860. package/dist/product/Field.js.map +1 -0
  861. package/dist/product/Filters.cjs +31 -0
  862. package/dist/product/Filters.d.ts +1 -0
  863. package/dist/product/Filters.d.ts.map +1 -0
  864. package/dist/product/Filters.js +28 -0
  865. package/dist/product/Filters.js.map +1 -0
  866. package/dist/product/HanzoMark.cjs +16 -0
  867. package/dist/product/HanzoMark.d.ts +1 -0
  868. package/dist/product/HanzoMark.d.ts.map +1 -0
  869. package/dist/product/HanzoMark.js +14 -0
  870. package/dist/product/HanzoMark.js.map +1 -0
  871. package/dist/product/Metric.cjs +96 -0
  872. package/dist/product/Metric.d.ts +1 -0
  873. package/dist/product/Metric.d.ts.map +1 -0
  874. package/dist/product/Metric.js +85 -0
  875. package/dist/product/Metric.js.map +1 -0
  876. package/dist/product/OrgMark.cjs +50 -0
  877. package/dist/product/OrgMark.d.ts +2 -1
  878. package/dist/product/OrgMark.d.ts.map +1 -0
  879. package/dist/product/OrgMark.js +47 -0
  880. package/dist/product/OrgMark.js.map +1 -0
  881. package/dist/product/OrgSwitcher.cjs +140 -0
  882. package/dist/product/OrgSwitcher.d.ts +2 -1
  883. package/dist/product/OrgSwitcher.d.ts.map +1 -0
  884. package/dist/product/OrgSwitcher.js +138 -0
  885. package/dist/product/OrgSwitcher.js.map +1 -0
  886. package/dist/product/PageHeader.cjs +15 -0
  887. package/dist/product/PageHeader.d.ts +1 -0
  888. package/dist/product/PageHeader.d.ts.map +1 -0
  889. package/dist/product/PageHeader.js +13 -0
  890. package/dist/product/PageHeader.js.map +1 -0
  891. package/dist/product/PrimaryButton.cjs +31 -0
  892. package/dist/product/PrimaryButton.d.ts +1 -0
  893. package/dist/product/PrimaryButton.d.ts.map +1 -0
  894. package/dist/product/PrimaryButton.js +29 -0
  895. package/dist/product/PrimaryButton.js.map +1 -0
  896. package/dist/product/ProductIcon.cjs +36 -0
  897. package/dist/product/ProductIcon.d.ts +2 -1
  898. package/dist/product/ProductIcon.d.ts.map +1 -0
  899. package/dist/product/ProductIcon.js +34 -0
  900. package/dist/product/ProductIcon.js.map +1 -0
  901. package/dist/product/ProviderLogo.cjs +84 -0
  902. package/dist/product/ProviderLogo.d.ts +1 -0
  903. package/dist/product/ProviderLogo.d.ts.map +1 -0
  904. package/dist/product/ProviderLogo.js +81 -0
  905. package/dist/product/ProviderLogo.js.map +1 -0
  906. package/dist/product/Reorder.cjs +82 -0
  907. package/dist/product/Reorder.d.ts +1 -0
  908. package/dist/product/Reorder.d.ts.map +1 -0
  909. package/dist/product/Reorder.js +78 -0
  910. package/dist/product/Reorder.js.map +1 -0
  911. package/dist/product/SelectMenu.cjs +19 -0
  912. package/dist/product/SelectMenu.d.ts +1 -0
  913. package/dist/product/SelectMenu.d.ts.map +1 -0
  914. package/dist/product/SelectMenu.js +17 -0
  915. package/dist/product/SelectMenu.js.map +1 -0
  916. package/dist/product/SiteFooter.cjs +17 -0
  917. package/dist/product/SiteFooter.d.ts +2 -1
  918. package/dist/product/SiteFooter.d.ts.map +1 -0
  919. package/dist/product/SiteFooter.js +15 -0
  920. package/dist/product/SiteFooter.js.map +1 -0
  921. package/dist/product/SiteNav.cjs +124 -0
  922. package/dist/product/SiteNav.d.ts +1 -0
  923. package/dist/product/SiteNav.d.ts.map +1 -0
  924. package/dist/product/SiteNav.js +122 -0
  925. package/dist/product/SiteNav.js.map +1 -0
  926. package/dist/product/SlideOver.cjs +129 -0
  927. package/dist/product/SlideOver.d.ts +2 -1
  928. package/dist/product/SlideOver.d.ts.map +1 -0
  929. package/dist/product/SlideOver.js +126 -0
  930. package/dist/product/SlideOver.js.map +1 -0
  931. package/dist/product/StatusTag.cjs +49 -0
  932. package/dist/product/StatusTag.d.ts +1 -0
  933. package/dist/product/StatusTag.d.ts.map +1 -0
  934. package/dist/product/StatusTag.js +47 -0
  935. package/dist/product/StatusTag.js.map +1 -0
  936. package/dist/product/ThemeToggle.cjs +120 -0
  937. package/dist/product/ThemeToggle.d.ts +1 -0
  938. package/dist/product/ThemeToggle.d.ts.map +1 -0
  939. package/dist/product/ThemeToggle.js +84 -0
  940. package/dist/product/ThemeToggle.js.map +1 -0
  941. package/dist/product/ThemeToggleNext.cjs +20 -0
  942. package/dist/product/ThemeToggleNext.d.ts +2 -1
  943. package/dist/product/ThemeToggleNext.d.ts.map +1 -0
  944. package/dist/product/ThemeToggleNext.js +19 -0
  945. package/dist/product/ThemeToggleNext.js.map +1 -0
  946. package/dist/product/Toast.cjs +90 -0
  947. package/dist/product/Toast.d.ts +1 -0
  948. package/dist/product/Toast.d.ts.map +1 -0
  949. package/dist/product/Toast.js +87 -0
  950. package/dist/product/Toast.js.map +1 -0
  951. package/dist/product/accent.cjs +97 -0
  952. package/dist/product/accent.d.ts +1 -0
  953. package/dist/product/accent.d.ts.map +1 -0
  954. package/dist/product/accent.js +90 -0
  955. package/dist/product/accent.js.map +1 -0
  956. package/dist/product/animatedLogo.logic.cjs +52 -0
  957. package/dist/product/animatedLogo.logic.d.ts +1 -0
  958. package/dist/product/animatedLogo.logic.d.ts.map +1 -0
  959. package/dist/product/animatedLogo.logic.js +47 -0
  960. package/dist/product/animatedLogo.logic.js.map +1 -0
  961. package/dist/product/brand.cjs +91 -0
  962. package/dist/product/brand.d.ts +1 -0
  963. package/dist/product/brand.d.ts.map +1 -0
  964. package/dist/product/brand.js +88 -0
  965. package/dist/product/brand.js.map +1 -0
  966. package/dist/product/color.cjs +6 -0
  967. package/dist/product/color.d.ts +1 -0
  968. package/dist/product/color.d.ts.map +1 -0
  969. package/dist/product/color.js +3 -0
  970. package/dist/product/color.js.map +1 -0
  971. package/dist/product/combobox/filter.cjs +31 -0
  972. package/dist/product/combobox/filter.d.ts +1 -0
  973. package/dist/product/combobox/filter.d.ts.map +1 -0
  974. package/dist/product/combobox/filter.js +28 -0
  975. package/dist/product/combobox/filter.js.map +1 -0
  976. package/dist/product/host.cjs +20 -0
  977. package/dist/product/host.d.ts +1 -0
  978. package/dist/product/host.d.ts.map +1 -0
  979. package/dist/product/host.js +16 -0
  980. package/dist/product/host.js.map +1 -0
  981. package/dist/product/index.cjs +120 -2490
  982. package/dist/product/index.d.ts +42 -41
  983. package/dist/product/index.d.ts.map +1 -0
  984. package/dist/product/index.js +88 -2168
  985. package/dist/product/index.js.map +1 -1
  986. package/dist/product/instrument.cjs +79 -0
  987. package/dist/product/instrument.d.ts +1 -0
  988. package/dist/product/instrument.d.ts.map +1 -0
  989. package/dist/product/instrument.js +72 -0
  990. package/dist/product/instrument.js.map +1 -0
  991. package/dist/product/menu/ContextMenu.cjs +26 -0
  992. package/dist/product/menu/ContextMenu.d.ts +2 -1
  993. package/dist/product/menu/ContextMenu.d.ts.map +1 -0
  994. package/dist/product/menu/ContextMenu.js +24 -0
  995. package/dist/product/menu/ContextMenu.js.map +1 -0
  996. package/dist/product/menu/FloatingMenu.cjs +87 -0
  997. package/dist/product/menu/FloatingMenu.d.ts +1 -0
  998. package/dist/product/menu/FloatingMenu.d.ts.map +1 -0
  999. package/dist/product/menu/FloatingMenu.js +85 -0
  1000. package/dist/product/menu/FloatingMenu.js.map +1 -0
  1001. package/dist/product/menu/index.cjs +30 -0
  1002. package/dist/product/menu/index.d.ts +6 -5
  1003. package/dist/product/menu/index.d.ts.map +1 -0
  1004. package/dist/product/menu/index.js +19 -0
  1005. package/dist/product/menu/index.js.map +1 -0
  1006. package/dist/product/menu/items.cjs +92 -0
  1007. package/dist/product/menu/items.d.ts +2 -1
  1008. package/dist/product/menu/items.d.ts.map +1 -0
  1009. package/dist/product/menu/items.js +85 -0
  1010. package/dist/product/menu/items.js.map +1 -0
  1011. package/dist/product/menu/portal-theme.cjs +13 -0
  1012. package/dist/product/menu/portal-theme.d.ts +1 -0
  1013. package/dist/product/menu/portal-theme.d.ts.map +1 -0
  1014. package/dist/product/menu/portal-theme.js +12 -0
  1015. package/dist/product/menu/portal-theme.js.map +1 -0
  1016. package/dist/product/menu/roving.cjs +31 -0
  1017. package/dist/product/menu/roving.d.ts +1 -0
  1018. package/dist/product/menu/roving.d.ts.map +1 -0
  1019. package/dist/product/menu/roving.js +29 -0
  1020. package/dist/product/menu/roving.js.map +1 -0
  1021. package/dist/product/scope.cjs +102 -0
  1022. package/dist/product/scope.d.ts +1 -0
  1023. package/dist/product/scope.d.ts.map +1 -0
  1024. package/dist/product/scope.js +99 -0
  1025. package/dist/product/scope.js.map +1 -0
  1026. package/dist/product/social/CampaignCard.cjs +17 -0
  1027. package/dist/product/social/CampaignCard.d.ts +1 -0
  1028. package/dist/product/social/CampaignCard.d.ts.map +1 -0
  1029. package/dist/product/social/CampaignCard.js +15 -0
  1030. package/dist/product/social/CampaignCard.js.map +1 -0
  1031. package/dist/product/social/ChannelBadge.cjs +24 -0
  1032. package/dist/product/social/ChannelBadge.d.ts +2 -1
  1033. package/dist/product/social/ChannelBadge.d.ts.map +1 -0
  1034. package/dist/product/social/ChannelBadge.js +22 -0
  1035. package/dist/product/social/ChannelBadge.js.map +1 -0
  1036. package/dist/product/social/PostAgenda.cjs +40 -0
  1037. package/dist/product/social/PostAgenda.d.ts +2 -1
  1038. package/dist/product/social/PostAgenda.d.ts.map +1 -0
  1039. package/dist/product/social/PostAgenda.js +38 -0
  1040. package/dist/product/social/PostAgenda.js.map +1 -0
  1041. package/dist/product/social/PostCard.cjs +19 -0
  1042. package/dist/product/social/PostCard.d.ts +2 -1
  1043. package/dist/product/social/PostCard.d.ts.map +1 -0
  1044. package/dist/product/social/PostCard.js +17 -0
  1045. package/dist/product/social/PostCard.js.map +1 -0
  1046. package/dist/product/social/PostComposer.cjs +64 -0
  1047. package/dist/product/social/PostComposer.d.ts +2 -1
  1048. package/dist/product/social/PostComposer.d.ts.map +1 -0
  1049. package/dist/product/social/PostComposer.js +61 -0
  1050. package/dist/product/social/PostComposer.js.map +1 -0
  1051. package/dist/product/social/ProviderReadinessList.cjs +16 -0
  1052. package/dist/product/social/ProviderReadinessList.d.ts +2 -1
  1053. package/dist/product/social/ProviderReadinessList.d.ts.map +1 -0
  1054. package/dist/product/social/ProviderReadinessList.js +14 -0
  1055. package/dist/product/social/ProviderReadinessList.js.map +1 -0
  1056. package/dist/product/social/SocialResource.cjs +147 -0
  1057. package/dist/product/social/SocialResource.d.ts +2 -1
  1058. package/dist/product/social/SocialResource.d.ts.map +1 -0
  1059. package/dist/product/social/SocialResource.js +145 -0
  1060. package/dist/product/social/SocialResource.js.map +1 -0
  1061. package/dist/product/social/SocialSummaryBar.cjs +20 -0
  1062. package/dist/product/social/SocialSummaryBar.d.ts +2 -1
  1063. package/dist/product/social/SocialSummaryBar.d.ts.map +1 -0
  1064. package/dist/product/social/SocialSummaryBar.js +18 -0
  1065. package/dist/product/social/SocialSummaryBar.js.map +1 -0
  1066. package/dist/product/social/ViewToggle.cjs +23 -0
  1067. package/dist/product/social/ViewToggle.d.ts +1 -0
  1068. package/dist/product/social/ViewToggle.d.ts.map +1 -0
  1069. package/dist/product/social/ViewToggle.js +21 -0
  1070. package/dist/product/social/ViewToggle.js.map +1 -0
  1071. package/dist/product/social/api.cjs +137 -53
  1072. package/dist/product/social/api.d.ts +1 -0
  1073. package/dist/product/social/api.d.ts.map +1 -0
  1074. package/dist/product/social/api.js +126 -3
  1075. package/dist/product/social/api.js.map +1 -1
  1076. package/dist/product/social/format.cjs +39 -0
  1077. package/dist/product/social/format.d.ts +1 -0
  1078. package/dist/product/social/format.d.ts.map +1 -0
  1079. package/dist/product/social/format.js +34 -0
  1080. package/dist/product/social/format.js.map +1 -0
  1081. package/dist/product/social/index.cjs +38 -112
  1082. package/dist/product/social/index.d.ts +12 -11
  1083. package/dist/product/social/index.d.ts.map +1 -0
  1084. package/dist/product/social/index.js +22 -6
  1085. package/dist/product/social/index.js.map +1 -1
  1086. package/dist/product/surfaces.data.cjs +25 -0
  1087. package/dist/product/surfaces.data.d.ts +1 -0
  1088. package/dist/product/surfaces.data.d.ts.map +1 -0
  1089. package/dist/product/surfaces.data.js +22 -0
  1090. package/dist/product/surfaces.data.js.map +1 -0
  1091. package/dist/telemetry.cjs +31 -15
  1092. package/dist/telemetry.d.ts +1 -0
  1093. package/dist/telemetry.d.ts.map +1 -0
  1094. package/dist/telemetry.js +14 -2
  1095. package/dist/telemetry.js.map +1 -1
  1096. package/dist/theme.css +70 -45
  1097. package/dist/usage.cjs +24 -15
  1098. package/dist/usage.d.ts +1 -0
  1099. package/dist/usage.d.ts.map +1 -0
  1100. package/dist/usage.js +7 -2
  1101. package/dist/usage.js.map +1 -1
  1102. package/package.json +10 -13
  1103. package/dist/ThemeToggleNext-AEDLHX5X.js +0 -5
  1104. package/dist/ThemeToggleNext-AEDLHX5X.js.map +0 -1
  1105. package/dist/ThemeToggleNext-N6ASYJ6J.cjs +0 -20
  1106. package/dist/ThemeToggleNext-N6ASYJ6J.cjs.map +0 -1
  1107. package/dist/canvas.cjs.map +0 -1
  1108. package/dist/chunk-2U3MNE4I.js +0 -4
  1109. package/dist/chunk-2U3MNE4I.js.map +0 -1
  1110. package/dist/chunk-3NG33DV2.cjs +0 -607
  1111. package/dist/chunk-3NG33DV2.cjs.map +0 -1
  1112. package/dist/chunk-6DDY6XZI.js +0 -53
  1113. package/dist/chunk-6DDY6XZI.js.map +0 -1
  1114. package/dist/chunk-6KZWRBK2.cjs +0 -1498
  1115. package/dist/chunk-6KZWRBK2.cjs.map +0 -1
  1116. package/dist/chunk-77AMCLN4.js +0 -100
  1117. package/dist/chunk-77AMCLN4.js.map +0 -1
  1118. package/dist/chunk-7XDEUEWI.cjs +0 -44
  1119. package/dist/chunk-7XDEUEWI.cjs.map +0 -1
  1120. package/dist/chunk-7ZNK6JSS.js +0 -831
  1121. package/dist/chunk-7ZNK6JSS.js.map +0 -1
  1122. package/dist/chunk-ARV3P4CE.cjs +0 -105
  1123. package/dist/chunk-ARV3P4CE.cjs.map +0 -1
  1124. package/dist/chunk-DC52DQ27.cjs +0 -303
  1125. package/dist/chunk-DC52DQ27.cjs.map +0 -1
  1126. package/dist/chunk-FVQXROBK.js +0 -37
  1127. package/dist/chunk-FVQXROBK.js.map +0 -1
  1128. package/dist/chunk-GVCOAJLO.js +0 -397
  1129. package/dist/chunk-GVCOAJLO.js.map +0 -1
  1130. package/dist/chunk-MWBFAV3D.cjs +0 -105
  1131. package/dist/chunk-MWBFAV3D.cjs.map +0 -1
  1132. package/dist/chunk-NQUA5YRQ.cjs +0 -55
  1133. package/dist/chunk-NQUA5YRQ.cjs.map +0 -1
  1134. package/dist/chunk-ONVERVFG.cjs +0 -851
  1135. package/dist/chunk-ONVERVFG.cjs.map +0 -1
  1136. package/dist/chunk-P2QU5MN5.js +0 -555
  1137. package/dist/chunk-P2QU5MN5.js.map +0 -1
  1138. package/dist/chunk-PI3GSHLU.js +0 -263
  1139. package/dist/chunk-PI3GSHLU.js.map +0 -1
  1140. package/dist/chunk-QHC2ZNAF.js +0 -11
  1141. package/dist/chunk-QHC2ZNAF.js.map +0 -1
  1142. package/dist/chunk-QV52JQHR.cjs +0 -77
  1143. package/dist/chunk-QV52JQHR.cjs.map +0 -1
  1144. package/dist/chunk-RBS5AYO4.cjs +0 -13
  1145. package/dist/chunk-RBS5AYO4.cjs.map +0 -1
  1146. package/dist/chunk-RCMDRI6V.js +0 -1401
  1147. package/dist/chunk-RCMDRI6V.js.map +0 -1
  1148. package/dist/chunk-WHJR5S4L.cjs +0 -418
  1149. package/dist/chunk-WHJR5S4L.cjs.map +0 -1
  1150. package/dist/chunk-ZGTJCJ55.js +0 -93
  1151. package/dist/chunk-ZGTJCJ55.js.map +0 -1
  1152. package/dist/components.d.ts +0 -1
  1153. package/dist/core/index.cjs.map +0 -1
  1154. package/dist/core/tokens.cjs.map +0 -1
  1155. package/dist/dashboard.cjs.map +0 -1
  1156. package/dist/data.cjs.map +0 -1
  1157. package/dist/framework/core.cjs.map +0 -1
  1158. package/dist/framework/index.cjs.map +0 -1
  1159. package/dist/gitops.cjs.map +0 -1
  1160. package/dist/gui-config.cjs.map +0 -1
  1161. package/dist/index.cjs.map +0 -1
  1162. package/dist/models/index.cjs.map +0 -1
  1163. package/dist/oss.cjs.map +0 -1
  1164. package/dist/primitives/AspectRatio.cjs.map +0 -1
  1165. package/dist/primitives/Avatar.cjs.map +0 -1
  1166. package/dist/primitives/AvatarFallback.cjs.map +0 -1
  1167. package/dist/primitives/AvatarImage.cjs.map +0 -1
  1168. package/dist/primitives/Badge.cjs.map +0 -1
  1169. package/dist/primitives/Button.cjs.map +0 -1
  1170. package/dist/primitives/Card.cjs.map +0 -1
  1171. package/dist/primitives/CardAction.cjs.map +0 -1
  1172. package/dist/primitives/CardContent.cjs.map +0 -1
  1173. package/dist/primitives/CardDescription.cjs.map +0 -1
  1174. package/dist/primitives/CardFooter.cjs.map +0 -1
  1175. package/dist/primitives/CardHeader.cjs.map +0 -1
  1176. package/dist/primitives/CardTitle.cjs.map +0 -1
  1177. package/dist/primitives/Checkbox.cjs.map +0 -1
  1178. package/dist/primitives/Collapsible.cjs.map +0 -1
  1179. package/dist/primitives/CollapsibleContent.cjs.map +0 -1
  1180. package/dist/primitives/CollapsibleTrigger.cjs.map +0 -1
  1181. package/dist/primitives/Command.cjs.map +0 -1
  1182. package/dist/primitives/CommandDialog.cjs.map +0 -1
  1183. package/dist/primitives/CommandEmpty.cjs.map +0 -1
  1184. package/dist/primitives/CommandGroup.cjs.map +0 -1
  1185. package/dist/primitives/CommandInput.cjs.map +0 -1
  1186. package/dist/primitives/CommandItem.cjs.map +0 -1
  1187. package/dist/primitives/CommandList.cjs.map +0 -1
  1188. package/dist/primitives/CommandSeparator.cjs.map +0 -1
  1189. package/dist/primitives/CommandShortcut.cjs.map +0 -1
  1190. package/dist/primitives/Dialog.cjs.map +0 -1
  1191. package/dist/primitives/DialogClose.cjs.map +0 -1
  1192. package/dist/primitives/DialogContent.cjs.map +0 -1
  1193. package/dist/primitives/DialogDescription.cjs.map +0 -1
  1194. package/dist/primitives/DialogFooter.cjs.map +0 -1
  1195. package/dist/primitives/DialogHeader.cjs.map +0 -1
  1196. package/dist/primitives/DialogOverlay.cjs.map +0 -1
  1197. package/dist/primitives/DialogPortal.cjs.map +0 -1
  1198. package/dist/primitives/DialogTitle.cjs.map +0 -1
  1199. package/dist/primitives/DialogTrigger.cjs.map +0 -1
  1200. package/dist/primitives/DropdownMenu.cjs.map +0 -1
  1201. package/dist/primitives/DropdownMenuCheckboxItem.cjs.map +0 -1
  1202. package/dist/primitives/DropdownMenuContent.cjs.map +0 -1
  1203. package/dist/primitives/DropdownMenuGroup.cjs.map +0 -1
  1204. package/dist/primitives/DropdownMenuItem.cjs.map +0 -1
  1205. package/dist/primitives/DropdownMenuLabel.cjs.map +0 -1
  1206. package/dist/primitives/DropdownMenuPortal.cjs.map +0 -1
  1207. package/dist/primitives/DropdownMenuRadioGroup.cjs.map +0 -1
  1208. package/dist/primitives/DropdownMenuRadioItem.cjs.map +0 -1
  1209. package/dist/primitives/DropdownMenuSeparator.cjs.map +0 -1
  1210. package/dist/primitives/DropdownMenuShortcut.cjs.map +0 -1
  1211. package/dist/primitives/DropdownMenuSub.cjs.map +0 -1
  1212. package/dist/primitives/DropdownMenuSubContent.cjs.map +0 -1
  1213. package/dist/primitives/DropdownMenuSubTrigger.cjs.map +0 -1
  1214. package/dist/primitives/DropdownMenuTrigger.cjs.map +0 -1
  1215. package/dist/primitives/Input.cjs.map +0 -1
  1216. package/dist/primitives/Label.cjs.map +0 -1
  1217. package/dist/primitives/Popover.cjs.map +0 -1
  1218. package/dist/primitives/PopoverAnchor.cjs.map +0 -1
  1219. package/dist/primitives/PopoverClose.cjs.map +0 -1
  1220. package/dist/primitives/PopoverContent.cjs.map +0 -1
  1221. package/dist/primitives/PopoverTrigger.cjs.map +0 -1
  1222. package/dist/primitives/Progress.cjs.map +0 -1
  1223. package/dist/primitives/ResizableHandle.cjs.map +0 -1
  1224. package/dist/primitives/ResizablePanel.cjs.map +0 -1
  1225. package/dist/primitives/ResizablePanelGroup.cjs.map +0 -1
  1226. package/dist/primitives/ScrollArea.cjs.map +0 -1
  1227. package/dist/primitives/ScrollBar.cjs.map +0 -1
  1228. package/dist/primitives/Select.cjs.map +0 -1
  1229. package/dist/primitives/SelectContent.cjs.map +0 -1
  1230. package/dist/primitives/SelectGroup.cjs.map +0 -1
  1231. package/dist/primitives/SelectItem.cjs.map +0 -1
  1232. package/dist/primitives/SelectLabel.cjs.map +0 -1
  1233. package/dist/primitives/SelectScrollDownButton.cjs.map +0 -1
  1234. package/dist/primitives/SelectScrollUpButton.cjs.map +0 -1
  1235. package/dist/primitives/SelectSeparator.cjs.map +0 -1
  1236. package/dist/primitives/SelectTrigger.cjs.map +0 -1
  1237. package/dist/primitives/SelectValue.cjs.map +0 -1
  1238. package/dist/primitives/Separator.cjs.map +0 -1
  1239. package/dist/primitives/Slider.cjs.map +0 -1
  1240. package/dist/primitives/Switch.cjs.map +0 -1
  1241. package/dist/primitives/Tabs.cjs.map +0 -1
  1242. package/dist/primitives/TabsContent.cjs.map +0 -1
  1243. package/dist/primitives/TabsList.cjs.map +0 -1
  1244. package/dist/primitives/TabsTrigger.cjs.map +0 -1
  1245. package/dist/primitives/Textarea.cjs.map +0 -1
  1246. package/dist/primitives/Toaster.cjs.map +0 -1
  1247. package/dist/primitives/Tooltip.cjs.map +0 -1
  1248. package/dist/primitives/TooltipContent.cjs.map +0 -1
  1249. package/dist/primitives/TooltipProvider.cjs.map +0 -1
  1250. package/dist/primitives/TooltipTrigger.cjs.map +0 -1
  1251. package/dist/primitives/badgeVariants.cjs.map +0 -1
  1252. package/dist/primitives/bases/data/index.cjs.map +0 -1
  1253. package/dist/primitives/buttonVariants.cjs.map +0 -1
  1254. package/dist/primitives/index.cjs.map +0 -1
  1255. package/dist/primitives/toast.cjs.map +0 -1
  1256. package/dist/product/index.cjs.map +0 -1
  1257. package/dist/product/social/api.cjs.map +0 -1
  1258. package/dist/product/social/index.cjs.map +0 -1
  1259. package/dist/telemetry.cjs.map +0 -1
  1260. package/dist/usage.cjs.map +0 -1
@@ -1,2491 +1,121 @@
1
- 'use client';
2
- 'use strict';
3
-
4
- var chunkARV3P4CE_cjs = require('../chunk-ARV3P4CE.cjs');
5
- var chunkONVERVFG_cjs = require('../chunk-ONVERVFG.cjs');
6
- var chunkMWBFAV3D_cjs = require('../chunk-MWBFAV3D.cjs');
7
- var chunkNQUA5YRQ_cjs = require('../chunk-NQUA5YRQ.cjs');
8
- var chunkDC52DQ27_cjs = require('../chunk-DC52DQ27.cjs');
9
- var chunkWHJR5S4L_cjs = require('../chunk-WHJR5S4L.cjs');
10
- var chunk7XDEUEWI_cjs = require('../chunk-7XDEUEWI.cjs');
11
- var react = require('react');
12
- var gui = require('@hanzo/gui');
13
- var jsxRuntime = require('react/jsx-runtime');
14
- var lucideIcons2 = require('@hanzogui/lucide-icons-2');
15
- var products = require('@hanzo/products');
16
- var react$1 = require('@hanzo/logo/react');
17
- var reactDom = require('react-dom');
18
- var data = require('@hanzo/data');
19
-
20
- var CHART_PALETTE = [
21
- "#7c5cff",
22
- "#23c562",
23
- "#ff9f45",
24
- "#3aa0ff",
25
- "#ff5d8f",
26
- "#16c0c8",
27
- "#c084fc",
28
- "#f4c245"
29
- ];
30
- var CHART_OTHER = "#64748b";
31
- var ACCENT = CHART_PALETTE[0];
32
- var GRID = "rgba(148,163,184,0.16)";
33
- var AXIS = "rgba(148,163,184,0.85)";
34
- var tone = (theme, key, fallback) => {
35
- const v = theme[key];
36
- const got = v?.get?.();
37
- return typeof got === "string" ? got : fallback;
1
+ 'use client';"use strict";
2
+ // @hanzo/ui/product — the product/app component layer on @hanzo/gui.
3
+ //
4
+ // Charts, metrics, page headers, status tags, rich empty states, combobox,
5
+ // slide-over, toasts, drag-reorder, labeled field rows, provider/product marks,
6
+ // theme toggle. Presentational + host-agnostic: data and effects are INJECTED as
7
+ // props nothing here imports an app's `~/lib`. Cross-platform (web + native +
8
+ // desktop) because it builds only on @hanzo/gui primitives. Clean-room.
9
+ //
10
+ // Single collision-free namespace: where a name exists in two files the canonical
11
+ // (Charts) keeps the name and the variant is aliased, so NOTHING is dropped.
12
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
+ desc = { enumerable: true, get: function() { return m[k]; } };
17
+ }
18
+ Object.defineProperty(o, k2, desc);
19
+ }) : (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ o[k2] = m[k];
22
+ }));
23
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
24
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
38
25
  };
39
- var rampOpacity = (i, n) => n <= 1 ? 0.9 : 0.95 - i / (n - 1) * 0.62;
40
- function useContainerWidth() {
41
- const ref = react.useRef(null);
42
- const [w, setW] = react.useState(0);
43
- react.useEffect(() => {
44
- const el = ref.current;
45
- if (!el) return;
46
- const measure = () => setW(el.clientWidth);
47
- measure();
48
- const ro = new ResizeObserver(measure);
49
- ro.observe(el);
50
- return () => ro.disconnect();
51
- }, []);
52
- return { ref, w };
53
- }
54
- function Sparkline({
55
- values,
56
- width = 120,
57
- height = 36,
58
- color
59
- }) {
60
- const theme = gui.useTheme();
61
- const clean = (values ?? []).filter((v) => Number.isFinite(v));
62
- if (clean.length < 2) return null;
63
- const stroke = color ?? tone(theme, "color11", "currentColor");
64
- const max = Math.max(...clean);
65
- const min = Math.min(...clean);
66
- const span = max - min || 1;
67
- const n = clean.length;
68
- const px = (i) => i / (n - 1) * (width - 2) + 1;
69
- const py = (v) => height - 2 - (v - min) / span * (height - 4);
70
- const line = clean.map((v, i) => `${i === 0 ? "M" : "L"}${px(i).toFixed(1)},${py(v).toFixed(1)}`).join(" ");
71
- const area = `${line} L${(width - 1).toFixed(1)},${height} L1,${height} Z`;
72
- return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width, height, "aria-hidden": true, style: { display: "block" }, children: [
73
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: area, fill: stroke, fillOpacity: 0.12 }),
74
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: line, fill: "none", stroke, strokeWidth: 1.5, strokeLinejoin: "round", strokeLinecap: "round" })
75
- ] });
76
- }
77
- function Tooltip({ x, height, label, value }) {
78
- const left = Math.max(0, x - 60);
79
- return /* @__PURE__ */ jsxRuntime.jsx(
80
- "div",
81
- {
82
- style: {
83
- position: "absolute",
84
- left,
85
- top: 0,
86
- height,
87
- pointerEvents: "none",
88
- display: "flex",
89
- alignItems: "flex-start"
90
- },
91
- children: /* @__PURE__ */ jsxRuntime.jsxs(
92
- "div",
93
- {
94
- style: {
95
- background: "rgba(15,17,21,0.94)",
96
- border: "1px solid rgba(148,163,184,0.25)",
97
- borderRadius: 8,
98
- padding: "6px 9px",
99
- fontSize: 11,
100
- lineHeight: 1.35,
101
- color: "#e2e8f0",
102
- whiteSpace: "nowrap",
103
- boxShadow: "0 4px 16px rgba(0,0,0,0.4)"
104
- },
105
- children: [
106
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { color: AXIS }, children: label }),
107
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { fontWeight: 700 }, children: value })
108
- ]
109
- }
110
- )
111
- }
112
- );
113
- }
114
- function nearestIndex(clientX, rect, padL, innerW, n) {
115
- if (n <= 1) return 0;
116
- const mx = clientX - rect.left - padL;
117
- const i = Math.round(mx / (innerW || 1) * (n - 1));
118
- return Math.max(0, Math.min(n - 1, i));
119
- }
120
- function axisTicks(data) {
121
- const n = data.length;
122
- if (n === 0) return [];
123
- if (n === 1) return [{ i: 0, label: data[0].label, anchor: "middle" }];
124
- const mid = Math.floor((n - 1) / 2);
125
- const out = [
126
- { i: 0, label: data[0].label, anchor: "start" },
127
- { i: n - 1, label: data[n - 1].label, anchor: "end" }
128
- ];
129
- if (n >= 5) out.splice(1, 0, { i: mid, label: data[mid].label, anchor: "middle" });
130
- return out;
131
- }
132
- function LineChart({
133
- data,
134
- height = 210,
135
- color = ACCENT,
136
- formatValue = (v) => String(v)
137
- }) {
138
- const { ref, w } = useContainerWidth();
139
- const [hover, setHover] = react.useState(null);
140
- const padL = 10;
141
- const padR = 10;
142
- const padT = 12;
143
- const padB = 24;
144
- const n = data.length;
145
- const innerW = Math.max(1, w - padL - padR);
146
- const innerH = Math.max(1, height - padT - padB);
147
- const max = Math.max(...data.map((d) => d.value), 1);
148
- const x = (i) => padL + (n <= 1 ? innerW / 2 : i / (n - 1) * innerW);
149
- const y = (v) => padT + innerH - v / max * innerH;
150
- const line = data.map((d, i) => `${i === 0 ? "M" : "L"}${x(i).toFixed(1)},${y(d.value).toFixed(1)}`).join(" ");
151
- const area = n >= 2 ? `${line} L${x(n - 1).toFixed(1)},${(padT + innerH).toFixed(1)} L${x(0).toFixed(1)},${(padT + innerH).toFixed(1)} Z` : "";
152
- const ticks = axisTicks(data);
153
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, style: { position: "relative", width: "100%" }, children: [
154
- w > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
155
- "svg",
156
- {
157
- width: w,
158
- height,
159
- style: { display: "block" },
160
- onMouseMove: (e) => setHover(nearestIndex(e.clientX, e.currentTarget.getBoundingClientRect(), padL, innerW, n)),
161
- onMouseLeave: () => setHover(null),
162
- children: [
163
- [0, 0.5, 1].map((g) => /* @__PURE__ */ jsxRuntime.jsx("line", { x1: padL, x2: w - padR, y1: padT + innerH * g, y2: padT + innerH * g, stroke: GRID, strokeWidth: 1 }, g)),
164
- area ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: area, fill: color, fillOpacity: 0.1 }) : null,
165
- n >= 2 ? /* @__PURE__ */ jsxRuntime.jsx("path", { d: line, fill: "none", stroke: color, strokeWidth: 2, strokeLinejoin: "round", strokeLinecap: "round" }) : null,
166
- hover != null && data[hover] ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
167
- /* @__PURE__ */ jsxRuntime.jsx("line", { x1: x(hover), x2: x(hover), y1: padT, y2: padT + innerH, stroke: AXIS, strokeWidth: 1, strokeDasharray: "3 3" }),
168
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: x(hover), cy: y(data[hover].value), r: 4, fill: color, stroke: "#0f1115", strokeWidth: 2 })
169
- ] }) : null,
170
- ticks.map((t) => /* @__PURE__ */ jsxRuntime.jsx("text", { x: x(t.i), y: height - 7, fontSize: 10, fill: AXIS, textAnchor: t.anchor, children: t.label }, t.i))
171
- ]
172
- }
173
- ) : null,
174
- hover != null && data[hover] ? /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { x: x(hover), height, label: data[hover].label, value: formatValue(data[hover].value) }) : null
175
- ] });
176
- }
177
- function BarChart({
178
- data,
179
- height = 210,
180
- color = ACCENT,
181
- formatValue = (v) => String(v)
182
- }) {
183
- const { ref, w } = useContainerWidth();
184
- const [hover, setHover] = react.useState(null);
185
- const padL = 10;
186
- const padR = 10;
187
- const padT = 12;
188
- const padB = 24;
189
- const n = data.length;
190
- const innerW = Math.max(1, w - padL - padR);
191
- const innerH = Math.max(1, height - padT - padB);
192
- const max = Math.max(...data.map((d) => d.value), 1);
193
- const slot = innerW / Math.max(1, n);
194
- const barW = Math.max(1, Math.min(slot * 0.62, 36));
195
- const cx = (i) => padL + slot * i + slot / 2;
196
- const ticks = axisTicks(data);
197
- return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref, style: { position: "relative", width: "100%" }, children: [
198
- w > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
199
- "svg",
200
- {
201
- width: w,
202
- height,
203
- style: { display: "block" },
204
- onMouseMove: (e) => {
205
- const rect = e.currentTarget.getBoundingClientRect();
206
- const i = Math.floor((e.clientX - rect.left - padL) / (slot || 1));
207
- setHover(Math.max(0, Math.min(n - 1, i)));
208
- },
209
- onMouseLeave: () => setHover(null),
210
- children: [
211
- [0, 0.5, 1].map((g) => /* @__PURE__ */ jsxRuntime.jsx("line", { x1: padL, x2: w - padR, y1: padT + innerH * g, y2: padT + innerH * g, stroke: GRID, strokeWidth: 1 }, g)),
212
- data.map((d, i) => {
213
- const h = d.value / max * innerH;
214
- return /* @__PURE__ */ jsxRuntime.jsx(
215
- "rect",
216
- {
217
- x: cx(i) - barW / 2,
218
- y: padT + innerH - h,
219
- width: barW,
220
- height: Math.max(0, h),
221
- rx: Math.min(3, barW / 2),
222
- fill: color,
223
- fillOpacity: hover === i ? 1 : 0.78
224
- },
225
- i
226
- );
227
- }),
228
- ticks.map((t) => /* @__PURE__ */ jsxRuntime.jsx("text", { x: cx(t.i), y: height - 7, fontSize: 10, fill: AXIS, textAnchor: "middle", children: t.label }, t.i))
229
- ]
230
- }
231
- ) : null,
232
- hover != null && data[hover] ? /* @__PURE__ */ jsxRuntime.jsx(Tooltip, { x: cx(hover), height, label: data[hover].label, value: formatValue(data[hover].value) }) : null
233
- ] });
234
- }
235
- function Donut({
236
- slices,
237
- size = 160,
238
- thickness = 22,
239
- center,
240
- legend = false
241
- }) {
242
- const theme = gui.useTheme();
243
- const fg = tone(theme, "color12", "currentColor");
244
- const positive = slices.filter((s) => s.value > 0);
245
- const total = positive.reduce((sum, s) => sum + s.value, 0);
246
- const r = size / 2;
247
- const rInner = r - thickness;
248
- const mid = (r + rInner) / 2;
249
- if (total <= 0) {
250
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", justify: "center", height: size, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$6", color: "$color10", children: "\u2014" }) });
251
- }
252
- const ring = /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { position: "relative", width: size, height: size }, children: [
253
- /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, style: { display: "block" }, children: positive.length === 1 ? /* @__PURE__ */ jsxRuntime.jsx(
254
- "circle",
255
- {
256
- cx: r,
257
- cy: r,
258
- r: mid,
259
- fill: "none",
260
- stroke: positive[0].color ?? fg,
261
- strokeOpacity: positive[0].color ? 1 : 0.9,
262
- strokeWidth: thickness
263
- }
264
- ) : renderArcs(positive, total, r, rInner, fg) }),
265
- center ? /* @__PURE__ */ jsxRuntime.jsx(
266
- "div",
267
- {
268
- style: {
269
- position: "absolute",
270
- inset: 0,
271
- display: "flex",
272
- flexDirection: "column",
273
- alignItems: "center",
274
- justifyContent: "center",
275
- textAlign: "center",
276
- pointerEvents: "none"
277
- },
278
- children: center
279
- }
280
- ) : null
281
- ] });
282
- if (!legend) return ring;
283
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$4", items: "center", flexWrap: "wrap", children: [
284
- ring,
285
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$1.5", flex: 1, minW: 150, children: positive.map((s, i) => /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", items: "center", children: [
286
- /* @__PURE__ */ jsxRuntime.jsx(
287
- "div",
288
- {
289
- style: {
290
- width: 10,
291
- height: 10,
292
- borderRadius: 2,
293
- backgroundColor: s.color ?? AXIS,
294
- opacity: s.color ? 1 : rampOpacity(i, positive.length)
295
- }
296
- }
297
- ),
298
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", flex: 1, numberOfLines: 1, children: s.label }),
299
- /* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$2", color: "$color12", fontWeight: "600", children: [
300
- Math.round(s.value / total * 100),
301
- "%"
302
- ] })
303
- ] }, s.label)) })
304
- ] });
305
- }
306
- function renderArcs(slices, total, rOuter, rInner, fg) {
307
- let a0 = -Math.PI / 2;
308
- const paths = [];
309
- slices.forEach((s, idx) => {
310
- const frac = Math.max(0, s.value) / total;
311
- if (frac <= 0) return;
312
- const a1 = a0 + frac * Math.PI * 2;
313
- paths.push(
314
- /* @__PURE__ */ jsxRuntime.jsx(
315
- "path",
316
- {
317
- d: annularArc(rOuter, rOuter, rOuter, rInner, a0, Math.min(a1, a0 + Math.PI * 1.9999)),
318
- fill: s.color ?? fg,
319
- fillOpacity: s.color ? 1 : rampOpacity(idx, slices.length)
320
- },
321
- s.label || idx
322
- )
323
- );
324
- a0 = a1;
325
- });
326
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: paths });
327
- }
328
- function polar(cx, cy, rad, a) {
329
- return [cx + rad * Math.cos(a), cy + rad * Math.sin(a)];
330
- }
331
- function annularArc(cx, cy, rOuter, rInner, a0, a1) {
332
- const large = a1 - a0 > Math.PI ? 1 : 0;
333
- const [x0, y0] = polar(cx, cy, rOuter, a0);
334
- const [x1, y1] = polar(cx, cy, rOuter, a1);
335
- const [x2, y2] = polar(cx, cy, rInner, a1);
336
- const [x3, y3] = polar(cx, cy, rInner, a0);
337
- return `M${x0},${y0} A${rOuter},${rOuter} 0 ${large} 1 ${x1},${y1} L${x2},${y2} A${rInner},${rInner} 0 ${large} 0 ${x3},${y3} Z`;
338
- }
339
- function BarRows({ bars }) {
340
- const max = Math.max(0, ...bars.map((b) => b.value));
341
- if (max <= 0) {
342
- return /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color10", children: "\u2014" });
343
- }
344
- return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$2.5", children: bars.map((b) => /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$3", items: "center", children: [
345
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { width: 64, fontSize: "$2", color: "$color11", text: "right", children: b.label }),
346
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { flex: 1, height: 10, bg: "$color3", rounded: "$2", overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { height: 10, width: `${Math.max(2, b.value / max * 100)}%`, bg: "$color9", rounded: "$2" }) }),
347
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { width: 56, fontSize: "$2", color: "$color12", fontWeight: "600", children: b.value.toLocaleString() })
348
- ] }, b.label)) });
349
- }
350
- var SERIES = ["#6ea8fe", "#7ee787", "#f0a868", "#c792ea", "#56d4c4", "#e879a6", "#d6c15a", "#8b9bb4"];
351
- var colorForIndex = (i) => SERIES[i % SERIES.length];
352
- var TRACK = "rgba(128,128,128,0.18)";
353
- function utilColor(pct) {
354
- if (pct >= 90) return "#e5534b";
355
- if (pct >= 70) return "#f0a868";
356
- return "#7ee787";
357
- }
358
- function Sparkline2({
359
- points,
360
- width = 104,
361
- height = 30,
362
- color = SERIES[0]
363
- }) {
364
- if (!points || points.length < 2) return null;
365
- const min = Math.min(...points);
366
- const max = Math.max(...points);
367
- const span = max - min || 1;
368
- const stepX = width / (points.length - 1);
369
- const y = (v) => height - 2 - (v - min) / span * (height - 4);
370
- const d = points.map((p, i) => `${i === 0 ? "M" : "L"}${(i * stepX).toFixed(1)},${y(p).toFixed(1)}`).join(" ");
371
- return /* @__PURE__ */ jsxRuntime.jsx("svg", { width, height, viewBox: `0 0 ${width} ${height}`, role: "img", "aria-label": "trend", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d, fill: "none", stroke: color, strokeWidth: 1.5, strokeLinejoin: "round", strokeLinecap: "round" }) });
372
- }
373
- function MiniBars({
374
- bars,
375
- width = 320,
376
- height = 96,
377
- color = SERIES[0]
378
- }) {
379
- if (!bars.length) return null;
380
- const max = Math.max(...bars.map((b) => b.value), 1);
381
- const gap = 4;
382
- const bw = (width - gap * (bars.length - 1)) / bars.length;
383
- return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "100%", height, viewBox: `0 0 ${width} ${height}`, preserveAspectRatio: "none", role: "img", "aria-label": "bars", children: bars.map((b, i) => {
384
- const h = Math.max(1, b.value / max * (height - 2));
385
- return /* @__PURE__ */ jsxRuntime.jsx("rect", { x: i * (bw + gap), y: height - h, width: bw, height: h, rx: 2, fill: color, opacity: 0.85, children: /* @__PURE__ */ jsxRuntime.jsx("title", { children: `${b.label}: ${b.value}` }) }, b.label + i);
386
- }) });
387
- }
388
- function UtilBar({ value, width = 120, color }) {
389
- const v = Math.max(0, Math.min(100, value));
390
- return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width, height: 8, viewBox: `0 0 ${width} 8`, role: "img", "aria-label": `${Math.round(v)}%`, children: [
391
- /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: 1, width, height: 6, rx: 3, fill: TRACK }),
392
- /* @__PURE__ */ jsxRuntime.jsx("rect", { x: 0, y: 1, width: v / 100 * width, height: 6, rx: 3, fill: color ?? utilColor(v) })
393
- ] });
394
- }
395
- function LegendDot({ color, label, value }) {
396
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", justify: "space-between", children: [
397
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", children: [
398
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { width: 10, height: 10, rounded: "$1", bg: color }),
399
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: label })
400
- ] }),
401
- value != null ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", fontWeight: "500", className: "hz-mono", children: value }) : null
402
- ] });
403
- }
404
- function MetricCard({
405
- icon,
406
- label,
407
- value,
408
- caption,
409
- spark,
410
- sparkColor,
411
- delta
412
- }) {
413
- const up = delta ? delta.pct >= 0 : false;
414
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.Card, { p: "$3.5", gap: "$2", borderWidth: 1, borderColor: "$borderColor", flex: 1, minW: 172, children: [
415
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", justify: "space-between", children: [
416
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", children: [
417
- icon,
418
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", fontWeight: "500", children: label })
419
- ] }),
420
- delta ? /* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$1", color: up ? "#7ee787" : "#e5534b", children: [
421
- up ? "\u25B2" : "\u25BC",
422
- " ",
423
- Math.abs(delta.pct),
424
- "%"
425
- ] }) : null
426
- ] }),
427
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "flex-end", justify: "space-between", gap: "$2", children: [
428
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$8", fontWeight: "500", color: "$color12", numberOfLines: 1, className: "hz-mono", children: value }),
429
- spark && spark.length >= 2 ? /* @__PURE__ */ jsxRuntime.jsx(Sparkline2, { points: spark, color: sparkColor ?? SERIES[0] }) : null
430
- ] }),
431
- caption ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color10", numberOfLines: 1, children: caption }) : null
432
- ] });
433
- }
434
- function HintButton({
435
- icon,
436
- iconAfter,
437
- children,
438
- onPress,
439
- disabled,
440
- hint,
441
- theme
442
- }) {
443
- const btn = /* @__PURE__ */ jsxRuntime.jsx(
444
- gui.Button,
445
- {
446
- size: "$2",
447
- theme,
448
- icon,
449
- iconAfter,
450
- disabled,
451
- onPress: disabled ? void 0 : onPress,
452
- children
453
- }
454
- );
455
- if (!hint) return btn;
456
- return /* @__PURE__ */ jsxRuntime.jsx("span", { title: hint, style: { display: "inline-flex" }, children: btn });
457
- }
458
- function Panel({
459
- title,
460
- right,
461
- children,
462
- minW = 280,
463
- grow = true
464
- }) {
465
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.Card, { p: "$4", gap: "$3", borderWidth: 1, borderColor: "$borderColor", flex: grow ? 1 : void 0, minW, width: grow ? void 0 : "100%", children: [
466
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", justify: "space-between", gap: "$2", children: [
467
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$4", fontWeight: "500", color: "$color12", children: title }),
468
- right
469
- ] }),
470
- children
471
- ] });
472
- }
473
- function Donut2({
474
- segments,
475
- size = 160,
476
- thickness = 18,
477
- centerValue,
478
- centerLabel,
479
- trackColor = "#2a2d2e",
480
- valueColor = "#ecedee",
481
- labelColor = "#9ba1a6"
482
- }) {
483
- const total = segments.reduce((n, s) => n + Math.max(0, s.value), 0);
484
- if (total <= 0) return null;
485
- const r = (size - thickness) / 2;
486
- const cx = size / 2;
487
- const cy = size / 2;
488
- const circ = 2 * Math.PI * r;
489
- let offset = 0;
490
- const arcs = segments.filter((s) => s.value > 0).map((s) => {
491
- const frac = s.value / total;
492
- const dash = frac * circ;
493
- const node = /* @__PURE__ */ jsxRuntime.jsx(
494
- "circle",
495
- {
496
- cx,
497
- cy,
498
- r,
499
- fill: "none",
500
- stroke: s.color,
501
- strokeWidth: thickness,
502
- strokeDasharray: `${dash} ${circ - dash}`,
503
- strokeDashoffset: -offset
504
- },
505
- s.label
506
- );
507
- offset += dash;
508
- return node;
509
- });
510
- return /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: size, height: size, viewBox: `0 0 ${size} ${size}`, role: "img", "aria-label": "Donut chart", children: [
511
- /* @__PURE__ */ jsxRuntime.jsx("circle", { cx, cy, r, fill: "none", stroke: trackColor, strokeWidth: thickness }),
512
- /* @__PURE__ */ jsxRuntime.jsx("g", { transform: `rotate(-90 ${cx} ${cy})`, children: arcs }),
513
- centerValue ? /* @__PURE__ */ jsxRuntime.jsx("text", { x: cx, y: cy - 2, textAnchor: "middle", fontSize: size * 0.2, fontWeight: "800", fill: valueColor, children: centerValue }) : null,
514
- centerLabel ? /* @__PURE__ */ jsxRuntime.jsx("text", { x: cx, y: cy + size * 0.13, textAnchor: "middle", fontSize: size * 0.08, fill: labelColor, children: centerLabel }) : null
515
- ] });
516
- }
517
-
518
- // src/product/combobox/filter.ts
519
- var hay = (o) => `${o.value} ${o.label ?? ""} ${o.hint ?? ""}`.toLowerCase();
520
- function filterOptions(options, query) {
521
- const q = query.trim().toLowerCase();
522
- if (!q) return options;
523
- return options.filter((o) => hay(o).includes(q));
524
- }
525
- function isKnownOption(options, value) {
526
- return options.some((o) => o.value === value);
527
- }
528
- var ITEM_MIN_HEIGHT = 30;
529
- var ITEM_RADIUS = 7;
530
- var ITEM_PX = 8;
531
- var ITEM_GAP = 8;
532
- var ICON_SLOT = 16;
533
- var PANEL_RADIUS = 12;
534
- var PANEL_PAD = 4;
535
- var PANEL_GAP = 2;
536
- var SEP_MARGIN = 4;
537
- var FONT_LABEL = 13;
538
- var FONT_MUTED = 11;
539
- var FONT_SHORTCUT = 12;
540
- var ACCENT2 = "var(--hanzo-accent, #8b5cf6)";
541
- var ACCENT_SOFT = "var(--hanzo-accent-soft, rgba(139,92,246,0.16))";
542
- var DANGER = "var(--hanzo-danger, #ef4444)";
543
- function MenuPanel({
544
- children,
545
- minWidth = 200,
546
- maxHeight = 360,
547
- onKeyDown,
548
- panelRef,
549
- ...rest
550
- }) {
551
- return /* @__PURE__ */ jsxRuntime.jsx(
552
- gui.YStack,
553
- {
554
- ref: panelRef,
555
- role: "menu",
556
- bg: "$color2",
557
- borderColor: "$borderColor",
558
- borderWidth: 1,
559
- rounded: PANEL_RADIUS,
560
- p: PANEL_PAD,
561
- gap: PANEL_GAP,
562
- minW: minWidth,
563
- maxH: maxHeight,
564
- overflow: "scroll",
565
- shadowColor: "rgba(0,0,0,0.45)",
566
- shadowRadius: 20,
567
- shadowOffset: { width: 0, height: 10 },
568
- onKeyDown,
569
- ...rest,
570
- children
571
- }
572
- );
573
- }
574
- function MenuItemView({
575
- icon,
576
- label,
577
- description,
578
- shortcut,
579
- selected = false,
580
- disabled = false,
581
- destructive = false,
582
- hasSubmenu = false,
583
- onSelect
584
- }) {
585
- const track = chunk7XDEUEWI_cjs.useEmit();
586
- const choose = () => {
587
- track({ component: "MenuItem", action: "select", id: chunk7XDEUEWI_cjs.labelOf(label), value: selected });
588
- onSelect();
589
- };
590
- const press = () => {
591
- if (!disabled) choose();
592
- };
593
- const onKeyDown = (e) => {
594
- if (disabled) return;
595
- if (e.key === "Enter" || e.key === " ") {
596
- e.preventDefault();
597
- choose();
598
- }
599
- };
600
- const labelColor = destructive ? DANGER : "$color12";
601
- return /* @__PURE__ */ jsxRuntime.jsxs(
602
- gui.XStack,
603
- {
604
- role: "menuitem",
605
- tabIndex: disabled ? -1 : 0,
606
- "aria-disabled": disabled || void 0,
607
- items: "center",
608
- gap: ITEM_GAP,
609
- px: ITEM_PX,
610
- minH: ITEM_MIN_HEIGHT,
611
- rounded: ITEM_RADIUS,
612
- cursor: disabled ? "default" : "pointer",
613
- opacity: disabled ? 0.4 : 1,
614
- select: "none",
615
- style: { outline: "none" },
616
- hoverStyle: disabled ? {} : { bg: ACCENT_SOFT },
617
- pressStyle: disabled ? {} : { bg: ACCENT_SOFT },
618
- focusStyle: disabled ? {} : { bg: ACCENT_SOFT },
619
- onPress: press,
620
- onKeyDown,
621
- children: [
622
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: ICON_SLOT, height: ICON_SLOT, items: "center", justify: "center", shrink: 0, children: icon ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", justify: "center", opacity: destructive ? 1 : 0.9, style: destructive ? { color: DANGER } : void 0, children: icon }) : null }),
623
- /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { flex: 1, minW: 0, children: [
624
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: FONT_LABEL, lineHeight: 18, color: labelColor, numberOfLines: 1, children: label }),
625
- description ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: FONT_MUTED, lineHeight: 14, color: "$color11", numberOfLines: 1, children: description }) : null
626
- ] }),
627
- shortcut ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: FONT_SHORTCUT, color: "$color11", shrink: 0, children: shortcut }) : null,
628
- selected ? /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Check, { size: 14, color: ACCENT2 }) : null,
629
- hasSubmenu ? /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ChevronRight, { size: 14, color: "var(--hanzo-muted, currentColor)", opacity: 0.6 }) : null
630
- ]
631
- }
632
- );
633
- }
634
- function MenuSeparatorView() {
635
- return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { height: 1, bg: "$borderColor", my: SEP_MARGIN, mx: SEP_MARGIN, role: "separator" });
636
- }
637
- function MenuLabelView({ children }) {
638
- return /* @__PURE__ */ jsxRuntime.jsx(
639
- gui.Text,
640
- {
641
- fontSize: FONT_MUTED,
642
- color: "$color11",
643
- px: ITEM_PX,
644
- py: SEP_MARGIN,
645
- textTransform: "uppercase",
646
- letterSpacing: 0.4,
647
- select: "none",
648
- children
649
- }
650
- );
651
- }
652
- function renderMenuItems(items, close) {
653
- return items.map((it, i) => {
654
- if (it.type === "separator") return /* @__PURE__ */ jsxRuntime.jsx(MenuSeparatorView, {}, it.key ?? `sep-${i}`);
655
- if (it.type === "label") return /* @__PURE__ */ jsxRuntime.jsx(MenuLabelView, { children: it.label }, it.key ?? `lbl-${i}`);
656
- const { key, onSelect, closeOnSelect = true, ...rest } = it;
657
- return /* @__PURE__ */ jsxRuntime.jsx(
658
- MenuItemView,
659
- {
660
- ...rest,
661
- onSelect: () => {
662
- onSelect();
663
- if (closeOnSelect) close?.();
664
- }
665
- },
666
- key
667
- );
668
- });
669
- }
670
-
671
- // src/product/menu/roving.ts
672
- function menuKeyDown(e, onClose) {
673
- if (e.key === "Escape") {
674
- onClose?.();
675
- return;
676
- }
677
- if (e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Home" && e.key !== "End") return;
678
- if (typeof document === "undefined") return;
679
- const panel = e.currentTarget;
680
- const items = Array.from(
681
- panel.querySelectorAll('[role="menuitem"]:not([aria-disabled="true"])')
682
- );
683
- if (items.length === 0) return;
684
- e.preventDefault();
685
- const active = document.activeElement;
686
- const current = active ? items.indexOf(active) : -1;
687
- let next;
688
- if (e.key === "Home") next = 0;
689
- else if (e.key === "End") next = items.length - 1;
690
- else if (e.key === "ArrowDown") next = current < 0 ? 0 : (current + 1) % items.length;
691
- else next = current <= 0 ? items.length - 1 : current - 1;
692
- items[next]?.focus();
693
- }
694
- var EDGE = 8;
695
- function FloatingMenu({
696
- open,
697
- onClose,
698
- anchorRect,
699
- anchorEl,
700
- gap = 4,
701
- minWidth = 200,
702
- maxHeight,
703
- autoFocus = true,
704
- children
705
- }) {
706
- const themeName = chunkDC52DQ27_cjs.useThemeName();
707
- const panelRef = react.useRef(null);
708
- const [pos, setPos] = react.useState(null);
709
- const setPanel = react.useCallback((n) => {
710
- panelRef.current = n;
711
- }, []);
712
- const place = react.useCallback(() => {
713
- if (typeof window === "undefined") return;
714
- const a = anchorRect();
715
- if (!a) return;
716
- const node = panelRef.current;
717
- const w = node?.offsetWidth || minWidth;
718
- const h = node?.offsetHeight || 0;
719
- let left = a.left;
720
- let top = a.bottom + gap;
721
- if (left + w > window.innerWidth - EDGE) left = Math.max(EDGE, window.innerWidth - w - EDGE);
722
- if (h && top + h > window.innerHeight - EDGE) {
723
- const above = a.top - gap - h;
724
- top = above >= EDGE ? above : Math.max(EDGE, window.innerHeight - h - EDGE);
725
- }
726
- setPos({ left, top });
727
- }, [anchorRect, gap, minWidth]);
728
- react.useLayoutEffect(() => {
729
- if (!open) {
730
- setPos(null);
731
- return;
732
- }
733
- place();
734
- if (autoFocus) panelRef.current?.focus?.();
735
- }, [open, place, autoFocus]);
736
- react.useEffect(() => {
737
- if (!open || typeof document === "undefined") return;
738
- const onPointerDown = (e) => {
739
- const t = e.target;
740
- if (panelRef.current?.contains(t)) return;
741
- const anchor = anchorEl?.();
742
- if (anchor && anchor.contains(t)) return;
743
- onClose();
744
- };
745
- const onKey = (e) => {
746
- if (e.key === "Escape") onClose();
747
- };
748
- document.addEventListener("pointerdown", onPointerDown, true);
749
- document.addEventListener("keydown", onKey, true);
750
- window.addEventListener("scroll", onClose, true);
751
- window.addEventListener("resize", onClose);
752
- window.addEventListener("blur", onClose);
753
- return () => {
754
- document.removeEventListener("pointerdown", onPointerDown, true);
755
- document.removeEventListener("keydown", onKey, true);
756
- window.removeEventListener("scroll", onClose, true);
757
- window.removeEventListener("resize", onClose);
758
- window.removeEventListener("blur", onClose);
759
- };
760
- }, [open, onClose, anchorEl]);
761
- if (!open) return null;
762
- return /* @__PURE__ */ jsxRuntime.jsx(gui.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkDC52DQ27_cjs.PortalTheme, { name: themeName, children: /* @__PURE__ */ jsxRuntime.jsx(
763
- MenuPanel,
764
- {
765
- panelRef: setPanel,
766
- minWidth,
767
- maxHeight,
768
- tabIndex: -1,
769
- onKeyDown: (e) => menuKeyDown(e, onClose),
770
- style: {
771
- position: "fixed",
772
- left: pos?.left ?? 0,
773
- top: pos?.top ?? 0,
774
- zIndex: 1e5,
775
- visibility: pos ? "visible" : "hidden"
776
- },
777
- children
778
- }
779
- ) }) });
780
- }
781
- function ComboBox({
782
- value,
783
- onChange,
784
- options,
785
- loading = false,
786
- error = null,
787
- onRetry,
788
- placeholder,
789
- disabled,
790
- emptyText = "No matches \u2014 press to use what you typed.",
791
- minWidth = 240
792
- }) {
793
- const [open, setOpen] = react.useState(false);
794
- const rowRef = react.useRef(null);
795
- const anchorRect = react.useCallback(() => rowRef.current?.getBoundingClientRect() ?? null, []);
796
- const anchorEl = react.useCallback(() => rowRef.current, []);
797
- const filtered = react.useMemo(() => filterOptions(options, value), [options, value]);
798
- const track = chunk7XDEUEWI_cjs.useEmit();
799
- const pick = (v) => {
800
- track({ component: "ComboBox", action: "select", id: v, value: filtered.length });
801
- onChange(v);
802
- setOpen(false);
803
- };
804
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
805
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { ref: rowRef, items: "center", gap: "$2", minW: minWidth, children: [
806
- /* @__PURE__ */ jsxRuntime.jsx(
807
- gui.Input,
808
- {
809
- flex: 1,
810
- value,
811
- onChangeText: (v) => {
812
- onChange(v);
813
- if (!open) setOpen(true);
814
- },
815
- onFocus: () => setOpen(true),
816
- disabled,
817
- placeholder,
818
- autoCapitalize: "none"
819
- }
820
- ),
821
- /* @__PURE__ */ jsxRuntime.jsx(
822
- gui.Button,
823
- {
824
- size: "$2",
825
- chromeless: true,
826
- disabled,
827
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ChevronDown, { size: 16, opacity: 0.7 }),
828
- onPress: () => {
829
- track({ component: "ComboBox", action: open ? "close" : "open" });
830
- setOpen((o) => !o);
831
- },
832
- "aria-label": "Show options"
833
- }
834
- )
835
- ] }),
836
- /* @__PURE__ */ jsxRuntime.jsx(
837
- FloatingMenu,
838
- {
839
- open,
840
- onClose: () => setOpen(false),
841
- anchorRect,
842
- anchorEl,
843
- autoFocus: false,
844
- minWidth,
845
- maxHeight: 300,
846
- children: loading ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$2", py: "$2", children: [
847
- /* @__PURE__ */ jsxRuntime.jsx(gui.Spinner, { size: "small", color: "$color11" }),
848
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", children: "Loading options\u2026" })
849
- ] }) : error ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$2", py: "$2", children: [
850
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", flex: 1, numberOfLines: 2, children: error }),
851
- onRetry ? /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$1", chromeless: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.RefreshCw, { size: 12 }), onPress: onRetry, "aria-label": "Retry" }) : null
852
- ] }) : filtered.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", px: "$2", py: "$2", children: emptyText }) : filtered.map((o) => /* @__PURE__ */ jsxRuntime.jsx(
853
- MenuItemView,
854
- {
855
- label: o.label ?? o.value,
856
- description: o.hint,
857
- selected: o.value === value,
858
- onSelect: () => pick(o.value)
859
- },
860
- o.value
861
- ))
862
- }
863
- )
864
- ] });
865
- }
866
- var ORDER = ["ai", "console", "app", "chat", "bot", "team", "billing"];
867
- var SURFACES = ORDER.map((id) => {
868
- const s = products.surfaceById(id);
869
- return { id, label: s.label, href: s.href, hint: s.domain };
870
- });
871
- function otherSurfaces(current) {
872
- return current ? SURFACES.filter((s) => s.id !== current) : SURFACES;
873
- }
874
- function HanzoMark({ size = 22, color = "currentColor" }) {
875
- return /* @__PURE__ */ jsxRuntime.jsxs(
876
- "svg",
877
- {
878
- width: size,
879
- height: size,
880
- viewBox: "0 0 67 67",
881
- role: "img",
882
- "aria-label": "Hanzo",
883
- fill: color,
884
- style: { display: "block", flexShrink: 0 },
885
- children: [
886
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M22.21 67V44.6369H0V67H22.21Z" }),
887
- /* @__PURE__ */ jsxRuntime.jsx("path", { opacity: 0.55, d: "M0 44.6369L22.21 46.8285V44.6369H0Z" }),
888
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z" }),
889
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M22.21 0H0V22.3184H22.21V0Z" }),
890
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M66.7198 0H44.5098V22.3184H66.7198V0Z" }),
891
- /* @__PURE__ */ jsxRuntime.jsx("path", { opacity: 0.55, d: "M66.6753 22.3185L44.5098 20.0822V22.3185H66.6753Z" }),
892
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M66.7198 67V44.6369H44.5098V67H66.7198Z" })
893
- ]
894
- }
895
- );
896
- }
897
- function BrandMark({
898
- size = 20,
899
- wordmark = "Hanzo",
900
- animated = true
901
- }) {
902
- if (!animated) return /* @__PURE__ */ jsxRuntime.jsx(HanzoMark, { size });
903
- return /* @__PURE__ */ jsxRuntime.jsx(react$1.HanzoLogo, { animated: true, size, wordmark });
904
- }
905
- var SURFACE_ICON = {
906
- ai: lucideIcons2.Sparkles,
907
- console: lucideIcons2.LayoutGrid,
908
- app: lucideIcons2.AppWindow,
909
- chat: lucideIcons2.MessageCircle,
910
- bot: lucideIcons2.Bot,
911
- team: lucideIcons2.Users,
912
- billing: lucideIcons2.CreditCard
913
- };
914
- var openHref = (href) => {
915
- if (typeof window !== "undefined") window.open(href, "_blank", "noopener");
916
- };
917
- function MenuRow({ icon, label, onPress }) {
918
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { onPress, cursor: "pointer", items: "center", gap: "$2.5", px: "$2", py: "$2", rounded: "$3", hoverStyle: { bg: "$color5" }, children: [
919
- icon,
920
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", children: label })
921
- ] });
922
- }
923
- function AppHeader({
924
- brand,
925
- wordmark = "Hanzo",
926
- onBrand,
927
- org,
928
- children,
929
- current,
930
- surfaces,
931
- open,
932
- user,
933
- menu,
934
- theme,
935
- onProfile,
936
- onTeam,
937
- onBilling,
938
- onSignOut
939
- }) {
940
- const [appsOpen, setAppsOpen] = react.useState(false);
941
- const [menuOpen, setMenuOpen] = react.useState(false);
942
- const items = surfaces ?? otherSurfaces(current);
943
- const launch = (s) => {
944
- setAppsOpen(false);
945
- if (open) open(s);
946
- else openHref(s.href);
947
- };
948
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$3", height: 52, borderBottomWidth: 1, borderColor: "$borderColor", bg: "$background", children: [
949
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", cursor: onBrand ? "pointer" : void 0, onPress: onBrand, children: brand ?? /* @__PURE__ */ jsxRuntime.jsx(BrandMark, { wordmark }) }),
950
- org ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", minW: 0, children: org }) : null,
951
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { flex: 1, items: "center", minW: 0, children }),
952
- items.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(gui.Popover, { open: appsOpen, onOpenChange: setAppsOpen, placement: "bottom-end", children: [
953
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$2", chromeless: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Grip, { size: 16 }), "aria-label": "Apps" }) }),
954
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Content, { bordered: true, elevate: true, p: "$2", width: 230, bg: "$color2", borderColor: "$borderColor", children: /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$1", children: items.map((s) => {
955
- const Icon = SURFACE_ICON[s.id];
956
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { onPress: () => launch(s), cursor: "pointer", items: "center", gap: "$2.5", px: "$2", py: "$2", rounded: "$3", hoverStyle: { bg: "$color5" }, children: [
957
- /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 16 }),
958
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, fontSize: "$2", fontWeight: "600", color: "$color12", children: s.label }),
959
- s.hint ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color10", children: s.hint }) : null
960
- ] }, s.id);
961
- }) }) })
962
- ] }) : null,
963
- /* @__PURE__ */ jsxRuntime.jsxs(gui.Popover, { open: menuOpen, onOpenChange: setMenuOpen, placement: "bottom-end", children: [
964
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$2", chromeless: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.UserRound, { size: 16 }), "aria-label": "Account", children: user ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", numberOfLines: 1, maxW: 140, children: user }) : null }) }),
965
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Content, { bordered: true, elevate: true, p: "$2", width: 220, bg: "$color2", borderColor: "$borderColor", children: menu ?? /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$1", children: [
966
- onProfile ? /* @__PURE__ */ jsxRuntime.jsx(MenuRow, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.UserRound, { size: 15 }), label: "Profile", onPress: () => (setMenuOpen(false), onProfile()) }) : null,
967
- theme !== null ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2.5", px: "$2", py: "$1", rounded: "$3", children: [
968
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, fontSize: "$2", color: "$color12", children: "Theme" }),
969
- theme ?? /* @__PURE__ */ jsxRuntime.jsx(chunkARV3P4CE_cjs.ThemeToggle, {})
970
- ] }) : null,
971
- onTeam ? /* @__PURE__ */ jsxRuntime.jsx(MenuRow, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Settings2, { size: 15 }), label: "Team settings", onPress: () => (setMenuOpen(false), onTeam()) }) : null,
972
- onBilling ? /* @__PURE__ */ jsxRuntime.jsx(MenuRow, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.CreditCard, { size: 15 }), label: "Billing", onPress: () => (setMenuOpen(false), onBilling()) }) : null,
973
- onSignOut ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
974
- /* @__PURE__ */ jsxRuntime.jsx(gui.Separator, { borderColor: "$borderColor", my: "$1" }),
975
- /* @__PURE__ */ jsxRuntime.jsx(MenuRow, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.LogOut, { size: 15 }), label: "Sign out", onPress: () => (setMenuOpen(false), onSignOut()) })
976
- ] }) : null
977
- ] }) })
978
- ] })
979
- ] });
980
- }
981
- function monogram(name) {
982
- const words = name.trim().split(/[\s._/-]+/).filter(Boolean);
983
- const letters = words.slice(0, 2).map((w) => w[0] ?? "").join("");
984
- return (letters || name.trim().slice(0, 2)).toUpperCase();
985
- }
986
- function OrgMark({ org, size = 22, maxW }) {
987
- if (org.logo) {
988
- return /* @__PURE__ */ jsxRuntime.jsx(
989
- "img",
990
- {
991
- src: org.logo,
992
- alt: "",
993
- style: {
994
- height: size,
995
- width: maxW ? "auto" : size,
996
- maxWidth: maxW ?? size,
997
- objectFit: "contain",
998
- display: "block",
999
- borderRadius: 6,
1000
- flexShrink: 0
1001
- }
1002
- }
1003
- );
1004
- }
1005
- return /* @__PURE__ */ jsxRuntime.jsx(
1006
- gui.YStack,
1007
- {
1008
- width: size,
1009
- height: size,
1010
- rounded: "$3",
1011
- bg: "$color4",
1012
- items: "center",
1013
- justify: "center",
1014
- style: { flexShrink: 0 },
1015
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: Math.round(size * 0.4), fontWeight: "800", color: "$color12", children: monogram(org.displayName || org.name) })
1016
- }
1017
- );
1018
- }
1019
-
1020
- // src/product/scope.ts
1021
- function browserStorage() {
1022
- if (typeof window === "undefined") return null;
1023
- try {
1024
- return window.localStorage;
1025
- } catch {
1026
- return null;
1027
- }
1028
- }
1029
- function orgScope(config) {
1030
- const key = config.key ?? "hanzo.org";
1031
- const selectedKey = `${key}.selected`;
1032
- const store = () => config.storage ?? browserStorage();
1033
- const read = (k) => {
1034
- try {
1035
- return store()?.getItem(k) ?? null;
1036
- } catch {
1037
- return null;
1038
- }
1039
- };
1040
- const write = (k, v) => {
1041
- try {
1042
- if (v === null) store()?.removeItem(k);
1043
- else store()?.setItem(k, v);
1044
- } catch {
1045
- }
1046
- };
1047
- const goHome = () => {
1048
- if (config.navigate) return config.navigate("/");
1049
- if (typeof window !== "undefined") window.location.assign("/");
1050
- };
1051
- const doReload = () => {
1052
- if (config.reload) return config.reload();
1053
- if (typeof window !== "undefined") window.location.reload();
1054
- };
1055
- const scope = {
1056
- currentOrg: () => read(key) || config.brandOrg,
1057
- setCurrentOrg: (org) => write(key, !org || org === config.brandOrg ? null : org),
1058
- isScopedAway: () => scope.currentOrg() !== config.brandOrg,
1059
- hasSelectedOrg: () => read(selectedKey) === "1",
1060
- enterOrg: (org) => {
1061
- if (!org) return;
1062
- scope.setCurrentOrg(org);
1063
- write(selectedKey, "1");
1064
- goHome();
1065
- },
1066
- leaveOrg: () => {
1067
- write(selectedKey, null);
1068
- scope.setCurrentOrg(config.brandOrg);
1069
- goHome();
1070
- },
1071
- switchOrg: (org) => {
1072
- if (!org || org === scope.currentOrg()) return;
1073
- scope.setCurrentOrg(org);
1074
- write(selectedKey, "1");
1075
- doReload();
1076
- }
1077
- };
1078
- return scope;
1079
- }
1080
- function filterOrgs(orgs, query) {
1081
- const q = query.trim().toLowerCase();
1082
- if (!q) return orgs;
1083
- return orgs.filter(
1084
- (o) => o.name.toLowerCase().includes(q) || (o.displayName ?? "").toLowerCase().includes(q)
1085
- );
1086
- }
1087
- var titleCase = (s) => s ? s[0].toUpperCase() + s.slice(1) : s;
1088
- function OrgSwitcher({ scope, orgs, pageSize = 20, current: given, create, picker = false }) {
1089
- const currentId = scope.currentOrg();
1090
- const [open, setOpen] = react.useState(false);
1091
- const [query, setQuery] = react.useState("");
1092
- const [debounced, setDebounced] = react.useState("");
1093
- const [rows, setRows] = react.useState([]);
1094
- const [loading, setLoading] = react.useState(false);
1095
- const [loadingMore, setLoadingMore] = react.useState(false);
1096
- const [hasMore, setHasMore] = react.useState(false);
1097
- const [creating, setCreating] = react.useState(false);
1098
- const [newName, setNewName] = react.useState("");
1099
- const [busy, setBusy] = react.useState(false);
1100
- const [err, setErr] = react.useState(null);
1101
- const pageRef = react.useRef(0);
1102
- const reqRef = react.useRef(0);
1103
- react.useEffect(() => {
1104
- const id = setTimeout(() => setDebounced(query.trim()), 250);
1105
- return () => clearTimeout(id);
1106
- }, [query]);
1107
- const fetchPage = react.useCallback(
1108
- async (page, q, append) => {
1109
- if (!orgs) return;
1110
- const token = ++reqRef.current;
1111
- append ? setLoadingMore(true) : setLoading(true);
1112
- try {
1113
- const incoming = await orgs(page, q);
1114
- if (token !== reqRef.current) return;
1115
- pageRef.current = page;
1116
- setRows((prev) => {
1117
- const merged = append ? [...prev] : [];
1118
- const seen = new Set(merged.map((o) => o.name));
1119
- for (const o of incoming) if (!seen.has(o.name)) merged.push(o);
1120
- return merged;
1121
- });
1122
- setHasMore(incoming.length >= pageSize);
1123
- } catch {
1124
- if (token !== reqRef.current) return;
1125
- if (!append) setRows([]);
1126
- setHasMore(false);
1127
- } finally {
1128
- if (token === reqRef.current) {
1129
- setLoading(false);
1130
- setLoadingMore(false);
1131
- }
1132
- }
1133
- },
1134
- [orgs, pageSize]
1135
- );
1136
- react.useEffect(() => {
1137
- if (!open || !orgs) return;
1138
- void fetchPage(0, debounced, false);
1139
- }, [open, debounced, fetchPage, orgs]);
1140
- const loadMore = react.useCallback(() => {
1141
- if (loading || loadingMore || !hasMore) return;
1142
- void fetchPage(pageRef.current + 1, debounced, true);
1143
- }, [loading, loadingMore, hasMore, debounced, fetchPage]);
1144
- const visible = react.useMemo(() => {
1145
- if (orgs) return filterOrgs(rows, query);
1146
- return [{ name: currentId, displayName: titleCase(currentId) }];
1147
- }, [orgs, rows, query, currentId]);
1148
- const current = react.useMemo(() => {
1149
- if (given && given.name === currentId) return given;
1150
- return rows.find((o) => o.name === currentId) ?? { name: currentId, displayName: titleCase(currentId) };
1151
- }, [given, rows, currentId]);
1152
- const currentLabel = current.displayName || titleCase(current.name);
1153
- const track = chunk7XDEUEWI_cjs.useEmit();
1154
- const select = react.useCallback(
1155
- (org) => {
1156
- track({ component: "OrgSwitcher", action: "select", id: org });
1157
- setOpen(false);
1158
- scope.switchOrg(org);
1159
- },
1160
- [scope, track]
1161
- );
1162
- const submitCreate = async () => {
1163
- const name = newName.trim();
1164
- if (!name || !create) return;
1165
- setBusy(true);
1166
- setErr(null);
1167
- try {
1168
- const org = await create(name);
1169
- scope.switchOrg(org);
1170
- } catch (e) {
1171
- setErr(e instanceof Error ? e.message : "Could not create the organization.");
1172
- setBusy(false);
1173
- }
1174
- };
1175
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.Popover, { open, onOpenChange: setOpen, placement: "bottom-start", children: [
1176
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Trigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { chromeless: true, height: 44, px: "$2", justify: "flex-start", "aria-label": `${currentLabel} \xB7 switch organization`, children: /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2.5", flex: 1, minW: 0, children: [
1177
- /* @__PURE__ */ jsxRuntime.jsx(OrgMark, { org: current, size: 30 }),
1178
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, minW: 0, fontSize: "$4", fontWeight: "800", color: "$color12", numberOfLines: 1, children: currentLabel }),
1179
- /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.ChevronsUpDown, { size: 15, color: "$color9" })
1180
- ] }) }) }),
1181
- /* @__PURE__ */ jsxRuntime.jsx(gui.Popover.Content, { bordered: true, elevate: true, p: "$2", width: 300, bg: "$color2", borderColor: "$borderColor", children: creating ? /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", children: [
1182
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", fontWeight: "700", children: "Create organization" }),
1183
- /* @__PURE__ */ jsxRuntime.jsx(
1184
- gui.Input,
1185
- {
1186
- size: "$3",
1187
- placeholder: "Organization name",
1188
- value: newName,
1189
- onChangeText: setNewName,
1190
- autoCapitalize: "words",
1191
- onSubmitEditing: () => void submitCreate()
1192
- }
1193
- ),
1194
- err ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$red10", children: err }) : null,
1195
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", justify: "flex-end", children: [
1196
- /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$2", chromeless: true, onPress: () => setCreating(false), disabled: busy, children: "Cancel" }),
1197
- /* @__PURE__ */ jsxRuntime.jsx(
1198
- gui.Button,
1199
- {
1200
- size: "$2",
1201
- onPress: () => void submitCreate(),
1202
- disabled: busy || !newName.trim(),
1203
- icon: busy ? /* @__PURE__ */ jsxRuntime.jsx(gui.Spinner, { size: "small" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Plus, { size: 14 }),
1204
- children: "Create"
1205
- }
1206
- )
1207
- ] })
1208
- ] }) : /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$1", children: [
1209
- orgs ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$2", py: "$1", rounded: "$3", borderWidth: 1, borderColor: "$borderColor", children: [
1210
- /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Search, { size: 13, opacity: 0.6 }),
1211
- /* @__PURE__ */ jsxRuntime.jsx(
1212
- gui.Input,
1213
- {
1214
- flex: 1,
1215
- size: "$2",
1216
- borderWidth: 0,
1217
- bg: "transparent",
1218
- placeholder: "Find organization\u2026",
1219
- value: query,
1220
- onChangeText: setQuery,
1221
- autoCapitalize: "none",
1222
- autoCorrect: false
1223
- }
1224
- )
1225
- ] }) : null,
1226
- /* @__PURE__ */ jsxRuntime.jsxs(
1227
- "div",
1228
- {
1229
- style: { maxHeight: 300, overflowY: "auto", display: "flex", flexDirection: "column" },
1230
- onScroll: (e) => {
1231
- const el = e.currentTarget;
1232
- if (el.scrollHeight - el.scrollTop - el.clientHeight < 48) loadMore();
1233
- },
1234
- children: [
1235
- loading ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$2", py: "$3", children: [
1236
- /* @__PURE__ */ jsxRuntime.jsx(gui.Spinner, { size: "small", color: "$color11" }),
1237
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color10", children: "Loading organizations\u2026" })
1238
- ] }) : visible.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { px: "$2", py: "$2", fontSize: "$2", color: "$color10", children: query.trim() ? `No organizations match \u201C${query.trim()}\u201D.` : "No organizations yet." }) : visible.map((org) => /* @__PURE__ */ jsxRuntime.jsxs(
1239
- gui.XStack,
1240
- {
1241
- onPress: () => select(org.name),
1242
- cursor: "pointer",
1243
- items: "center",
1244
- gap: "$2.5",
1245
- px: "$2",
1246
- py: "$2",
1247
- rounded: "$3",
1248
- bg: org.name === currentId ? "$color4" : "transparent",
1249
- hoverStyle: { bg: "$color5" },
1250
- children: [
1251
- /* @__PURE__ */ jsxRuntime.jsx(OrgMark, { org }),
1252
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { flex: 1, fontSize: "$2", color: "$color12", numberOfLines: 1, children: org.displayName || org.name }),
1253
- org.name === currentId ? /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Check, { size: 15 }) : null
1254
- ]
1255
- },
1256
- org.name
1257
- )),
1258
- loadingMore ? /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", px: "$2", py: "$2", children: [
1259
- /* @__PURE__ */ jsxRuntime.jsx(gui.Spinner, { size: "small", color: "$color11" }),
1260
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color10", children: "Loading more\u2026" })
1261
- ] }) : hasMore ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { onPress: loadMore, cursor: "pointer", items: "center", justify: "center", px: "$2", py: "$1.5", rounded: "$3", hoverStyle: { bg: "$color4" }, children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$1", color: "$color11", fontWeight: "600", children: "Load more" }) }) : null
1262
- ]
1263
- }
1264
- ),
1265
- create ? /* @__PURE__ */ jsxRuntime.jsxs(
1266
- gui.XStack,
1267
- {
1268
- onPress: () => {
1269
- setCreating(true);
1270
- setErr(null);
1271
- },
1272
- cursor: "pointer",
1273
- items: "center",
1274
- gap: "$2.5",
1275
- px: "$2",
1276
- py: "$2",
1277
- mt: "$1",
1278
- rounded: "$3",
1279
- borderTopWidth: 1,
1280
- borderColor: "$borderColor",
1281
- hoverStyle: { bg: "$color5" },
1282
- children: [
1283
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { width: 22, height: 22, rounded: "$3", bg: "$color3", items: "center", justify: "center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Plus, { size: 14 }) }),
1284
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", children: "Create organization" })
1285
- ]
1286
- }
1287
- ) : null,
1288
- picker ? /* @__PURE__ */ jsxRuntime.jsxs(
1289
- gui.XStack,
1290
- {
1291
- onPress: () => {
1292
- setOpen(false);
1293
- scope.leaveOrg();
1294
- },
1295
- cursor: "pointer",
1296
- items: "center",
1297
- gap: "$2.5",
1298
- px: "$2",
1299
- py: "$2",
1300
- rounded: "$3",
1301
- hoverStyle: { bg: "$color5" },
1302
- children: [
1303
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { width: 22, height: 22, rounded: "$3", bg: "$color3", items: "center", justify: "center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.LayoutGrid, { size: 14 }) }),
1304
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", children: "All organizations" })
1305
- ]
1306
- }
1307
- ) : null
1308
- ] }) })
1309
- ] });
1310
- }
1311
- function ContextMenu({ children, items, disabled, minWidth = 200, maxHeight }) {
1312
- const [state, setState] = react.useState({ open: false, x: 0, y: 0 });
1313
- const close = react.useCallback(() => setState((s) => s.open ? { ...s, open: false } : s), []);
1314
- const anchorRect = react.useCallback(
1315
- () => ({ left: state.x, top: state.y, right: state.x, bottom: state.y, width: 0, height: 0 }),
1316
- [state.x, state.y]
1317
- );
1318
- const childOnContextMenu = children.props.onContextMenu;
1319
- const target = react.cloneElement(children, {
1320
- onContextMenu: (e) => {
1321
- childOnContextMenu?.(e);
1322
- if (disabled) return;
1323
- e.preventDefault();
1324
- e.stopPropagation();
1325
- setState({ open: true, x: e.clientX, y: e.clientY });
1326
- }
1327
- });
1328
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1329
- target,
1330
- /* @__PURE__ */ jsxRuntime.jsx(FloatingMenu, { open: state.open, onClose: close, anchorRect, gap: 0, minWidth, maxHeight, children: renderMenuItems(items, close) })
1331
- ] });
1332
- }
1333
- var isExternal = (href) => /^https?:\/\//.test(href);
1334
- var defaultLink = ({ href, children, onNavigate }) => /* @__PURE__ */ jsxRuntime.jsx(
1335
- "a",
1336
- {
1337
- href,
1338
- onClick: onNavigate,
1339
- ...isExternal(href) ? { target: "_blank", rel: "noopener noreferrer" } : null,
1340
- style: { textDecoration: "none", color: "inherit", display: "block" },
1341
- children
1342
- }
1343
- );
1344
- function ProductCell({ product, link, icon, close }) {
1345
- const glyph = icon?.(product.id);
1346
- return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { minW: 200, flex: 1, flexBasis: 200, children: link({
1347
- href: product.url,
1348
- onNavigate: close,
1349
- children: /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2.5", items: "flex-start", p: "$2.5", rounded: "$4", borderWidth: 1, borderColor: "$borderColor", hoverStyle: { bg: "$color4" }, children: [
1350
- glyph ? /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { pt: "$0.5", children: glyph }) : null,
1351
- /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { minW: 0, gap: "$0.5", children: [
1352
- product.verb ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 11, color: "$color10", textTransform: "uppercase", letterSpacing: 0.4, children: product.verb }) : null,
1353
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color12", children: product.name }),
1354
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 12, color: "$color10", lineHeight: 16, children: product.job })
1355
- ] })
1356
- ] })
1357
- }) });
1358
- }
1359
- function Column({ title, links, link, icon, close }) {
1360
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { minW: 160, flex: 1, gap: "$1", children: [
1361
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 11, color: "$color10", textTransform: "uppercase", letterSpacing: 0.5, px: "$2", pb: "$1", children: title }),
1362
- links.map((l) => /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { px: "$2", py: "$1", rounded: "$3", hoverStyle: { bg: "$color4" }, gap: "$2", items: "center", children: [
1363
- icon?.(l.id) ?? null,
1364
- link({
1365
- href: l.href,
1366
- onNavigate: close,
1367
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: l.label })
1368
- })
1369
- ] }, l.id))
1370
- ] });
1371
- }
1372
- function Launcher({ menu, link, icon, close }) {
1373
- return /* @__PURE__ */ jsxRuntime.jsxs(
1374
- gui.YStack,
1375
- {
1376
- position: "absolute",
1377
- t: 52,
1378
- l: 0,
1379
- r: 0,
1380
- z: 50,
1381
- bg: "$background",
1382
- borderBottomWidth: 1,
1383
- borderColor: "$borderColor",
1384
- px: "$4",
1385
- py: "$4",
1386
- gap: "$3",
1387
- maxH: "80vh",
1388
- overflow: "scroll",
1389
- children: [
1390
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$3", flexWrap: "wrap", children: [
1391
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: menu.eyebrow }),
1392
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { ml: "auto", children: link({
1393
- href: menu.allProducts.href,
1394
- onNavigate: close,
1395
- children: /* @__PURE__ */ jsxRuntime.jsxs(gui.Text, { fontSize: "$2", color: "$color12", children: [
1396
- menu.allProducts.label,
1397
- " \u2192"
1398
- ] })
1399
- }) })
1400
- ] }),
1401
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { gap: "$2.5", flexWrap: "wrap", children: menu.products.map((p) => /* @__PURE__ */ jsxRuntime.jsx(ProductCell, { product: p, link, icon, close }, p.id)) }),
1402
- /* @__PURE__ */ jsxRuntime.jsx(gui.Separator, {}),
1403
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$4", flexWrap: "wrap", items: "flex-start", children: [
1404
- /* @__PURE__ */ jsxRuntime.jsx(Column, { title: "Platform", links: menu.utilities, link, icon, close }),
1405
- /* @__PURE__ */ jsxRuntime.jsx(Column, { title: "Install", links: menu.installs, link, icon, close })
1406
- ] })
1407
- ]
1408
- }
1409
- );
1410
- }
1411
- function Cta({ action, link }) {
1412
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { bg: "$color12", px: "$3", py: "$1.5", rounded: "$3", hoverStyle: { opacity: 0.9 }, children: link({
1413
- href: action.href,
1414
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$background", children: action.label })
1415
- }) });
1416
- }
1417
- function MobilePanel({ header, menu, link, icon, close }) {
1418
- return /* @__PURE__ */ jsxRuntime.jsxs(
1419
- gui.YStack,
1420
- {
1421
- position: "absolute",
1422
- t: 52,
1423
- l: 0,
1424
- r: 0,
1425
- z: 50,
1426
- bg: "$background",
1427
- borderBottomWidth: 1,
1428
- borderColor: "$borderColor",
1429
- px: "$3",
1430
- py: "$3",
1431
- gap: "$3",
1432
- maxH: "80vh",
1433
- overflow: "scroll",
1434
- children: [
1435
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$1", children: header.localNav.map((l) => /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { px: "$2", py: "$1.5", rounded: "$3", hoverStyle: { bg: "$color4" }, children: link({
1436
- href: l.href,
1437
- onNavigate: close,
1438
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color12", children: l.label })
1439
- }) }, l.id)) }),
1440
- menu ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1441
- /* @__PURE__ */ jsxRuntime.jsx(gui.Separator, {}),
1442
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$1", children: menu.products.map((p) => /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { px: "$2", py: "$1.5", rounded: "$3", hoverStyle: { bg: "$color4" }, gap: "$2", items: "center", children: [
1443
- icon?.(p.id) ?? null,
1444
- link({
1445
- href: p.url,
1446
- onNavigate: close,
1447
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color12", children: p.name })
1448
- })
1449
- ] }, p.id)) }),
1450
- /* @__PURE__ */ jsxRuntime.jsx(gui.Separator, {}),
1451
- /* @__PURE__ */ jsxRuntime.jsx(Column, { title: "Platform", links: menu.utilities, link, icon, close }),
1452
- /* @__PURE__ */ jsxRuntime.jsx(Column, { title: "Install", links: menu.installs, link, icon, close })
1453
- ] }) : null
1454
- ]
1455
- }
1456
- );
1457
- }
1458
- function SiteNav({ header, menu, brand, actions, link = defaultLink, icon, active, meetLabel = "Meet Hanzo" }) {
1459
- const [launcher, setLauncher] = react.useState(false);
1460
- const [mobile, setMobile] = react.useState(false);
1461
- const root = react.useRef(null);
1462
- react.useEffect(() => {
1463
- if (!launcher && !mobile) return;
1464
- const dismiss = () => {
1465
- setLauncher(false);
1466
- setMobile(false);
1467
- };
1468
- const onKey = (e) => {
1469
- if (e.key === "Escape") dismiss();
1470
- };
1471
- const onDown = (e) => {
1472
- if (root.current && !root.current.contains(e.target)) dismiss();
1473
- };
1474
- document.addEventListener("keydown", onKey);
1475
- document.addEventListener("mousedown", onDown);
1476
- return () => {
1477
- document.removeEventListener("keydown", onKey);
1478
- document.removeEventListener("mousedown", onDown);
1479
- };
1480
- }, [launcher, mobile]);
1481
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { ref: root, position: "relative", bg: "$background", children: [
1482
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$1", px: "$3", height: 52, borderBottomWidth: 1, borderColor: "$borderColor", children: [
1483
- brand ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", pr: "$2", children: brand }) : null,
1484
- menu ? /* @__PURE__ */ jsxRuntime.jsx(
1485
- gui.XStack,
1486
- {
1487
- cursor: "pointer",
1488
- px: "$2.5",
1489
- py: "$1.5",
1490
- rounded: "$3",
1491
- bg: launcher ? "$color4" : "transparent",
1492
- hoverStyle: { bg: "$color4" },
1493
- onPress: () => setLauncher(!launcher),
1494
- accessibilityRole: "button",
1495
- "aria-expanded": launcher,
1496
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", children: meetLabel })
1497
- }
1498
- ) : null,
1499
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", gap: "$0.5", flex: 1, minW: 0, $sm: { display: "none" }, children: header.localNav.map((l) => /* @__PURE__ */ jsxRuntime.jsx(
1500
- gui.XStack,
1501
- {
1502
- px: "$2.5",
1503
- py: "$1.5",
1504
- rounded: "$3",
1505
- hoverStyle: { bg: "$color4" },
1506
- onMouseEnter: () => launcher && setLauncher(false),
1507
- children: link({
1508
- href: l.href,
1509
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: active === l.id ? "$color12" : "$color11", children: l.label })
1510
- })
1511
- },
1512
- l.id
1513
- )) }),
1514
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$2", ml: "auto", children: [
1515
- actions,
1516
- /* @__PURE__ */ jsxRuntime.jsx(Cta, { action: header.action, link }),
1517
- /* @__PURE__ */ jsxRuntime.jsx(
1518
- gui.XStack,
1519
- {
1520
- display: "none",
1521
- $sm: { display: "flex" },
1522
- cursor: "pointer",
1523
- px: "$2",
1524
- py: "$1.5",
1525
- rounded: "$3",
1526
- hoverStyle: { bg: "$color4" },
1527
- onPress: () => setMobile(!mobile),
1528
- accessibilityRole: "button",
1529
- "aria-label": mobile ? "Close menu" : "Open menu",
1530
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color12", children: mobile ? "Close" : "Menu" })
1531
- }
1532
- )
1533
- ] })
1534
- ] }),
1535
- launcher && menu ? /* @__PURE__ */ jsxRuntime.jsx(Launcher, { menu, link, icon, close: () => setLauncher(false) }) : null,
1536
- mobile ? /* @__PURE__ */ jsxRuntime.jsx(MobilePanel, { header, menu, link, icon, close: () => setMobile(false) }) : null
1537
- ] });
1538
- }
1539
- var isExternal2 = (href) => /^https?:\/\//.test(href);
1540
- var defaultLink2 = ({ href, children }) => /* @__PURE__ */ jsxRuntime.jsx(
1541
- "a",
1542
- {
1543
- href,
1544
- ...isExternal2(href) ? { target: "_blank", rel: "noopener noreferrer" } : null,
1545
- style: { textDecoration: "none", color: "inherit" },
1546
- children
1547
- }
1548
- );
1549
- function SiteFooter({ footer, brand, tagline, meta, link = defaultLink2 }) {
1550
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { borderTopWidth: 1, borderColor: "$borderColor", bg: "$background", px: "$4", py: "$5", gap: "$4", children: [
1551
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$5", flexWrap: "wrap", items: "flex-start", children: [
1552
- brand || tagline ? /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$2", minW: 200, flex: 1, children: [
1553
- brand,
1554
- tagline ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 12, color: "$color10", lineHeight: 18, maxW: 280, children: tagline }) : null
1555
- ] }) : null,
1556
- footer.columns.map((column) => /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$1.5", minW: 140, children: [
1557
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 11, color: "$color10", textTransform: "uppercase", letterSpacing: 0.5, pb: "$1", children: column.title }),
1558
- column.links.map((l) => /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { hoverStyle: { opacity: 0.7 }, children: link({
1559
- href: l.href,
1560
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: l.label })
1561
- }) }, l.id))
1562
- ] }, column.id))
1563
- ] }),
1564
- /* @__PURE__ */ jsxRuntime.jsx(gui.Separator, {}),
1565
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { items: "center", gap: "$3", flexWrap: "wrap", children: [
1566
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 12, color: "$color10", children: footer.legal.copyright }),
1567
- /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { items: "center", gap: "$3", flexWrap: "wrap", children: footer.legal.links.map((l) => /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { hoverStyle: { opacity: 0.7 }, children: link({
1568
- href: l.href,
1569
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: 12, color: "$color10", children: l.label })
1570
- }) }, l.id)) }),
1571
- meta ? /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { ml: "auto", items: "center", gap: "$3", children: meta }) : null
1572
- ] })
1573
- ] });
1574
- }
1575
- function CommerceResource({
1576
- title,
1577
- subtitle,
1578
- load,
1579
- columns,
1580
- rowKey,
1581
- empty,
1582
- hint,
1583
- actions
1584
- }) {
1585
- const [state, setState] = react.useState({ phase: "loading" });
1586
- const loadRef = react.useRef(load);
1587
- loadRef.current = load;
1588
- const reload = react.useCallback(() => {
1589
- setState({ phase: "loading" });
1590
- loadRef.current().then((r) => setState({ phase: "ready", data: r.rows })).catch((e) => setState({ phase: "error", error: chunkWHJR5S4L_cjs.classifyBackend(e) }));
1591
- }, []);
1592
- react.useEffect(() => {
1593
- reload();
1594
- }, [reload]);
1595
- return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
1596
- /* @__PURE__ */ jsxRuntime.jsx(
1597
- chunkWHJR5S4L_cjs.PageHeader,
1598
- {
1599
- title,
1600
- subtitle,
1601
- actions: /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", children: [
1602
- actions?.(reload),
1603
- /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$2", icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.RefreshCw, { size: 15 }), onPress: reload, children: "Refresh" })
1604
- ] })
1605
- }
1606
- ),
1607
- state.phase === "error" ? /* @__PURE__ */ jsxRuntime.jsx(chunkWHJR5S4L_cjs.BackendStateCard, { state: state.error, onRetry: reload, hint }) : /* @__PURE__ */ jsxRuntime.jsx(
1608
- chunkONVERVFG_cjs.DataTable,
1609
- {
1610
- columns,
1611
- rows: state.phase === "ready" ? state.data : [],
1612
- loading: state.phase === "loading",
1613
- rowKey,
1614
- empty
1615
- }
1616
- )
1617
- ] });
1618
- }
1619
- function ConfirmDelete({
1620
- message,
1621
- confirmLabel,
1622
- run,
1623
- onDone
1624
- }) {
1625
- const [busy, setBusy] = react.useState(false);
1626
- const [err, setErr] = react.useState(null);
1627
- const track = chunk7XDEUEWI_cjs.useEmit();
1628
- const go = async () => {
1629
- setBusy(true);
1630
- setErr(null);
1631
- track({ component: "ConfirmDelete", action: "confirm", id: confirmLabel });
1632
- try {
1633
- await run();
1634
- onDone();
1635
- } catch (e) {
1636
- const message2 = chunkWHJR5S4L_cjs.classifyBackend(e).message || "Failed to delete.";
1637
- track({ component: "ConfirmDelete", action: "error", id: confirmLabel, value: message2 });
1638
- setErr(message2);
1639
- setBusy(false);
1640
- }
1641
- };
1642
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { gap: "$3", children: [
1643
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", color: "$color11", children: message }),
1644
- err ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$red10", children: err }) : null,
1645
- /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2", flexWrap: "wrap", children: [
1646
- /* @__PURE__ */ jsxRuntime.jsx(
1647
- gui.Button,
1648
- {
1649
- onPress: go,
1650
- disabled: busy,
1651
- icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Trash2, { size: 15 }),
1652
- style: { backgroundColor: "#dc2626", borderColor: "#dc2626", color: "#fff" },
1653
- children: busy ? "Deleting\u2026" : confirmLabel
1654
- }
1655
- ),
1656
- /* @__PURE__ */ jsxRuntime.jsx(
1657
- gui.Button,
1658
- {
1659
- chromeless: true,
1660
- onPress: () => {
1661
- track({ component: "ConfirmDelete", action: "cancel", id: confirmLabel });
1662
- onDone();
1663
- },
1664
- disabled: busy,
1665
- children: "Cancel"
1666
- }
1667
- )
1668
- ] })
1669
- ] });
1670
- }
1671
- function Segmented({
1672
- options,
1673
- value,
1674
- onChange,
1675
- size = "$2",
1676
- name
1677
- }) {
1678
- const track = chunk7XDEUEWI_cjs.useEmit();
1679
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { gap: "$1", flexWrap: "wrap", items: "center", children: options.map((o) => {
1680
- const active = o.value === value;
1681
- return /* @__PURE__ */ jsxRuntime.jsx(
1682
- gui.Button,
1683
- {
1684
- size,
1685
- bg: active ? "$color5" : "transparent",
1686
- borderWidth: 1,
1687
- borderColor: active ? "$color7" : "$borderColor",
1688
- "aria-pressed": active,
1689
- onPress: () => {
1690
- track({ component: "Segmented", action: "filter", id: name, value: o.value });
1691
- onChange(o.value);
1692
- },
1693
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", fontWeight: active ? "700" : "500", color: active ? "$color12" : "$color11", children: o.label })
1694
- },
1695
- o.value
1696
- );
1697
- }) });
1698
- }
1699
- function SearchInput({
1700
- value,
1701
- onChange,
1702
- placeholder,
1703
- name
1704
- }) {
1705
- const track = chunk7XDEUEWI_cjs.useEmit();
1706
- const onChangeTracked = (v) => {
1707
- track({ component: "SearchInput", action: "search", id: name, value: chunk7XDEUEWI_cjs.textSize(v) });
1708
- onChange(v);
1709
- };
1710
- return /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { flex: 1, minW: 180, items: "center", gap: "$2", px: "$3", borderWidth: 1, borderColor: "$borderColor", rounded: "$4", bg: "$color1", children: [
1711
- /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Search, { size: 15, color: "$color10" }),
1712
- /* @__PURE__ */ jsxRuntime.jsx(gui.Input, { flex: 1, value, onChangeText: onChangeTracked, placeholder, borderWidth: 0, bg: "transparent", px: "$0", fontSize: "$3" })
1713
- ] });
1714
- }
1715
-
1716
- // src/product/brand.ts
1717
- var HANZO_MARK_CONTENT = '<path d="M22.21 67V44.6369H0V67H22.21Z"/><path d="M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z"/><path d="M22.21 0H0V22.3184H22.21V0Z"/><path d="M66.7198 0H44.5098V22.3184H66.7198V0Z"/><path d="M66.7198 67V44.6369H44.5098V67H66.7198Z"/>';
1718
- var HANZO = {
1719
- id: "hanzo",
1720
- name: "Hanzo",
1721
- viewBox: "0 0 67 67",
1722
- content: HANZO_MARK_CONTENT,
1723
- href: "https://hanzo.ai"
1724
- };
1725
- var LUX = {
1726
- id: "lux",
1727
- name: "Lux",
1728
- viewBox: "0 0 100 100",
1729
- content: '<path d="M50 85 L15 25 L85 25 Z"/>',
1730
- href: "https://lux.network"
1731
- };
1732
- var ZOO = {
1733
- id: "zoo",
1734
- name: "Zoo",
1735
- viewBox: "0 0 1024 1024",
1736
- fullColor: true,
1737
- content: '<defs><clipPath id="zooClip"><circle cx="512" cy="511" r="270"/></clipPath><clipPath id="zooGClip"><circle cx="513" cy="369" r="234"/></clipPath><clipPath id="zooRClip"><circle cx="365" cy="595" r="234"/></clipPath></defs><g clip-path="url(#zooClip)"><circle cx="513" cy="369" r="234" fill="#00A652"/><circle cx="365" cy="595" r="234" fill="#ED1C24"/><circle cx="643" cy="595" r="234" fill="#2E3192"/><g clip-path="url(#zooGClip)"><circle cx="365" cy="595" r="234" fill="#FCF006"/><circle cx="643" cy="595" r="234" fill="#01ACF1"/></g><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#EA018E"/></g><g clip-path="url(#zooGClip)"><g clip-path="url(#zooRClip)"><circle cx="643" cy="595" r="234" fill="#FFFFFF"/></g></g></g>',
1738
- href: "https://zoo.ngo"
1739
- };
1740
- var PARS = {
1741
- id: "pars",
1742
- name: "Pars",
1743
- viewBox: "-120 -120 240 240",
1744
- content: '<path d="M0,-100 L30,-60 L100,-40 L60,0 L100,40 L30,60 L0,100 L-30,60 L-100,40 L-60,0 L-100,-40 L-30,-60 Z" fill="none" stroke="currentColor" stroke-width="4" stroke-linejoin="round"/><path d="M0,-70 L22,-42 L70,-28 L42,0 L70,28 L22,42 L0,70 L-22,42 L-70,28 L-42,0 L-70,-28 L-22,-42 Z" fill="currentColor" fill-opacity="0.15" stroke="currentColor" stroke-width="3" stroke-linejoin="round"/><circle r="55" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="35" fill="none" stroke="currentColor" stroke-width="1.5" opacity="0.4"/><circle r="8" fill="currentColor"/>',
1745
- href: "https://pars.network"
1746
- };
1747
- var BRANDS = { hanzo: HANZO, lux: LUX, zoo: ZOO, pars: PARS };
1748
- function resolveBrand(id) {
1749
- return id && BRANDS[id] || HANZO;
1750
- }
1751
-
1752
- // src/product/animatedLogo.logic.ts
1753
- var HOUSE_EASE = "cubic-bezier(0.16, 1, 0.3, 1)";
1754
- var DEFAULT_DURATION_MS = 360;
1755
- var DEFAULT_INTRO_MS = 1500;
1756
- var DEFAULT_GAP = 8;
1757
- function wordmarkText(name, surface) {
1758
- const s = surface?.trim();
1759
- return s ? `${name} ${s}` : name;
1760
- }
1761
- function isExpanded(s) {
1762
- return s.hovered || s.focused || s.introShowing;
1763
- }
1764
- function wordmarkStyle(i) {
1765
- return {
1766
- width: i.expanded ? i.naturalWidth ?? "auto" : 0,
1767
- opacity: i.expanded ? 1 : 0,
1768
- marginLeft: i.expanded ? i.gap : 0,
1769
- transition: i.reduce ? "none" : `width ${i.durationMs}ms ${i.easing}, opacity ${i.durationMs}ms ${i.easing}, margin-left ${i.durationMs}ms ${i.easing}`
1770
- };
1771
- }
1772
- function usePrefersReducedMotion() {
1773
- const [reduce, setReduce] = react.useState(false);
1774
- react.useEffect(() => {
1775
- if (typeof window === "undefined" || !window.matchMedia) return;
1776
- const mq = window.matchMedia("(prefers-reduced-motion: reduce)");
1777
- const sync = () => setReduce(mq.matches);
1778
- sync();
1779
- mq.addEventListener("change", sync);
1780
- return () => mq.removeEventListener("change", sync);
1781
- }, []);
1782
- return reduce;
1783
- }
1784
- function AnimatedLogo({
1785
- surface,
1786
- brand = HANZO,
1787
- size = 22,
1788
- gap = DEFAULT_GAP,
1789
- introMs = DEFAULT_INTRO_MS,
1790
- durationMs = DEFAULT_DURATION_MS,
1791
- easing = HOUSE_EASE,
1792
- href,
1793
- onClick,
1794
- component,
1795
- className,
1796
- style,
1797
- "aria-label": ariaLabel
1798
- }) {
1799
- const reduce = usePrefersReducedMotion();
1800
- const label = ariaLabel ?? wordmarkText(brand.name, surface);
1801
- const [hovered, setHovered] = react.useState(false);
1802
- const [focused, setFocused] = react.useState(false);
1803
- const [introShowing, setIntroShowing] = react.useState(introMs > 0);
1804
- const [naturalWidth, setNaturalWidth] = react.useState(void 0);
1805
- const wordRef = react.useRef(null);
1806
- react.useEffect(() => {
1807
- if (introMs <= 0) return;
1808
- if (reduce) {
1809
- setIntroShowing(false);
1810
- return;
1811
- }
1812
- const t = setTimeout(() => setIntroShowing(false), introMs);
1813
- return () => clearTimeout(t);
1814
- }, [introMs, reduce]);
1815
- react.useLayoutEffect(() => {
1816
- const el = wordRef.current;
1817
- if (!el) return;
1818
- const measure = () => setNaturalWidth(el.scrollWidth);
1819
- measure();
1820
- const fonts = typeof document !== "undefined" && document.fonts || null;
1821
- if (fonts?.ready) fonts.ready.then(measure).catch(() => {
1822
- });
1823
- }, [brand.name, surface]);
1824
- const expanded = isExpanded({ hovered, focused, introShowing });
1825
- const ws = wordmarkStyle({ expanded, naturalWidth, gap, durationMs, easing, reduce });
1826
- const Root = component ?? "a";
1827
- const isAnchor = Root === "a";
1828
- return /* @__PURE__ */ jsxRuntime.jsxs(
1829
- Root,
1830
- {
1831
- ...isAnchor ? { href: href ?? brand.href ?? "/" } : { href: href ?? brand.href },
1832
- onClick,
1833
- "aria-label": label,
1834
- title: label,
1835
- className,
1836
- onMouseEnter: () => setHovered(true),
1837
- onMouseLeave: () => setHovered(false),
1838
- onFocus: () => setFocused(true),
1839
- onBlur: () => setFocused(false),
1840
- style: {
1841
- display: "inline-flex",
1842
- alignItems: "center",
1843
- textDecoration: "none",
1844
- color: "inherit",
1845
- cursor: "pointer",
1846
- ...style
1847
- },
1848
- children: [
1849
- /* @__PURE__ */ jsxRuntime.jsx(
1850
- "svg",
1851
- {
1852
- width: size,
1853
- height: size,
1854
- viewBox: brand.viewBox,
1855
- "aria-hidden": "true",
1856
- focusable: "false",
1857
- fill: brand.fullColor ? void 0 : "currentColor",
1858
- style: { display: "block", flexShrink: 0 },
1859
- dangerouslySetInnerHTML: { __html: brand.content }
1860
- }
1861
- ),
1862
- /* @__PURE__ */ jsxRuntime.jsx(
1863
- "span",
1864
- {
1865
- ref: wordRef,
1866
- "aria-hidden": "true",
1867
- style: {
1868
- display: "inline-block",
1869
- overflow: "hidden",
1870
- whiteSpace: "nowrap",
1871
- fontWeight: 600,
1872
- fontSize: 15,
1873
- letterSpacing: "-0.01em",
1874
- lineHeight: 1,
1875
- width: ws.width,
1876
- opacity: ws.opacity,
1877
- marginLeft: ws.marginLeft,
1878
- transition: ws.transition
1879
- },
1880
- children: label
1881
- }
1882
- )
1883
- ]
1884
- }
1885
- );
1886
- }
1887
- function FadeIn({
1888
- children,
1889
- index = 0,
1890
- step = 50,
1891
- delayMs,
1892
- style
1893
- }) {
1894
- const delay = delayMs ?? index * step;
1895
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "hz-fade-up", style: { animationDelay: `${delay}ms`, ...style }, children });
1896
- }
1897
- function ProductIcon({
1898
- icon: Icon,
1899
- color,
1900
- size = 24
1901
- }) {
1902
- const radius = Math.round(size * 0.28);
1903
- const glyph = Math.round(size * 0.58);
1904
- const tinted = typeof color === "string" && color.trim() !== "";
1905
- if (tinted) {
1906
- return /* @__PURE__ */ jsxRuntime.jsx(
1907
- gui.XStack,
1908
- {
1909
- width: size,
1910
- height: size,
1911
- items: "center",
1912
- justify: "center",
1913
- rounded: radius,
1914
- style: { backgroundColor: color },
1915
- children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: glyph, color: chunkONVERVFG_cjs.asColor("#ffffff") })
1916
- }
1917
- );
1918
- }
1919
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: size, height: size, items: "center", justify: "center", rounded: radius, bg: "$color12", children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: glyph, color: "$color1" }) });
1920
- }
1921
- var KNOWN = {
1922
- openrouter: lucideIcons2.Globe,
1923
- nvidia: lucideIcons2.Cpu
1924
- };
1925
- var isFirstParty = (provider) => {
1926
- const p = provider.trim().toLowerCase();
1927
- return p === "hanzo" || p === "zen";
1928
- };
1929
- function EnsoMark({ size, color }) {
1930
- return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, viewBox: "0 0 100 100", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M66.22 83.26 A37 37 0 1 1 85.57 60.20", fill: "none", stroke: color, strokeWidth: 11, strokeLinecap: "round" }) });
1931
- }
1932
- var HANZO_PATHS = [
1933
- "M22.21 67V44.6369H0V67H22.21Z",
1934
- "M66.7038 22.3184H22.2534L0.0878906 44.6367H44.4634L66.7038 22.3184Z",
1935
- "M22.21 0H0V22.3184H22.21V0Z",
1936
- "M66.7198 0H44.5098V22.3184H66.7198V0Z",
1937
- "M66.7198 67V44.6369H44.5098V67H66.7198Z"
1938
- ];
1939
- function HanzoHMark({ size, color }) {
1940
- return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: size, height: size, viewBox: "0 0 67 67", "aria-hidden": "true", children: HANZO_PATHS.map((d) => /* @__PURE__ */ jsxRuntime.jsx("path", { d, fill: color }, d)) });
1941
- }
1942
- function providerInitials(provider) {
1943
- const name = provider.trim();
1944
- if (!name) return "\u2022";
1945
- const words = name.split(/[\s/_-]+/).filter(Boolean);
1946
- if (words.length >= 2) return (words[0][0] + words[1][0]).toUpperCase();
1947
- return name.slice(0, 2).toUpperCase();
1948
- }
1949
- function ProviderLogo({ provider, size = 24 }) {
1950
- const theme = gui.useTheme();
1951
- const radius = Math.round(size * 0.28);
1952
- const iconSize = Math.round(size * 0.56);
1953
- if (isFirstParty(provider)) {
1954
- const fg = theme.color1?.get() ?? "#000000";
1955
- const markSize = Math.round(size * 0.66);
1956
- const isZen = provider.trim().toLowerCase() === "zen";
1957
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: size, height: size, items: "center", justify: "center", rounded: radius, bg: "$color12", children: isZen ? /* @__PURE__ */ jsxRuntime.jsx(EnsoMark, { size: markSize, color: fg }) : /* @__PURE__ */ jsxRuntime.jsx(HanzoHMark, { size: Math.round(size * 0.56), color: fg }) });
1958
- }
1959
- const Known = KNOWN[provider.trim().toLowerCase()];
1960
- if (Known) {
1961
- return /* @__PURE__ */ jsxRuntime.jsx(
1962
- gui.XStack,
1963
- {
1964
- width: size,
1965
- height: size,
1966
- items: "center",
1967
- justify: "center",
1968
- rounded: radius,
1969
- bg: "$color3",
1970
- borderWidth: 1,
1971
- borderColor: "$borderColor",
1972
- children: /* @__PURE__ */ jsxRuntime.jsx(Known, { size: iconSize, color: "$color11" })
1973
- }
1974
- );
1975
- }
1976
- return /* @__PURE__ */ jsxRuntime.jsx(
1977
- gui.XStack,
1978
- {
1979
- width: size,
1980
- height: size,
1981
- items: "center",
1982
- justify: "center",
1983
- rounded: radius,
1984
- bg: "$color3",
1985
- borderWidth: 1,
1986
- borderColor: "$borderColor",
1987
- children: /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: Math.round(size * 0.4), fontWeight: "800", color: "$color11", children: providerInitials(provider) })
1988
- }
1989
- );
1990
- }
1991
- function GenericLogo({ size = 24 }) {
1992
- return /* @__PURE__ */ jsxRuntime.jsx(gui.XStack, { width: size, height: size, items: "center", justify: "center", rounded: Math.round(size * 0.28), bg: "$color3", borderWidth: 1, borderColor: "$borderColor", children: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.Server, { size: Math.round(size * 0.56), color: "$color11" }) });
1993
- }
1994
- function targetIndex(from, dy, rowH, count) {
1995
- if (rowH <= 0 || count <= 0) return from;
1996
- const raw = from + Math.round(dy / rowH);
1997
- return Math.max(0, Math.min(raw, count - 1));
1998
- }
1999
- function rowShift(i, from, to, dy, rowH) {
2000
- if (i === from) return dy;
2001
- if (from < to && i > from && i <= to) return -rowH;
2002
- if (from > to && i < from && i >= to) return rowH;
2003
- return 0;
2004
- }
2005
- function Reorder({
2006
- items,
2007
- keyOf,
2008
- rowHeight = 44,
2009
- onReorder,
2010
- renderItem
2011
- }) {
2012
- const [drag, setDrag] = react.useState(null);
2013
- const startRef = react.useRef(null);
2014
- const to = drag ? targetIndex(drag.from, drag.dy, rowHeight, items.length) : -1;
2015
- const begin = react.useCallback(
2016
- (index) => (e) => {
2017
- const startY = e.clientY ?? e.nativeEvent?.clientY ?? 0;
2018
- startRef.current = { from: index, startY };
2019
- setDrag({ from: index, dy: 0 });
2020
- const move = (ev) => {
2021
- if (!startRef.current) return;
2022
- setDrag({ from: startRef.current.from, dy: ev.clientY - startRef.current.startY });
2023
- };
2024
- const end = () => {
2025
- const s = startRef.current;
2026
- window.removeEventListener("pointermove", move);
2027
- window.removeEventListener("pointerup", end);
2028
- window.removeEventListener("pointercancel", end);
2029
- startRef.current = null;
2030
- setDrag((d) => {
2031
- if (s && d) {
2032
- const t = targetIndex(s.from, d.dy, rowHeight, items.length);
2033
- if (t !== s.from) onReorder(s.from, t);
2034
- }
2035
- return null;
2036
- });
2037
- };
2038
- window.addEventListener("pointermove", move);
2039
- window.addEventListener("pointerup", end);
2040
- window.addEventListener("pointercancel", end);
2041
- },
2042
- [items.length, rowHeight, onReorder]
2043
- );
2044
- return /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { children: items.map((item, i) => {
2045
- const dragging = drag?.from === i;
2046
- const shift = drag && to >= 0 ? rowShift(i, drag.from, to, drag.dy, rowHeight) : 0;
2047
- return /* @__PURE__ */ jsxRuntime.jsx(
2048
- gui.YStack,
2049
- {
2050
- height: rowHeight,
2051
- justify: "center",
2052
- className: "hz-drag-item",
2053
- style: {
2054
- transform: `translateY(${shift}px)`,
2055
- zIndex: dragging ? 2 : 1,
2056
- ...dragging ? { transition: "none", boxShadow: "0 8px 24px rgba(0,0,0,0.28)" } : null
2057
- },
2058
- children: renderItem(item, { onPointerDown: begin(i) }, dragging)
2059
- },
2060
- keyOf(item)
2061
- );
2062
- }) });
2063
- }
2064
- var ToastContext = react.createContext(null);
2065
- var ACCENT3 = {
2066
- success: "$green10",
2067
- error: "$red10",
2068
- info: "$color11"
2069
- };
2070
- var ICON = {
2071
- success: lucideIcons2.CircleCheck,
2072
- error: lucideIcons2.CircleX,
2073
- info: lucideIcons2.Info
2074
- };
2075
- function ToastCard({ t, onClose }) {
2076
- const Icon = ICON[t.kind];
2077
- const accent = ACCENT3[t.kind];
2078
- return /* @__PURE__ */ jsxRuntime.jsx(
2079
- gui.Card,
2080
- {
2081
- width: 360,
2082
- maxWidth: "90%",
2083
- p: "$3",
2084
- gap: "$2",
2085
- bg: "$color2",
2086
- borderWidth: 1,
2087
- borderColor: "$borderColor",
2088
- borderLeftWidth: 3,
2089
- borderLeftColor: accent,
2090
- rounded: "$4",
2091
- elevation: "$2",
2092
- children: /* @__PURE__ */ jsxRuntime.jsxs(gui.XStack, { gap: "$2.5", items: "flex-start", children: [
2093
- /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { pt: 1, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 18, color: accent }) }),
2094
- /* @__PURE__ */ jsxRuntime.jsxs(gui.YStack, { flex: 1, gap: "$1", children: [
2095
- /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$3", fontWeight: "700", color: "$color12", children: t.title }),
2096
- t.description ? /* @__PURE__ */ jsxRuntime.jsx(gui.Text, { fontSize: "$2", color: "$color11", children: t.description }) : null
2097
- ] }),
2098
- /* @__PURE__ */ jsxRuntime.jsx(gui.Button, { size: "$1", chromeless: true, icon: /* @__PURE__ */ jsxRuntime.jsx(lucideIcons2.X, { size: 14 }), onPress: onClose, "aria-label": "Dismiss" })
2099
- ] })
2100
- }
2101
- );
2102
- }
2103
- function ToastViewport({ toasts, dismiss }) {
2104
- const [mounted, setMounted] = react.useState(false);
2105
- react.useEffect(() => setMounted(true), []);
2106
- if (!mounted || typeof document === "undefined") return null;
2107
- return reactDom.createPortal(
2108
- /* @__PURE__ */ jsxRuntime.jsx("div", { style: { position: "fixed", top: 16, right: 16, zIndex: 1e5, pointerEvents: "none" }, children: /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { gap: "$2", items: "flex-end", children: toasts.map((t) => /* @__PURE__ */ jsxRuntime.jsx(gui.YStack, { pointerEvents: "auto", children: /* @__PURE__ */ jsxRuntime.jsx(ToastCard, { t, onClose: () => dismiss(t.id) }) }, t.id)) }) }),
2109
- document.body
2110
- );
2111
- }
2112
- function ToastProvider({ children }) {
2113
- const track = chunk7XDEUEWI_cjs.useEmit();
2114
- const [toasts, setToasts] = react.useState([]);
2115
- const timers = react.useRef(/* @__PURE__ */ new Map());
2116
- const seq = react.useRef(0);
2117
- const dismiss = react.useCallback((id) => {
2118
- setToasts((ts) => ts.filter((t) => t.id !== id));
2119
- const timer = timers.current.get(id);
2120
- if (timer) {
2121
- clearTimeout(timer);
2122
- timers.current.delete(id);
2123
- }
2124
- }, []);
2125
- const toast = react.useCallback(
2126
- (input) => {
2127
- const id = ++seq.current;
2128
- const kind = input.kind ?? "info";
2129
- const durationMs = input.durationMs ?? (kind === "error" ? 6e3 : 3500);
2130
- track({ component: "Toast", action: kind === "error" ? "error" : "view", id: input.title, value: kind });
2131
- setToasts((ts) => [...ts, { id, kind, title: input.title, description: input.description, durationMs }]);
2132
- if (durationMs > 0) {
2133
- timers.current.set(
2134
- id,
2135
- setTimeout(() => dismiss(id), durationMs)
2136
- );
2137
- }
2138
- },
2139
- [dismiss, track]
2140
- );
2141
- react.useEffect(() => {
2142
- const map = timers.current;
2143
- return () => map.forEach((t) => clearTimeout(t));
2144
- }, []);
2145
- const api = {
2146
- toast,
2147
- success: (title, description) => toast({ title, description, kind: "success" }),
2148
- error: (title, description) => toast({ title, description, kind: "error" }),
2149
- info: (title, description) => toast({ title, description, kind: "info" }),
2150
- dismiss
2151
- };
2152
- return /* @__PURE__ */ jsxRuntime.jsxs(ToastContext.Provider, { value: api, children: [
2153
- children,
2154
- /* @__PURE__ */ jsxRuntime.jsx(ToastViewport, { toasts, dismiss })
2155
- ] });
2156
- }
2157
- function useToast() {
2158
- const ctx = react.useContext(ToastContext);
2159
- if (!ctx) throw new Error("useToast must be used within <ToastProvider>");
2160
- return ctx;
2161
- }
2162
-
2163
- Object.defineProperty(exports, "AgnosticThemeToggle", {
2164
- enumerable: true,
2165
- get: function () { return chunkARV3P4CE_cjs.AgnosticThemeToggle; }
2166
- });
2167
- Object.defineProperty(exports, "ThemeToggle", {
2168
- enumerable: true,
2169
- get: function () { return chunkARV3P4CE_cjs.ThemeToggle; }
2170
- });
2171
- Object.defineProperty(exports, "ThemeToggleNext", {
2172
- enumerable: true,
2173
- get: function () { return chunkARV3P4CE_cjs.ThemeToggleNext; }
2174
- });
2175
- Object.defineProperty(exports, "COMPOSE_MODES", {
2176
- enumerable: true,
2177
- get: function () { return chunkONVERVFG_cjs.COMPOSE_MODES; }
2178
- });
2179
- Object.defineProperty(exports, "CampaignCard", {
2180
- enumerable: true,
2181
- get: function () { return chunkONVERVFG_cjs.CampaignCard; }
2182
- });
2183
- Object.defineProperty(exports, "ChannelBadge", {
2184
- enumerable: true,
2185
- get: function () { return chunkONVERVFG_cjs.ChannelBadge; }
2186
- });
2187
- Object.defineProperty(exports, "DataTable", {
2188
- enumerable: true,
2189
- get: function () { return chunkONVERVFG_cjs.DataTable; }
2190
- });
2191
- Object.defineProperty(exports, "PostAgenda", {
2192
- enumerable: true,
2193
- get: function () { return chunkONVERVFG_cjs.PostAgenda; }
2194
- });
2195
- Object.defineProperty(exports, "PostCard", {
2196
- enumerable: true,
2197
- get: function () { return chunkONVERVFG_cjs.PostCard; }
2198
- });
2199
- Object.defineProperty(exports, "PostComposer", {
2200
- enumerable: true,
2201
- get: function () { return chunkONVERVFG_cjs.PostComposer; }
2202
- });
2203
- Object.defineProperty(exports, "ProviderReadinessList", {
2204
- enumerable: true,
2205
- get: function () { return chunkONVERVFG_cjs.ProviderReadinessList; }
2206
- });
2207
- Object.defineProperty(exports, "SLIDEOVER_LG", {
2208
- enumerable: true,
2209
- get: function () { return chunkONVERVFG_cjs.LG; }
2210
- });
2211
- Object.defineProperty(exports, "SlideOver", {
2212
- enumerable: true,
2213
- get: function () { return chunkONVERVFG_cjs.SlideOver; }
2214
- });
2215
- Object.defineProperty(exports, "SocialResource", {
2216
- enumerable: true,
2217
- get: function () { return chunkONVERVFG_cjs.SocialResource; }
2218
- });
2219
- Object.defineProperty(exports, "SocialSummaryBar", {
2220
- enumerable: true,
2221
- get: function () { return chunkONVERVFG_cjs.SocialSummaryBar; }
2222
- });
2223
- Object.defineProperty(exports, "StatusTag", {
2224
- enumerable: true,
2225
- get: function () { return chunkONVERVFG_cjs.StatusTag; }
2226
- });
2227
- Object.defineProperty(exports, "ViewToggle", {
2228
- enumerable: true,
2229
- get: function () { return chunkONVERVFG_cjs.ViewToggle; }
2230
- });
2231
- Object.defineProperty(exports, "asColor", {
2232
- enumerable: true,
2233
- get: function () { return chunkONVERVFG_cjs.asColor; }
2234
- });
2235
- Object.defineProperty(exports, "formatPostTime", {
2236
- enumerable: true,
2237
- get: function () { return chunkONVERVFG_cjs.formatPostTime; }
2238
- });
2239
- Object.defineProperty(exports, "parsePostTime", {
2240
- enumerable: true,
2241
- get: function () { return chunkONVERVFG_cjs.parsePostTime; }
2242
- });
2243
- Object.defineProperty(exports, "postDayBucket", {
2244
- enumerable: true,
2245
- get: function () { return chunkONVERVFG_cjs.postDayBucket; }
2246
- });
2247
- Object.defineProperty(exports, "postPreview", {
2248
- enumerable: true,
2249
- get: function () { return chunkONVERVFG_cjs.postPreview; }
2250
- });
2251
- Object.defineProperty(exports, "ACCOUNT_STATUSES", {
2252
- enumerable: true,
2253
- get: function () { return chunkMWBFAV3D_cjs.ACCOUNT_STATUSES; }
2254
- });
2255
- Object.defineProperty(exports, "POST_STATUSES", {
2256
- enumerable: true,
2257
- get: function () { return chunkMWBFAV3D_cjs.POST_STATUSES; }
2258
- });
2259
- Object.defineProperty(exports, "PROVIDERS", {
2260
- enumerable: true,
2261
- get: function () { return chunkMWBFAV3D_cjs.PROVIDERS; }
2262
- });
2263
- Object.defineProperty(exports, "createSocialApi", {
2264
- enumerable: true,
2265
- get: function () { return chunkMWBFAV3D_cjs.createSocialApi; }
2266
- });
2267
- Object.defineProperty(exports, "normalizeAccount", {
2268
- enumerable: true,
2269
- get: function () { return chunkMWBFAV3D_cjs.normalizeAccount; }
2270
- });
2271
- Object.defineProperty(exports, "normalizeAccounts", {
2272
- enumerable: true,
2273
- get: function () { return chunkMWBFAV3D_cjs.normalizeAccounts; }
2274
- });
2275
- Object.defineProperty(exports, "normalizePost", {
2276
- enumerable: true,
2277
- get: function () { return chunkMWBFAV3D_cjs.normalizePost; }
2278
- });
2279
- Object.defineProperty(exports, "normalizePosts", {
2280
- enumerable: true,
2281
- get: function () { return chunkMWBFAV3D_cjs.normalizePosts; }
2282
- });
2283
- Object.defineProperty(exports, "normalizeProviderCapability", {
2284
- enumerable: true,
2285
- get: function () { return chunkMWBFAV3D_cjs.normalizeProviderCapability; }
2286
- });
2287
- Object.defineProperty(exports, "normalizeProviders", {
2288
- enumerable: true,
2289
- get: function () { return chunkMWBFAV3D_cjs.normalizeProviders; }
2290
- });
2291
- Object.defineProperty(exports, "normalizeSummary", {
2292
- enumerable: true,
2293
- get: function () { return chunkMWBFAV3D_cjs.normalizeSummary; }
2294
- });
2295
- Object.defineProperty(exports, "SelectMenu", {
2296
- enumerable: true,
2297
- get: function () { return chunkNQUA5YRQ_cjs.SelectMenu; }
2298
- });
2299
- Object.defineProperty(exports, "DropdownMenu", {
2300
- enumerable: true,
2301
- get: function () { return chunkDC52DQ27_cjs.DropdownMenu; }
2302
- });
2303
- Object.defineProperty(exports, "PortalTheme", {
2304
- enumerable: true,
2305
- get: function () { return chunkDC52DQ27_cjs.PortalTheme; }
2306
- });
2307
- Object.defineProperty(exports, "BackendStateCard", {
2308
- enumerable: true,
2309
- get: function () { return chunkWHJR5S4L_cjs.BackendStateCard; }
2310
- });
2311
- Object.defineProperty(exports, "EmptyState", {
2312
- enumerable: true,
2313
- get: function () { return chunkWHJR5S4L_cjs.EmptyState; }
2314
- });
2315
- Object.defineProperty(exports, "FieldRow", {
2316
- enumerable: true,
2317
- get: function () { return chunkWHJR5S4L_cjs.FieldRow; }
2318
- });
2319
- Object.defineProperty(exports, "FieldSelect", {
2320
- enumerable: true,
2321
- get: function () { return chunkWHJR5S4L_cjs.FieldSelect; }
2322
- });
2323
- Object.defineProperty(exports, "FieldSlider", {
2324
- enumerable: true,
2325
- get: function () { return chunkWHJR5S4L_cjs.FieldSlider; }
2326
- });
2327
- Object.defineProperty(exports, "FieldSwitch", {
2328
- enumerable: true,
2329
- get: function () { return chunkWHJR5S4L_cjs.FieldSwitch; }
2330
- });
2331
- Object.defineProperty(exports, "FieldText", {
2332
- enumerable: true,
2333
- get: function () { return chunkWHJR5S4L_cjs.FieldText; }
2334
- });
2335
- Object.defineProperty(exports, "FieldTextArea", {
2336
- enumerable: true,
2337
- get: function () { return chunkWHJR5S4L_cjs.FieldTextArea; }
2338
- });
2339
- Object.defineProperty(exports, "HostProvider", {
2340
- enumerable: true,
2341
- get: function () { return chunkWHJR5S4L_cjs.HostProvider; }
2342
- });
2343
- Object.defineProperty(exports, "PageHeader", {
2344
- enumerable: true,
2345
- get: function () { return chunkWHJR5S4L_cjs.PageHeader; }
2346
- });
2347
- Object.defineProperty(exports, "PrimaryButton", {
2348
- enumerable: true,
2349
- get: function () { return chunkWHJR5S4L_cjs.PrimaryButton; }
2350
- });
2351
- Object.defineProperty(exports, "accentFor", {
2352
- enumerable: true,
2353
- get: function () { return chunkWHJR5S4L_cjs.accentFor; }
2354
- });
2355
- Object.defineProperty(exports, "classifyBackend", {
2356
- enumerable: true,
2357
- get: function () { return chunkWHJR5S4L_cjs.classifyBackend; }
2358
- });
2359
- Object.defineProperty(exports, "classifyRead", {
2360
- enumerable: true,
2361
- get: function () { return chunkWHJR5S4L_cjs.classifyRead; }
2362
- });
2363
- Object.defineProperty(exports, "contrastText", {
2364
- enumerable: true,
2365
- get: function () { return chunkWHJR5S4L_cjs.contrastText; }
2366
- });
2367
- Object.defineProperty(exports, "isHexColor", {
2368
- enumerable: true,
2369
- get: function () { return chunkWHJR5S4L_cjs.isHexColor; }
2370
- });
2371
- Object.defineProperty(exports, "resolveAccent", {
2372
- enumerable: true,
2373
- get: function () { return chunkWHJR5S4L_cjs.resolveAccent; }
2374
- });
2375
- Object.defineProperty(exports, "setOrgAccent", {
2376
- enumerable: true,
2377
- get: function () { return chunkWHJR5S4L_cjs.setOrgAccent; }
2378
- });
2379
- Object.defineProperty(exports, "useAccent", {
2380
- enumerable: true,
2381
- get: function () { return chunkWHJR5S4L_cjs.useAccent; }
2382
- });
2383
- Object.defineProperty(exports, "useHost", {
2384
- enumerable: true,
2385
- get: function () { return chunkWHJR5S4L_cjs.useHost; }
2386
- });
2387
- Object.defineProperty(exports, "InstrumentSurface", {
2388
- enumerable: true,
2389
- get: function () { return chunk7XDEUEWI_cjs.InstrumentSurface; }
2390
- });
2391
- Object.defineProperty(exports, "emit", {
2392
- enumerable: true,
2393
- get: function () { return chunk7XDEUEWI_cjs.emit; }
2394
- });
2395
- Object.defineProperty(exports, "labelOf", {
2396
- enumerable: true,
2397
- get: function () { return chunk7XDEUEWI_cjs.labelOf; }
2398
- });
2399
- Object.defineProperty(exports, "textSize", {
2400
- enumerable: true,
2401
- get: function () { return chunk7XDEUEWI_cjs.textSize; }
2402
- });
2403
- Object.defineProperty(exports, "useEmit", {
2404
- enumerable: true,
2405
- get: function () { return chunk7XDEUEWI_cjs.useEmit; }
2406
- });
2407
- Object.defineProperty(exports, "useSurface", {
2408
- enumerable: true,
2409
- get: function () { return chunk7XDEUEWI_cjs.useSurface; }
2410
- });
2411
- Object.defineProperty(exports, "CustomModelMark", {
2412
- enumerable: true,
2413
- get: function () { return lucideIcons2.Boxes; }
2414
- });
2415
- Object.defineProperty(exports, "TAG_TONES", {
2416
- enumerable: true,
2417
- get: function () { return data.TAG_TONES; }
2418
- });
2419
- Object.defineProperty(exports, "tagTone", {
2420
- enumerable: true,
2421
- get: function () { return data.tagTone; }
2422
- });
2423
- Object.defineProperty(exports, "tokens", {
2424
- enumerable: true,
2425
- get: function () { return data.tokens; }
2426
- });
2427
- exports.AnimatedLogo = AnimatedLogo;
2428
- exports.AppHeader = AppHeader;
2429
- exports.BRANDS = BRANDS;
2430
- exports.BarChart = BarChart;
2431
- exports.BarRows = BarRows;
2432
- exports.BrandMark = BrandMark;
2433
- exports.CHART_OTHER = CHART_OTHER;
2434
- exports.CHART_PALETTE = CHART_PALETTE;
2435
- exports.ComboBox = ComboBox;
2436
- exports.CommerceResource = CommerceResource;
2437
- exports.ConfirmDelete = ConfirmDelete;
2438
- exports.ContextMenu = ContextMenu;
2439
- exports.Donut = Donut;
2440
- exports.DonutRing = Donut2;
2441
- exports.FadeIn = FadeIn;
2442
- exports.FloatingMenu = FloatingMenu;
2443
- exports.GenericLogo = GenericLogo;
2444
- exports.HANZO = HANZO;
2445
- exports.HANZO_MARK_CONTENT = HANZO_MARK_CONTENT;
2446
- exports.HanzoMark = HanzoMark;
2447
- exports.HintButton = HintButton;
2448
- exports.LUX = LUX;
2449
- exports.LegendDot = LegendDot;
2450
- exports.LineChart = LineChart;
2451
- exports.MenuItemView = MenuItemView;
2452
- exports.MenuLabelView = MenuLabelView;
2453
- exports.MenuPanel = MenuPanel;
2454
- exports.MenuSeparatorView = MenuSeparatorView;
2455
- exports.MetricCard = MetricCard;
2456
- exports.MetricSparkline = Sparkline2;
2457
- exports.MiniBars = MiniBars;
2458
- exports.OrgMark = OrgMark;
2459
- exports.OrgSwitcher = OrgSwitcher;
2460
- exports.PARS = PARS;
2461
- exports.Panel = Panel;
2462
- exports.ProductIcon = ProductIcon;
2463
- exports.ProviderLogo = ProviderLogo;
2464
- exports.Reorder = Reorder;
2465
- exports.SERIES = SERIES;
2466
- exports.SURFACES = SURFACES;
2467
- exports.SearchInput = SearchInput;
2468
- exports.Segmented = Segmented;
2469
- exports.SiteFooter = SiteFooter;
2470
- exports.SiteNav = SiteNav;
2471
- exports.Sparkline = Sparkline;
2472
- exports.ToastProvider = ToastProvider;
2473
- exports.UtilBar = UtilBar;
2474
- exports.ZOO = ZOO;
2475
- exports.colorForIndex = colorForIndex;
2476
- exports.filterOptions = filterOptions;
2477
- exports.filterOrgs = filterOrgs;
2478
- exports.isKnownOption = isKnownOption;
2479
- exports.monogram = monogram;
2480
- exports.orgScope = orgScope;
2481
- exports.otherSurfaces = otherSurfaces;
2482
- exports.providerInitials = providerInitials;
2483
- exports.renderMenuItems = renderMenuItems;
2484
- exports.resolveBrand = resolveBrand;
2485
- exports.rowShift = rowShift;
2486
- exports.targetIndex = targetIndex;
2487
- exports.useContainerWidth = useContainerWidth;
2488
- exports.useToast = useToast;
2489
- exports.utilColor = utilColor;
2490
- //# sourceMappingURL=index.cjs.map
2491
- //# sourceMappingURL=index.cjs.map
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.tagTone = exports.TAG_TONES = exports.tokens = exports.ThemeToggleNext = exports.ComboBox = exports.DonutRing = exports.Panel = exports.HintButton = exports.MetricCard = exports.LegendDot = exports.UtilBar = exports.MiniBars = exports.MetricSparkline = exports.utilColor = exports.colorForIndex = exports.SERIES = void 0;
28
+ // Charts the canonical Sparkline + Donut live here (dependency-free inline SVG:
29
+ // hover tooltips, axis ticks, honest null under 2 real points).
30
+ __exportStar(require("./Charts.cjs"), exports);
31
+ // Metric resource-console stat tiles/panels/bars. Its own near-identical
32
+ // Sparkline is preserved as `MetricSparkline` (zero loss; see CONSOLIDATION.md
33
+ // for the eventual single-Sparkline dedup).
34
+ var Metric_1 = require("./Metric.cjs");
35
+ Object.defineProperty(exports, "SERIES", { enumerable: true, get: function () { return Metric_1.SERIES; } });
36
+ Object.defineProperty(exports, "colorForIndex", { enumerable: true, get: function () { return Metric_1.colorForIndex; } });
37
+ Object.defineProperty(exports, "utilColor", { enumerable: true, get: function () { return Metric_1.utilColor; } });
38
+ Object.defineProperty(exports, "MetricSparkline", { enumerable: true, get: function () { return Metric_1.Sparkline; } });
39
+ Object.defineProperty(exports, "MiniBars", { enumerable: true, get: function () { return Metric_1.MiniBars; } });
40
+ Object.defineProperty(exports, "UtilBar", { enumerable: true, get: function () { return Metric_1.UtilBar; } });
41
+ Object.defineProperty(exports, "LegendDot", { enumerable: true, get: function () { return Metric_1.LegendDot; } });
42
+ Object.defineProperty(exports, "MetricCard", { enumerable: true, get: function () { return Metric_1.MetricCard; } });
43
+ Object.defineProperty(exports, "HintButton", { enumerable: true, get: function () { return Metric_1.HintButton; } });
44
+ Object.defineProperty(exports, "Panel", { enumerable: true, get: function () { return Metric_1.Panel; } });
45
+ // Standalone dependency-free ring — aliased to avoid the Charts.Donut clash.
46
+ var Donut_1 = require("./Donut.cjs");
47
+ Object.defineProperty(exports, "DonutRing", { enumerable: true, get: function () { return Donut_1.Donut; } });
48
+ // ComboBox the typeable select. `ComboOption` comes from the ONE pure filter
49
+ // module (ReDoS-safe literal substring), so export the component here and the
50
+ // option type + matchers from there.
51
+ var ComboBox_1 = require("./ComboBox.cjs");
52
+ Object.defineProperty(exports, "ComboBox", { enumerable: true, get: function () { return ComboBox_1.ComboBox; } });
53
+ __exportStar(require("./combobox/filter.cjs"), exports);
54
+ // The shared shell — brand mark, org scope + switcher, app header (the
55
+ // console's org-scope contract + switcher hoisted here; hanzoai/ui#36).
56
+ // `surfaces.data` is the ONE canonical cross-surface list every launcher consumes.
57
+ __exportStar(require("./surfaces.data.cjs"), exports);
58
+ __exportStar(require("./AppHeader.cjs"), exports);
59
+ __exportStar(require("./BrandMark.cjs"), exports);
60
+ __exportStar(require("./OrgMark.cjs"), exports);
61
+ __exportStar(require("./OrgSwitcher.cjs"), exports);
62
+ __exportStar(require("./scope.cjs"), exports);
63
+ // Menu — the ONE menu system: portal-theme-safe DropdownMenu (click) + ContextMenu
64
+ // (right-click), both rendering the SAME item spec (MenuPanel/MenuItemView) so every
65
+ // menu across the fleet is pixel-identical. SelectMenu/ComboBox share the same spec.
66
+ __exportStar(require("./menu/index.cjs"), exports);
67
+ // Site chrome — the RENDERER for @hanzo/products' header/launcher/footer models.
68
+ // That package decides what the navigation is; these two draw it, so every
69
+ // property shares one bar and one footer instead of a hand-written copy each.
70
+ __exportStar(require("./SiteNav.cjs"), exports);
71
+ __exportStar(require("./SiteFooter.cjs"), exports);
72
+ // Admin surface — the honest-state + list layer every admin console renders.
73
+ // `host` is the ONE seam an app injects its router/auth effects through;
74
+ // `CommerceResource` is the ONE store-list surface (console Store + Commerce admin).
75
+ __exportStar(require("./host.cjs"), exports);
76
+ __exportStar(require("./BackendState.cjs"), exports);
77
+ __exportStar(require("./CommerceResource.cjs"), exports);
78
+ __exportStar(require("./ConfirmDelete.cjs"), exports);
79
+ __exportStar(require("./Filters.cjs"), exports);
80
+ // Instrumentation — the ONE place a shared component reports what a user did.
81
+ // Every component above already emits through it, so a product gets the whole
82
+ // interaction vocabulary by rendering the library. Apps only need the optional
83
+ // `<InstrumentSurface value="billing">` to name the area, and `emit` for the
84
+ // one-off moments no shared component can observe.
85
+ __exportStar(require("./instrument.cjs"), exports);
86
+ // The rest — every exported name below is unique across the layer.
87
+ __exportStar(require("./AnimatedLogo.cjs"), exports);
88
+ __exportStar(require("./brand.cjs"), exports);
89
+ __exportStar(require("./DataTable.cjs"), exports);
90
+ __exportStar(require("./EmptyState.cjs"), exports);
91
+ __exportStar(require("./FadeIn.cjs"), exports);
92
+ __exportStar(require("./Field.cjs"), exports);
93
+ __exportStar(require("./HanzoMark.cjs"), exports);
94
+ __exportStar(require("./PageHeader.cjs"), exports);
95
+ __exportStar(require("./PrimaryButton.cjs"), exports);
96
+ __exportStar(require("./ProductIcon.cjs"), exports);
97
+ __exportStar(require("./ProviderLogo.cjs"), exports);
98
+ __exportStar(require("./Reorder.cjs"), exports);
99
+ __exportStar(require("./SelectMenu.cjs"), exports);
100
+ __exportStar(require("./SlideOver.cjs"), exports);
101
+ __exportStar(require("./StatusTag.cjs"), exports);
102
+ __exportStar(require("./ThemeToggle.cjs"), exports);
103
+ var ThemeToggleNext_1 = require("./ThemeToggleNext.cjs");
104
+ Object.defineProperty(exports, "ThemeToggleNext", { enumerable: true, get: function () { return ThemeToggleNext_1.ThemeToggleNext; } });
105
+ __exportStar(require("./Toast.cjs"), exports);
106
+ __exportStar(require("./accent.cjs"), exports);
107
+ __exportStar(require("./color.cjs"), exports);
108
+ // Usage the canonical AI-usage surface (totals, chart, spend-by-model, activity)
109
+ // now lives in ONE home: `@hanzo/usage/panel` (<UsagePanel>). The former meter/card/
110
+ // dashboard kit here was orphaned (zero consumers) and folded into it.
111
+ // Social the publish surface (social.hanzo.ai) as parts: channel/post/campaign
112
+ // cards, the summary bar, the list↔calendar toggle, the agenda, the composer, and
113
+ // the provider-readiness list, over one pure time/preview module.
114
+ __exportStar(require("./social/index.cjs"), exports);
115
+ // The gui/product theme object + tag tones (one source of truth, from
116
+ // @hanzo/data) the theme this layer renders against. Design-token PRIMITIVES
117
+ // (colors, dark/light, radii, spacing) are the runtime-free `@hanzo/ui/core`.
118
+ var data_1 = require("@hanzo/data");
119
+ Object.defineProperty(exports, "tokens", { enumerable: true, get: function () { return data_1.tokens; } });
120
+ Object.defineProperty(exports, "TAG_TONES", { enumerable: true, get: function () { return data_1.TAG_TONES; } });
121
+ Object.defineProperty(exports, "tagTone", { enumerable: true, get: function () { return data_1.tagTone; } });