@datarobot/design-system 29.4.0 → 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.0",
3
+ "version": "29.5.0",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",
package/styles/index.css CHANGED
@@ -11529,7 +11529,7 @@ button:hover.active.pill {
11529
11529
  border-right: 0.0625rem solid var(--modal-border-color);
11530
11530
  border-left: 0.0625rem solid var(--modal-border-color);
11531
11531
  gap: 1rem;
11532
- z-index: 2;
11532
+ z-index: 1051;
11533
11533
  overflow-y: hidden;
11534
11534
  }
11535
11535
  .sidebar-modal.align-right {
@@ -11558,7 +11558,7 @@ button:hover.active.pill {
11558
11558
  flex-shrink: 0;
11559
11559
  flex-direction: row;
11560
11560
  justify-content: stretch;
11561
- padding: 0.5rem 0 1.5rem;
11561
+ padding: 0.75rem 0;
11562
11562
  border-top: 0.0625rem solid var(--base-border-color);
11563
11563
  gap: 0.5rem;
11564
11564
  }
@@ -11572,7 +11572,7 @@ button:hover.active.pill {
11572
11572
  left: 100%;
11573
11573
  width: calc(100vw - 100%);
11574
11574
  background-color: var(--modal-backdrop-bg);
11575
- z-index: 1;
11575
+ z-index: 1040;
11576
11576
  }
11577
11577
  .sidebar-modal + .sidebar-modal-backdrop.align-right {
11578
11578
  right: 100%;