@oliasoft-open-source/charts-library 2.11.2 → 2.11.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": "@oliasoft-open-source/charts-library",
3
- "version": "2.11.2",
3
+ "version": "2.11.3",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "homepage": "https://gitlab.com/oliasoft-open-source/charts-library",
6
6
  "bugs": {
@@ -49,7 +49,7 @@
49
49
  "@babel/eslint-parser": "^7.18.9",
50
50
  "@babel/preset-env": "^7.18.10",
51
51
  "@babel/preset-react": "^7.18.6",
52
- "@oliasoft-open-source/react-ui-library": "3.3.11-beta-1",
52
+ "@oliasoft-open-source/react-ui-library": "3.3.12",
53
53
  "@oliasoft-open-source/units": "2.1.0",
54
54
  "@storybook/addon-actions": "^6.5.10",
55
55
  "@storybook/addon-docs": "^6.5.10",
package/release-notes.md CHANGED
@@ -1,9 +1,13 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.11.3
4
+
5
+ - Submit Axes option on keyboard Enter ([OW-10995](https://oliasoft.atlassian.net/browse/OW-10995))
6
+
3
7
  ## 2.11.2
4
8
 
5
9
  - remove number handling functions that were duplicated from units package
6
- ([OW-11062](https://oliasoft.atlassian.net/browse/OW-11062))
10
+ ([OW-11062](https://oliasoft.atlassian.net/browse/OW-11062))
7
11
 
8
12
  ## 2.11.1
9
13
 
@@ -20,7 +24,7 @@
20
24
  ## 2.10.1
21
25
 
22
26
  - Use `peerDependencies` for common versions of shared packages like `units` and `react-ui-library` so reduce double
23
- installs and conflicting versions in parent apps ([OW-10974](https://oliasoft.atlassian.net/browse/OW-10974))
27
+ installs and conflicting versions in parent apps ([OW-10974](https://oliasoft.atlassian.net/browse/OW-10974))
24
28
 
25
29
  ## 2.10.0
26
30
 
@@ -45,7 +45,8 @@ const AxesOptionsPopover = ({
45
45
  });
46
46
  };
47
47
 
48
- const onDone = () => {
48
+ const onDone = (e) => {
49
+ e.preventDefault();
49
50
  if (valid) {
50
51
  const sanitizedFormState = formState.map((axis) => ({
51
52
  ...axis,
@@ -72,7 +73,7 @@ const AxesOptionsPopover = ({
72
73
  const isCustomValue = axes.filter((axis) => axis.max || axis.min).length > 0;
73
74
  const handleInputFocus = (e) => e.target.select();
74
75
  return (
75
- <>
76
+ <form onSubmit={onDone}>
76
77
  {axes.map((axis, i) => {
77
78
  const axisLabel = controlsAxesLabels.find(
78
79
  (el) => el.id === axis.id,
@@ -121,7 +122,7 @@ const AxesOptionsPopover = ({
121
122
  );
122
123
  })}
123
124
  <Flex gap="8px" alignItems="center">
124
- <Button small colored label="Done" onClick={onDone} disabled={!valid} />
125
+ <Button type="submit" small colored label="Done" disabled={!valid} />
125
126
  <Button
126
127
  small
127
128
  name="resetAxes"
@@ -133,7 +134,7 @@ const AxesOptionsPopover = ({
133
134
  or double click on canvas
134
135
  </Text>
135
136
  </Flex>
136
- </>
137
+ </form>
137
138
  );
138
139
  };
139
140