ywana-core8 0.0.652 → 0.0.653

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.652",
3
+ "version": "0.0.653",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -6,7 +6,7 @@ import './button.css'
6
6
  /**
7
7
  * HTML Button
8
8
  */
9
- export const Button = ({ label, icon, action, disabled = false, outlined, raised }) => {
9
+ export const Button = ({ label, icon, action, disabled = false, outlined, raised, className }) => {
10
10
 
11
11
  function click(event) {
12
12
  if (!disabled) {
@@ -19,7 +19,7 @@ export const Button = ({ label, icon, action, disabled = false, outlined, raised
19
19
  let style = raised ? 'raised' : outlined ? 'outlined' : 'normal'
20
20
  if (disabled) style = `${style} disabled`
21
21
  return (
22
- <button className={`btn ${style}`} onClick={click}>
22
+ <button className={`btn ${style} ${className}`} onClick={click}>
23
23
  { icon ? <Icon icon={icon} size="small" clickable action={click} /> : null }
24
24
  <Text>{ label }</Text>
25
25
  </button>