@seafile/seafile-calendar 1.0.24 → 1.0.26

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/assets/index.css CHANGED
@@ -15,6 +15,20 @@
15
15
  content: '';
16
16
  clear: both;
17
17
  }
18
+ .rc-calendar-input-wrap a {
19
+ position: absolute;
20
+ top: 0;
21
+ right: 12px;
22
+ bottom: 0;
23
+ height: 32px;
24
+ line-height: 32px;
25
+ display: -ms-flexbox;
26
+ display: flex;
27
+ -ms-flex-align: center;
28
+ align-items: center;
29
+ -ms-flex-pack: center;
30
+ justify-content: center;
31
+ }
18
32
  .rc-calendar-time-picker {
19
33
  position: absolute;
20
34
  width: 100%;
@@ -76,23 +90,20 @@
76
90
  color: #868e96;
77
91
  }
78
92
  .rc-calendar-clear-btn {
79
- z-index: inherit;
80
- position: absolute;
81
- right: 6px;
82
- cursor: pointer;
83
- overflow: hidden;
84
93
  width: 20px;
85
94
  height: 20px;
86
- top: 6px;
87
- margin: 0;
88
95
  display: -ms-flexbox;
89
96
  display: flex;
90
97
  -ms-flex-pack: center;
91
98
  justify-content: center;
92
99
  -ms-flex-align: center;
93
100
  align-items: center;
101
+ cursor: pointer;
102
+ overflow: hidden;
94
103
  }
95
104
  .rc-calendar-clear-btn svg {
105
+ height: 14px;
106
+ width: 14px;
96
107
  color: var(--rc-calendar-icon-color, #666);
97
108
  }
98
109
  .rc-calendar-clear-btn:hover {
@@ -107,7 +107,7 @@ var DateInput = function (_React$Component) {
107
107
  'a',
108
108
  {
109
109
  role: 'button',
110
- title: locale.clear,
110
+ title: clearIcon ? undefined : locale.clear,
111
111
  onClick: this.onClear
112
112
  },
113
113
  clearIcon || React.createElement(
@@ -139,7 +139,7 @@ var DateInput = function (_React$Component) {
139
139
  'a',
140
140
  {
141
141
  role: 'button',
142
- title: locale.clear,
142
+ title: clearIcon ? undefined : locale.clear,
143
143
  onClick: this.onClear
144
144
  },
145
145
  clearIcon || _react2['default'].createElement(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-calendar",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "React Calendar",
5
5
  "keywords": [
6
6
  "react",