ywana-core8 0.0.732 → 0.0.734

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.732",
3
+ "version": "0.0.734",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/list.js CHANGED
@@ -65,7 +65,8 @@ const ListItem = ({ item, selected, onSelect }) => {
65
65
  if (onSelect) onSelect(id)
66
66
  }
67
67
 
68
- const style = selected === id ? "selected" : ""
68
+ const isSelected = Array.isArray(selected) ? selected.includes(id) : selected === id
69
+ const style = isSelected ? "selected" : ""
69
70
  return (
70
71
  <li className={`${style}`} onClick={select}>
71
72
  {icon ? <Icon icon={icon} size="small" /> : null}
@@ -39,7 +39,7 @@ export const MultiSelector = (props) => {
39
39
  /**
40
40
  * Toggle Button
41
41
  */
42
- const ToggleButton = (props) => {
42
+ export const ToggleButton = (props) => {
43
43
 
44
44
  const { label, value, selected = false, onToggle } = props
45
45