@softov/scena 0.1.2

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 (496) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +42 -0
  3. package/dist/controls/command.d.ts +18 -0
  4. package/dist/controls/command.js +150 -0
  5. package/dist/controls/events.d.ts +3 -0
  6. package/dist/controls/events.js +43 -0
  7. package/dist/controls/index.d.ts +10 -0
  8. package/dist/controls/index.js +10 -0
  9. package/dist/controls/keybinding.d.ts +9 -0
  10. package/dist/controls/keybinding.js +94 -0
  11. package/dist/controls/layout.d.ts +16 -0
  12. package/dist/controls/layout.js +201 -0
  13. package/dist/controls/manifest.d.ts +21 -0
  14. package/dist/controls/manifest.js +219 -0
  15. package/dist/controls/session.d.ts +16 -0
  16. package/dist/controls/session.js +95 -0
  17. package/dist/controls/shell.d.ts +8 -0
  18. package/dist/controls/shell.js +48 -0
  19. package/dist/controls/storage/layout-local.d.ts +6 -0
  20. package/dist/controls/storage/layout-local.js +47 -0
  21. package/dist/controls/storage/session-local.d.ts +5 -0
  22. package/dist/controls/storage/session-local.js +38 -0
  23. package/dist/controls/when.d.ts +7 -0
  24. package/dist/controls/when.js +226 -0
  25. package/dist/converters/a2ui-v0.10.d.ts +23 -0
  26. package/dist/converters/a2ui-v0.10.js +136 -0
  27. package/dist/converters/index.d.ts +1 -0
  28. package/dist/converters/index.js +1 -0
  29. package/dist/core/backends/modus-backend.d.ts +13 -0
  30. package/dist/core/backends/modus-backend.js +115 -0
  31. package/dist/core/backends/storage-backend.d.ts +7 -0
  32. package/dist/core/backends/storage-backend.js +73 -0
  33. package/dist/core/backends/yjs-backend.d.ts +3 -0
  34. package/dist/core/backends/yjs-backend.js +44 -0
  35. package/dist/core/binding-resolver.d.ts +7 -0
  36. package/dist/core/binding-resolver.js +106 -0
  37. package/dist/core/component-graph.d.ts +6 -0
  38. package/dist/core/component-graph.js +77 -0
  39. package/dist/core/component-registry.d.ts +7 -0
  40. package/dist/core/component-registry.js +87 -0
  41. package/dist/core/computed-dsl.d.ts +2 -0
  42. package/dist/core/computed-dsl.js +267 -0
  43. package/dist/core/converter-registry.d.ts +2 -0
  44. package/dist/core/converter-registry.js +37 -0
  45. package/dist/core/disposable.d.ts +3 -0
  46. package/dist/core/disposable.js +19 -0
  47. package/dist/core/dynamic-resolver.d.ts +12 -0
  48. package/dist/core/dynamic-resolver.js +134 -0
  49. package/dist/core/index.d.ts +44 -0
  50. package/dist/core/index.js +48 -0
  51. package/dist/core/label.d.ts +2 -0
  52. package/dist/core/label.js +14 -0
  53. package/dist/core/mount-menu.d.ts +2 -0
  54. package/dist/core/mount-menu.js +23 -0
  55. package/dist/core/mount-surface.d.ts +15 -0
  56. package/dist/core/mount-surface.js +214 -0
  57. package/dist/core/path-resolver.d.ts +14 -0
  58. package/dist/core/path-resolver.js +169 -0
  59. package/dist/core/permissions.d.ts +2 -0
  60. package/dist/core/permissions.js +50 -0
  61. package/dist/core/reactive-store.d.ts +17 -0
  62. package/dist/core/reactive-store.js +496 -0
  63. package/dist/core/scena.d.ts +2 -0
  64. package/dist/core/scena.js +115 -0
  65. package/dist/core/surface-presentation.d.ts +6 -0
  66. package/dist/core/surface-presentation.js +12 -0
  67. package/dist/i18n/i18n-backend.d.ts +2 -0
  68. package/dist/i18n/i18n-backend.js +35 -0
  69. package/dist/i18n/registry.d.ts +32 -0
  70. package/dist/i18n/registry.js +200 -0
  71. package/dist/porta/Limen.css +50 -0
  72. package/dist/porta/Limen.d.ts +16 -0
  73. package/dist/porta/Limen.js +14 -0
  74. package/dist/porta/PortaContext.d.ts +10 -0
  75. package/dist/porta/PortaContext.js +20 -0
  76. package/dist/porta/PortaLock.css +14 -0
  77. package/dist/porta/PortaLock.d.ts +10 -0
  78. package/dist/porta/PortaLock.js +13 -0
  79. package/dist/porta/SigillumGate.d.ts +8 -0
  80. package/dist/porta/SigillumGate.js +7 -0
  81. package/dist/porta/commands.d.ts +3 -0
  82. package/dist/porta/commands.js +125 -0
  83. package/dist/porta/index.d.ts +18 -0
  84. package/dist/porta/index.js +22 -0
  85. package/dist/porta/login-form.block.d.ts +2 -0
  86. package/dist/porta/login-form.block.js +7 -0
  87. package/dist/porta/match.d.ts +2 -0
  88. package/dist/porta/match.js +20 -0
  89. package/dist/porta/provider.d.ts +59 -0
  90. package/dist/porta/provider.js +1 -0
  91. package/dist/porta/providers/examples/google-oauth.d.ts +6 -0
  92. package/dist/porta/providers/examples/google-oauth.js +21 -0
  93. package/dist/porta/providers/examples/index.d.ts +6 -0
  94. package/dist/porta/providers/examples/index.js +3 -0
  95. package/dist/porta/providers/examples/magic-link.d.ts +8 -0
  96. package/dist/porta/providers/examples/magic-link.js +31 -0
  97. package/dist/porta/providers/examples/sms-otp.d.ts +9 -0
  98. package/dist/porta/providers/examples/sms-otp.js +31 -0
  99. package/dist/porta/providers/password.d.ts +12 -0
  100. package/dist/porta/providers/password.js +46 -0
  101. package/dist/porta/register-blocks.d.ts +3 -0
  102. package/dist/porta/register-blocks.js +31 -0
  103. package/dist/porta/register.d.ts +15 -0
  104. package/dist/porta/register.js +31 -0
  105. package/dist/porta/sigillum.d.ts +19 -0
  106. package/dist/porta/sigillum.js +41 -0
  107. package/dist/react/DefaultShell.d.ts +1 -0
  108. package/dist/react/DefaultShell.js +37 -0
  109. package/dist/react/Scena.d.ts +9 -0
  110. package/dist/react/Scena.js +20 -0
  111. package/dist/react/ScenaProvider.d.ts +8 -0
  112. package/dist/react/ScenaProvider.js +13 -0
  113. package/dist/react/ShellSplitter.d.ts +13 -0
  114. package/dist/react/ShellSplitter.js +88 -0
  115. package/dist/react/SurfaceArea.d.ts +13 -0
  116. package/dist/react/SurfaceArea.js +75 -0
  117. package/dist/react/Translate.d.ts +8 -0
  118. package/dist/react/Translate.js +10 -0
  119. package/dist/react/ViewMount.d.ts +12 -0
  120. package/dist/react/ViewMount.js +268 -0
  121. package/dist/react/core.d.ts +6 -0
  122. package/dist/react/core.js +10 -0
  123. package/dist/react/hooks/useCommand.d.ts +1 -0
  124. package/dist/react/hooks/useCommand.js +6 -0
  125. package/dist/react/hooks/useI18n.d.ts +9 -0
  126. package/dist/react/hooks/useI18n.js +16 -0
  127. package/dist/react/hooks/useLabel.d.ts +2 -0
  128. package/dist/react/hooks/useLabel.js +19 -0
  129. package/dist/react/hooks/useLayout.d.ts +2 -0
  130. package/dist/react/hooks/useLayout.js +10 -0
  131. package/dist/react/hooks/useMounts.d.ts +2 -0
  132. package/dist/react/hooks/useMounts.js +17 -0
  133. package/dist/react/hooks/useStore.d.ts +3 -0
  134. package/dist/react/hooks/useStore.js +40 -0
  135. package/dist/react/hooks/useStoreLabel.d.ts +3 -0
  136. package/dist/react/hooks/useStoreLabel.js +25 -0
  137. package/dist/react/hooks/useSurfacePresentation.d.ts +4 -0
  138. package/dist/react/hooks/useSurfacePresentation.js +16 -0
  139. package/dist/react/index.d.ts +20 -0
  140. package/dist/react/index.js +20 -0
  141. package/dist/react/mount-context.d.ts +8 -0
  142. package/dist/react/mount-context.js +20 -0
  143. package/dist/react/useSurfaceResize.d.ts +39 -0
  144. package/dist/react/useSurfaceResize.js +135 -0
  145. package/dist/runtime/args-schema.d.ts +11 -0
  146. package/dist/runtime/args-schema.js +45 -0
  147. package/dist/runtime/builtins.d.ts +3 -0
  148. package/dist/runtime/builtins.js +193 -0
  149. package/dist/runtime/client-handlers.d.ts +3 -0
  150. package/dist/runtime/client-handlers.js +19 -0
  151. package/dist/runtime/in-memory-socket.d.ts +7 -0
  152. package/dist/runtime/in-memory-socket.js +53 -0
  153. package/dist/runtime/index.d.ts +10 -0
  154. package/dist/runtime/index.js +7 -0
  155. package/dist/runtime/layout-commands.d.ts +5 -0
  156. package/dist/runtime/layout-commands.js +548 -0
  157. package/dist/runtime/opener-commands.d.ts +17 -0
  158. package/dist/runtime/opener-commands.js +96 -0
  159. package/dist/runtime/surface-bridge.d.ts +15 -0
  160. package/dist/runtime/surface-bridge.js +116 -0
  161. package/dist/styles/bar.css +155 -0
  162. package/dist/styles/base.css +285 -0
  163. package/dist/styles/geometry.css +32 -0
  164. package/dist/styles/index.d.ts +29 -0
  165. package/dist/styles/index.js +109 -0
  166. package/dist/styles/scrollbar.css +45 -0
  167. package/dist/styles/surface.css +179 -0
  168. package/dist/styles/theme.css +3 -0
  169. package/dist/styles/themes/dark.css +30 -0
  170. package/dist/styles/themes/light.css +1 -0
  171. package/dist/styles/themes/tokens.css +222 -0
  172. package/dist/types/binding-resolver.d.ts +30 -0
  173. package/dist/types/binding-resolver.js +1 -0
  174. package/dist/types/colors.d.ts +7 -0
  175. package/dist/types/colors.js +59 -0
  176. package/dist/types/command.d.ts +62 -0
  177. package/dist/types/command.js +1 -0
  178. package/dist/types/component-graph.d.ts +72 -0
  179. package/dist/types/component-graph.js +40 -0
  180. package/dist/types/component-registry.d.ts +70 -0
  181. package/dist/types/component-registry.js +1 -0
  182. package/dist/types/converter-registry.d.ts +17 -0
  183. package/dist/types/converter-registry.js +1 -0
  184. package/dist/types/disposable.d.ts +3 -0
  185. package/dist/types/disposable.js +1 -0
  186. package/dist/types/events.d.ts +75 -0
  187. package/dist/types/events.js +1 -0
  188. package/dist/types/host.d.ts +50 -0
  189. package/dist/types/host.js +1 -0
  190. package/dist/types/index.d.ts +23 -0
  191. package/dist/types/index.js +23 -0
  192. package/dist/types/keybinding.d.ts +36 -0
  193. package/dist/types/keybinding.js +1 -0
  194. package/dist/types/label.d.ts +9 -0
  195. package/dist/types/label.js +1 -0
  196. package/dist/types/layout.d.ts +117 -0
  197. package/dist/types/layout.js +1 -0
  198. package/dist/types/manifest.d.ts +152 -0
  199. package/dist/types/manifest.js +1 -0
  200. package/dist/types/mount-menu.d.ts +8 -0
  201. package/dist/types/mount-menu.js +1 -0
  202. package/dist/types/mount-surface.d.ts +87 -0
  203. package/dist/types/mount-surface.js +1 -0
  204. package/dist/types/permissions.d.ts +18 -0
  205. package/dist/types/permissions.js +1 -0
  206. package/dist/types/query.d.ts +34 -0
  207. package/dist/types/query.js +7 -0
  208. package/dist/types/reactive-store.d.ts +39 -0
  209. package/dist/types/reactive-store.js +1 -0
  210. package/dist/types/scena.d.ts +53 -0
  211. package/dist/types/scena.js +1 -0
  212. package/dist/types/scope-backend.d.ts +16 -0
  213. package/dist/types/scope-backend.js +1 -0
  214. package/dist/types/session.d.ts +39 -0
  215. package/dist/types/session.js +1 -0
  216. package/dist/types/shell.d.ts +21 -0
  217. package/dist/types/shell.js +1 -0
  218. package/dist/types/when.d.ts +10 -0
  219. package/dist/types/when.js +1 -0
  220. package/dist/ui/_utils.d.ts +8 -0
  221. package/dist/ui/_utils.js +53 -0
  222. package/dist/ui/campus/CampusMappa.d.ts +18 -0
  223. package/dist/ui/campus/CampusMappa.js +106 -0
  224. package/dist/ui/campus/CampusNodus.d.ts +25 -0
  225. package/dist/ui/campus/CampusNodus.js +211 -0
  226. package/dist/ui/campus/CampusStratum.d.ts +13 -0
  227. package/dist/ui/campus/CampusStratum.js +20 -0
  228. package/dist/ui/campus/CampusVelum.d.ts +7 -0
  229. package/dist/ui/campus/CampusVelum.js +12 -0
  230. package/dist/ui/campus/CampusView.d.ts +27 -0
  231. package/dist/ui/campus/CampusView.js +420 -0
  232. package/dist/ui/campus/context.d.ts +13 -0
  233. package/dist/ui/campus/context.js +12 -0
  234. package/dist/ui/campus/index.d.ts +14 -0
  235. package/dist/ui/campus/index.js +11 -0
  236. package/dist/ui/campus/stratum-context.d.ts +2 -0
  237. package/dist/ui/campus/stratum-context.js +10 -0
  238. package/dist/ui/campus/types.d.ts +47 -0
  239. package/dist/ui/campus/types.js +4 -0
  240. package/dist/ui/chart/BarChart.css +53 -0
  241. package/dist/ui/chart/BarChart.d.ts +24 -0
  242. package/dist/ui/chart/BarChart.js +32 -0
  243. package/dist/ui/chart/Donut.css +15 -0
  244. package/dist/ui/chart/Donut.d.ts +15 -0
  245. package/dist/ui/chart/Donut.js +18 -0
  246. package/dist/ui/chart/LineChart.css +8 -0
  247. package/dist/ui/chart/LineChart.d.ts +24 -0
  248. package/dist/ui/chart/LineChart.js +29 -0
  249. package/dist/ui/chart/catalog.d.ts +2 -0
  250. package/dist/ui/chart/catalog.js +7 -0
  251. package/dist/ui/chart/index.d.ts +6 -0
  252. package/dist/ui/chart/index.js +4 -0
  253. package/dist/ui/control/Button.css +7 -0
  254. package/dist/ui/control/Button.d.ts +17 -0
  255. package/dist/ui/control/Button.js +17 -0
  256. package/dist/ui/control/CheckBox.css +16 -0
  257. package/dist/ui/control/CheckBox.d.ts +15 -0
  258. package/dist/ui/control/CheckBox.js +23 -0
  259. package/dist/ui/control/Checks.css +6 -0
  260. package/dist/ui/control/Checks.d.ts +9 -0
  261. package/dist/ui/control/Checks.js +10 -0
  262. package/dist/ui/control/ChoicePicker.css +16 -0
  263. package/dist/ui/control/ChoicePicker.d.ts +25 -0
  264. package/dist/ui/control/ChoicePicker.js +38 -0
  265. package/dist/ui/control/DateTimeInput.css +1 -0
  266. package/dist/ui/control/DateTimeInput.d.ts +22 -0
  267. package/dist/ui/control/DateTimeInput.js +41 -0
  268. package/dist/ui/control/LocaleToggle.css +38 -0
  269. package/dist/ui/control/LocaleToggle.d.ts +11 -0
  270. package/dist/ui/control/LocaleToggle.js +23 -0
  271. package/dist/ui/control/ReloadButton.d.ts +6 -0
  272. package/dist/ui/control/ReloadButton.js +9 -0
  273. package/dist/ui/control/Slider.css +2 -0
  274. package/dist/ui/control/Slider.d.ts +21 -0
  275. package/dist/ui/control/Slider.js +37 -0
  276. package/dist/ui/control/TextField.css +0 -0
  277. package/dist/ui/control/TextField.d.ts +25 -0
  278. package/dist/ui/control/TextField.js +36 -0
  279. package/dist/ui/control/_field-parts.css +102 -0
  280. package/dist/ui/control/_field-parts.d.ts +15 -0
  281. package/dist/ui/control/_field-parts.js +17 -0
  282. package/dist/ui/control/catalog.d.ts +2 -0
  283. package/dist/ui/control/catalog.js +10 -0
  284. package/dist/ui/control/index.d.ts +13 -0
  285. package/dist/ui/control/index.js +11 -0
  286. package/dist/ui/data/DataTable.d.ts +19 -0
  287. package/dist/ui/data/DataTable.js +20 -0
  288. package/dist/ui/data/Filter.d.ts +13 -0
  289. package/dist/ui/data/Filter.js +56 -0
  290. package/dist/ui/data/List.css +16 -0
  291. package/dist/ui/data/List.d.ts +15 -0
  292. package/dist/ui/data/List.js +18 -0
  293. package/dist/ui/data/Listable.css +245 -0
  294. package/dist/ui/data/Listable.d.ts +60 -0
  295. package/dist/ui/data/Listable.js +209 -0
  296. package/dist/ui/data/Pagination.d.ts +5 -0
  297. package/dist/ui/data/Pagination.js +43 -0
  298. package/dist/ui/data/Tree.css +118 -0
  299. package/dist/ui/data/Tree.d.ts +45 -0
  300. package/dist/ui/data/Tree.js +170 -0
  301. package/dist/ui/data/catalog.d.ts +2 -0
  302. package/dist/ui/data/catalog.js +7 -0
  303. package/dist/ui/data/index.d.ts +11 -0
  304. package/dist/ui/data/index.js +7 -0
  305. package/dist/ui/display/AddPlaceholder.d.ts +6 -0
  306. package/dist/ui/display/AddPlaceholder.js +24 -0
  307. package/dist/ui/display/Alert.css +42 -0
  308. package/dist/ui/display/Alert.d.ts +14 -0
  309. package/dist/ui/display/Alert.js +13 -0
  310. package/dist/ui/display/Avatar.css +19 -0
  311. package/dist/ui/display/Avatar.d.ts +16 -0
  312. package/dist/ui/display/Avatar.js +52 -0
  313. package/dist/ui/display/Badge.css +26 -0
  314. package/dist/ui/display/Badge.d.ts +16 -0
  315. package/dist/ui/display/Badge.js +9 -0
  316. package/dist/ui/display/Card.css +15 -0
  317. package/dist/ui/display/Card.d.ts +11 -0
  318. package/dist/ui/display/Card.js +8 -0
  319. package/dist/ui/display/DetailContainer.d.ts +6 -0
  320. package/dist/ui/display/DetailContainer.js +7 -0
  321. package/dist/ui/display/DetailHeader.css +53 -0
  322. package/dist/ui/display/DetailHeader.d.ts +22 -0
  323. package/dist/ui/display/DetailHeader.js +8 -0
  324. package/dist/ui/display/DetailList.css +26 -0
  325. package/dist/ui/display/DetailList.d.ts +13 -0
  326. package/dist/ui/display/DetailList.js +5 -0
  327. package/dist/ui/display/DetailNotFound.d.ts +17 -0
  328. package/dist/ui/display/DetailNotFound.js +39 -0
  329. package/dist/ui/display/Divider.css +6 -0
  330. package/dist/ui/display/Divider.d.ts +8 -0
  331. package/dist/ui/display/Divider.js +16 -0
  332. package/dist/ui/display/Divisor.css +30 -0
  333. package/dist/ui/display/Divisor.d.ts +11 -0
  334. package/dist/ui/display/Divisor.js +43 -0
  335. package/dist/ui/display/Icon.css +10 -0
  336. package/dist/ui/display/Icon.d.ts +14 -0
  337. package/dist/ui/display/Icon.js +144 -0
  338. package/dist/ui/display/Image.css +1 -0
  339. package/dist/ui/display/Image.d.ts +16 -0
  340. package/dist/ui/display/Image.js +19 -0
  341. package/dist/ui/display/Markdown.css +38 -0
  342. package/dist/ui/display/Markdown.d.ts +8 -0
  343. package/dist/ui/display/Markdown.js +140 -0
  344. package/dist/ui/display/Progress.css +39 -0
  345. package/dist/ui/display/Progress.d.ts +15 -0
  346. package/dist/ui/display/Progress.js +17 -0
  347. package/dist/ui/display/SectionTitle.d.ts +6 -0
  348. package/dist/ui/display/SectionTitle.js +6 -0
  349. package/dist/ui/display/Skeleton.css +20 -0
  350. package/dist/ui/display/Skeleton.d.ts +11 -0
  351. package/dist/ui/display/Skeleton.js +11 -0
  352. package/dist/ui/display/Spinner.css +20 -0
  353. package/dist/ui/display/Spinner.d.ts +12 -0
  354. package/dist/ui/display/Spinner.js +12 -0
  355. package/dist/ui/display/Svg.d.ts +13 -0
  356. package/dist/ui/display/Svg.js +17 -0
  357. package/dist/ui/display/Text.css +20 -0
  358. package/dist/ui/display/Text.d.ts +13 -0
  359. package/dist/ui/display/Text.js +15 -0
  360. package/dist/ui/display/catalog.d.ts +2 -0
  361. package/dist/ui/display/catalog.js +12 -0
  362. package/dist/ui/display/index.d.ts +22 -0
  363. package/dist/ui/display/index.js +14 -0
  364. package/dist/ui/embed/HtmlEmbed.d.ts +12 -0
  365. package/dist/ui/embed/HtmlEmbed.js +16 -0
  366. package/dist/ui/embed/index.d.ts +2 -0
  367. package/dist/ui/embed/index.js +1 -0
  368. package/dist/ui/forms/DangerZone.d.ts +8 -0
  369. package/dist/ui/forms/DangerZone.js +31 -0
  370. package/dist/ui/forms/Field.css +15 -0
  371. package/dist/ui/forms/Field.d.ts +28 -0
  372. package/dist/ui/forms/Field.js +25 -0
  373. package/dist/ui/forms/FieldGroup.css +15 -0
  374. package/dist/ui/forms/FieldGroup.d.ts +7 -0
  375. package/dist/ui/forms/FieldGroup.js +7 -0
  376. package/dist/ui/forms/Form.css +14 -0
  377. package/dist/ui/forms/Form.d.ts +18 -0
  378. package/dist/ui/forms/Form.js +17 -0
  379. package/dist/ui/forms/FormActions.css +11 -0
  380. package/dist/ui/forms/FormActions.d.ts +18 -0
  381. package/dist/ui/forms/FormActions.js +10 -0
  382. package/dist/ui/forms/FormSection.css +19 -0
  383. package/dist/ui/forms/FormSection.d.ts +7 -0
  384. package/dist/ui/forms/FormSection.js +7 -0
  385. package/dist/ui/forms/LoginForm.css +105 -0
  386. package/dist/ui/forms/LoginForm.d.ts +12 -0
  387. package/dist/ui/forms/LoginForm.js +137 -0
  388. package/dist/ui/forms/SchemaForm.css +81 -0
  389. package/dist/ui/forms/SchemaForm.d.ts +26 -0
  390. package/dist/ui/forms/SchemaForm.js +186 -0
  391. package/dist/ui/forms/SettingsContainer.d.ts +8 -0
  392. package/dist/ui/forms/SettingsContainer.js +8 -0
  393. package/dist/ui/forms/catalog.d.ts +2 -0
  394. package/dist/ui/forms/catalog.js +11 -0
  395. package/dist/ui/forms/index.d.ts +19 -0
  396. package/dist/ui/forms/index.js +12 -0
  397. package/dist/ui/forms/schema-walk.d.ts +50 -0
  398. package/dist/ui/forms/schema-walk.js +116 -0
  399. package/dist/ui/index.d.ts +58 -0
  400. package/dist/ui/index.js +63 -0
  401. package/dist/ui/layout/BarLayout.d.ts +2 -0
  402. package/dist/ui/layout/BarLayout.js +18 -0
  403. package/dist/ui/layout/Column.css +6 -0
  404. package/dist/ui/layout/Column.d.ts +12 -0
  405. package/dist/ui/layout/Column.js +13 -0
  406. package/dist/ui/layout/FloatingLayout.d.ts +2 -0
  407. package/dist/ui/layout/FloatingLayout.js +12 -0
  408. package/dist/ui/layout/Grid.css +5 -0
  409. package/dist/ui/layout/Grid.d.ts +13 -0
  410. package/dist/ui/layout/Grid.js +19 -0
  411. package/dist/ui/layout/InlineLayout.d.ts +2 -0
  412. package/dist/ui/layout/InlineLayout.js +13 -0
  413. package/dist/ui/layout/MountTitle.d.ts +12 -0
  414. package/dist/ui/layout/MountTitle.js +42 -0
  415. package/dist/ui/layout/RailLayout.d.ts +2 -0
  416. package/dist/ui/layout/RailLayout.js +38 -0
  417. package/dist/ui/layout/Row.css +16 -0
  418. package/dist/ui/layout/Row.d.ts +13 -0
  419. package/dist/ui/layout/Row.js +21 -0
  420. package/dist/ui/layout/SectionHeader.d.ts +10 -0
  421. package/dist/ui/layout/SectionHeader.js +65 -0
  422. package/dist/ui/layout/SingleLayout.d.ts +2 -0
  423. package/dist/ui/layout/SingleLayout.js +25 -0
  424. package/dist/ui/layout/SpatialCard.d.ts +9 -0
  425. package/dist/ui/layout/SpatialCard.js +30 -0
  426. package/dist/ui/layout/SpatialLayout.d.ts +2 -0
  427. package/dist/ui/layout/SpatialLayout.js +446 -0
  428. package/dist/ui/layout/SplitLayout.d.ts +2 -0
  429. package/dist/ui/layout/SplitLayout.js +159 -0
  430. package/dist/ui/layout/Splitter.d.ts +12 -0
  431. package/dist/ui/layout/Splitter.js +64 -0
  432. package/dist/ui/layout/StackHeader.d.ts +9 -0
  433. package/dist/ui/layout/StackHeader.js +87 -0
  434. package/dist/ui/layout/StackLayout.d.ts +2 -0
  435. package/dist/ui/layout/StackLayout.js +137 -0
  436. package/dist/ui/layout/TabLayout.d.ts +2 -0
  437. package/dist/ui/layout/TabLayout.js +145 -0
  438. package/dist/ui/layout/TabPanelLayout.d.ts +20 -0
  439. package/dist/ui/layout/TabPanelLayout.js +615 -0
  440. package/dist/ui/layout/catalog.d.ts +2 -0
  441. package/dist/ui/layout/catalog.js +10 -0
  442. package/dist/ui/layout/index.d.ts +17 -0
  443. package/dist/ui/layout/index.js +17 -0
  444. package/dist/ui/layout/register.d.ts +3 -0
  445. package/dist/ui/layout/register.js +25 -0
  446. package/dist/ui/media/Audio.css +1 -0
  447. package/dist/ui/media/Audio.d.ts +12 -0
  448. package/dist/ui/media/Audio.js +8 -0
  449. package/dist/ui/media/Video.css +1 -0
  450. package/dist/ui/media/Video.d.ts +16 -0
  451. package/dist/ui/media/Video.js +9 -0
  452. package/dist/ui/media/catalog.d.ts +2 -0
  453. package/dist/ui/media/catalog.js +5 -0
  454. package/dist/ui/media/index.d.ts +2 -0
  455. package/dist/ui/media/index.js +3 -0
  456. package/dist/ui/menu/ActionList.css +262 -0
  457. package/dist/ui/menu/ActionList.d.ts +19 -0
  458. package/dist/ui/menu/ActionList.js +369 -0
  459. package/dist/ui/menu/ContainerMenu.d.ts +13 -0
  460. package/dist/ui/menu/ContainerMenu.js +57 -0
  461. package/dist/ui/menu/ContextMenu.d.ts +27 -0
  462. package/dist/ui/menu/ContextMenu.js +93 -0
  463. package/dist/ui/menu/index.d.ts +10 -0
  464. package/dist/ui/menu/index.js +7 -0
  465. package/dist/ui/menu/token.d.ts +22 -0
  466. package/dist/ui/menu/token.js +145 -0
  467. package/dist/ui/menu/useChatPicker.d.ts +24 -0
  468. package/dist/ui/menu/useChatPicker.js +210 -0
  469. package/dist/ui/navigation/Breadcrumb.css +30 -0
  470. package/dist/ui/navigation/Breadcrumb.d.ts +14 -0
  471. package/dist/ui/navigation/Breadcrumb.js +12 -0
  472. package/dist/ui/navigation/Link.css +13 -0
  473. package/dist/ui/navigation/Link.d.ts +18 -0
  474. package/dist/ui/navigation/Link.js +43 -0
  475. package/dist/ui/navigation/Tabs.css +39 -0
  476. package/dist/ui/navigation/Tabs.d.ts +18 -0
  477. package/dist/ui/navigation/Tabs.js +55 -0
  478. package/dist/ui/navigation/Toolbar.css +25 -0
  479. package/dist/ui/navigation/Toolbar.d.ts +12 -0
  480. package/dist/ui/navigation/Toolbar.js +21 -0
  481. package/dist/ui/navigation/catalog.d.ts +2 -0
  482. package/dist/ui/navigation/catalog.js +5 -0
  483. package/dist/ui/navigation/index.d.ts +8 -0
  484. package/dist/ui/navigation/index.js +5 -0
  485. package/dist/ui/overlay/Modal.css +35 -0
  486. package/dist/ui/overlay/Modal.d.ts +12 -0
  487. package/dist/ui/overlay/Modal.js +57 -0
  488. package/dist/ui/overlay/Popup.d.ts +12 -0
  489. package/dist/ui/overlay/Popup.js +74 -0
  490. package/dist/ui/overlay/catalog.d.ts +2 -0
  491. package/dist/ui/overlay/catalog.js +4 -0
  492. package/dist/ui/overlay/index.d.ts +1 -0
  493. package/dist/ui/overlay/index.js +2 -0
  494. package/dist/ui/register.d.ts +6 -0
  495. package/dist/ui/register.js +26 -0
  496. package/package.json +115 -0
