-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed issue that prevent RadioControl changes. * Ensure to use the field default value if field value is not set. * Make conditions able to work with checkboxes. * Make async select load a set of default options.
- Loading branch information
Showing
7 changed files
with
2,802 additions
and
3,593 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
{ | ||
"name": "gamipress-gutenberg-blocks", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"private": true, | ||
"scripts": { | ||
"start": "cgb-scripts start", | ||
"build": "cgb-scripts build", | ||
"eject": "cgb-scripts eject" | ||
}, | ||
"dependencies": { | ||
"cgb-scripts": "^1.18.1", | ||
"npm": "^6.10.2", | ||
"react-select": "^3.0.4" | ||
"cgb-scripts": "^1.23.1", | ||
"classnames": "^2.3.1", | ||
"npm": "^8.5.4", | ||
"react": "^17.0.2", | ||
"react-dom": "^17.0.2", | ||
"react-select": "^5.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,6 @@ | |
* @author Ruben Garcia <[email protected]> | ||
*/ | ||
|
||
/** | ||
* External dependencies | ||
*/ | ||
import classnames from 'classnames'; | ||
|
||
/** | ||
* WordPress dependencies | ||
*/ | ||
|
@@ -40,7 +35,7 @@ const MultiCheckboxControl = ( { label, className, selected, help, instanceId, o | |
}; | ||
|
||
return Array.isArray( options ) && options.length && ( | ||
<BaseControl label={ label } id={ id } help={ help } className={ classnames( className, 'components-multicheckbox-control' ) }> | ||
<BaseControl label={ label } id={ id } help={ help } className={ className + 'components-multicheckbox-control' }> | ||
{ options.map( ( option, index ) => | ||
<div | ||
key={ `${ id }-${ index }` } | ||
|
@@ -65,4 +60,4 @@ const MultiCheckboxControl = ( { label, className, selected, help, instanceId, o | |
); | ||
} | ||
|
||
export default MultiCheckboxControl; | ||
export default MultiCheckboxControl; |