@itcase/ui 1.0.61 → 1.0.63

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.
@@ -318,7 +318,8 @@ function GridRow(props) {
318
318
  className,
319
319
  dataTour,
320
320
  tag: Tag,
321
- htmlFor
321
+ htmlFor,
322
+ onClick
322
323
  } = props;
323
324
  const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
324
325
  prefix: 'fill_',
@@ -336,7 +337,8 @@ function GridRow(props) {
336
337
  id: id,
337
338
  htmlFor: htmlFor,
338
339
  style: gridRowStyles,
339
- "data-tour": dataTour
340
+ "data-tour": dataTour,
341
+ onClick: onClick
340
342
  }, children);
341
343
  }
342
344
  GridRow.propTypes = {
@@ -49,6 +49,7 @@ const notificationItemConfig = {
49
49
  };
50
50
  function NotificationItem(props) {
51
51
  const {
52
+ id,
52
53
  appearance,
53
54
  closeButton,
54
55
  after,
@@ -63,6 +64,7 @@ function NotificationItem(props) {
63
64
  title,
64
65
  titleTextSize,
65
66
  titleTextColor,
67
+ onClickClose,
66
68
  className
67
69
  } = props;
68
70
  const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
@@ -83,7 +85,8 @@ function NotificationItem(props) {
83
85
  size: textSize,
84
86
  textColor: textColor || notificationItemConfig.appearance[appearance] && notificationItemConfig.appearance[appearance].textColor.replace(/([A-Z])/g, '-$1').toLowerCase()
85
87
  }, text), closeButton && /*#__PURE__*/React__default.default.createElement("div", {
86
- className: "notification__item-close"
88
+ onClick: () => onClickClose(id),
89
+ className: clsx__default.default('notification__item-close', onClickClose && 'cursor_type_pointer')
87
90
  }, closeButton)), after);
88
91
  }
89
92
  NotificationItem.propTypes = {
@@ -119,6 +122,7 @@ function NotificationList(props) {
119
122
  className: "notification__wrapper"
120
123
  }, notifications.map((notification, i) => /*#__PURE__*/React__default.default.createElement(NotificationItem, {
121
124
  key: i,
125
+ id: notification.id,
122
126
  type: notification.type || type,
123
127
  set: notification.set || set,
124
128
  size: notification.size || size,
@@ -126,7 +130,7 @@ function NotificationList(props) {
126
130
  text: notification.text,
127
131
  status: notification.status,
128
132
  closeButton: closeButton,
129
- onClick: hideNotifications
133
+ onClickClose: hideNotifications
130
134
  }))));
131
135
  }
132
136
  NotificationList.propTypes = {
@@ -31,7 +31,7 @@
31
31
  }
32
32
  }
33
33
  }
34
- div.choice__item {
34
+ .choice__item {
35
35
  min-width: 30px;
36
36
  border-width: 0;
37
37
  position: relative;
@@ -1,4 +1,4 @@
1
- div.choice__item {
1
+ .choice__item {
2
2
  min-width: 30px;
3
3
  border-width: 0;
4
4
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",