1+ import Activity from "./Activity.svelte" ;
2+ import ActivityItem from "./ActivityItem.svelte" ;
3+ import Group from "./Group.svelte" ;
4+ import GroupItem from "./GroupItem.svelte" ;
5+ import Timeline from "./Timeline.svelte" ;
6+ import TimelineItem from "./TimelineItem.svelte" ;
7+ import { activity , activityitem , group , groupitem , timeline , timelineitem } from './theme' ;
8+ import type { HTMLOlAttributes , HTMLLiAttributes } from 'svelte/elements' ;
9+ import type { Snippet } from 'svelte' ;
10+
11+ interface ActivityType {
12+ name : HTMLElement | string ;
13+ date : Date | string ;
14+ src : string ;
15+ alt : string ;
16+ activity ?: HTMLElement | string ;
17+ }
18+
19+ interface GroupTimelineType {
20+ name : string | HTMLElement ;
21+ src : string ;
22+ alt : string ;
23+ href ?: string ;
24+ isPrivate ?: boolean ;
25+ comment ?: string | HTMLElement ;
26+ }
27+
28+ interface ActivityProps extends HTMLOlAttributes {
29+ children : Snippet ;
30+ }
31+
32+ interface ActivityItemProps extends HTMLLiAttributes {
33+ activities : ActivityType [ ] ;
34+ liClass ?: string ;
35+ spanClass ?: string ;
36+ imgClass ?: string ;
37+ outerDivClass ?: string ;
38+ innerDivClass ?: string ;
39+ timeClass ?: string ;
40+ titleClass ?: string ;
41+ textClass ?: string ;
42+ }
43+
44+ interface GroupProps extends HTMLOlAttributes {
45+ children : Snippet ;
46+ divClass ?: string ;
47+ timeClass ?: string ;
48+ date ?: Date | string ;
49+ olClass ?: string ;
50+ }
51+
52+ interface GroupItemProps extends HTMLLiAttributes {
53+ timelines : GroupTimelineType [ ] ;
54+ aClass ?: string ;
55+ imgClass ?: string ;
56+ divClass ?: string ;
57+ titleClass ?: string ;
58+ spanClass ?: string ;
59+ }
60+
61+ interface TimelineProps extends HTMLOlAttributes {
62+ children : Snippet ;
63+ order ?: 'default' | 'vertical' | 'horizontal' | 'activity' | 'group' ;
64+ }
65+
66+ interface TimelineItemProps extends HTMLLiAttributes {
67+ children : Snippet ;
68+ orientationSlot ?: Snippet ;
69+ title : string ;
70+ date : string ;
71+ svgClass ?: string ;
72+ liClass ?: string ;
73+ divClass ?: string ;
74+ timeClass ?: string ;
75+ h3Class ?: string ;
76+ }
77+
78+ export {
79+ Activity ,
80+ ActivityItem ,
81+ Group ,
82+ GroupItem ,
83+ Timeline ,
84+ TimelineItem ,
85+ activity , activityitem , group , groupitem , timeline , timelineitem ,
86+ type ActivityType , type ActivityProps , type ActivityItemProps , type GroupTimelineType , type GroupProps , type GroupItemProps , type TimelineProps , type TimelineItemProps
87+ }
0 commit comments