ywana-core8 0.0.755 → 0.0.756

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.755",
3
+ "version": "0.0.756",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
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}