@datarobot/design-system 30.6.4 → 30.8.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.
Files changed (64) hide show
  1. package/cjs/button/button.d.ts +21 -21
  2. package/cjs/chat/chat-message-body.js +9 -7
  3. package/cjs/chat/utils.js +5 -1
  4. package/cjs/datetime-picker/datetime-picker.d.ts +2 -2
  5. package/cjs/datetime-range-picker/helpers.d.ts +12 -12
  6. package/cjs/dropdown-menu/dropdown-menu-content.d.ts +1 -1
  7. package/cjs/dropdown-menu/utils.d.ts +30 -31
  8. package/cjs/file-uploader/file-uploader-hook.d.ts +1 -1
  9. package/cjs/floating-panel/constants.d.ts +0 -1
  10. package/cjs/font-awesome-icon/font-awesome-icon.d.ts +0 -1
  11. package/cjs/form-field/utilities.d.ts +1 -1
  12. package/cjs/full-screen-drawer/useFullScreenDrawer.d.ts +0 -1
  13. package/cjs/hooks/use-analytics/use-analytics.d.ts +13 -13
  14. package/cjs/hooks/use-focus-trap/use-focus-trap.d.ts +0 -1
  15. package/cjs/hooks/use-non-native-button-attrs/use-non-native-button-attrs.d.ts +2 -2
  16. package/cjs/hooks/use-ordering/use-ordering.d.ts +0 -1
  17. package/cjs/hooks/use-paginated-search/use-paginated-search.d.ts +2 -2
  18. package/cjs/hooks/use-translation/use-translation.d.ts +20 -19
  19. package/cjs/input/input.d.ts +54 -54
  20. package/cjs/range-slider/context.d.ts +0 -1
  21. package/cjs/table/hooks/use-checkbox-cells-state/use-checkbox-cells-state.d.ts +0 -1
  22. package/cjs/table-react/hooks/useTableReact.d.ts +3 -3
  23. package/cjs/table-react/utils/getHeaderColumnsActions.d.ts +1 -1
  24. package/cjs/text-editor/edited-text.js +12 -4
  25. package/cjs/text-editor/text-editor.js +8 -1
  26. package/cjs/textarea/textarea.d.ts +2 -2
  27. package/cjs/time-from-now/time-from-now.d.ts +1 -1
  28. package/cjs/tour/advanced-tour/hooks.d.ts +0 -1
  29. package/cjs/tour/hooks.d.ts +0 -1
  30. package/cjs/typeahead/use-visible-options.d.ts +3 -3
  31. package/esm/button/button.d.ts +21 -21
  32. package/esm/chat/chat-message-body.js +9 -7
  33. package/esm/chat/utils.js +4 -1
  34. package/esm/datetime-picker/datetime-picker.d.ts +2 -2
  35. package/esm/datetime-range-picker/helpers.d.ts +12 -12
  36. package/esm/dropdown-menu/dropdown-menu-content.d.ts +1 -1
  37. package/esm/dropdown-menu/utils.d.ts +30 -31
  38. package/esm/file-uploader/file-uploader-hook.d.ts +1 -1
  39. package/esm/floating-panel/constants.d.ts +0 -1
  40. package/esm/font-awesome-icon/font-awesome-icon.d.ts +0 -1
  41. package/esm/form-field/utilities.d.ts +1 -1
  42. package/esm/full-screen-drawer/useFullScreenDrawer.d.ts +0 -1
  43. package/esm/hooks/use-analytics/use-analytics.d.ts +13 -13
  44. package/esm/hooks/use-focus-trap/use-focus-trap.d.ts +0 -1
  45. package/esm/hooks/use-non-native-button-attrs/use-non-native-button-attrs.d.ts +2 -2
  46. package/esm/hooks/use-ordering/use-ordering.d.ts +0 -1
  47. package/esm/hooks/use-paginated-search/use-paginated-search.d.ts +2 -2
  48. package/esm/hooks/use-translation/use-translation.d.ts +20 -19
  49. package/esm/input/input.d.ts +54 -54
  50. package/esm/range-slider/context.d.ts +0 -1
  51. package/esm/table/hooks/use-checkbox-cells-state/use-checkbox-cells-state.d.ts +0 -1
  52. package/esm/table-react/hooks/useTableReact.d.ts +3 -3
  53. package/esm/table-react/utils/getHeaderColumnsActions.d.ts +1 -1
  54. package/esm/text-editor/edited-text.js +12 -4
  55. package/esm/text-editor/text-editor.js +8 -1
  56. package/esm/textarea/textarea.d.ts +2 -2
  57. package/esm/time-from-now/time-from-now.d.ts +1 -1
  58. package/esm/tour/advanced-tour/hooks.d.ts +0 -1
  59. package/esm/tour/hooks.d.ts +0 -1
  60. package/esm/typeahead/use-visible-options.d.ts +3 -3
  61. package/js/bundle/bundle.js +89 -18
  62. package/js/bundle/bundle.min.js +1 -1
  63. package/js/bundle/index.d.ts +135 -134
  64. package/package.json +55 -55
