@memoreco/ui 0.2.4 → 0.2.6
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/index.js +48 -21
- package/dist/index.mjs +2256 -2113
- package/dist/ui/src/components/thumbnail-card.d.ts +25 -0
- package/dist/ui/src/components/thumbnail-preview.d.ts +21 -0
- package/dist/ui/src/components/thumbnail-strip.d.ts +30 -0
- package/dist/ui/src/index.d.ts +7 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface ThumbnailCardProps {
|
|
2
|
+
url: string;
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
status: "loading" | "ready" | "error";
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
size?: "sm" | "md" | "lg";
|
|
8
|
+
showHostname?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* ThumbnailCard - Displays a thumbnail preview card with loading/error states
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <ThumbnailCard
|
|
16
|
+
* url="https://example.com"
|
|
17
|
+
* imageUrl="https://cdn.example.com/screenshot.png"
|
|
18
|
+
* status="ready"
|
|
19
|
+
* onClick={() => console.log('clicked')}
|
|
20
|
+
* size="md"
|
|
21
|
+
* showHostname={true}
|
|
22
|
+
* />
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
export declare function ThumbnailCard({ url, imageUrl, status, onClick, className, size, showHostname, }: ThumbnailCardProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ThumbnailPreviewOverlayProps {
|
|
2
|
+
url: string;
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
status: "loading" | "ready" | "error";
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* ThumbnailPreviewOverlay - Full-screen overlay for previewing thumbnails
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* <ThumbnailPreviewOverlay
|
|
14
|
+
* url="https://example.com"
|
|
15
|
+
* imageUrl="https://cdn.example.com/screenshot.png"
|
|
16
|
+
* status="ready"
|
|
17
|
+
* onClose={() => setPreview(null)}
|
|
18
|
+
* />
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function ThumbnailPreviewOverlay({ url, imageUrl, status, onClose, className, }: ThumbnailPreviewOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ThumbnailData {
|
|
2
|
+
url: string;
|
|
3
|
+
imageUrl?: string;
|
|
4
|
+
status: "loading" | "ready" | "error";
|
|
5
|
+
}
|
|
6
|
+
export interface ThumbnailStripProps {
|
|
7
|
+
thumbnails: ThumbnailData[];
|
|
8
|
+
onThumbnailClick?: (thumbnail: ThumbnailData) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
showHostname?: boolean;
|
|
12
|
+
maxDisplay?: number;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* ThumbnailStrip - Displays a horizontal strip of thumbnail cards
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <ThumbnailStrip
|
|
20
|
+
* thumbnails={[
|
|
21
|
+
* { url: "https://example.com", imageUrl: "...", status: "ready" },
|
|
22
|
+
* { url: "https://figma.com", status: "loading" },
|
|
23
|
+
* ]}
|
|
24
|
+
* onThumbnailClick={(thumb) => setPreview(thumb)}
|
|
25
|
+
* size="md"
|
|
26
|
+
* maxDisplay={5}
|
|
27
|
+
* />
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export declare function ThumbnailStrip({ thumbnails, onThumbnailClick, className, size, showHostname, maxDisplay, }: ThumbnailStripProps): import("react/jsx-runtime").JSX.Element | null;
|
package/dist/ui/src/index.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectL
|
|
|
16
16
|
export { Checkbox } from './components/checkbox';
|
|
17
17
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './components/alert-dialog';
|
|
18
18
|
export { CodeSample } from './components/code-sample';
|
|
19
|
+
export { ThumbnailCard } from './components/thumbnail-card';
|
|
20
|
+
export { ThumbnailPreviewOverlay } from './components/thumbnail-preview';
|
|
21
|
+
export { ThumbnailStrip } from './components/thumbnail-strip';
|
|
19
22
|
export type { ButtonProps } from './components/button';
|
|
20
23
|
export type { CardProps } from './components/card';
|
|
21
24
|
export type { InputProps } from './components/input';
|
|
@@ -25,5 +28,8 @@ export type { BadgeProps } from './components/badge';
|
|
|
25
28
|
export type { SeparatorProps } from './components/separator';
|
|
26
29
|
export type { DiscLoaderProps } from './components/disc-loader';
|
|
27
30
|
export type { CodeSampleProps } from './components/code-sample';
|
|
31
|
+
export type { ThumbnailCardProps } from './components/thumbnail-card';
|
|
32
|
+
export type { ThumbnailPreviewOverlayProps } from './components/thumbnail-preview';
|
|
33
|
+
export type { ThumbnailStripProps, ThumbnailData as UIThumbnailData } from './components/thumbnail-strip';
|
|
28
34
|
export { cn } from './lib/utils';
|
|
29
|
-
export declare const UI_LIBRARY_VERSION = "0.2.
|
|
35
|
+
export declare const UI_LIBRARY_VERSION = "0.2.6";
|