Fast, accurate OCR with correctness assessment.
import type React from 'react';
/**
* Demo icon set for the component library (used when search or the component overview shows each @map/ui component).
*
* Purpose: split the larger `Comp*` icons out of nav-icons so a single file stays under the 400-line limit.
* These icons are unrelated to sidebar navigation and are only for component lookup, so they live in their own table.
*/
export const compIconMap: Record<string, (props: { className?: string }) => React.ReactNode> = {
CompButton: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="8" width="18" height="8" rx="3" />
</svg>
),
CompBadge: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<circle cx="12" cy="12" r="4" />
</svg>
),
CompCard: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M3 9h18" />
</svg>
),
CompInput: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="6" width="18" height="12" rx="2" />
<path d="M7 12h0" />
</svg>
),
CompSelect: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="6" width="18" height="12" rx="2" />
<polyline points="15 10 18 13 15 16" />
</svg>
),
CompLabel: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M4 7h16M4 12h10" />
</svg>
),
CompSkeleton: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="5" width="18" height="4" rx="1" />
<rect x="3" y="13" width="12" height="4" rx="1" />
</svg>
),
CompEmpty: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="4" y="4" width="16" height="16" rx="2" />
<path d="M9 12h6" />
</svg>
),
CompTooltip: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z" />
</svg>
),
CompTable: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M3 9h18M3 15h18M9 3v18" />
</svg>
),
CompDialog: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M3 9h18" />
</svg>
),
CompToast: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />
<path d="M10.3 21a1.94 1.94 0 0 0 3.4 0" />
</svg>
),
CompPagination: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="2" y="9" width="4" height="6" rx="1" />
<rect x="10" y="9" width="4" height="6" rx="1" />
<rect x="18" y="9" width="4" height="6" rx="1" />
</svg>
),
CompForm: ({ className }) => (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<rect x="3" y="3" width="18" height="18" rx="2" />
<path d="M7 8h10M7 12h7M7 16h4" />
</svg>
),
};