@squadbase/vantage 0.6.2 → 0.7.0-dev1.1197de7

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 (357) hide show
  1. package/dist/add-4GHF2TX2.js +6 -0
  2. package/dist/add-4GHF2TX2.js.map +1 -0
  3. package/dist/{build-O5TVNH4E.js → build-U7GO26HR.js} +9 -9
  4. package/dist/{build-O5TVNH4E.js.map → build-U7GO26HR.js.map} +1 -1
  5. package/dist/{check-WFBEDHDR.js → check-MRVAIHG5.js} +7 -7
  6. package/dist/{check-WFBEDHDR.js.map → check-MRVAIHG5.js.map} +1 -1
  7. package/dist/{chunk-QDZA5JSL.js → chunk-AABMKHEU.js} +4 -4
  8. package/dist/{chunk-QDZA5JSL.js.map → chunk-AABMKHEU.js.map} +1 -1
  9. package/dist/{chunk-PVTHHV7X.js → chunk-ANZLVSEP.js} +28 -7
  10. package/dist/chunk-ANZLVSEP.js.map +1 -0
  11. package/dist/chunk-CKWPK4RO.js +50 -0
  12. package/dist/chunk-CKWPK4RO.js.map +1 -0
  13. package/dist/chunk-EG4PX726.js +678 -0
  14. package/dist/chunk-EG4PX726.js.map +1 -0
  15. package/dist/{chunk-3G43C6OL.js → chunk-GNXCX4WE.js} +46 -3
  16. package/dist/chunk-GNXCX4WE.js.map +1 -0
  17. package/dist/chunk-LYUGDHSF.js +61 -0
  18. package/dist/chunk-LYUGDHSF.js.map +1 -0
  19. package/dist/{chunk-RPZAALCX.js → chunk-MQUIAP66.js} +321 -165
  20. package/dist/chunk-MQUIAP66.js.map +1 -0
  21. package/dist/chunk-P2KIHF65.js +152 -0
  22. package/dist/chunk-P2KIHF65.js.map +1 -0
  23. package/dist/{chunk-BCE22JSM.js → chunk-PJ4SPXHS.js} +52 -16
  24. package/dist/chunk-PJ4SPXHS.js.map +1 -0
  25. package/dist/{chunk-ZVANIULZ.js → chunk-RNTDBX6S.js} +4 -4
  26. package/dist/{chunk-ZVANIULZ.js.map → chunk-RNTDBX6S.js.map} +1 -1
  27. package/dist/{chunk-PXRX5PEC.js → chunk-ROHNXP7J.js} +73 -4
  28. package/dist/chunk-ROHNXP7J.js.map +1 -0
  29. package/dist/chunk-S5MDTHH7.js +466 -0
  30. package/dist/chunk-S5MDTHH7.js.map +1 -0
  31. package/dist/chunk-SDJTTMLK.js +1877 -0
  32. package/dist/chunk-SDJTTMLK.js.map +1 -0
  33. package/dist/{chunk-EP6JHXSR.js → chunk-SHZM3EXB.js} +68 -12
  34. package/dist/chunk-SHZM3EXB.js.map +1 -0
  35. package/dist/{chunk-A2UUGASH.js → chunk-U736PVHY.js} +2 -2
  36. package/dist/chunk-U736PVHY.js.map +1 -0
  37. package/dist/{chunk-JGRMRXXZ.js → chunk-UWSQUHX6.js} +4 -99
  38. package/dist/chunk-UWSQUHX6.js.map +1 -0
  39. package/dist/chunk-XRKSIC5Z.js +176 -0
  40. package/dist/chunk-XRKSIC5Z.js.map +1 -0
  41. package/dist/chunk-YJQCB3UP.js +10764 -0
  42. package/dist/chunk-YJQCB3UP.js.map +1 -0
  43. package/dist/cli.js +15 -11
  44. package/dist/cli.js.map +1 -1
  45. package/dist/client/index.d.ts +34 -3
  46. package/dist/client/index.js +211 -12
  47. package/dist/client/index.js.map +1 -1
  48. package/dist/components/index.d.ts +2389 -31
  49. package/dist/components/index.js +7 -4
  50. package/dist/delta-text-tav2Lh5d.d.ts +17 -0
  51. package/dist/{dev-NZRLOQCL.js → dev-O42JFQ64.js} +24 -13
  52. package/dist/dev-O42JFQ64.js.map +1 -0
  53. package/dist/doc/index.d.ts +215 -2
  54. package/dist/doc/index.js +423 -5
  55. package/dist/doc/index.js.map +1 -1
  56. package/dist/{docs-ZGDJUHJI.js → docs-JVP4RPKT.js} +3 -3
  57. package/dist/{docs-ZGDJUHJI.js.map → docs-JVP4RPKT.js.map} +1 -1
  58. package/dist/{doctor-VFKEMR54.js → doctor-YD3XAAOT.js} +8 -8
  59. package/dist/doctor-YD3XAAOT.js.map +1 -0
  60. package/dist/format-D34piCei.d.ts +250 -0
  61. package/dist/geo-japan-7BMSOJRX.js +8 -0
  62. package/dist/geo-japan-7BMSOJRX.js.map +1 -0
  63. package/dist/geo-us-GVOG7VXH.js +8 -0
  64. package/dist/geo-us-GVOG7VXH.js.map +1 -0
  65. package/dist/geo-world-35HL56UU.js +8 -0
  66. package/dist/geo-world-35HL56UU.js.map +1 -0
  67. package/dist/markdown/index.js +1 -1
  68. package/dist/markdown/index.js.map +1 -1
  69. package/dist/{preview-QDCIVVSR.js → preview-T6CLSQVX.js} +12 -4
  70. package/dist/preview-T6CLSQVX.js.map +1 -0
  71. package/dist/query/index.d.ts +0 -11
  72. package/dist/query/index.js +2 -2
  73. package/dist/{routes-RHP5FVGD.js → routes-PVKNT777.js} +6 -6
  74. package/dist/{routes-RHP5FVGD.js.map → routes-PVKNT777.js.map} +1 -1
  75. package/dist/{search-RFBELGY7.js → search-5LC4XPB5.js} +3 -3
  76. package/dist/{search-RFBELGY7.js.map → search-5LC4XPB5.js.map} +1 -1
  77. package/dist/slide/index.d.ts +272 -1
  78. package/dist/slide/index.js +1086 -19
  79. package/dist/slide/index.js.map +1 -1
  80. package/dist/table/index.js +13 -10
  81. package/dist/table/index.js.map +1 -1
  82. package/dist/ui/index.d.ts +148 -12
  83. package/dist/ui/index.js +1339 -88
  84. package/dist/ui/index.js.map +1 -1
  85. package/dist/{upgrade-GF2P67M6.js → upgrade-6DT7ADRP.js} +7 -7
  86. package/dist/{upgrade-GF2P67M6.js.map → upgrade-6DT7ADRP.js.map} +1 -1
  87. package/dist/vite/index.d.ts +10 -0
  88. package/dist/vite/index.js +4 -4
  89. package/docs/en/agent-skills.md +1 -1
  90. package/docs/en/changelog.md +82 -0
  91. package/docs/en/cli-reference.md +30 -0
  92. package/docs/en/components.md +42 -17
  93. package/docs/en/doc/delta-text.md +40 -0
  94. package/docs/en/doc/doc-action-items.md +49 -0
  95. package/docs/en/doc/doc-callout.md +38 -0
  96. package/docs/en/doc/doc-data-table.md +60 -0
  97. package/docs/en/doc/doc-executive-summary.md +64 -0
  98. package/docs/en/doc/doc-figure.md +56 -0
  99. package/docs/en/doc/doc-key-findings.md +61 -0
  100. package/docs/en/doc/doc-kpi-scorecard.md +80 -0
  101. package/docs/en/doc/doc-notes-and-sources.md +43 -0
  102. package/docs/en/doc/doc-report-header.md +46 -0
  103. package/docs/en/pages-and-metadata.md +15 -0
  104. package/docs/en/parts/area-chart.md +99 -0
  105. package/docs/en/parts/bar-chart.md +91 -0
  106. package/docs/en/parts/bar-list.md +50 -0
  107. package/docs/en/parts/category-bar.md +37 -0
  108. package/docs/en/parts/chart-frame.md +39 -0
  109. package/docs/en/parts/data-table.md +22 -0
  110. package/docs/en/parts/delta.md +51 -0
  111. package/docs/en/parts/donut-chart.md +72 -0
  112. package/docs/en/parts/draft-chart.md +42 -0
  113. package/docs/en/parts/format.md +43 -0
  114. package/docs/en/parts/funnel-steps.md +2 -1
  115. package/docs/en/parts/heatmap.md +53 -0
  116. package/docs/en/parts/kpi-card.md +58 -0
  117. package/docs/en/parts/legend.md +35 -0
  118. package/docs/en/parts/line-chart.md +94 -0
  119. package/docs/en/parts/metric-value.md +3 -2
  120. package/docs/en/parts/page-shell.md +2 -2
  121. package/docs/en/parts/progress-circle.md +33 -0
  122. package/docs/en/parts/sample-data.md +39 -0
  123. package/docs/en/parts/scatter-chart.md +56 -0
  124. package/docs/en/parts/sparkline.md +1 -1
  125. package/docs/en/parts/tracker.md +36 -0
  126. package/docs/en/parts/trend-indicator.md +17 -1
  127. package/docs/en/parts/updated-at.md +30 -0
  128. package/docs/en/parts/waterfall-chart.md +56 -0
  129. package/docs/en/slide/slide-chart-full.md +48 -0
  130. package/docs/en/slide/slide-chart-insight.md +52 -0
  131. package/docs/en/slide/slide-columns.md +46 -0
  132. package/docs/en/slide/slide-comparison.md +68 -0
  133. package/docs/en/slide/slide-cover.md +39 -0
  134. package/docs/en/slide/slide-exec-summary.md +47 -0
  135. package/docs/en/slide/slide-heading.md +38 -0
  136. package/docs/en/slide/slide-kpi-grid.md +55 -0
  137. package/docs/en/slide/slide-kpi-hero.md +58 -0
  138. package/docs/en/slide/slide-next-actions.md +49 -0
  139. package/docs/en/slide/slide-scorecard-table.md +54 -0
  140. package/docs/en/slide/slide-section.md +44 -0
  141. package/docs/en/slide/slide-source-line.md +34 -0
  142. package/docs/en/ui/alert-dialog.md +42 -0
  143. package/docs/en/ui/avatar.md +31 -0
  144. package/docs/en/ui/combobox.md +74 -0
  145. package/docs/en/ui/drawer.md +41 -0
  146. package/docs/en/ui/empty.md +1 -1
  147. package/docs/en/ui/error-state.md +4 -3
  148. package/docs/en/ui/field.md +42 -0
  149. package/docs/en/ui/hover-card.md +21 -0
  150. package/docs/en/ui/kbd.md +17 -0
  151. package/docs/en/ui/loading.md +1 -1
  152. package/docs/en/ui/pagination.md +36 -0
  153. package/docs/en/ui/radio-group.md +21 -0
  154. package/docs/en/ui/toast.md +44 -0
  155. package/docs/en/ui/toggle-group.md +4 -3
  156. package/docs/en/ui-and-theming.md +1 -1
  157. package/docs/index.json +1222 -132
  158. package/docs/ja/agent-skills.md +1 -1
  159. package/docs/ja/changelog.md +84 -0
  160. package/docs/ja/cli-reference.md +29 -0
  161. package/docs/ja/components.md +68 -101
  162. package/docs/ja/doc/delta-text.md +40 -0
  163. package/docs/ja/doc/doc-action-items.md +49 -0
  164. package/docs/ja/doc/doc-callout.md +38 -0
  165. package/docs/ja/doc/doc-data-table.md +60 -0
  166. package/docs/ja/doc/doc-executive-summary.md +64 -0
  167. package/docs/ja/doc/doc-figure.md +56 -0
  168. package/docs/ja/doc/doc-key-findings.md +61 -0
  169. package/docs/ja/doc/doc-kpi-scorecard.md +80 -0
  170. package/docs/ja/doc/doc-notes-and-sources.md +43 -0
  171. package/docs/ja/doc/doc-report-header.md +46 -0
  172. package/docs/ja/page-types/csv.md +83 -0
  173. package/docs/ja/page-types/doc.md +83 -0
  174. package/docs/ja/page-types/excel.md +82 -0
  175. package/docs/ja/page-types/slide.md +133 -0
  176. package/docs/ja/page-types.md +47 -0
  177. package/docs/ja/pages-and-metadata.md +15 -0
  178. package/docs/ja/parts/area-chart.md +85 -0
  179. package/docs/ja/parts/bar-chart.md +95 -0
  180. package/docs/ja/parts/bar-list.md +58 -0
  181. package/docs/ja/parts/category-bar.md +36 -0
  182. package/docs/ja/parts/chart-frame.md +36 -0
  183. package/docs/ja/parts/data-table.md +22 -0
  184. package/docs/ja/parts/delta.md +51 -0
  185. package/docs/ja/parts/donut-chart.md +66 -0
  186. package/docs/ja/parts/draft-chart.md +40 -0
  187. package/docs/ja/parts/echart.md +3 -0
  188. package/docs/ja/parts/format.md +44 -0
  189. package/docs/ja/parts/funnel-steps.md +27 -8
  190. package/docs/ja/parts/heatmap.md +45 -0
  191. package/docs/ja/parts/kpi-card.md +56 -0
  192. package/docs/ja/parts/legend.md +36 -0
  193. package/docs/ja/parts/line-chart.md +84 -0
  194. package/docs/ja/parts/metric-value.md +3 -2
  195. package/docs/ja/parts/page-shell.md +2 -2
  196. package/docs/ja/parts/progress-circle.md +34 -0
  197. package/docs/ja/parts/sample-data.md +61 -0
  198. package/docs/ja/parts/scatter-chart.md +69 -0
  199. package/docs/ja/parts/sparkline.md +2 -2
  200. package/docs/ja/parts/tracker.md +32 -0
  201. package/docs/ja/parts/trend-indicator.md +17 -1
  202. package/docs/ja/parts/updated-at.md +27 -0
  203. package/docs/ja/parts/waterfall-chart.md +61 -0
  204. package/docs/ja/routing.md +8 -86
  205. package/docs/ja/slide/slide-chart-full.md +48 -0
  206. package/docs/ja/slide/slide-chart-insight.md +52 -0
  207. package/docs/ja/slide/slide-columns.md +46 -0
  208. package/docs/ja/slide/slide-comparison.md +68 -0
  209. package/docs/ja/slide/slide-cover.md +39 -0
  210. package/docs/ja/slide/slide-exec-summary.md +47 -0
  211. package/docs/ja/slide/slide-heading.md +38 -0
  212. package/docs/ja/slide/slide-kpi-grid.md +55 -0
  213. package/docs/ja/slide/slide-kpi-hero.md +58 -0
  214. package/docs/ja/slide/slide-next-actions.md +49 -0
  215. package/docs/ja/slide/slide-scorecard-table.md +54 -0
  216. package/docs/ja/slide/slide-section.md +44 -0
  217. package/docs/ja/slide/slide-source-line.md +34 -0
  218. package/docs/ja/ui/alert-dialog.md +41 -0
  219. package/docs/ja/ui/avatar.md +31 -0
  220. package/docs/ja/ui/combobox.md +74 -0
  221. package/docs/ja/ui/drawer.md +41 -0
  222. package/docs/ja/ui/empty.md +1 -1
  223. package/docs/ja/ui/error-state.md +4 -3
  224. package/docs/ja/ui/field.md +42 -0
  225. package/docs/ja/ui/hover-card.md +21 -0
  226. package/docs/ja/ui/kbd.md +16 -0
  227. package/docs/ja/ui/loading.md +1 -1
  228. package/docs/ja/ui/pagination.md +36 -0
  229. package/docs/ja/ui/radio-group.md +21 -0
  230. package/docs/ja/ui/toast.md +46 -0
  231. package/docs/ja/ui/toggle-group.md +4 -3
  232. package/docs/ja/ui-and-theming.md +14 -7
  233. package/package.json +43 -29
  234. package/registry/parts.json +5221 -0
  235. package/registry/ui/accordion.tsx +76 -0
  236. package/registry/ui/alert-dialog.tsx +189 -0
  237. package/registry/ui/alert.tsx +80 -0
  238. package/registry/ui/app-shell.tsx +424 -0
  239. package/registry/ui/area-chart.tsx +3960 -0
  240. package/registry/ui/attention-list.tsx +465 -0
  241. package/registry/ui/avatar.tsx +110 -0
  242. package/registry/ui/badge.tsx +56 -0
  243. package/registry/ui/bar-chart.tsx +3954 -0
  244. package/registry/ui/bar-list.tsx +3998 -0
  245. package/registry/ui/box-plot-chart.tsx +4214 -0
  246. package/registry/ui/breadcrumb.tsx +128 -0
  247. package/registry/ui/button.tsx +62 -0
  248. package/registry/ui/calendar.tsx +223 -0
  249. package/registry/ui/card.tsx +107 -0
  250. package/registry/ui/category-bar.tsx +1498 -0
  251. package/registry/ui/chart-frame.tsx +1612 -0
  252. package/registry/ui/checkbox.tsx +30 -0
  253. package/registry/ui/collapsible.tsx +23 -0
  254. package/registry/ui/combo-chart.tsx +1852 -0
  255. package/registry/ui/combobox.tsx +310 -0
  256. package/registry/ui/command.tsx +198 -0
  257. package/registry/ui/dashboard-card.tsx +219 -0
  258. package/registry/ui/data-table.tsx +899 -158
  259. package/registry/ui/date-range-picker.tsx +544 -0
  260. package/registry/ui/delta.tsx +352 -0
  261. package/registry/ui/dialog.tsx +161 -0
  262. package/registry/ui/donut-chart.tsx +4006 -0
  263. package/registry/ui/drawer.tsx +229 -0
  264. package/registry/ui/dropdown-menu.tsx +274 -0
  265. package/registry/ui/echart.tsx +1178 -0
  266. package/registry/ui/field.tsx +240 -0
  267. package/registry/ui/filter-bar.tsx +553 -0
  268. package/registry/ui/forecast-chart.tsx +4734 -0
  269. package/registry/ui/funnel-steps.tsx +3843 -0
  270. package/registry/ui/heatmap.tsx +2027 -0
  271. package/registry/ui/histogram-chart.tsx +4284 -0
  272. package/registry/ui/hover-card.tsx +52 -0
  273. package/registry/ui/input-group.tsx +160 -0
  274. package/registry/ui/input.tsx +24 -0
  275. package/registry/ui/kbd.tsx +30 -0
  276. package/registry/ui/kpi-card.tsx +907 -0
  277. package/registry/ui/label.tsx +22 -0
  278. package/registry/ui/legend.tsx +3817 -0
  279. package/registry/ui/line-chart.tsx +3958 -0
  280. package/registry/ui/metric-value.tsx +62 -0
  281. package/registry/ui/multi-select.tsx +382 -0
  282. package/registry/ui/page-shell.tsx +441 -0
  283. package/registry/ui/pagination.tsx +140 -0
  284. package/registry/ui/paired-chart.tsx +4086 -0
  285. package/registry/ui/pivot-table.tsx +1260 -0
  286. package/registry/ui/placeholder.tsx +36 -0
  287. package/registry/ui/popover.tsx +92 -0
  288. package/registry/ui/progress-circle.tsx +1033 -0
  289. package/registry/ui/progress.tsx +85 -0
  290. package/registry/ui/radio-group.tsx +39 -0
  291. package/registry/ui/sample-data.tsx +230 -0
  292. package/registry/ui/scatter-chart.tsx +4503 -0
  293. package/registry/ui/scroll-area.tsx +56 -0
  294. package/registry/ui/searchable-select.tsx +352 -0
  295. package/registry/ui/section-header.tsx +43 -0
  296. package/registry/ui/segmented-control.tsx +76 -0
  297. package/registry/ui/select.tsx +255 -0
  298. package/registry/ui/separator.tsx +27 -0
  299. package/registry/ui/sheet.tsx +139 -0
  300. package/registry/ui/sidebar.tsx +725 -0
  301. package/registry/ui/skeleton.tsx +17 -0
  302. package/registry/ui/slider.tsx +56 -0
  303. package/registry/ui/sparkline.tsx +230 -0
  304. package/registry/ui/spinner.tsx +14 -0
  305. package/registry/ui/states.tsx +247 -0
  306. package/registry/ui/status-badge.tsx +286 -0
  307. package/registry/ui/switch.tsx +34 -0
  308. package/registry/ui/table.tsx +118 -0
  309. package/registry/ui/tabs.tsx +84 -0
  310. package/registry/ui/textarea.tsx +22 -0
  311. package/registry/ui/toast.tsx +250 -0
  312. package/registry/ui/toggle-group.tsx +91 -0
  313. package/registry/ui/toggle.tsx +47 -0
  314. package/registry/ui/tooltip.tsx +72 -0
  315. package/registry/ui/tracker.tsx +1015 -0
  316. package/registry/ui/treemap.tsx +1917 -0
  317. package/registry/ui/trend-indicator.tsx +217 -0
  318. package/registry/ui/updated-at.tsx +276 -0
  319. package/registry/ui/waterfall-chart.tsx +4561 -0
  320. package/skills/vantage-add-feature/SKILL.md +14 -7
  321. package/skills/vantage-design/SKILL.md +62 -52
  322. package/skills/vantage-design/references/extract.md +26 -27
  323. package/skills/vantage-design/references/format.md +12 -172
  324. package/skills/vantage-design/references/presets.md +50 -110
  325. package/skills/vantage-pitfalls/SKILL.md +10 -1
  326. package/skills/vantage-slide/SKILL.md +71 -36
  327. package/templates/AGENTS.md +54 -16
  328. package/templates/agents/api.md +36 -0
  329. package/templates/agents/csv.md +2 -1
  330. package/templates/agents/doc.md +52 -3
  331. package/templates/agents/page.md +91 -10
  332. package/templates/agents/slide.md +90 -4
  333. package/templates/agents/xlsx.md +2 -1
  334. package/theme.css +247 -132
  335. package/dist/add-EISGSZAH.js +0 -6
  336. package/dist/add-EISGSZAH.js.map +0 -1
  337. package/dist/chunk-3G43C6OL.js.map +0 -1
  338. package/dist/chunk-5ZOP4SQR.js +0 -47
  339. package/dist/chunk-5ZOP4SQR.js.map +0 -1
  340. package/dist/chunk-A2UUGASH.js.map +0 -1
  341. package/dist/chunk-BCE22JSM.js.map +0 -1
  342. package/dist/chunk-DTDVSFRY.js +0 -29
  343. package/dist/chunk-DTDVSFRY.js.map +0 -1
  344. package/dist/chunk-EP6JHXSR.js.map +0 -1
  345. package/dist/chunk-JGRMRXXZ.js.map +0 -1
  346. package/dist/chunk-KLEIVDUV.js +0 -165
  347. package/dist/chunk-KLEIVDUV.js.map +0 -1
  348. package/dist/chunk-LSRMRIXA.js +0 -2227
  349. package/dist/chunk-LSRMRIXA.js.map +0 -1
  350. package/dist/chunk-PVTHHV7X.js.map +0 -1
  351. package/dist/chunk-PXRX5PEC.js.map +0 -1
  352. package/dist/chunk-RPZAALCX.js.map +0 -1
  353. package/dist/chunk-T3FLAGI6.js +0 -316
  354. package/dist/chunk-T3FLAGI6.js.map +0 -1
  355. package/dist/dev-NZRLOQCL.js.map +0 -1
  356. package/dist/doctor-VFKEMR54.js.map +0 -1
  357. package/dist/preview-QDCIVVSR.js.map +0 -1
