@oliasoft-open-source/charts-library 2.5.6 → 2.5.7

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.5.6",
3
+ "version": "2.5.7",
4
4
  "description": "React Chart Library (based on Chart.js and react-chart-js-2)",
5
5
  "main": "index.js",
6
6
  "files": [
package/release-notes.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Charts Library Release Notes
2
2
 
3
+ ## 2.5.7
4
+
5
+ - Allow stretchy headerComponent in controls
6
+
3
7
  ## 2.5.6
4
8
 
5
9
  - Removed resizeDelay, fixed double data labels set position
@@ -37,7 +37,7 @@ const Controls = ({
37
37
  return (
38
38
  <>
39
39
  <div className={styles.controls}>
40
- <div>{headerComponent || <Text bold>{chart.options.title}</Text>}</div>
40
+ {headerComponent || <Text bold>{chart.options.title}</Text>}
41
41
  <div className={styles.buttons}>
42
42
  {!showTable && (
43
43
  <>
@@ -522,6 +522,15 @@ export const HeaderComponent = (args) => {
522
522
  );
523
523
  };
524
524
 
525
+ export const HeaderComponentFullWidth = Template.bind({});
526
+ HeaderComponentFullWidth.args = {
527
+ headerComponent: (
528
+ <div style={{ flexGrow: 1, minWidth: 150 }}>
529
+ <Slider max={100} min={0} onChange={() => {}} showArrows value={50} />
530
+ </div>
531
+ ),
532
+ };
533
+
525
534
  export const SubheaderComponent = Template.bind({});
526
535
  SubheaderComponent.args = {
527
536
  subheaderComponent: (