"use client"
import * as React from "react"
import {
AttachmentCountCell,
BooleanToggleCell,
CurrencyCell,
EmptyCell,
ExternalLinkCell,
FavoriteNameCell,
NumericCell,
PeopleAvatarRailCell,
PillCell,
ProgressCell,
RatingCell,
RelativeTimeCell,
RowActionsCell,
SignalBarsCell,
StatusCell,
TableNewRowDot,
TagListCell,
type StatusCellOption,
} from "@exxatdesignux/ui/components/data-views"
import { Label } from "@/components/ui/label"
import { Slider } from "@/components/ui/slider"
export function ProgressCellPreview() {
const [progress, setProgress] = React.useState(42)
return (
setProgress(v[0] ?? 0)}
max={100}
step={1}
/>
)
}
export function CurrencyCellPreview() {
return
}
export function NumericCellPreview() {
return
}
export function RatingCellPreview() {
return
}
export function SignalBarsCellPreview() {
return
}
/**
* The dot is never a column of its own. It rides in `FavoriteNameCell`'s
* `leading` slot, which is how every real caller uses it, so the preview shows
* a new row against a seen row rather than a lone dot with no context. The seen
* row passes `leading={null}` to prove the gutter stays reserved and the two
* titles align.
*/
export function TableNewRowDotPreview() {
const [favorites, setFavorites] = React.useState>({
new: false,
seen: true,
})
const toggle = (key: string) =>
setFavorites((current) => ({ ...current, [key]: !current[key] }))
return (