@@ -0,0 +1,31 @@
1
+ # Avatar
2
+
3
+ > A user's photo or initials.
4
+
5
+ Shows a user or owner as a small circle. When the image fails to load, or there is no `src`, it
6
+ shows the content of `AvatarFallback` (initials, for example).
7
+
8
+ ```tsx
9
+ import {
10
+ Avatar,
11
+ AvatarImage,
12
+ AvatarFallback,
13
+ AvatarBadge,
14
+ AvatarGroup,
15
+ AvatarGroupCount,
16
+ } from "@squadbase/vantage/ui";
17
+ ```
18
+
19
+ ## Parts
20
+
21
+ | Part | Role |
22
+ | --- | --- |
23
+ | `Avatar` | The frame. `size` picks the dimensions |
24
+ | `AvatarImage` | The image. Not rendered if loading fails |
25
+ | `AvatarFallback` | What shows when there is no image |
26
+ | `AvatarBadge` | A small dot at the bottom right (an online indicator, say) |
27
+ | `AvatarGroup` / `AvatarGroupCount` | Overlapping row. `AvatarGroupCount` is the remainder, such as "+4" |
28
+
29
+ | Prop | Type | Default | Description |
30
+ | --- | --- | --- | --- |
31
+ | `size` | `"default" \| "sm" \| "lg"` | `"default"` | Passed to `Avatar`. `sm` is 24px, `default` is 32px, `lg` is 40px. |
@@ -0,0 +1,74 @@
1
+ # Combobox
2
+
3
+ > A select you filter by typing.
4
+
5
+ An input where you type to narrow the options and pick one (or several). For just a few options,
6
+ [`Select`](ui/select) takes fewer steps. It is built on Base UI's `Combobox`.
7
+
8
+ ```tsx
9
+ import {
10
+ Combobox,
11
+ ComboboxInput,
12
+ ComboboxContent,
13
+ ComboboxEmpty,
14
+ ComboboxList,
15
+ ComboboxItem,
16
+ ComboboxGroup,
17
+ ComboboxLabel,
18
+ ComboboxCollection,
19
+ ComboboxSeparator,
20
+ ComboboxChips,
21
+ ComboboxChip,
22
+ ComboboxChipsInput,
23
+ ComboboxTrigger,
24
+ ComboboxValue,
25
+ useComboboxAnchor,
26
+ } from "@squadbase/vantage/ui";
27
+ ```
28
+
29
+ ## Parts
30
+
31
+ | Part | Role |
32
+ | --- | --- |
33
+ | `Combobox` | The state: `items` / `value` / `defaultValue` / `onValueChange` / `multiple` |
34
+ | `ComboboxInput` | The input. `showTrigger` (default `true`) and `showClear` (default `false`) toggle the buttons on the right |
35
+ | `ComboboxContent` | The popup. `side` / `align` / `anchor` |
36
+ | `ComboboxList` | The options. Pass a function as the child and it receives the filtered `items` one by one |
37
+ | `ComboboxItem` | One option. `value` is required |
38
+ | `ComboboxEmpty` | Shown when nothing matches |
39
+ | `ComboboxGroup` / `ComboboxLabel` / `ComboboxCollection` / `ComboboxSeparator` | Grouping |
40
+ | `ComboboxChips` / `ComboboxChip` / `ComboboxChipsInput` | Show a multiple selection as chips. `ComboboxChip` has a remove button; `showRemove={false}` hides it |
41
+ | `ComboboxTrigger` / `ComboboxValue` | The button-opened form, without the input |
42
+ | `useComboboxAnchor` | A ref that makes the chip frame the popup's reference |
43
+
44
+ | Prop | Type | Default | Description |
45
+ | --- | --- | --- | --- |
46
+ | `items` | `readonly unknown[]` | | The options passed to `Combobox`. They are filtered as the user types and handed to the function in `ComboboxList`. |
47
+ | `multiple` | `boolean` | `false` | Allow selecting several. |
48
+ | `onValueChange` | `(value) => void` | | Called when the selection changes. In single-select mode it can also receive `null` for no selection. |
49
+
50
+ ## Multiple selection
51
+
52
+ Add `multiple`, and place the chips and a `ComboboxChipsInput` inside `ComboboxChips`. To match the
53
+ popup's width to the chip frame, give the ref from `useComboboxAnchor()` to both
54
+ `ComboboxChips` and `ComboboxContent`.
55
+
56
+ ```tsx
57
+ const anchor = useComboboxAnchor();
58
+
59
+ <Combobox items={metrics} multiple>
60
+ <ComboboxChips ref={anchor}>
61
+ <ComboboxValue>
62
+ {(values: string[]) =>
63
+ values.map((v) => <ComboboxChip key={v}>{v}</ComboboxChip>)
64
+ }
65
+ </ComboboxValue>
66
+ <ComboboxChipsInput placeholder="Add a metric" />
67
+ </ComboboxChips>
68
+ <ComboboxContent anchor={anchor}>
69
+ <ComboboxList>
70
+ {(item: string) => <ComboboxItem key={item} value={item}>{item}</ComboboxItem>}
71
+ </ComboboxList>
72
+ </ComboboxContent>
73
+ </Combobox>;
74
+ ```
@@ -0,0 +1,41 @@
1
+ # Drawer
2
+
3
+ > A panel you swipe in and out from the edge of the screen.
4
+
5
+ A panel that comes in from the bottom of the screen (or any edge). You can dismiss it by
6
+ swiping, so it suits detail views and action lists on mobile. For a large form on desktop,
7
+ [`Sheet`](ui/sheet) is the more natural choice. It is built on Base UI's `Drawer`.
8
+
9
+ ```tsx
10
+ import {
11
+ Drawer,
12
+ DrawerTrigger,
13
+ DrawerContent,
14
+ DrawerHeader,
15
+ DrawerTitle,
16
+ DrawerDescription,
17
+ DrawerFooter,
18
+ DrawerClose,
19
+ } from "@squadbase/vantage/ui";
20
+ ```
21
+
22
+ ## Parts
23
+
24
+ | Part | Role |
25
+ | --- | --- |
26
+ | `Drawer` | The state: `open` / `defaultOpen` / `onOpenChange`, direction, snap points |
27
+ | `DrawerTrigger` | What opens it; `render` turns it into a button |
28
+ | `DrawerContent` | The panel. It includes the overlay and the portal |
29
+ | `DrawerHeader` / `DrawerTitle` / `DrawerDescription` | The heading block |
30
+ | `DrawerFooter` | The button row |
31
+ | `DrawerClose` | Anything that closes it |
32
+
33
+ | Prop | Type | Default | Description |
34
+ | --- | --- | --- | --- |
35
+ | `swipeDirection` | `"down" \| "up" \| "left" \| "right"` | `"down"` | Passed to `Drawer`. The direction you swipe to dismiss it (which is also the edge it comes from). |
36
+ | `showSwipeHandle` | `boolean` | `false` | Passed to `Drawer`. Shows a grab handle. |
37
+ | `snapPoints` | `(number \| string)[]` | | Passed to `Drawer`. Heights where it can rest part-way (`0.5` or `"20rem"`). |
38
+ | `modal` | `boolean` | `true` | Passed to `Drawer`. With `false` the page behind stays interactive and no overlay is shown. |
39
+
40
+ `DrawerTitle` is required for assistive technology. If you don't want it visible, keep it and add
41
+ `className="sr-only"`.
@@ -10,7 +10,7 @@ import { Empty } from "@squadbase/vantage/ui";
10
10
 
