@oddle.me/react-calendar-timeline 0.29.12 → 0.29.14
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/lib/Timeline.css +117 -95
- package/package.json +11 -5
package/lib/Timeline.css
CHANGED
|
@@ -1,98 +1,120 @@
|
|
|
1
1
|
.react-calendar-timeline {
|
|
2
2
|
overflow: hidden;
|
|
3
3
|
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
}
|
|
6
|
+
.react-calendar-timeline * {
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
}
|
|
9
|
+
.react-calendar-timeline .rct-outer {
|
|
10
|
+
display: block;
|
|
11
|
+
overflow-y: auto;
|
|
12
|
+
overflow-x: hidden;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
flex: 1;
|
|
15
|
+
height: 0;
|
|
16
|
+
}
|
|
17
|
+
.react-calendar-timeline .rct-scroll {
|
|
18
|
+
display: inline-block;
|
|
19
|
+
white-space: normal;
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
-ms-touch-action: none;
|
|
22
|
+
touch-action: none;
|
|
23
|
+
overflow-x: hidden;
|
|
24
|
+
}
|
|
25
|
+
.react-calendar-timeline .rct-item:hover {
|
|
26
|
+
z-index: 88;
|
|
27
|
+
}
|
|
28
|
+
.react-calendar-timeline .rct-item .rct-item-content {
|
|
29
|
+
position: sticky;
|
|
30
|
+
position: -webkit-sticky;
|
|
31
|
+
left: 0px;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
display: inline-block;
|
|
34
|
+
border-radius: 2px;
|
|
35
|
+
padding: 0 6px;
|
|
36
|
+
height: 100%;
|
|
37
|
+
}
|
|
38
|
+
.react-calendar-timeline .rct-sidebar {
|
|
39
|
+
white-space: normal;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
vertical-align: top;
|
|
42
|
+
position: relative;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
border-right: 1px solid #bbb;
|
|
45
|
+
}
|
|
46
|
+
.react-calendar-timeline .rct-sidebar.rct-sidebar-right {
|
|
47
|
+
border-right: 0;
|
|
48
|
+
border-left: 1px solid #bbb;
|
|
49
|
+
}
|
|
50
|
+
.react-calendar-timeline .rct-sidebar .rct-sidebar-row {
|
|
51
|
+
padding: 0 4px;
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
margin: 0;
|
|
57
|
+
border-bottom: 1px solid #bbb;
|
|
58
|
+
}
|
|
59
|
+
.react-calendar-timeline .rct-sidebar .rct-sidebar-row.rct-sidebar-row-odd {
|
|
60
|
+
background: rgba(0, 0, 0, 0.05);
|
|
61
|
+
}
|
|
62
|
+
.react-calendar-timeline .rct-sidebar .rct-sidebar-row.rct-sidebar-row-even {
|
|
63
|
+
background: transparent;
|
|
64
|
+
}
|
|
65
|
+
.react-calendar-timeline .rct-vertical-lines .rct-vl {
|
|
66
|
+
position: absolute;
|
|
67
|
+
border-left: 1px solid #bbb;
|
|
68
|
+
z-index: 30;
|
|
69
|
+
}
|
|
70
|
+
.react-calendar-timeline .rct-vertical-lines .rct-vl.rct-vl-first {
|
|
71
|
+
border-left-width: 2px;
|
|
72
|
+
}
|
|
73
|
+
.react-calendar-timeline .rct-horizontal-lines {
|
|
74
|
+
-webkit-user-select: none;
|
|
75
|
+
-moz-user-select: -moz-none;
|
|
76
|
+
-ms-user-select: none;
|
|
77
|
+
user-select: none;
|
|
78
|
+
}
|
|
79
|
+
.react-calendar-timeline .rct-horizontal-lines .rct-hl-even,
|
|
80
|
+
.react-calendar-timeline .rct-horizontal-lines .rct-hl-odd {
|
|
81
|
+
border-bottom: 1px solid #bbb;
|
|
82
|
+
box-sizing: border-box;
|
|
83
|
+
z-index: 40;
|
|
84
|
+
}
|
|
85
|
+
.react-calendar-timeline .rct-horizontal-lines .rct-hl-odd {
|
|
86
|
+
background: rgba(0, 0, 0, 0.05);
|
|
87
|
+
}
|
|
88
|
+
.react-calendar-timeline .rct-horizontal-lines .rct-hl-even {
|
|
89
|
+
background: transparent;
|
|
90
|
+
}
|
|
91
|
+
.react-calendar-timeline .rct-cursor-line {
|
|
92
|
+
position: absolute;
|
|
93
|
+
width: 2px;
|
|
94
|
+
background: #2196f3;
|
|
95
|
+
z-index: 51;
|
|
96
|
+
}
|
|
97
|
+
.react-calendar-timeline .rct-dateHeader {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
height: 100%;
|
|
102
|
+
border-bottom: 1px solid #bbb;
|
|
103
|
+
cursor: pointer;
|
|
104
|
+
font-size: 14px;
|
|
105
|
+
background-color: rgb(240, 240, 240);
|
|
106
|
+
border-left: 2px solid #bbb;
|
|
107
|
+
}
|
|
108
|
+
.react-calendar-timeline .rct-dateHeader-primary {
|
|
109
|
+
background-color: initial;
|
|
110
|
+
border-left: 1px solid #bbb;
|
|
111
|
+
border-right: 1px solid #bbb;
|
|
112
|
+
color: #fff;
|
|
113
|
+
}
|
|
114
|
+
.react-calendar-timeline .rct-header-root {
|
|
115
|
+
background: #c52020;
|
|
116
|
+
border-bottom: 1px solid #bbb;
|
|
117
|
+
}
|
|
118
|
+
.react-calendar-timeline .rct-calendar-header {
|
|
119
|
+
border: 1px solid #bbb;
|
|
120
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oddle.me/react-calendar-timeline",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.14",
|
|
4
4
|
"description": "react calendar timeline",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "src/global.d.ts",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=16 <25"
|
|
9
|
+
},
|
|
7
10
|
"scripts": {
|
|
8
11
|
"build": "npm run build:lib",
|
|
9
12
|
"build:demo": "echo '!!! Building Demo' && cross-env NODE_ENV=production webpack --progress",
|
|
10
|
-
"build:lib": "echo '!!! Building Library' && rimraf lib && cross-env NODE_ENV=production babel src --out-dir lib &&
|
|
13
|
+
"build:lib": "echo '!!! Building Library' && rimraf lib && cross-env NODE_ENV=production babel src --out-dir lib && sass --no-source-map src/lib/Timeline.scss lib/Timeline.css && sed -i'.bak' 's/Timeline\\.scss/Timeline\\.css/g' lib/lib/Timeline.js && rm lib/lib/Timeline.js.bak",
|
|
11
14
|
"lint": "eslint --ext .js --ext .jsx ./src",
|
|
12
15
|
"lint:fix": "prettier-eslint --parser babylon --write \"src/**/*.js\"",
|
|
13
16
|
"prepublish": "npm run build:lib",
|
|
@@ -22,10 +25,13 @@
|
|
|
22
25
|
"publishConfig": {
|
|
23
26
|
"access": "public"
|
|
24
27
|
},
|
|
25
|
-
"homepage": "https://
|
|
28
|
+
"homepage": "https://github.com/oddle-engineering/react-calendar-timeline",
|
|
26
29
|
"repository": {
|
|
27
30
|
"type": "git",
|
|
28
|
-
"url": "git+
|
|
31
|
+
"url": "git+https://github.com/oddle-engineering/react-calendar-timeline.git"
|
|
32
|
+
},
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/oddle-engineering/react-calendar-timeline/issues"
|
|
29
35
|
},
|
|
30
36
|
"author": "Marius Andra <marius.andra@gmail.com>",
|
|
31
37
|
"contributors": [
|
|
@@ -140,7 +146,7 @@
|
|
|
140
146
|
"jest-watch-typeahead": "^0.3.1",
|
|
141
147
|
"jsdom": "^11.5.1",
|
|
142
148
|
"moment": "^2.11.1",
|
|
143
|
-
"
|
|
149
|
+
"sass": "^1.97.3",
|
|
144
150
|
"prettier": "^1.19.1",
|
|
145
151
|
"prettier-eslint-cli": "^4.7.1",
|
|
146
152
|
"prop-types": "^15.6.2",
|