@inklu/docs 0.2.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/CHANGELOG.md +7 -0
- package/components.json +25 -0
- package/dist/index.d.mts +271 -0
- package/dist/index.d.ts +271 -0
- package/dist/index.js +2455 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2368 -0
- package/dist/index.mjs.map +1 -0
- package/dist/shiki.d.mts +10 -0
- package/dist/shiki.d.ts +10 -0
- package/dist/shiki.js +47 -0
- package/dist/shiki.js.map +1 -0
- package/dist/shiki.mjs +22 -0
- package/dist/shiki.mjs.map +1 -0
- package/dist/styles.css +2556 -0
- package/package.json +55 -0
- package/src/components/content/changelog-content.tsx +119 -0
- package/src/components/content/code-block.tsx +111 -0
- package/src/components/content/docs-content.tsx +113 -0
- package/src/components/layout/docs-layout.tsx +192 -0
- package/src/components/layout/site-header.tsx +152 -0
- package/src/components/layout/site-layout.tsx +28 -0
- package/src/components/layout/site-provider.tsx +23 -0
- package/src/components/layout/site-template.tsx +20 -0
- package/src/components/layout/theme-provider.tsx +10 -0
- package/src/components/layout/theme-switcher.tsx +42 -0
- package/src/components/motion-primitives/morph-icon.tsx +97 -0
- package/src/components/motion-primitives/progressive-blur.tsx +64 -0
- package/src/components/motion-primitives/sliding-number.tsx +131 -0
- package/src/components/motion-primitives/text-effect.tsx +290 -0
- package/src/components/motion-primitives/text-morph.tsx +77 -0
- package/src/components/motion-primitives/text-scramble.tsx +87 -0
- package/src/components/shared/command-block.tsx +193 -0
- package/src/components/shared/scroll-fade.tsx +22 -0
- package/src/components/ui/badge.tsx +50 -0
- package/src/components/ui/brand-logo.tsx +68 -0
- package/src/components/ui/button-group.tsx +87 -0
- package/src/components/ui/button.tsx +104 -0
- package/src/components/ui/card.tsx +97 -0
- package/src/components/ui/direction.tsx +6 -0
- package/src/components/ui/hover-card.tsx +51 -0
- package/src/components/ui/item.tsx +201 -0
- package/src/components/ui/separator.tsx +25 -0
- package/src/components/ui/toast.tsx +322 -0
- package/src/components/ui/tooltip.tsx +66 -0
- package/src/hooks/use-copy-to-clipboard.ts +54 -0
- package/src/index.ts +30 -0
- package/src/lib/constants.ts +63 -0
- package/src/lib/motions.ts +21 -0
- package/src/lib/utils/audio.ts +56 -0
- package/src/lib/utils.ts +14 -0
- package/src/shiki.ts +25 -0
- package/src/styles.css +112 -0
- package/src/typeset.css +513 -0
- package/tsconfig.json +15 -0
- package/tsup.config.ts +11 -0
package/CHANGELOG.md
ADDED
package/components.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
+
"style": "base-mira",
|
|
4
|
+
"rsc": true,
|
|
5
|
+
"tsx": true,
|
|
6
|
+
"tailwind": {
|
|
7
|
+
"config": "",
|
|
8
|
+
"css": "src/styles.css",
|
|
9
|
+
"baseColor": "neutral",
|
|
10
|
+
"cssVariables": true,
|
|
11
|
+
"prefix": ""
|
|
12
|
+
},
|
|
13
|
+
"iconLibrary": "radix",
|
|
14
|
+
"rtl": true,
|
|
15
|
+
"aliases": {
|
|
16
|
+
"components": "@/components",
|
|
17
|
+
"utils": "@/lib/utils",
|
|
18
|
+
"ui": "@/components/ui",
|
|
19
|
+
"lib": "@/lib",
|
|
20
|
+
"hooks": "@/hooks"
|
|
21
|
+
},
|
|
22
|
+
"menuColor": "default",
|
|
23
|
+
"menuAccent": "subtle",
|
|
24
|
+
"registries": {}
|
|
25
|
+
}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentProps } from 'react';
|
|
3
|
+
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
4
|
+
import { Variants, Transition, HTMLMotionProps } from 'motion/react';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { useRender as useRender$1 } from '@base-ui/react';
|
|
9
|
+
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
10
|
+
export { DirectionProvider, useDirection } from '@base-ui/react/direction-provider';
|
|
11
|
+
import { PreviewCard } from '@base-ui/react/preview-card';
|
|
12
|
+
import { Toast } from '@base-ui/react/toast';
|
|
13
|
+
export { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
14
|
+
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
15
|
+
|
|
16
|
+
declare function ChangelogContent(): React$1.JSX.Element;
|
|
17
|
+
|
|
18
|
+
interface CodeBlockProps {
|
|
19
|
+
html: string;
|
|
20
|
+
code: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function CodeBlock({ html, code, className }: CodeBlockProps): React$1.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare function DocsCol({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}): React$1.JSX.Element;
|
|
28
|
+
declare function DocsFrame({ children }: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}): React$1.JSX.Element;
|
|
31
|
+
declare function DocsHeader({ title, date, children, }: {
|
|
32
|
+
title: string;
|
|
33
|
+
date: string;
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
}): React$1.JSX.Element;
|
|
36
|
+
declare function DocsOverview({ children }: {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
}): React$1.JSX.Element;
|
|
39
|
+
declare function DocsSection({ id, title, children, }: {
|
|
40
|
+
id: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
}): React$1.JSX.Element;
|
|
44
|
+
declare function DocsInstallation({ install, }: {
|
|
45
|
+
install: {
|
|
46
|
+
id: string;
|
|
47
|
+
command: string;
|
|
48
|
+
}[];
|
|
49
|
+
}): React$1.JSX.Element;
|
|
50
|
+
declare function DocsCode({ code, html }: {
|
|
51
|
+
code: string;
|
|
52
|
+
html: string;
|
|
53
|
+
}): React$1.JSX.Element;
|
|
54
|
+
|
|
55
|
+
type DocsLayoutProps = {
|
|
56
|
+
children: React$1.ReactNode;
|
|
57
|
+
links: {
|
|
58
|
+
group: string;
|
|
59
|
+
items: {
|
|
60
|
+
title: string;
|
|
61
|
+
url: string;
|
|
62
|
+
isAnchor: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
}[];
|
|
65
|
+
indexUrl?: string;
|
|
66
|
+
indexLabel?: string;
|
|
67
|
+
header?: React$1.ReactNode;
|
|
68
|
+
};
|
|
69
|
+
declare function DocsLayout({ children, links, indexUrl, indexLabel, header, }: DocsLayoutProps): React$1.JSX.Element;
|
|
70
|
+
declare function DocsNavbar({ logo, right, }: {
|
|
71
|
+
logo?: React$1.ReactNode;
|
|
72
|
+
right?: React$1.ReactNode;
|
|
73
|
+
}): React$1.JSX.Element;
|
|
74
|
+
|
|
75
|
+
type SiteHeaderProps = {
|
|
76
|
+
navItems?: {
|
|
77
|
+
label: string;
|
|
78
|
+
href: string;
|
|
79
|
+
}[];
|
|
80
|
+
logo?: React.ReactNode;
|
|
81
|
+
version?: string;
|
|
82
|
+
githubUrl?: string;
|
|
83
|
+
right?: React.ReactNode;
|
|
84
|
+
};
|
|
85
|
+
declare function SiteHeader({ navItems, logo, version, githubUrl, right, }: SiteHeaderProps): React$1.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type SiteLayoutProps = {
|
|
88
|
+
children: React$1.ReactNode;
|
|
89
|
+
header?: React$1.ReactNode;
|
|
90
|
+
footer?: React$1.ReactNode;
|
|
91
|
+
};
|
|
92
|
+
declare function SiteLayout({ children, header, footer }: SiteLayoutProps): React$1.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare function SiteProvider({ children }: {
|
|
95
|
+
children: React$1.ReactNode;
|
|
96
|
+
}): React$1.JSX.Element;
|
|
97
|
+
|
|
98
|
+
declare function SiteTemplate({ children }: {
|
|
99
|
+
children: React$1.ReactNode;
|
|
100
|
+
}): React$1.JSX.Element;
|
|
101
|
+
|
|
102
|
+
declare function ThemeProvider(props: ComponentProps<typeof ThemeProvider$1>): React$1.JSX.Element;
|
|
103
|
+
|
|
104
|
+
declare function ThemeSwitcher(): React$1.JSX.Element;
|
|
105
|
+
|
|
106
|
+
type SlidingNumberProps = {
|
|
107
|
+
value: number;
|
|
108
|
+
padStart?: boolean;
|
|
109
|
+
decimalSeparator?: string;
|
|
110
|
+
};
|
|
111
|
+
declare function SlidingNumber({ value, padStart, decimalSeparator, }: SlidingNumberProps): React$1.JSX.Element;
|
|
112
|
+
|
|
113
|
+
type PresetType = "blur" | "fade-in-blur" | "scale" | "fade" | "slide";
|
|
114
|
+
type PerType = "word" | "char" | "line";
|
|
115
|
+
type TextEffectProps = {
|
|
116
|
+
children: string;
|
|
117
|
+
per?: PerType;
|
|
118
|
+
as?: keyof React__default.JSX.IntrinsicElements;
|
|
119
|
+
variants?: {
|
|
120
|
+
container?: Variants;
|
|
121
|
+
item?: Variants;
|
|
122
|
+
};
|
|
123
|
+
className?: string;
|
|
124
|
+
preset?: PresetType;
|
|
125
|
+
delay?: number;
|
|
126
|
+
speedReveal?: number;
|
|
127
|
+
speedSegment?: number;
|
|
128
|
+
trigger?: boolean;
|
|
129
|
+
onAnimationComplete?: () => void;
|
|
130
|
+
onAnimationStart?: () => void;
|
|
131
|
+
segmentWrapperClassName?: string;
|
|
132
|
+
containerTransition?: Transition;
|
|
133
|
+
segmentTransition?: Transition;
|
|
134
|
+
style?: React__default.CSSProperties;
|
|
135
|
+
};
|
|
136
|
+
declare function TextEffect({ children, per, as, variants, className, preset, delay, speedReveal, speedSegment, trigger, onAnimationComplete, onAnimationStart, segmentWrapperClassName, containerTransition, segmentTransition, style, }: TextEffectProps): React__default.JSX.Element;
|
|
137
|
+
|
|
138
|
+
type TextMorphProps = {
|
|
139
|
+
children: string;
|
|
140
|
+
as?: React.ElementType;
|
|
141
|
+
className?: string;
|
|
142
|
+
style?: React.CSSProperties;
|
|
143
|
+
variants?: Variants;
|
|
144
|
+
transition?: Transition;
|
|
145
|
+
};
|
|
146
|
+
declare function TextMorph({ children, as: Component, className, style, variants, transition, }: TextMorphProps): React$1.JSX.Element;
|
|
147
|
+
|
|
148
|
+
declare function CopyMorphIcon({ copied }: {
|
|
149
|
+
copied: boolean;
|
|
150
|
+
}): React$1.JSX.Element;
|
|
151
|
+
declare function CommandBlock({ items, }: {
|
|
152
|
+
items: {
|
|
153
|
+
id: string;
|
|
154
|
+
command: string;
|
|
155
|
+
}[];
|
|
156
|
+
}): React$1.JSX.Element;
|
|
157
|
+
|
|
158
|
+
declare function ScrollFade(): React$1.JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare const badgeVariants: (props?: ({
|
|
161
|
+
variant?: "default" | "secondary" | "outline" | null | undefined;
|
|
162
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
163
|
+
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): React$1.JSX.Element;
|
|
164
|
+
|
|
165
|
+
interface BrandLogoProps extends HTMLMotionProps<"div"> {
|
|
166
|
+
}
|
|
167
|
+
declare const BrandLogo: React$1.ForwardRefExoticComponent<Omit<BrandLogoProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
|
|
169
|
+
declare const buttonVariants: (props?: ({
|
|
170
|
+
variant?: "default" | "secondary" | "outline" | "link" | "ghost" | "destructive" | null | undefined;
|
|
171
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
172
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
173
|
+
interface ButtonProps extends useRender$1.ComponentProps<"button"> {
|
|
174
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
175
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
176
|
+
loading?: boolean;
|
|
177
|
+
}
|
|
178
|
+
declare function Button({ className, variant, size, render, children, loading, disabled: disabledProp, ...props }: ButtonProps): React.ReactElement;
|
|
179
|
+
|
|
180
|
+
declare function Separator({ className, orientation, ...props }: Separator$1.Props): React$1.JSX.Element;
|
|
181
|
+
|
|
182
|
+
declare const buttonGroupVariants: (props?: ({
|
|
183
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
184
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
185
|
+
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): React$1.JSX.Element;
|
|
186
|
+
declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
187
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
188
|
+
|
|
189
|
+
declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & {
|
|
190
|
+
size?: "default" | "sm";
|
|
191
|
+
}): React$1.JSX.Element;
|
|
192
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
193
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
194
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
195
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
196
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
197
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare function HoverCard({ ...props }: PreviewCard.Root.Props): React$1.JSX.Element;
|
|
200
|
+
declare function HoverCardTrigger({ ...props }: PreviewCard.Trigger.Props): React$1.JSX.Element;
|
|
201
|
+
declare function HoverCardContent({ className, side, sideOffset, align, alignOffset, ...props }: PreviewCard.Popup.Props & Pick<PreviewCard.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
202
|
+
|
|
203
|
+
declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
204
|
+
declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
205
|
+
declare const itemVariants: (props?: ({
|
|
206
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
207
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
208
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
209
|
+
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
210
|
+
declare const itemMediaVariants: (props?: ({
|
|
211
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
212
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
213
|
+
declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React$1.JSX.Element;
|
|
214
|
+
declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
215
|
+
declare function ItemTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
216
|
+
declare function ItemDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
217
|
+
declare function ItemActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
218
|
+
declare function ItemHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
219
|
+
declare function ItemFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
220
|
+
|
|
221
|
+
declare const toastManager: ReturnType<typeof Toast.createToastManager>;
|
|
222
|
+
declare const anchoredToastManager: ReturnType<typeof Toast.createToastManager>;
|
|
223
|
+
type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
224
|
+
interface ToastProviderProps extends Toast.Provider.Props {
|
|
225
|
+
position?: ToastPosition;
|
|
226
|
+
portalProps?: React__default.ComponentProps<typeof Toast.Portal>;
|
|
227
|
+
}
|
|
228
|
+
declare function ToastProvider({ children, position, portalProps, ...props }: ToastProviderProps): React__default.ReactElement;
|
|
229
|
+
interface AnchoredToastProviderProps extends Toast.Provider.Props {
|
|
230
|
+
portalProps?: React__default.ComponentProps<typeof Toast.Portal>;
|
|
231
|
+
}
|
|
232
|
+
declare function AnchoredToastProvider({ children, portalProps, ...props }: AnchoredToastProviderProps): React__default.ReactElement;
|
|
233
|
+
|
|
234
|
+
declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): React$1.JSX.Element;
|
|
235
|
+
declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Element;
|
|
236
|
+
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
237
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
238
|
+
|
|
239
|
+
declare const EASE_OUT: readonly [0.22, 1, 0.36, 1];
|
|
240
|
+
declare const REVEAL_DURATION = 0.28;
|
|
241
|
+
declare const HERO_STAGGER = 0.06;
|
|
242
|
+
declare const heroChild: {
|
|
243
|
+
hidden: {
|
|
244
|
+
opacity: number;
|
|
245
|
+
y: number;
|
|
246
|
+
};
|
|
247
|
+
show: {
|
|
248
|
+
opacity: number;
|
|
249
|
+
y: number;
|
|
250
|
+
transition: {
|
|
251
|
+
duration: number;
|
|
252
|
+
ease: readonly [0.22, 1, 0.36, 1];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
declare const colReveal: {
|
|
257
|
+
hidden: {
|
|
258
|
+
opacity: number;
|
|
259
|
+
y: number;
|
|
260
|
+
};
|
|
261
|
+
show: {
|
|
262
|
+
opacity: number;
|
|
263
|
+
y: number;
|
|
264
|
+
transition: {
|
|
265
|
+
duration: number;
|
|
266
|
+
ease: readonly [0.22, 1, 0.36, 1];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export { AnchoredToastProvider, type AnchoredToastProviderProps, Badge, BrandLogo, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChangelogContent, CodeBlock, type CodeBlockProps, CommandBlock, CopyMorphIcon, DocsCode, DocsCol, DocsFrame, DocsHeader, DocsInstallation, DocsLayout, type DocsLayoutProps, DocsNavbar, DocsOverview, DocsSection, EASE_OUT, HERO_STAGGER, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, type PerType, type PresetType, REVEAL_DURATION, ScrollFade, Separator, SiteHeader, type SiteHeaderProps, SiteLayout, type SiteLayoutProps, SiteProvider, SiteTemplate, SlidingNumber, TextEffect, type TextEffectProps, TextMorph, type TextMorphProps, ThemeProvider, ThemeSwitcher, type ToastPosition, ToastProvider, type ToastProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, anchoredToastManager, badgeVariants, buttonGroupVariants, buttonVariants, colReveal, heroChild, toastManager };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
import React__default, { ReactNode, ComponentProps } from 'react';
|
|
3
|
+
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
4
|
+
import { Variants, Transition, HTMLMotionProps } from 'motion/react';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
7
|
+
import { VariantProps } from 'class-variance-authority';
|
|
8
|
+
import { useRender as useRender$1 } from '@base-ui/react';
|
|
9
|
+
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
10
|
+
export { DirectionProvider, useDirection } from '@base-ui/react/direction-provider';
|
|
11
|
+
import { PreviewCard } from '@base-ui/react/preview-card';
|
|
12
|
+
import { Toast } from '@base-ui/react/toast';
|
|
13
|
+
export { Toast as ToastPrimitive } from '@base-ui/react/toast';
|
|
14
|
+
import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
|
|
15
|
+
|
|
16
|
+
declare function ChangelogContent(): React$1.JSX.Element;
|
|
17
|
+
|
|
18
|
+
interface CodeBlockProps {
|
|
19
|
+
html: string;
|
|
20
|
+
code: string;
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
declare function CodeBlock({ html, code, className }: CodeBlockProps): React$1.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare function DocsCol({ children }: {
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}): React$1.JSX.Element;
|
|
28
|
+
declare function DocsFrame({ children }: {
|
|
29
|
+
children: ReactNode;
|
|
30
|
+
}): React$1.JSX.Element;
|
|
31
|
+
declare function DocsHeader({ title, date, children, }: {
|
|
32
|
+
title: string;
|
|
33
|
+
date: string;
|
|
34
|
+
children?: ReactNode;
|
|
35
|
+
}): React$1.JSX.Element;
|
|
36
|
+
declare function DocsOverview({ children }: {
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
}): React$1.JSX.Element;
|
|
39
|
+
declare function DocsSection({ id, title, children, }: {
|
|
40
|
+
id: string;
|
|
41
|
+
title?: string;
|
|
42
|
+
children: ReactNode;
|
|
43
|
+
}): React$1.JSX.Element;
|
|
44
|
+
declare function DocsInstallation({ install, }: {
|
|
45
|
+
install: {
|
|
46
|
+
id: string;
|
|
47
|
+
command: string;
|
|
48
|
+
}[];
|
|
49
|
+
}): React$1.JSX.Element;
|
|
50
|
+
declare function DocsCode({ code, html }: {
|
|
51
|
+
code: string;
|
|
52
|
+
html: string;
|
|
53
|
+
}): React$1.JSX.Element;
|
|
54
|
+
|
|
55
|
+
type DocsLayoutProps = {
|
|
56
|
+
children: React$1.ReactNode;
|
|
57
|
+
links: {
|
|
58
|
+
group: string;
|
|
59
|
+
items: {
|
|
60
|
+
title: string;
|
|
61
|
+
url: string;
|
|
62
|
+
isAnchor: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
}[];
|
|
65
|
+
indexUrl?: string;
|
|
66
|
+
indexLabel?: string;
|
|
67
|
+
header?: React$1.ReactNode;
|
|
68
|
+
};
|
|
69
|
+
declare function DocsLayout({ children, links, indexUrl, indexLabel, header, }: DocsLayoutProps): React$1.JSX.Element;
|
|
70
|
+
declare function DocsNavbar({ logo, right, }: {
|
|
71
|
+
logo?: React$1.ReactNode;
|
|
72
|
+
right?: React$1.ReactNode;
|
|
73
|
+
}): React$1.JSX.Element;
|
|
74
|
+
|
|
75
|
+
type SiteHeaderProps = {
|
|
76
|
+
navItems?: {
|
|
77
|
+
label: string;
|
|
78
|
+
href: string;
|
|
79
|
+
}[];
|
|
80
|
+
logo?: React.ReactNode;
|
|
81
|
+
version?: string;
|
|
82
|
+
githubUrl?: string;
|
|
83
|
+
right?: React.ReactNode;
|
|
84
|
+
};
|
|
85
|
+
declare function SiteHeader({ navItems, logo, version, githubUrl, right, }: SiteHeaderProps): React$1.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type SiteLayoutProps = {
|
|
88
|
+
children: React$1.ReactNode;
|
|
89
|
+
header?: React$1.ReactNode;
|
|
90
|
+
footer?: React$1.ReactNode;
|
|
91
|
+
};
|
|
92
|
+
declare function SiteLayout({ children, header, footer }: SiteLayoutProps): React$1.JSX.Element;
|
|
93
|
+
|
|
94
|
+
declare function SiteProvider({ children }: {
|
|
95
|
+
children: React$1.ReactNode;
|
|
96
|
+
}): React$1.JSX.Element;
|
|
97
|
+
|
|
98
|
+
declare function SiteTemplate({ children }: {
|
|
99
|
+
children: React$1.ReactNode;
|
|
100
|
+
}): React$1.JSX.Element;
|
|
101
|
+
|
|
102
|
+
declare function ThemeProvider(props: ComponentProps<typeof ThemeProvider$1>): React$1.JSX.Element;
|
|
103
|
+
|
|
104
|
+
declare function ThemeSwitcher(): React$1.JSX.Element;
|
|
105
|
+
|
|
106
|
+
type SlidingNumberProps = {
|
|
107
|
+
value: number;
|
|
108
|
+
padStart?: boolean;
|
|
109
|
+
decimalSeparator?: string;
|
|
110
|
+
};
|
|
111
|
+
declare function SlidingNumber({ value, padStart, decimalSeparator, }: SlidingNumberProps): React$1.JSX.Element;
|
|
112
|
+
|
|
113
|
+
type PresetType = "blur" | "fade-in-blur" | "scale" | "fade" | "slide";
|
|
114
|
+
type PerType = "word" | "char" | "line";
|
|
115
|
+
type TextEffectProps = {
|
|
116
|
+
children: string;
|
|
117
|
+
per?: PerType;
|
|
118
|
+
as?: keyof React__default.JSX.IntrinsicElements;
|
|
119
|
+
variants?: {
|
|
120
|
+
container?: Variants;
|
|
121
|
+
item?: Variants;
|
|
122
|
+
};
|
|
123
|
+
className?: string;
|
|
124
|
+
preset?: PresetType;
|
|
125
|
+
delay?: number;
|
|
126
|
+
speedReveal?: number;
|
|
127
|
+
speedSegment?: number;
|
|
128
|
+
trigger?: boolean;
|
|
129
|
+
onAnimationComplete?: () => void;
|
|
130
|
+
onAnimationStart?: () => void;
|
|
131
|
+
segmentWrapperClassName?: string;
|
|
132
|
+
containerTransition?: Transition;
|
|
133
|
+
segmentTransition?: Transition;
|
|
134
|
+
style?: React__default.CSSProperties;
|
|
135
|
+
};
|
|
136
|
+
declare function TextEffect({ children, per, as, variants, className, preset, delay, speedReveal, speedSegment, trigger, onAnimationComplete, onAnimationStart, segmentWrapperClassName, containerTransition, segmentTransition, style, }: TextEffectProps): React__default.JSX.Element;
|
|
137
|
+
|
|
138
|
+
type TextMorphProps = {
|
|
139
|
+
children: string;
|
|
140
|
+
as?: React.ElementType;
|
|
141
|
+
className?: string;
|
|
142
|
+
style?: React.CSSProperties;
|
|
143
|
+
variants?: Variants;
|
|
144
|
+
transition?: Transition;
|
|
145
|
+
};
|
|
146
|
+
declare function TextMorph({ children, as: Component, className, style, variants, transition, }: TextMorphProps): React$1.JSX.Element;
|
|
147
|
+
|
|
148
|
+
declare function CopyMorphIcon({ copied }: {
|
|
149
|
+
copied: boolean;
|
|
150
|
+
}): React$1.JSX.Element;
|
|
151
|
+
declare function CommandBlock({ items, }: {
|
|
152
|
+
items: {
|
|
153
|
+
id: string;
|
|
154
|
+
command: string;
|
|
155
|
+
}[];
|
|
156
|
+
}): React$1.JSX.Element;
|
|
157
|
+
|
|
158
|
+
declare function ScrollFade(): React$1.JSX.Element;
|
|
159
|
+
|
|
160
|
+
declare const badgeVariants: (props?: ({
|
|
161
|
+
variant?: "default" | "secondary" | "outline" | null | undefined;
|
|
162
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
163
|
+
declare function Badge({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof badgeVariants>): React$1.JSX.Element;
|
|
164
|
+
|
|
165
|
+
interface BrandLogoProps extends HTMLMotionProps<"div"> {
|
|
166
|
+
}
|
|
167
|
+
declare const BrandLogo: React$1.ForwardRefExoticComponent<Omit<BrandLogoProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
168
|
+
|
|
169
|
+
declare const buttonVariants: (props?: ({
|
|
170
|
+
variant?: "default" | "secondary" | "outline" | "link" | "ghost" | "destructive" | null | undefined;
|
|
171
|
+
size?: "default" | "icon" | "icon-lg" | "icon-sm" | "icon-xl" | "icon-xs" | "lg" | "sm" | "xl" | "xs" | null | undefined;
|
|
172
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
173
|
+
interface ButtonProps extends useRender$1.ComponentProps<"button"> {
|
|
174
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
175
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
176
|
+
loading?: boolean;
|
|
177
|
+
}
|
|
178
|
+
declare function Button({ className, variant, size, render, children, loading, disabled: disabledProp, ...props }: ButtonProps): React.ReactElement;
|
|
179
|
+
|
|
180
|
+
declare function Separator({ className, orientation, ...props }: Separator$1.Props): React$1.JSX.Element;
|
|
181
|
+
|
|
182
|
+
declare const buttonGroupVariants: (props?: ({
|
|
183
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
184
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
185
|
+
declare function ButtonGroup({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): React$1.JSX.Element;
|
|
186
|
+
declare function ButtonGroupText({ className, render, ...props }: useRender.ComponentProps<"div">): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
187
|
+
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
188
|
+
|
|
189
|
+
declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & {
|
|
190
|
+
size?: "default" | "sm";
|
|
191
|
+
}): React$1.JSX.Element;
|
|
192
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
193
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
194
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
195
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
196
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
197
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
198
|
+
|
|
199
|
+
declare function HoverCard({ ...props }: PreviewCard.Root.Props): React$1.JSX.Element;
|
|
200
|
+
declare function HoverCardTrigger({ ...props }: PreviewCard.Trigger.Props): React$1.JSX.Element;
|
|
201
|
+
declare function HoverCardContent({ className, side, sideOffset, align, alignOffset, ...props }: PreviewCard.Popup.Props & Pick<PreviewCard.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
202
|
+
|
|
203
|
+
declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
204
|
+
declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
205
|
+
declare const itemVariants: (props?: ({
|
|
206
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
207
|
+
size?: "default" | "sm" | "xs" | null | undefined;
|
|
208
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
209
|
+
declare function Item({ className, variant, size, render, ...props }: useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
210
|
+
declare const itemMediaVariants: (props?: ({
|
|
211
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
212
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
213
|
+
declare function ItemMedia({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>): React$1.JSX.Element;
|
|
214
|
+
declare function ItemContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
215
|
+
declare function ItemTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
216
|
+
declare function ItemDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
217
|
+
declare function ItemActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
218
|
+
declare function ItemHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
219
|
+
declare function ItemFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
220
|
+
|
|
221
|
+
declare const toastManager: ReturnType<typeof Toast.createToastManager>;
|
|
222
|
+
declare const anchoredToastManager: ReturnType<typeof Toast.createToastManager>;
|
|
223
|
+
type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
224
|
+
interface ToastProviderProps extends Toast.Provider.Props {
|
|
225
|
+
position?: ToastPosition;
|
|
226
|
+
portalProps?: React__default.ComponentProps<typeof Toast.Portal>;
|
|
227
|
+
}
|
|
228
|
+
declare function ToastProvider({ children, position, portalProps, ...props }: ToastProviderProps): React__default.ReactElement;
|
|
229
|
+
interface AnchoredToastProviderProps extends Toast.Provider.Props {
|
|
230
|
+
portalProps?: React__default.ComponentProps<typeof Toast.Portal>;
|
|
231
|
+
}
|
|
232
|
+
declare function AnchoredToastProvider({ children, portalProps, ...props }: AnchoredToastProviderProps): React__default.ReactElement;
|
|
233
|
+
|
|
234
|
+
declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props): React$1.JSX.Element;
|
|
235
|
+
declare function Tooltip({ ...props }: Tooltip$1.Root.Props): React$1.JSX.Element;
|
|
236
|
+
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): React$1.JSX.Element;
|
|
237
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): React$1.JSX.Element;
|
|
238
|
+
|
|
239
|
+
declare const EASE_OUT: readonly [0.22, 1, 0.36, 1];
|
|
240
|
+
declare const REVEAL_DURATION = 0.28;
|
|
241
|
+
declare const HERO_STAGGER = 0.06;
|
|
242
|
+
declare const heroChild: {
|
|
243
|
+
hidden: {
|
|
244
|
+
opacity: number;
|
|
245
|
+
y: number;
|
|
246
|
+
};
|
|
247
|
+
show: {
|
|
248
|
+
opacity: number;
|
|
249
|
+
y: number;
|
|
250
|
+
transition: {
|
|
251
|
+
duration: number;
|
|
252
|
+
ease: readonly [0.22, 1, 0.36, 1];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
declare const colReveal: {
|
|
257
|
+
hidden: {
|
|
258
|
+
opacity: number;
|
|
259
|
+
y: number;
|
|
260
|
+
};
|
|
261
|
+
show: {
|
|
262
|
+
opacity: number;
|
|
263
|
+
y: number;
|
|
264
|
+
transition: {
|
|
265
|
+
duration: number;
|
|
266
|
+
ease: readonly [0.22, 1, 0.36, 1];
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export { AnchoredToastProvider, type AnchoredToastProviderProps, Badge, BrandLogo, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ChangelogContent, CodeBlock, type CodeBlockProps, CommandBlock, CopyMorphIcon, DocsCode, DocsCol, DocsFrame, DocsHeader, DocsInstallation, DocsLayout, type DocsLayoutProps, DocsNavbar, DocsOverview, DocsSection, EASE_OUT, HERO_STAGGER, HoverCard, HoverCardContent, HoverCardTrigger, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, type PerType, type PresetType, REVEAL_DURATION, ScrollFade, Separator, SiteHeader, type SiteHeaderProps, SiteLayout, type SiteLayoutProps, SiteProvider, SiteTemplate, SlidingNumber, TextEffect, type TextEffectProps, TextMorph, type TextMorphProps, ThemeProvider, ThemeSwitcher, type ToastPosition, ToastProvider, type ToastProviderProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, anchoredToastManager, badgeVariants, buttonGroupVariants, buttonVariants, colReveal, heroChild, toastManager };
|