@woosmap/ui 4.41.1 → 4.41.3

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": "4.41.1",
3
+ "version": "4.41.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -28,6 +28,7 @@ export default class Button extends Component {
28
28
  testId,
29
29
  iconRight,
30
30
  isNotification,
31
+ submitType,
31
32
  ...rest
32
33
  } = this.props;
33
34
  const classes = cl(
@@ -51,7 +52,7 @@ export default class Button extends Component {
51
52
  return (
52
53
  <button
53
54
  ref={this.elementRef}
54
- type="button"
55
+ type={submitType ? 'submit' : 'button'}
55
56
  aria-label={label}
56
57
  disabled={disabled}
57
58
  onClick={isLoading || disabled ? undefined : onClick}
@@ -85,6 +86,7 @@ Button.defaultProps = {
85
86
  iconRight: false,
86
87
  isNotification: false,
87
88
  isFillIcon: false,
89
+ submitType: false,
88
90
  };
89
91
 
90
92
  Button.propTypes = {
@@ -122,4 +124,5 @@ Button.propTypes = {
122
124
  iconRight: PropTypes.bool,
123
125
  isNotification: PropTypes.bool,
124
126
  isFillIcon: PropTypes.bool,
127
+ submitType: PropTypes.bool,
125
128
  };
@@ -75,6 +75,7 @@ Select.defaultProps = {
75
75
  isCreatable: false,
76
76
  color: undefined,
77
77
  disabled: false,
78
+ name: undefined,
78
79
  };
79
80
  Select.propTypes = {
80
81
  className: PropTypes.string,
@@ -85,5 +86,6 @@ Select.propTypes = {
85
86
  icon: PropTypes.string,
86
87
  isCreatable: PropTypes.bool,
87
88
  disabled: PropTypes.bool,
89
+ name: PropTypes.string,
88
90
  color: PropTypes.oneOf(['bleu', 'mauve', 'green', 'grey', 'orange', 'red', 'white', undefined, '']),
89
91
  };