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