mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-24 17:03:55 +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
36 lines
906 B
TypeScript
36 lines
906 B
TypeScript
import type * as React from "react";
|
|
import { Spinner } from "@reactive-resume/ui/components/spinner";
|
|
|
|
const row: React.CSSProperties = { display: "flex", alignItems: "center", gap: 20, padding: 24 };
|
|
|
|
export const Sizes = () => (
|
|
<div style={row}>
|
|
<Spinner style={{ width: 16, height: 16 }} />
|
|
<Spinner style={{ width: 24, height: 24 }} />
|
|
<Spinner style={{ width: 32, height: 32 }} />
|
|
</div>
|
|
);
|
|
|
|
export const Colors = () => (
|
|
<div style={row}>
|
|
<Spinner style={{ width: 28, height: 28, color: "var(--primary)" }} />
|
|
<Spinner style={{ width: 28, height: 28, color: "var(--muted-foreground)" }} />
|
|
</div>
|
|
);
|
|
|
|
export const LoadingRow = () => (
|
|
<div
|
|
style={{
|
|
display: "flex",
|
|
alignItems: "center",
|
|
gap: 10,
|
|
padding: 20,
|
|
fontSize: 13,
|
|
color: "var(--muted-foreground)",
|
|
}}
|
|
>
|
|
<Spinner style={{ width: 18, height: 18 }} />
|
|
<span>Generating your PDF…</span>
|
|
</div>
|
|
);
|