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/package.json
CHANGED
package/src/html/chip.js
CHANGED
@@ -9,7 +9,7 @@ import './chip.css'
|
|
9
9
|
*/
|
10
10
|
export const Chip = (props) => {
|
11
11
|
|
12
|
-
const { id, icon, label, tooltip, action, outlined, selected, onSelect } = props
|
12
|
+
const { id, icon, label, tooltip, action, outlined, selected, onSelect, className } = props
|
13
13
|
|
14
14
|
function select(event) {
|
15
15
|
event.stopPropagation();
|
@@ -21,14 +21,14 @@ export const Chip = (props) => {
|
|
21
21
|
if (selected) style = `${style} selected`
|
22
22
|
return tooltip ? (
|
23
23
|
<Tooltip {...tooltip}>
|
24
|
-
<div className={`chip ${style}`} onClick={select}>
|
24
|
+
<div className={`chip ${className} ${style}`} onClick={select}>
|
25
25
|
{icon ? <Icon icon={icon} size="small" /> : null}
|
26
26
|
<main><Text>{label}</Text></main>
|
27
27
|
{action ? <span className="meta">{action}</span> : null}
|
28
28
|
</div>
|
29
29
|
</Tooltip>
|
30
30
|
) : (
|
31
|
-
<div className={`chip ${style}`} onClick={select}>
|
31
|
+
<div className={`chip ${className} ${style}`} onClick={select}>
|
32
32
|
{icon ? <Icon icon={icon} size="small" /> : null}
|
33
33
|
<main><Text>{label}</Text></main>
|
34
34
|
{action ? <span className="meta">{action}</span> : null}
|
package/src/html/table.js
CHANGED
@@ -13,7 +13,7 @@ const isFunction = value => value && (Object.prototype.toString.call(value) ===
|
|
13
13
|
*/
|
14
14
|
export const DataTable = (props) => {
|
15
15
|
|
16
|
-
const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false, className } = props
|
16
|
+
const { columns = [], rows = [], onRowSelection, onSort, onCheckAll, editable, outlined, expanded = false, className, emptyMessage = "No Results Found" } = props
|
17
17
|
const [sortDir, setSortDir] = useState({})
|
18
18
|
const [allChecked, setAllChecked] = useState(false)
|
19
19
|
|
@@ -118,7 +118,7 @@ export const DataTable = (props) => {
|
|
118
118
|
<td colSpan={1000}>
|
119
119
|
<div className='empty-message'>
|
120
120
|
<Icon icon="search_off" />
|
121
|
-
<Text>
|
121
|
+
<Text>{emptyMessage}</Text>
|
122
122
|
</div>
|
123
123
|
</td>
|
124
124
|
</tr>
|