@squadbase/vantage 0.6.2-dev1.ac99e02 → 0.6.2-dev1.d7c0911
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-X5NVCQKT.js} +4 -4
- package/dist/{build-MFWRPYKW.js.map → build-X5NVCQKT.js.map} +1 -1
- package/dist/{chunk-IBGOCWJB.js → chunk-2ICNHUG6.js} +186 -82
- package/dist/chunk-2ICNHUG6.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-PXRX5PEC.js → chunk-PDOBHMUQ.js} +3 -3
- package/dist/chunk-PDOBHMUQ.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-QEWCYW3I.js → chunk-WAMZWZJB.js} +13 -3
- package/dist/chunk-WAMZWZJB.js.map +1 -0
- package/dist/chunk-WRSX2MDK.js +7866 -0
- package/dist/chunk-WRSX2MDK.js.map +1 -0
- package/dist/{chunk-OB6UBJXF.js → chunk-XPQSTZUU.js} +125 -35
- package/dist/chunk-XPQSTZUU.js.map +1 -0
- package/dist/cli.js +3 -3
- package/dist/components/index.d.ts +1831 -99
- package/dist/components/index.js +4 -4
- package/dist/{dev-DCTOHQ6W.js → dev-4XEDTELV.js} +4 -4
- package/dist/{dev-DCTOHQ6W.js.map → dev-4XEDTELV.js.map} +1 -1
- package/dist/doc/index.js +2 -2
- package/dist/doc/index.js.map +1 -1
- package/dist/markdown/index.js +1 -1
- package/dist/markdown/index.js.map +1 -1
- package/dist/table/index.js +5 -5
- package/dist/table/index.js.map +1 -1
- package/dist/ui/index.d.ts +4 -1
- package/dist/ui/index.js +21 -111
- package/dist/ui/index.js.map +1 -1
- package/dist/{upgrade-DBBE6GIR.js → upgrade-JHXZBGQS.js} +3 -3
- package/dist/{upgrade-DBBE6GIR.js.map → upgrade-JHXZBGQS.js.map} +1 -1
- package/dist/vite/index.js +2 -2
- package/docs/en/components.md +29 -15
- package/docs/en/parts/data-table.md +22 -0
- package/docs/en/parts/delta.md +50 -0
- package/docs/en/parts/format.md +43 -0
- package/docs/en/parts/kpi-card.md +57 -0
- package/docs/en/parts/metric-value.md +3 -2
- package/docs/en/parts/sparkline.md +1 -1
- package/docs/en/parts/trend-indicator.md +17 -1
- package/docs/en/ui-and-theming.md +1 -1
- package/docs/index.json +92 -32
- package/docs/ja/changelog.md +5 -0
- package/docs/ja/components.md +27 -15
- package/docs/ja/parts/data-table.md +22 -0
- package/docs/ja/parts/delta.md +50 -0
- package/docs/ja/parts/format.md +44 -0
- package/docs/ja/parts/kpi-card.md +55 -0
- package/docs/ja/parts/metric-value.md +3 -2
- package/docs/ja/parts/sparkline.md +1 -1
- package/docs/ja/parts/trend-indicator.md +17 -1
- package/docs/ja/ui-and-theming.md +2 -2
- package/package.json +2 -1
- 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 +2781 -157
- package/registry/ui/avatar.tsx +1 -1
- package/registry/ui/badge.tsx +3 -1
- package/registry/ui/bar-chart.tsx +2780 -157
- package/registry/ui/bar-list.tsx +3471 -93
- 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 +990 -16
- package/registry/ui/chart-frame.tsx +1358 -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 +69 -26
- package/registry/ui/data-table.tsx +678 -56
- package/registry/ui/date-range-picker.tsx +245 -64
- package/registry/ui/delta.tsx +188 -0
- package/registry/ui/dialog.tsx +5 -3
- package/registry/ui/donut-chart.tsx +2857 -173
- package/registry/ui/drawer.tsx +1 -1
- package/registry/ui/dropdown-menu.tsx +5 -3
- package/registry/ui/echart.tsx +448 -44
- package/registry/ui/field.tsx +1 -1
- package/registry/ui/filter-bar.tsx +33 -6
- package/registry/ui/funnel-steps.tsx +3316 -49
- package/registry/ui/heatmap.tsx +1752 -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 +677 -0
- package/registry/ui/label.tsx +3 -1
- package/registry/ui/legend.tsx +3500 -0
- package/registry/ui/line-chart.tsx +2781 -151
- package/registry/ui/metric-value.tsx +9 -1
- package/registry/ui/multi-select.tsx +11 -5
- package/registry/ui/page-shell.tsx +104 -49
- package/registry/ui/pagination.tsx +3 -1
- 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 +4150 -0
- package/registry/ui/scroll-area.tsx +3 -2
- package/registry/ui/searchable-select.tsx +8 -3
- package/registry/ui/section-header.tsx +4 -2
- 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 +3 -1
- 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 +81 -39
- 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 +4 -2
- package/registry/ui/tracker.tsx +624 -17
- package/registry/ui/trend-indicator.tsx +13 -1
- package/registry/ui/updated-at.tsx +122 -0
- package/registry/ui/waterfall-chart.tsx +4186 -0
- package/templates/AGENTS.md +13 -1
- package/theme.css +237 -136
- package/dist/chunk-5ZOP4SQR.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-IBGOCWJB.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
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
// Copied by `vantage add ui metric-value`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/components/metric-value.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* MetricValue / MetricUnit — the large number in a dashboard tile and its
|
|
5
7
|
* trailing unit, sized as a pair so the unit stays subordinate at every size.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated KPI の数字は KpiCard を使う。KpiCard は書式(`format`、単位は
|
|
10
|
+
* `{ type: "number", unit: "社" }`)・比較ラベル・増減を値から計算するので、
|
|
11
|
+
* 手書きの数字と TrendIndicator の組み合わせのように食い違わない。
|
|
6
12
|
*/
|
|
7
13
|
import { forwardRef, type HTMLAttributes } from "react"
|
|
8
14
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
@@ -27,6 +33,7 @@ export interface MetricValueProps
|
|
|
27
33
|
extends HTMLAttributes<HTMLDivElement>,
|
|
28
34
|
VariantProps<typeof metricValueVariants> {}
|
|
29
35
|
|
|
36
|
+
/** @deprecated KPI の数字は KpiCard を使う。 */
|
|
30
37
|
export const MetricValue = forwardRef<HTMLDivElement, MetricValueProps>(
|
|
31
38
|
({ className, size, ...props }, ref) => (
|
|
32
39
|
<div
|
|
@@ -41,6 +48,7 @@ MetricValue.displayName = "MetricValue"
|
|
|
41
48
|
|
|
42
49
|
export interface MetricUnitProps extends HTMLAttributes<HTMLSpanElement> {}
|
|
43
50
|
|
|
51
|
+
/** @deprecated KPI の単位は KpiCard の `format`(`{ type: "number", unit: "社" }`)で付ける。 */
|
|
44
52
|
export const MetricUnit = forwardRef<HTMLSpanElement, MetricUnitProps>(
|
|
45
53
|
({ className, ...props }, ref) => (
|
|
46
54
|
<span
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copied by `vantage add ui multi-select`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/components/multi-select.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* MultiSelect — a multi-value combobox that shows the selection as removable
|
|
5
7
|
* badges. Past `maxCount` badges the rest collapse into a "+N件" counter.
|
|
@@ -17,7 +19,7 @@ import { CheckIcon, LoaderIcon, XIcon } from "lucide-react"
|
|
|
17
19
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "@squadbase/vantage/ui"
|
|
18
20
|
import { isGroupedOptions, type SelectOption } from "@squadbase/vantage/components"
|
|
19
21
|
|
|
20
|
-
/* ---------- inlined from
|
|
22
|
+
/* ---------- inlined from @squadbase/squadkit registry/components/option-command.tsx (internal to @squadbase/vantage) ---------- */
|
|
21
23
|
|
|
22
24
|
interface OptionCommandListProps {
|
|
23
25
|
options: SelectOptions
|
|
@@ -134,10 +136,14 @@ export interface MultiSelectProps {
|
|
|
134
136
|
className?: string
|
|
135
137
|
}
|
|
136
138
|
|
|
139
|
+
/** Not given yet (a draft fills props in steps): render empty, keep the same value between renders. */
|
|
140
|
+
const NO_OPTIONS: never[] = []
|
|
141
|
+
const NO_VALUES: string[] = []
|
|
142
|
+
|
|
137
143
|
export const MultiSelect = forwardRef<HTMLDivElement, MultiSelectProps>(function MultiSelect(
|
|
138
144
|
{
|
|
139
|
-
options,
|
|
140
|
-
value,
|
|
145
|
+
options = NO_OPTIONS,
|
|
146
|
+
value = NO_VALUES,
|
|
141
147
|
onChange,
|
|
142
148
|
onSearch,
|
|
143
149
|
maxCount = 3,
|
|
@@ -179,7 +185,7 @@ export const MultiSelect = forwardRef<HTMLDivElement, MultiSelectProps>(function
|
|
|
179
185
|
aria-controls={listId}
|
|
180
186
|
disabled={disabled}
|
|
181
187
|
className={cn(
|
|
182
|
-
"inline-flex min-h-9 w-full items-center justify-between gap-2 rounded-md border bg-background px-3 py-1.5 text-sm shadow-xs transition-
|
|
188
|
+
"inline-flex min-h-9 w-full items-center justify-between gap-2 rounded-md border bg-background px-3 py-1.5 text-sm shadow-xs transition-[color,background-color,border-color,box-shadow] outline-none hover:bg-accent hover:text-accent-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
|
|
183
189
|
className,
|
|
184
190
|
)}
|
|
185
191
|
>
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
// Copied by `vantage add ui page-shell`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/components/page-shell.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* PageShell — the standard page frame: a bordered header band (title,
|
|
5
7
|
* description, meta, actions), an optional summary card row, and the content
|
|
6
8
|
* area. Composed from parts so a page can use only what it needs.
|
|
7
9
|
*/
|
|
8
|
-
import { forwardRef, type HTMLAttributes } from "react"
|
|
10
|
+
import { forwardRef, type HTMLAttributes, type ReactNode } from "react"
|
|
9
11
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
10
12
|
|
|
13
|
+
import { formatDateRange, EMPTY_VALUE } from "@squadbase/vantage/components"
|
|
11
14
|
import { cn } from "@squadbase/vantage/ui"
|
|
15
|
+
import { Badge } from "@squadbase/vantage/ui"
|
|
16
|
+
import { UpdatedAt, type UpdatedAtProps } from "@squadbase/vantage/components"
|
|
12
17
|
|
|
13
18
|
export interface PageShellProps extends HTMLAttributes<HTMLDivElement> {}
|
|
14
19
|
|
|
@@ -19,7 +24,20 @@ export const PageShell = forwardRef<HTMLDivElement, PageShellProps>(
|
|
|
19
24
|
)
|
|
20
25
|
PageShell.displayName = "PageShell"
|
|
21
26
|
|
|
22
|
-
export interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
export interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
28
|
+
/** When the data was last updated. Drawn by `UpdatedAt` at the right end of the title row. */
|
|
29
|
+
updatedAt?: UpdatedAtProps["at"]
|
|
30
|
+
/** `"relative"` (default) or `"absolute-first"` ("16:41 更新(23 分前)") for pages where "now" matters. */
|
|
31
|
+
updatedAtVariant?: UpdatedAtProps["variant"]
|
|
32
|
+
/** IANA time zone for the absolute time of `updatedAt`. Defaults to the runtime's zone. */
|
|
33
|
+
timeZone?: string
|
|
34
|
+
/** Where the data comes from. Shown as a chip "出典:○○" on the second row. */
|
|
35
|
+
source?: string
|
|
36
|
+
/** The period the data covers. Shown as a chip "2026/9/23〜10/20" on the second row. */
|
|
37
|
+
period?: { start: Date | string | number; end: Date | string | number }
|
|
38
|
+
/** The page's overall state (an alert, a status badge). Shown on the third row; no row when absent. */
|
|
39
|
+
status?: ReactNode
|
|
40
|
+
}
|
|
23
41
|
|
|
24
42
|
/**
|
|
25
43
|
* A wrapping flex row, not a two-column grid: when the heading cannot keep its
|
|
@@ -27,16 +45,52 @@ export interface PageShellHeaderProps extends HTMLAttributes<HTMLDivElement> {}
|
|
|
27
45
|
* `1fr auto` grid would instead hand the heading whatever the end block leaves,
|
|
28
46
|
* and a CJK title — breakable between any two characters — collapses into a
|
|
29
47
|
* one-character column.
|
|
48
|
+
*
|
|
49
|
+
* The meta props (`updatedAt`, `source`, `period`, `status`) fix the order every
|
|
50
|
+
* page head shares: title and update time (right end) → source / period chips →
|
|
51
|
+
* overall status → summary cards. Empty rows are not drawn. Rows are placed with
|
|
52
|
+
* flex `order`, so they land before `PageShellSummary` whatever the child order.
|
|
30
53
|
*/
|
|
31
54
|
export const PageShellHeader = forwardRef<HTMLDivElement, PageShellHeaderProps>(
|
|
32
|
-
({ className, ...props }, ref) =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
({ className, updatedAt, updatedAtVariant, timeZone, source, period, status, children, ...props }, ref) => {
|
|
56
|
+
const periodText = period ? formatDateRange(period.start, period.end, { timeZone }) : undefined
|
|
57
|
+
const hasChips = Boolean(source) || (periodText !== undefined && periodText !== EMPTY_VALUE)
|
|
58
|
+
const hasStatus = status !== undefined && status !== null && status !== false && status !== ""
|
|
59
|
+
return (
|
|
60
|
+
<div
|
|
61
|
+
ref={ref}
|
|
62
|
+
data-slot="page-shell-header"
|
|
63
|
+
className={cn("flex flex-wrap items-start gap-x-4 gap-y-6 px-6 py-12", className)}
|
|
64
|
+
{...props}
|
|
65
|
+
>
|
|
66
|
+
{children}
|
|
67
|
+
{updatedAt !== undefined && updatedAt !== null ? (
|
|
68
|
+
<div data-slot="page-shell-updated-at" className="ml-auto max-w-full shrink-0 text-right">
|
|
69
|
+
<UpdatedAt at={updatedAt} variant={updatedAtVariant} timeZone={timeZone} />
|
|
70
|
+
</div>
|
|
71
|
+
) : null}
|
|
72
|
+
{hasChips ? (
|
|
73
|
+
<div data-slot="page-shell-chips" className="order-1 flex basis-full flex-wrap gap-1.5">
|
|
74
|
+
{source ? (
|
|
75
|
+
<Badge variant="outline" className="h-auto max-w-full whitespace-normal">
|
|
76
|
+
出典:{source}
|
|
77
|
+
</Badge>
|
|
78
|
+
) : null}
|
|
79
|
+
{periodText && periodText !== EMPTY_VALUE ? (
|
|
80
|
+
<Badge variant="outline" className="tabular-nums">
|
|
81
|
+
{periodText}
|
|
82
|
+
</Badge>
|
|
83
|
+
) : null}
|
|
84
|
+
</div>
|
|
85
|
+
) : null}
|
|
86
|
+
{hasStatus ? (
|
|
87
|
+
<div data-slot="page-shell-status" className="order-2 min-w-0 basis-full">
|
|
88
|
+
{status}
|
|
89
|
+
</div>
|
|
90
|
+
) : null}
|
|
91
|
+
</div>
|
|
92
|
+
)
|
|
93
|
+
},
|
|
40
94
|
)
|
|
41
95
|
PageShellHeader.displayName = "PageShellHeader"
|
|
42
96
|
|
|
@@ -132,7 +186,7 @@ export const PageShellSummary = forwardRef<HTMLDivElement, PageShellSummaryProps
|
|
|
132
186
|
ref={ref}
|
|
133
187
|
data-slot="page-shell-summary"
|
|
134
188
|
className={cn(
|
|
135
|
-
"grid basis-full grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
189
|
+
"order-3 grid basis-full grid-cols-1 gap-3 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
|
|
136
190
|
className,
|
|
137
191
|
)}
|
|
138
192
|
{...props}
|
|
@@ -142,10 +196,23 @@ export const PageShellSummary = forwardRef<HTMLDivElement, PageShellSummaryProps
|
|
|
142
196
|
PageShellSummary.displayName = "PageShellSummary"
|
|
143
197
|
|
|
144
198
|
/**
|
|
145
|
-
* Accent
|
|
146
|
-
*
|
|
147
|
-
*
|
|
199
|
+
* Accent tints come from theme tokens, never Tailwind palette colours: the
|
|
200
|
+
* semantic tones (`--positive` / `--negative` / `--warning` / `--info` /
|
|
201
|
+
* `--neutral` and their `*-subtle`) and, for hues with no status meaning,
|
|
202
|
+
* `--chart-4` / `--chart-5`. The colour-named accents are kept for compatibility
|
|
203
|
+
* and map to the nearest tone. Each set is a literal string — Tailwind only
|
|
204
|
+
* emits classes it can see literally in the source.
|
|
148
205
|
*/
|
|
206
|
+
const summaryCardTones = {
|
|
207
|
+
positive: "border-positive/30 bg-positive-subtle [&>svg]:text-positive",
|
|
208
|
+
negative: "border-negative/30 bg-negative-subtle [&>svg]:text-negative",
|
|
209
|
+
warning: "border-warning/30 bg-warning-subtle [&>svg]:text-warning",
|
|
210
|
+
info: "border-info/30 bg-info-subtle [&>svg]:text-info",
|
|
211
|
+
neutral: "border-neutral/30 bg-neutral-subtle [&>svg]:text-neutral",
|
|
212
|
+
violet: "border-chart-4/30 bg-chart-4/5 [&>svg]:text-chart-4",
|
|
213
|
+
pink: "border-chart-5/30 bg-chart-5/5 [&>svg]:text-chart-5",
|
|
214
|
+
} as const
|
|
215
|
+
|
|
149
216
|
export const pageShellSummaryCardVariants = cva(
|
|
150
217
|
"relative flex items-start gap-3 rounded-lg border bg-background px-4 py-3 text-sm [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
151
218
|
{
|
|
@@ -154,40 +221,28 @@ export const pageShellSummaryCardVariants = cva(
|
|
|
154
221
|
default: "text-card-foreground",
|
|
155
222
|
accent:
|
|
156
223
|
"border-[var(--chart-1)]/30 bg-linear-to-r from-[var(--chart-1)]/5 to-[var(--chart-1)]/5 [&>svg]:text-[var(--chart-1)]",
|
|
157
|
-
amber:
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
rose: "border-rose-300 bg-rose-50 [&>svg]:text-rose-600 dark:border-rose-800 dark:bg-rose-950/50 dark:[&>svg]:text-rose-400",
|
|
180
|
-
yellow:
|
|
181
|
-
"border-yellow-300 bg-yellow-50 [&>svg]:text-yellow-600 dark:border-yellow-800 dark:bg-yellow-950/50 dark:[&>svg]:text-yellow-400",
|
|
182
|
-
lime: "border-lime-300 bg-lime-50 [&>svg]:text-lime-600 dark:border-lime-800 dark:bg-lime-950/50 dark:[&>svg]:text-lime-400",
|
|
183
|
-
gray: "border-gray-300 bg-gray-50 [&>svg]:text-gray-600 dark:border-gray-800 dark:bg-gray-950/50 dark:[&>svg]:text-gray-400",
|
|
184
|
-
zinc: "border-zinc-300 bg-zinc-50 [&>svg]:text-zinc-600 dark:border-zinc-800 dark:bg-zinc-950/50 dark:[&>svg]:text-zinc-400",
|
|
185
|
-
neutral:
|
|
186
|
-
"border-neutral-300 bg-neutral-50 [&>svg]:text-neutral-600 dark:border-neutral-800 dark:bg-neutral-950/50 dark:[&>svg]:text-neutral-400",
|
|
187
|
-
stone:
|
|
188
|
-
"border-stone-300 bg-stone-50 [&>svg]:text-stone-600 dark:border-stone-800 dark:bg-stone-950/50 dark:[&>svg]:text-stone-400",
|
|
189
|
-
fuchsia:
|
|
190
|
-
"border-fuchsia-300 bg-fuchsia-50 [&>svg]:text-fuchsia-600 dark:border-fuchsia-800 dark:bg-fuchsia-950/50 dark:[&>svg]:text-fuchsia-400",
|
|
224
|
+
amber: summaryCardTones.warning,
|
|
225
|
+
blue: summaryCardTones.info,
|
|
226
|
+
emerald: summaryCardTones.positive,
|
|
227
|
+
red: summaryCardTones.negative,
|
|
228
|
+
violet: summaryCardTones.violet,
|
|
229
|
+
orange: summaryCardTones.warning,
|
|
230
|
+
cyan: summaryCardTones.info,
|
|
231
|
+
slate: summaryCardTones.neutral,
|
|
232
|
+
green: summaryCardTones.positive,
|
|
233
|
+
teal: summaryCardTones.positive,
|
|
234
|
+
sky: summaryCardTones.info,
|
|
235
|
+
indigo: summaryCardTones.info,
|
|
236
|
+
purple: summaryCardTones.violet,
|
|
237
|
+
pink: summaryCardTones.pink,
|
|
238
|
+
rose: summaryCardTones.negative,
|
|
239
|
+
yellow: summaryCardTones.warning,
|
|
240
|
+
lime: summaryCardTones.positive,
|
|
241
|
+
gray: summaryCardTones.neutral,
|
|
242
|
+
zinc: summaryCardTones.neutral,
|
|
243
|
+
neutral: summaryCardTones.neutral,
|
|
244
|
+
stone: summaryCardTones.neutral,
|
|
245
|
+
fuchsia: summaryCardTones.violet,
|
|
191
246
|
},
|
|
192
247
|
},
|
|
193
248
|
defaultVariants: {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copied by `vantage add ui pagination`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/ui/pagination.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
import * as React from "react"
|
|
4
6
|
import { cn } from "@squadbase/vantage/ui"
|
|
5
7
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copied by `vantage add ui placeholder`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/components/placeholder.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* Placeholder — marks sample (not-yet-real) data on a template screen.
|
|
5
7
|
*
|
|
@@ -7,6 +9,10 @@
|
|
|
7
9
|
* (unlike `Skeleton`, which is a block `<div>`). The `animate-pulse` + muted
|
|
8
10
|
* styling signals "this is placeholder data — swap in your real values".
|
|
9
11
|
* Override size/weight through `className` (e.g. `text-2xl font-bold`).
|
|
12
|
+
*
|
|
13
|
+
* For one value in running text or a heading. When the values of whole parts or cards are a
|
|
14
|
+
* sample (a draft before its data is wired), wrap them in `SampleData` instead; do not use both
|
|
15
|
+
* on the same value.
|
|
10
16
|
*/
|
|
11
17
|
import { forwardRef, type HTMLAttributes } from "react"
|
|
12
18
|
|
|
@@ -22,7 +28,7 @@ export const Placeholder = forwardRef<HTMLSpanElement, PlaceholderProps>(functio
|
|
|
22
28
|
<span
|
|
23
29
|
ref={ref}
|
|
24
30
|
data-slot="placeholder"
|
|
25
|
-
className={cn("inline-block animate-pulse text-muted-foreground", className)}
|
|
31
|
+
className={cn("inline-block animate-pulse motion-reduce:animate-none text-muted-foreground", className)}
|
|
26
32
|
{...props}
|
|
27
33
|
/>
|
|
28
34
|
)
|
package/registry/ui/popover.tsx
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// Copied by `vantage add ui popover`. This file is yours to edit.
|
|
2
|
-
// Generated from @squadbase/
|
|
2
|
+
// Generated from @squadbase/squadkit registry/ui/popover.tsx by `npm run registry` (in Vantage, edit packages/squadkit, not registry/).
|
|
3
|
+
"use client"
|
|
4
|
+
|
|
3
5
|
import * as React from "react"
|
|
4
6
|
import { Popover as PopoverPrimitive } from "@base-ui/react/popover"
|
|
5
7
|
|
|
@@ -37,7 +39,7 @@ function PopoverContent({
|
|
|
37
39
|
<PopoverPrimitive.Popup
|
|
38
40
|
data-slot="popover-content"
|
|
39
41
|
className={cn(
|
|
40
|
-
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
42
|
+
"z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in motion-reduce:animate-none! data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
|
|
41
43
|
className
|
|
42
44
|
)}
|
|
43
45
|
{...props}
|