@vite-mf-monorepo/ui 0.4.5 → 0.4.7
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/Avatar/Avatar.d.ts +19 -0
- package/dist/Avatar/Avatar.js +62 -0
- package/dist/Avatar/Avatar.js.map +1 -0
- package/dist/Avatar/index.d.ts +3 -0
- package/dist/Avatar/index.js +5 -0
- package/dist/Avatar/index.js.map +1 -0
- package/dist/Badge/Badge.d.ts +23 -0
- package/dist/Badge/Badge.js +48 -0
- package/dist/Badge/Badge.js.map +1 -0
- package/dist/Badge/index.d.ts +4 -0
- package/dist/Badge/index.js +5 -0
- package/dist/Badge/index.js.map +1 -0
- package/dist/Button/Button.utils.d.ts +23 -0
- package/dist/{chunk-IUGKH376.js → Button/Button.utils.js} +8 -7
- package/dist/Button/Button.utils.js.map +1 -0
- package/dist/Button/index.d.ts +6 -26
- package/dist/Button/index.js +4 -5
- package/dist/Button/index.js.map +1 -1
- package/dist/Card/Card.d.ts +11 -0
- package/dist/{chunk-RZU2FFBW.js → Card/Card.js} +7 -8
- package/dist/Card/Card.js.map +1 -0
- package/dist/Card/index.d.ts +3 -11
- package/dist/Card/index.js +4 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Carousel/Carousel.d.ts +65 -0
- package/dist/Carousel/Carousel.js +268 -0
- package/dist/Carousel/Carousel.js.map +1 -0
- package/dist/Carousel/CarouselCounter.d.ts +17 -0
- package/dist/Carousel/CarouselCounter.js +28 -0
- package/dist/Carousel/CarouselCounter.js.map +1 -0
- package/dist/Carousel/CarouselError.d.ts +8 -0
- package/dist/Carousel/CarouselError.js +18 -0
- package/dist/Carousel/CarouselError.js.map +1 -0
- package/dist/Carousel/CarouselItem.d.ts +16 -0
- package/dist/Carousel/CarouselItem.js +28 -0
- package/dist/Carousel/CarouselItem.js.map +1 -0
- package/dist/Carousel/CarouselLoading.d.ts +25 -0
- package/dist/Carousel/CarouselLoading.js +63 -0
- package/dist/Carousel/CarouselLoading.js.map +1 -0
- package/dist/Carousel/CarouselNavigation.d.ts +31 -0
- package/dist/Carousel/CarouselNavigation.js +97 -0
- package/dist/Carousel/CarouselNavigation.js.map +1 -0
- package/dist/Carousel/CarouselPagination.d.ts +20 -0
- package/dist/Carousel/CarouselPagination.js +29 -0
- package/dist/Carousel/CarouselPagination.js.map +1 -0
- package/dist/Carousel/index.d.ts +8 -0
- package/dist/Carousel/index.js +15 -0
- package/dist/Carousel/index.js.map +1 -0
- package/dist/HeroImage/HeroImage.d.ts +15 -0
- package/dist/HeroImage/HeroImage.js +47 -0
- package/dist/HeroImage/HeroImage.js.map +1 -0
- package/dist/HeroImage/index.d.ts +2 -0
- package/dist/HeroImage/index.js +5 -0
- package/dist/HeroImage/index.js.map +1 -0
- package/dist/Icon/Icon.d.ts +14 -0
- package/dist/Icon/Icon.js +204 -0
- package/dist/Icon/Icon.js.map +1 -0
- package/dist/Icon/index.d.ts +3 -14
- package/dist/Icon/index.js +4 -2
- package/dist/Icon/index.js.map +1 -1
- package/dist/IconButton/IconButton.d.ts +17 -0
- package/dist/IconButton/IconButton.js +44 -0
- package/dist/IconButton/IconButton.js.map +1 -0
- package/dist/IconButton/index.d.ts +4 -0
- package/dist/IconButton/index.js +5 -0
- package/dist/IconButton/index.js.map +1 -0
- package/dist/{MovieCard.utils-D8i4d7qA.d.ts → Image/Image.d.ts} +1 -28
- package/dist/Image/Image.js +125 -0
- package/dist/Image/Image.js.map +1 -0
- package/dist/Image/index.d.ts +3 -0
- package/dist/Image/index.js +5 -0
- package/dist/Image/index.js.map +1 -0
- package/dist/Modal/Modal.d.ts +20 -0
- package/dist/Modal/Modal.js +55 -0
- package/dist/Modal/Modal.js.map +1 -0
- package/dist/Modal/index.d.ts +3 -0
- package/dist/Modal/index.js +5 -0
- package/dist/Modal/index.js.map +1 -0
- package/dist/MovieCard/MovieCard.utils.d.ts +34 -0
- package/dist/MovieCard/MovieCard.utils.js +20 -0
- package/dist/MovieCard/MovieCard.utils.js.map +1 -0
- package/dist/MovieCard/MovieCardContent.d.ts +18 -0
- package/dist/MovieCard/MovieCardContent.js +75 -0
- package/dist/MovieCard/MovieCardContent.js.map +1 -0
- package/dist/MovieCard/index.d.ts +6 -0
- package/dist/MovieCard/index.js +5 -0
- package/dist/MovieCard/index.js.map +1 -0
- package/dist/Rating/CircleRating.d.ts +20 -0
- package/dist/Rating/CircleRating.js +75 -0
- package/dist/Rating/CircleRating.js.map +1 -0
- package/dist/Rating/Rating.d.ts +23 -0
- package/dist/Rating/Rating.js +41 -0
- package/dist/Rating/Rating.js.map +1 -0
- package/dist/Rating/StarsRating.d.ts +18 -0
- package/dist/Rating/StarsRating.js +47 -0
- package/dist/Rating/StarsRating.js.map +1 -0
- package/dist/Rating/index.d.ts +2 -0
- package/dist/Rating/index.js +5 -0
- package/dist/Rating/index.js.map +1 -0
- package/dist/Skeleton/Skeleton.d.ts +23 -0
- package/dist/{chunk-FJZK3PY6.js → Skeleton/Skeleton.js} +6 -7
- package/dist/Skeleton/Skeleton.js.map +1 -0
- package/dist/Skeleton/index.d.ts +3 -0
- package/dist/Skeleton/index.js +5 -0
- package/dist/Skeleton/index.js.map +1 -0
- package/dist/Spinner/Spinner.d.ts +8 -0
- package/dist/Spinner/Spinner.js +20 -0
- package/dist/Spinner/Spinner.js.map +1 -0
- package/dist/Spinner/index.d.ts +2 -0
- package/dist/Spinner/index.js +5 -0
- package/dist/Spinner/index.js.map +1 -0
- package/dist/Tabs/Tabs.d.ts +34 -0
- package/dist/Tabs/Tabs.js +47 -0
- package/dist/Tabs/Tabs.js.map +1 -0
- package/dist/Tabs/TabsContext.d.ts +21 -0
- package/dist/Tabs/TabsContext.js +16 -0
- package/dist/Tabs/TabsContext.js.map +1 -0
- package/dist/Tabs/TabsList.d.ts +7 -0
- package/dist/Tabs/TabsList.js +51 -0
- package/dist/Tabs/TabsList.js.map +1 -0
- package/dist/Tabs/TabsListContext.d.ts +16 -0
- package/dist/Tabs/TabsListContext.js +16 -0
- package/dist/Tabs/TabsListContext.js.map +1 -0
- package/dist/Tabs/TabsPanel.d.ts +17 -0
- package/dist/Tabs/TabsPanel.js +26 -0
- package/dist/Tabs/TabsPanel.js.map +1 -0
- package/dist/Tabs/TabsTrigger.d.ts +12 -0
- package/dist/Tabs/TabsTrigger.js +124 -0
- package/dist/Tabs/TabsTrigger.js.map +1 -0
- package/dist/Tabs/index.d.ts +6 -0
- package/dist/Tabs/index.js +5 -0
- package/dist/Tabs/index.js.map +1 -0
- package/dist/Talent/Talent.d.ts +19 -0
- package/dist/Talent/Talent.js +69 -0
- package/dist/Talent/Talent.js.map +1 -0
- package/dist/Talent/index.d.ts +4 -0
- package/dist/Talent/index.js +5 -0
- package/dist/Talent/index.js.map +1 -0
- package/dist/TrailerCard/TrailerCard.d.ts +15 -0
- package/dist/TrailerCard/TrailerCard.js +86 -0
- package/dist/TrailerCard/TrailerCard.js.map +1 -0
- package/dist/TrailerCard/index.d.ts +2 -0
- package/dist/TrailerCard/index.js +5 -0
- package/dist/TrailerCard/index.js.map +1 -0
- package/dist/Typography/Typography.d.ts +17 -0
- package/dist/Typography/Typography.js +55 -0
- package/dist/Typography/Typography.js.map +1 -0
- package/dist/Typography/index.d.ts +2 -0
- package/dist/Typography/index.js +5 -0
- package/dist/Typography/index.js.map +1 -0
- package/dist/index.d.ts +31 -372
- package/dist/index.js +50 -1099
- package/dist/index.js.map +1 -1
- package/dist/next/Button/Button.d.ts +9 -0
- package/dist/{chunk-ZTQU4GMY.js → next/Button/Button.js} +13 -10
- package/dist/next/Button/Button.js.map +1 -0
- package/dist/next/Button/Button.types.d.ts +26 -0
- package/dist/next/Button/Button.types.js +1 -0
- package/dist/next/Button/Button.types.js.map +1 -0
- package/dist/next/Button/index.d.ts +6 -0
- package/dist/next/Button/index.js +5 -0
- package/dist/next/Button/index.js.map +1 -0
- package/dist/next/HeroImage/HeroImage.d.ts +11 -0
- package/dist/next/HeroImage/HeroImage.js +44 -0
- package/dist/next/HeroImage/HeroImage.js.map +1 -0
- package/dist/next/HeroImage/index.d.ts +2 -0
- package/dist/next/HeroImage/index.js +5 -0
- package/dist/next/HeroImage/index.js.map +1 -0
- package/dist/next/Image/NextImage.d.ts +8 -0
- package/dist/next/Image/NextImage.js +84 -0
- package/dist/next/Image/NextImage.js.map +1 -0
- package/dist/next/Image/NextImage.types.d.ts +13 -0
- package/dist/next/Image/NextImage.types.js +1 -0
- package/dist/next/Image/NextImage.types.js.map +1 -0
- package/dist/next/Image/index.d.ts +5 -0
- package/dist/next/Image/index.js +5 -0
- package/dist/next/Image/index.js.map +1 -0
- package/dist/next/MovieCard/MovieCard.d.ts +9 -0
- package/dist/next/MovieCard/MovieCard.js +44 -0
- package/dist/next/MovieCard/MovieCard.js.map +1 -0
- package/dist/next/MovieCard/MovieCard.types.d.ts +15 -0
- package/dist/next/MovieCard/MovieCard.types.js +1 -0
- package/dist/next/MovieCard/MovieCard.types.js.map +1 -0
- package/dist/next/MovieCard/MovieCardContent.d.ts +19 -0
- package/dist/next/MovieCard/MovieCardContent.js +79 -0
- package/dist/next/MovieCard/MovieCardContent.js.map +1 -0
- package/dist/next/MovieCard/index.d.ts +6 -0
- package/dist/next/MovieCard/index.js +5 -0
- package/dist/next/MovieCard/index.js.map +1 -0
- package/dist/next/index.d.ts +14 -60
- package/dist/next/index.js +10 -270
- package/dist/next/index.js.map +1 -1
- package/dist/react-router/Button/Button.d.ts +9 -0
- package/dist/react-router/Button/Button.js +52 -0
- package/dist/react-router/Button/Button.js.map +1 -0
- package/dist/react-router/Button/Button.types.d.ts +24 -0
- package/dist/react-router/Button/Button.types.js +1 -0
- package/dist/react-router/Button/Button.types.js.map +1 -0
- package/dist/react-router/Button/index.d.ts +6 -0
- package/dist/react-router/Button/index.js +5 -0
- package/dist/react-router/Button/index.js.map +1 -0
- package/dist/react-router/MovieCard/MovieCard.d.ts +9 -0
- package/dist/react-router/MovieCard/MovieCard.js +42 -0
- package/dist/react-router/MovieCard/MovieCard.js.map +1 -0
- package/dist/react-router/MovieCard/MovieCard.types.d.ts +15 -0
- package/dist/react-router/MovieCard/MovieCard.types.js +1 -0
- package/dist/react-router/MovieCard/MovieCard.types.js.map +1 -0
- package/dist/react-router/MovieCard/index.d.ts +6 -0
- package/dist/react-router/MovieCard/index.js +5 -0
- package/dist/react-router/MovieCard/index.js.map +1 -0
- package/dist/react-router/index.d.ts +8 -17
- package/dist/react-router/index.js +6 -7
- package/dist/react-router/index.js.map +1 -1
- package/dist/styles.css +2 -0
- package/package.json +4 -4
- package/dist/chunk-6DP3KZQG.js +0 -214
- package/dist/chunk-6DP3KZQG.js.map +0 -1
- package/dist/chunk-6FBMTGXQ.js +0 -119
- package/dist/chunk-6FBMTGXQ.js.map +0 -1
- package/dist/chunk-7IAJQE27.js +0 -228
- package/dist/chunk-7IAJQE27.js.map +0 -1
- package/dist/chunk-DGJI4VNO.js +0 -3
- package/dist/chunk-DGJI4VNO.js.map +0 -1
- package/dist/chunk-FJZK3PY6.js.map +0 -1
- package/dist/chunk-IUGKH376.js.map +0 -1
- package/dist/chunk-RZU2FFBW.js.map +0 -1
- package/dist/chunk-ZTQU4GMY.js.map +0 -1
- package/dist/index.css +0 -1313
- package/dist/index.css.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,373 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
1
|
+
export { default as Avatar, AvatarProps, AvatarSize } from './Avatar/Avatar.js';
|
|
2
|
+
export { default as Badge, BadgeProps, BadgeSize, BadgeVariant } from './Badge/Badge.js';
|
|
3
|
+
export { default as Button } from './react-router/Button/Button.js';
|
|
4
|
+
export { ButtonProps } from './react-router/Button/Button.types.js';
|
|
5
|
+
export { default as Card, CardProps, CardVariant } from './Card/Card.js';
|
|
6
|
+
export { default as Icon, IconName, IconProps, IconSize } from './Icon/Icon.js';
|
|
7
|
+
export { default as IconButton, IconButtonProps } from './IconButton/IconButton.js';
|
|
8
|
+
export { AspectRatio, default as Image, ImageProps, ImageState } from './Image/Image.js';
|
|
9
|
+
export { default as HeroImage, HeroImageProps } from './HeroImage/HeroImage.js';
|
|
10
|
+
export { default as Modal, ModalProps } from './Modal/Modal.js';
|
|
11
|
+
export { default as Rating, RatingProps, RatingSize, RatingVariant } from './Rating/Rating.js';
|
|
12
|
+
export { default as MovieCard } from './react-router/MovieCard/MovieCard.js';
|
|
13
|
+
export { MovieCardProps } from './react-router/MovieCard/MovieCard.types.js';
|
|
14
|
+
export { default as TrailerCard, TrailerCardProps } from './TrailerCard/TrailerCard.js';
|
|
15
|
+
export { default as Carousel, CarouselArrowPosition, CarouselProps, CarouselVariant } from './Carousel/Carousel.js';
|
|
16
|
+
export { default as CarouselItem, CarouselItemProps } from './Carousel/CarouselItem.js';
|
|
17
|
+
export { default as CarouselNavigation, CarouselNavigationPosition, CarouselNavigationProps } from './Carousel/CarouselNavigation.js';
|
|
18
|
+
export { default as CarouselPagination, CarouselPaginationProps } from './Carousel/CarouselPagination.js';
|
|
19
|
+
export { default as CarouselCounter, CarouselCounterProps } from './Carousel/CarouselCounter.js';
|
|
20
|
+
export { default as CarouselLoading, CarouselLoadingProps } from './Carousel/CarouselLoading.js';
|
|
21
|
+
export { default as Tabs, TabsProps, TabsVariant } from './Tabs/Tabs.js';
|
|
22
|
+
export { default as Skeleton, SkeletonProps } from './Skeleton/Skeleton.js';
|
|
23
|
+
export { default as Talent, TalentProps } from './Talent/Talent.js';
|
|
24
|
+
export { default as Typography, TypographyProps, TypographyVariant } from './Typography/Typography.js';
|
|
25
|
+
export { default as Spinner, SpinnerProps } from './Spinner/Spinner.js';
|
|
26
|
+
import 'react/jsx-runtime';
|
|
27
|
+
import 'react';
|
|
10
28
|
import 'react-router-dom';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
src?: string | null;
|
|
16
|
-
/** Alt text for the image */
|
|
17
|
-
alt: string;
|
|
18
|
-
/** Size of the avatar */
|
|
19
|
-
size?: AvatarSize;
|
|
20
|
-
/** Fallback initials to display when no image */
|
|
21
|
-
initials?: string;
|
|
22
|
-
/** For testing purposes */
|
|
23
|
-
testId?: string;
|
|
24
|
-
}
|
|
25
|
-
declare function Avatar({ className, src, alt, size, initials, testId, ...rest }: Readonly<AvatarProps>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
|
|
27
|
-
type BadgeVariant = 'default' | 'secondary' | 'outline' | 'destructive';
|
|
28
|
-
type BadgeSize = 'sm' | 'md' | 'lg';
|
|
29
|
-
interface BadgeProps {
|
|
30
|
-
/** Badge content */
|
|
31
|
-
children: ReactNode;
|
|
32
|
-
/** Visual variant */
|
|
33
|
-
variant?: BadgeVariant;
|
|
34
|
-
/** Size */
|
|
35
|
-
size?: BadgeSize;
|
|
36
|
-
/** Optional icon (left) */
|
|
37
|
-
icon?: IconName;
|
|
38
|
-
/** Custom text color class (overrides variant color) */
|
|
39
|
-
textClassName?: string;
|
|
40
|
-
/** Additional class name */
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
declare function Badge({ children, variant, size, icon, textClassName, className, }: Readonly<BadgeProps>): react_jsx_runtime.JSX.Element;
|
|
44
|
-
|
|
45
|
-
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
46
|
-
/** Icon name to display */
|
|
47
|
-
icon: IconName;
|
|
48
|
-
/** Visual variant of the button */
|
|
49
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'outline';
|
|
50
|
-
/** Size of the button */
|
|
51
|
-
size?: 'sm' | 'md' | 'lg';
|
|
52
|
-
/** Accessible label for screen readers */
|
|
53
|
-
'aria-label': string;
|
|
54
|
-
}
|
|
55
|
-
declare function IconButton({ className, icon, variant, size, disabled, ...rest }: Readonly<IconButtonProps>): react_jsx_runtime.JSX.Element;
|
|
56
|
-
|
|
57
|
-
interface HeroImageProps {
|
|
58
|
-
/** Backdrop path from TMDB API */
|
|
59
|
-
backdropPath?: string | null;
|
|
60
|
-
/** Alt text for the image */
|
|
61
|
-
title?: string | null;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* HeroImage component for displaying optimized backdrop images with responsive sources
|
|
65
|
-
* and gradient overlay. Used in hero sections across the application.
|
|
66
|
-
*/
|
|
67
|
-
declare function HeroImage({ backdropPath, title }: Readonly<HeroImageProps>): react_jsx_runtime.JSX.Element;
|
|
68
|
-
|
|
69
|
-
interface ModalProps {
|
|
70
|
-
/** Whether the modal is open */
|
|
71
|
-
isOpen: boolean;
|
|
72
|
-
/** Callback when modal should close (ESC key, backdrop click) */
|
|
73
|
-
onClose: () => void;
|
|
74
|
-
/** Modal content */
|
|
75
|
-
children: ReactNode;
|
|
76
|
-
/** Accessible label for screen readers (required) */
|
|
77
|
-
'aria-label': string;
|
|
78
|
-
/** Additional class name for the dialog element */
|
|
79
|
-
className?: string;
|
|
80
|
-
/** Optional callback for backdrop click. Falls back to onClose if not provided. */
|
|
81
|
-
onOverlayClick?: () => void;
|
|
82
|
-
}
|
|
83
|
-
declare function Modal({ isOpen, onClose, children, 'aria-label': ariaLabel, className, onOverlayClick, }: Readonly<ModalProps>): react_jsx_runtime.JSX.Element;
|
|
84
|
-
|
|
85
|
-
type RatingVariant = 'circle' | 'stars';
|
|
86
|
-
type RatingSize = 'sm' | 'md' | 'lg';
|
|
87
|
-
interface RatingProps {
|
|
88
|
-
/** Rating value (0-10 by default, or 0-100 if max=100) */
|
|
89
|
-
value: number;
|
|
90
|
-
/** Maximum value (default: 10 for TMDB scores) */
|
|
91
|
-
max?: number;
|
|
92
|
-
/** Visual variant */
|
|
93
|
-
variant?: RatingVariant;
|
|
94
|
-
/** Size of the rating */
|
|
95
|
-
size?: RatingSize;
|
|
96
|
-
/** Show the numeric value */
|
|
97
|
-
showValue?: boolean;
|
|
98
|
-
/** Custom class for the background track circle (circle variant only) */
|
|
99
|
-
trackClassName?: string;
|
|
100
|
-
/** Additional class name */
|
|
101
|
-
className?: string;
|
|
102
|
-
}
|
|
103
|
-
declare function Rating({ value, max, variant, size, showValue, trackClassName, className, }: Readonly<RatingProps>): react_jsx_runtime.JSX.Element;
|
|
104
|
-
|
|
105
|
-
interface TrailerCardProps {
|
|
106
|
-
/** YouTube video ID */
|
|
107
|
-
videoKey: string;
|
|
108
|
-
/** Trailer title/name */
|
|
109
|
-
title: string;
|
|
110
|
-
/** Video type (Trailer, Clip, Featurette, etc.) */
|
|
111
|
-
type?: string;
|
|
112
|
-
/** Additional className for the card */
|
|
113
|
-
className?: string;
|
|
114
|
-
}
|
|
115
|
-
declare function TrailerCard({ videoKey, title, type, className, }: Readonly<TrailerCardProps>): react_jsx_runtime.JSX.Element;
|
|
116
|
-
|
|
117
|
-
/** Carousel visual variant */
|
|
118
|
-
type CarouselVariant = 'standard' | 'hero' | 'lightbox';
|
|
119
|
-
/** Arrow position for navigation buttons */
|
|
120
|
-
type CarouselArrowPosition = 'sides' | 'bottom-right';
|
|
121
|
-
interface CarouselProps {
|
|
122
|
-
/** Carousel items */
|
|
123
|
-
children?: ReactNode;
|
|
124
|
-
/** Visual variant */
|
|
125
|
-
variant?: CarouselVariant;
|
|
126
|
-
/** Show pagination dots (ignored for lightbox — counter is shown instead) */
|
|
127
|
-
showPagination?: boolean;
|
|
128
|
-
/** Show navigation arrows */
|
|
129
|
-
showArrows?: boolean;
|
|
130
|
-
/** Arrow position */
|
|
131
|
-
arrowPosition?: CarouselArrowPosition;
|
|
132
|
-
/** Gap between items in pixels */
|
|
133
|
-
gap?: number;
|
|
134
|
-
/** Additional class name */
|
|
135
|
-
className?: string;
|
|
136
|
-
/** Class name for the hero controls container (pagination + arrows) — use to constrain width/padding */
|
|
137
|
-
heroControlsClassName?: string;
|
|
138
|
-
/** Error message to display instead of carousel content */
|
|
139
|
-
errorMessage?: string;
|
|
140
|
-
/** Apply rounded corners to viewport */
|
|
141
|
-
rounded?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Initial scroll index — jumps to this item on mount without animation.
|
|
144
|
-
* Use with key={index} on Carousel for URL-based navigation (lightbox).
|
|
145
|
-
*/
|
|
146
|
-
initialIndex?: number;
|
|
147
|
-
/**
|
|
148
|
-
* Override internal prev navigation (e.g. navigate to previous URL in lightbox).
|
|
149
|
-
* When provided, replaces internal scrollPrev.
|
|
150
|
-
*/
|
|
151
|
-
onPrev?: () => void;
|
|
152
|
-
/**
|
|
153
|
-
* Override internal next navigation (e.g. navigate to next URL in lightbox).
|
|
154
|
-
* When provided, replaces internal scrollNext.
|
|
155
|
-
*/
|
|
156
|
-
onNext?: () => void;
|
|
157
|
-
/**
|
|
158
|
-
* When true, all internal scroll transitions are instant (no smooth animation).
|
|
159
|
-
* Use for lightbox with URL-based navigation where the Carousel remounts each time.
|
|
160
|
-
*/
|
|
161
|
-
disableAnimation?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* When true, user-initiated wheel/trackpad scroll is blocked on the container,
|
|
164
|
-
* and currentIndex is driven entirely by initialIndex (no scroll tracking).
|
|
165
|
-
* Use for URL-driven carousels (lightbox) to avoid scroll/resize desync.
|
|
166
|
-
*/
|
|
167
|
-
disableScroll?: boolean;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Carousel component with horizontal scroll, pagination, and navigation.
|
|
171
|
-
* Supports three variants:
|
|
172
|
-
* - standard: multi-items horizontal scroll
|
|
173
|
-
* - hero: single panoramic item with snap
|
|
174
|
-
* - lightbox: single item per view, ghost arrows, counter (for PhotoViewer)
|
|
175
|
-
*/
|
|
176
|
-
declare function Carousel({ children, variant, showPagination, showArrows, arrowPosition, gap, className, heroControlsClassName, errorMessage, rounded, initialIndex, onPrev, onNext, disableAnimation, disableScroll, }: Readonly<CarouselProps>): react_jsx_runtime.JSX.Element;
|
|
177
|
-
|
|
178
|
-
interface CarouselItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
179
|
-
/** Whether this is a hero item (full width with snap) */
|
|
180
|
-
isHero?: boolean;
|
|
181
|
-
/** Whether this is a lightbox item (full width with snap, same layout as hero) */
|
|
182
|
-
isLightbox?: boolean;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Wrapper for individual carousel items.
|
|
186
|
-
* For hero and lightbox variants, items take full width and snap to center.
|
|
187
|
-
*/
|
|
188
|
-
declare function CarouselItem({ children, isHero, isLightbox, className, ...rest }: Readonly<CarouselItemProps>): react_jsx_runtime.JSX.Element;
|
|
189
|
-
|
|
190
|
-
/** Position mode for navigation buttons */
|
|
191
|
-
type CarouselNavigationPosition = 'inline' | 'sides' | 'sides-inset';
|
|
192
|
-
interface CarouselNavigationProps {
|
|
193
|
-
/** Callback for previous button */
|
|
194
|
-
onPrev: () => void;
|
|
195
|
-
/** Callback for next button */
|
|
196
|
-
onNext: () => void;
|
|
197
|
-
/** Whether previous is disabled */
|
|
198
|
-
canPrev: boolean;
|
|
199
|
-
/** Whether next is disabled */
|
|
200
|
-
canNext: boolean;
|
|
201
|
-
/** Button size */
|
|
202
|
-
size?: 'sm' | 'md';
|
|
203
|
-
/** Position mode */
|
|
204
|
-
position?: CarouselNavigationPosition;
|
|
205
|
-
/** Icon button visual variant — ghost for lightbox (white arrows on dark bg) */
|
|
206
|
-
iconVariant?: 'secondary' | 'ghost';
|
|
207
|
-
/** Additional class name */
|
|
208
|
-
className?: string;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Navigation buttons for Carousel (previous/next).
|
|
212
|
-
* - inline: side by side (for bottom-right layout)
|
|
213
|
-
* - sides: absolute, centered on the carousel edges (overhangs container — standard carousel)
|
|
214
|
-
* - sides-inset: absolute, inside the container with padding (lightbox, fullscreen contexts)
|
|
215
|
-
*/
|
|
216
|
-
declare function CarouselNavigation({ onPrev, onNext, canPrev, canNext, size, position, iconVariant, className, }: Readonly<CarouselNavigationProps>): react_jsx_runtime.JSX.Element;
|
|
217
|
-
|
|
218
|
-
interface CarouselPaginationProps {
|
|
219
|
-
/** Total number of items */
|
|
220
|
-
total: number;
|
|
221
|
-
/** Current active index */
|
|
222
|
-
current: number;
|
|
223
|
-
/** Use light colors (for dark backgrounds) */
|
|
224
|
-
light?: boolean;
|
|
225
|
-
/** Additional class name */
|
|
226
|
-
className?: string;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Pagination dots for Carousel.
|
|
230
|
-
* Active dot is displayed as a capsule (wider), inactive dots are circles.
|
|
231
|
-
* Supports light mode for dark backgrounds (white dots).
|
|
232
|
-
*/
|
|
233
|
-
declare function CarouselPagination({ total, current, light, className, }: Readonly<CarouselPaginationProps>): react_jsx_runtime.JSX.Element | null;
|
|
234
|
-
|
|
235
|
-
interface CarouselCounterProps {
|
|
236
|
-
/** Current index (0-based) — displayed as 1-based */
|
|
237
|
-
current: number;
|
|
238
|
-
/** Total number of items */
|
|
239
|
-
total: number;
|
|
240
|
-
/** Additional class name */
|
|
241
|
-
className?: string;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* Counter for Carousel lightbox variant.
|
|
245
|
-
* Displays current position as "3 / 20" (1-indexed).
|
|
246
|
-
*/
|
|
247
|
-
declare function CarouselCounter({ current, total, className, }: Readonly<CarouselCounterProps>): react_jsx_runtime.JSX.Element;
|
|
248
|
-
|
|
249
|
-
interface CarouselLoadingProps {
|
|
250
|
-
/** Number of skeleton cards to display */
|
|
251
|
-
count?: number;
|
|
252
|
-
/** Width of each card in pixels */
|
|
253
|
-
cardWidth?: number;
|
|
254
|
-
/** Height of each card in pixels */
|
|
255
|
-
cardHeight?: number;
|
|
256
|
-
/** Show skeleton for title */
|
|
257
|
-
showTitle?: boolean;
|
|
258
|
-
/** Show skeleton for subtitle/date */
|
|
259
|
-
showSubtitle?: boolean;
|
|
260
|
-
/** Apply rounded corners to skeleton */
|
|
261
|
-
rounded?: boolean;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* CarouselLoading - Loading state for carousel with skeleton cards
|
|
265
|
-
*
|
|
266
|
-
* Displays a horizontal scrollable list of skeleton placeholders
|
|
267
|
-
* matching the structure of MovieCard components.
|
|
268
|
-
*/
|
|
269
|
-
declare function CarouselLoading({ count, cardWidth, cardHeight, showTitle, showSubtitle, rounded, }: Readonly<CarouselLoadingProps>): react_jsx_runtime.JSX.Element;
|
|
270
|
-
|
|
271
|
-
type TabsListProps = HTMLAttributes<HTMLDivElement>;
|
|
272
|
-
declare function TabsList({ className, children, ...rest }: Readonly<TabsListProps>): react_jsx_runtime.JSX.Element;
|
|
273
|
-
|
|
274
|
-
interface TabsPanelProps extends HTMLAttributes<HTMLDivElement> {
|
|
275
|
-
/** Value that identifies this panel (must match a Tabs.Trigger value) */
|
|
276
|
-
value: string;
|
|
277
|
-
/** Panel content */
|
|
278
|
-
children: ReactNode;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Tabpanel for Tabs component.
|
|
282
|
-
* Automatically hidden/shown based on active tab value.
|
|
283
|
-
* Provides proper ARIA attributes for accessibility.
|
|
284
|
-
*/
|
|
285
|
-
declare function TabsPanel({ value, children, ...rest }: Readonly<TabsPanelProps>): react_jsx_runtime.JSX.Element;
|
|
286
|
-
|
|
287
|
-
interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
288
|
-
/** Value that identifies this tab */
|
|
289
|
-
value: string;
|
|
290
|
-
/** Optional icon component */
|
|
291
|
-
icon?: ReactNode;
|
|
292
|
-
}
|
|
293
|
-
declare function TabsTrigger({ value, icon, disabled, className, children, ...rest }: Readonly<TabsTriggerProps>): react_jsx_runtime.JSX.Element;
|
|
294
|
-
|
|
295
|
-
/** Tabs visual variant */
|
|
296
|
-
type TabsVariant = 'underline' | 'pills';
|
|
297
|
-
interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
298
|
-
/** Default active tab value (uncontrolled) */
|
|
299
|
-
defaultValue?: string;
|
|
300
|
-
/** Controlled active tab value */
|
|
301
|
-
value?: string;
|
|
302
|
-
/** Callback when tab changes */
|
|
303
|
-
onValueChange?: (value: string) => void;
|
|
304
|
-
/** Visual variant */
|
|
305
|
-
variant?: TabsVariant;
|
|
306
|
-
/** Optional prefix for ID generation (e.g., "popular" generates ids: popular-{value}) */
|
|
307
|
-
prefix?: string;
|
|
308
|
-
}
|
|
309
|
-
/**
|
|
310
|
-
* Tabs component for navigation between content sections.
|
|
311
|
-
* Implements ARIA tabs pattern for accessibility.
|
|
312
|
-
* Supports underline and pills variants.
|
|
313
|
-
* Uses Compound Component pattern.
|
|
314
|
-
*/
|
|
315
|
-
declare function Tabs({ defaultValue, value, onValueChange, variant, prefix, className, children, ...rest }: Readonly<TabsProps>): react_jsx_runtime.JSX.Element;
|
|
316
|
-
declare namespace Tabs {
|
|
317
|
-
var List: typeof TabsList;
|
|
318
|
-
var Trigger: typeof TabsTrigger;
|
|
319
|
-
var Panel: typeof TabsPanel;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
interface SkeletonProps extends ComponentProps<'div'> {
|
|
323
|
-
/** Shape variant */
|
|
324
|
-
variant?: 'rectangle' | 'circle' | 'line';
|
|
325
|
-
/** Width (Tailwind class or custom value) */
|
|
326
|
-
width?: string;
|
|
327
|
-
/** Height (Tailwind class or custom value) */
|
|
328
|
-
height?: string;
|
|
329
|
-
/** Aspect ratio (e.g., "2/3", "16/9", "1/1") */
|
|
330
|
-
aspectRatio?: string;
|
|
331
|
-
/** Apply rounded corners (default: true for rectangle/line, always true for circle) */
|
|
332
|
-
rounded?: boolean;
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* Skeleton - Atomic loading placeholder component
|
|
336
|
-
*
|
|
337
|
-
* Composable primitive for building loading states with shimmer effect.
|
|
338
|
-
*/
|
|
339
|
-
declare function Skeleton({ variant, width, height, aspectRatio, rounded, className, ...rest }: Readonly<SkeletonProps>): react_jsx_runtime.JSX.Element;
|
|
340
|
-
|
|
341
|
-
interface TalentProps extends HTMLAttributes<HTMLDivElement> {
|
|
342
|
-
/** Full name of the talent (actor, director, writer, etc.) */
|
|
343
|
-
name?: string;
|
|
344
|
-
/** Role or job title (e.g., "Director", "Screenplay", "Character Name") */
|
|
345
|
-
role?: string;
|
|
346
|
-
/** Optional profile image URL */
|
|
347
|
-
imageSrc?: string;
|
|
348
|
-
/** Layout variant - vertical for crew/cast cards, horizontal for lists */
|
|
349
|
-
variant?: 'vertical' | 'horizontal';
|
|
350
|
-
/** Avatar size */
|
|
351
|
-
size?: AvatarSize;
|
|
352
|
-
}
|
|
353
|
-
declare function Talent({ name, role, imageSrc, variant, size, className, ...rest }: Readonly<TalentProps>): react_jsx_runtime.JSX.Element;
|
|
354
|
-
|
|
355
|
-
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-lg' | 'lead' | 'caption' | 'caption-xs' | 'label' | 'muted' | 'blockquote';
|
|
356
|
-
interface TypographyProps extends HTMLAttributes<HTMLElement> {
|
|
357
|
-
/** Visual style variant */
|
|
358
|
-
variant: TypographyVariant;
|
|
359
|
-
/** Override semantic HTML tag */
|
|
360
|
-
as?: ElementType;
|
|
361
|
-
/** Additional CSS classes */
|
|
362
|
-
className?: string;
|
|
363
|
-
/** Content */
|
|
364
|
-
children: ReactNode;
|
|
365
|
-
}
|
|
366
|
-
declare function Typography({ variant, as, className, children, ...rest }: Readonly<TypographyProps>): react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
367
|
-
|
|
368
|
-
interface SpinnerProps {
|
|
369
|
-
className?: string;
|
|
370
|
-
}
|
|
371
|
-
declare function Spinner({ className }: Readonly<SpinnerProps>): react_jsx_runtime.JSX.Element;
|
|
372
|
-
|
|
373
|
-
export { Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeVariant, Carousel, type CarouselArrowPosition, CarouselCounter, type CarouselCounterProps, CarouselItem, type CarouselItemProps, CarouselLoading, type CarouselLoadingProps, CarouselNavigation, type CarouselNavigationPosition, type CarouselNavigationProps, CarouselPagination, type CarouselPaginationProps, type CarouselProps, type CarouselVariant, HeroImage, type HeroImageProps, IconButton, type IconButtonProps, IconName, Modal, type ModalProps, Rating, type RatingProps, type RatingSize, type RatingVariant, Skeleton, type SkeletonProps, Spinner, type SpinnerProps, Tabs, type TabsProps, type TabsVariant, Talent, type TalentProps, TrailerCard, type TrailerCardProps, Typography, type TypographyProps, type TypographyVariant };
|
|
29
|
+
import './MovieCard/MovieCard.utils.js';
|
|
30
|
+
import './Tabs/TabsList.js';
|
|
31
|
+
import './Tabs/TabsPanel.js';
|
|
32
|
+
import './Tabs/TabsTrigger.js';
|