ywana-core8 0.0.883 → 0.0.884
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +4 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +4 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/tab.js +4 -2
- package/src/html/tree.js +2 -0
package/package.json
CHANGED
package/src/html/tab.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import React, { useState } from 'react'
|
2
2
|
import { Fragment } from 'react'
|
3
|
-
import { Icon } from '../html'
|
3
|
+
import { Icon, TEXTFORMATS, Text } from '../html'
|
4
4
|
import './tab.css'
|
5
5
|
|
6
6
|
/**
|
@@ -43,10 +43,12 @@ export const Tab = (props) => {
|
|
43
43
|
}
|
44
44
|
|
45
45
|
const style = selected ? "selected" : ""
|
46
|
+
const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
|
47
|
+
|
46
48
|
return (
|
47
49
|
<div className={`tab ${style}`} onClick={select}>
|
48
50
|
{icon ? <Icon icon={icon} size="small" /> : null}
|
49
|
-
{
|
51
|
+
{labelTxt}
|
50
52
|
{actions ? actions : null}
|
51
53
|
</div>
|
52
54
|
)
|
package/src/html/tree.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { Icon } from './icon'
|
3
|
+
import { Text, TEXTFORMATS } from './text'
|
3
4
|
import './tree.css'
|
4
5
|
|
5
6
|
/**
|
@@ -40,6 +41,7 @@ export const TreeItem = ({ id, icon = 'description', label, actions, onSelect, s
|
|
40
41
|
}
|
41
42
|
|
42
43
|
const style = selected ? "selected" : ""
|
44
|
+
const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
|
43
45
|
|
44
46
|
return (
|
45
47
|
<div className={`tree-item final ${style}`} onClick={select}>
|