@shivamjadhav28/timeline-track 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shivam Jadhav
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,86 @@
1
+ # Timeline Track
2
+
3
+ Enterprise-ready React timeline component for projects and milestones, with status-aware colors and range navigation.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm i @shivamjadhav/timeline-track
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```tsx
14
+ import { TimelineTrack, type Project } from '@shivamjadhav/timeline-track';
15
+
16
+ const projects: Project[] = [
17
+ {
18
+ id: 'p1',
19
+ projectName: 'Cloud Migration',
20
+ projectStart: new Date('2026-02-10'),
21
+ projectEnd: new Date('2026-02-14'),
22
+ milestones: [
23
+ { id: 'm1', name: 'DB Sync', endDate: new Date('2026-02-13'), status: 'success' },
24
+ { id: 'm2', name: 'Security', endDate: new Date('2026-02-14'), status: 'success' },
25
+ ],
26
+ },
27
+ ];
28
+
29
+ export default function Example() {
30
+ return <TimelineTrack projects={projects} />;
31
+ }
32
+ ```
33
+
34
+ ## Props
35
+
36
+ - `projects` (required): `Project[]`
37
+ - `viewDate`: `Date` (controlled view date)
38
+ - `onViewDateChange`: `(date: Date) => void`
39
+ - `windowDays`: number (default `7`)
40
+ - `showTodayLine`: boolean (default `true`)
41
+ - `sidebarWidth`: number (default `220`)
42
+ - `rowHeight`: number (default `120`)
43
+ - `rangeIconSize`: number (default `16`)
44
+ - `showHeader`: boolean (default `true`)
45
+ - `title`: string (default `Team Roadmap`)
46
+ - `prevLabel`: string (default `Day`)
47
+ - `nextLabel`: string (default `Day`)
48
+ - `todayLabel`: string (default `Today`)
49
+ - `colors`: partial theme override
50
+ - `className`: string
51
+
52
+ ## Types
53
+
54
+ ```ts
55
+ export type MilestoneStatus =
56
+ | 'completed'
57
+ | 'success'
58
+ | 'cancelled'
59
+ | 'pending'
60
+ | 'in-progress';
61
+
62
+ export interface Milestone {
63
+ id: string;
64
+ name: string;
65
+ endDate: Date;
66
+ status: MilestoneStatus;
67
+ }
68
+
69
+ export interface Project {
70
+ id: string;
71
+ projectName: string;
72
+ projectStart: Date;
73
+ projectEnd: Date;
74
+ milestones: Milestone[];
75
+ }
76
+ ```
77
+
78
+ ## Build
79
+
80
+ ```bash
81
+ npm run build
82
+ ```
83
+
84
+ ## License
85
+
86
+ MIT
@@ -0,0 +1,41 @@
1
+ export type MilestoneStatus = 'completed' | 'success' | 'cancelled' | 'pending' | 'in-progress';
2
+ export interface Milestone {
3
+ id: string;
4
+ name: string;
5
+ endDate: Date;
6
+ status: MilestoneStatus;
7
+ }
8
+ export interface Project {
9
+ id: string;
10
+ projectName: string;
11
+ projectStart: Date;
12
+ projectEnd: Date;
13
+ milestones: Milestone[];
14
+ }
15
+ export type TimelineColors = {
16
+ primary: string;
17
+ success: string;
18
+ danger: string;
19
+ muted: string;
20
+ card: string;
21
+ grid: string;
22
+ border: string;
23
+ };
24
+ export type TimelineProps = {
25
+ projects: Project[];
26
+ viewDate?: Date;
27
+ windowDays?: number;
28
+ onViewDateChange?: (date: Date) => void;
29
+ showTodayLine?: boolean;
30
+ sidebarWidth?: number;
31
+ rowHeight?: number;
32
+ rangeIconSize?: number;
33
+ showHeader?: boolean;
34
+ title?: string;
35
+ prevLabel?: string;
36
+ nextLabel?: string;
37
+ todayLabel?: string;
38
+ className?: string;
39
+ colors?: Partial<TimelineColors>;
40
+ };
41
+ export default function TimelineTrack({ projects, viewDate, windowDays, onViewDateChange, showTodayLine, sidebarWidth, rowHeight, rangeIconSize, showHeader, title, prevLabel, nextLabel, todayLabel, className, colors, }: TimelineProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default as TimelineTrack } from './components/TimelineTrack';
2
+ export type { Milestone, MilestoneStatus, Project, TimelineColors, TimelineProps, } from './components/TimelineTrack';
@@ -0,0 +1,157 @@
1
+ (function(g,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("react"),require("styled-components"),require("lucide-react")):typeof define=="function"&&define.amd?define(["exports","react","styled-components","lucide-react"],T):(g=typeof globalThis<"u"?globalThis:g||self,T(g.TimelineTrack={},g.React,g.styled,g.LucideReact))})(this,(function(g,T,a,E){"use strict";var M={exports:{}},C={};var re;function ae(){if(re)return C;re=1;var r=Symbol.for("react.transitional.element"),$=Symbol.for("react.fragment");function b(x,d,u){var _=null;if(u!==void 0&&(_=""+u),d.key!==void 0&&(_=""+d.key),"key"in d){u={};for(var v in d)v!=="key"&&(u[v]=d[v])}else u=d;return d=u.ref,{$$typeof:r,type:x,key:_,ref:d!==void 0?d:null,props:u}}return C.Fragment=$,C.jsx=b,C.jsxs=b,C}var N={};var te;function se(){return te||(te=1,process.env.NODE_ENV!=="production"&&(function(){function r(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===l?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case k:return"Profiler";case G:return"StrictMode";case q:return"Suspense";case R:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case f:return"Portal";case L:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:r(e.type)||"Memo";case y:t=e._payload,e=e._init;try{return r(e(t))}catch{}}return null}function $(e){return""+e}function b(e){try{$(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n.call(t,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),$(e)}}function x(e){if(e===D)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===y)return"<...>";try{var t=r(e);return t?"<"+t+">":"<...>"}catch{return"<...>"}}function d(){var e=s.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function _(e){if(m.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function v(e,t){function n(){J||(J=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function V(){var e=r(this.type);return p[e]||(p[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,t,n,i,X,K){var c=n.ref;return e={$$typeof:U,type:e,key:t,props:n,_owner:i},(c!==void 0?c:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:V}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:K}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function F(e,t,n,i,X,K){var c=t.children;if(c!==void 0)if(i)if(S(c)){for(i=0;i<c.length;i++)I(c[i]);Object.freeze&&Object.freeze(c)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else I(c);if(m.call(t,"key")){c=r(e);var A=Object.keys(t).filter(function(ke){return ke!=="key"});i=0<A.length?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}",Y[c+i]||(A=0<A.length?"{"+A.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
+ let props = %s;
3
+ <%s {...props} />
4
+ React keys must be passed directly to JSX without using spread:
5
+ let props = %s;
6
+ <%s key={someKey} {...props} />`,i,c,A,c),Y[c+i]=!0)}if(c=null,n!==void 0&&(b(n),c=""+n),_(t)&&(b(t.key),c=""+t.key),"key"in t){n={};for(var ee in t)ee!=="key"&&(n[ee]=t[ee])}else n=t;return c&&v(n,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,c,n,d(),X,K)}function I(e){W(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===y&&(e._payload.status==="fulfilled"?W(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function W(e){return typeof e=="object"&&e!==null&&e.$$typeof===U}var w=T,U=Symbol.for("react.transitional.element"),f=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),l=Symbol.for("react.client.reference"),s=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,m=Object.prototype.hasOwnProperty,S=Array.isArray,h=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(e){return e()}};var J,p={},O=w.react_stack_bottom_frame.bind(w,u)(),P=h(x(u)),Y={};N.Fragment=D,N.jsx=function(e,t,n){var i=1e4>s.recentlyCreatedOwnerStacks++;return F(e,t,n,!1,i?Error("react-stack-top-frame"):O,i?h(x(e)):P)},N.jsxs=function(e,t,n){var i=1e4>s.recentlyCreatedOwnerStacks++;return F(e,t,n,!0,i?Error("react-stack-top-frame"):O,i?h(x(e)):P)}})()),N}var oe;function ie(){return oe||(oe=1,process.env.NODE_ENV==="production"?M.exports=ae():M.exports=se()),M.exports}var o=ie();const ce={primary:"#3b82f6",success:"#10b981",danger:"#ef4444",muted:"#0f172a",card:"#ffffff",grid:"#f1f5f9",border:"#e2e8f0"},le=a.div`
7
+ padding: 30px;
8
+ background: #f8fafc;
9
+ min-height: 100vh;
10
+ font-family: 'Segoe UI', Tahoma, sans-serif;
11
+ `,ue=a.div`
12
+ display: flex;
13
+ justify-content: space-between;
14
+ align-items: center;
15
+ margin-bottom: 20px;
16
+ background: white;
17
+ padding: 15px 25px;
18
+ color: #1e293b;
19
+ border-radius: 12px;
20
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
21
+ `,B=a.button`
22
+ background: #1e293b;
23
+ color: white;
24
+ border: none;
25
+ padding: 8px 16px;
26
+ border-radius: 6px;
27
+ cursor: pointer;
28
+ display: flex;
29
+ align-items: center;
30
+ gap: 8px;
31
+ &:hover { background: #334155; }
32
+ `,de=a.div`
33
+ position: relative;
34
+ background: ${r=>r.$card};
35
+ border: 1px solid ${r=>r.$border};
36
+ border-radius: 12px;
37
+ overflow: hidden;
38
+ `,fe=a.div`
39
+ position: absolute;
40
+ top: 0;
41
+ left: ${r=>r.$sidebarWidth}px;
42
+ right: 0;
43
+ bottom: 0;
44
+ display: grid;
45
+ grid-template-columns: repeat(${r=>r.$windowDays}, 1fr);
46
+ pointer-events: none;
47
+ `,pe=a.div`
48
+ border-right: 1px solid ${r=>r.$grid};
49
+ display: flex;
50
+ justify-content: center;
51
+ padding-top: 10px;
52
+ font-size: 11px;
53
+ color: #94a3b8;
54
+ font-weight: 600;
55
+ `,me=a.div`
56
+ display: flex;
57
+ height: ${r=>r.$rowHeight}px;
58
+ border-bottom: 1px solid #f1f5f9;
59
+ position: relative;
60
+ &:last-child { border-bottom: none; }
61
+ `,be=a.div`
62
+ width: ${r=>r.$sidebarWidth}px;
63
+ min-width: ${r=>r.$sidebarWidth}px;
64
+ background: #fcfcfd;
65
+ display: flex;
66
+ align-items: center;
67
+ padding: 0 20px;
68
+ font-weight: 700;
69
+ color: #1e293b;
70
+ border-right: 2px solid #f1f5f9;
71
+ z-index: 10;
72
+ `,xe=a.div`
73
+ flex-grow: 1;
74
+ position: relative;
75
+ display: flex;
76
+ align-items: center;
77
+ `,ge=a.div`
78
+ position: absolute;
79
+ left: ${r=>r.$left}%;
80
+ width: ${r=>r.$width}%;
81
+ height: 40px;
82
+ background: ${r=>r.$bg};
83
+ border: 2px dashed ${r=>r.$color};
84
+ border-radius: 8px;
85
+ z-index: 1;
86
+ transition: all 0.4s ease;
87
+ display: flex;
88
+ justify-content: space-between;
89
+ align-items: center;
90
+ padding: 0 5px;
91
+ `,he=a.keyframes`
92
+ from { transform: scaleX(0); opacity: 0.4; }
93
+ to { transform: scaleX(1); opacity: 1; }
94
+ `,ne=a.keyframes`
95
+ 0% { transform: scale(0.85); opacity: 0.6; }
96
+ 100% { transform: scale(1); opacity: 1; }
97
+ `,ve=a.keyframes`
98
+ 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.0); }
99
+ 50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
100
+ `,Te=a.div`
101
+ position: absolute;
102
+ top: 50%;
103
+ left: 0;
104
+ right: 0;
105
+ height: 2px;
106
+ background: ${r=>r.$color};
107
+ z-index: 0;
108
+ transform-origin: left center;
109
+ animation: ${he} 500ms ease;
110
+ `,Ee=a.div`
111
+ position: absolute;
112
+ left: ${r=>r.$percent}%;
113
+ transform: translateX(-50%);
114
+ z-index: 5;
115
+ display: flex;
116
+ flex-direction: column;
117
+ align-items: center;
118
+ `,_e=a.div`
119
+ width: 30px;
120
+ height: 30px;
121
+ background: white;
122
+ border: 2px solid ${r=>r.$color};
123
+ border-radius: 50%;
124
+ display: flex;
125
+ align-items: center;
126
+ justify-content: center;
127
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
128
+ transition: transform 200ms ease, box-shadow 200ms ease;
129
+ animation: ${ne} 320ms ease;
130
+ ${r=>r.$pulse&&a.css`
131
+ animation: ${ne} 320ms ease, ${ve} 1.6s ease-in-out infinite;
132
+ `}
133
+ ${r=>r.$late&&a.css`
134
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
135
+ `}
136
+ &:hover {
137
+ transform: scale(1.06);
138
+ }
139
+ `,je=a.div`
140
+ position: absolute;
141
+ top: 35px;
142
+ font-size: 10px;
143
+ font-weight: 700;
144
+ white-space: nowrap;
145
+ color: #334155;
146
+ `,$e=a.div`
147
+ position: absolute;
148
+ left: calc(${r=>r.$sidebarWidth}px + ${r=>r.$percent}%);
149
+ top: 0; bottom: 0;
150
+ width: 2px;
151
+ background: ${r=>r.$color};
152
+ z-index: 20;
153
+ animation: pulse 1.6s ease-in-out infinite;
154
+ `;a.keyframes`
155
+ 0%, 100% { opacity: 0.4; }
156
+ 50% { opacity: 1; }
157
+ `;function we({projects:r,viewDate:$,windowDays:b=7,onViewDateChange:x,showTodayLine:d=!0,sidebarWidth:u=220,rowHeight:_=120,rangeIconSize:v=16,showHeader:V=!0,title:H="Team Roadmap",prevLabel:F="Day",nextLabel:I="Day",todayLabel:W="Today",className:w,colors:U}){const f={...ce,...U},[D,G]=T.useState(new Date),k=$??D,j=new Date,L=T.useMemo(()=>Array.from({length:b},(l,s)=>{const m=new Date(k);return m.setDate(k.getDate()-Math.floor(b/2)+s),m}),[k,b]),z=L[0].getTime(),q=L[b-1].getTime()+864e5,R=l=>{const s=(l.getTime()-z)/(q-z)*100;return Math.max(-10,Math.min(110,s))},Z=(l,s)=>{const m=R(l),S=R(s);return{left:m,width:Math.max(0,S-m)}},y=l=>{const s=new Date(k);s.setDate(s.getDate()+l),x?x(s):G(s)},Q=()=>{x?x(new Date):G(new Date)};return o.jsxs(le,{className:w,children:[V&&o.jsxs(ue,{children:[o.jsx("h2",{style:{margin:0},children:H}),o.jsxs("div",{style:{display:"flex",gap:"10px"},children:[o.jsxs(B,{onClick:()=>y(-1),children:[o.jsx(E.ChevronLeft,{size:18})," ",F]}),o.jsxs(B,{onClick:Q,children:[o.jsx(E.Calendar,{size:18})," ",W]}),o.jsxs(B,{onClick:()=>y(1),children:[I," ",o.jsx(E.ChevronRight,{size:18})]})]})]}),o.jsxs(de,{$border:f.border,$card:f.card,children:[o.jsx(fe,{$sidebarWidth:u,$windowDays:b,children:L.map((l,s)=>o.jsx(pe,{$grid:f.grid,children:l.toLocaleDateString("en-US",{weekday:"short",day:"numeric"})},s))}),d&&j.getTime()>=z&&j.getTime()<=q&&o.jsx($e,{$percent:R(j),$sidebarWidth:u,$color:f.danger}),r.map(l=>{const s=Z(l.projectStart,l.projectEnd),m=l.milestones.every(p=>p.status==="completed"||p.status==="success"),S=!m&&j>l.projectEnd,h=m?f.success:S?f.danger:f.primary,J=m?"rgba(16, 185, 129, 0.12)":S?"rgba(239, 68, 68, 0.12)":"rgba(59, 130, 246, 0.08)";return o.jsxs(me,{$rowHeight:_,children:[o.jsx(be,{$sidebarWidth:u,children:l.projectName}),o.jsxs(xe,{children:[o.jsx(Te,{$color:f.muted}),s.width>0&&o.jsxs(ge,{$left:s.left,$width:s.width,$color:h,$bg:J,children:[o.jsx(E.Play,{size:v,color:h,fill:h}),o.jsx(E.Flag,{size:v,color:h,fill:h})]}),l.milestones.map(p=>{const O=R(p.endDate);if(O<0||O>100)return null;const P=p.status==="completed"||p.status==="success",Y=p.status==="in-progress"&&j>p.endDate,e=P?f.success:Y?f.danger:f.primary;return o.jsxs(Ee,{$percent:O,children:[o.jsx(_e,{$color:e,$pulse:P,$late:Y,children:P?o.jsx(E.Trophy,{size:14,color:e}):o.jsx(E.Clock,{size:14,color:e})}),o.jsx(je,{children:p.name})]},p.id)})]})]},l.id)})]})]})}g.TimelineTrack=we,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})}));
@@ -0,0 +1,526 @@
1
+ import ae, { useState as se, useMemo as ie } from "react";
2
+ import l, { css as K, keyframes as q } from "styled-components";
3
+ import { ChevronLeft as ce, Calendar as le, ChevronRight as de, Play as ue, Flag as fe, Trophy as pe, Clock as me } from "lucide-react";
4
+ var G = { exports: {} }, N = {};
5
+ var ee;
6
+ function be() {
7
+ if (ee) return N;
8
+ ee = 1;
9
+ var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.fragment");
10
+ function b(x, u, d) {
11
+ var v = null;
12
+ if (d !== void 0 && (v = "" + d), u.key !== void 0 && (v = "" + u.key), "key" in u) {
13
+ d = {};
14
+ for (var h in u)
15
+ h !== "key" && (d[h] = u[h]);
16
+ } else d = u;
17
+ return u = d.ref, {
18
+ $$typeof: r,
19
+ type: x,
20
+ key: v,
21
+ ref: u !== void 0 ? u : null,
22
+ props: d
23
+ };
24
+ }
25
+ return N.Fragment = E, N.jsx = b, N.jsxs = b, N;
26
+ }
27
+ var D = {};
28
+ var re;
29
+ function xe() {
30
+ return re || (re = 1, process.env.NODE_ENV !== "production" && (function() {
31
+ function r(e) {
32
+ if (e == null) return null;
33
+ if (typeof e == "function")
34
+ return e.$$typeof === c ? null : e.displayName || e.name || null;
35
+ if (typeof e == "string") return e;
36
+ switch (e) {
37
+ case O:
38
+ return "Fragment";
39
+ case y:
40
+ return "Profiler";
41
+ case F:
42
+ return "StrictMode";
43
+ case I:
44
+ return "Suspense";
45
+ case T:
46
+ return "SuspenseList";
47
+ case V:
48
+ return "Activity";
49
+ }
50
+ if (typeof e == "object")
51
+ switch (typeof e.tag == "number" && console.error(
52
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
53
+ ), e.$$typeof) {
54
+ case f:
55
+ return "Portal";
56
+ case P:
57
+ return e.displayName || "Context";
58
+ case $:
59
+ return (e._context.displayName || "Context") + ".Consumer";
60
+ case A:
61
+ var t = e.render;
62
+ return e = e.displayName, e || (e = t.displayName || t.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
63
+ case B:
64
+ return t = e.displayName || null, t !== null ? t : r(e.type) || "Memo";
65
+ case w:
66
+ t = e._payload, e = e._init;
67
+ try {
68
+ return r(e(t));
69
+ } catch {
70
+ }
71
+ }
72
+ return null;
73
+ }
74
+ function E(e) {
75
+ return "" + e;
76
+ }
77
+ function b(e) {
78
+ try {
79
+ E(e);
80
+ var t = !1;
81
+ } catch {
82
+ t = !0;
83
+ }
84
+ if (t) {
85
+ t = console;
86
+ var n = t.error, s = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
87
+ return n.call(
88
+ t,
89
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
90
+ s
91
+ ), E(e);
92
+ }
93
+ }
94
+ function x(e) {
95
+ if (e === O) return "<>";
96
+ if (typeof e == "object" && e !== null && e.$$typeof === w)
97
+ return "<...>";
98
+ try {
99
+ var t = r(e);
100
+ return t ? "<" + t + ">" : "<...>";
101
+ } catch {
102
+ return "<...>";
103
+ }
104
+ }
105
+ function u() {
106
+ var e = a.A;
107
+ return e === null ? null : e.getOwner();
108
+ }
109
+ function d() {
110
+ return Error("react-stack-top-frame");
111
+ }
112
+ function v(e) {
113
+ if (m.call(e, "key")) {
114
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
115
+ if (t && t.isReactWarning) return !1;
116
+ }
117
+ return e.key !== void 0;
118
+ }
119
+ function h(e, t) {
120
+ function n() {
121
+ W || (W = !0, console.error(
122
+ "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
123
+ t
124
+ ));
125
+ }
126
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
127
+ get: n,
128
+ configurable: !0
129
+ });
130
+ }
131
+ function J() {
132
+ var e = r(this.type);
133
+ return p[e] || (p[e] = !0, console.error(
134
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
135
+ )), e = this.props.ref, e !== void 0 ? e : null;
136
+ }
137
+ function X(e, t, n, s, U, H) {
138
+ var i = n.ref;
139
+ return e = {
140
+ $$typeof: M,
141
+ type: e,
142
+ key: t,
143
+ props: n,
144
+ _owner: s
145
+ }, (i !== void 0 ? i : null) !== null ? Object.defineProperty(e, "ref", {
146
+ enumerable: !1,
147
+ get: J
148
+ }) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
149
+ configurable: !1,
150
+ enumerable: !1,
151
+ writable: !0,
152
+ value: 0
153
+ }), Object.defineProperty(e, "_debugInfo", {
154
+ configurable: !1,
155
+ enumerable: !1,
156
+ writable: !0,
157
+ value: null
158
+ }), Object.defineProperty(e, "_debugStack", {
159
+ configurable: !1,
160
+ enumerable: !1,
161
+ writable: !0,
162
+ value: U
163
+ }), Object.defineProperty(e, "_debugTask", {
164
+ configurable: !1,
165
+ enumerable: !1,
166
+ writable: !0,
167
+ value: H
168
+ }), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
169
+ }
170
+ function L(e, t, n, s, U, H) {
171
+ var i = t.children;
172
+ if (i !== void 0)
173
+ if (s)
174
+ if (R(i)) {
175
+ for (s = 0; s < i.length; s++)
176
+ z(i[s]);
177
+ Object.freeze && Object.freeze(i);
178
+ } else
179
+ console.error(
180
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
181
+ );
182
+ else z(i);
183
+ if (m.call(t, "key")) {
184
+ i = r(e);
185
+ var S = Object.keys(t).filter(function(ne) {
186
+ return ne !== "key";
187
+ });
188
+ s = 0 < S.length ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}", C[i + s] || (S = 0 < S.length ? "{" + S.join(": ..., ") + ": ...}" : "{}", console.error(
189
+ `A props object containing a "key" prop is being spread into JSX:
190
+ let props = %s;
191
+ <%s {...props} />
192
+ React keys must be passed directly to JSX without using spread:
193
+ let props = %s;
194
+ <%s key={someKey} {...props} />`,
195
+ s,
196
+ i,
197
+ S,
198
+ i
199
+ ), C[i + s] = !0);
200
+ }
201
+ if (i = null, n !== void 0 && (b(n), i = "" + n), v(t) && (b(t.key), i = "" + t.key), "key" in t) {
202
+ n = {};
203
+ for (var Z in t)
204
+ Z !== "key" && (n[Z] = t[Z]);
205
+ } else n = t;
206
+ return i && h(
207
+ n,
208
+ typeof e == "function" ? e.displayName || e.name || "Unknown" : e
209
+ ), X(
210
+ e,
211
+ i,
212
+ n,
213
+ u(),
214
+ U,
215
+ H
216
+ );
217
+ }
218
+ function z(e) {
219
+ Y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === w && (e._payload.status === "fulfilled" ? Y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
220
+ }
221
+ function Y(e) {
222
+ return typeof e == "object" && e !== null && e.$$typeof === M;
223
+ }
224
+ var _ = ae, M = /* @__PURE__ */ Symbol.for("react.transitional.element"), f = /* @__PURE__ */ Symbol.for("react.portal"), O = /* @__PURE__ */ Symbol.for("react.fragment"), F = /* @__PURE__ */ Symbol.for("react.strict_mode"), y = /* @__PURE__ */ Symbol.for("react.profiler"), $ = /* @__PURE__ */ Symbol.for("react.consumer"), P = /* @__PURE__ */ Symbol.for("react.context"), A = /* @__PURE__ */ Symbol.for("react.forward_ref"), I = /* @__PURE__ */ Symbol.for("react.suspense"), T = /* @__PURE__ */ Symbol.for("react.suspense_list"), B = /* @__PURE__ */ Symbol.for("react.memo"), w = /* @__PURE__ */ Symbol.for("react.lazy"), V = /* @__PURE__ */ Symbol.for("react.activity"), c = /* @__PURE__ */ Symbol.for("react.client.reference"), a = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, m = Object.prototype.hasOwnProperty, R = Array.isArray, g = console.createTask ? console.createTask : function() {
225
+ return null;
226
+ };
227
+ _ = {
228
+ react_stack_bottom_frame: function(e) {
229
+ return e();
230
+ }
231
+ };
232
+ var W, p = {}, j = _.react_stack_bottom_frame.bind(
233
+ _,
234
+ d
235
+ )(), k = g(x(d)), C = {};
236
+ D.Fragment = O, D.jsx = function(e, t, n) {
237
+ var s = 1e4 > a.recentlyCreatedOwnerStacks++;
238
+ return L(
239
+ e,
240
+ t,
241
+ n,
242
+ !1,
243
+ s ? Error("react-stack-top-frame") : j,
244
+ s ? g(x(e)) : k
245
+ );
246
+ }, D.jsxs = function(e, t, n) {
247
+ var s = 1e4 > a.recentlyCreatedOwnerStacks++;
248
+ return L(
249
+ e,
250
+ t,
251
+ n,
252
+ !0,
253
+ s ? Error("react-stack-top-frame") : j,
254
+ s ? g(x(e)) : k
255
+ );
256
+ };
257
+ })()), D;
258
+ }
259
+ var te;
260
+ function ge() {
261
+ return te || (te = 1, process.env.NODE_ENV === "production" ? G.exports = be() : G.exports = xe()), G.exports;
262
+ }
263
+ var o = ge();
264
+ const he = {
265
+ primary: "#3b82f6",
266
+ success: "#10b981",
267
+ danger: "#ef4444",
268
+ muted: "#0f172a",
269
+ card: "#ffffff",
270
+ grid: "#f1f5f9",
271
+ border: "#e2e8f0"
272
+ }, ve = l.div`
273
+ padding: 30px;
274
+ background: #f8fafc;
275
+ min-height: 100vh;
276
+ font-family: 'Segoe UI', Tahoma, sans-serif;
277
+ `, $e = l.div`
278
+ display: flex;
279
+ justify-content: space-between;
280
+ align-items: center;
281
+ margin-bottom: 20px;
282
+ background: white;
283
+ padding: 15px 25px;
284
+ color: #1e293b;
285
+ border-radius: 12px;
286
+ box-shadow: 0 2px 4px rgba(0,0,0,0.05);
287
+ `, Q = l.button`
288
+ background: #1e293b;
289
+ color: white;
290
+ border: none;
291
+ padding: 8px 16px;
292
+ border-radius: 6px;
293
+ cursor: pointer;
294
+ display: flex;
295
+ align-items: center;
296
+ gap: 8px;
297
+ &:hover { background: #334155; }
298
+ `, Ee = l.div`
299
+ position: relative;
300
+ background: ${(r) => r.$card};
301
+ border: 1px solid ${(r) => r.$border};
302
+ border-radius: 12px;
303
+ overflow: hidden;
304
+ `, _e = l.div`
305
+ position: absolute;
306
+ top: 0;
307
+ left: ${(r) => r.$sidebarWidth}px;
308
+ right: 0;
309
+ bottom: 0;
310
+ display: grid;
311
+ grid-template-columns: repeat(${(r) => r.$windowDays}, 1fr);
312
+ pointer-events: none;
313
+ `, ye = l.div`
314
+ border-right: 1px solid ${(r) => r.$grid};
315
+ display: flex;
316
+ justify-content: center;
317
+ padding-top: 10px;
318
+ font-size: 11px;
319
+ color: #94a3b8;
320
+ font-weight: 600;
321
+ `, Te = l.div`
322
+ display: flex;
323
+ height: ${(r) => r.$rowHeight}px;
324
+ border-bottom: 1px solid #f1f5f9;
325
+ position: relative;
326
+ &:last-child { border-bottom: none; }
327
+ `, we = l.div`
328
+ width: ${(r) => r.$sidebarWidth}px;
329
+ min-width: ${(r) => r.$sidebarWidth}px;
330
+ background: #fcfcfd;
331
+ display: flex;
332
+ align-items: center;
333
+ padding: 0 20px;
334
+ font-weight: 700;
335
+ color: #1e293b;
336
+ border-right: 2px solid #f1f5f9;
337
+ z-index: 10;
338
+ `, Re = l.div`
339
+ flex-grow: 1;
340
+ position: relative;
341
+ display: flex;
342
+ align-items: center;
343
+ `, je = l.div`
344
+ position: absolute;
345
+ left: ${(r) => r.$left}%;
346
+ width: ${(r) => r.$width}%;
347
+ height: 40px;
348
+ background: ${(r) => r.$bg};
349
+ border: 2px dashed ${(r) => r.$color};
350
+ border-radius: 8px;
351
+ z-index: 1;
352
+ transition: all 0.4s ease;
353
+ display: flex;
354
+ justify-content: space-between;
355
+ align-items: center;
356
+ padding: 0 5px;
357
+ `, ke = q`
358
+ from { transform: scaleX(0); opacity: 0.4; }
359
+ to { transform: scaleX(1); opacity: 1; }
360
+ `, oe = q`
361
+ 0% { transform: scale(0.85); opacity: 0.6; }
362
+ 100% { transform: scale(1); opacity: 1; }
363
+ `, Se = q`
364
+ 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(16, 185, 129, 0.0); }
365
+ 50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(16, 185, 129, 0.5); }
366
+ `, Oe = l.div`
367
+ position: absolute;
368
+ top: 50%;
369
+ left: 0;
370
+ right: 0;
371
+ height: 2px;
372
+ background: ${(r) => r.$color};
373
+ z-index: 0;
374
+ transform-origin: left center;
375
+ animation: ${ke} 500ms ease;
376
+ `, Pe = l.div`
377
+ position: absolute;
378
+ left: ${(r) => r.$percent}%;
379
+ transform: translateX(-50%);
380
+ z-index: 5;
381
+ display: flex;
382
+ flex-direction: column;
383
+ align-items: center;
384
+ `, Ae = l.div`
385
+ width: 30px;
386
+ height: 30px;
387
+ background: white;
388
+ border: 2px solid ${(r) => r.$color};
389
+ border-radius: 50%;
390
+ display: flex;
391
+ align-items: center;
392
+ justify-content: center;
393
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
394
+ transition: transform 200ms ease, box-shadow 200ms ease;
395
+ animation: ${oe} 320ms ease;
396
+ ${(r) => r.$pulse && K`
397
+ animation: ${oe} 320ms ease, ${Se} 1.6s ease-in-out infinite;
398
+ `}
399
+ ${(r) => r.$late && K`
400
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25);
401
+ `}
402
+ &:hover {
403
+ transform: scale(1.06);
404
+ }
405
+ `, Ce = l.div`
406
+ position: absolute;
407
+ top: 35px;
408
+ font-size: 10px;
409
+ font-weight: 700;
410
+ white-space: nowrap;
411
+ color: #334155;
412
+ `, Ne = l.div`
413
+ position: absolute;
414
+ left: calc(${(r) => r.$sidebarWidth}px + ${(r) => r.$percent}%);
415
+ top: 0; bottom: 0;
416
+ width: 2px;
417
+ background: ${(r) => r.$color};
418
+ z-index: 20;
419
+ animation: pulse 1.6s ease-in-out infinite;
420
+ `;
421
+ q`
422
+ 0%, 100% { opacity: 0.4; }
423
+ 50% { opacity: 1; }
424
+ `;
425
+ function Ye({
426
+ projects: r,
427
+ viewDate: E,
428
+ windowDays: b = 7,
429
+ onViewDateChange: x,
430
+ showTodayLine: u = !0,
431
+ sidebarWidth: d = 220,
432
+ rowHeight: v = 120,
433
+ rangeIconSize: h = 16,
434
+ showHeader: J = !0,
435
+ title: X = "Team Roadmap",
436
+ prevLabel: L = "Day",
437
+ nextLabel: z = "Day",
438
+ todayLabel: Y = "Today",
439
+ className: _,
440
+ colors: M
441
+ }) {
442
+ const f = { ...he, ...M }, [O, F] = se(/* @__PURE__ */ new Date()), y = E ?? O, $ = /* @__PURE__ */ new Date(), P = ie(() => Array.from({ length: b }, (c, a) => {
443
+ const m = new Date(y);
444
+ return m.setDate(y.getDate() - Math.floor(b / 2) + a), m;
445
+ }), [y, b]), A = P[0].getTime(), I = P[b - 1].getTime() + 864e5, T = (c) => {
446
+ const a = (c.getTime() - A) / (I - A) * 100;
447
+ return Math.max(-10, Math.min(110, a));
448
+ }, B = (c, a) => {
449
+ const m = T(c), R = T(a);
450
+ return { left: m, width: Math.max(0, R - m) };
451
+ }, w = (c) => {
452
+ const a = new Date(y);
453
+ a.setDate(a.getDate() + c), x ? x(a) : F(a);
454
+ }, V = () => {
455
+ x ? x(/* @__PURE__ */ new Date()) : F(/* @__PURE__ */ new Date());
456
+ };
457
+ return /* @__PURE__ */ o.jsxs(ve, { className: _, children: [
458
+ J && /* @__PURE__ */ o.jsxs($e, { children: [
459
+ /* @__PURE__ */ o.jsx("h2", { style: { margin: 0 }, children: X }),
460
+ /* @__PURE__ */ o.jsxs("div", { style: { display: "flex", gap: "10px" }, children: [
461
+ /* @__PURE__ */ o.jsxs(Q, { onClick: () => w(-1), children: [
462
+ /* @__PURE__ */ o.jsx(ce, { size: 18 }),
463
+ " ",
464
+ L
465
+ ] }),
466
+ /* @__PURE__ */ o.jsxs(Q, { onClick: V, children: [
467
+ /* @__PURE__ */ o.jsx(le, { size: 18 }),
468
+ " ",
469
+ Y
470
+ ] }),
471
+ /* @__PURE__ */ o.jsxs(Q, { onClick: () => w(1), children: [
472
+ z,
473
+ " ",
474
+ /* @__PURE__ */ o.jsx(de, { size: 18 })
475
+ ] })
476
+ ] })
477
+ ] }),
478
+ /* @__PURE__ */ o.jsxs(Ee, { $border: f.border, $card: f.card, children: [
479
+ /* @__PURE__ */ o.jsx(_e, { $sidebarWidth: d, $windowDays: b, children: P.map((c, a) => /* @__PURE__ */ o.jsx(ye, { $grid: f.grid, children: c.toLocaleDateString("en-US", { weekday: "short", day: "numeric" }) }, a)) }),
480
+ u && $.getTime() >= A && $.getTime() <= I && /* @__PURE__ */ o.jsx(
481
+ Ne,
482
+ {
483
+ $percent: T($),
484
+ $sidebarWidth: d,
485
+ $color: f.danger
486
+ }
487
+ ),
488
+ r.map((c) => {
489
+ const a = B(c.projectStart, c.projectEnd), m = c.milestones.every(
490
+ (p) => p.status === "completed" || p.status === "success"
491
+ ), R = !m && $ > c.projectEnd, g = m ? f.success : R ? f.danger : f.primary, W = m ? "rgba(16, 185, 129, 0.12)" : R ? "rgba(239, 68, 68, 0.12)" : "rgba(59, 130, 246, 0.08)";
492
+ return /* @__PURE__ */ o.jsxs(Te, { $rowHeight: v, children: [
493
+ /* @__PURE__ */ o.jsx(we, { $sidebarWidth: d, children: c.projectName }),
494
+ /* @__PURE__ */ o.jsxs(Re, { children: [
495
+ /* @__PURE__ */ o.jsx(Oe, { $color: f.muted }),
496
+ a.width > 0 && /* @__PURE__ */ o.jsxs(
497
+ je,
498
+ {
499
+ $left: a.left,
500
+ $width: a.width,
501
+ $color: g,
502
+ $bg: W,
503
+ children: [
504
+ /* @__PURE__ */ o.jsx(ue, { size: h, color: g, fill: g }),
505
+ /* @__PURE__ */ o.jsx(fe, { size: h, color: g, fill: g })
506
+ ]
507
+ }
508
+ ),
509
+ c.milestones.map((p) => {
510
+ const j = T(p.endDate);
511
+ if (j < 0 || j > 100) return null;
512
+ const k = p.status === "completed" || p.status === "success", C = p.status === "in-progress" && $ > p.endDate, e = k ? f.success : C ? f.danger : f.primary;
513
+ return /* @__PURE__ */ o.jsxs(Pe, { $percent: j, children: [
514
+ /* @__PURE__ */ o.jsx(Ae, { $color: e, $pulse: k, $late: C, children: k ? /* @__PURE__ */ o.jsx(pe, { size: 14, color: e }) : /* @__PURE__ */ o.jsx(me, { size: 14, color: e }) }),
515
+ /* @__PURE__ */ o.jsx(Ce, { children: p.name })
516
+ ] }, p.id);
517
+ })
518
+ ] })
519
+ ] }, c.id);
520
+ })
521
+ ] })
522
+ ] });
523
+ }
524
+ export {
525
+ Ye as TimelineTrack
526
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@shivamjadhav28/timeline-track",
3
+ "version": "0.1.0",
4
+ "description": "Enterprise-ready React timeline component with project ranges and milestones.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "author": "Shivam Jadhav",
8
+ "keywords": [
9
+ "timeline",
10
+ "react",
11
+ "milestone",
12
+ "project",
13
+ "roadmap",
14
+ "enterprise"
15
+ ],
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "main": "./dist/timeline-track.cjs",
22
+ "module": "./dist/timeline-track.mjs",
23
+ "types": "./dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/timeline-track.mjs",
28
+ "require": "./dist/timeline-track.cjs"
29
+ }
30
+ },
31
+ "sideEffects": false,
32
+ "publishConfig": {
33
+ "access": "public"
34
+ },
35
+ "scripts": {
36
+ "dev": "vite",
37
+ "build": "vite build && tsc -p tsconfig.lib.json",
38
+ "build:types": "tsc -p tsconfig.lib.json",
39
+ "prepublishOnly": "npm run build",
40
+ "lint": "eslint .",
41
+ "preview": "vite preview"
42
+ },
43
+ "peerDependencies": {
44
+ "lucide-react": "^0.564.0",
45
+ "react": "^19.2.0",
46
+ "react-dom": "^19.2.0",
47
+ "styled-components": "^6.3.9"
48
+ },
49
+ "devDependencies": {
50
+ "@eslint/js": "^9.39.1",
51
+ "@types/node": "^24.10.1",
52
+ "@types/react": "^19.2.7",
53
+ "@types/react-dom": "^19.2.3",
54
+ "@types/styled-components": "^5.1.36",
55
+ "@types/minimatch": "^5.1.2",
56
+ "@vitejs/plugin-react": "^5.1.1",
57
+ "eslint": "^9.39.1",
58
+ "eslint-plugin-react-hooks": "^7.0.1",
59
+ "eslint-plugin-react-refresh": "^0.4.24",
60
+ "globals": "^16.5.0",
61
+ "lucide-react": "^0.564.0",
62
+ "react": "^19.2.0",
63
+ "react-dom": "^19.2.0",
64
+ "styled-components": "^6.3.9",
65
+ "typescript": "~5.9.3",
66
+ "typescript-eslint": "^8.48.0",
67
+ "vite": "^7.3.1"
68
+ }
69
+ }