@memoreco/ui 0.2.9 → 0.2.11

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.
@@ -0,0 +1,25 @@
1
+ export interface LinkCopyButtonProps {
2
+ /**
3
+ * The URL to copy to the clipboard
4
+ */
5
+ url: string;
6
+ /**
7
+ * Accessible label for the button
8
+ * @default "Copy link"
9
+ */
10
+ ariaLabel?: string;
11
+ /**
12
+ * Whether to show toast notifications
13
+ * @default true
14
+ */
15
+ showToast?: boolean;
16
+ /**
17
+ * Optional className applied to the button
18
+ */
19
+ className?: string;
20
+ }
21
+ /**
22
+ * LinkCopyButton: Copy-to-clipboard button using the same pressed/checkmark animation pattern
23
+ * as `CodeSample`, but with a link icon.
24
+ */
25
+ export declare function LinkCopyButton({ url, ariaLabel, showToast, className }: LinkCopyButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,5 @@ import { Toaster as Sonner, toast } from 'sonner';
2
2
 
3
3
  import * as React from "react";
4
4
  type ToasterProps = React.ComponentProps<typeof Sonner>;
5
- declare const Toaster: ({ ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
5
+ declare const Toaster: ({ closeButton, ...props }: ToasterProps) => import("react/jsx-runtime").JSX.Element;
6
6
  export { Toaster, toast };
@@ -17,6 +17,7 @@ export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectL
17
17
  export { Checkbox } from './components/checkbox';
18
18
  export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './components/alert-dialog';
19
19
  export { CodeSample } from './components/code-sample';
20
+ export { LinkCopyButton } from './components/link-copy-button';
20
21
  export { ThumbnailCard } from './components/thumbnail-card';
21
22
  export { ThumbnailPreviewOverlay } from './components/thumbnail-preview';
22
23
  export { ThumbnailStrip } from './components/thumbnail-strip';
@@ -30,8 +31,9 @@ export type { BadgeProps } from './components/badge';
30
31
  export type { SeparatorProps } from './components/separator';
31
32
  export type { DiscLoaderProps } from './components/disc-loader';
32
33
  export type { CodeSampleProps } from './components/code-sample';
34
+ export type { LinkCopyButtonProps } from './components/link-copy-button';
33
35
  export type { ThumbnailCardProps } from './components/thumbnail-card';
34
36
  export type { ThumbnailPreviewOverlayProps } from './components/thumbnail-preview';
35
37
  export type { ThumbnailStripProps, ThumbnailData as UIThumbnailData } from './components/thumbnail-strip';
36
38
  export { cn } from './lib/utils';
37
- export declare const UI_LIBRARY_VERSION = "0.2.9";
39
+ export declare const UI_LIBRARY_VERSION = "0.2.11";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memoreco/ui",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Memoreco shared UI components with Shadcn",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -46,8 +46,8 @@
46
46
  "vite": "^5.0.12",
47
47
  "vite-plugin-dts": "^3.7.2",
48
48
  "vitest": "^1.2.2",
49
- "@memoreco/utils": "0.2.0",
50
- "@memoreco/types": "0.2.0"
49
+ "@memoreco/types": "0.2.0",
50
+ "@memoreco/utils": "0.2.0"
51
51
  },
52
52
  "peerDependencies": {
53
53
  "react": ">=18.0.0",