@squadbase/vantage 0.6.2-dev1.5aae04e → 0.6.2-dev1.81c1bbe
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/chunk-2IAPIOPS.js +152 -0
- package/dist/chunk-2IAPIOPS.js.map +1 -0
- package/dist/chunk-57GHR5LN.js +163 -0
- package/dist/chunk-57GHR5LN.js.map +1 -0
- package/dist/{chunk-XPQSTZUU.js → chunk-7S52M2SL.js} +4 -3
- package/dist/chunk-7S52M2SL.js.map +1 -0
- package/dist/chunk-JXFCSF3K.js +673 -0
- package/dist/chunk-JXFCSF3K.js.map +1 -0
- package/dist/{chunk-HKSVYMYJ.js → chunk-RU6WKEOG.js} +56 -927
- package/dist/chunk-RU6WKEOG.js.map +1 -0
- package/dist/components/index.d.ts +3 -243
- package/dist/components/index.js +5 -2
- package/dist/doc/index.d.ts +194 -2
- package/dist/doc/index.js +334 -3
- package/dist/doc/index.js.map +1 -1
- package/dist/format-U0cQl069.d.ts +243 -0
- package/dist/slide/index.d.ts +177 -1
- package/dist/slide/index.js +864 -1
- package/dist/slide/index.js.map +1 -1
- package/dist/table/index.js +5 -2
- package/dist/table/index.js.map +1 -1
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.js.map +1 -1
- package/docs/en/components.md +11 -2
- 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-report-header.md +46 -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/donut-chart.md +72 -0
- package/docs/en/parts/funnel-steps.md +2 -1
- package/docs/en/parts/heatmap.md +53 -0
- package/docs/en/parts/legend.md +35 -0
- package/docs/en/parts/line-chart.md +94 -0
- 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/tracker.md +36 -0
- package/docs/en/parts/updated-at.md +30 -0
- package/docs/en/parts/waterfall-chart.md +56 -0
- package/docs/en/slide/slide-chart-insight.md +52 -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-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/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/index.json +697 -77
- package/docs/ja/components.md +10 -1
- 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-report-header.md +46 -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/donut-chart.md +45 -26
- package/docs/ja/parts/funnel-steps.md +27 -8
- package/docs/ja/parts/heatmap.md +45 -0
- package/docs/ja/parts/legend.md +36 -0
- package/docs/ja/parts/line-chart.md +48 -22
- package/docs/ja/parts/sample-data.md +61 -0
- package/docs/ja/parts/scatter-chart.md +69 -0
- package/docs/ja/parts/updated-at.md +27 -0
- package/docs/ja/parts/waterfall-chart.md +61 -0
- package/docs/ja/slide/slide-chart-insight.md +52 -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-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/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/package.json +2 -2
- package/registry/ui/area-chart.tsx +45 -19
- package/registry/ui/bar-chart.tsx +45 -19
- package/registry/ui/bar-list.tsx +44 -17
- package/registry/ui/box-plot-chart.tsx +45 -19
- package/registry/ui/category-bar.tsx +44 -17
- package/registry/ui/chart-frame.tsx +44 -17
- package/registry/ui/delta.tsx +4 -4
- package/registry/ui/donut-chart.tsx +46 -19
- package/registry/ui/echart.tsx +171 -54
- package/registry/ui/heatmap.tsx +45 -19
- package/registry/ui/histogram-chart.tsx +45 -19
- package/registry/ui/legend.tsx +44 -17
- package/registry/ui/line-chart.tsx +45 -19
- package/registry/ui/page-shell.tsx +7 -7
- package/registry/ui/paired-chart.tsx +45 -19
- package/registry/ui/sample-data.tsx +1 -1
- package/registry/ui/scatter-chart.tsx +45 -19
- package/registry/ui/slider.tsx +1 -1
- package/registry/ui/status-badge.tsx +8 -8
- package/registry/ui/tooltip.tsx +6 -2
- package/registry/ui/tracker.tsx +9 -3
- package/registry/ui/trend-indicator.tsx +2 -2
- package/registry/ui/waterfall-chart.tsx +45 -19
- package/skills/vantage-design/SKILL.md +27 -25
- 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-slide/SKILL.md +54 -36
- package/templates/AGENTS.md +2 -2
- package/templates/agents/doc.md +45 -0
- package/templates/agents/page.md +22 -1
- package/templates/agents/slide.md +55 -2
- package/theme.css +16 -15
- package/dist/chunk-HKSVYMYJ.js.map +0 -1
- package/dist/chunk-XPQSTZUU.js.map +0 -1
|
@@ -4,6 +4,8 @@ import { HTMLAttributes, ReactNode, ComponentType, ElementType, Ref, ReactElemen
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
import { EChartsOption } from 'echarts';
|
|
6
6
|
export { EChartsOption } from 'echarts';
|
|
7
|
+
import { V as ValueFormat, a as DateStyle } from '../format-U0cQl069.js';
|
|
8
|
+
export { D as DEFAULT_LOCALE, E as EMPTY_VALUE, F as FormatDateOptions, b as FormatKind, c as FormatValueOptions, M as MINUS_SIGN, f as formatDate, d as formatDateRange, e as formatDatesInText, g as formatDelta, h as formatKind, i as formatPoints, j as formatValue, t as toValueFormatter } from '../format-U0cQl069.js';
|
|
7
9
|
import { RowData, ColumnDef, SortingState, OnChangeFn, ColumnFiltersState, PaginationState, RowSelectionState, VisibilityState, TableMeta, Table } from '@tanstack/react-table';
|
|
8
10
|
export { ColumnDef, ColumnFiltersState, PaginationState, RowSelectionState, SortingState, VisibilityState } from '@tanstack/react-table';
|
|
9
11
|
export { DateRange as RdpDateRange } from 'react-day-picker';
|
|
@@ -87,248 +89,6 @@ interface PageShellContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
87
89
|
}
|
|
88
90
|
declare const PageShellContent: React.ForwardRefExoticComponent<PageShellContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
89
91
|
|
|
90
|
-
/**
|
|
91
|
-
* Locale-aware number formatting shared by KPI cards, tables and charts. All
|
|
92
|
-
* shortening is delegated to `Intl.NumberFormat` (`notation: "compact"`); this
|
|
93
|
-
* module never hard-codes unit thresholds or unit strings.
|
|
94
|
-
*
|
|
95
|
-
* | `format` | input | ja-JP output |
|
|
96
|
-
* |--------------------------------------------|--------------|----------------|
|
|
97
|
-
* | `"compact"` (default) | `48_200_000` | `4,820万` |
|
|
98
|
-
* | `"number"` | `1234.567` | `1,234.57` |
|
|
99
|
-
* | `"currency"` (JPY, compact) | `48_200_000` | `¥4,820万` |
|
|
100
|
-
* | `{ type: "currency", notation: "standard" }` | `48_200_000` | `¥48,200,000` |
|
|
101
|
-
* | `{ type: "currency", currency: "USD" }` | `1234.5` | `$1,234.5` |
|
|
102
|
-
* | `"percent"` — pass a **ratio** | `0.124` | `12.4%` |
|
|
103
|
-
* | `{ type: "percent", digits: 0 }` | `0.124` | `12%` |
|
|
104
|
-
* | `"multiple"` | `1.5` | `1.5×` |
|
|
105
|
-
* | `{ type: "number", unit: "件" }` | `48_210` | `48,210件` |
|
|
106
|
-
* | `{ type: "compact", unit: "人" }` | `12_345` | `1.2万人` |
|
|
107
|
-
* | `"duration"` — pass **seconds** | `12_000` | `3時間20分` |
|
|
108
|
-
* | `{ type: "duration", durationUnit: "minute" }` | `2160` | `1.5日` |
|
|
109
|
-
*
|
|
110
|
-
* - `percent` takes a ratio (0.124 → 12.4%). Passing 12.4 renders 1,240%. The fraction
|
|
111
|
-
* digits are **fixed**, never trimmed (`PERCENT_DIGITS` = 1: 0.14 → "14.0%", never "14%"
|
|
112
|
-
* beside "11.9%"). Pass `digits` in the format to share another count across cards.
|
|
113
|
-
* - A minus sign is always U+2212 (`MINUS_SIGN`, "−1,234" / "−5.0%"), never the hyphen-minus.
|
|
114
|
-
* - `currency` defaults to JPY and to compact notation (万・億 in ja); pass
|
|
115
|
-
* `notation: "standard"` for every digit (tables, invoices). In ja-JP the yen
|
|
116
|
-
* sign is the half-width `¥`.
|
|
117
|
-
* - `unit` is a counter appended right after the number, with no space
|
|
118
|
-
* ("48,210件", "1.2万人"), for `number` / `compact` / `currency`. It is
|
|
119
|
-
* ignored for `percent` and `duration`, and for `multiple` it replaces the
|
|
120
|
-
* default `×` ("2.7倍"). Do not write it into a `valueFormatter` by hand.
|
|
121
|
-
* - Charts take the same `format` a KpiCard takes (`format="currency"`).
|
|
122
|
-
* `toValueFormatter(format)` turns it into a function for places that need
|
|
123
|
-
* one (a `valueFormatter`, table cells).
|
|
124
|
-
* - Missing values (null / undefined / NaN) render as `—` (`EMPTY_VALUE`).
|
|
125
|
-
* - Dates go through `formatDate` (`Intl.DateTimeFormat`): `"date"` → `2026/10/20`,
|
|
126
|
-
* `"datetime"` → `2026/10/20 14:30`, `"year-month"` → `2026年10月`, `"month"` → `10月`,
|
|
127
|
-
* `"year"` → `2026年`.
|
|
128
|
-
* - A period goes through `formatDateRange`: `2026/9/23〜10/20` (same year drops the end year),
|
|
129
|
-
* `2025/12/20〜2026/1/18` across years; month and day are not zero-padded.
|
|
130
|
-
*/
|
|
131
|
-
/**
|
|
132
|
-
* The kind of number a value is. Pick by what the number means, not by how
|
|
133
|
-
* long it is: `currency` for money, `percent` for a ratio, `multiple` for a
|
|
134
|
-
* factor ("1.5×"), `duration` for a length of time ("3時間20分"), `number` for
|
|
135
|
-
* exact counts in tables, `compact` (default) for large headline counts (万・億).
|
|
136
|
-
*/
|
|
137
|
-
type FormatKind = "number" | "compact" | "currency" | "percent" | "multiple" | "duration";
|
|
138
|
-
/** The unit a `duration` value is measured in. */
|
|
139
|
-
type DurationUnit = "second" | "minute" | "hour" | "day";
|
|
140
|
-
/**
|
|
141
|
-
* How to display a number: a `FormatKind` alone, or an object for digits,
|
|
142
|
-
* currency, notation and a counter. The same value is accepted by KpiCard,
|
|
143
|
-
* Delta, the charts (`format`) and `formatValue`.
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* "currency" // ¥4,820万
|
|
147
|
-
* { type: "currency", notation: "standard" } // ¥48,200,000
|
|
148
|
-
* { type: "percent", digits: 1 } // 2.0%
|
|
149
|
-
* { type: "number", unit: "件" } // 48,210件
|
|
150
|
-
*/
|
|
151
|
-
type ValueFormat = FormatKind | {
|
|
152
|
-
type: FormatKind;
|
|
153
|
-
/** Fixed number of fraction digits. */
|
|
154
|
-
digits?: number;
|
|
155
|
-
/** ISO 4217 code for `currency`. Default `"JPY"`. */
|
|
156
|
-
currency?: string;
|
|
157
|
-
/** `currency` only: `"compact"` (default, 万・億) or `"standard"` (every digit). */
|
|
158
|
-
notation?: "compact" | "standard";
|
|
159
|
-
/** Counter appended after the number, e.g. `"件"`, `"人"`. Ignored for `percent` and `duration`. For `multiple` it replaces the default `×` (`"倍"` → `2.7倍`). */
|
|
160
|
-
unit?: string;
|
|
161
|
-
/** 値をこの数で割ってから整形する。例: `divisor: 100`(セント → ドル)。0 と非有限は無視。 */
|
|
162
|
-
divisor?: number;
|
|
163
|
-
/** `duration` only: the unit the value is in. Default `"second"`. Reads as "45秒" / "12分" / "3時間20分" / "1.5日" (`digits` sets the fraction digits of days). */
|
|
164
|
-
durationUnit?: DurationUnit;
|
|
165
|
-
};
|
|
166
|
-
/** Locale used when none is passed. Every function here takes a `locale` to override it. */
|
|
167
|
-
declare const DEFAULT_LOCALE = "ja-JP";
|
|
168
|
-
/** Shown in place of a missing value (null / undefined / NaN). */
|
|
169
|
-
declare const EMPTY_VALUE = "\u2014";
|
|
170
|
-
/** The minus sign every formatter writes (U+2212), so a negative never mixes with a hyphen-minus. */
|
|
171
|
-
declare const MINUS_SIGN = "\u2212";
|
|
172
|
-
/** Extra options for `formatValue`. */
|
|
173
|
-
interface FormatValueOptions {
|
|
174
|
-
/** `"auto"` (default) signs negatives only; `"exceptZero"` also writes `+` on positives (for differences). */
|
|
175
|
-
signDisplay?: "auto" | "exceptZero";
|
|
176
|
-
/** Round to this many significant digits (e.g. 3 for an estimate: 79,653,985 → 7,970万). */
|
|
177
|
-
significantDigits?: number;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* The kind of a format, whether it was given as a string or an object. Use it
|
|
181
|
-
* to branch on the meaning of a metric (e.g. a `percent` metric compares in
|
|
182
|
-
* points) without unpacking `ValueFormat` yourself.
|
|
183
|
-
*
|
|
184
|
-
* @param format - The format as a KpiCard / chart takes it. `undefined` means the default.
|
|
185
|
-
* @returns The `FormatKind`; `"compact"` when `format` is omitted.
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* formatKind("percent") // "percent"
|
|
189
|
-
* formatKind({ type: "currency", notation: "standard" }) // "currency"
|
|
190
|
-
* formatKind(undefined) // "compact"
|
|
191
|
-
*/
|
|
192
|
-
declare function formatKind(format: ValueFormat | undefined): FormatKind;
|
|
193
|
-
/**
|
|
194
|
-
* Format a number for display — KPI values, table cells, chart labels and
|
|
195
|
-
* sentences built from data (titles, summaries). See the table at the top of
|
|
196
|
-
* this module.
|
|
197
|
-
*
|
|
198
|
-
* @param value - The number. `null` / `undefined` / `NaN` render as `—`.
|
|
199
|
-
* For `percent`, a ratio (0.124 means 12.4%).
|
|
200
|
-
* @param format - How to display it. Default `"compact"`.
|
|
201
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
202
|
-
* @param options - `signDisplay` and `significantDigits` (rounding for estimates).
|
|
203
|
-
* @returns The display string. In ja-JP the yen sign is the half-width `¥`.
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* formatValue(48_200_000, "currency") // "¥4,820万"
|
|
207
|
-
* formatValue(48_200_000, { type: "currency", notation: "standard" }) // "¥48,200,000"
|
|
208
|
-
* formatValue(0.021, "percent") // "2.1%"
|
|
209
|
-
* formatValue(0.124, "percent", "ja-JP", { signDisplay: "exceptZero" }) // "+12.4%"
|
|
210
|
-
* formatValue(79_653_985, "currency", "ja-JP", { significantDigits: 3 }) // "¥7,970万"
|
|
211
|
-
* formatValue(48_210, { type: "number", unit: "件" }) // "48,210件"
|
|
212
|
-
* formatValue(1.5, "multiple") // "1.5×"
|
|
213
|
-
* formatValue(null) // "—"
|
|
214
|
-
*/
|
|
215
|
-
declare function formatValue(value: number | null | undefined, format?: ValueFormat, locale?: string, options?: FormatValueOptions): string;
|
|
216
|
-
/**
|
|
217
|
-
* Like `formatValue`, but always signed (except zero) — for a difference
|
|
218
|
-
* between two values ("+¥530万", "−120件"). Use `formatPoints` instead for a
|
|
219
|
-
* difference between two rates.
|
|
220
|
-
*
|
|
221
|
-
* @param value - The difference (current − previous). Missing values render as `—`.
|
|
222
|
-
* @param format - Format of the metric itself. Default `"compact"`.
|
|
223
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
224
|
-
* @returns The signed display string; zero has no sign.
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* formatDelta(5_300_000, "currency") // "+¥530万"
|
|
228
|
-
* formatDelta(-120, { type: "number", unit: "件" }) // "−120件"
|
|
229
|
-
* formatDelta(0.031, "percent") // "+3.1%"
|
|
230
|
-
* formatDelta(0, "currency") // "¥0"
|
|
231
|
-
*/
|
|
232
|
-
declare function formatDelta(value: number | null | undefined, format?: ValueFormat, locale?: string): string;
|
|
233
|
-
/**
|
|
234
|
-
* A difference between two rates in percentage points, always signed:
|
|
235
|
-
* `formatPoints(0.021 - 0.026)` → `"−0.5pt"`. Use it instead of a relative
|
|
236
|
-
* change for rate metrics (churn, conversion), where "−19.2%" reads as a drop
|
|
237
|
-
* of nineteen points. `signDisplay: "never"` drops the sign ("あと 0.5pt").
|
|
238
|
-
*
|
|
239
|
-
* @param difference - The difference of two **ratios** (0.021 − 0.026). Missing values render as `—`.
|
|
240
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
241
|
-
* @param options - `digits`: fixed fraction digits (default `PERCENT_DIGITS` = 1, so "0.0pt" / "+0.5pt"); `signDisplay`:
|
|
242
|
-
* `"exceptZero"` (default) or `"never"` when the sentence already says the direction.
|
|
243
|
-
* @returns The difference in points with the `pt` suffix.
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* formatPoints(0.021 - 0.026) // "−0.5pt"
|
|
247
|
-
* formatPoints(0.031 - 0.026) // "+0.5pt"
|
|
248
|
-
* formatPoints(0.02 - 0.015, "ja-JP", { signDisplay: "never" }) // "0.5pt"(「目標まであと 0.5pt」)
|
|
249
|
-
*/
|
|
250
|
-
declare function formatPoints(difference: number | null | undefined, locale?: string, options?: {
|
|
251
|
-
digits?: number;
|
|
252
|
-
signDisplay?: "exceptZero" | "never";
|
|
253
|
-
}): string;
|
|
254
|
-
/**
|
|
255
|
-
* Binds a format and locale into a single-argument formatter, for a chart
|
|
256
|
-
* `valueFormatter` or a table cell: `valueFormatter={toValueFormatter("currency")}`.
|
|
257
|
-
* Prefer passing `format` to the chart directly; this is for APIs that only
|
|
258
|
-
* take a function.
|
|
259
|
-
*
|
|
260
|
-
* @param format - How to display each value. Default `"compact"`.
|
|
261
|
-
* @param locale - BCP 47 locale. Default `"ja-JP"`.
|
|
262
|
-
* @returns `(value) => string`, rendering missing values as `—`.
|
|
263
|
-
*
|
|
264
|
-
* @example
|
|
265
|
-
* const yen = toValueFormatter("currency")
|
|
266
|
-
* yen(48_200_000) // "¥4,820万"
|
|
267
|
-
* yen(null) // "—"
|
|
268
|
-
* const count = toValueFormatter({ type: "number", unit: "件" })
|
|
269
|
-
* count(48_210) // "48,210件"(表のセル)
|
|
270
|
-
*/
|
|
271
|
-
declare function toValueFormatter(format?: ValueFormat, locale?: string): (value: number | null | undefined) => string;
|
|
272
|
-
/**
|
|
273
|
-
* 日付の書式。何を表す日付かで選ぶ: 日単位は `"date"`、時刻まで要るなら `"datetime"`、
|
|
274
|
-
* 月次の集計は `"year-month"`(年をまたぐ軸)か `"month"`(同じ年の中の軸)、年次は `"year"`。
|
|
275
|
-
*/
|
|
276
|
-
type DateStyle = "date" | "datetime" | "month" | "year-month" | "year";
|
|
277
|
-
/** `formatDate` の追加オプション。 */
|
|
278
|
-
interface FormatDateOptions {
|
|
279
|
-
/**
|
|
280
|
-
* IANA のタイムゾーン名(例: `"Asia/Tokyo"`)。既定は実行環境のタイムゾーン。
|
|
281
|
-
* サーバーとブラウザで描画が食い違う(SSR)なら固定する。日付だけの文字列(`"2026-10-20"`)には効かず、常にその暦日のまま出す。
|
|
282
|
-
*/
|
|
283
|
-
timeZone?: string;
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* 日付を表示用の文字列にする。表のセル・タイトル・文に埋める日付に使い、`toLocaleString` や手組みの
|
|
287
|
-
* `getMonth() + 1` は使わない。
|
|
288
|
-
*
|
|
289
|
-
* @param value - `Date`、エポックミリ秒、または日付文字列(`"2026-10-20"`、ISO 8601)。`null` / `undefined` / 解釈できない値は `—`。
|
|
290
|
-
* @param style - 何を表す日付か。既定 `"date"`。
|
|
291
|
-
* @param locale - BCP 47 ロケール。既定 `"ja-JP"`。
|
|
292
|
-
* @param options - `timeZone`。
|
|
293
|
-
* @returns 表示文字列。
|
|
294
|
-
*
|
|
295
|
-
* @example
|
|
296
|
-
* formatDate("2026-10-20") // "2026/10/20"
|
|
297
|
-
* formatDate(new Date("2026-10-20T05:30:00Z"), "datetime", "ja-JP", { timeZone: "Asia/Tokyo" }) // "2026/10/20 14:30"
|
|
298
|
-
* formatDate("2026-10-01", "year-month") // "2026年10月"
|
|
299
|
-
* formatDate("2026-10-01", "month") // "10月"
|
|
300
|
-
* formatDate(null) // "—"
|
|
301
|
-
*/
|
|
302
|
-
declare function formatDate(value: Date | string | number | null | undefined, style?: DateStyle, locale?: string, options?: FormatDateOptions): string;
|
|
303
|
-
/** `formatDateRange` のオプション。 */
|
|
304
|
-
interface FormatDateRangeOptions extends FormatDateOptions {
|
|
305
|
-
/** BCP 47 ロケール。既定 `"ja-JP"`。 */
|
|
306
|
-
locale?: string;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* 期間を「2026/9/23〜10/20」の形にする。同じ年なら終了側の年を省き、年をまたぐときは両方に付ける。
|
|
310
|
-
* 月日はゼロ詰めしない。区切りは日本語で「〜」、それ以外のロケールでは「 – 」。始まりと終わりが同じ日なら 1 日だけ出す。
|
|
311
|
-
*
|
|
312
|
-
* @param start - 期間の最初の日(`Date`、エポックミリ秒、日付文字列)。`"2026-09-23"` のような日付だけの文字列はその暦日のまま出す。
|
|
313
|
-
* @param end - 期間の最後の日。
|
|
314
|
-
* @param options - `locale` と `timeZone`。
|
|
315
|
-
* @returns 表示文字列。どちらかが解釈できなければ `—`。
|
|
316
|
-
*
|
|
317
|
-
* @example
|
|
318
|
-
* formatDateRange("2026-09-23", "2026-10-20") // "2026/9/23〜10/20"
|
|
319
|
-
* formatDateRange("2025-12-20", "2026-01-18") // "2025/12/20〜2026/1/18"
|
|
320
|
-
*/
|
|
321
|
-
declare function formatDateRange(start: Date | string | number | null | undefined, end: Date | string | number | null | undefined, options?: FormatDateRangeOptions): string;
|
|
322
|
-
/**
|
|
323
|
-
* 文中の ISO の年月・日付(`2023-04`、`2026-10-20`)を `formatDate` の書式に置き換える。期間や出典の注記のように、
|
|
324
|
-
* 利用者が文字列で渡す文に日付が混ざるときの表示用(`"2023-04 以降"` → `"2023年4月 以降"`)。日付でない数字は触らない。
|
|
325
|
-
*
|
|
326
|
-
* @param text - 日付を含みうる文。
|
|
327
|
-
* @param locale - BCP 47 ロケール。既定 `"ja-JP"`。
|
|
328
|
-
* @returns ISO の年月は `"year-month"`、年月日は `"date"` で整形した文。
|
|
329
|
-
*/
|
|
330
|
-
declare function formatDatesInText(text: string, locale?: string): string;
|
|
331
|
-
|
|
332
92
|
/**
|
|
333
93
|
* Shared data shapes for the composite dashboard components. Kept in one place
|
|
334
94
|
* so filters, metrics and date pickers agree on the same vocabulary.
|
|
@@ -2532,4 +2292,4 @@ interface SampleDataProps {
|
|
|
2532
2292
|
}
|
|
2533
2293
|
declare function SampleData({ label, children }: SampleDataProps): React.JSX.Element;
|
|
2534
2294
|
|
|
2535
|
-
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult,
|
|
2295
|
+
export { AppShell, type AppShellHeaderProps, type AppShellProps, type AppShellSidebarProps, AreaChart, type AreaChartProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListOptions, type BarListProps, type BarListSortOrder, COMPARISON_LABELS, CategoryBar, type CategoryBarMarker, type CategoryBarProps, type ChangeDisplay, type ChartActionsOptions, type ChartAnnotation, type ChartColor, type ChartColorToken, type ChartColors, type ChartCommonProps, type ChartComparison, type ChartEmptyState, type ChartEventPayload, type ChartForecast, type ChartForecastRow, ChartFrame, type ChartFrameProps, type ChartHighlight, type ChartRootAttributes, type ChartSeriesColor, type ChartSkeletonVariant, type ChartThreshold, type ChartTone, type Comparison, type ComparisonKind, type ComparisonOptions, type ComparisonResult, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, type DashboardCardActionProps, DashboardCardContent, type DashboardCardContentProps, DashboardCardDescription, type DashboardCardDescriptionProps, DashboardCardFooter, type DashboardCardFooterProps, DashboardCardHeader, type DashboardCardHeaderProps, DashboardCardPreset, type DashboardCardPresetProps, type DashboardCardProps, DashboardCardSkeleton, type DashboardCardSkeletonProps, DashboardCardTitle, type DashboardCardTitleProps, DataTable, DataTableColumnVisibility, type DataTableColumnVisibilityProps, DataTableContent, type DataTableContentProps, DataTableExport, type DataTableExportProps, DataTablePagination, type DataTablePaginationProps, DataTablePreset, type DataTablePresetProps, type DataTableProps, DataTableToolbar, type DataTableToolbarProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateStyle, Delta, type DeltaDirection, type DeltaProps, type DeltaSentiment, DonutChart, type DonutChartOptions, type DonutChartProps, type DonutVariant, EChart, type EChartProps, FilterBar, FilterBarActiveChips, type FilterBarActiveChipsProps, FilterBarClearButton, type FilterBarClearButtonProps, FilterBarMultiSelect, type FilterBarMultiSelectProps, FilterBarPreset, type FilterBarPresetProps, type FilterBarProps, FilterBarSelect, type FilterBarSelectProps, type FilterConfig, type FilterOption, type FilterType, type FilterValues, type FunnelStep, FunnelSteps, type FunnelStepsProps, Heatmap, type HeatmapProps, type HistoryGrain, KpiCard, type KpiCardProps, type KpiCardSource, type KpiPeriod, Legend, type LegendProps, LineChart, type LineChartProps, type MetricItem, MetricUnit, type MetricUnitProps, MetricValue, type MetricValueProps, type MetricVariant, MultiSelect, type MultiSelectProps, type NavGroup, type NavItem, type NumericKeys, PageShell, PageShellActions, type PageShellActionsProps, PageShellContent, type PageShellContentProps, PageShellDescription, type PageShellDescriptionProps, PageShellHeader, PageShellHeaderEnd, type PageShellHeaderEndProps, type PageShellHeaderProps, PageShellHeading, type PageShellHeadingProps, PageShellMeta, type PageShellMetaProps, type PageShellProps, PageShellSummary, PageShellSummaryCard, type PageShellSummaryCardProps, type PageShellSummaryProps, PageShellTitle, type PageShellTitleProps, type PeriodGrain, Placeholder, type PlaceholderProps, type Polarity, type PresetItem, ProgressCircle, type ProgressCircleProps, RECORD_MIN_POINTS, type RecordInsight, SampleBadge, type SampleBadgeProps, SampleClaim, SampleData, type SampleDataProps, ScatterChart, type ScatterChartProps, type ScatterReferenceLine, SearchableSelect, type SearchableSelectProps, SectionHeader, type SectionHeaderProps, type SegmentOption, SegmentedControl, type SegmentedControlProps, type SelectOption, type SelectOptionGroup, type SelectOptions, Sparkline, type SparklineDataPoint, type SparklineProps, type SparklineVariant, StatusBadge, type StatusBadgeProps, type TargetProgress, Tracker, type TrackerBlock, type TrackerProps, type TrendDirection, TrendIndicator, type TrendIndicatorProps, UpdatedAt, type UpdatedAtProps, ValueFormat, type ValueFormatter, WaterfallChart, type WaterfallChartProps, type WaterfallMode, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useResolvedChartColors, useSampleMark };
|
package/dist/components/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
export { AppShell, AreaChart, BarChart, BarList, COMPARISON_LABELS, CategoryBar, ChartFrame,
|
|
2
|
-
|
|
1
|
+
export { AppShell, AreaChart, BarChart, BarList, COMPARISON_LABELS, CategoryBar, ChartFrame, DEFAULT_SAMPLE_LABEL, DELTA_NOT_COMPARABLE, DashboardCard, DashboardCardAction, DashboardCardContent, DashboardCardDescription, DashboardCardFooter, DashboardCardHeader, DashboardCardPreset, DashboardCardSkeleton, DashboardCardTitle, DataTable, DataTableColumnVisibility, DataTableContent, DataTableExport, DataTablePagination, DataTablePreset, DataTableToolbar, DateRangePicker, Delta, DonutChart, FilterBar, FilterBarActiveChips, FilterBarClearButton, FilterBarMultiSelect, FilterBarPreset, FilterBarSelect, FunnelSteps, Heatmap, KpiCard, Legend, LineChart, MetricUnit, MetricValue, MultiSelect, PageShell, PageShellActions, PageShellContent, PageShellDescription, PageShellHeader, PageShellHeaderEnd, PageShellHeading, PageShellMeta, PageShellSummary, PageShellSummaryCard, PageShellTitle, Placeholder, ProgressCircle, RECORD_MIN_POINTS, SampleBadge, SampleClaim, SampleData, ScatterChart, SearchableSelect, SectionHeader, SegmentedControl, StatusBadge, Tracker, TrendIndicator, UpdatedAt, WaterfallChart, comparisonBaseline, comparisonLabel, computeComparison, computeTargetProgress, defaultChangeDisplay, defaultPresets, deltaVariants, detectRecord, fillKpiTemplate, flattenOptions, formatChange, formatChangeAmount, formatRelativeTime, funnelStepsVariants, inferPeriodGrain, isGroupedOptions, metricValueVariants, pageShellSummaryCardVariants, tableToCsv, toCsv, toneForValue, useDataTable, useSampleMark } from '../chunk-RU6WKEOG.js';
|
|
2
|
+
export { EChart, useResolvedChartColors } from '../chunk-JXFCSF3K.js';
|
|
3
|
+
export { Sparkline } from '../chunk-2IAPIOPS.js';
|
|
4
|
+
export { DEFAULT_LOCALE, EMPTY_VALUE, MINUS_SIGN, formatDate, formatDateRange, formatDatesInText, formatDelta, formatKind, formatPoints, formatValue, toValueFormatter } from '../chunk-57GHR5LN.js';
|
|
5
|
+
import '../chunk-7S52M2SL.js';
|
|
3
6
|
import '../chunk-PDOBHMUQ.js';
|
|
4
7
|
import '../chunk-U736PVHY.js';
|
|
5
8
|
//# sourceMappingURL=index.js.map
|
package/dist/doc/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import { V as ValueFormat } from '../format-U0cQl069.js';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Per-document token overrides. Anything left out falls through to `--doc-*`
|
|
@@ -40,4 +41,195 @@ interface DocumentProps extends HTMLAttributes<HTMLElement> {
|
|
|
40
41
|
*/
|
|
41
42
|
declare const Document: React.ForwardRefExoticComponent<DocumentProps & React.RefAttributes<HTMLElement>>;
|
|
42
43
|
|
|
43
|
-
|
|
44
|
+
type DocActionPriority = "high" | "medium" | "low";
|
|
45
|
+
interface DocActionItem {
|
|
46
|
+
action: ReactNode;
|
|
47
|
+
owner?: string;
|
|
48
|
+
/** Due date as written, e.g. "2026-11-15" or "11 月末". */
|
|
49
|
+
due?: string;
|
|
50
|
+
/** What we expect to change, e.g. "解約率 −0.5pt". */
|
|
51
|
+
impact?: string;
|
|
52
|
+
priority?: DocActionPriority;
|
|
53
|
+
}
|
|
54
|
+
interface DocActionItemsProps {
|
|
55
|
+
/** Heading text. Default "推奨する対応". */
|
|
56
|
+
title?: string;
|
|
57
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
58
|
+
headingLevel?: 2 | 3;
|
|
59
|
+
items: DocActionItem[];
|
|
60
|
+
variant?: "table" | "asks";
|
|
61
|
+
}
|
|
62
|
+
declare function DocActionItems({ title, headingLevel, items, variant }: DocActionItemsProps): React.JSX.Element;
|
|
63
|
+
|
|
64
|
+
type DocCalloutKind = "note" | "insight" | "warning" | "decision";
|
|
65
|
+
interface DocCalloutProps {
|
|
66
|
+
kind?: DocCalloutKind;
|
|
67
|
+
/** Heading of the box, one short line. Default: the kind's word. */
|
|
68
|
+
title?: string;
|
|
69
|
+
children: ReactNode;
|
|
70
|
+
}
|
|
71
|
+
declare function DocCallout({ kind, title, children }: DocCalloutProps): React.JSX.Element;
|
|
72
|
+
|
|
73
|
+
type DocTableCell = string | number | null | undefined;
|
|
74
|
+
type DocTableRow = Record<string, DocTableCell>;
|
|
75
|
+
interface DocTableColumn {
|
|
76
|
+
key: string;
|
|
77
|
+
label: string;
|
|
78
|
+
/** Format of a numeric column. Without it, numbers use a plain thousands format. */
|
|
79
|
+
format?: ValueFormat;
|
|
80
|
+
/** Default: right for a column of numbers, left otherwise. */
|
|
81
|
+
align?: "left" | "right" | "center";
|
|
82
|
+
}
|
|
83
|
+
interface DocDataTableProps {
|
|
84
|
+
/** Table title, as a caption above the table. */
|
|
85
|
+
title?: string;
|
|
86
|
+
/** Unit or scale, e.g. "単位: 百万円". */
|
|
87
|
+
unit?: string;
|
|
88
|
+
columns: DocTableColumn[];
|
|
89
|
+
rows: DocTableRow[];
|
|
90
|
+
/** The total row, keyed like `rows`. */
|
|
91
|
+
total?: DocTableRow;
|
|
92
|
+
/** Row indexes to set in semibold. */
|
|
93
|
+
highlightRows?: number[];
|
|
94
|
+
footnotes?: {
|
|
95
|
+
mark: string;
|
|
96
|
+
text: string;
|
|
97
|
+
}[];
|
|
98
|
+
source?: string;
|
|
99
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". "データ時点" is added here. */
|
|
100
|
+
asOf?: string;
|
|
101
|
+
}
|
|
102
|
+
declare function DocDataTable({ title, unit, columns, rows, total, highlightRows, footnotes, source, asOf }: DocDataTableProps): React.JSX.Element;
|
|
103
|
+
|
|
104
|
+
interface DocSummaryMetric {
|
|
105
|
+
label: string;
|
|
106
|
+
value: number | null;
|
|
107
|
+
format?: ValueFormat;
|
|
108
|
+
/** Overrides the shown value (e.g. "約 5,400 万円"). */
|
|
109
|
+
display?: string;
|
|
110
|
+
/** The change from the comparison; direction comes from its sign. Omit for no comparison. */
|
|
111
|
+
delta?: {
|
|
112
|
+
value: number;
|
|
113
|
+
format?: ValueFormat;
|
|
114
|
+
};
|
|
115
|
+
/** Name of the comparison, e.g. "前月比". Default "前期比". */
|
|
116
|
+
comparisonLabel?: string;
|
|
117
|
+
/** Which way is good. Default `"up"`. */
|
|
118
|
+
betterWhen?: "up" | "down";
|
|
119
|
+
}
|
|
120
|
+
interface DocExecutiveSummaryProps {
|
|
121
|
+
/** Heading text. Default "要旨". */
|
|
122
|
+
title?: string;
|
|
123
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
124
|
+
headingLevel?: 2 | 3;
|
|
125
|
+
/** The verdict in one sentence. */
|
|
126
|
+
conclusion: ReactNode;
|
|
127
|
+
/** 3–5 supporting points, most important first. */
|
|
128
|
+
points: ReactNode[];
|
|
129
|
+
/** Up to 3 headline numbers; any beyond are ignored. */
|
|
130
|
+
metrics?: DocSummaryMetric[];
|
|
131
|
+
}
|
|
132
|
+
declare function DocExecutiveSummary({ title, headingLevel, conclusion, points, metrics, }: DocExecutiveSummaryProps): React.JSX.Element;
|
|
133
|
+
|
|
134
|
+
interface DocFigureProps {
|
|
135
|
+
/** The finding, as a sentence. */
|
|
136
|
+
title: string;
|
|
137
|
+
/** Unit or scale, e.g. "単位: 百万円". */
|
|
138
|
+
unit?: string;
|
|
139
|
+
/** Figure number; shown as "図 N" in the caption. */
|
|
140
|
+
number?: number;
|
|
141
|
+
/** Where the data comes from. */
|
|
142
|
+
source?: string;
|
|
143
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". */
|
|
144
|
+
asOf?: string;
|
|
145
|
+
/** Footnotes, one per line. */
|
|
146
|
+
notes?: string[];
|
|
147
|
+
/** The chart. */
|
|
148
|
+
children: ReactNode;
|
|
149
|
+
}
|
|
150
|
+
declare function DocFigure({ title, unit, number, source, asOf, notes, children }: DocFigureProps): React.JSX.Element;
|
|
151
|
+
|
|
152
|
+
interface DocFindingMetric {
|
|
153
|
+
label: string;
|
|
154
|
+
value: number | null;
|
|
155
|
+
format?: ValueFormat;
|
|
156
|
+
/** Overrides the shown value. */
|
|
157
|
+
display?: string;
|
|
158
|
+
/** The change from the comparison; direction comes from its sign. */
|
|
159
|
+
delta?: {
|
|
160
|
+
value: number;
|
|
161
|
+
format?: ValueFormat;
|
|
162
|
+
};
|
|
163
|
+
/** Name of the comparison, e.g. "前月比". Default "前期比". */
|
|
164
|
+
comparisonLabel?: string;
|
|
165
|
+
/** Which way is good. Default `"up"`. */
|
|
166
|
+
betterWhen?: "up" | "down";
|
|
167
|
+
}
|
|
168
|
+
interface DocFinding {
|
|
169
|
+
/** The conclusion, as a sentence. */
|
|
170
|
+
headline: string;
|
|
171
|
+
evidence: ReactNode;
|
|
172
|
+
metric?: DocFindingMetric;
|
|
173
|
+
}
|
|
174
|
+
interface DocKeyFindingsProps {
|
|
175
|
+
/** Heading text. Default "主要な発見". */
|
|
176
|
+
title?: string;
|
|
177
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
178
|
+
headingLevel?: 2 | 3;
|
|
179
|
+
/** 3–5 findings, most important first. */
|
|
180
|
+
findings: DocFinding[];
|
|
181
|
+
}
|
|
182
|
+
declare function DocKeyFindings({ title, headingLevel, findings }: DocKeyFindingsProps): React.JSX.Element;
|
|
183
|
+
|
|
184
|
+
interface DocScorecardMetric {
|
|
185
|
+
label: string;
|
|
186
|
+
value: number | null;
|
|
187
|
+
format?: ValueFormat;
|
|
188
|
+
/** Overrides the shown value. */
|
|
189
|
+
display?: string;
|
|
190
|
+
/** The change from the comparison; direction comes from its sign. */
|
|
191
|
+
delta?: {
|
|
192
|
+
value: number;
|
|
193
|
+
format?: ValueFormat;
|
|
194
|
+
};
|
|
195
|
+
/** Name of the comparison, e.g. "前年同期比". Default "前期比". */
|
|
196
|
+
comparisonLabel?: string;
|
|
197
|
+
/** Which way is good. Default `"up"`. */
|
|
198
|
+
betterWhen?: "up" | "down";
|
|
199
|
+
/** The target for the period, in the same `format` as `value`. */
|
|
200
|
+
target?: number;
|
|
201
|
+
/** One series over time, oldest first; the last one is the current value. */
|
|
202
|
+
trend?: {
|
|
203
|
+
x: string;
|
|
204
|
+
y: number;
|
|
205
|
+
}[];
|
|
206
|
+
}
|
|
207
|
+
interface DocKpiScorecardProps {
|
|
208
|
+
/** Heading text. Default "主要指標". */
|
|
209
|
+
title?: string;
|
|
210
|
+
/** `2` directly under the document, `3` inside another section. Default 2. */
|
|
211
|
+
headingLevel?: 2 | 3;
|
|
212
|
+
metrics: DocScorecardMetric[];
|
|
213
|
+
variant?: "table" | "grid";
|
|
214
|
+
/** When the numbers were taken: a date only, e.g. "2026-10-03". "データ時点" is added here. */
|
|
215
|
+
asOf?: string;
|
|
216
|
+
source?: string;
|
|
217
|
+
}
|
|
218
|
+
declare function DocKpiScorecard({ title, headingLevel, metrics, variant, asOf, source, }: DocKpiScorecardProps): React.JSX.Element;
|
|
219
|
+
|
|
220
|
+
interface DocReportHeaderProps {
|
|
221
|
+
/** The document title (h1). State the subject and the period, not a slogan. */
|
|
222
|
+
title: string;
|
|
223
|
+
/** One line under the title, e.g. who the report is for. */
|
|
224
|
+
subtitle?: ReactNode;
|
|
225
|
+
/** The period the numbers cover, e.g. "2026 年 9 月" or "2026-07-01 〜 2026-09-30". */
|
|
226
|
+
period?: string;
|
|
227
|
+
/** When the data was taken: a date only, e.g. "2026-10-03". Shown under "データ時点". */
|
|
228
|
+
asOf?: string;
|
|
229
|
+
author?: string;
|
|
230
|
+
/** Where the numbers come from, e.g. "受注管理システム、会計システム". */
|
|
231
|
+
source?: string;
|
|
232
|
+
}
|
|
233
|
+
declare function DocReportHeader({ title, subtitle, period, asOf, author, source }: DocReportHeaderProps): React.JSX.Element;
|
|
234
|
+
|
|
235
|
+
export { type DocActionItem, DocActionItems, type DocActionItemsProps, type DocActionPriority, DocCallout, type DocCalloutKind, type DocCalloutProps, DocDataTable, type DocDataTableProps, DocExecutiveSummary, type DocExecutiveSummaryProps, DocFigure, type DocFigureProps, type DocFinding, type DocFindingMetric, DocKeyFindings, type DocKeyFindingsProps, DocKpiScorecard, type DocKpiScorecardProps, DocReportHeader, type DocReportHeaderProps, type DocScorecardMetric, type DocSummaryMetric, type DocTableCell, type DocTableColumn, type DocTableRow, Document, type DocumentProps, type DocumentTheme };
|