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