@squadbase/vantage 0.6.1 → 0.6.2-dev1.0017a4d

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 (319) 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-X5NVCQKT.js} +9 -9
  4. package/dist/{build-O5TVNH4E.js.map → build-X5NVCQKT.js.map} +1 -1
  5. package/dist/{check-WFBEDHDR.js → check-ZBIH422T.js} +7 -7
  6. package/dist/{check-WFBEDHDR.js.map → check-ZBIH422T.js.map} +1 -1
  7. package/dist/chunk-2IAPIOPS.js +152 -0
  8. package/dist/chunk-2IAPIOPS.js.map +1 -0
  9. package/dist/chunk-2ICNHUG6.js +1820 -0
  10. package/dist/chunk-2ICNHUG6.js.map +1 -0
  11. package/dist/{chunk-5ZOP4SQR.js → chunk-2N72FKLB.js} +12 -7
  12. package/dist/chunk-2N72FKLB.js.map +1 -0
  13. package/dist/chunk-57GHR5LN.js +163 -0
  14. package/dist/chunk-57GHR5LN.js.map +1 -0
  15. package/dist/{chunk-BCE22JSM.js → chunk-7DZGJQ3P.js} +33 -14
  16. package/dist/chunk-7DZGJQ3P.js.map +1 -0
  17. package/dist/{chunk-MXI3PZFT.js → chunk-7S52M2SL.js} +257 -210
  18. package/dist/chunk-7S52M2SL.js.map +1 -0
  19. package/dist/{chunk-QDZA5JSL.js → chunk-AABMKHEU.js} +4 -4
  20. package/dist/{chunk-QDZA5JSL.js.map → chunk-AABMKHEU.js.map} +1 -1
  21. package/dist/{chunk-KLEIVDUV.js → chunk-CEXAQQ5W.js} +150 -11
  22. package/dist/chunk-CEXAQQ5W.js.map +1 -0
  23. package/dist/{chunk-3G43C6OL.js → chunk-GNXCX4WE.js} +46 -3
  24. package/dist/chunk-GNXCX4WE.js.map +1 -0
  25. package/dist/{chunk-JGRMRXXZ.js → chunk-JKLLFVEU.js} +3 -3
  26. package/dist/{chunk-JGRMRXXZ.js.map → chunk-JKLLFVEU.js.map} +1 -1
  27. package/dist/chunk-JXFCSF3K.js +673 -0
  28. package/dist/chunk-JXFCSF3K.js.map +1 -0
  29. package/dist/chunk-PDOBHMUQ.js +54 -0
  30. package/dist/chunk-PDOBHMUQ.js.map +1 -0
  31. package/dist/{chunk-ZVANIULZ.js → chunk-RNTDBX6S.js} +4 -4
  32. package/dist/{chunk-ZVANIULZ.js.map → chunk-RNTDBX6S.js.map} +1 -1
  33. package/dist/chunk-RU6WKEOG.js +7048 -0
  34. package/dist/chunk-RU6WKEOG.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-PVTHHV7X.js → chunk-V3LF7BE7.js} +27 -5
  38. package/dist/chunk-V3LF7BE7.js.map +1 -0
  39. package/dist/{chunk-EP6JHXSR.js → chunk-WAMZWZJB.js} +54 -9
  40. package/dist/chunk-WAMZWZJB.js.map +1 -0
  41. package/dist/{chunk-DTDVSFRY.js → chunk-XQUSGIDG.js} +17 -3
  42. package/dist/chunk-XQUSGIDG.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 +32 -3
  46. package/dist/client/index.js +205 -12
  47. package/dist/client/index.js.map +1 -1
  48. package/dist/components/index.d.ts +1743 -29
  49. package/dist/components/index.js +7 -3
  50. package/dist/{dev-NZRLOQCL.js → dev-4XEDTELV.js} +24 -13
  51. package/dist/dev-4XEDTELV.js.map +1 -0
  52. package/dist/doc/index.d.ts +198 -2
  53. package/dist/doc/index.js +438 -11
  54. package/dist/doc/index.js.map +1 -1
  55. package/dist/{docs-ZGDJUHJI.js → docs-JVP4RPKT.js} +3 -3
  56. package/dist/{docs-ZGDJUHJI.js.map → docs-JVP4RPKT.js.map} +1 -1
  57. package/dist/{doctor-VFKEMR54.js → doctor-5E2VEZPK.js} +8 -8
  58. package/dist/doctor-5E2VEZPK.js.map +1 -0
  59. package/dist/format-U0cQl069.d.ts +243 -0
  60. package/dist/markdown/index.js +1 -1
  61. package/dist/markdown/index.js.map +1 -1
  62. package/dist/{preview-QDCIVVSR.js → preview-T6CLSQVX.js} +12 -4
  63. package/dist/preview-T6CLSQVX.js.map +1 -0
  64. package/dist/query/index.d.ts +0 -11
  65. package/dist/query/index.js +2 -2
  66. package/dist/{routes-RHP5FVGD.js → routes-3SGAFDMC.js} +6 -6
  67. package/dist/{routes-RHP5FVGD.js.map → routes-3SGAFDMC.js.map} +1 -1
  68. package/dist/{search-RFBELGY7.js → search-5LC4XPB5.js} +3 -3
  69. package/dist/{search-RFBELGY7.js.map → search-5LC4XPB5.js.map} +1 -1
  70. package/dist/slide/index.d.ts +177 -1
  71. package/dist/slide/index.js +917 -18
  72. package/dist/slide/index.js.map +1 -1
  73. package/dist/table/index.js +14 -9
  74. package/dist/table/index.js.map +1 -1
  75. package/dist/ui/index.d.ts +148 -12
  76. package/dist/ui/index.js +1340 -87
  77. package/dist/ui/index.js.map +1 -1
  78. package/dist/{upgrade-GF2P67M6.js → upgrade-JHXZBGQS.js} +7 -7
  79. package/dist/{upgrade-GF2P67M6.js.map → upgrade-JHXZBGQS.js.map} +1 -1
  80. package/dist/vite/index.d.ts +10 -0
  81. package/dist/vite/index.js +4 -4
  82. package/docs/en/changelog.md +24 -0
  83. package/docs/en/cli-reference.md +30 -0
  84. package/docs/en/components.md +40 -17
  85. package/docs/en/doc/doc-action-items.md +49 -0
  86. package/docs/en/doc/doc-callout.md +38 -0
  87. package/docs/en/doc/doc-data-table.md +60 -0
  88. package/docs/en/doc/doc-executive-summary.md +64 -0
  89. package/docs/en/doc/doc-figure.md +56 -0
  90. package/docs/en/doc/doc-key-findings.md +61 -0
  91. package/docs/en/doc/doc-kpi-scorecard.md +80 -0
  92. package/docs/en/doc/doc-report-header.md +46 -0
  93. package/docs/en/parts/area-chart.md +99 -0
  94. package/docs/en/parts/bar-chart.md +91 -0
  95. package/docs/en/parts/bar-list.md +50 -0
  96. package/docs/en/parts/category-bar.md +37 -0
  97. package/docs/en/parts/chart-frame.md +39 -0
  98. package/docs/en/parts/data-table.md +22 -0
  99. package/docs/en/parts/delta.md +50 -0
  100. package/docs/en/parts/donut-chart.md +72 -0
  101. package/docs/en/parts/format.md +43 -0
  102. package/docs/en/parts/funnel-steps.md +2 -1
  103. package/docs/en/parts/heatmap.md +53 -0
  104. package/docs/en/parts/kpi-card.md +57 -0
  105. package/docs/en/parts/legend.md +35 -0
  106. package/docs/en/parts/line-chart.md +94 -0
  107. package/docs/en/parts/metric-value.md +3 -2
  108. package/docs/en/parts/page-shell.md +1 -1
  109. package/docs/en/parts/progress-circle.md +33 -0
  110. package/docs/en/parts/sample-data.md +39 -0
  111. package/docs/en/parts/scatter-chart.md +56 -0
  112. package/docs/en/parts/sparkline.md +1 -1
  113. package/docs/en/parts/tracker.md +36 -0
  114. package/docs/en/parts/trend-indicator.md +17 -1
  115. package/docs/en/parts/updated-at.md +30 -0
  116. package/docs/en/parts/waterfall-chart.md +56 -0
  117. package/docs/en/routing.md +4 -2
  118. package/docs/en/slide/slide-chart-insight.md +52 -0
  119. package/docs/en/slide/slide-cover.md +39 -0
  120. package/docs/en/slide/slide-exec-summary.md +47 -0
  121. package/docs/en/slide/slide-kpi-grid.md +55 -0
  122. package/docs/en/slide/slide-kpi-hero.md +58 -0
  123. package/docs/en/slide/slide-next-actions.md +49 -0
  124. package/docs/en/slide/slide-scorecard-table.md +54 -0
  125. package/docs/en/ui/alert-dialog.md +42 -0
  126. package/docs/en/ui/avatar.md +31 -0
  127. package/docs/en/ui/combobox.md +74 -0
  128. package/docs/en/ui/drawer.md +41 -0
  129. package/docs/en/ui/empty.md +1 -1
  130. package/docs/en/ui/error-state.md +4 -3
  131. package/docs/en/ui/field.md +42 -0
  132. package/docs/en/ui/hover-card.md +21 -0
  133. package/docs/en/ui/kbd.md +17 -0
  134. package/docs/en/ui/loading.md +1 -1
  135. package/docs/en/ui/pagination.md +36 -0
  136. package/docs/en/ui/radio-group.md +21 -0
  137. package/docs/en/ui/toast.md +44 -0
  138. package/docs/en/ui/toggle-group.md +4 -3
  139. package/docs/en/ui-and-theming.md +1 -1
  140. package/docs/index.json +1024 -114
  141. package/docs/ja/changelog.md +55 -0
  142. package/docs/ja/cli-reference.md +29 -0
  143. package/docs/ja/components.md +66 -101
  144. package/docs/ja/doc/doc-action-items.md +49 -0
  145. package/docs/ja/doc/doc-callout.md +38 -0
  146. package/docs/ja/doc/doc-data-table.md +60 -0
  147. package/docs/ja/doc/doc-executive-summary.md +64 -0
  148. package/docs/ja/doc/doc-figure.md +56 -0
  149. package/docs/ja/doc/doc-key-findings.md +61 -0
  150. package/docs/ja/doc/doc-kpi-scorecard.md +80 -0
  151. package/docs/ja/doc/doc-report-header.md +46 -0
  152. package/docs/ja/page-types/csv.md +83 -0
  153. package/docs/ja/page-types/doc.md +83 -0
  154. package/docs/ja/page-types/excel.md +82 -0
  155. package/docs/ja/page-types/slide.md +132 -0
  156. package/docs/ja/page-types.md +47 -0
  157. package/docs/ja/parts/area-chart.md +85 -0
  158. package/docs/ja/parts/bar-chart.md +95 -0
  159. package/docs/ja/parts/bar-list.md +58 -0
  160. package/docs/ja/parts/category-bar.md +36 -0
  161. package/docs/ja/parts/chart-frame.md +36 -0
  162. package/docs/ja/parts/data-table.md +22 -0
  163. package/docs/ja/parts/delta.md +50 -0
  164. package/docs/ja/parts/donut-chart.md +66 -0
  165. package/docs/ja/parts/echart.md +3 -0
  166. package/docs/ja/parts/format.md +44 -0
  167. package/docs/ja/parts/funnel-steps.md +27 -8
  168. package/docs/ja/parts/heatmap.md +45 -0
  169. package/docs/ja/parts/kpi-card.md +55 -0
  170. package/docs/ja/parts/legend.md +36 -0
  171. package/docs/ja/parts/line-chart.md +84 -0
  172. package/docs/ja/parts/metric-value.md +3 -2
  173. package/docs/ja/parts/page-shell.md +1 -1
  174. package/docs/ja/parts/progress-circle.md +34 -0
  175. package/docs/ja/parts/sample-data.md +61 -0
  176. package/docs/ja/parts/scatter-chart.md +69 -0
  177. package/docs/ja/parts/sparkline.md +2 -2
  178. package/docs/ja/parts/tracker.md +32 -0
  179. package/docs/ja/parts/trend-indicator.md +17 -1
  180. package/docs/ja/parts/updated-at.md +27 -0
  181. package/docs/ja/parts/waterfall-chart.md +61 -0
  182. package/docs/ja/routing.md +8 -84
  183. package/docs/ja/slide/slide-chart-insight.md +52 -0
  184. package/docs/ja/slide/slide-cover.md +39 -0
  185. package/docs/ja/slide/slide-exec-summary.md +47 -0
  186. package/docs/ja/slide/slide-kpi-grid.md +55 -0
  187. package/docs/ja/slide/slide-kpi-hero.md +58 -0
  188. package/docs/ja/slide/slide-next-actions.md +49 -0
  189. package/docs/ja/slide/slide-scorecard-table.md +54 -0
  190. package/docs/ja/ui/alert-dialog.md +41 -0
  191. package/docs/ja/ui/avatar.md +31 -0
  192. package/docs/ja/ui/combobox.md +74 -0
  193. package/docs/ja/ui/drawer.md +41 -0
  194. package/docs/ja/ui/empty.md +1 -1
  195. package/docs/ja/ui/error-state.md +4 -3
  196. package/docs/ja/ui/field.md +42 -0
  197. package/docs/ja/ui/hover-card.md +21 -0
  198. package/docs/ja/ui/kbd.md +16 -0
  199. package/docs/ja/ui/loading.md +1 -1
  200. package/docs/ja/ui/pagination.md +36 -0
  201. package/docs/ja/ui/radio-group.md +21 -0
  202. package/docs/ja/ui/toast.md +46 -0
  203. package/docs/ja/ui/toggle-group.md +4 -3
  204. package/docs/ja/ui-and-theming.md +14 -7
  205. package/package.json +43 -29
  206. package/registry/ui/accordion.tsx +76 -0
  207. package/registry/ui/alert-dialog.tsx +189 -0
  208. package/registry/ui/alert.tsx +80 -0
  209. package/registry/ui/app-shell.tsx +287 -0
  210. package/registry/ui/area-chart.tsx +3701 -0
  211. package/registry/ui/attention-list.tsx +303 -0
  212. package/registry/ui/avatar.tsx +110 -0
  213. package/registry/ui/badge.tsx +56 -0
  214. package/registry/ui/bar-chart.tsx +3698 -0
  215. package/registry/ui/bar-list.tsx +3743 -0
  216. package/registry/ui/box-plot-chart.tsx +3906 -0
  217. package/registry/ui/breadcrumb.tsx +128 -0
  218. package/registry/ui/button.tsx +62 -0
  219. package/registry/ui/calendar.tsx +223 -0
  220. package/registry/ui/card.tsx +107 -0
  221. package/registry/ui/category-bar.tsx +1290 -0
  222. package/registry/ui/chart-frame.tsx +1393 -0
  223. package/registry/ui/checkbox.tsx +30 -0
  224. package/registry/ui/collapsible.tsx +23 -0
  225. package/registry/ui/combobox.tsx +310 -0
  226. package/registry/ui/command.tsx +198 -0
  227. package/registry/ui/dashboard-card.tsx +217 -0
  228. package/registry/ui/data-table.tsx +693 -146
  229. package/registry/ui/date-range-picker.tsx +390 -0
  230. package/registry/ui/delta.tsx +188 -0
  231. package/registry/ui/dialog.tsx +161 -0
  232. package/registry/ui/donut-chart.tsx +3751 -0
  233. package/registry/ui/drawer.tsx +229 -0
  234. package/registry/ui/dropdown-menu.tsx +274 -0
  235. package/registry/ui/echart.tsx +1040 -0
  236. package/registry/ui/field.tsx +240 -0
  237. package/registry/ui/filter-bar.tsx +392 -0
  238. package/registry/ui/funnel-steps.tsx +3569 -0
  239. package/registry/ui/heatmap.tsx +1786 -0
  240. package/registry/ui/histogram-chart.tsx +3986 -0
  241. package/registry/ui/hover-card.tsx +52 -0
  242. package/registry/ui/input-group.tsx +160 -0
  243. package/registry/ui/input.tsx +24 -0
  244. package/registry/ui/kbd.tsx +30 -0
  245. package/registry/ui/kpi-card.tsx +699 -0
  246. package/registry/ui/label.tsx +22 -0
  247. package/registry/ui/legend.tsx +3563 -0
  248. package/registry/ui/line-chart.tsx +3699 -0
  249. package/registry/ui/metric-value.tsx +62 -0
  250. package/registry/ui/multi-select.tsx +232 -0
  251. package/registry/ui/page-shell.tsx +282 -0
  252. package/registry/ui/pagination.tsx +140 -0
  253. package/registry/ui/paired-chart.tsx +3827 -0
  254. package/registry/ui/placeholder.tsx +36 -0
  255. package/registry/ui/popover.tsx +92 -0
  256. package/registry/ui/progress-circle.tsx +867 -0
  257. package/registry/ui/progress.tsx +85 -0
  258. package/registry/ui/radio-group.tsx +39 -0
  259. package/registry/ui/sample-data.tsx +86 -0
  260. package/registry/ui/scatter-chart.tsx +4212 -0
  261. package/registry/ui/scroll-area.tsx +56 -0
  262. package/registry/ui/searchable-select.tsx +214 -0
  263. package/registry/ui/section-header.tsx +43 -0
  264. package/registry/ui/segmented-control.tsx +76 -0
  265. package/registry/ui/select.tsx +255 -0
  266. package/registry/ui/separator.tsx +27 -0
  267. package/registry/ui/sheet.tsx +139 -0
  268. package/registry/ui/sidebar.tsx +725 -0
  269. package/registry/ui/skeleton.tsx +17 -0
  270. package/registry/ui/slider.tsx +56 -0
  271. package/registry/ui/sparkline.tsx +230 -0
  272. package/registry/ui/spinner.tsx +14 -0
  273. package/registry/ui/states.tsx +90 -0
  274. package/registry/ui/status-badge.tsx +121 -0
  275. package/registry/ui/switch.tsx +34 -0
  276. package/registry/ui/table.tsx +118 -0
  277. package/registry/ui/tabs.tsx +84 -0
  278. package/registry/ui/textarea.tsx +22 -0
  279. package/registry/ui/toast.tsx +250 -0
  280. package/registry/ui/toggle-group.tsx +91 -0
  281. package/registry/ui/toggle.tsx +47 -0
  282. package/registry/ui/tooltip.tsx +72 -0
  283. package/registry/ui/tracker.tsx +849 -0
  284. package/registry/ui/trend-indicator.tsx +74 -0
  285. package/registry/ui/updated-at.tsx +122 -0
  286. package/registry/ui/waterfall-chart.tsx +4248 -0
  287. package/skills/vantage-add-feature/SKILL.md +9 -7
  288. package/skills/vantage-design/SKILL.md +36 -24
  289. package/skills/vantage-design/references/extract.md +16 -14
  290. package/skills/vantage-design/references/format.md +6 -5
  291. package/skills/vantage-design/references/presets.md +60 -110
  292. package/skills/vantage-pitfalls/SKILL.md +5 -1
  293. package/skills/vantage-slide/SKILL.md +71 -36
  294. package/templates/AGENTS.md +24 -3
  295. package/templates/agents/api.md +29 -0
  296. package/templates/agents/csv.md +2 -1
  297. package/templates/agents/doc.md +51 -3
  298. package/templates/agents/page.md +54 -9
  299. package/templates/agents/slide.md +68 -3
  300. package/templates/agents/xlsx.md +2 -1
  301. package/theme.css +284 -128
  302. package/dist/add-EISGSZAH.js +0 -6
  303. package/dist/add-EISGSZAH.js.map +0 -1
  304. package/dist/chunk-3G43C6OL.js.map +0 -1
  305. package/dist/chunk-5ZOP4SQR.js.map +0 -1
  306. package/dist/chunk-A2UUGASH.js.map +0 -1
  307. package/dist/chunk-BCE22JSM.js.map +0 -1
  308. package/dist/chunk-DTDVSFRY.js.map +0 -1
  309. package/dist/chunk-EP6JHXSR.js.map +0 -1
  310. package/dist/chunk-KLEIVDUV.js.map +0 -1
  311. package/dist/chunk-MXI3PZFT.js.map +0 -1
  312. package/dist/chunk-PLST5Q7T.js +0 -2221
  313. package/dist/chunk-PLST5Q7T.js.map +0 -1
  314. package/dist/chunk-PVTHHV7X.js.map +0 -1
  315. package/dist/chunk-T3FLAGI6.js +0 -316
  316. package/dist/chunk-T3FLAGI6.js.map +0 -1
  317. package/dist/dev-NZRLOQCL.js.map +0 -1
  318. package/dist/doctor-VFKEMR54.js.map +0 -1
  319. package/dist/preview-QDCIVVSR.js.map +0 -1
