@woosmap/ui 2.47.0 → 2.48.0

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": "@woosmap/ui",
3
- "version": "2.47.0",
3
+ "version": "2.48.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -104,7 +104,7 @@ Button.propTypes = {
104
104
  ]),
105
105
  isLoading: PropTypes.bool,
106
106
  active: PropTypes.bool,
107
- label: PropTypes.string,
107
+ label: PropTypes.oneOfType(PropTypes.string, PropTypes.node),
108
108
  icon: PropTypes.string,
109
109
  iconSize: PropTypes.number,
110
110
  className: PropTypes.string,
@@ -341,6 +341,7 @@ class Dropdown extends Component {
341
341
  closeCb,
342
342
  disableCloseOutside,
343
343
  testId,
344
+ openOnMouseEnter,
344
345
  ...rest
345
346
  } = this.props;
346
347
  const { open } = this.state;
@@ -395,7 +396,7 @@ Dropdown.propTypes = {
395
396
  disabled: PropTypes.bool,
396
397
  disableCloseOutside: PropTypes.bool,
397
398
  openOnMouseEnter: PropTypes.bool,
398
- label: PropTypes.string,
399
+ label: PropTypes.oneOfType(PropTypes.string, PropTypes.node),
399
400
  testId: PropTypes.string,
400
401
  children: PropTypes.node.isRequired,
401
402
  className: PropTypes.string,
@@ -55,7 +55,7 @@ Default.args = {};
55
55
 
56
56
  const MultiMenuTemplate = () => (
57
57
  <div className="mbi" id="menuid">
58
- <Dropdown btnFace="link" btnFaceIcon="clock" label="My dropdown">
58
+ <Dropdown btnFace="link" btnFaceIcon="clock" label="My dropdown" openOnMouseEnter>
59
59
  <Dropdown.Menu isSection direction="se">
60
60
  <Dropdown.MenuSection title="Section title">
61
61
  <Dropdown.ButtonItem btnIcon="delete" isImportant btnLabel="Delete" />