11
11
  | Prop | Type | Default | Description |
12
12
  | --- | --- | --- | --- |
13
- | `title` | `string` | `"Nothing here yet"` | The heading. |
13
+ | `title` | `string` | `"表示できるデータがありません"` | The heading. |
14
14
  | `description` | `string` | | Supporting text under the heading. |
15
15
  | `icon` | `ReactNode` | | Artwork above the heading. |
16
16
  | `action` | `ReactNode` | | The next step — a button or link — at the bottom. |
@@ -11,8 +11,9 @@ import { ErrorState } from "@squadbase/vantage/ui";
11
11
 
12
12
  | Prop | Type | Default | Description |
13
13
  | --- | --- | --- | --- |
14
- | `title` | `string` | `"Something went wrong"` | The heading. |
15
- | `message` | `ReactNode` | | The details — an error message can go straight in. |
14
+ | `title` | `string` | `"データを読み込めませんでした"` | The heading. |
15
+ | `message` | `ReactNode` | `"時間をおいて再試行してください。解決しない場合は管理者にお問い合わせください。"` | What happened and what to do next, in plain words. |
16
+ | `details` | `ReactNode` | | Technical detail (error message, status code). Folded behind a "詳細を表示" disclosure. |
16
17
  | `action` | `ReactNode` | | A retry button, typically. |
