dtable-ui-component 6.0.44 → 6.0.45-alpha.1

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.
@@ -115,6 +115,9 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
115
115
  color: '#212529',
116
116
  cursor: isDisabled ? 'default' : 'pointer',
117
117
  backgroundColor: isFocused ? '#f5f5f5' : '#fff',
118
+ ':active': {
119
+ backgroundColor: '#f5f5f5'
120
+ },
118
121
  '.header-icon .dtable-font': {
119
122
  color: '#aaa'
120
123
  }
@@ -23,22 +23,6 @@
23
23
  position: relative;
24
24
  }
25
25
 
26
- .notification-container .notification-header .notification-close-icon {
27
- position: absolute;
28
- right: 14px;
29
- height: 24px;
30
- width: 24px;
31
- text-align: center;
32
- cursor: pointer;
33
- color: #000;
34
- opacity: 0.5;
35
- font-weight: 700;
36
- }
37
-
38
- .notification-container .notification-header .notification-close-icon:hover {
39
- opacity: 0.75;
40
- }
41
-
42
26
  .notification-container .notification-body {
43
27
  padding: 0;
44
28
  }
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactstrap = require("reactstrap");
10
+ var _IconButton = _interopRequireDefault(require("../IconButton"));
10
11
  require("./index.css");
11
12
  class NotificationPopover extends _react.default.Component {
12
13
  constructor() {
@@ -58,8 +59,8 @@ class NotificationPopover extends _react.default.Component {
58
59
  ref: ref => this.notificationContainerRef = ref
59
60
  }, /*#__PURE__*/_react.default.createElement("div", {
60
61
  className: "notification-header"
61
- }, headerText, /*#__PURE__*/_react.default.createElement("span", {
62
- className: "dtable-font dtable-icon-x notification-close-icon",
62
+ }, headerText, /*#__PURE__*/_react.default.createElement(_IconButton.default, {
63
+ icon: "x",
63
64
  onClick: this.props.onNotificationListToggle
64
65
  })), /*#__PURE__*/_react.default.createElement("div", {
65
66
  className: "notification-body"
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.44",
3
+ "version": "6.0.45-alpha.1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",
7
- "@seafile/seafile-calendar": "0.0.29",
7
+ "@seafile/seafile-calendar": "0.0.31",
8
8
  "@seafile/seafile-editor": "~2.0.6",
9
9
  "classnames": "2.3.2",
10
10
  "dayjs": "1.10.7",