@datarobot/design-system 29.4.1 → 29.5.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.
@@ -712,13 +712,15 @@ type ChartLegendProps = {
712
712
  /** if true, legend items will become clickable */
713
713
  isInteractive?: boolean;
714
714
  onChange?: OnChangeHandler;
715
+ onMouseEnter?: OnMouseEnterHandler;
716
+ onMouseLeave?: OnMouseLeaveHandler;
715
717
  };
716
718
  /**
717
719
  * Legends for charts
718
720
  * @midnight-gray-supported
719
721
  * @alpine-light-supported
720
722
  */
721
- export function ChartLegend({ className, items, isInteractive, onChange, testId, }: ChartLegendProps): import("react/jsx-runtime").JSX.Element;
723
+ export function ChartLegend({ className, items, isInteractive, onChange, onMouseEnter, onMouseLeave, testId, }: ChartLegendProps): import("react/jsx-runtime").JSX.Element;
722
724
  export {};
723
725
 
724
726
  import './chart-legend-item.less';
@@ -726,8 +728,10 @@ type ChartLegendItemProps = {
726
728
  item: ChartLegendItemType;
727
729
  isInteractive?: boolean;
728
730
  onChange?: OnChangeHandler;
731
+ onMouseEnter?: OnMouseEnterHandler;
732
+ onMouseLeave?: OnMouseLeaveHandler;
729
733
  };
730
- export function ChartLegendItem({ item, isInteractive, onChange, }: ChartLegendItemProps): import("react/jsx-runtime").JSX.Element;
734
+ export function ChartLegendItem({ item, isInteractive, onChange, onMouseEnter, onMouseLeave, }: ChartLegendItemProps): import("react/jsx-runtime").JSX.Element;
731
735
  export {};
732
736
 
733
737
  export const CHART_LEGEND_ITEM_GLYPH_TYPES: {
@@ -763,6 +767,11 @@ export type OnChangeHandlerEvent = {
763
767
  isActive: boolean;
764
768
  };
765
769
  export type OnChangeHandler = (event: OnChangeHandlerEvent) => void;
770
+ export type OnMouseOverHandlerEvent = {
771
+ item: ChartLegendItemType;
772
+ };
773
+ export type OnMouseEnterHandler = (event: OnMouseOverHandlerEvent) => void;
774
+ export type OnMouseLeaveHandler = (event: OnMouseOverHandlerEvent) => void;
766
775
 
767
776
  import './chat.less';
768
777
  export type ChatProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/design-system",
3
- "version": "29.4.1",
3
+ "version": "29.5.0",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",