@oliasoft-open-source/charts-library 4.7.0-beta-2 → 4.7.0-beta-4

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/dist/index.js CHANGED
@@ -22919,6 +22919,7 @@ const LineOptions = ({
22919
22919
  component: /* @__PURE__ */ jsx(
22920
22920
  Tooltip$2,
22921
22921
  {
22922
+ display: "inline-flex",
22922
22923
  text: selectedOption == null ? void 0 : selectedOption.label,
22923
22924
  placement: "bottom-start",
22924
22925
  enabled: !menuOpen,
@@ -23129,28 +23130,31 @@ const DragOptions = ({
23129
23130
  dragToMoveAnnotation
23130
23131
  }
23131
23132
  }) => {
23132
- const options = getDragOptions({
23133
- onTogglePan,
23134
- onToggleZoom,
23135
- panEnabled,
23136
- zoomEnabled,
23137
- enableDragPoints,
23138
- enableDragAnnotation,
23139
- isDragDataAllowed,
23140
- isDragAnnotationAllowed,
23141
- onToggleDragAnnotation,
23142
- onToggleDragPoints,
23143
- onDisableDragOptions,
23144
- translations: {
23145
- dragToZoom,
23146
- doubleClickToReset,
23147
- dragToPan,
23148
- orDoubleClickToCanvas,
23149
- dragToMovePoints,
23150
- dragDisabled,
23151
- dragToMoveAnnotation
23152
- }
23153
- });
23133
+ const options = useMemo(
23134
+ () => getDragOptions({
23135
+ onTogglePan,
23136
+ onToggleZoom,
23137
+ panEnabled,
23138
+ zoomEnabled,
23139
+ enableDragPoints,
23140
+ enableDragAnnotation,
23141
+ isDragDataAllowed,
23142
+ isDragAnnotationAllowed,
23143
+ onToggleDragAnnotation,
23144
+ onToggleDragPoints,
23145
+ onDisableDragOptions,
23146
+ translations: {
23147
+ dragToZoom,
23148
+ doubleClickToReset,
23149
+ dragToPan,
23150
+ orDoubleClickToCanvas,
23151
+ dragToMovePoints,
23152
+ dragDisabled,
23153
+ dragToMoveAnnotation
23154
+ }
23155
+ }),
23156
+ [zoomEnabled, panEnabled, enableDragPoints, isDragDataAllowed]
23157
+ );
23154
23158
  const selectedOption = options.find((option) => option.selected);
23155
23159
  const optionsWithDragPoints = options.map(
23156
23160
  ({ icon, label, onClick, selected }) => ({
@@ -24588,7 +24592,7 @@ const AxesOptions = (optionsPopover) => {
24588
24592
  {
24589
24593
  text: translations.axesOptions,
24590
24594
  placement: "bottom-start",
24591
- display: "flex",
24595
+ display: "inline-flex",
24592
24596
  children: /* @__PURE__ */ jsx(Button, { small: true, basic: true, colored: "muted", round: true, icon: /* @__PURE__ */ jsx(TbRuler, {}) })
24593
24597
  }
24594
24598
  )
@@ -24724,6 +24728,7 @@ const Controls = ({
24724
24728
  /* @__PURE__ */ jsx(
24725
24729
  Tooltip$2,
24726
24730
  {
24731
+ display: "inline-flex",
24727
24732
  text: translations.downloadAsPNG,
24728
24733
  placement: "bottom-end",
24729
24734
  children: /* @__PURE__ */ jsx(
@@ -24761,6 +24766,7 @@ const Controls = ({
24761
24766
  table2 ? /* @__PURE__ */ jsx(
24762
24767
  Tooltip$2,
24763
24768
  {
24769
+ display: "inline-flex",
24764
24770
  text: showTable ? translations.showChart : translations.showTable,
24765
24771
  placement: "bottom-end",
24766
24772
  children: /* @__PURE__ */ jsx(