awesome-timeline-react 0.1.15 → 0.3.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 +21 -21
- package/README.md +240 -96
- package/dist/_tsup-dts-rollup.d.mts +872 -329
- package/dist/_tsup-dts-rollup.d.ts +872 -329
- package/dist/index.css +129 -210
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +19 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +2338 -1923
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2323 -1910
- package/dist/index.mjs.map +1 -1
- package/package.json +66 -62
- package/dist/src/index.d.mts +0 -1
- package/dist/src/index.d.ts +0 -1
package/dist/index.css
CHANGED
|
@@ -1,211 +1,130 @@
|
|
|
1
|
-
/* src/style.css */
|
|
2
|
-
.rows-header-wrapper {
|
|
3
|
-
width: 100px;
|
|
4
|
-
height: fit-content;
|
|
5
|
-
border-right: 1px solid yellow;
|
|
6
|
-
background-color: rgb(39, 36, 36);
|
|
7
|
-
color: white;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
.
|
|
79
|
-
position: absolute;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
width: 100%;
|
|
131
|
-
height: 50px;
|
|
132
|
-
min-height: 50px;
|
|
133
|
-
border: 1px solid yellow;
|
|
134
|
-
background-color: rgb(39, 36, 36);
|
|
135
|
-
color: white;
|
|
136
|
-
box-sizing: border-box;
|
|
137
|
-
}
|
|
138
|
-
.empty-block {
|
|
139
|
-
width: 100px;
|
|
140
|
-
min-width: 100px;
|
|
141
|
-
border-right: 1px solid yellow;
|
|
142
|
-
box-sizing: border-box;
|
|
143
|
-
}
|
|
144
|
-
.time-content {
|
|
145
|
-
display: flex;
|
|
146
|
-
flex-direction: column;
|
|
147
|
-
height: 100%;
|
|
148
|
-
}
|
|
149
|
-
.day-row {
|
|
150
|
-
display: grid;
|
|
151
|
-
height: 50%;
|
|
152
|
-
width: auto;
|
|
153
|
-
border-bottom: 1px solid yellow;
|
|
154
|
-
div:not(:last-child) {
|
|
155
|
-
border-right: 1px solid yellow;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
.hour-row {
|
|
159
|
-
display: grid;
|
|
160
|
-
height: 50%;
|
|
161
|
-
div:not(:last-child) {
|
|
162
|
-
border-right: 1px solid yellow;
|
|
163
|
-
box-sizing: border-box;
|
|
164
|
-
}
|
|
165
|
-
box-shadow: 0px 4px 20px black;
|
|
166
|
-
}
|
|
167
|
-
.not-clickable {
|
|
168
|
-
div {
|
|
169
|
-
pointer-events: none;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
.line {
|
|
173
|
-
height: 100%;
|
|
174
|
-
width: 100%;
|
|
175
|
-
border-right: 1px solid #e4dcdc;
|
|
176
|
-
box-sizing: border-box;
|
|
177
|
-
}
|
|
178
|
-
.lines-canvas {
|
|
179
|
-
position: absolute;
|
|
180
|
-
top: 0;
|
|
181
|
-
display: grid;
|
|
182
|
-
height: 100%;
|
|
183
|
-
width: 100%;
|
|
184
|
-
overflow: hidden;
|
|
185
|
-
}
|
|
186
|
-
.hide-last-line {
|
|
187
|
-
div:last-child {
|
|
188
|
-
border-right: none;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
.row-hidden {
|
|
192
|
-
visibility: hidden;
|
|
193
|
-
}
|
|
194
|
-
.rt-line {
|
|
195
|
-
position: absolute;
|
|
196
|
-
height: calc(100% - 24px);
|
|
197
|
-
top: 24px;
|
|
198
|
-
width: 2px;
|
|
199
|
-
box-sizing: border-box;
|
|
200
|
-
border-right: dotted 2px red;
|
|
201
|
-
}
|
|
202
|
-
.rt-arrow {
|
|
203
|
-
position: absolute;
|
|
204
|
-
top: 0px;
|
|
205
|
-
width: 0;
|
|
206
|
-
height: 0;
|
|
207
|
-
border-left: 15px solid transparent;
|
|
208
|
-
border-right: 15px solid transparent;
|
|
209
|
-
border-top: 26px solid red;
|
|
210
|
-
}
|
|
1
|
+
/* src/style.css */
|
|
2
|
+
.rows-header-wrapper {
|
|
3
|
+
width: 100px;
|
|
4
|
+
height: fit-content;
|
|
5
|
+
border-right: 1px solid yellow;
|
|
6
|
+
background-color: rgb(39, 36, 36);
|
|
7
|
+
color: white;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
box-shadow: 4px 0px 20px black;
|
|
10
|
+
}
|
|
11
|
+
.main-wrapper {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
.body-wrapper {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
border-left: 1px solid black;
|
|
22
|
+
border-bottom: 1px solid black;
|
|
23
|
+
border-right: 1px solid black;
|
|
24
|
+
width: 100%;
|
|
25
|
+
overflow: auto;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* src/components/style.css */
|
|
30
|
+
.row-header {
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
width: 100px;
|
|
35
|
+
box-sizing: border-box;
|
|
36
|
+
}
|
|
37
|
+
.event {
|
|
38
|
+
position: absolute;
|
|
39
|
+
height: 20px;
|
|
40
|
+
border: 1px solid black;
|
|
41
|
+
z-index: 1;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
border-radius: 5px;
|
|
46
|
+
box-shadow: inset 0px 0px 5px gray;
|
|
47
|
+
}
|
|
48
|
+
.event-prompt {
|
|
49
|
+
position: absolute;
|
|
50
|
+
display: none;
|
|
51
|
+
z-index: 3;
|
|
52
|
+
}
|
|
53
|
+
.time-bar {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: row;
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 50px;
|
|
58
|
+
min-height: 50px;
|
|
59
|
+
border: 1px solid yellow;
|
|
60
|
+
background-color: rgb(39, 36, 36);
|
|
61
|
+
color: white;
|
|
62
|
+
box-sizing: border-box;
|
|
63
|
+
}
|
|
64
|
+
.empty-block {
|
|
65
|
+
width: 100px;
|
|
66
|
+
min-width: 100px;
|
|
67
|
+
border-right: 1px solid yellow;
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
}
|
|
70
|
+
.rt-line {
|
|
71
|
+
position: absolute;
|
|
72
|
+
height: calc(100% - 24px);
|
|
73
|
+
top: 24px;
|
|
74
|
+
width: 2px;
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
border-right: dotted 2px red;
|
|
77
|
+
}
|
|
78
|
+
.rt-arrow {
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0px;
|
|
81
|
+
width: 0;
|
|
82
|
+
height: 0;
|
|
83
|
+
border-left: 15px solid transparent;
|
|
84
|
+
border-right: 15px solid transparent;
|
|
85
|
+
border-top: 26px solid red;
|
|
86
|
+
}
|
|
87
|
+
.canvas-time-bar {
|
|
88
|
+
height: 100%;
|
|
89
|
+
box-shadow: 0px 4px 20px black;
|
|
90
|
+
}
|
|
91
|
+
.canvas-rows-header {
|
|
92
|
+
position: relative;
|
|
93
|
+
flex-shrink: 0;
|
|
94
|
+
}
|
|
95
|
+
.canvas-row-header {
|
|
96
|
+
position: absolute;
|
|
97
|
+
width: 100%;
|
|
98
|
+
box-sizing: border-box;
|
|
99
|
+
}
|
|
100
|
+
.canvas-content-column {
|
|
101
|
+
position: relative;
|
|
102
|
+
flex: 1;
|
|
103
|
+
min-width: 0;
|
|
104
|
+
align-self: flex-start;
|
|
105
|
+
}
|
|
106
|
+
.canvas-sticky {
|
|
107
|
+
position: sticky;
|
|
108
|
+
top: 0;
|
|
109
|
+
height: 0;
|
|
110
|
+
overflow: visible;
|
|
111
|
+
z-index: 1;
|
|
112
|
+
}
|
|
113
|
+
.canvas-sticky canvas {
|
|
114
|
+
position: absolute;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
}
|
|
118
|
+
.canvas-sticky canvas:last-of-type {
|
|
119
|
+
cursor: grab;
|
|
120
|
+
touch-action: none;
|
|
121
|
+
}
|
|
122
|
+
.canvas-drag-ghost {
|
|
123
|
+
display: none;
|
|
124
|
+
height: 20px;
|
|
125
|
+
opacity: 50%;
|
|
126
|
+
background-color: white;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
z-index: 2;
|
|
129
|
+
}
|
|
211
130
|
/*# sourceMappingURL=index.css.map */
|
package/dist/index.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\
|
|
1
|
+
{"version":3,"sources":["../src/style.css","../src/components/style.css"],"sourcesContent":[".rows-header-wrapper {\n width: 100px;\n height: fit-content;\n border-right: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n box-shadow: 4px 0px 20px black;\n}\n\n.main-wrapper {\n position: relative;\n display: flex;\n flex-direction: column;\n height: 100%;\n width: 100%;\n}\n\n.body-wrapper {\n display: flex;\n flex-direction: row;\n border-left: 1px solid black;\n border-bottom: 1px solid black;\n border-right: 1px solid black;\n width: 100%;\n overflow: auto;\n box-sizing: border-box;\n}\n",".row-header {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100px;\n box-sizing: border-box;\n}\n\n/* base look of an event pill — used by the drag ghost */\n.event {\n position: absolute;\n height: 20px;\n border: 1px solid black;\n z-index: 1;\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n border-radius: 5px;\n box-shadow: inset 0px 0px 5px gray;\n}\n\n.event-prompt {\n position: absolute;\n display: none;\n z-index: 3;\n}\n\n.time-bar {\n display: flex;\n flex-direction: row;\n width: 100%;\n height: 50px;\n min-height: 50px;\n border: 1px solid yellow;\n background-color: rgb(39, 36, 36);\n color: white;\n box-sizing: border-box;\n}\n\n.empty-block {\n width: 100px;\n min-width: 100px;\n border-right: 1px solid yellow;\n box-sizing: border-box;\n}\n\n.rt-line {\n position: absolute;\n height: calc(100% - 24px);\n top: 24px;\n width: 2px;\n box-sizing: border-box;\n border-right: dotted 2px red;\n}\n\n.rt-arrow {\n position: absolute;\n top: 0px;\n width: 0;\n height: 0;\n border-left: 15px solid transparent;\n border-right: 15px solid transparent;\n\n border-top: 26px solid red;\n}\n\n.canvas-time-bar {\n height: 100%;\n /* replicates the legacy .hour-row drop shadow onto the content below */\n box-shadow: 0px 4px 20px black;\n}\n\n.canvas-rows-header {\n position: relative;\n flex-shrink: 0;\n}\n\n.canvas-row-header {\n position: absolute;\n width: 100%;\n box-sizing: border-box;\n /* transition is set inline from the `animations` prop */\n}\n\n.canvas-content-column {\n position: relative;\n flex: 1;\n min-width: 0;\n /* the body-wrapper is a flex row; without this the column is stretched to\n the viewport height, the scroll spacer overflows it, and the sticky\n canvas has no room to stick */\n align-self: flex-start;\n}\n\n.canvas-sticky {\n position: sticky;\n top: 0;\n height: 0;\n overflow: visible;\n z-index: 1;\n}\n\n.canvas-sticky canvas {\n position: absolute;\n top: 0;\n left: 0;\n}\n\n.canvas-sticky canvas:last-of-type {\n cursor: grab;\n touch-action: none;\n}\n\n.canvas-drag-ghost {\n display: none;\n height: 20px;\n opacity: 50%;\n background-color: white;\n pointer-events: none;\n z-index: 2;\n}\n"],"mappings":";AAAA,CAAC;AACC,SAAO;AACP,UAAQ;AACR,gBAAc,IAAI,MAAM;AACxB,oBAAkB,IAAI,EAAE,EAAE,EAAE,EAAE;AAC9B,SAAO;AACP,cAAY;AACZ,cAAY,IAAI,IAAI,KAAK;AAC3B;AAEA,CAAC;A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;AACV,OAAK;AACL,UAAQ;AACR,YAAU;AACV,WAAS;AACX;AAEA,CARC,cAQc;AACb,YAAU;AACV,OAAK;AACL,QAAM;AACR;AAEA,CAdC,cAcc,MAAM;AACnB,UAAQ;AACR,gBAAc;AAChB;AAEA,CAAC;AACC,WAAS;AACT,UAAQ;AACR,WAAS;AACT,oBAAkB;AAClB,kBAAgB;AAChB,WAAS;AACX;","names":[]}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { RowType } from './_tsup-dts-rollup.mjs';
|
|
2
|
+
export { EventType } from './_tsup-dts-rollup.mjs';
|
|
3
|
+
export { EventPropsType } from './_tsup-dts-rollup.mjs';
|
|
4
|
+
export { EventStyle } from './_tsup-dts-rollup.mjs';
|
|
5
|
+
export { EventState } from './_tsup-dts-rollup.mjs';
|
|
6
|
+
export { DrawEventFn } from './_tsup-dts-rollup.mjs';
|
|
7
|
+
export { Theme } from './_tsup-dts-rollup.mjs';
|
|
8
|
+
export { ResolvedTheme } from './_tsup-dts-rollup.mjs';
|
|
9
|
+
export { Rect } from './_tsup-dts-rollup.mjs';
|
|
10
|
+
export { OnDropProps } from './_tsup-dts-rollup.mjs';
|
|
11
|
+
export { OnResizeProps } from './_tsup-dts-rollup.mjs';
|
|
12
|
+
export { OnEventClickProps } from './_tsup-dts-rollup.mjs';
|
|
13
|
+
export { OnEventHoverProps } from './_tsup-dts-rollup.mjs';
|
|
14
|
+
export { PanZoomConfig } from './_tsup-dts-rollup.mjs';
|
|
15
|
+
export { EventPatch } from './_tsup-dts-rollup.mjs';
|
|
16
|
+
export { TimelineHandle } from './_tsup-dts-rollup.mjs';
|
|
17
|
+
export { TimelineProps } from './_tsup-dts-rollup.mjs';
|
|
18
|
+
export { TimelineType } from './_tsup-dts-rollup.mjs';
|
|
19
|
+
export { Timeline } from './_tsup-dts-rollup.mjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export { RowType } from './_tsup-dts-rollup.js';
|
|
2
|
+
export { EventType } from './_tsup-dts-rollup.js';
|
|
3
|
+
export { EventPropsType } from './_tsup-dts-rollup.js';
|
|
4
|
+
export { EventStyle } from './_tsup-dts-rollup.js';
|
|
5
|
+
export { EventState } from './_tsup-dts-rollup.js';
|
|
6
|
+
export { DrawEventFn } from './_tsup-dts-rollup.js';
|
|
7
|
+
export { Theme } from './_tsup-dts-rollup.js';
|
|
8
|
+
export { ResolvedTheme } from './_tsup-dts-rollup.js';
|
|
9
|
+
export { Rect } from './_tsup-dts-rollup.js';
|
|
10
|
+
export { OnDropProps } from './_tsup-dts-rollup.js';
|
|
11
|
+
export { OnResizeProps } from './_tsup-dts-rollup.js';
|
|
12
|
+
export { OnEventClickProps } from './_tsup-dts-rollup.js';
|
|
13
|
+
export { OnEventHoverProps } from './_tsup-dts-rollup.js';
|
|
14
|
+
export { PanZoomConfig } from './_tsup-dts-rollup.js';
|
|
15
|
+
export { EventPatch } from './_tsup-dts-rollup.js';
|
|
16
|
+
export { TimelineHandle } from './_tsup-dts-rollup.js';
|
|
17
|
+
export { TimelineProps } from './_tsup-dts-rollup.js';
|
|
18
|
+
export { TimelineType } from './_tsup-dts-rollup.js';
|
|
19
|
+
export { Timeline } from './_tsup-dts-rollup.js';
|