@qwanyx/stack 0.2.93 → 0.2.94
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/components/NetflixStack/NetflixCard.d.ts +6 -0
- package/dist/components/NetflixStack/NetflixDetail.d.ts +6 -0
- package/dist/components/NetflixStack/NetflixLane.d.ts +6 -0
- package/dist/components/NetflixStack/NetflixStack.d.ts +6 -0
- package/dist/components/NetflixStack/index.d.ts +8 -0
- package/dist/components/NetflixStack/types.d.ts +34 -0
- package/dist/index.cjs.js +37 -37
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +4235 -3753
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Netflix Lane Component
|
|
3
|
+
* Horizontal scrollable row with Netflix-style arrows
|
|
4
|
+
*/
|
|
5
|
+
import { NetflixLaneProps } from './types';
|
|
6
|
+
export declare function NetflixLane({ title, nodes, cardAspectRatio, onNodeClick }: NetflixLaneProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Netflix Stack Component
|
|
3
|
+
* Netflix-like browsing experience with horizontal lanes
|
|
4
|
+
*/
|
|
5
|
+
import { NetflixStackProps } from './types';
|
|
6
|
+
export declare function NetflixStack({ nodes, lanes, cardAspectRatio, onNodeClick, }: NetflixStackProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Netflix Stack - Netflix-like browsing experience
|
|
3
|
+
*/
|
|
4
|
+
export { NetflixStack } from './NetflixStack';
|
|
5
|
+
export { NetflixLane } from './NetflixLane';
|
|
6
|
+
export { NetflixCard } from './NetflixCard';
|
|
7
|
+
export { NetflixDetail } from './NetflixDetail';
|
|
8
|
+
export type { NetflixStackProps, NetflixLaneProps, NetflixCardProps, NetflixDetailProps, LaneConfig, } from './types';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Netflix Stack Types
|
|
3
|
+
*/
|
|
4
|
+
import { GraphNode } from '../../types';
|
|
5
|
+
export interface LaneConfig {
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
filter: (node: GraphNode) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface NetflixStackProps {
|
|
11
|
+
nodes: GraphNode[];
|
|
12
|
+
lanes: LaneConfig[];
|
|
13
|
+
cardAspectRatio?: '1:1' | '2:3' | '16:9';
|
|
14
|
+
onNodeClick?: (node: GraphNode) => void;
|
|
15
|
+
}
|
|
16
|
+
export interface NetflixLaneProps {
|
|
17
|
+
title: string;
|
|
18
|
+
nodes: GraphNode[];
|
|
19
|
+
cardAspectRatio: '1:1' | '2:3' | '16:9';
|
|
20
|
+
onNodeClick: (node: GraphNode) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface NetflixCardProps {
|
|
23
|
+
node: GraphNode;
|
|
24
|
+
aspectRatio: '1:1' | '2:3' | '16:9';
|
|
25
|
+
onClick: () => void;
|
|
26
|
+
}
|
|
27
|
+
export interface NetflixDetailProps {
|
|
28
|
+
node: GraphNode;
|
|
29
|
+
onClose: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare function getNodeImage(node: GraphNode): string | undefined;
|
|
32
|
+
export declare function getNodeSubtitle(node: GraphNode): string | undefined;
|
|
33
|
+
export declare function getNodeDescription(node: GraphNode): string | undefined;
|
|
34
|
+
export declare function getNodeMeta(node: GraphNode): string;
|