@@ -0,0 +1,10 @@
1
+ .oo-icon {
2
+ display: inline-block;
3
+ line-height: 1;
4
+ /* display: inline-flex; */
5
+ align-items: center;
6
+ justify-content: center;
7
+ min-width: 14px;
8
+ flex-shrink: 0;
9
+ color: rgb(var(--oo-color, var(--oo-color-muted)));
10
+ }
@@ -0,0 +1,14 @@
1
+ import type { CSSProperties } from 'react';
2
+ import './Icon.css';
3
+ export declare function toMonochromeEmoji(input: string): string;
4
+ export declare const NAMED_GLYPH: Record<string, string>;
5
+ export type IconName = keyof typeof NAMED_GLYPH;
6
+ export interface IconProps {
7
+ name?: IconName | string | {
8
+ path: string;
9
+ };
10
+ size?: number;
11
+ color?: string;
12
+ style?: CSSProperties;
13
+ }
14
+ export declare function Icon({ name, size, color, style }: IconProps): import("react").JSX.Element;
@@ -0,0 +1,144 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './Icon.css';
3
+ // a2ui v0.10: `name` is required and is either a known enum value (~58 names)
4
+ // OR an object `{ path: <svg path> }` for custom SVG glyphs. scena also
5
+ // tolerates a freeform string (any unicode/emoji glyph) as a scena extension.
6
+ const VS_TEXT = '\uFE0E'; // text / monochrome request
7
+ const VS_EMOJI = '\uFE0F'; // emoji / color request
8
+ // Emoji-ish chars that commonly accept FE0E.
9
+ // Includes pictographic emoji + older symbol emoji like ⏰, ⚙, ★, etc.
10
+ const TEXT_VARIANT_TARGET = /[\p{Extended_Pictographic}\u2194-\u21AA\u231A-\u231B\u23E9-\u23F3\u2460-\u24FF\u25A0-\u25FF\u2600-\u27BF\u2B00-\u2BFF]/u;
11
+ export function toMonochromeEmoji(input) {
12
+ const chars = Array.from(String(input));
13
+ let out = '';
14
+ for (let i = 0; i < chars.length; i++) {
15
+ const ch = chars[i];
16
+ // Convert FE0F -> FE0E
17
+ if (ch === VS_EMOJI) {
18
+ out += VS_TEXT;
19
+ continue;
20
+ }
21
+ // Keep existing FE0E
22
+ if (ch === VS_TEXT) {
23
+ out += ch;
24
+ continue;
25
+ }
26
+ out += ch;
27
+ // If char can use text presentation and does not already have a selector,
28
+ // append FE0E.
29
+ const next = chars[i + 1];
30
+ if (TEXT_VARIANT_TARGET.test(ch) && next !== VS_TEXT && next !== VS_EMOJI) {
31
+ out += VS_TEXT;
32
+ }
33
+ }
34
+ return out;
35
+ }
36
+ // Unicode glyph fallback for the enum names. Until a real font / SVG sprite
37
+ // registry lands, this gives `{name:'check'}` a sensible rendering.
38
+ export const NAMED_GLYPH = {
39
+ accountCircle: '\u{1F464}',
40
+ add: '+',
41
+ // add: '+',
42
+ arrowBack: '←',
43
+ arrowDown: '↓',
44
+ arrowForward: '→',
45
+ arrowLeft: '←',
46
+ arrowRight: '→',
47
+ arrowUp: '↑',
48
+ // attachFile: '\u{1F4CE}',
49
+ attachFile: toMonochromeEmoji('📎'), // 📎
50
+ calendarToday: toMonochromeEmoji('\u{1F4C5}'),
51
+ call: toMonochromeEmoji('\u{1F4DE}'),
52
+ camera: toMonochromeEmoji('\u{1F4F7}'),
53
+ // camera: toMonochromeEmoji('📸'), // 📸
54
+ chatModeAsk: toMonochromeEmoji('❓'), // ❓ 💬
55
+ chatModeAuto: toMonochromeEmoji('⚡'), // ⚡
56
+ chatModeDirect: toMonochromeEmoji('📨'), // 📨
57
+ chatModePlan: '🗒',
58
+ check: '✓',
59
+ chevronDown: '⮟',
60
+ chevronUp: '⮝',
61
+ close: '✕',
62
+ // close: toMonochromeEmoji('×'), // ×
63
+ closePanel: '⨉',
64
+ copy: '⎘',
65
+ cut: '✂',
66
+ delete: '🗑',
67
+ // delete: toMonochromeEmoji('⌫'), // ⌫
68
+ // download: '↓',
69
+ download: toMonochromeEmoji('⏬'), // ⏬
70
+ edit: '✎',
71
+ error: '!',
72
+ event: toMonochromeEmoji('\u{1F4C5}'),
73
+ fastForward: toMonochromeEmoji('⏩'),
74
+ favorite: '♥',
75
+ favoriteOff: '♡',
76
+ fileText: '▤',
77
+ folder: toMonochromeEmoji('\u{1F4C1}'),
78
+ folderNormal: toMonochromeEmoji('📁'), // 📁︎
79
+ folderOpen: toMonochromeEmoji('📂'), // 📂︎
80
+ help: '?',
81
+ home: '⌂',
82
+ imageVideo: '🖼', // 🖼
83
+ info: 'ℹ',
84
+ locationOn: toMonochromeEmoji('\u{1F4CD}'),
85
+ lock: toMonochromeEmoji('🔒'),
86
+ lockOpen: toMonochromeEmoji('🔓'),
87
+ mail: '✉',
88
+ menu: '☰',
89
+ mobileGo: toMonochromeEmoji('📲'), // 📲
90
+ mobileOff: toMonochromeEmoji('📴'), // 📴
91
+ mobileStatus: toMonochromeEmoji('📳'), // 📳
92
+ moreHoriz: '⋯',
93
+ moreVert: '⋮',
94
+ notifications: toMonochromeEmoji('\u{1F514}'),
95
+ notificationsOff: toMonochromeEmoji('\u{1F515}'),
96
+ pause: '⏸',
97
+ payment: toMonochromeEmoji('\u{1F4B3}'),
98
+ person: toMonochromeEmoji('\u{1F464}'),
99
+ phone: toMonochromeEmoji('\u{1F4DE}'),
100
+ photo: toMonochromeEmoji('\u{1F5BC}'),
101
+ pin: toMonochromeEmoji('📌'),
102
+ play: '▶',
103
+ print: toMonochromeEmoji('\u{1F5A8}'),
104
+ profile: toMonochromeEmoji('♙'), // ♙︎
105
+ recordAudio: toMonochromeEmoji('🎙'), // 🎙
106
+ refresh: '↻',
107
+ reload: toMonochromeEmoji('⟳'), // ⟳
108
+ rewind: '⏪',
109
+ route: toMonochromeEmoji('⤳'), // ⤳
110
+ run: toMonochromeEmoji('▶'), // ▶
111
+ save: toMonochromeEmoji('✓'), // ✓
112
+ // search: toMonochromeEmoji('\u{1F50D}'),
113
+ search: toMonochromeEmoji('⌕'), // ⌕
114
+ send: '➤',
115
+ settings: '⚙',
116
+ share: '↗',
117
+ shoppingCart: toMonochromeEmoji('\u{1F6D2}'),
118
+ skipNext: '⏭',
119
+ skipPrevious: '⏮',
120
+ star: '★',
121
+ starHalf: '⯨',
122
+ starOff: '☆',
123
+ stop: '⏹',
124
+ trash: toMonochromeEmoji('🗑'), // 🗑
125
+ unpin: toMonochromeEmoji('📍'),
126
+ upload: toMonochromeEmoji('⏫'), // ⏫
127
+ visibility: '👁',
128
+ visibilityOff: toMonochromeEmoji('\u{1F576}'),
129
+ volumeDown: toMonochromeEmoji('\u{1F509}'),
130
+ volumeMute: toMonochromeEmoji('\u{1F507}'),
131
+ volumeOff: toMonochromeEmoji('\u{1F507}'),
132
+ volumeUp: toMonochromeEmoji('\u{1F50A}'),
133
+ warning: '⚠',
134
+ };
135
+ function isKnownName(v) {
136
+ return Object.prototype.hasOwnProperty.call(NAMED_GLYPH, v);
137
+ }
138
+ export function Icon({ name = '•', size = 16, color, style }) {
139
+ if (typeof name === 'object' && name && 'path' in name) {
140
+ return (_jsx("span", { "aria-hidden": true, className: "oo-icon oo-icon--svg", style: { width: size, height: size, color, display: 'inline-flex', ...style }, children: _jsx("svg", { viewBox: "0 0 24 24", width: size, height: size, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: name.path }) }) }));
141
+ }
142
+ const text = typeof name === 'string' && isKnownName(name) ? NAMED_GLYPH[name] : name;
143
+ return (_jsx("span", { "aria-hidden": true, className: "oo-icon", style: { fontSize: size, color, ...style }, children: text }));
144
+ }
@@ -0,0 +1 @@
1
+ .oo-image { display: block; }
@@ -0,0 +1,16 @@
1
+ import type { CSSProperties } from 'react';
2
+ import './Image.css';
3
+ export type ImageFit = 'contain' | 'cover' | 'fill' | 'none' | 'scaleDown';
4
+ export type ImageVariant = 'icon' | 'avatar' | 'smallFeature' | 'mediumFeature' | 'largeFeature' | 'header';
5
+ export interface ImageProps {
6
+ url?: string;
7
+ description?: string;
8
+ fit?: ImageFit;
9
+ variant?: ImageVariant;
10
+ width?: number | string;
11
+ height?: number | string;
12
+ style?: CSSProperties;
13
+ src?: string;
14
+ alt?: string;
15
+ }
16
+ export declare function Image({ url, description, fit, variant, width, height, style, src, alt, }: ImageProps): import("react").JSX.Element | null;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './Image.css';
3
+ function mapFit(f) {
4
+ switch (f) {
5
+ case 'cover': return 'cover';
6
+ case 'contain': return 'contain';
7
+ case 'none': return 'none';
8
+ case 'scaleDown': return 'scale-down';
9
+ case 'fill':
10
+ default: return 'fill';
11
+ }
12
+ }
13
+ export function Image({ url, description, fit = 'fill', variant, width, height, style, src, alt, }) {
14
+ const effectiveUrl = url ?? src;
15
+ if (!effectiveUrl)
16
+ return null;
17
+ const effectiveAlt = description ?? alt ?? '';
18
+ return (_jsx("img", { className: "oo-image", "data-variant": variant, src: effectiveUrl, alt: effectiveAlt, style: { width, height, objectFit: mapFit(fit), ...style } }));
19
+ }
@@ -0,0 +1,38 @@
1
+ .oo-markdown {
2
+ color: var(--oo-color-fg);
3
+ font-size: var(--oo-font-size-md);
4
+ line-height: 1.6;
5
+ }
6
+ .oo-markdown h1 { font-size: 22px; margin: 12px 0 6px; font-weight: 700; }
7
+ .oo-markdown h2 { font-size: 18px; margin: 16px 0 6px; font-weight: 600; }
8
+ .oo-markdown h3 { font-size: 15px; margin: 12px 0 4px; font-weight: 600; }
9
+ .oo-markdown p { margin: 6px 0 10px; }
10
+ .oo-markdown ul {
11
+ margin: 6px 0 10px;
12
+ padding-left: 22px;
13
+ }
14
+ .oo-markdown li { margin-bottom: 3px; }
15
+ .oo-markdown a { color: var(--oo-color-accent); text-decoration: none; }
16
+ .oo-markdown a:hover { text-decoration: underline; }
17
+ .oo-markdown code {
18
+ font-family: var(--oo-font-mono);
19
+ font-size: 0.92em;
20
+ padding: 1px 5px;
21
+ background: var(--oo-color-active);
22
+ border-radius: 3px;
23
+ }
24
+ .oo-markdown pre {
25
+ background: var(--oo-color-active);
26
+ border: 1px solid var(--oo-color-border);
27
+ border-radius: var(--oo-radius-md, 8px);
28
+ padding: var(--oo-spacing-md);
29
+ font-size: 12px;
30
+ font-family: var(--oo-font-mono);
31
+ overflow-x: auto;
32
+ margin: 6px 0 10px;
33
+ }
34
+ .oo-markdown pre code {
35
+ background: transparent;
36
+ padding: 0;
37
+ font-size: inherit;
38
+ }
@@ -0,0 +1,8 @@
1
+ import { type CSSProperties } from 'react';
2
+ import './Markdown.css';
3
+ export interface MarkdownProps {
4
+ text?: string;
5
+ style?: CSSProperties;
6
+ className?: string;
7
+ }
8
+ export declare function Markdown({ text, style, className }: MarkdownProps): import("react").JSX.Element;
@@ -0,0 +1,140 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Fragment } from 'react';
3
+ import './Markdown.css';
4
+ export function Markdown({ text = '', style, className }) {
5
+ const blocks = parseBlocks(text);
6
+ return (_jsx("div", { className: ['oo-kdown', className].filter(Boolean).join(' '), style: style, children: blocks.map((b, i) => renderBlock(b, i)) }));
7
+ }
8
+ function parseBlocks(text) {
9
+ const blocks = [];
10
+ const lines = text.split(/\r?\n/);
11
+ let i = 0;
12
+ while (i < lines.length) {
13
+ const line = lines[i] ?? '';
14
+ if (line.startsWith('```')) {
15
+ const lang = line.slice(3).trim();
16
+ const body = [];
17
+ i += 1;
18
+ while (i < lines.length && !(lines[i] ?? '').startsWith('```')) {
19
+ body.push(lines[i] ?? '');
20
+ i += 1;
21
+ }
22
+ i += 1; // consume closing fence
23
+ blocks.push({ kind: 'code', lang, body: body.join('\n') });
24
+ continue;
25
+ }
26
+ if (line.startsWith('### ')) {
27
+ blocks.push({ kind: 'h', level: 3, text: line.slice(4) });
28
+ i += 1;
29
+ continue;
30
+ }
31
+ if (line.startsWith('## ')) {
32
+ blocks.push({ kind: 'h', level: 2, text: line.slice(3) });
33
+ i += 1;
34
+ continue;
35
+ }
36
+ if (line.startsWith('# ')) {
37
+ blocks.push({ kind: 'h', level: 1, text: line.slice(2) });
38
+ i += 1;
39
+ continue;
40
+ }
41
+ if (/^[-*] /.test(line)) {
42
+ const items = [];
43
+ while (i < lines.length && /^[-*] /.test(lines[i] ?? '')) {
44
+ items.push((lines[i] ?? '').slice(2));
45
+ i += 1;
46
+ }
47
+ blocks.push({ kind: 'ul', items });
48
+ continue;
49
+ }
50
+ if (line.trim() === '') {
51
+ i += 1;
52
+ continue;
53
+ }
54
+ // Paragraph — gather consecutive non-empty, non-special lines.
55
+ const pl = [];
56
+ while (i < lines.length &&
57
+ (lines[i] ?? '').trim() !== '' &&
58
+ !(lines[i] ?? '').startsWith('#') &&
59
+ !/^[-*] /.test(lines[i] ?? '') &&
60
+ !(lines[i] ?? '').startsWith('```')) {
61
+ pl.push(lines[i] ?? '');
62
+ i += 1;
63
+ }
64
+ if (pl.length > 0)
65
+ blocks.push({ kind: 'p', lines: pl });
66
+ }
67
+ return blocks;
68
+ }
69
+ function renderBlock(b, key) {
70
+ switch (b.kind) {
71
+ case 'h': {
72
+ const Tag = (`h${b.level}`);
73
+ return _jsx(Tag, { children: inline(b.text) }, key);
74
+ }
75
+ case 'ul':
76
+ return (_jsx("ul", { children: b.items.map((it, j) => _jsx("li", { children: inline(it) }, j)) }, key));
77
+ case 'code':
78
+ return (_jsx("pre", { "data-lang": b.lang || undefined, children: _jsx("code", { children: b.body }) }, key));
79
+ case 'p':
80
+ return (_jsx("p", { children: b.lines.map((l, j) => (_jsxs(Fragment, { children: [inline(l), j < b.lines.length - 1 ? _jsx("br", {}) : null] }, j))) }, key));
81
+ }
82
+ }
83
+ // Inline parser — runs left-to-right, picking the earliest match for each
84
+ // supported syntax (links / bold / italic / inline code). Plain text is
85
+ // accumulated between matches.
86
+ function inline(s) {
87
+ const out = [];
88
+ let i = 0;
89
+ let buf = '';
90
+ function flushBuf() { if (buf) {
91
+ out.push(buf);
92
+ buf = '';
93
+ } }
94
+ while (i < s.length) {
95
+ // [text](url)
96
+ if (s[i] === '[') {
97
+ const close = s.indexOf(']', i + 1);
98
+ if (close > 0 && s[close + 1] === '(') {
99
+ const urlEnd = s.indexOf(')', close + 2);
100
+ if (urlEnd > 0) {
101
+ flushBuf();
102
+ out.push(_jsx("a", { href: s.slice(close + 2, urlEnd), target: "_blank", rel: "noreferrer noopener", children: s.slice(i + 1, close) }, i));
103
+ i = urlEnd + 1;
104
+ continue;
105
+ }
106
+ }
107
+ }
108
+ if (s.slice(i, i + 2) === '**') {
109
+ const end = s.indexOf('**', i + 2);
110
+ if (end > 0) {
111
+ flushBuf();
112
+ out.push(_jsx("strong", { children: s.slice(i + 2, end) }, i));
113
+ i = end + 2;
114
+ continue;
115
+ }
116
+ }
117
+ if (s[i] === '*' && s[i + 1] !== '*') {
118
+ const end = s.indexOf('*', i + 1);
119
+ if (end > 0) {
120
+ flushBuf();
121
+ out.push(_jsx("em", { children: s.slice(i + 1, end) }, i));
122
+ i = end + 1;
123
+ continue;
124
+ }
125
+ }
126
+ if (s[i] === '`') {
127
+ const end = s.indexOf('`', i + 1);
128
+ if (end > 0) {
129
+ flushBuf();
130
+ out.push(_jsx("code", { children: s.slice(i + 1, end) }, i));
131
+ i = end + 1;
132
+ continue;
133
+ }
134
+ }
135
+ buf += s[i];
136
+ i += 1;
137
+ }
138
+ flushBuf();
139
+ return out;
140
+ }
@@ -0,0 +1,39 @@
1
+ .oo-progress {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 4px;
5
+ width: 100%;
6
+ }
7
+ .oo-progress__head {
8
+ display: flex;
9
+ justify-content: space-between;
10
+ font-size: var(--oo-font-size-xs);
11
+ color: var(--oo-color-muted);
12
+ }
13
+ .oo-progress__label {
14
+ font-weight: 500;
15
+ }
16
+ .oo-progress__value {
17
+ font-family: var(--oo-font-mono);
18
+ }
19
+ .oo-progress__track {
20
+ width: 100%;
21
+ height: var(--oo-progress-height, 6px);
22
+ background: var(--oo-color-border);
23
+ border-radius: 9999px;
24
+ overflow: hidden;
25
+ }
26
+ .oo-progress__bar {
27
+ height: 100%;
28
+ background: rgb(var(--oo-progress-color));
29
+ border-radius: 9999px;
30
+ transition: width 0.3s ease;
31
+ }
32
+ .oo-progress__bar--indet {
33
+ width: 30%;
34
+ animation: oo-progress-indet 1.4s linear infinite;
35
+ }
36
+ @keyframes oo-progress-indet {
37
+ 0% { transform: translateX(-100%); }
38
+ 100% { transform: translateX(400%); }
39
+ }
@@ -0,0 +1,15 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { type ResourceColor } from '../../types/colors.js';
3
+ import './Progress.css';
4
+ export interface ProgressProps {
5
+ value?: number;
6
+ max?: number;
7
+ label?: string;
8
+ display?: 'value' | 'percent' | string;
9
+ color?: ResourceColor;
10
+ indeterminate?: boolean;
11
+ height?: number;
12
+ style?: CSSProperties;
13
+ className?: string;
14
+ }
15
+ export declare function Progress({ value, max, label, display, color, indeterminate, height, style, className, }: ProgressProps): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { resolveColorVar } from '../../types/colors.js';
3
+ import './Progress.css';
4
+ export function Progress({ value = 0, max = 100, label, display, color, indeterminate, height, style, className, }) {
5
+ const safeMax = max > 0 ? max : 100;
6
+ const pct = Math.max(0, Math.min(100, (value / safeMax) * 100));
7
+ const colorVar = color ? resolveColorVar(color) : 'var(--oo-color-accent-rgb, 0 102 204)';
8
+ const wrapperStyle = {
9
+ ['--oo-progress-color']: colorVar,
10
+ ['--oo-progress-height']: height ? `${height}px` : undefined,
11
+ ...style,
12
+ };
13
+ const valueText = display === 'value' ? `${value} / ${safeMax}`
14
+ : display === 'percent' ? `${Math.round(pct)}%`
15
+ : display;
16
+ return (_jsxs("div", { className: ['oo-progress', className].filter(Boolean).join(' '), style: wrapperStyle, children: [label || valueText ? (_jsxs("div", { className: "oo-progress__head", children: [label ? _jsx("span", { className: "oo-progress__label", children: label }) : null, valueText ? _jsx("span", { className: "oo-progress__value", children: valueText }) : null] })) : null, _jsx("div", { className: "oo-progress__track", role: "progressbar", "aria-valuenow": indeterminate ? undefined : value, "aria-valuemin": 0, "aria-valuemax": safeMax, "aria-valuetext": label, children: indeterminate ? (_jsx("div", { className: "oo-progress__bar oo-progress__bar--indet" })) : (_jsx("div", { className: "oo-progress__bar", style: { width: `${pct}%` } })) })] }));
17
+ }
@@ -0,0 +1,6 @@
1
+ import type { CSSProperties, ReactNode } from 'react';
2
+ export interface SectionTitleProps {
3
+ children: ReactNode;
4
+ style?: CSSProperties;
5
+ }
6
+ export declare function SectionTitle({ children, style }: SectionTitleProps): ReactNode;
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ // A small uppercase section heading inside a detail panel — e.g. "USAGE",
3
+ // "Active agents", "Records". Reusable so every section label is consistent.
4
+ export function SectionTitle({ children, style }) {
5
+ return (_jsx("div", { className: "oo-section-title", style: { ...style }, children: children }));
6
+ }
@@ -0,0 +1,20 @@
1
+ .oo-skeleton {
2
+ background: var(--oo-color-border);
3
+ border-radius: var(--oo-radius-sm, 4px);
4
+ animation: oo-skeleton-pulse 1.5s ease-in-out infinite;
5
+ }
6
+ .oo-skeleton--line {
7
+ height: 12px;
8
+ margin-bottom: var(--oo-spacing-sm);
9
+ }
10
+ .oo-skeleton--block {
11
+ border-radius: var(--oo-radius-md, 8px);
12
+ }oo
13
+ .oo-skeleton-lines {
14
+ display: flex;
15
+ flex-direction: column;
16
+ }
17
+ @keyframes oo-skeleton-pulse {
18
+ 0%, 100% { opacity: 1; }
19
+ 50% { opacity: 0.55; }
20
+ }
@@ -0,0 +1,11 @@
1
+ import type { CSSProperties } from 'react';
2
+ import './Skeleton.css';
3
+ export interface SkeletonProps {
4
+ lines?: number;
5
+ block?: boolean;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ style?: CSSProperties;
9
+ className?: string;
10
+ }
11
+ export declare function Skeleton({ lines, block, width, height, style, className, }: SkeletonProps): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './Skeleton.css';
3
+ export function Skeleton({ lines = 3, block, width, height, style, className, }) {
4
+ if (block) {
5
+ return (_jsx("div", { className: ['oo-skeleton', 'oo-skeleton--block', className].filter(Boolean).join(' '), "aria-busy": "true", style: { width: width ?? '100%', height: height ?? 80, ...style } }));
6
+ }
7
+ return (_jsx("div", { className: ['oo-skeleton-lines', className].filter(Boolean).join(' '), "aria-busy": "true", style: style, children: Array.from({ length: lines }).map((_, i) => (_jsx("div", { className: "oo-skeleton oo-skeleton--line", style: {
8
+ width: i === lines - 1 ? '60%' : '100%',
9
+ animationDelay: `${i * 0.1}s`,
10
+ } }, i))) }));
11
+ }
@@ -0,0 +1,20 @@
1
+ .oo-spinner-wrap {
2
+ align-items: center;
3
+ gap: var(--oo-spacing-sm);
4
+ font-size: var(--oo-font-size-sm);
5
+ color: var(--oo-color-muted);
6
+ }
7
+ .oo-spinner {
8
+ display: inline-block;
9
+ width: var(--oo-spinner-size, 16px);
10
+ height: var(--oo-spinner-size, 16px);
11
+ border: 2px solid var(--oo-color-border);
12
+ border-top-color: var(--oo-spinner-color, var(--oo-color-accent));
13
+ border-radius: 50%;
14
+ animation: oo-spin 0.8s linear infinite;
15
+ flex: 0 0 auto;
16
+ }
17
+ @keyframes oo-spin {
18
+ to { transform: rotate(360deg); }
19
+ }
20
+ .oo-spinner__label { line-height: 1; }
@@ -0,0 +1,12 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { type ResourceColor } from '../../types/colors.js';
3
+ import './Spinner.css';
4
+ export interface SpinnerProps {
5
+ label?: string;
6
+ size?: number;
7
+ color?: ResourceColor;
8
+ inline?: boolean;
9
+ style?: CSSProperties;
10
+ className?: string;
11
+ }
12
+ export declare function Spinner({ label, size, color, inline, style, className, }: SpinnerProps): import("react").JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { resolveColorVar } from '../../types/colors.js';
3
+ import './Spinner.css';
4
+ export function Spinner({ label, size = 16, color, inline = true, style, className, }) {
5
+ const wrapperStyle = {
6
+ ['--oo-spinner-size']: `${size}px`,
7
+ ['--oo-spinner-color']: color ? resolveColorVar(color) : 'var(--oo-color-accent)',
8
+ ...(inline ? { display: 'inline-flex' } : { display: 'flex' }),
9
+ ...style,
10
+ };
11
+ return (_jsxs("span", { role: "status", "aria-live": "polite", "aria-label": label ?? 'Loading', className: ['oo-r-wrap', className].filter(Boolean).join(' '), style: wrapperStyle, children: [_jsx("span", { className: "oo-spinner", "aria-hidden": true }), label ? _jsx("span", { className: "oo-spinner__label", children: label }) : null] }));
12
+ }
@@ -0,0 +1,13 @@
1
+ import type { CSSProperties } from 'react';
2
+ import { type ResourceColor } from '../../types/colors.js';
3
+ export interface SvgProps {
4
+ markup?: string;
5
+ path?: string;
6
+ width?: number | string;
7
+ height?: number | string;
8
+ color?: ResourceColor;
9
+ viewBox?: string;
10
+ style?: CSSProperties;
11
+ className?: string;
12
+ }
13
+ export declare function Svg({ markup, path, width, height, color, viewBox, style, className, }: SvgProps): import("react").JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { resolveColorAlpha } from '../../types/colors.js';
3
+ export function Svg({ markup, path, width = 24, height = 24, color, viewBox = '0 0 24 24', style, className, }) {
4
+ const inlineStyle = {
5
+ color: color ? resolveColorAlpha(color) : 'currentColor',
6
+ ...style,
7
+ };
8
+ if (markup) {
9
+ return (_jsx("span", { className: ['oo-svg', className].filter(Boolean).join(' '), style: { display: 'inline-flex', width, height, ...inlineStyle },
10
+ // eslint-disable-next-line react/no-danger
11
+ dangerouslySetInnerHTML: { __html: markup } }));
12
+ }
13
+ if (path) {
14
+ return (_jsx("svg", { className: ['oo-svg', className].filter(Boolean).join(' '), viewBox: viewBox, width: width, height: height, fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", style: inlineStyle, children: _jsx("path", { d: path }) }));
15
+ }
16
+ return null;
17
+ }
@@ -0,0 +1,20 @@
1
+ .oo-text { color: inherit; }
2
+ .oo-text--muted { color: var(--oo-color-muted); }
3
+ .oo-text--bold { font-weight: 600; }
4
+ .oo-text--align-start { text-align: left; }
5
+ .oo-text--align-center { text-align: center; }
6
+ .oo-text--align-end { text-align: right; }
7
+
8
+ /* Semantic tone — wins over muted when both are present (later cascade). */
9
+ .oo-text--tone-accent { color: var(--oo-color-accent); }
10
+ .oo-text--tone-success { color: var(--oo-color-success); }
11
+ .oo-text--tone-warning { color: var(--oo-color-warning); }
12
+ .oo-text--tone-danger { color: var(--oo-color-danger); }
13
+
14
+ .oo-text--body { font-size: var(--oo-font-size-md); }
15
+ .oo-text--caption { font-size: var(--oo-font-size-xs); }
16
+ .oo-text--h1 { font-size: var(--oo-font-size-xl); font-weight: 600; }
17
+ .oo-text--h2 { font-size: var(--oo-font-size-lg); font-weight: 600; }
18
+ .oo-text--h3 { font-size: var(--oo-font-size-md); font-weight: 600; }
19
+ .oo-text--h4 { font-size: var(--oo-font-size-md); font-weight: 600; opacity: 0.9; }
20
+ .oo-text--h5 { font-size: var(--oo-font-size-sm); font-weight: 600; opacity: 0.85; }
@@ -0,0 +1,13 @@
1
+ import type { CSSProperties } from 'react';
2
+ import './Text.css';
3
+ export type TextTone = 'accent' | 'success' | 'warning' | 'danger';
4
+ export interface TextProps {
5
+ text?: string | number | boolean;
6
+ variant?: 'body' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'caption';
7
+ muted?: boolean;
8
+ weight?: 'normal' | 'bold';
9
+ align?: 'start' | 'center' | 'end';
10
+ tone?: TextTone;
11
+ style?: CSSProperties;
12
+ }
13
+ export declare function Text({ text, variant, muted, weight, align, tone, style, }: TextProps): import("react").JSX.Element;