@@ -0,0 +1,58 @@
1
+ # SlideKpiHero
2
+
3
+ > One number as the hero — value, change and a trend line.
4
+
5
+ One number, large. The label, value and change take the left 6 columns and the trend line the right 6. Without `trend` the number takes the full width.
6
+
7
+ ```tsx
8
+ import { SlideKpiHero } from "@squadbase/vantage/slide";
9
+ import type { SlideKpiHeroProps, SlideKpiHeroDelta } from "@squadbase/vantage/slide";
10
+ ```
11
+
12
+ > [!NOTE]
13
+ > This is **the content of one `<Slide>`**. It does not include `<Slide>` itself, so put it directly inside one. The root fills the canvas (1920×1080) at 100% and takes no `className`. Margins, text sizes and the grid are fixed inside the block (a 12-column grid on 1920×1080), so don't add your own dimensions. For how to build a deck, see [Slide](page-types/slide). The labels the block adds (「… 時点」, 「出典: …」, 「増」/「減」/「横ばい」) are fixed in Japanese and cannot be overridden; `title`, `label`, `comparisonLabel` and `display` are your own text.
14
+
15
+ ## Props
16
+
17
+ | Prop | Type | Default | Description |
18
+ | --- | --- | --- | --- |
19
+ | `title` | `string` | | The conclusion as one sentence (an action title). **Required.** |
20
+ | `label` | `string` | | What the number is ("Monthly revenue"). **Required.** |
21
+ | `value` | `number \| null` | | The number. `null` shows 「—」. **Required.** Formatted with `format` (the number is kept as `data-raw` for export and tests). |
22
+ | `format` | `ValueFormat` | | How to format the value (`"currency"`, `"percent"`, …). Also the default format of `delta`. |
23
+ | `display` | `string` | | Replaces the shown text only (the number behind it stays `value`). |
24
+ | `delta` | `SlideKpiHeroDelta` | | `{ value: number; format?: ValueFormat }`. The size of the change, signed (e.g. `0.074` with `format: "percent"` shows 「+7.4%」). The direction comes from the sign, and ▲ ▼ with 「増」「減」 always show. `format` defaults to the metric's `format`. Omit for no change. |
25
+ | `betterWhen` | `"up" \| "down"` | `"up"` | Which direction of `delta` is good. Drives the colour. |
26
+ | `comparisonLabel` | `string` | | What `delta` is against (e.g. 「前月比」). |
27
+ | `trend` | `{ x: string; y: number }[]` | | Points of the line on the right; leave out for a number alone. |
28
+ | `asOf` | `string` | | The date the numbers were taken, date only (e.g. `"2026-10-01"`). The block adds 「時点」 once, so don't write it. The label is fixed in Japanese. |
29
+ | `source` | `string` | | Where the numbers come from (e.g. `"社内 BI"`). Shown as 「出典: 社内 BI」; the "出典:" label is fixed in Japanese. |
30
+
31
+ ## Usage
32
+
33
+ ```tsx
34
+ import { Slide, SlideKpiHero } from "@squadbase/vantage/slide";
35
+
36
+ <Slide>
37
+ <SlideKpiHero
38
+ title="9 月の売上は過去最高の 5.4 億円"
39
+ label="月次売上"
40
+ value={540_000_000}
41
+ format="currency"
42
+ delta={{ value: 0.074, format: "percent" }}
43
+ comparisonLabel="前月比"
44
+ trend={[
45
+ { x: "4 月", y: 460_000_000 }, { x: "5 月", y: 480_000_000 }, { x: "6 月", y: 490_000_000 },
46
+ { x: "7 月", y: 500_000_000 }, { x: "8 月", y: 503_000_000 }, { x: "9 月", y: 540_000_000 },
47
+ ]}
48
+ asOf="2026-10-01"
49
+ source="社内 BI"
50
+ />
51
+ </Slide>
52
+ ```
53
+
54
+ ## Notes
55
+
56
+ - For a metric where a fall is good (cost), write `betterWhen="down"`. The colour follows `betterWhen`; the direction (▲ ▼ and 「増」/「減」) comes from the sign of `delta.value`.
57
+ - 「増」, 「減」, 「… 時点」 and 「出典: …」 are wording the block adds, fixed in Japanese.
58
+ - The chart is an `EChart` with animation off; the pptx export waits for it.
@@ -0,0 +1,49 @@
1
+ # SlideNextActions
2
+
3
+ > What happens next — 3–5 actions with owner, due date and the metric to check.
4
+
5
+ The closing slide of most reports: what happens next. Each action can carry an owner, a due date and the metric that shows it worked.
6
+
7
+ ```tsx
8
+ import { SlideNextActions } from "@squadbase/vantage/slide";
9
+ import type { SlideNextActionsProps, SlideNextActionsItem } from "@squadbase/vantage/slide";
10
+ ```
11
+
12
+ > [!NOTE]
13
+ > This is **the content of one `<Slide>`**. It does not include `<Slide>` itself, so put it directly inside one. The root fills the canvas (1920×1080) at 100% and takes no `className`. Margins, text sizes and the grid are fixed inside the block (a 12-column grid on 1920×1080), so don't add your own dimensions. For how to build a deck, see [Slide](page-types/slide). The labels the block adds (the column headers 担当 / 期限 / 確認する指標, 「… 時点」, 「出典: …」) are fixed in Japanese and cannot be overridden; `title` and the `items[]` fields are your own text.
14
+
15
+ ## Props
16
+
17
+ | Prop | Type | Description |
18
+ | --- | --- | --- |
19
+ | `title` | `string` | The decision or plan as one sentence. **Required.** |
20
+ | `items` | `SlideNextActionsItem[]` | Actions, 3–5. **Required.** Each item is described in the `items[].…` rows below. |
21
+ | `items[].action` | `string` | What to do, as one sentence starting from the object (about 40 characters at most). **Required.** |
22
+ | `items[].owner` | `string` | The owner. |
23
+ | `items[].due` | `string` | The due date, shown as written on one line ("10/31"; about 10 characters at most). |
24
+ | `items[].metric` | `string` | What to look at to know it worked. |
25
+ | `asOf` | `string` | The date the numbers were taken, date only (e.g. `"2026-10-01"`). The block adds 「時点」 once, so don't write it. The label is fixed in Japanese. |
26
+ | `source` | `string` | Where the numbers come from (e.g. `"社内 BI"`). Shown as 「出典: 社内 BI」; the "出典:" label is fixed in Japanese. |
27
+
28
+ ## Usage
29
+
30
+ ```tsx
31
+ import { Slide, SlideNextActions } from "@squadbase/vantage/slide";
32
+
33
+ <Slide>
34
+ <SlideNextActions
35
+ title="解約と新規獲得の施策を 3 つ、11 月末までに始める"
36
+ items={[
37
+ { action: "解約予兆スコアの上位 50 社に CS が連絡する", owner: "CS 部 山田", due: "10/31", metric: "解約率 1.5% 以下" },
38
+ { action: "紹介プログラムの特典を見直す", owner: "マーケ 佐藤", due: "11/15", metric: "紹介経由の新規 20 社" },
39
+ { action: "料金ページの導線を改善する", owner: "プロダクト 鈴木", due: "11/30", metric: "申込率 +1pt" },
40
+ ]}
41
+ />
42
+ </Slide>
43
+ ```
44
+
45
+ ## Notes
46
+
47
+ - The owner, due and metric columns appear only when at least one item has a value.
48
+ - The column headers (担当 / 期限 / 確認する指標) are fixed in Japanese and cannot be overridden.
49
+ - `due` is shown as written ("10/31", "by next week"). More than 5 items log a `console.warn`.
@@ -0,0 +1,54 @@
1
+ # SlideScorecardTable
2
+
3
+ > A scorecard table — target vs actual per metric, with a status.
4
+
5
+ A table of target, actual and attainment per metric with a status (on track / at risk / off track). The status is a coloured dot and a word, so colour is never the only cue.
6
+
7
+ ```tsx
8
+ import { SlideScorecardTable } from "@squadbase/vantage/slide";
9
+ import type { SlideScorecardTableProps, SlideScorecardRow, SlideScorecardStatus } from "@squadbase/vantage/slide";
10
+ ```
11
+
12
+ > [!NOTE]
13
+ > This is **the content of one `<Slide>`**. It does not include `<Slide>` itself, so put it directly inside one. The root fills the canvas (1920×1080) at 100% and takes no `className`. Margins, text sizes and the grid are fixed inside the block (a 12-column grid on 1920×1080), so don't add your own dimensions. For how to build a deck, see [Slide](page-types/slide). The labels the block adds are fixed in Japanese: the status words (順調 / 要注意 / 遅延) and the `asOf` / `source` line (「… 時点」, 「出典: …」) cannot be overridden. The header words can be replaced with `columns` (default 指標 / 目標 / 実績 / 達成率 / 状態); `title`, `rows[].metric` and `rows[].display` are your own text.
14
+
15
+ ## Props
16
+
17
+ | Prop | Type | Default | Description |
18
+ | --- | --- | --- | --- |
19
+ | `title` | `string` | | The conclusion as one sentence (an action title). **Required.** |
20
+ | `rows` | `SlideScorecardRow[]` | | Rows, up to 8. **Required.** Each row is described in the `rows[].…` rows below. |
21
+ | `rows[].metric` | `string` | | The metric name (about 20 characters at most). **Required.** |
22
+ | `rows[].value` | `number \| null` | | The actual. `null` shows 「—」. **Required.** |
23
+ | `rows[].format` | `ValueFormat` | | How to format `value` and `target` (`"currency"`, `"percent"`, …). |
24
+ | `rows[].display` | `string` | | Replaces the shown actual only (the number behind it stays `value`). |
25
+ | `rows[].target` | `number` | | The target, in the same `format` as `value`. When any row has a target, the attainment column appears (value ÷ target). |
26
+ | `rows[].betterWhen` | `"up" \| "down"` | `"up"` | Which direction is good. With `"down"` the rate is target ÷ value, so beating a cost target reads above 100%. |
27
+ | `rows[].status` | `SlideScorecardStatus` | | `"on"` (順調) / `"risk"` (要注意) / `"off"` (遅延). Given, not derived from the values. **Required.** |
28
+ | `columns` | `Partial<Record<"metric" \| "target" \| "actual" \| "attainment" \| "status", string>>` | | Override header words; omitted columns keep the default (指標 / 目標 / 実績 / 達成率 / 状態). The status words (順調 / 要注意 / 遅延) cannot be overridden. |
29
+ | `asOf` | `string` | | The date the numbers were taken, date only (e.g. `"2026-10-01"`). The block adds 「時点」 once, so don't write it. The label is fixed in Japanese. |
30
+ | `source` | `string` | | Where the numbers come from (e.g. `"社内 BI"`). Shown as 「出典: 社内 BI」; the "出典:" label is fixed in Japanese. |
31
+
32
+ ## Usage
33
+
34
+ ```tsx
35
+ import { Slide, SlideScorecardTable } from "@squadbase/vantage/slide";
36
+
37
+ <Slide>
38
+ <SlideScorecardTable
39
+ title="4 指標のうち 2 つが目標どおり、解約と新規が遅れている"
40
+ rows={[
41
+ { metric: "月次売上", value: 540_000_000, target: 520_000_000, format: "currency", status: "on" },
42
+ { metric: "継続率", value: 0.982, target: 0.98, format: { type: "percent", digits: 1 }, status: "on" },
43
+ { metric: "解約率", value: 0.018, target: 0.015, format: { type: "percent", digits: 1 }, betterWhen: "down", status: "risk" },
44
+ { metric: "新規獲得", value: 38, target: 50, format: { type: "number", unit: "社" }, status: "off" },
45
+ ]}
46
+ asOf="2026-10-01"
47
+ source="社内 BI"
48
+ />
49
+ </Slide>
50
+ ```
51
+
52
+ ## Notes
53
+
54
+ - From 7 rows the text drops from body to caption size. More than 8 are drawn with a `console.warn`.
@@ -0,0 +1,42 @@
1
+ # Alert Dialog
2
+
3
+ > A modal that asks for confirmation before an irreversible action.
4
+
5
+ A modal that asks for an explicit answer before an action that can't be undone, such as a delete.
6
+ Unlike [`Dialog`](ui/dialog), it does not close when the backdrop is clicked.
7
+
8
+ ```tsx
9
+ import {
10
+ AlertDialog,
11
+ AlertDialogTrigger,
12
+ AlertDialogContent,
13
+ AlertDialogHeader,
14
+ AlertDialogMedia,
15
+ AlertDialogTitle,
16
+ AlertDialogDescription,
17
+ AlertDialogFooter,
18
+ AlertDialogCancel,
19
+ AlertDialogAction,
20
+ } from "@squadbase/vantage/ui";
21
+ ```
22
+
23
+ ## Parts
24
+
25
+ | Part | Role |
26
+ | --- | --- |
27
+ | `AlertDialog` | The state: `open` / `defaultOpen` / `onOpenChange` |
28
+ | `AlertDialogTrigger` | What opens it; `render` turns it into a button |
29
+ | `AlertDialogContent` | The panel. `size` picks the width |
30
+ | `AlertDialogMedia` | The icon tile beside the heading |
31
+ | `AlertDialogHeader` / `AlertDialogTitle` / `AlertDialogDescription` | The heading block |
32
+ | `AlertDialogFooter` | The button row |
33
+ | `AlertDialogCancel` | The dismiss button (`variant="outline"` by default; also takes `size`) |
34
+ | `AlertDialogAction` | The confirm button. Takes the `Button` props as they are |
35
+
36
+ | Prop | Type | Default | Description |
37
+ | --- | --- | --- | --- |
38
+ | `size` | `"default" \| "sm"` | `"default"` | Passed to `AlertDialogContent`. `sm` lays the buttons out in two columns. |
39
+
40
+ `AlertDialogAction` **does not close the dialog on its own**. Set `open` to `false` when your work
41
+ finishes. If it is fine to close immediately, use `AlertDialogCancel` instead and give it the
42
+ `variant` you want, since it closes the dialog.
@@ -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