ywana-core8 0.0.883 → 0.0.885

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.883",
3
+ "version": "0.0.885",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/menu.js CHANGED
@@ -1,8 +1,10 @@
1
1
  import React, { useContext, useState } from 'react'
2
2
  import { Icon } from './icon';
3
+ import { Text, TEXTFORMATS } from './text';
3
4
  import './menu.css'
4
5
 
5
6
 
7
+
6
8
  /**
7
9
  * Page Context
8
10
  */
@@ -63,10 +65,12 @@ export const MenuItem = (props) => {
63
65
  }
64
66
 
65
67
  const style = disabled ? "disabled" : ""
68
+ const labelTxt = label ? <Text format={TEXTFORMATS.STRING}>{label}</Text> : null
69
+
66
70
  return (
67
71
  <li className={`menu-item ${style}`} onClick={select}>
68
72
  {icon ? <Icon icon={icon} /> : null}
69
- <label>{label}</label>
73
+ <label>{labelTxt}</label>
70
74
  {meta ? <div className="meta">{meta}</div> : null}
71
75
  </li>
72
76
  )
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
- {label}
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}>