@braintwopoint0/playback-commons 0.2.3 → 0.2.4
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/ui/index.d.ts +62 -1
- package/dist/ui/index.js +752 -0
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/dist/ui/index.d.ts
CHANGED
|
@@ -516,4 +516,65 @@ type NewsletterFormProps = {
|
|
|
516
516
|
};
|
|
517
517
|
declare function NewsletterForm({ endpoint, source, role, placeholder, ariaLabel, submitLabel, sendingLabel, className, }: NewsletterFormProps): react_jsx_runtime.JSX.Element;
|
|
518
518
|
|
|
519
|
-
|
|
519
|
+
type SiteFooterProps = {
|
|
520
|
+
/** Per-app link column configuration. Required because the columns are the only thing that varies between apps. */
|
|
521
|
+
columns: FooterColumnDef[];
|
|
522
|
+
/** Used in the sr-only footer heading. Defaults to 'PLAYBACK'. */
|
|
523
|
+
siteName?: string;
|
|
524
|
+
/** Newsletter POST endpoint. Defaults to the relative '/api/newsletter/subscribe' so each app can host its own. */
|
|
525
|
+
newsletterEndpoint?: string;
|
|
526
|
+
/** Source tag included in the newsletter payload for analytics. Defaults to 'footer'. */
|
|
527
|
+
newsletterSource?: string;
|
|
528
|
+
/** Top-left uppercase eyebrow. */
|
|
529
|
+
newsletterLabel?: string;
|
|
530
|
+
/** Headline above the newsletter copy. */
|
|
531
|
+
newsletterTitle?: string;
|
|
532
|
+
/** Sub-headline beneath the newsletter copy. */
|
|
533
|
+
newsletterSubtitle?: string;
|
|
534
|
+
};
|
|
535
|
+
declare function SiteFooter({ columns, siteName, newsletterEndpoint, newsletterSource, newsletterLabel, newsletterTitle, newsletterSubtitle, }: SiteFooterProps): react_jsx_runtime.JSX.Element;
|
|
536
|
+
|
|
537
|
+
type SignInFormProps = {
|
|
538
|
+
/**
|
|
539
|
+
* Called with the submitted email after a successful sign-in. The parent
|
|
540
|
+
* is responsible for the post-sign-in redirect, analytics, etc.
|
|
541
|
+
*/
|
|
542
|
+
onSuccess?: (email: string) => void;
|
|
543
|
+
/** Where the "Forgot your password?" link should point. Hidden if omitted. */
|
|
544
|
+
forgotPasswordHref?: string;
|
|
545
|
+
/** Where the "Sign up" footer link should point. Hidden if omitted. */
|
|
546
|
+
signUpHref?: string;
|
|
547
|
+
/** Pre-populated error from the surrounding page (e.g. URL ?error= param). */
|
|
548
|
+
initialError?: string;
|
|
549
|
+
emailPlaceholder?: string;
|
|
550
|
+
title?: string;
|
|
551
|
+
subtitle?: string;
|
|
552
|
+
};
|
|
553
|
+
declare function SignInForm({ onSuccess, forgotPasswordHref, signUpHref, initialError, emailPlaceholder, title, subtitle, }: SignInFormProps): react_jsx_runtime.JSX.Element;
|
|
554
|
+
|
|
555
|
+
type ForgotPasswordFormProps = {
|
|
556
|
+
/**
|
|
557
|
+
* Where Supabase should send the user after they click the email link.
|
|
558
|
+
* Typically `${window.location.origin}/auth/confirm?next=/auth/reset-password`.
|
|
559
|
+
*/
|
|
560
|
+
redirectTo: string;
|
|
561
|
+
/** Back-to-sign-in link target. Defaults to '/auth/login'. */
|
|
562
|
+
loginHref?: string;
|
|
563
|
+
title?: string;
|
|
564
|
+
subtitle?: string;
|
|
565
|
+
};
|
|
566
|
+
declare function ForgotPasswordForm({ redirectTo, loginHref, title, subtitle, }: ForgotPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
567
|
+
|
|
568
|
+
type ResetPasswordFormProps = {
|
|
569
|
+
/** Where to send users after a successful reset (used for both back-link and success-redirect). Defaults to '/auth/login'. */
|
|
570
|
+
loginHref?: string;
|
|
571
|
+
/** Pre-populated error from the surrounding page (e.g. URL ?error= param). */
|
|
572
|
+
initialError?: string;
|
|
573
|
+
/** Milliseconds the success state lingers before auto-redirect. */
|
|
574
|
+
redirectDelayMs?: number;
|
|
575
|
+
title?: string;
|
|
576
|
+
subtitle?: string;
|
|
577
|
+
};
|
|
578
|
+
declare function ResetPasswordForm({ loginHref, initialError, redirectDelayMs, title, subtitle, }: ResetPasswordFormProps): react_jsx_runtime.JSX.Element;
|
|
579
|
+
|
|
580
|
+
export { AnimatedTooltip, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Button, type ButtonProps, Calendar, CalendarDayButton, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, DataRow, type DataRowProps, DatePicker, DateTimePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, EmptyState, type EmptyStateProps, FadeIn, type FadeInProps, FlipWords, Footer, type FooterColumnDef, FooterCreditsBar, type FooterCreditsBarProps, type FooterLinkDef, type FooterProps, type FooterSocialDef, type FooterSocialLink, ForgotPasswordForm, type ForgotPasswordFormProps, HeroHighlight, Highlight, HoverCard, HoverCardDescription, HoverCardTitle, HoverEffect, Input, type InputProps, Label, LumaSpin, NewsletterForm, type NewsletterFormProps, PageShell, type PageShellProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ResetPasswordForm, type ResetPasswordFormProps, SearchBar, type SearchBarProps, SectionCard, type SectionCardProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, SignInForm, type SignInFormProps, SiteFooter, type SiteFooterProps, Skeleton, type StatItem, StatsGrid, type StatsGridProps, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, TimePicker, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonVariants, easeSmooth, fadeInDown, fadeInUp, hoverLift, hoverScale, pageTransition, springBounce, staggerContainer, staggerItem };
|