@metaphor-cloud/ui 0.1.0
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/LICENSE +21 -0
- package/README.md +420 -0
- package/dist/components/Accordion.d.ts +14 -0
- package/dist/components/Accordion.d.ts.map +1 -0
- package/dist/components/Alert.d.ts +14 -0
- package/dist/components/Alert.d.ts.map +1 -0
- package/dist/components/AlertDialog.d.ts +27 -0
- package/dist/components/AlertDialog.d.ts.map +1 -0
- package/dist/components/AnimatedCounter.d.ts +13 -0
- package/dist/components/AnimatedCounter.d.ts.map +1 -0
- package/dist/components/Badge.d.ts +9 -0
- package/dist/components/Badge.d.ts.map +1 -0
- package/dist/components/Breadcrumb.d.ts +31 -0
- package/dist/components/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Card.d.ts +21 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Checkbox.d.ts +7 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/CodeBlock.d.ts +8 -0
- package/dist/components/CodeBlock.d.ts.map +1 -0
- package/dist/components/Combobox.d.ts +40 -0
- package/dist/components/Combobox.d.ts.map +1 -0
- package/dist/components/Dialog.d.ts +23 -0
- package/dist/components/Dialog.d.ts.map +1 -0
- package/dist/components/DropdownMenu.d.ts +36 -0
- package/dist/components/DropdownMenu.d.ts.map +1 -0
- package/dist/components/EmptyState.d.ts +11 -0
- package/dist/components/EmptyState.d.ts.map +1 -0
- package/dist/components/Input.d.ts +7 -0
- package/dist/components/Input.d.ts.map +1 -0
- package/dist/components/Label.d.ts +7 -0
- package/dist/components/Label.d.ts.map +1 -0
- package/dist/components/MetaHead.d.ts +43 -0
- package/dist/components/MetaHead.d.ts.map +1 -0
- package/dist/components/Nav.d.ts +59 -0
- package/dist/components/Nav.d.ts.map +1 -0
- package/dist/components/PageHeader.d.ts +10 -0
- package/dist/components/PageHeader.d.ts.map +1 -0
- package/dist/components/Pagination.d.ts +12 -0
- package/dist/components/Pagination.d.ts.map +1 -0
- package/dist/components/Popover.d.ts +9 -0
- package/dist/components/Popover.d.ts.map +1 -0
- package/dist/components/Progress.d.ts +7 -0
- package/dist/components/Progress.d.ts.map +1 -0
- package/dist/components/RadioGroup.d.ts +10 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/Select.d.ts +22 -0
- package/dist/components/Select.d.ts.map +1 -0
- package/dist/components/Separator.d.ts +7 -0
- package/dist/components/Separator.d.ts.map +1 -0
- package/dist/components/Sheet.d.ts +25 -0
- package/dist/components/Sheet.d.ts.map +1 -0
- package/dist/components/Sidebar.d.ts +36 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/Skeleton.d.ts +6 -0
- package/dist/components/Skeleton.d.ts.map +1 -0
- package/dist/components/StatCard.d.ts +40 -0
- package/dist/components/StatCard.d.ts.map +1 -0
- package/dist/components/StructuredData.d.ts +91 -0
- package/dist/components/StructuredData.d.ts.map +1 -0
- package/dist/components/Switch.d.ts +7 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Table.d.ts +27 -0
- package/dist/components/Table.d.ts.map +1 -0
- package/dist/components/Tabs.d.ts +14 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/Textarea.d.ts +7 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/ThemeProvider.d.ts +17 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/components/Toast.d.ts +27 -0
- package/dist/components/Toast.d.ts.map +1 -0
- package/dist/components/Toaster.d.ts +2 -0
- package/dist/components/Toaster.d.ts.map +1 -0
- package/dist/components/Toggle.d.ts +9 -0
- package/dist/components/Toggle.d.ts.map +1 -0
- package/dist/components/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip.d.ts.map +1 -0
- package/dist/hooks/use-alternate-links.d.ts +14 -0
- package/dist/hooks/use-alternate-links.d.ts.map +1 -0
- package/dist/hooks/use-canonical.d.ts +6 -0
- package/dist/hooks/use-canonical.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-scroll-nav.d.ts +2 -0
- package/dist/hooks/use-scroll-nav.d.ts.map +1 -0
- package/dist/hooks/use-theme.d.ts +9 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/hooks/use-toast.d.ts +26 -0
- package/dist/hooks/use-toast.d.ts.map +1 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/og-image.d.ts +57 -0
- package/dist/lib/og-image.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/metaphor-ui.css +3 -0
- package/dist/metaphor-ui.js +10355 -0
- package/dist/themes/adapter-all.css +149 -0
- package/dist/themes/adapter.css +142 -0
- package/dist/themes/metaphor-all.css +116 -0
- package/dist/themes/metaphor.css +109 -0
- package/dist/themes/um-all.css +155 -0
- package/dist/themes/um.css +148 -0
- package/package.json +90 -0
- package/tailwind.preset.cjs +136 -0
- package/tailwind.preset.js +162 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/** Common schema.org types — extendable via the generic */
|
|
2
|
+
export interface OrganizationSchema {
|
|
3
|
+
"@type": "Organization";
|
|
4
|
+
name: string;
|
|
5
|
+
url?: string;
|
|
6
|
+
logo?: string;
|
|
7
|
+
sameAs?: string[];
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface ArticleSchema {
|
|
11
|
+
"@type": "Article" | "NewsArticle" | "BlogPosting";
|
|
12
|
+
headline: string;
|
|
13
|
+
author?: {
|
|
14
|
+
"@type": "Person" | "Organization";
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
datePublished?: string;
|
|
18
|
+
dateModified?: string;
|
|
19
|
+
image?: string | string[];
|
|
20
|
+
publisher?: {
|
|
21
|
+
"@type": "Organization";
|
|
22
|
+
name: string;
|
|
23
|
+
logo?: {
|
|
24
|
+
"@type": "ImageObject";
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export interface ProductSchema {
|
|
31
|
+
"@type": "Product";
|
|
32
|
+
name: string;
|
|
33
|
+
description?: string;
|
|
34
|
+
image?: string | string[];
|
|
35
|
+
brand?: {
|
|
36
|
+
"@type": "Brand";
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
offers?: {
|
|
40
|
+
"@type": "Offer";
|
|
41
|
+
price: string | number;
|
|
42
|
+
priceCurrency: string;
|
|
43
|
+
availability?: string;
|
|
44
|
+
url?: string;
|
|
45
|
+
};
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export interface BreadcrumbListSchema {
|
|
49
|
+
"@type": "BreadcrumbList";
|
|
50
|
+
itemListElement: {
|
|
51
|
+
"@type": "ListItem";
|
|
52
|
+
position: number;
|
|
53
|
+
name: string;
|
|
54
|
+
item?: string;
|
|
55
|
+
}[];
|
|
56
|
+
}
|
|
57
|
+
export interface FAQPageSchema {
|
|
58
|
+
"@type": "FAQPage";
|
|
59
|
+
mainEntity: {
|
|
60
|
+
"@type": "Question";
|
|
61
|
+
name: string;
|
|
62
|
+
acceptedAnswer: {
|
|
63
|
+
"@type": "Answer";
|
|
64
|
+
text: string;
|
|
65
|
+
};
|
|
66
|
+
}[];
|
|
67
|
+
}
|
|
68
|
+
export interface WebSiteSchema {
|
|
69
|
+
"@type": "WebSite";
|
|
70
|
+
name: string;
|
|
71
|
+
url: string;
|
|
72
|
+
potentialAction?: {
|
|
73
|
+
"@type": "SearchAction";
|
|
74
|
+
target: string;
|
|
75
|
+
"query-input": string;
|
|
76
|
+
};
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
}
|
|
79
|
+
export declare type SchemaData = OrganizationSchema | ArticleSchema | ProductSchema | BreadcrumbListSchema | FAQPageSchema | WebSiteSchema | Record<string, unknown>;
|
|
80
|
+
export interface StructuredDataProps {
|
|
81
|
+
/** The JSON-LD data. Must include an "@type" field. */
|
|
82
|
+
data: SchemaData;
|
|
83
|
+
/** Override the @context — defaults to "https://schema.org" */
|
|
84
|
+
context?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Injects a `<script type="application/ld+json">` tag into the document head.
|
|
88
|
+
* Automatically updates when data changes and cleans up on unmount.
|
|
89
|
+
*/
|
|
90
|
+
export declare function StructuredData({ data, context, }: StructuredDataProps): null;
|
|
91
|
+
//# sourceMappingURL=StructuredData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StructuredData.d.ts","sourceRoot":"","sources":["StructuredData.tsx"],"names":[],"mappings":"AAMA,2DAA2D;AAC3D,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,SAAS,GAAG,aAAa,GAAG,aAAa,CAAC;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE;QAAE,OAAO,EAAE,QAAQ,GAAG,cAAc,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE;QAAE,OAAO,EAAE,cAAc,CAAC;QAAC,IAA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CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,CAAC,EAAE;QAChB,OAAO,EAAE,cAAc,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;QACf,aAAa,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,oBAAY,UAAU,GAClB,kBAAkB,GAClB,aAAa,GACb,aAAa,GACb,oBAAoB,GACpB,aAAa,GACb,aAAa,GACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE5B,MAAM,WAAW,mBAAmB;IAClC,uDAAuD;IACvD,IAAI,EAAE,UAAU,CAAC;IACjB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAQD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,OAA8B,GAC/B,EAAE,mBAAmB,QA0BrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SwitchPrimitive from "@radix-ui/react-switch";
|
|
3
|
+
declare function Switch({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root> & {
|
|
4
|
+
ref?: React.Ref<React.ElementRef<typeof SwitchPrimitive.Root>>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Switch };
|
|
7
|
+
//# sourceMappingURL=Switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["Switch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAG1D,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;CAChE,2CAuBA;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Table({ className, ref, ...props }: React.HTMLAttributes<HTMLTableElement> & {
|
|
3
|
+
ref?: React.Ref<HTMLTableElement>;
|
|
4
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TableHeader({ className, ref, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
|
|
6
|
+
ref?: React.Ref<HTMLTableSectionElement>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TableBody({ className, ref, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
|
|
9
|
+
ref?: React.Ref<HTMLTableSectionElement>;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function TableFooter({ className, ref, ...props }: React.HTMLAttributes<HTMLTableSectionElement> & {
|
|
12
|
+
ref?: React.Ref<HTMLTableSectionElement>;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function TableRow({ className, ref, ...props }: React.HTMLAttributes<HTMLTableRowElement> & {
|
|
15
|
+
ref?: React.Ref<HTMLTableRowElement>;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function TableHead({ className, ref, ...props }: React.ThHTMLAttributes<HTMLTableCellElement> & {
|
|
18
|
+
ref?: React.Ref<HTMLTableCellElement>;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function TableCell({ className, ref, ...props }: React.TdHTMLAttributes<HTMLTableCellElement> & {
|
|
21
|
+
ref?: React.Ref<HTMLTableCellElement>;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function TableCaption({ className, ref, ...props }: React.HTMLAttributes<HTMLTableCaptionElement> & {
|
|
24
|
+
ref?: React.Ref<HTMLTableCaptionElement>;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
27
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAC1C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACnC,2CAUA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;CAC1C,2CAIA;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;CAC1C,2CAQA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;CAC1C,2CAWA;AAED,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,GAAG;IAC7C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CACtC,2CAWA;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,GAAG;IAChD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;CACvC,2CAWA;AAED,iBAAS,SAAS,CAAC,EACjB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,gBAAgB,CAAC,oBAAoB,CAAC,GAAG;IAChD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;CACvC,2CAWA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,uBAAuB,CAAC,GAAG;IACjD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;CAC1C,2CAQA;AAED,OAAO,EACL,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACb,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
declare const Tabs: any;
|
|
4
|
+
declare function TabsList({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof TabsPrimitive.List> & {
|
|
5
|
+
ref?: React.Ref<React.ElementRef<typeof TabsPrimitive.List>>;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TabsTrigger({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger> & {
|
|
8
|
+
ref?: React.Ref<React.ElementRef<typeof TabsPrimitive.Trigger>>;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TabsContent({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content> & {
|
|
11
|
+
ref?: React.Ref<React.ElementRef<typeof TabsPrimitive.Content>>;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
14
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["Tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AAGtD,QAAA,MAAM,IAAI,KAAqB,CAAC;AAEhC,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,GAAG;IAC7D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;CAC9D,2CAWA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;CACjE,2CAcA;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG;IAChE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC;CACjE,2CAWA;AAED,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
3
|
+
ref?: React.Ref<HTMLTextAreaElement>;
|
|
4
|
+
}
|
|
5
|
+
declare function Textarea({ className, ref, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Textarea };
|
|
7
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aACf,SAAQ,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC;IACzD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;CACtC;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,2CAe5D;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type Theme, type ResolvedTheme } from "../hooks/use-theme";
|
|
3
|
+
interface ThemeContextValue {
|
|
4
|
+
theme: Theme;
|
|
5
|
+
resolved: ResolvedTheme;
|
|
6
|
+
setTheme: (theme: Theme) => void;
|
|
7
|
+
cycleTheme: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ThemeProviderProps {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/** Override the theme default. If omitted, reads from the loaded theme CSS (--theme-default). */
|
|
12
|
+
defaultTheme?: Theme;
|
|
13
|
+
}
|
|
14
|
+
export declare function ThemeProvider({ children, defaultTheme, }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function useThemeContext(): ThemeContextValue;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,aAAa,EAAY,MAAM,oBAAoB,CAAC;AAE9E,UAAU,iBAAiB;IACzB,KAAK,EAAE,KAAK,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAMD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,iGAAiG;IACjG,YAAY,CAAC,EAAE,KAAK,CAAC;CACtB;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,YAAY,GACb,EAAE,kBAAkB,2CAMpB;AAED,wBAAgB,eAAe,sBAM9B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as ToastPrimitive from "@radix-ui/react-toast";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const ToastProvider: any;
|
|
5
|
+
declare function ToastViewport({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Viewport> & {
|
|
6
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Viewport>>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const toastVariants: any;
|
|
9
|
+
declare function Toast({ className, variant, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Root> & VariantProps<typeof toastVariants> & {
|
|
10
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Root>>;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function ToastAction({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Action> & {
|
|
13
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Action>>;
|
|
14
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function ToastClose({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Close> & {
|
|
16
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Close>>;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function ToastTitle({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Title> & {
|
|
19
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Title>>;
|
|
20
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function ToastDescription({ className, ref, ...props }: React.ComponentPropsWithoutRef<typeof ToastPrimitive.Description> & {
|
|
22
|
+
ref?: React.Ref<React.ElementRef<typeof ToastPrimitive.Description>>;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare type ToastProps = React.ComponentPropsWithoutRef<typeof Toast>;
|
|
25
|
+
declare type ToastActionElement = React.ReactElement<typeof ToastAction>;
|
|
26
|
+
export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, };
|
|
27
|
+
//# sourceMappingURL=Toast.d.ts.map
|
|
@@ -0,0 +1 @@
|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AwB,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;CAChE,2CA2BA;AAED,iBAAS,UAAU,CAAC,EAClB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,GAAG;IAC/D,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;CAChE,2CAQA;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,GAAG;IACrE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;CACtE,2CAQA;AAED,aAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAC/D,aAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACL,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["Toaster.tsx"],"names":[],"mappings":"AAUA,wBAAgB,OAAO,4CAkBtB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const toggleVariants: any;
|
|
5
|
+
declare function Toggle({ className, variant, size, ref, ...props }: React.ComponentPropsWithoutRef<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants> & {
|
|
6
|
+
ref?: React.Ref<React.ElementRef<typeof TogglePrimitive.Root>>;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Toggle, toggleVariants };
|
|
9
|
+
//# sourceMappingURL=Toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toggle.d.ts","sourceRoot":"","sources":["Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,QAAA,MAAM,cAAc,KA2BnB,CAAC;AAEF,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,OAAO,EACP,IAAI,EACJ,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAC5D,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;CAChE,2CAQF;AAED,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3
|
+
declare const TooltipProvider: any;
|
|
4
|
+
declare const Tooltip: any;
|
|
5
|
+
declare const TooltipTrigger: any;
|
|
6
|
+
declare function TooltipContent({ className, sideOffset, ref, ...props }: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> & {
|
|
7
|
+
ref?: React.Ref<React.ElementRef<typeof TooltipPrimitive.Content>>;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
10
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,QAAA,MAAM,eAAe,KAA4B,CAAC;AAClD,QAAA,MAAM,OAAO,KAAwB,CAAC;AACtC,QAAA,MAAM,cAAc,KAA2B,CAAC;AAEhD,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,UAAc,EACd,GAAG,EACH,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,wBAAwB,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACnE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC;CACpE,2CAaA;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AlternateLink {
|
|
2
|
+
/** Language code — e.g. "en", "fr", "x-default" */
|
|
3
|
+
hreflang: string;
|
|
4
|
+
/** Absolute URL for this language variant */
|
|
5
|
+
href: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Manages `<link rel="alternate" hreflang="…">` tags in the document head.
|
|
9
|
+
* Useful for multi-language sites to tell search engines about localized versions.
|
|
10
|
+
*
|
|
11
|
+
* Updates when the links array changes and removes all tags on unmount.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useAlternateLinks(links: AlternateLink[] | undefined): void;
|
|
14
|
+
//# sourceMappingURL=use-alternate-links.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-alternate-links.d.ts","sourceRoot":"","sources":["use-alternate-links.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,SAAS,QAyBnE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-canonical.d.ts","sourceRoot":"","sources":["use-canonical.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,QAuCnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["use-mobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,UAAU,SAAoB,WAevD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-scroll-nav.d.ts","sourceRoot":"","sources":["use-scroll-nav.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,SAAS,SAAK,WAgB1C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare type Theme = "dark" | "light" | "system";
|
|
2
|
+
export declare type ResolvedTheme = "dark" | "light";
|
|
3
|
+
export declare function useTheme(defaultTheme?: Theme): {
|
|
4
|
+
readonly theme: Theme;
|
|
5
|
+
readonly resolved: ResolvedTheme;
|
|
6
|
+
readonly setTheme: (next: Theme) => void;
|
|
7
|
+
readonly cycleTheme: () => void;
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=use-theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-theme.d.ts","sourceRoot":"","sources":["use-theme.ts"],"names":[],"mappings":"AAEA,oBAAY,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAChD,oBAAY,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC;AA2C7C,wBAAgB,QAAQ,CAAC,YAAY,CAAC,EAAE,KAAK;;;8BAaP,KAAK;;EAuC1C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { ToastActionElement } from "../components/Toast";
|
|
3
|
+
declare type ToastVariant = "default" | "success" | "danger" | "warning";
|
|
4
|
+
declare type ToasterToast = {
|
|
5
|
+
id: string;
|
|
6
|
+
title?: React.ReactNode;
|
|
7
|
+
description?: React.ReactNode;
|
|
8
|
+
action?: ToastActionElement;
|
|
9
|
+
variant?: ToastVariant;
|
|
10
|
+
duration?: number;
|
|
11
|
+
};
|
|
12
|
+
declare function toast(props: Omit<ToasterToast, "id">): {
|
|
13
|
+
id: string;
|
|
14
|
+
dismiss: () => void;
|
|
15
|
+
update: (updates: Partial<ToasterToast>) => void;
|
|
16
|
+
};
|
|
17
|
+
declare function dismissAll(): void;
|
|
18
|
+
declare function useToast(): {
|
|
19
|
+
toast: typeof toast;
|
|
20
|
+
dismiss: (toastId: string) => void;
|
|
21
|
+
dismissAll: typeof dismissAll;
|
|
22
|
+
toasts: ToasterToast[];
|
|
23
|
+
};
|
|
24
|
+
export { useToast, toast, dismissAll };
|
|
25
|
+
export type { ToasterToast, ToastVariant };
|
|
26
|
+
//# sourceMappingURL=use-toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-toast.d.ts","sourceRoot":"","sources":["use-toast.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAK9D,aAAK,YAAY,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjE,aAAK,YAAY,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAwDF,iBAAS,KAAK,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC;;;sBAqBxB,QAAQ,YAAY,CAAC;EAG1C;AAED,iBAAS,UAAU,SAIlB;AAED,iBAAS,QAAQ;;uBAcM,MAAM;;;EAI5B;AAED,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AACvC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export { cn } from "./lib/utils";
|
|
2
|
+
export { createOgImageUrl } from "./lib/og-image";
|
|
3
|
+
export type { OgImageParams, OgImageConfig } from "./lib/og-image";
|
|
4
|
+
export { useTheme } from "./hooks/use-theme";
|
|
5
|
+
export type { Theme, ResolvedTheme } from "./hooks/use-theme";
|
|
6
|
+
export { useMobile } from "./hooks/use-mobile";
|
|
7
|
+
export { useScrollNav } from "./hooks/use-scroll-nav";
|
|
8
|
+
export { useToast, toast, dismissAll } from "./hooks/use-toast";
|
|
9
|
+
export type { ToasterToast, ToastVariant } from "./hooks/use-toast";
|
|
10
|
+
export { useCanonical } from "./hooks/use-canonical";
|
|
11
|
+
export { useAlternateLinks } from "./hooks/use-alternate-links";
|
|
12
|
+
export type { AlternateLink } from "./hooks/use-alternate-links";
|
|
13
|
+
export { ThemeProvider, useThemeContext } from "./components/ThemeProvider";
|
|
14
|
+
export type { ThemeProviderProps } from "./components/ThemeProvider";
|
|
15
|
+
export { Button, buttonVariants } from "./components/Button";
|
|
16
|
+
export type { ButtonProps } from "./components/Button";
|
|
17
|
+
export { Card, CardHeader, CardTitle, CardDescription, CardContent, CardFooter, } from "./components/Card";
|
|
18
|
+
export { Input } from "./components/Input";
|
|
19
|
+
export type { InputProps } from "./components/Input";
|
|
20
|
+
export { Textarea } from "./components/Textarea";
|
|
21
|
+
export type { TextareaProps } from "./components/Textarea";
|
|
22
|
+
export { Label } from "./components/Label";
|
|
23
|
+
export { Badge, badgeVariants } from "./components/Badge";
|
|
24
|
+
export type { BadgeProps } from "./components/Badge";
|
|
25
|
+
export { Alert, AlertTitle, AlertDescription, alertVariants } from "./components/Alert";
|
|
26
|
+
export { Separator } from "./components/Separator";
|
|
27
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from "./components/Accordion";
|
|
28
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription, } from "./components/Dialog";
|
|
29
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from "./components/AlertDialog";
|
|
30
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from "./components/Tabs";
|
|
31
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, } from "./components/Select";
|
|
32
|
+
export { Checkbox } from "./components/Checkbox";
|
|
33
|
+
export { RadioGroup, RadioGroupItem } from "./components/RadioGroup";
|
|
34
|
+
export { Switch } from "./components/Switch";
|
|
35
|
+
export { Toggle, toggleVariants } from "./components/Toggle";
|
|
36
|
+
export { Sheet, SheetPortal, SheetOverlay, SheetClose, SheetTrigger, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, } from "./components/Sheet";
|
|
37
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider, } from "./components/Tooltip";
|
|
38
|
+
export { Popover, PopoverTrigger, PopoverContent } from "./components/Popover";
|
|
39
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from "./components/DropdownMenu";
|
|
40
|
+
export { Progress } from "./components/Progress";
|
|
41
|
+
export { Skeleton } from "./components/Skeleton";
|
|
42
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, } from "./components/Table";
|
|
43
|
+
export { type ToastProps, type ToastActionElement, ToastProvider, ToastViewport, Toast, ToastTitle, ToastDescription, ToastClose, ToastAction, } from "./components/Toast";
|
|
44
|
+
export { Toaster } from "./components/Toaster";
|
|
45
|
+
export { CodeBlock } from "./components/CodeBlock";
|
|
46
|
+
export type { CodeBlockProps } from "./components/CodeBlock";
|
|
47
|
+
export { Combobox, ComboboxTrigger, ComboboxInput, ComboboxContent, ComboboxItem, ComboboxEmpty, useComboboxContext, } from "./components/Combobox";
|
|
48
|
+
export type { ComboboxProps, ComboboxInputProps, ComboboxItemProps, ComboboxEmptyProps } from "./components/Combobox";
|
|
49
|
+
export { AnimatedCounter } from "./components/AnimatedCounter";
|
|
50
|
+
export type { AnimatedCounterProps } from "./components/AnimatedCounter";
|
|
51
|
+
export { Nav } from "./components/Nav";
|
|
52
|
+
export { MetaHead } from "./components/MetaHead";
|
|
53
|
+
export type { MetaHeadProps } from "./components/MetaHead";
|
|
54
|
+
export { StructuredData } from "./components/StructuredData";
|
|
55
|
+
export type { StructuredDataProps, SchemaData, OrganizationSchema, ArticleSchema, ProductSchema, BreadcrumbListSchema, FAQPageSchema, WebSiteSchema, } from "./components/StructuredData";
|
|
56
|
+
export { Breadcrumb } from "./components/Breadcrumb";
|
|
57
|
+
export { Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarGroup, SidebarItem, } from "./components/Sidebar";
|
|
58
|
+
export type { SidebarProps, SidebarGroupProps, SidebarItemProps, SidebarLinkRenderFn, SidebarLinkRenderProps, } from "./components/Sidebar";
|
|
59
|
+
export { PageHeader } from "./components/PageHeader";
|
|
60
|
+
export type { PageHeaderProps } from "./components/PageHeader";
|
|
61
|
+
export { EmptyState } from "./components/EmptyState";
|
|
62
|
+
export type { EmptyStateProps } from "./components/EmptyState";
|
|
63
|
+
export { Pagination } from "./components/Pagination";
|
|
64
|
+
export type { PaginationProps } from "./components/Pagination";
|
|
65
|
+
export { StatCard } from "./components/StatCard";
|
|
66
|
+
export type { StatCardProps, StatCardColor } from "./components/StatCard";
|
|
67
|
+
export type { BreadcrumbProps, BreadcrumbItem, BreadcrumbLinkRenderProps, } from "./components/Breadcrumb";
|
|
68
|
+
export type { NavProps, NavItem, NavDropdownItem, NavAction, NavLinkRenderFn, NavLinkRenderProps, } from "./components/Nav";
|
|
69
|
+
export type { VariantProps } from "class-variance-authority";
|
|
70
|
+
export type { DialogProps, DialogTriggerProps, DialogContentProps, DialogTitleProps, DialogDescriptionProps, DialogCloseProps, } from "@radix-ui/react-dialog";
|
|
71
|
+
export type { AlertDialogProps, AlertDialogTriggerProps, AlertDialogContentProps, AlertDialogTitleProps, AlertDialogDescriptionProps, AlertDialogActionProps, AlertDialogCancelProps, } from "@radix-ui/react-alert-dialog";
|
|
72
|
+
export type { AccordionSingleProps, AccordionMultipleProps, } from "@radix-ui/react-accordion";
|
|
73
|
+
export type { TabsProps, TabsListProps, TabsTriggerProps, TabsContentProps, } from "@radix-ui/react-tabs";
|
|
74
|
+
export type { SelectProps, SelectTriggerProps, SelectContentProps, SelectItemProps, SelectValueProps, } from "@radix-ui/react-select";
|
|
75
|
+
export type { CheckboxProps, } from "@radix-ui/react-checkbox";
|
|
76
|
+
export type { RadioGroupProps, RadioGroupItemProps, } from "@radix-ui/react-radio-group";
|
|
77
|
+
export type { SwitchProps, } from "@radix-ui/react-switch";
|
|
78
|
+
export type { ToggleProps, } from "@radix-ui/react-toggle";
|
|
79
|
+
export type { TooltipProps, TooltipTriggerProps, TooltipContentProps, } from "@radix-ui/react-tooltip";
|
|
80
|
+
export type { PopoverProps, PopoverTriggerProps, PopoverContentProps, } from "@radix-ui/react-popover";
|
|
81
|
+
export type { DropdownMenuProps, DropdownMenuTriggerProps, DropdownMenuContentProps, DropdownMenuItemProps, DropdownMenuCheckboxItemProps, DropdownMenuRadioItemProps, DropdownMenuLabelProps, DropdownMenuSeparatorProps, DropdownMenuGroupProps, DropdownMenuSubProps, DropdownMenuSubTriggerProps, DropdownMenuSubContentProps, } from "@radix-ui/react-dropdown-menu";
|
|
82
|
+
export type { SeparatorProps, } from "@radix-ui/react-separator";
|
|
83
|
+
export type { ProgressProps, } from "@radix-ui/react-progress";
|
|
84
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,mBAAmB,CAAC;AAG3B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAGnE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAChE,YAAY,EAAE,YA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AY,EACV,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,aAAa,GACd,MAAM,0BAA0B,CAAC;AAElC,YAAY,EACV,eAAe,EACf,mBAAmB,GACpB,MAAM,6BAA6B,CAAC;AAErC,YAAY,EACV,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,YAAY,EACZ,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,6BAA6B,EAC7B,0BAA0B,EAC1B,sBAAsB,EACtB,0BAA0B,EAC1B,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,+BAA+B,CAAC;AAEvC,YAAY,EACV,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC,YAAY,EACV,aAAa,GACd,MAAM,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface OgImageParams {
|
|
2
|
+
/** Page or article title — rendered as the main heading */
|
|
3
|
+
title: string;
|
|
4
|
+
/** Optional subtitle or description */
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
/** Site or brand name — shown at the top or bottom */
|
|
7
|
+
siteName?: string;
|
|
8
|
+
/** Image width — defaults to 1200 */
|
|
9
|
+
width?: number;
|
|
10
|
+
/** Image height — defaults to 630 */
|
|
11
|
+
height?: number;
|
|
12
|
+
/** Theme hint for the OG image service — defaults to "dark" */
|
|
13
|
+
theme?: "dark" | "light";
|
|
14
|
+
/** Logo URL to include in the image */
|
|
15
|
+
logo?: string;
|
|
16
|
+
/** Font size for the title — defaults to 64 */
|
|
17
|
+
fontSize?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface OgImageConfig {
|
|
20
|
+
/**
|
|
21
|
+
* Base URL of your OG image generation service.
|
|
22
|
+
* The params will be appended as query parameters.
|
|
23
|
+
*
|
|
24
|
+
* Examples:
|
|
25
|
+
* - Self-hosted: "https://og.example.com/api/image"
|
|
26
|
+
* - Vercel OG: "https://example.com/api/og"
|
|
27
|
+
*/
|
|
28
|
+
baseUrl: string;
|
|
29
|
+
/**
|
|
30
|
+
* Optional function to transform params into a custom query string
|
|
31
|
+
* or path format. If not provided, params are URL-encoded as query params.
|
|
32
|
+
*/
|
|
33
|
+
buildUrl?: (baseUrl: string, params: OgImageParams) => string;
|
|
34
|
+
/** Default params merged into every call */
|
|
35
|
+
defaults?: Partial<OgImageParams>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Creates a configured OG image URL builder.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const ogImage = createOgImageUrl({
|
|
43
|
+
* baseUrl: "https://og.mysite.com/api/image",
|
|
44
|
+
* defaults: { siteName: "My Site", theme: "dark" },
|
|
45
|
+
* });
|
|
46
|
+
*
|
|
47
|
+
* // Use in MetaHead:
|
|
48
|
+
* <MetaHead
|
|
49
|
+
* title="Hello World"
|
|
50
|
+
* image={ogImage({ title: "Hello World" })}
|
|
51
|
+
* imageWidth={1200}
|
|
52
|
+
* imageHeight={630}
|
|
53
|
+
* />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
export declare function createOgImageUrl(config: OgImageConfig): (params: OgImageParams) => string;
|
|
57
|
+
//# sourceMappingURL=og-image.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"og-image.d.ts","sourceRoot":"","sources":["og-image.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,aAAa;IAC5B,2DAA2D;IAC3D,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sDAAsD;IACtD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,uCAAuC;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;;;OAOG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,KAAK,MAAM,CAAC;IAC9D,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;CACnC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,aAAa,YACjB,aAAa,KAAG,MAAM,CAoB1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAC;AAG7C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,OAEzC"}
|