@@ -33,7 +33,7 @@ import { ReactNode, MouseEvent } from 'react';
33
33
  import type { Moment, MomentInput } from 'moment';
34
34
  import { ViewMode } from 'react-datetime';
35
35
  import React, { ComponentType, FocusEvent, FocusEventHandler, HTMLProps } from 'react';
36
- import Datetime, { ViewMode, TimeConstraints } from 'react-datetime';
36
+ import { ViewMode, TimeConstraints } from 'react-datetime';
37
37
  import { Moment, MomentInput } from 'moment';
38
38
  import { Moment } from 'moment';
39
39
  import React, { RefObject } from 'react';
@@ -625,49 +625,49 @@ export type ButtonProps = {
625
625
  */
626
626
  const Button: React.ForwardRefExoticComponent<{
627
627
  /** Specifies an event handler. */
628
- onClick?: ((event: MouseEvent<HTMLButtonElement>) => void) | undefined;
628
+ onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
629
629
  /** Specifies content of the button. */
630
630
  children?: React.ReactNode;
631
631
  /** Specifies the look of the button. */
632
- accentType?: AccentType | undefined;
632
+ accentType?: AccentType;
633
633
  /** Specifies that a button should automatically get focus when the page loads. */
634
- autofocus?: boolean | undefined;
634
+ autofocus?: boolean;
635
635
  /** Specifies an additional css class. */
636
- className?: string | undefined;
636
+ className?: string;
637
637
  /** Specifies that a button should be disabled. */
638
- isDisabled?: boolean | undefined;
638
+ isDisabled?: boolean;
639
639
  /** Specifies the form element the button belongs to. Should be used for buttons located outside a form. Applicable to buttons of submit type. */
640
- formId?: string | undefined;
640
+ formId?: string;
641
641
  /** Shows loading icon. */
642
- isLoading?: boolean | undefined;
642
+ isLoading?: boolean;
643
643
  /** Specifies loading text. */
644
- loadingText?: string | undefined;
644
+ loadingText?: string;
645
645
  /** Specifies the button size. Note: applicable to round button only. */
646
- size?: ButtonSize | undefined;
646
+ size?: ButtonSize;
647
647
  /** Specifies the type of button. */
648
- type?: ButtonType | undefined;
648
+ type?: ButtonType;
649
649
  /** Specifies button width to 100% */
650
- fullWidth?: boolean | undefined;
650
+ fullWidth?: boolean;
651
651
  /** Specifies button tooltip text. If text is equal to false or empty string tooltip won't be applied */
652
652
  tooltipText?: React.ReactNode;
653
653
  /** Specifies the tooltip placement of the button. */
654
- tooltipPlacement?: TooltipPlacementsType | undefined;
654
+ tooltipPlacement?: TooltipPlacementsType;
655
655
  /** Set docs link for the tooltip */
656
656
  tooltipDocsLink?: React.ReactNode;
657
657
  /** Font Awesome icon for field with left side icon */
658
- leftIcon?: IconLookup | null | undefined;
658
+ leftIcon?: IconLookup | null;
659
659
  /** Font Awesome icon for field with right side icon */
660
- rightIcon?: IconLookup | null | undefined;
660
+ rightIcon?: IconLookup | null;
661
661
  /** Used for tests */
662
- testId?: string | undefined;
663
- leftIconTestId?: string | undefined;
664
- rightIconTestId?: string | undefined;
662
+ testId?: string;
663
+ leftIconTestId?: string;
664
+ rightIconTestId?: string;
665
665
  /** Used for onboarding tours */
666
- tourId?: string | undefined;
666
+ tourId?: string;
667
667
  /** Use ariaLabel only when there is not text and icon is the only content. aria-label will work too */
668
- ariaLabel?: string | undefined;
669
- tooltipDelayType?: TooltipDelayType | undefined;
670
- hasCustomButtonContent?: boolean | undefined;
668
+ ariaLabel?: string;
669
+ tooltipDelayType?: TooltipDelayType;
670
+ hasCustomButtonContent?: boolean;
671
671
  } & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
672
672
  export default Button;
673
673
 
@@ -1506,7 +1506,7 @@ export class DatePicker extends React.Component<DatePickerProps> {
1506
1506
  onNavigate: () => void;
1507
1507
  onNavigateBack: () => void;
1508
1508
  onNavigateForward: () => void;
1509
- initialViewMode: Datetime.ViewMode;
1509
+ initialViewMode: ViewMode;
1510
1510
  closeOnSelect: boolean;
1511
1511
  closeOnTab: boolean;
1512
1512
  timeConstraints: {};
@@ -1639,24 +1639,24 @@ function DateRangePickerPanel({ buttonText, cancelButtonText, dateFormat, defaul
1639
1639
  export default DateRangePickerPanel;
1640
1640
 
1641
1641
  export function useValidateOnClick(): ({ start, end, minStart, maxEnd, viewMode, dateTimeFormat, sameDateError, }: {
1642
- start?: moment.Moment | null | undefined;
1643
- end?: moment.Moment | null | undefined;
1642
+ start?: Moment | null;
1643
+ end?: Moment | null;
1644
1644
  viewMode: string;
1645
1645
  dateTimeFormat: string;
1646
- minStart?: moment.Moment | undefined;
1647
- maxEnd?: moment.Moment | undefined;
1648
- sameDateError?: boolean | undefined;
1646
+ minStart?: Moment;
1647
+ maxEnd?: Moment;
1648
+ sameDateError?: boolean;
1649
1649
  }) => {
1650
1650
  startErrors: {
1651
- START_BEFORE_MIN?: string | undefined;
1652
- START_AFTER_MAX?: string | undefined;
1653
- INVALID_START_DATE?: string | undefined;
1654
- START_END_SAME?: string | undefined;
1651
+ START_BEFORE_MIN?: string;
1652
+ START_AFTER_MAX?: string;
1653
+ INVALID_START_DATE?: string;
1654
+ START_END_SAME?: string;
1655
1655
  };
1656
1656
  endErrors: {
1657
- INVALID_END_DATE?: string | undefined;
1658
- END_AFTER_MIN?: string | undefined;
1659
- END_AFTER_MAX?: string | undefined;
1657
+ INVALID_END_DATE?: string;
1658
+ END_AFTER_MIN?: string;
1659
+ END_AFTER_MAX?: string;
1660
1660
  };
1661
1661
  };
1662
1662
  /** Checks whether a string can be strictly parsed as a moment object following a provided datetime format
@@ -2223,7 +2223,7 @@ export type DropdownMenuContentProps = {
2223
2223
  handleSearch: (value: string) => void;
2224
2224
  selectedKey?: string | number;
2225
2225
  selectedItem?: DropdownMenuOption;
2226
- renderCustomHeader: null | (() => void);
2226
+ renderCustomHeader: null | (() => ReactNode);
2227
2227
  contentClassName?: string;
2228
2228
  labelledBy?: string;
2229
2229
  LinkComponent: LinkComponentType;
@@ -2968,7 +2968,7 @@ type FileUploaderHookProps = {
2968
2968
  export const useFileUploader: ({ initialFiles, isMultiple, setErrorMessage, }: FileUploaderHookProps) => {
2969
2969
  addedFileStructure: any[];
2970
2970
  collectedFileStructure: FileType[];
2971
- generateFileStructure: (dataTransfer: any) => Promise<any>;
2971
+ generateFileStructure: (dataTransfer: DataTransfer | any) => Promise<any>;
2972
2972
  removeFileFromStructure: (name: string) => void;
2973
2973
  updateFileStructure: (name: string, payload: any) => void;
2974
2974
  };
@@ -3359,7 +3359,7 @@ export const INPUT_TYPES: {
3359
3359
  readonly TIME: "time";
3360
3360
  };
3361
3361
 
3362
- export function isPassword(type?: InputTypes): boolean;
3362
+ export function isPassword(type?: InputTypes): type is "password";
3363
3363
  export type GetValidityMessagesParam = {
3364
3364
  validity?: FormFieldValidity | null;
3365
3365
  validationValues: VALIDATION_VALUES;
@@ -3644,63 +3644,63 @@ export type InputProps = {
3644
3644
  * @alpine-light-supported
3645
3645
  */
3646
3646
  const Input: React.ForwardRefExoticComponent<{
3647
- value?: string | number | undefined;
3648
- id?: string | undefined;
3649
- helperText?: string | undefined;
3650
- helperTextPosition?: HELPER_TEXT_POSITION | undefined;
3651
- className?: string | undefined;
3652
- isDisabled?: boolean | undefined;
3653
- isOptional?: boolean | undefined;
3654
- isHighlighted?: boolean | undefined;
3655
- optionalLabelText?: string | undefined;
3656
- autoFocus?: boolean | undefined;
3657
- disabledInfo?: string | undefined;
3658
- touched?: boolean | undefined;
3659
- validationTestId?: string | undefined;
3660
- validity?: FormFieldValidity | null | undefined;
3661
- asyncValidation?: AsyncValidation | undefined;
3662
- leftIcon?: IconLookup | null | undefined;
3663
- rightIcon?: IconLookup | null | undefined;
3664
- iconTooltipText?: string | undefined;
3647
+ value?: string | number;
3648
+ id?: string;
3649
+ helperText?: string;
3650
+ helperTextPosition?: HELPER_TEXT_POSITION;
3651
+ className?: string;
3652
+ isDisabled?: boolean;
3653
+ isOptional?: boolean;
3654
+ isHighlighted?: boolean;
3655
+ optionalLabelText?: string;
3656
+ autoFocus?: boolean;
3657
+ disabledInfo?: string;
3658
+ touched?: boolean;
3659
+ validationTestId?: string;
3660
+ validity?: FormFieldValidity | null;
3661
+ asyncValidation?: AsyncValidation;
3662
+ leftIcon?: IconLookup | null;
3663
+ rightIcon?: IconLookup | null;
3664
+ iconTooltipText?: string;
3665
3665
  label?: React.ReactNode;
3666
- labelTestId?: string | undefined;
3667
- labelIcon?: IconLookup | null | undefined;
3668
- labelIconTestId?: string | undefined;
3669
- labelIconTooltipText?: string | undefined;
3670
- isLabelIconTooltipInteractive?: boolean | undefined;
3671
- fieldClass?: string | undefined;
3672
- placeholder?: string | undefined;
3673
- required?: boolean | undefined;
3674
- onClear?: (() => void) | undefined;
3675
- onChange?: ((event: ChangeEvent<HTMLInputElement>, params: {
3666
+ labelTestId?: string;
3667
+ labelIcon?: IconLookup | null;
3668
+ labelIconTestId?: string;
3669
+ labelIconTooltipText?: string;
3670
+ isLabelIconTooltipInteractive?: boolean;
3671
+ fieldClass?: string;
3672
+ placeholder?: string;
3673
+ required?: boolean;
3674
+ onClear?: () => void;
3675
+ onChange?: (event: ChangeEvent<HTMLInputElement>, params: {
3676
3676
  normalizedValue: string | number;
3677
- }) => void) | undefined;
3678
- onBlur?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
3679
- onFocus?: ((event: FocusEvent<HTMLInputElement>) => void) | undefined;
3680
- type?: InputTypes | undefined;
3677
+ }) => void;
3678
+ onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
3679
+ onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
3680
+ type?: InputTypes;
3681
3681
  /** if type="password", spellcheck is disabled by default */
3682
- spellCheck?: boolean | undefined;
3683
- shouldDisplayControls?: boolean | undefined;
3684
- inputSize?: InputSizes | undefined;
3685
- isHorizontalLayout?: boolean | undefined;
3686
- name?: string | undefined;
3687
- step?: string | number | undefined;
3688
- size?: number | undefined;
3689
- readOnly?: boolean | undefined;
3690
- minlength?: number | undefined;
3691
- min?: number | undefined;
3692
- maxLength?: number | undefined;
3693
- max?: number | undefined;
3694
- autoComplete?: string | undefined;
3695
- passwordToggleButtonTexts?: PasswordToggleButtonTextsProps | undefined;
3696
- validationValues?: ValidationValuesProps | undefined;
3697
- onKeyDown?: ((event: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
3698
- onPaste?: ((event: React.ClipboardEvent<HTMLInputElement>) => void) | undefined;
3699
- wrapperClass?: string | undefined;
3700
- role?: string | undefined;
3701
- fieldTestId?: string | undefined;
3702
- useFont?: boolean | undefined;
3703
- disableApplyButton?: boolean | undefined;
3682
+ spellCheck?: boolean;
3683
+ shouldDisplayControls?: boolean;
3684
+ inputSize?: InputSizes;
3685
+ isHorizontalLayout?: boolean;
3686
+ name?: string;
3687
+ step?: number | string;
3688
+ size?: number;
3689
+ readOnly?: boolean;
3690
+ minlength?: number;
3691
+ min?: number;
3692
+ maxLength?: number;
3693
+ max?: number;
3694
+ autoComplete?: string;
3695
+ passwordToggleButtonTexts?: PasswordToggleButtonTextsProps;
3696
+ validationValues?: ValidationValuesProps;
3697
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
3698
+ onPaste?: (event: React.ClipboardEvent<HTMLInputElement>) => void;
3699
+ wrapperClass?: string;
3700
+ role?: string;
3701
+ fieldTestId?: string;
3702
+ useFont?: boolean;
3703
+ disableApplyButton?: boolean;
3704
3704
  } & FormFieldProps & React.RefAttributes<HTMLInputElement>>;
3705
3705
  export default Input;
3706
3706
 
@@ -6165,7 +6165,7 @@ export function useTableReact<FiltersData>({ tableId, version, debounceSearchDel
6165
6165
  };
6166
6166
  reset: () => void;
6167
6167
  defaultState: {
6168
- defaultColumnSizing?: ColumnSizingState | undefined;
6168
+ defaultColumnSizing?: ColumnSizingState;
6169
6169
  sorting: SortingState;
6170
6170
  visible: {};
6171
6171
  pagination: PaginationState;
@@ -6174,7 +6174,7 @@ export function useTableReact<FiltersData>({ tableId, version, debounceSearchDel
6174
6174
  selected: {};
6175
6175
  expandedRows: {};
6176
6176
  columnOrder: ColumnOrderState;
6177
- touched?: Touched | undefined;
6177
+ touched?: Touched;
6178
6178
  filters?: FiltersData | undefined;
6179
6179
  columnSizing: {};
6180
6180
  } | {
@@ -6187,7 +6187,7 @@ export function useTableReact<FiltersData>({ tableId, version, debounceSearchDel
6187
6187
  selected: {};
6188
6188
  expandedRows: {};
6189
6189
  columnOrder: ColumnOrderState;
6190
- touched?: Touched | undefined;
6190
+ touched?: Touched;
6191
6191
  filters?: FiltersData | undefined;
6192
6192
  };
6193
6193
  };
@@ -6778,8 +6778,8 @@ export function TextArea(props: FormFieldProps) {
6778
6778
  * [CAPITALIZATION] Don't have mixed format in one text block, use sentence case
6779
6779
  */
6780
6780
  export const TextArea: React.ForwardRefExoticComponent<FormFieldProps & Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & {
6781
- useFont?: boolean | undefined;
6782
- allowResizing?: boolean | TextAreaResizeValues | undefined;
6781
+ useFont?: boolean;
6782
+ allowResizing?: boolean | TextAreaResizeValues;
6783
6783
  } & React.RefAttributes<HTMLTextAreaElement>>;
6784
6784
 
6785
6785
  export type TimeFromNowProps = {
@@ -6791,7 +6791,7 @@ export type TimeFromNowProps = {
6791
6791
  tooltipPlacement?: TooltipPlacementsType;
6792
6792
  tooltipDelayType?: TooltipDelayType;
6793
6793
  };
6794
- export const getLocalTime: (timestamp: number | string, standard?: 'utc') => moment.Moment;
6794
+ export const getLocalTime: (timestamp: number | string, standard?: "utc") => moment.Moment;
6795
6795
  const TimeFromNow: ({ timestamp, format, standard, hideSuffix, showTooltip, tooltipPlacement, tooltipDelayType, }: TimeFromNowProps) => import("react/jsx-runtime").JSX.Element;
6796
6796
  export default TimeFromNow;
6797
6797
 
@@ -7712,7 +7712,7 @@ export function usePaginatedSearchState(config: SearchState): {
7712
7712
  count: number;
7713
7713
  setPage: (page: number) => void;
7714
7714
  setPageSize: (size: number) => void;
7715
- setTotal?: ((val: number) => void) | undefined;
7715
+ setTotal?: (val: number) => void;
7716
7716
  };
7717
7717
  /**
7718
7718
  * @typedef PaginatedSearch
@@ -7756,7 +7756,7 @@ export function usePaginatedSearch(items?: never[], { searchFields, filterFuncti
7756
7756
  count: number;
7757
7757
  setPage: (page: number) => void;
7758
7758
  setPageSize: (size: number) => void;
7759
- setTotal?: ((val: number) => void) | undefined;
7759
+ setTotal?: (val: number) => void;
7760
7760
  };
7761
7761
 
7762
7762
  /**
@@ -7905,27 +7905,27 @@ export function useAnalytics({ analyticsProviders }?: {
7905
7905
  tabView: (name: string) => void;
7906
7906
  change: ({ element, property, value, isOptions, }: Omit<{
7907
7907
  event: string;
7908
- label?: string | null | undefined;
7909
- property?: string | null | undefined;
7910
- value?: string | null | undefined;
7911
- isOptions?: boolean | null | undefined;
7912
- }, "label" | "event"> & {
7908
+ label?: string | null;
7909
+ property?: string | null;
7910
+ value?: string | null;
7911
+ isOptions?: boolean | null;
7912
+ }, "event" | "label"> & {
7913
7913
  element: string;
7914
7914
  }) => void;
7915
7915
  reset: () => void;
7916
7916
  click: ({ label, property, value, }: Omit<{
7917
7917
  event: string;
7918
- label?: string | null | undefined;
7919
- property?: string | null | undefined;
7920
- value?: string | null | undefined;
7921
- isOptions?: boolean | null | undefined;
7918
+ label?: string | null;
7919
+ property?: string | null;
7920
+ value?: string | null;
7921
+ isOptions?: boolean | null;
7922
7922
  }, "event" | "isOptions">) => void;
7923
7923
  track: ({ event, label, property, value, isOptions, }: {
7924
7924
  event: string;
7925
- label?: string | null | undefined;
7926
- property?: string | null | undefined;
7927
- value?: string | null | undefined;
7928
- isOptions?: boolean | null | undefined;
7925
+ label?: string | null;
7926
+ property?: string | null;
7927
+ value?: string | null;
7928
+ isOptions?: boolean | null;
7929
7929
  }) => void;
7930
7930
  };
7931
7931
  /**
@@ -8066,8 +8066,8 @@ export function useNonNativeButtonAttrs({ onKeyDown, onClick, tabIndex, isDisabl
8066
8066
  tabIndex: number;
8067
8067
  role: string;
8068
8068
  'aria-disabled': boolean;
8069
- onKeyDown(e: KeyboardEvent<Element>): void;
8070
- onClick(e: MouseEvent<Element, globalThis.MouseEvent>): void;
8069
+ onKeyDown(e: KeyboardEvent): void;
8070
+ onClick(e: MouseEvent): void;
8071
8071
  };
8072
8072
  export {};
8073
8073
 
@@ -8333,54 +8333,55 @@ export function useTranslation(): {
8333
8333
  length: 3;
8334
8334
  toString(): string;
8335
8335
  toLocaleString(): string;
8336
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
8336
8337
  pop(): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | undefined;
8337
8338
  push(...items: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]): number;
8338
8339
  concat(...items: ConcatArray<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>[]): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8339
8340
  concat(...items: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | ConcatArray<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>)[]): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8340
- join(separator?: string | undefined): string;
8341
+ join(separator?: string): string;
8341
8342
  reverse(): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8342
8343
  shift(): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | undefined;
8343
- slice(start?: number | undefined, end?: number | undefined): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8344
+ slice(start?: number, end?: number): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8344
8345
  sort(compareFn?: ((a: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, b: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>) => number) | undefined): import("react-i18next").UseTranslationResponse<string, undefined>;
8345
- splice(start: number, deleteCount?: number | undefined): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8346
+ splice(start: number, deleteCount?: number): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8346
8347
  splice(start: number, deleteCount: number, ...items: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8347
8348
  unshift(...items: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]): number;
8348
- indexOf(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number | undefined): number;
8349
- lastIndexOf(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number | undefined): number;
8349
+ indexOf(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number): number;
8350
+ lastIndexOf(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number): number;
8350
8351
  every<S extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S, thisArg?: any): this is S[];
8351
8352
  every(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): boolean;
8352
8353
  some(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): boolean;
8353
8354
  forEach(callbackfn: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => void, thisArg?: any): void;
8354
8355
  map<U>(callbackfn: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U, thisArg?: any): U[];
8355
- filter<S_1 extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S_1, thisArg?: any): S_1[];
8356
+ filter<S extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S, thisArg?: any): S[];
8356
8357
  filter(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8357
8358
  reduce(callbackfn: (previousValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>;
8358
8359
  reduce(callbackfn: (previousValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, initialValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>;
8359
- reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U_1, initialValue: U_1): U_1;
8360
+ reduce<U>(callbackfn: (previousValue: U, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U, initialValue: U): U;
8360
8361
  reduceRight(callbackfn: (previousValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>;
8361
8362
  reduceRight(callbackfn: (previousValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, initialValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>;
8362
- reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U_2, initialValue: U_2): U_2;
8363
- find<S_2 extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, obj: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S_2, thisArg?: any): S_2 | undefined;
8363
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, currentIndex: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U, initialValue: U): U;
8364
+ find<S extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, obj: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S, thisArg?: any): S | undefined;
8364
8365
  find(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, obj: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | undefined;
8365
8366
  findIndex(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, obj: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): number;
8366
- fill(value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, start?: number | undefined, end?: number | undefined): import("react-i18next").UseTranslationResponse<string, undefined>;
8367
- copyWithin(target: number, start: number, end?: number | undefined): import("react-i18next").UseTranslationResponse<string, undefined>;
8368
- entries(): IterableIterator<[number, boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>]>;
8369
- keys(): IterableIterator<number>;
8370
- values(): IterableIterator<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>;
8371
- includes(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number | undefined): boolean;
8372
- flatMap<U_3, This = undefined>(callback: (this: This, value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
8367
+ fill(value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, start?: number, end?: number): import("react-i18next").UseTranslationResponse<string, undefined>;
8368
+ copyWithin(target: number, start: number, end?: number): import("react-i18next").UseTranslationResponse<string, undefined>;
8369
+ entries(): ArrayIterator<[number, boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>]>;
8370
+ keys(): ArrayIterator<number>;
8371
+ values(): ArrayIterator<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>;
8372
+ includes(searchElement: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, fromIndex?: number): boolean;
8373
+ flatMap<U, This = undefined>(callback: (this: This, value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => U | readonly U[], thisArg?: This | undefined): U[];
8373
8374
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
8374
8375
  at(index: number): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | undefined;
8375
- findLast<S_3 extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S_3, thisArg?: any): S_3 | undefined;
8376
+ findLast<S extends boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => value is S, thisArg?: any): S | undefined;
8376
8377
  findLast(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined> | undefined;
8377
8378
  findLastIndex(predicate: (value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, index: number, array: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]) => unknown, thisArg?: any): number;
8378
8379
  toReversed(): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8379
8380
  toSorted(compareFn?: ((a: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>, b: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>) => number) | undefined): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8380
8381
  toSpliced(start: number, deleteCount: number, ...items: (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[]): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8381
- toSpliced(start: number, deleteCount?: number | undefined): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8382
+ toSpliced(start: number, deleteCount?: number): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8382
8383
  with(index: number, value: boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>): (boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>)[];
8383
- [Symbol.iterator](): IterableIterator<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>;
8384
+ [Symbol.iterator](): ArrayIterator<boolean | import("i18next").i18n | import("i18next").TFunction<string, undefined>>;
8384
8385
  [Symbol.unscopables]: {
8385
8386
  [x: number]: boolean | undefined;
8386
8387
  length?: boolean | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarobot/design-system",
3
- "version": "30.6.4",
3
+ "version": "30.8.0",
4
4
  "description": "DataRobot react components library",
5
5
  "scripts": {
6
6
  "build": "node ../../tools/build-lib.js",
@@ -32,69 +32,69 @@
32
32
  },
33
33
  "homepage": "https://www.datarobot.com",
34
34
  "overrides": {
35
- "minimist": "1.2.8"
35
+ "minimist": "^1.2.8"
36
36
  },
37
37
  "dependencies": {
38
- "@popperjs/core": "2.11.8",
39
- "@tanstack/react-table": "8.21.2",
40
- "classnames": "2.5.1",
41
- "lodash-es": "4.18.1",
42
- "mitt": "3.0.0",
43
- "react-datetime": "3.3.1",
44
- "react-dnd": "16.0.1",
45
- "react-dnd-html5-backend": "16.0.1",
46
- "react-modal": "3.16.1",
47
- "react-transition-group": "4.4.2",
48
- "react-with-styles": "4.1.0",
49
- "resize-observer-polyfill": "1.5.1",
50
- "rheostat": "4.1.1"
38
+ "@popperjs/core": "^2.11.8",
39
+ "@tanstack/react-table": "^8.21.2",
40
+ "classnames": "^2.5.1",
41
+ "lodash-es": "^4.18.1",
42
+ "mitt": "^3.0.0",
43
+ "react-datetime": "^3.3.1",
44
+ "react-dnd": "^16.0.1",
45
+ "react-dnd-html5-backend": "^16.0.1",
46
+ "react-modal": "^3.16.1",
47
+ "react-transition-group": "^4.4.2",
48
+ "react-with-styles": "^4.1.0",
49
+ "resize-observer-polyfill": "^1.5.1",
50
+ "rheostat": "^4.1.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@codemirror/merge": "6.11.2",
53
+ "@codemirror/merge": "^6.11.2",
54
54
  "@codemirror/state": "^6.0.0",
55
55
  "@codemirror/view": "^6.17.0",
56
- "@fortawesome/fontawesome-svg-core": "7.2.0",
57
- "@fortawesome/free-brands-svg-icons": "7.2.0",
58
- "@fortawesome/free-regular-svg-icons": "7.2.0",
59
- "@fortawesome/free-solid-svg-icons": "7.2.0",
60
- "@fortawesome/react-fontawesome": "3.3.1",
61
- "@tanstack/react-virtual": "3.13.6",
62
- "codemirror": "5.65.19",
63
- "moment": "2.30.1",
56
+ "@fortawesome/fontawesome-svg-core": "^7.2.0",
57
+ "@fortawesome/free-brands-svg-icons": "^7.2.0",
58
+ "@fortawesome/free-regular-svg-icons": "^7.2.0",
59
+ "@fortawesome/free-solid-svg-icons": "^7.2.0",
60
+ "@fortawesome/react-fontawesome": "^3.3.1",
61
+ "@tanstack/react-virtual": "^3.13.6",
62
+ "codemirror": "^5.65.19",
63
+ "moment": "^2.30.1",
64
64
  "react": ">=18.0.0",
65
65
  "react-dom": ">=18.0.0",
66
- "rehype-highlight": "7.0.0",
67
- "rehype-katex": "7.0.0",
68
- "rehype-sanitize": "6.0.0",
69
- "rehype-stringify": "10.0.0",
70
- "remark-gfm": "4.0.0",
71
- "remark-math": "6.0.0",
72
- "remark-parse": "11.0.0",
73
- "remark-rehype": "11.0.0",
74
- "slate": "0.112.0",
75
- "slate-dom": "0.112.2",
76
- "slate-history": "0.110.3",
77
- "slate-react": "0.112.1",
78
- "unified": "11.0.3"
66
+ "rehype-highlight": "^7.0.0",
67
+ "rehype-katex": "^7.0.0",
68
+ "rehype-sanitize": "^6.0.0",
69
+ "rehype-stringify": "^10.0.0",
70
+ "remark-gfm": "^4.0.0",
71
+ "remark-math": "^6.0.0",
72
+ "remark-parse": "^11.0.0",
73
+ "remark-rehype": "^11.0.0",
74
+ "slate": "^0.124.1",
75
+ "slate-dom": "^0.124.1",
76
+ "slate-history": "^0.113.1",
77
+ "slate-react": "^0.124.2",
78
+ "unified": "^11.0.3"
79
79
  },
80
80
  "devDependencies": {
81
- "@babel/cli": "7.26.4",
82
- "@types/codemirror": "5.60.15",
83
- "@types/lodash-es": "4.17.12",
84
- "@types/react": "18.2.79",
85
- "@types/react-dom": "18.2.25",
86
- "@types/react-modal": "3.13.1",
87
- "@types/react-with-styles": "4.0.7",
88
- "@types/rheostat": "3.0.2",
89
- "babel-jest": "30.0.2",
90
- "dts-bundle": "0.7.3",
91
- "i18next-cli": "1.42.9",
92
- "jest": "30.0.2",
93
- "jest-environment-jsdom": "30.0.2",
94
- "postcss": "8.4.33",
95
- "postcss-loader": "8.1.1",
96
- "postcss-pxtorem": "6.1.0",
97
- "react-dnd-test-backend": "16.0.1",
98
- "typescript": "5.4.3"
81
+ "@babel/cli": "^7.26.4",
82
+ "@types/codemirror": "^5.60.15",
83
+ "@types/lodash-es": "^4.17.12",
84
+ "@types/react": "^18.2.79",
85
+ "@types/react-dom": "^18.2.25",
86
+ "@types/react-modal": "^3.13.1",
87
+ "@types/react-with-styles": "^4.0.7",
88
+ "@types/rheostat": "^3.0.2",
89
+ "babel-jest": "^30.0.2",
90
+ "dts-bundle": "^0.7.3",
91
+ "i18next-cli": "^1.42.9",
92
+ "jest": "^30.0.2",
93
+ "jest-environment-jsdom": "^30.0.2",
94
+ "postcss": "^8.4.33",
95
+ "postcss-loader": "^8.1.1",
96
+ "postcss-pxtorem": "^6.1.0",
97
+ "react-dnd-test-backend": "^16.0.1",
98
+ "typescript": "^5.4.3"
99
99
  }
100
100
  }