ywana-core8 0.0.755 → 0.0.757
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 +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +8 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/chip.js +3 -3
- package/src/html/table.js +2 -2
package/dist/index.modern.js
CHANGED
@@ -507,7 +507,8 @@ var Chip = function Chip(props) {
|
|
507
507
|
action = props.action,
|
508
508
|
outlined = props.outlined,
|
509
509
|
selected = props.selected,
|
510
|
-
onSelect = props.onSelect
|
510
|
+
onSelect = props.onSelect,
|
511
|
+
className = props.className;
|
511
512
|
|
512
513
|
function select(event) {
|
513
514
|
event.stopPropagation();
|
@@ -518,7 +519,7 @@ var Chip = function Chip(props) {
|
|
518
519
|
var style = outlined ? "outlined" : "normal";
|
519
520
|
if (selected) style = style + " selected";
|
520
521
|
return tooltip ? /*#__PURE__*/React.createElement(Tooltip, tooltip, /*#__PURE__*/React.createElement("div", {
|
521
|
-
className: "chip " + style,
|
522
|
+
className: "chip " + className + " " + style,
|
522
523
|
onClick: select
|
523
524
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
524
525
|
icon: icon,
|
@@ -526,7 +527,7 @@ var Chip = function Chip(props) {
|
|
526
527
|
}) : null, /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(Text, null, label)), action ? /*#__PURE__*/React.createElement("span", {
|
527
528
|
className: "meta"
|
528
529
|
}, action) : null)) : /*#__PURE__*/React.createElement("div", {
|
529
|
-
className: "chip " + style,
|
530
|
+
className: "chip " + className + " " + style,
|
530
531
|
onClick: select
|
531
532
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
532
533
|
icon: icon,
|
@@ -1710,7 +1711,9 @@ var DataTable = function DataTable(props) {
|
|
1710
1711
|
outlined = props.outlined,
|
1711
1712
|
_props$expanded = props.expanded,
|
1712
1713
|
expanded = _props$expanded === void 0 ? false : _props$expanded,
|
1713
|
-
className = props.className
|
1714
|
+
className = props.className,
|
1715
|
+
_props$emptyMessage = props.emptyMessage,
|
1716
|
+
emptyMessage = _props$emptyMessage === void 0 ? "No Results Found" : _props$emptyMessage;
|
1714
1717
|
|
1715
1718
|
var _useState = useState({}),
|
1716
1719
|
sortDir = _useState[0],
|
@@ -1849,7 +1852,7 @@ var DataTable = function DataTable(props) {
|
|
1849
1852
|
className: "empty-message"
|
1850
1853
|
}, /*#__PURE__*/React.createElement(Icon, {
|
1851
1854
|
icon: "search_off"
|
1852
|
-
}), /*#__PURE__*/React.createElement(Text, null,
|
1855
|
+
}), /*#__PURE__*/React.createElement(Text, null, emptyMessage)))))));
|
1853
1856
|
};
|
1854
1857
|
/**
|
1855
1858
|
* DataTable Row
|