17
18
  | `className` | `string` | | Classes to add. |
18
19
 
@@ -35,7 +36,7 @@ export default function Customers() {
35
36
  if (error)
36
37
  return (
37
38
  <ErrorState
38
- message={error.message}
39
+ details={error.message}
39
40
  action={<Button variant="outline" onClick={() => refetch()}>Retry</Button>}
40
41
  />
41
42
  );
@@ -0,0 +1,42 @@
1
+ # Field
2
+
3
+ > A form layout part that binds a label, description and error to an input.
4
+
5
+ Lays out one input's label, helper text and error message with fixed spacing and direction. Put the
6
+ input itself, such as [`Input`](ui/input) or [`Switch`](ui/switch),
7
+ inside it.
8
+
9
+ ```tsx
10
+ import {
11
+ Field,
12
+ FieldLabel,
13
+ FieldDescription,
14
+ FieldError,
15
+ FieldContent,
16
+ FieldTitle,
17
+ FieldGroup,
18
+ FieldSet,
19
+ FieldLegend,
20
+ FieldSeparator,
21
+ } from "@squadbase/vantage/ui";
22
+ ```
23
+
24
+ ## Parts
25
+
26
+ | Part | Role |
27
+ | --- | --- |
28
+ | `Field` | The frame for one input. `orientation` picks the layout |
29
+ | `FieldLabel` | The label (uses `Label`). Tie it to the input with `htmlFor` |
30
+ | `FieldDescription` | Helper text |
31
+ | `FieldError` | The error. Pass `children` or `errors` (`{ message }[]`). Renders nothing when empty |
32
+ | `FieldContent` | A column that groups the label and description in a horizontal layout |
33
+ | `FieldTitle` | A heading that is not a `<label>` |
34
+ | `FieldGroup` | Stacks several `Field`s vertically |
35
+ | `FieldSet` / `FieldLegend` | `<fieldset>` / `<legend>`. `FieldLegend` takes `variant` (`"legend"` by default, or `"label"` for smaller text) |
36
+ | `FieldSeparator` | A divider line. You can put text in the middle |
37
+
38
+ | Prop | Type | Default | Description |
39
+ | --- | --- | --- | --- |
40
+ | `orientation` | `"vertical" \| "horizontal" \| "responsive"` | `"vertical"` | Passed to `Field`. `responsive` goes horizontal only when the container is wide. |
41
+ | `data-invalid` | `boolean` | | Set on `Field` to turn the label and description the error colour. Also put `aria-invalid` on the input. |
42
+ | `errors` | `Array<{ message?: string } \| undefined>` | | Passed to `FieldError`. Several are shown as a bulleted list, and duplicates are merged into one. |
@@ -0,0 +1,21 @@
1
+ # Hover Card
2
+
3
+ > A preview card that appears when you hover a link.
4
+
5
+ Shows supplementary content in a card when the pointer rests on a link or term (or when it receives
6
+ keyboard focus). Meant for **read-only** information such as a metric definition or a user profile.
7
+ For anything interactive use [`Popover`](ui/popover); for a short phrase use
8
+ [`Tooltip`](ui/tooltip). Built on Base UI's `PreviewCard`.
9
+
10
+ ```tsx
11
+ import { HoverCard, HoverCardTrigger, HoverCardContent } from "@squadbase/vantage/ui";
12
+ ```
13
+
14
+ `HoverCardTrigger` renders an `<a>` by default. Pass `render` to use another element.
15
+
16
+ | Prop | Type | Default | Description |
17
+ | --- | --- | --- | --- |
18
+ | `side` | `"top" \| "right" \| "bottom" \| "left"` | `"bottom"` | Passed to `HoverCardContent`. Which side of the trigger it appears on. |
19
+ | `align` | `"start" \| "center" \| "end"` | `"center"` | Passed to `HoverCardContent`. |
20
+ | `sideOffset` | `number` | `4` | Distance in px between `HoverCardContent` and the trigger. |
21
+ | `delay` | `number` | `600` | Passed to `HoverCardTrigger`. Milliseconds before it opens. |
@@ -0,0 +1,17 @@
1
+ # Kbd
2
+
3
+ > A keyboard key.
4
+
5
+ A small part for showing shortcut keys. Line several keys up with `KbdGroup`.
6
+
7
+ ```tsx
8
+ import { Kbd, KbdGroup } from "@squadbase/vantage/ui";
9
+ ```
10
+
11
+ | Prop | Type | Description |
12
+ | --- | --- | --- |
13
+ | `Kbd` | `ComponentProps<"kbd">` | A single key. |
14
+ | `KbdGroup` | `ComponentProps<"div">` | Lays the keys out side by side. |
15
+
16
+ Placed inside a button or a [`Tooltip`](ui/tooltip), it blends in with the
17
+ surrounding text colour.
@@ -12,7 +12,7 @@ import { Loading } from "@squadbase/vantage/ui";
12
12
 
13
13
  | Prop | Type | Default | Description |
14
14
  | --- | --- | --- | --- |
15
- | `label` | `string` | `"Loading…"` | Text shown next to the spinner. |
15
+ | `label` | `string` | `"読み込んでいます…"` | Text shown next to the spinner. |
16
16
  | `className` | `string` | | Classes to add. By default it centres within a 30vh minimum height. |
17
17
 
18
18
  To hold the layout while waiting use [`Skeleton`](ui/skeleton); in tight spots such
@@ -0,0 +1,36 @@
1
+ # Pagination
2
+
3
+ > A row of page links.
4
+
5
+ Page navigation for a list split into pages. It is purely visual and holds neither the current page
6
+ nor the total — the caller owns that state (URL search params or `useState`).
7
+
8
+ ```tsx
9
+ import {
10
+ Pagination,
11
+ PaginationContent,
12
+ PaginationItem,
13
+ PaginationLink,
14
+ PaginationPrevious,
15
+ PaginationNext,
16
+ PaginationEllipsis,
17
+ } from "@squadbase/vantage/ui";
18
+ ```
19
+
20
+ ## Parts
21
+
22
+ | Part | Role |
23
+ | --- | --- |
24
+ | `Pagination` | The `<nav>`, with `aria-label="pagination"` |
25
+ | `PaginationContent` / `PaginationItem` | The `<ul>` / `<li>` |
26
+ | `PaginationLink` | One page's `<a>`. `isActive` marks the current page |
27
+ | `PaginationPrevious` / `PaginationNext` | The `<a>` to the previous / next page. `text` changes the wording |
28
+ | `PaginationEllipsis` | The ellipsis |
29
+
30
+ | Prop | Type | Default | Description |
31
+ | --- | --- | --- | --- |
32
+ | `isActive` | `boolean` | | Passed to `PaginationLink`. Sets `aria-current="page"` and an outlined look. |
33
+ | `text` | `string` | `"Previous" / "Next"` | Label of `PaginationPrevious` / `PaginationNext` (hidden below 640px). |
34
+
35
+ The links are plain `<a>` elements, so passing `href` navigates as usual. To change only in-page
36
+ state, call `preventDefault()` in `onClick`.
@@ -0,0 +1,21 @@
1
+ # Radio Group
2
+
3
+ > Radio buttons for choosing one of a few options.
4
+
5
+ An input that keeps every option visible and lets the user pick one. With many options consider
6
+ [`Select`](ui/select); to switch with side-by-side buttons consider
7
+ [`SegmentedControl`](parts/segmented-control).
8
+
9
+ ```tsx
10
+ import { RadioGroup, RadioGroupItem } from "@squadbase/vantage/ui";
11
+ ```
12
+
13
+ `RadioGroupItem` has no label of its own. Give it an `id` and tie it to a
14
+ [`Label`](ui/label) through `htmlFor`.
15
+
16
+ | Prop | Type | Description |
17
+ | --- | --- | --- |
18
+ | `value` | `unknown` | The selected value of `RadioGroup` (controlled). |
19
+ | `defaultValue` | `unknown` | The initial value of `RadioGroup` (uncontrolled). |
20
+ | `onValueChange` | `(value: unknown) => void` | Passed to `RadioGroup`. Receives the `value` of the chosen `RadioGroupItem`. |
21
+ | `disabled` | `boolean` | Disables the whole group, or a single item. |
@@ -0,0 +1,44 @@
1
+ # Toast
2
+
3
+ > A transient notification in the corner of the screen.
4
+
5
+ A short notice about the result of an action, such as a save succeeding or failing. Built on Base
6
+ UI's `Toast`; it does not depend on `sonner`.
7
+
8
+ ```tsx
9
+ import { Toaster, toast } from "@squadbase/vantage/ui";
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ **Wrap the app root in `Toaster` once**, then call `toast.add()` from anywhere. `Toaster` renders
15
+ its children and adds a stack for notifications at the bottom right (bottom centre on mobile).
16
+
17
+ ```tsx
18
+ <Toaster>
19
+ <App />
20
+ </Toaster>;
21
+
22
+ toast.add({ title: "レポートを保存しました", type: "success" });
23
+ ```
24
+
25
+ `toast` is a manager created once per module, with `add` / `close` / `update` / `promise`.
26
+
27
+ | Prop | Type | Default | Description |
28
+ | --- | --- | --- | --- |
29
+ | `title` | `ReactNode` | | The heading. |
30
+ | `description` | `ReactNode` | | The body. |
31
+ | `type` | `"success" \| "info" \| "warning" \| "error" \| "loading" \| string` | | Picks the icon shown on the left. No icon if omitted. |
32
+ | `timeout` | `number` | `5000` | Milliseconds until it closes itself. `0` keeps it open. |
33
+ | `actionProps` | `ButtonProps` | | Shows an action button when given (`children` is the label, `onClick` the handler). |
34
+
35
+ `toast.add()` returns an ID. Replace the contents with `toast.update(id, {...})` and close it with
36
+ `toast.close(id)`. For async work use `toast.promise(promise, { loading, success, error })`.
37
+
38
+ > [!NOTE]
39
+ > The call style differs from shadcn/ui's `sonner` version (`toast("…")` / `toast.success("…")`).
40
+ > This has the same API as shadcn/ui's Base UI `toast`. When you need a separate manager outside
41
+ > `Toaster`, create one with `createToastManager()` and pass it as `<Toaster toastManager={manager}>`.
42
+ > You can also recompose the parts (`Toast` / `ToastTitle` / `ToastDescription` / `ToastAction` /
43
+ > `ToastClose` / `ToastViewport` / `ToastPortal` / `ToastProvider`, `useToastManager`) into your own
44
+ > layout.
@@ -14,13 +14,14 @@ import { ToggleGroup, ToggleGroupItem } from "@squadbase/vantage/ui";
14
14
  | --- | --- | --- | --- |
15
15
  | `value` | `string[]` | | The selected values — **an array even for single choice**. |
16
16
  | `onValueChange` | `(value: string[]) => void` | | Fired on change, with an array. |
17
- | `toggleMultiple` | `boolean` | | Allow more than one selection. |
17
+ | `multiple` | `boolean` | `false` | `true` allows more than one selection. |
18
18
  | `variant` | `"default" \| "outline"` | `"default"` | |
19
19
  | `size` | `"default" \| "sm" \| "lg"` | `"default"` | |
20
20
  | `spacing` | `number` | `2` | Gap between items; `0` welds them into one band. |
21
21
  | `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | |
22
22
 
23
23
  > [!WARNING]
24
- > There is no Radix-style `type="single"` / `type="multiple"`. Single choice means keeping the array's
25
- > length at one yourself. [`SegmentedControl`](parts/segmented-control) already does
24
+ > There is no Radix-style `type="single"` / `type="multiple"`. Instead there is a boolean `multiple`;
25
+ > by default (`false`) only one item can be pressed at a time. Even then `value` is an array of at
26
+ > most one element. [`SegmentedControl`](parts/segmented-control) already handles
26
27
  > that, so prefer it when you want single choice.
@@ -36,7 +36,7 @@ In `/ui` (a selection): `Button`, `Card`, the `Table` primitives, `Tabs`, `Input
36
36
  `DropdownMenu`, `Sidebar`, `Alert` / `Skeleton` / `Spinner`, `Loading` / `Empty` / `ErrorState`.
37
37
 
38
38
  In `/components` (a selection): `PageShell`, `AppShell`, `DashboardCard`, `DataTable`, `EChart`,
39
- `FunnelSteps`, `FilterBar`, `DateRangePicker`, `MetricValue`, `TrendIndicator`.
39
+ `FunnelSteps`, `FilterBar`, `DateRangePicker`, `KpiCard`, `Delta`.
40
40
 
41
41
  Props and usage for every component live in the [Components](components) tab.
42
42