@datarobot/design-system 29.4.1 → 29.6.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 = {
@@ -3697,7 +3706,9 @@ type KeyValuePairsProps = {
3697
3706
  /** Object that represents the key value pairs in this component */
3698
3707
  value: ValueObject;
3699
3708
  className?: string;
3709
+ /** whether whole form is disabled */
3700
3710
  isDisabled?: boolean;
3711
+ disabledPairs?: ValueObject;
3701
3712
  label?: string;
3702
3713
  /** Label for the key column */
3703
3714
  keyLabel?: string;
@@ -3743,7 +3754,7 @@ type KeyValuePairsProps = {
3743
3754
  @midnight-gray-supported
3744
3755
  @alpine-light-supported
3745
3756
  */
3746
- export const KeyValuePairs: ({ value, className, label, keyLabel, valueLabel, helperText, placeholder: placeholderParams, isDisabled, onChange, hasWarning, emptyCheck, warningMessage: warningMessageParams, buttonText: buttonTextParams, maxItemsTooltipText: maxItemsTooltipTextParams, emptyItemErrorText: emptyItemErrorTextParams, deleteKeyValueText: deleteKeyValueTextParams, buildDuplicateItemErrorText: buildDuplicateItemErrorTextParams, testId, infoIconProps, onError, maxSize, addButtonAccentType, keyInputAriaLabel: keyInputAriaLabelParams, valueInputAriaLabel: valueInputAriaLabelParams, id, }: KeyValuePairsProps) => import("react/jsx-runtime").JSX.Element;
3757
+ export const KeyValuePairs: ({ value, className, label, keyLabel, valueLabel, helperText, placeholder: placeholderParams, isDisabled, disabledPairs, onChange, hasWarning, emptyCheck, warningMessage: warningMessageParams, buttonText: buttonTextParams, maxItemsTooltipText: maxItemsTooltipTextParams, emptyItemErrorText: emptyItemErrorTextParams, deleteKeyValueText: deleteKeyValueTextParams, buildDuplicateItemErrorText: buildDuplicateItemErrorTextParams, testId, infoIconProps, onError, maxSize, addButtonAccentType, keyInputAriaLabel: keyInputAriaLabelParams, valueInputAriaLabel: valueInputAriaLabelParams, id, }: KeyValuePairsProps) => import("react/jsx-runtime").JSX.Element;
3747
3758
  export {};
3748
3759
 
3749
3760
  import './label-accent.less';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/design-system",
3
- "version": "29.4.1",
3
+ "version": "29.6.0",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",