@thairath/tr-design-system 0.2.14 → 0.2.16

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/dist/index.esm.js CHANGED
@@ -5583,15 +5583,18 @@ var CardArticle = _ref => {
5583
5583
  category,
5584
5584
  categoryColor,
5585
5585
  datetime,
5586
- className
5586
+ className,
5587
+ onClick
5587
5588
  } = _ref;
5588
5589
  return /*#__PURE__*/React.createElement(TRO_Card, {
5589
5590
  variant: variant,
5590
- className: className ? className : ''
5591
+ className: className ? className : '',
5592
+ onClick: onClick
5591
5593
  }, thumbnail && /*#__PURE__*/React.createElement(TRO_CardThumbnail, {
5592
5594
  className: "tro--card--thumbnail"
5593
5595
  }, /*#__PURE__*/React.createElement("a", {
5594
- href: link
5596
+ href: link,
5597
+ title: title
5595
5598
  }, /*#__PURE__*/React.createElement(Thumbnail, {
5596
5599
  src: thumbnail,
5597
5600
  size: size,
@@ -5600,7 +5603,8 @@ var CardArticle = _ref => {
5600
5603
  className: "tro--card--container"
5601
5604
  }, /*#__PURE__*/React.createElement("a", {
5602
5605
  href: link,
5603
- className: "tro--card--container--inner"
5606
+ className: "tro--card--container--inner",
5607
+ title: title
5604
5608
  }, /*#__PURE__*/React.createElement(TRO_CardTitle, {
5605
5609
  variant: "title"
5606
5610
  }, title), description !== undefined && /*#__PURE__*/React.createElement(TRO_CardDescription, {
@@ -5608,7 +5612,8 @@ var CardArticle = _ref => {
5608
5612
  }, description)), (category || datetime) && /*#__PURE__*/React.createElement(TRO_CardInfo, {
5609
5613
  className: "tro--card--info"
5610
5614
  }, category && /*#__PURE__*/React.createElement("a", {
5611
- href: linkCategory
5615
+ href: linkCategory,
5616
+ title: category
5612
5617
  }, /*#__PURE__*/React.createElement(TRO_CardCategory, {
5613
5618
  variant: "info",
5614
5619
  catColor: categoryColor