mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 01:15:26 +10:00
6e7fc68068
- Add `import type * as React from "react"` to the 26 previews that reference `React.CSSProperties` under the automatic JSX runtime (React isn't a global type namespace there, so the annotation was unresolved standalone). - Accordion preview: use `multiple` instead of `openMultiple` — @base-ui/react 1.6 renamed the prop, so the multi-open cell wasn't actually multi-open. Skipped CodeRabbit's BrandIcon dark-mode note: the preview renders in the default light card (the dark <img> is hidden there); per-theme sources would need component support it doesn't expose. Claude-Session: https://claude.ai/code/session_01R8Aq8F1nTuvJwfut7g3DVE
41 lines
1.1 KiB
TypeScript
41 lines
1.1 KiB
TypeScript
import type * as React from "react";
|
|
import { CheckCircleIcon, PencilSimpleIcon, SparkleIcon } from "@phosphor-icons/react";
|
|
import { Badge } from "@reactive-resume/ui/components/badge";
|
|
|
|
const row: React.CSSProperties = { display: "flex", flexWrap: "wrap", alignItems: "center", gap: 10, padding: 20 };
|
|
|
|
export const Variants = () => (
|
|
<div style={row}>
|
|
<Badge>Default</Badge>
|
|
<Badge variant="secondary">Secondary</Badge>
|
|
<Badge variant="destructive">Destructive</Badge>
|
|
<Badge variant="outline">Outline</Badge>
|
|
</div>
|
|
);
|
|
|
|
export const StatusLabels = () => (
|
|
<div style={row}>
|
|
<Badge variant="secondary">
|
|
<CheckCircleIcon weight="fill" data-icon="inline-start" />
|
|
Published
|
|
</Badge>
|
|
<Badge variant="outline">
|
|
<PencilSimpleIcon data-icon="inline-start" />
|
|
Draft
|
|
</Badge>
|
|
<Badge>
|
|
<SparkleIcon weight="fill" data-icon="inline-start" />
|
|
Pro
|
|
</Badge>
|
|
<Badge variant="destructive">Expired</Badge>
|
|
</div>
|
|
);
|
|
|
|
export const Counts = () => (
|
|
<div style={row}>
|
|
<Badge>12</Badge>
|
|
<Badge variant="secondary">New</Badge>
|
|
<Badge variant="outline">v5.2</Badge>
|
|
</div>
|
|
);
|