@squadbase/vantage 0.6.2-dev1.42c4e48 → 0.6.2-dev1.54bde93
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.
- package/dist/{build-MFWRPYKW.js → build-A23M4GCH.js} +7 -7
- package/dist/{build-MFWRPYKW.js.map → build-A23M4GCH.js.map} +1 -1
- package/dist/{check-ZBIH422T.js → check-FBHT6W6J.js} +5 -5
- package/dist/{check-ZBIH422T.js.map → check-FBHT6W6J.js.map} +1 -1
- package/dist/chunk-2IAPIOPS.js +152 -0
- package/dist/chunk-2IAPIOPS.js.map +1 -0
- package/dist/{chunk-5ZOP4SQR.js → chunk-2N72FKLB.js} +12 -7
- package/dist/chunk-2N72FKLB.js.map +1 -0
- package/dist/chunk-57GHR5LN.js +163 -0
- package/dist/chunk-57GHR5LN.js.map +1 -0
- package/dist/{chunk-7DZGJQ3P.js → chunk-5C2SEDPH.js} +21 -4
- package/dist/chunk-5C2SEDPH.js.map +1 -0
- package/dist/chunk-6OTTGAPO.js +44 -0
- package/dist/chunk-6OTTGAPO.js.map +1 -0
- package/dist/{chunk-OB6UBJXF.js → chunk-7S52M2SL.js} +127 -36
- package/dist/chunk-7S52M2SL.js.map +1 -0
- package/dist/{chunk-V3LF7BE7.js → chunk-ANZLVSEP.js} +4 -5
- package/dist/chunk-ANZLVSEP.js.map +1 -0
- package/dist/{chunk-XQUSGIDG.js → chunk-CKWPK4RO.js} +10 -3
- package/dist/chunk-CKWPK4RO.js.map +1 -0
- package/dist/chunk-JXFCSF3K.js +673 -0
- package/dist/chunk-JXFCSF3K.js.map +1 -0
- package/dist/{chunk-PXRX5PEC.js → chunk-PDOBHMUQ.js} +3 -3
- package/dist/chunk-PDOBHMUQ.js.map +1 -0
- package/dist/chunk-QOXXOFGL.js +7051 -0
- package/dist/chunk-QOXXOFGL.js.map +1 -0
- package/dist/{chunk-CEXAQQ5W.js → chunk-S5MDTHH7.js} +180 -18
- package/dist/chunk-S5MDTHH7.js.map +1 -0
- package/dist/{chunk-IBGOCWJB.js → chunk-SDJTTMLK.js} +247 -86
- package/dist/chunk-SDJTTMLK.js.map +1 -0
- package/dist/{chunk-QEWCYW3I.js → chunk-SHZM3EXB.js} +29 -8
- package/dist/chunk-SHZM3EXB.js.map +1 -0
- package/dist/{chunk-A2UUGASH.js → chunk-U736PVHY.js} +2 -2
- package/dist/chunk-U736PVHY.js.map +1 -0
- package/dist/{chunk-JKLLFVEU.js → chunk-UWSQUHX6.js} +4 -99
- package/dist/chunk-UWSQUHX6.js.map +1 -0
- package/dist/cli.js +6 -6
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +8 -2
- package/dist/client/index.js.map +1 -1
- package/dist/components/index.d.ts +1596 -100
- package/dist/components/index.js +7 -4
- package/dist/delta-text-CvwBGJ95.d.ts +15 -0
- package/dist/{dev-DCTOHQ6W.js → dev-H4I2JL63.js} +7 -7
- package/dist/{dev-DCTOHQ6W.js.map → dev-H4I2JL63.js.map} +1 -1
- package/dist/doc/index.d.ts +215 -2
- package/dist/doc/index.js +309 -5
- package/dist/doc/index.js.map +1 -1
- package/dist/{doctor-5E2VEZPK.js → doctor-B2O3GJDU.js} +5 -5
- package/dist/{doctor-5E2VEZPK.js.map → doctor-B2O3GJDU.js.map} +1 -1
- package/dist/format-U0cQl069.d.ts +243 -0
- package/dist/markdown/index.js +1 -1
- package/dist/markdown/index.js.map +1 -1
- package/dist/query/index.js +2 -2
- package/dist/{routes-3SGAFDMC.js → routes-PVKNT777.js} +4 -4
- package/dist/{routes-3SGAFDMC.js.map → routes-PVKNT777.js.map} +1 -1
- package/dist/slide/index.d.ts +272 -1
- package/dist/slide/index.js +974 -4
- package/dist/slide/index.js.map +1 -1
- package/dist/table/index.js +11 -8
- package/dist/table/index.js.map +1 -1
- package/dist/ui/index.d.ts +8 -2
- package/dist/ui/index.js +22 -112
- package/dist/ui/index.js.map +1 -1
- package/dist/{upgrade-DBBE6GIR.js → upgrade-6DT7ADRP.js} +4 -4
- package/dist/{upgrade-DBBE6GIR.js.map → upgrade-6DT7ADRP.js.map} +1 -1
- package/dist/vite/index.js +3 -3
- package/docs/en/changelog.md +2 -0
- package/docs/en/components.md +42 -17
- package/docs/en/doc/delta-text.md +40 -0
- package/docs/en/doc/doc-action-items.md +49 -0
- package/docs/en/doc/doc-callout.md +38 -0
- package/docs/en/doc/doc-data-table.md +60 -0
- package/docs/en/doc/doc-executive-summary.md +64 -0
- package/docs/en/doc/doc-figure.md +56 -0
- package/docs/en/doc/doc-key-findings.md +61 -0
- package/docs/en/doc/doc-kpi-scorecard.md +80 -0
- package/docs/en/doc/doc-notes-and-sources.md +43 -0
- package/docs/en/doc/doc-report-header.md +46 -0
- package/docs/en/pages-and-metadata.md +15 -0
- package/docs/en/parts/area-chart.md +99 -0
- package/docs/en/parts/bar-chart.md +91 -0
- package/docs/en/parts/bar-list.md +50 -0
- package/docs/en/parts/category-bar.md +37 -0
- package/docs/en/parts/chart-frame.md +39 -0
- package/docs/en/parts/data-table.md +22 -0
- package/docs/en/parts/delta.md +51 -0
- package/docs/en/parts/donut-chart.md +72 -0
- package/docs/en/parts/format.md +43 -0
- package/docs/en/parts/funnel-steps.md +2 -1
- package/docs/en/parts/heatmap.md +53 -0
- package/docs/en/parts/kpi-card.md +58 -0
- package/docs/en/parts/legend.md +35 -0
- package/docs/en/parts/line-chart.md +94 -0
- package/docs/en/parts/metric-value.md +3 -2
- package/docs/en/parts/progress-circle.md +33 -0
- package/docs/en/parts/sample-data.md +39 -0
- package/docs/en/parts/scatter-chart.md +56 -0
- package/docs/en/parts/sparkline.md +1 -1
- package/docs/en/parts/tracker.md +36 -0
- package/docs/en/parts/trend-indicator.md +17 -1
- package/docs/en/parts/updated-at.md +30 -0
- package/docs/en/parts/waterfall-chart.md +56 -0
- package/docs/en/slide/slide-chart-full.md +48 -0
- package/docs/en/slide/slide-chart-insight.md +52 -0
- package/docs/en/slide/slide-columns.md +46 -0
- package/docs/en/slide/slide-comparison.md +68 -0
- package/docs/en/slide/slide-cover.md +39 -0
- package/docs/en/slide/slide-exec-summary.md +47 -0
- package/docs/en/slide/slide-heading.md +38 -0
- package/docs/en/slide/slide-kpi-grid.md +55 -0
- package/docs/en/slide/slide-kpi-hero.md +58 -0
- package/docs/en/slide/slide-next-actions.md +49 -0
- package/docs/en/slide/slide-scorecard-table.md +54 -0
- package/docs/en/slide/slide-section.md +44 -0
- package/docs/en/slide/slide-source-line.md +34 -0
- package/docs/en/ui/alert-dialog.md +42 -0
- package/docs/en/ui/avatar.md +31 -0
- package/docs/en/ui/combobox.md +74 -0
- package/docs/en/ui/drawer.md +41 -0
- package/docs/en/ui/empty.md +1 -1
- package/docs/en/ui/error-state.md +4 -3
- package/docs/en/ui/field.md +42 -0
- package/docs/en/ui/hover-card.md +21 -0
- package/docs/en/ui/kbd.md +17 -0
- package/docs/en/ui/loading.md +1 -1
- package/docs/en/ui/pagination.md +36 -0
- package/docs/en/ui/radio-group.md +21 -0
- package/docs/en/ui/toast.md +44 -0
- package/docs/en/ui/toggle-group.md +4 -3
- package/docs/en/ui-and-theming.md +1 -1
- package/docs/index.json +917 -77
- package/docs/ja/changelog.md +2 -0
- package/docs/ja/components.md +39 -16
- package/docs/ja/doc/delta-text.md +40 -0
- package/docs/ja/doc/doc-action-items.md +49 -0
- package/docs/ja/doc/doc-callout.md +38 -0
- package/docs/ja/doc/doc-data-table.md +60 -0
- package/docs/ja/doc/doc-executive-summary.md +64 -0
- package/docs/ja/doc/doc-figure.md +56 -0
- package/docs/ja/doc/doc-key-findings.md +61 -0
- package/docs/ja/doc/doc-kpi-scorecard.md +80 -0
- package/docs/ja/doc/doc-notes-and-sources.md +43 -0
- package/docs/ja/doc/doc-report-header.md +46 -0
- package/docs/ja/page-types/slide.md +1 -0
- package/docs/ja/pages-and-metadata.md +15 -0
- package/docs/ja/parts/area-chart.md +49 -25
- package/docs/ja/parts/bar-chart.md +50 -24
- package/docs/ja/parts/bar-list.md +31 -8
- package/docs/ja/parts/chart-frame.md +36 -0
- package/docs/ja/parts/data-table.md +22 -0
- package/docs/ja/parts/delta.md +51 -0
- package/docs/ja/parts/donut-chart.md +45 -26
- package/docs/ja/parts/format.md +44 -0
- package/docs/ja/parts/funnel-steps.md +27 -8
- package/docs/ja/parts/heatmap.md +45 -0
- package/docs/ja/parts/kpi-card.md +56 -0
- package/docs/ja/parts/legend.md +36 -0
- package/docs/ja/parts/line-chart.md +48 -22
- package/docs/ja/parts/metric-value.md +3 -2
- package/docs/ja/parts/sample-data.md +61 -0
- package/docs/ja/parts/scatter-chart.md +69 -0
- package/docs/ja/parts/sparkline.md +1 -1
- package/docs/ja/parts/trend-indicator.md +17 -1
- package/docs/ja/parts/updated-at.md +27 -0
- package/docs/ja/parts/waterfall-chart.md +61 -0
- package/docs/ja/slide/slide-chart-full.md +48 -0
- package/docs/ja/slide/slide-chart-insight.md +52 -0
- package/docs/ja/slide/slide-columns.md +46 -0
- package/docs/ja/slide/slide-comparison.md +68 -0
- package/docs/ja/slide/slide-cover.md +39 -0
- package/docs/ja/slide/slide-exec-summary.md +47 -0
- package/docs/ja/slide/slide-heading.md +38 -0
- package/docs/ja/slide/slide-kpi-grid.md +55 -0
- package/docs/ja/slide/slide-kpi-hero.md +58 -0
- package/docs/ja/slide/slide-next-actions.md +49 -0
- package/docs/ja/slide/slide-scorecard-table.md +54 -0
- package/docs/ja/slide/slide-section.md +44 -0
- package/docs/ja/slide/slide-source-line.md +34 -0
- package/docs/ja/ui/empty.md +1 -1
- package/docs/ja/ui/error-state.md +4 -3
- package/docs/ja/ui/loading.md +1 -1
- package/docs/ja/ui/toggle-group.md +4 -3
- package/docs/ja/ui-and-theming.md +2 -2
- package/package.json +26 -24
- package/registry/ui/accordion.tsx +4 -2
- package/registry/ui/alert-dialog.tsx +3 -3
- package/registry/ui/alert.tsx +3 -1
- package/registry/ui/app-shell.tsx +7 -1
- package/registry/ui/area-chart.tsx +2852 -166
- package/registry/ui/attention-list.tsx +303 -0
- package/registry/ui/avatar.tsx +1 -1
- package/registry/ui/badge.tsx +3 -1
- package/registry/ui/bar-chart.tsx +2851 -166
- package/registry/ui/bar-list.tsx +3531 -90
- package/registry/ui/box-plot-chart.tsx +3906 -0
- package/registry/ui/breadcrumb.tsx +3 -1
- package/registry/ui/button.tsx +3 -1
- package/registry/ui/calendar.tsx +3 -1
- package/registry/ui/card.tsx +4 -2
- package/registry/ui/category-bar.tsx +1025 -16
- package/registry/ui/chart-frame.tsx +1393 -0
- package/registry/ui/checkbox.tsx +3 -1
- package/registry/ui/collapsible.tsx +3 -1
- package/registry/ui/combobox.tsx +2 -2
- package/registry/ui/command.tsx +3 -1
- package/registry/ui/dashboard-card.tsx +71 -28
- package/registry/ui/data-table.tsx +678 -56
- package/registry/ui/date-range-picker.tsx +245 -64
- package/registry/ui/delta.tsx +191 -0
- package/registry/ui/dialog.tsx +5 -3
- package/registry/ui/donut-chart.tsx +2929 -182
- package/registry/ui/drawer.tsx +1 -1
- package/registry/ui/dropdown-menu.tsx +5 -3
- package/registry/ui/echart.tsx +621 -67
- package/registry/ui/field.tsx +1 -1
- package/registry/ui/filter-bar.tsx +33 -6
- package/registry/ui/funnel-steps.tsx +3344 -49
- package/registry/ui/heatmap.tsx +1786 -0
- package/registry/ui/histogram-chart.tsx +3986 -0
- package/registry/ui/hover-card.tsx +2 -2
- package/registry/ui/input-group.tsx +3 -1
- package/registry/ui/input.tsx +3 -1
- package/registry/ui/kbd.tsx +3 -1
- package/registry/ui/kpi-card.tsx +704 -0
- package/registry/ui/label.tsx +3 -1
- package/registry/ui/legend.tsx +3563 -0
- package/registry/ui/line-chart.tsx +2852 -160
- package/registry/ui/metric-value.tsx +9 -1
- package/registry/ui/multi-select.tsx +11 -5
- package/registry/ui/page-shell.tsx +106 -51
- package/registry/ui/pagination.tsx +3 -1
- package/registry/ui/paired-chart.tsx +3827 -0
- package/registry/ui/placeholder.tsx +8 -2
- package/registry/ui/popover.tsx +4 -2
- package/registry/ui/progress-circle.tsx +607 -12
- package/registry/ui/progress.tsx +3 -1
- package/registry/ui/radio-group.tsx +1 -1
- package/registry/ui/sample-data.tsx +86 -0
- package/registry/ui/scatter-chart.tsx +4212 -0
- package/registry/ui/scroll-area.tsx +3 -2
- package/registry/ui/searchable-select.tsx +8 -3
- package/registry/ui/section-header.tsx +5 -3
- package/registry/ui/segmented-control.tsx +7 -2
- package/registry/ui/select.tsx +4 -2
- package/registry/ui/separator.tsx +3 -1
- package/registry/ui/sheet.tsx +4 -2
- package/registry/ui/sidebar.tsx +4 -2
- package/registry/ui/skeleton.tsx +4 -2
- package/registry/ui/slider.tsx +4 -2
- package/registry/ui/sparkline.tsx +84 -9
- package/registry/ui/spinner.tsx +3 -1
- package/registry/ui/states.tsx +34 -5
- package/registry/ui/status-badge.tsx +83 -41
- package/registry/ui/switch.tsx +3 -1
- package/registry/ui/table.tsx +4 -2
- package/registry/ui/tabs.tsx +5 -3
- package/registry/ui/textarea.tsx +3 -1
- package/registry/ui/toast.tsx +2 -2
- package/registry/ui/toggle-group.tsx +3 -1
- package/registry/ui/toggle.tsx +3 -1
- package/registry/ui/tooltip.tsx +10 -4
- package/registry/ui/tracker.tsx +632 -19
- package/registry/ui/trend-indicator.tsx +15 -3
- package/registry/ui/updated-at.tsx +122 -0
- package/registry/ui/waterfall-chart.tsx +4248 -0
- package/skills/vantage-design/SKILL.md +34 -24
- package/skills/vantage-design/references/extract.md +16 -14
- package/skills/vantage-design/references/format.md +6 -5
- package/skills/vantage-design/references/presets.md +60 -110
- package/skills/vantage-pitfalls/SKILL.md +5 -0
- package/skills/vantage-slide/SKILL.md +54 -36
- package/templates/AGENTS.md +17 -3
- package/templates/agents/doc.md +48 -0
- package/templates/agents/page.md +32 -1
- package/templates/agents/slide.md +70 -2
- package/theme.css +247 -149
- package/dist/chunk-5ZOP4SQR.js.map +0 -1
- package/dist/chunk-7DZGJQ3P.js.map +0 -1
- package/dist/chunk-A2UUGASH.js.map +0 -1
- package/dist/chunk-AG6RZ2RR.js +0 -3208
- package/dist/chunk-AG6RZ2RR.js.map +0 -1
- package/dist/chunk-CEXAQQ5W.js.map +0 -1
- package/dist/chunk-IBGOCWJB.js.map +0 -1
- package/dist/chunk-JKLLFVEU.js.map +0 -1
- package/dist/chunk-OB6UBJXF.js.map +0 -1
- package/dist/chunk-PXRX5PEC.js.map +0 -1
- package/dist/chunk-QEWCYW3I.js.map +0 -1
- package/dist/chunk-V3LF7BE7.js.map +0 -1
- package/dist/chunk-XQUSGIDG.js.map +0 -1
package/dist/slide/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode, PropsWithChildren, CSSProperties, ReactElement } from 'react';
|
|
3
|
+
import { V as ValueFormat } from '../format-U0cQl069.js';
|
|
4
|
+
export { D as DeltaText, a as DeltaTextProps } from '../delta-text-CvwBGJ95.js';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* Ported from open-slide (MIT) — https://github.com/1weiho/open-slide
|
|
@@ -227,4 +229,273 @@ declare function exportDeckAsPptx({ slides, fileName, theme, onProgress, }: Expo
|
|
|
227
229
|
declare const CANVAS_WIDTH = 1920;
|
|
228
230
|
declare const CANVAS_HEIGHT = 1080;
|
|
229
231
|
|
|
230
|
-
|
|
232
|
+
interface SlideChartInsightChart {
|
|
233
|
+
type: "line" | "bar" | "area";
|
|
234
|
+
/** The x-axis labels, one per value of each series. */
|
|
235
|
+
categories: string[];
|
|
236
|
+
series: {
|
|
237
|
+
name: string;
|
|
238
|
+
data: number[];
|
|
239
|
+
}[];
|
|
240
|
+
}
|
|
241
|
+
interface SlideChartInsightProps {
|
|
242
|
+
/** The conclusion as a sentence (an action title). */
|
|
243
|
+
title: string;
|
|
244
|
+
chart: SlideChartInsightChart;
|
|
245
|
+
/** 2–3 points that read the chart. */
|
|
246
|
+
insights: string[];
|
|
247
|
+
/** Which side the chart takes. Default `"left"`. */
|
|
248
|
+
chartSide?: "left" | "right";
|
|
249
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
250
|
+
asOf?: string;
|
|
251
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
252
|
+
source?: string;
|
|
253
|
+
}
|
|
254
|
+
declare function SlideChartInsight({ title, chart, insights, chartSide, asOf, source }: SlideChartInsightProps): React.JSX.Element;
|
|
255
|
+
|
|
256
|
+
interface SlideCoverProps {
|
|
257
|
+
/** The name of the deck. */
|
|
258
|
+
title: string;
|
|
259
|
+
subtitle?: string;
|
|
260
|
+
/** The period the deck covers, e.g.「2026 年 7 月〜9 月」. */
|
|
261
|
+
period?: string;
|
|
262
|
+
author?: string;
|
|
263
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-20"`. Shown as「2026-10-20 時点」(the block adds「時点」once). */
|
|
264
|
+
asOf?: string;
|
|
265
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
266
|
+
source?: string;
|
|
267
|
+
}
|
|
268
|
+
declare function SlideCover({ title, subtitle, period, author, asOf, source }: SlideCoverProps): React.JSX.Element;
|
|
269
|
+
|
|
270
|
+
interface SlideExecSummaryPoint {
|
|
271
|
+
/** The point in one line. */
|
|
272
|
+
headline: string;
|
|
273
|
+
/** One supporting line (a number, a cause). */
|
|
274
|
+
detail?: string;
|
|
275
|
+
}
|
|
276
|
+
interface SlideExecSummaryProps {
|
|
277
|
+
/** The conclusion as a sentence (an action title), not a topic. */
|
|
278
|
+
title: string;
|
|
279
|
+
/** 3–5 points. */
|
|
280
|
+
points: SlideExecSummaryPoint[];
|
|
281
|
+
layout?: "rows" | "columns";
|
|
282
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
283
|
+
asOf?: string;
|
|
284
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
285
|
+
source?: string;
|
|
286
|
+
}
|
|
287
|
+
declare function SlideExecSummary({ title, points, layout, asOf, source }: SlideExecSummaryProps): React.JSX.Element;
|
|
288
|
+
|
|
289
|
+
/** A change: its size in the metric's units, signed. The direction is read from the sign. */
|
|
290
|
+
interface SlideKpiGridDelta {
|
|
291
|
+
/** e.g. `0.074` with `format: "percent"` →「+7.4%」. */
|
|
292
|
+
value: number;
|
|
293
|
+
/** Default: the item's `format`. */
|
|
294
|
+
format?: ValueFormat;
|
|
295
|
+
}
|
|
296
|
+
interface SlideKpiGridItem {
|
|
297
|
+
label: string;
|
|
298
|
+
/** The number; `null` shows「—」. */
|
|
299
|
+
value: number | null;
|
|
300
|
+
format?: ValueFormat;
|
|
301
|
+
/** Replaces the shown text only (the number behind it stays `value`). */
|
|
302
|
+
display?: string;
|
|
303
|
+
delta?: SlideKpiGridDelta;
|
|
304
|
+
/** Which direction of `delta` is good. Default `"up"`. */
|
|
305
|
+
betterWhen?: "up" | "down";
|
|
306
|
+
/** What `delta` is against, e.g.「前月比」. */
|
|
307
|
+
comparisonLabel?: string;
|
|
308
|
+
/** The target, in the same `format` as `value`. The attainment rate is worked out here. */
|
|
309
|
+
target?: number;
|
|
310
|
+
}
|
|
311
|
+
interface SlideKpiGridProps {
|
|
312
|
+
/** The conclusion as a sentence (an action title). */
|
|
313
|
+
title: string;
|
|
314
|
+
/** 2–4 KPIs. */
|
|
315
|
+
items: SlideKpiGridItem[];
|
|
316
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
317
|
+
asOf?: string;
|
|
318
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
319
|
+
source?: string;
|
|
320
|
+
}
|
|
321
|
+
declare function SlideKpiGrid({ title, items, asOf, source }: SlideKpiGridProps): React.JSX.Element;
|
|
322
|
+
|
|
323
|
+
/** A change: its size in the metric's units, signed. The direction is read from the sign. */
|
|
324
|
+
interface SlideKpiHeroDelta {
|
|
325
|
+
/** e.g. `0.074` with `format: "percent"` →「+7.4%」. */
|
|
326
|
+
value: number;
|
|
327
|
+
/** Default: the metric's `format`. */
|
|
328
|
+
format?: ValueFormat;
|
|
329
|
+
}
|
|
330
|
+
interface SlideKpiHeroProps {
|
|
331
|
+
/** The conclusion as a sentence (an action title). */
|
|
332
|
+
title: string;
|
|
333
|
+
/** What the number is, e.g.「月次売上」. */
|
|
334
|
+
label: string;
|
|
335
|
+
/** The number; `null` shows「—」. */
|
|
336
|
+
value: number | null;
|
|
337
|
+
format?: ValueFormat;
|
|
338
|
+
/** Replaces the shown text only (the number behind it stays `value`). */
|
|
339
|
+
display?: string;
|
|
340
|
+
delta?: SlideKpiHeroDelta;
|
|
341
|
+
/** Which direction of `delta` is good. Default `"up"`. */
|
|
342
|
+
betterWhen?: "up" | "down";
|
|
343
|
+
/** What `delta` is against, e.g.「前月比」. */
|
|
344
|
+
comparisonLabel?: string;
|
|
345
|
+
/** Points of the line on the right; leave out for a number alone. */
|
|
346
|
+
trend?: {
|
|
347
|
+
x: string;
|
|
348
|
+
y: number;
|
|
349
|
+
}[];
|
|
350
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
351
|
+
asOf?: string;
|
|
352
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
353
|
+
source?: string;
|
|
354
|
+
}
|
|
355
|
+
declare function SlideKpiHero({ title, label, value, format, display, delta, betterWhen, comparisonLabel, trend, asOf, source }: SlideKpiHeroProps): React.JSX.Element;
|
|
356
|
+
|
|
357
|
+
interface SlideNextActionsItem {
|
|
358
|
+
/** What to do, as one sentence starting from the verb's object. */
|
|
359
|
+
action: string;
|
|
360
|
+
owner?: string;
|
|
361
|
+
/** As written, e.g. `"10/31"`. */
|
|
362
|
+
due?: string;
|
|
363
|
+
/** What to look at to know it worked. */
|
|
364
|
+
metric?: string;
|
|
365
|
+
}
|
|
366
|
+
interface SlideNextActionsProps {
|
|
367
|
+
/** The decision or the plan as a sentence (an action title). */
|
|
368
|
+
title: string;
|
|
369
|
+
/** 3–5 actions. */
|
|
370
|
+
items: SlideNextActionsItem[];
|
|
371
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
372
|
+
asOf?: string;
|
|
373
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
374
|
+
source?: string;
|
|
375
|
+
}
|
|
376
|
+
declare function SlideNextActions({ title, items, asOf, source }: SlideNextActionsProps): React.JSX.Element;
|
|
377
|
+
|
|
378
|
+
type SlideScorecardStatus = "on" | "risk" | "off";
|
|
379
|
+
interface SlideScorecardRow {
|
|
380
|
+
metric: string;
|
|
381
|
+
/** The actual; `null` shows「—」. */
|
|
382
|
+
value: number | null;
|
|
383
|
+
format?: ValueFormat;
|
|
384
|
+
/** Replaces the shown actual only (the number behind it stays `value`). */
|
|
385
|
+
display?: string;
|
|
386
|
+
/** The target, in the same `format` as `value`. */
|
|
387
|
+
target?: number;
|
|
388
|
+
/** Which direction is good. Default `"up"`; it flips the attainment rate. */
|
|
389
|
+
betterWhen?: "up" | "down";
|
|
390
|
+
/** `on` = on track, `risk` = at risk, `off` = off track. */
|
|
391
|
+
status: SlideScorecardStatus;
|
|
392
|
+
}
|
|
393
|
+
interface SlideScorecardTableProps {
|
|
394
|
+
/** The conclusion as a sentence (an action title). */
|
|
395
|
+
title: string;
|
|
396
|
+
/** Up to 8 rows. */
|
|
397
|
+
rows: SlideScorecardRow[];
|
|
398
|
+
/** Header words; leave out what you do not rename. */
|
|
399
|
+
columns?: Partial<Record<"metric" | "target" | "actual" | "attainment" | "status", string>>;
|
|
400
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
401
|
+
asOf?: string;
|
|
402
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
403
|
+
source?: string;
|
|
404
|
+
}
|
|
405
|
+
declare function SlideScorecardTable({ title, rows, columns, asOf, source }: SlideScorecardTableProps): React.JSX.Element;
|
|
406
|
+
|
|
407
|
+
interface SlideChartFullProps {
|
|
408
|
+
/** The conclusion as a sentence (an action title). */
|
|
409
|
+
title: string;
|
|
410
|
+
chart: SlideChartInsightChart;
|
|
411
|
+
/** One line under the chart. */
|
|
412
|
+
note?: string;
|
|
413
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
414
|
+
asOf?: string;
|
|
415
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
416
|
+
source?: string;
|
|
417
|
+
}
|
|
418
|
+
declare function SlideChartFull({ title, chart, note, asOf, source }: SlideChartFullProps): React.JSX.Element;
|
|
419
|
+
|
|
420
|
+
interface SlideComparisonColumn {
|
|
421
|
+
/** What this column is, e.g.「旧プラン」「施策前」. */
|
|
422
|
+
heading: string;
|
|
423
|
+
/** The main number. `null` shows「—」. */
|
|
424
|
+
value?: number | null;
|
|
425
|
+
format?: ValueFormat;
|
|
426
|
+
/** The main number as a string you already formatted; wins over `value`. */
|
|
427
|
+
display?: string;
|
|
428
|
+
/** The change of the main number against the other side or the previous period. `format` falls back to the column's `format`. */
|
|
429
|
+
delta?: {
|
|
430
|
+
value: number | null;
|
|
431
|
+
format?: ValueFormat;
|
|
432
|
+
};
|
|
433
|
+
/** Name of what `delta` is measured against, e.g.「前月比」「旧プラン比」. Printed before the change. */
|
|
434
|
+
comparisonLabel?: string;
|
|
435
|
+
/** Which way is good for the main number. Default `"up"`. */
|
|
436
|
+
betterWhen?: "up" | "down";
|
|
437
|
+
/** 1–3 short points about this column. */
|
|
438
|
+
points: string[];
|
|
439
|
+
}
|
|
440
|
+
interface SlideComparisonProps {
|
|
441
|
+
/** The conclusion as a sentence (an action title). */
|
|
442
|
+
title: string;
|
|
443
|
+
/** 2–3 columns. */
|
|
444
|
+
columns: SlideComparisonColumn[];
|
|
445
|
+
/** One line that says which side wins or what follows. */
|
|
446
|
+
verdict?: string;
|
|
447
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(the block adds「時点」once). */
|
|
448
|
+
asOf?: string;
|
|
449
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
450
|
+
source?: string;
|
|
451
|
+
}
|
|
452
|
+
declare function SlideComparison({ title, columns, verdict, asOf, source }: SlideComparisonProps): React.JSX.Element;
|
|
453
|
+
|
|
454
|
+
interface SlideSectionProps {
|
|
455
|
+
/** The chapter number, shown as「02」above the title. */
|
|
456
|
+
index?: number;
|
|
457
|
+
title: string;
|
|
458
|
+
/** One line under the title saying what the chapter answers. */
|
|
459
|
+
lead?: string;
|
|
460
|
+
/** The chapters of the deck, shown as a numbered agenda at the right. */
|
|
461
|
+
items?: string[];
|
|
462
|
+
/** The chapter in `items` to emphasise, 1-based. */
|
|
463
|
+
current?: number;
|
|
464
|
+
}
|
|
465
|
+
declare function SlideSection({ index, title, lead, items, current }: SlideSectionProps): React.JSX.Element;
|
|
466
|
+
|
|
467
|
+
interface SlideHeadingProps {
|
|
468
|
+
/** The conclusion as a sentence (an action title). Clamped to 2 lines. */
|
|
469
|
+
title: string;
|
|
470
|
+
/** A short label above the title, e.g.「第 2 章 解約」. */
|
|
471
|
+
eyebrow?: string;
|
|
472
|
+
}
|
|
473
|
+
declare function SlideHeading({ title, eyebrow }: SlideHeadingProps): React.JSX.Element;
|
|
474
|
+
|
|
475
|
+
interface SlideSourceLineProps {
|
|
476
|
+
/** The date the numbers were taken, date only, e.g. `"2026-10-01"`. Shown as「2026-10-01 時点」(this part adds「時点」once). */
|
|
477
|
+
asOf?: string;
|
|
478
|
+
/** Where the numbers come from, e.g.「社内 BI」. Shown as「出典: 社内 BI」. */
|
|
479
|
+
source?: string;
|
|
480
|
+
/** The page number, shown at the right as「3 / 12」. */
|
|
481
|
+
page?: {
|
|
482
|
+
current: number;
|
|
483
|
+
total: number;
|
|
484
|
+
};
|
|
485
|
+
}
|
|
486
|
+
declare function SlideSourceLine({ asOf, source, page }: SlideSourceLineProps): React.JSX.Element | null;
|
|
487
|
+
|
|
488
|
+
interface SlideColumnsProps {
|
|
489
|
+
children: ReactNode;
|
|
490
|
+
/** Vertical alignment of the columns in the row. Default `"stretch"`. */
|
|
491
|
+
align?: "start" | "center" | "stretch";
|
|
492
|
+
}
|
|
493
|
+
declare function SlideColumns({ children, align }: SlideColumnsProps): React.JSX.Element;
|
|
494
|
+
interface SlideColumnProps {
|
|
495
|
+
/** How many of the 12 columns it takes, 1–12. */
|
|
496
|
+
span: number;
|
|
497
|
+
children: ReactNode;
|
|
498
|
+
}
|
|
499
|
+
declare function SlideColumn({ span, children }: SlideColumnProps): React.JSX.Element;
|
|
500
|
+
|
|
501
|
+
export { CANVAS_HEIGHT, CANVAS_WIDTH, type EntryDirection, type ExportDeckOptions, MorphElement, type MorphElementProps, type MorphTransition, type PptxExportProgress, Slide, SlideCanvas, type SlideCanvasProps, SlideChartFull, type SlideChartFullProps, SlideChartInsight, type SlideChartInsightChart, type SlideChartInsightProps, SlideColumn, type SlideColumnProps, SlideColumns, type SlideColumnsProps, SlideComparison, type SlideComparisonColumn, type SlideComparisonProps, SlideCover, type SlideCoverProps, SlideDeck, type SlideDeckProps, SlideExecSummary, type SlideExecSummaryPoint, type SlideExecSummaryProps, SlideHeading, type SlideHeadingProps, SlideKpiGrid, type SlideKpiGridDelta, type SlideKpiGridItem, type SlideKpiGridProps, SlideKpiHero, type SlideKpiHeroDelta, type SlideKpiHeroProps, SlideNextActions, type SlideNextActionsItem, type SlideNextActionsProps, type SlideProps, type SlideScorecardRow, type SlideScorecardStatus, SlideScorecardTable, type SlideScorecardTableProps, SlideSection, type SlideSectionProps, SlideSourceLine, type SlideSourceLineProps, type SlideTheme, type SlideTransition, Step, type StepController, type StepProps, Steps, type TransitionPhase, exportDeckAsPptx, useIsActiveSlide, useSlideNumber };
|