@squadbase/vantage 0.6.2-dev1.d594c56 → 0.6.2-dev1.e30f2cc

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 (213) hide show
  1. package/dist/{build-X5NVCQKT.js → build-A23M4GCH.js} +7 -7
  2. package/dist/{build-X5NVCQKT.js.map → build-A23M4GCH.js.map} +1 -1
  3. package/dist/{check-ZBIH422T.js → check-FBHT6W6J.js} +5 -5
  4. package/dist/{check-ZBIH422T.js.map → check-FBHT6W6J.js.map} +1 -1
  5. package/dist/chunk-2IAPIOPS.js +152 -0
  6. package/dist/chunk-2IAPIOPS.js.map +1 -0
  7. package/dist/chunk-57GHR5LN.js +163 -0
  8. package/dist/chunk-57GHR5LN.js.map +1 -0
  9. package/dist/{chunk-7DZGJQ3P.js → chunk-5C2SEDPH.js} +21 -4
  10. package/dist/chunk-5C2SEDPH.js.map +1 -0
  11. package/dist/chunk-6OTTGAPO.js +44 -0
  12. package/dist/chunk-6OTTGAPO.js.map +1 -0
  13. package/dist/{chunk-XPQSTZUU.js → chunk-7S52M2SL.js} +4 -3
  14. package/dist/chunk-7S52M2SL.js.map +1 -0
  15. package/dist/{chunk-V3LF7BE7.js → chunk-ANZLVSEP.js} +4 -5
  16. package/dist/chunk-ANZLVSEP.js.map +1 -0
  17. package/dist/{chunk-XQUSGIDG.js → chunk-CKWPK4RO.js} +10 -3
  18. package/dist/chunk-CKWPK4RO.js.map +1 -0
  19. package/dist/chunk-JXFCSF3K.js +673 -0
  20. package/dist/chunk-JXFCSF3K.js.map +1 -0
  21. package/dist/{chunk-HKSVYMYJ.js → chunk-QOXXOFGL.js} +61 -929
  22. package/dist/chunk-QOXXOFGL.js.map +1 -0
  23. package/dist/{chunk-CEXAQQ5W.js → chunk-S5MDTHH7.js} +180 -18
  24. package/dist/chunk-S5MDTHH7.js.map +1 -0
  25. package/dist/{chunk-2ICNHUG6.js → chunk-SDJTTMLK.js} +64 -7
  26. package/dist/chunk-SDJTTMLK.js.map +1 -0
  27. package/dist/{chunk-WAMZWZJB.js → chunk-SHZM3EXB.js} +19 -8
  28. package/dist/chunk-SHZM3EXB.js.map +1 -0
  29. package/dist/{chunk-JKLLFVEU.js → chunk-UWSQUHX6.js} +4 -99
  30. package/dist/chunk-UWSQUHX6.js.map +1 -0
  31. package/dist/cli.js +6 -6
  32. package/dist/client/index.d.ts +2 -0
  33. package/dist/client/index.js +8 -2
  34. package/dist/client/index.js.map +1 -1
  35. package/dist/components/index.d.ts +11 -247
  36. package/dist/components/index.js +5 -2
  37. package/dist/delta-text-CvwBGJ95.d.ts +15 -0
  38. package/dist/{dev-4XEDTELV.js → dev-H4I2JL63.js} +7 -7
  39. package/dist/{dev-4XEDTELV.js.map → dev-H4I2JL63.js.map} +1 -1
  40. package/dist/doc/index.d.ts +215 -2
  41. package/dist/doc/index.js +307 -3
  42. package/dist/doc/index.js.map +1 -1
  43. package/dist/{doctor-5E2VEZPK.js → doctor-B2O3GJDU.js} +5 -5
  44. package/dist/{doctor-5E2VEZPK.js.map → doctor-B2O3GJDU.js.map} +1 -1
  45. package/dist/format-U0cQl069.d.ts +243 -0
  46. package/dist/query/index.js +2 -2
  47. package/dist/{routes-3SGAFDMC.js → routes-PVKNT777.js} +4 -4
  48. package/dist/{routes-3SGAFDMC.js.map → routes-PVKNT777.js.map} +1 -1
  49. package/dist/slide/index.d.ts +272 -1
  50. package/dist/slide/index.js +972 -2
  51. package/dist/slide/index.js.map +1 -1
  52. package/dist/table/index.js +7 -4
  53. package/dist/table/index.js.map +1 -1
  54. package/dist/ui/index.d.ts +4 -1
  55. package/dist/ui/index.js +3 -3
  56. package/dist/ui/index.js.map +1 -1
  57. package/dist/{upgrade-JHXZBGQS.js → upgrade-6DT7ADRP.js} +4 -4
  58. package/dist/{upgrade-JHXZBGQS.js.map → upgrade-6DT7ADRP.js.map} +1 -1
  59. package/dist/vite/index.js +3 -3
  60. package/docs/en/changelog.md +2 -0
  61. package/docs/en/components.md +13 -2
  62. package/docs/en/doc/delta-text.md +40 -0
  63. package/docs/en/doc/doc-action-items.md +49 -0
  64. package/docs/en/doc/doc-callout.md +38 -0
  65. package/docs/en/doc/doc-data-table.md +60 -0
  66. package/docs/en/doc/doc-executive-summary.md +64 -0
  67. package/docs/en/doc/doc-figure.md +56 -0
  68. package/docs/en/doc/doc-key-findings.md +61 -0
  69. package/docs/en/doc/doc-kpi-scorecard.md +80 -0
  70. package/docs/en/doc/doc-notes-and-sources.md +43 -0
  71. package/docs/en/doc/doc-report-header.md +46 -0
  72. package/docs/en/pages-and-metadata.md +15 -0
  73. package/docs/en/parts/area-chart.md +99 -0
  74. package/docs/en/parts/bar-chart.md +91 -0
  75. package/docs/en/parts/bar-list.md +50 -0
  76. package/docs/en/parts/category-bar.md +37 -0
  77. package/docs/en/parts/chart-frame.md +39 -0
  78. package/docs/en/parts/delta.md +4 -3
  79. package/docs/en/parts/donut-chart.md +72 -0
  80. package/docs/en/parts/funnel-steps.md +2 -1
  81. package/docs/en/parts/heatmap.md +53 -0
  82. package/docs/en/parts/kpi-card.md +2 -1
  83. package/docs/en/parts/legend.md +35 -0
  84. package/docs/en/parts/line-chart.md +94 -0
  85. package/docs/en/parts/progress-circle.md +33 -0
  86. package/docs/en/parts/sample-data.md +39 -0
  87. package/docs/en/parts/scatter-chart.md +56 -0
  88. package/docs/en/parts/tracker.md +36 -0
  89. package/docs/en/parts/updated-at.md +30 -0
  90. package/docs/en/parts/waterfall-chart.md +56 -0
  91. package/docs/en/slide/slide-chart-full.md +48 -0
  92. package/docs/en/slide/slide-chart-insight.md +52 -0
  93. package/docs/en/slide/slide-columns.md +46 -0
  94. package/docs/en/slide/slide-comparison.md +68 -0
  95. package/docs/en/slide/slide-cover.md +39 -0
  96. package/docs/en/slide/slide-exec-summary.md +47 -0
  97. package/docs/en/slide/slide-heading.md +38 -0
  98. package/docs/en/slide/slide-kpi-grid.md +55 -0
  99. package/docs/en/slide/slide-kpi-hero.md +58 -0
  100. package/docs/en/slide/slide-next-actions.md +49 -0
  101. package/docs/en/slide/slide-scorecard-table.md +54 -0
  102. package/docs/en/slide/slide-section.md +44 -0
  103. package/docs/en/slide/slide-source-line.md +34 -0
  104. package/docs/en/ui/alert-dialog.md +42 -0
  105. package/docs/en/ui/avatar.md +31 -0
  106. package/docs/en/ui/combobox.md +74 -0
  107. package/docs/en/ui/drawer.md +41 -0
  108. package/docs/en/ui/empty.md +1 -1
  109. package/docs/en/ui/error-state.md +4 -3
  110. package/docs/en/ui/field.md +42 -0
  111. package/docs/en/ui/hover-card.md +21 -0
  112. package/docs/en/ui/kbd.md +17 -0
  113. package/docs/en/ui/loading.md +1 -1
  114. package/docs/en/ui/pagination.md +36 -0
  115. package/docs/en/ui/radio-group.md +21 -0
  116. package/docs/en/ui/toast.md +44 -0
  117. package/docs/en/ui/toggle-group.md +4 -3
  118. package/docs/index.json +857 -77
  119. package/docs/ja/changelog.md +2 -0
  120. package/docs/ja/components.md +12 -1
  121. package/docs/ja/doc/delta-text.md +40 -0
  122. package/docs/ja/doc/doc-action-items.md +49 -0
  123. package/docs/ja/doc/doc-callout.md +38 -0
  124. package/docs/ja/doc/doc-data-table.md +60 -0
  125. package/docs/ja/doc/doc-executive-summary.md +64 -0
  126. package/docs/ja/doc/doc-figure.md +56 -0
  127. package/docs/ja/doc/doc-key-findings.md +61 -0
  128. package/docs/ja/doc/doc-kpi-scorecard.md +80 -0
  129. package/docs/ja/doc/doc-notes-and-sources.md +43 -0
  130. package/docs/ja/doc/doc-report-header.md +46 -0
  131. package/docs/ja/page-types/slide.md +1 -0
  132. package/docs/ja/pages-and-metadata.md +15 -0
  133. package/docs/ja/parts/area-chart.md +49 -25
  134. package/docs/ja/parts/bar-chart.md +50 -24
  135. package/docs/ja/parts/bar-list.md +31 -8
  136. package/docs/ja/parts/chart-frame.md +36 -0
  137. package/docs/ja/parts/delta.md +5 -4
  138. package/docs/ja/parts/donut-chart.md +45 -26
  139. package/docs/ja/parts/funnel-steps.md +27 -8
  140. package/docs/ja/parts/heatmap.md +45 -0
  141. package/docs/ja/parts/kpi-card.md +2 -1
  142. package/docs/ja/parts/legend.md +36 -0
  143. package/docs/ja/parts/line-chart.md +48 -22
  144. package/docs/ja/parts/sample-data.md +61 -0
  145. package/docs/ja/parts/scatter-chart.md +69 -0
  146. package/docs/ja/parts/updated-at.md +27 -0
  147. package/docs/ja/parts/waterfall-chart.md +61 -0
  148. package/docs/ja/slide/slide-chart-full.md +48 -0
  149. package/docs/ja/slide/slide-chart-insight.md +52 -0
  150. package/docs/ja/slide/slide-columns.md +46 -0
  151. package/docs/ja/slide/slide-comparison.md +68 -0
  152. package/docs/ja/slide/slide-cover.md +39 -0
  153. package/docs/ja/slide/slide-exec-summary.md +47 -0
  154. package/docs/ja/slide/slide-heading.md +38 -0
  155. package/docs/ja/slide/slide-kpi-grid.md +55 -0
  156. package/docs/ja/slide/slide-kpi-hero.md +58 -0
  157. package/docs/ja/slide/slide-next-actions.md +49 -0
  158. package/docs/ja/slide/slide-scorecard-table.md +54 -0
  159. package/docs/ja/slide/slide-section.md +44 -0
  160. package/docs/ja/slide/slide-source-line.md +34 -0
  161. package/docs/ja/ui/empty.md +1 -1
  162. package/docs/ja/ui/error-state.md +4 -3
  163. package/docs/ja/ui/loading.md +1 -1
  164. package/docs/ja/ui/toggle-group.md +4 -3
  165. package/package.json +2 -2
  166. package/registry/ui/area-chart.tsx +88 -26
  167. package/registry/ui/attention-list.tsx +303 -0
  168. package/registry/ui/bar-chart.tsx +88 -26
  169. package/registry/ui/bar-list.tsx +87 -24
  170. package/registry/ui/box-plot-chart.tsx +3906 -0
  171. package/registry/ui/category-bar.tsx +54 -19
  172. package/registry/ui/chart-frame.tsx +56 -21
  173. package/registry/ui/dashboard-card.tsx +2 -2
  174. package/registry/ui/delta.tsx +11 -8
  175. package/registry/ui/donut-chart.tsx +89 -26
  176. package/registry/ui/echart.tsx +194 -44
  177. package/registry/ui/funnel-steps.tsx +33 -5
  178. package/registry/ui/heatmap.tsx +55 -21
  179. package/registry/ui/histogram-chart.tsx +3986 -0
  180. package/registry/ui/kpi-card.tsx +41 -14
  181. package/registry/ui/legend.tsx +87 -24
  182. package/registry/ui/line-chart.tsx +88 -26
  183. package/registry/ui/page-shell.tsx +9 -9
  184. package/registry/ui/paired-chart.tsx +3827 -0
  185. package/registry/ui/sample-data.tsx +1 -1
  186. package/registry/ui/scatter-chart.tsx +88 -26
  187. package/registry/ui/section-header.tsx +2 -2
  188. package/registry/ui/slider.tsx +1 -1
  189. package/registry/ui/status-badge.tsx +8 -8
  190. package/registry/ui/tooltip.tsx +6 -2
  191. package/registry/ui/tracker.tsx +9 -3
  192. package/registry/ui/trend-indicator.tsx +2 -2
  193. package/registry/ui/waterfall-chart.tsx +88 -26
  194. package/skills/vantage-design/SKILL.md +27 -25
  195. package/skills/vantage-design/references/extract.md +16 -14
  196. package/skills/vantage-design/references/format.md +6 -5
  197. package/skills/vantage-design/references/presets.md +60 -110
  198. package/skills/vantage-pitfalls/SKILL.md +5 -0
  199. package/skills/vantage-slide/SKILL.md +54 -36
  200. package/templates/AGENTS.md +4 -2
  201. package/templates/agents/doc.md +48 -0
  202. package/templates/agents/page.md +22 -1
  203. package/templates/agents/slide.md +70 -2
  204. package/theme.css +23 -19
  205. package/dist/chunk-2ICNHUG6.js.map +0 -1
  206. package/dist/chunk-7DZGJQ3P.js.map +0 -1
  207. package/dist/chunk-CEXAQQ5W.js.map +0 -1
  208. package/dist/chunk-HKSVYMYJ.js.map +0 -1
  209. package/dist/chunk-JKLLFVEU.js.map +0 -1
  210. package/dist/chunk-V3LF7BE7.js.map +0 -1
  211. package/dist/chunk-WAMZWZJB.js.map +0 -1
  212. package/dist/chunk-XPQSTZUU.js.map +0 -1
  213. package/dist/chunk-XQUSGIDG.js.map +0 -1
@@ -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.