@getsoren/design-system 4.40.1 → 4.42.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.
@@ -1,4 +1,4 @@
1
- import { ChipTypeMap, AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
1
+ import { ChipTypeMap, AutocompleteProps as MuiAutocompleteProps, TooltipProps } from '@mui/material';
2
2
  import { AutocompleteChangeDetails, AutocompleteChangeReason } from '@mui/material/useAutocomplete';
3
3
  import { ElementType, ReactNode, SyntheticEvent } from 'react';
4
4
  export type AutocompleteFilterOption<T = unknown> = {
@@ -68,6 +68,17 @@ export interface AutocompleteFilterProps<Multiple extends boolean | undefined, D
68
68
  selectAll?: string;
69
69
  reset?: string;
70
70
  };
71
+ /**
72
+ * When provided, wraps the field in a Tooltip with this content.
73
+ * Useful to explain a disabled state without wrapping the component at every call site.
74
+ * @default undefined
75
+ */
76
+ tooltip?: ReactNode;
77
+ /**
78
+ * Extra props forwarded to the Tooltip (e.g. placement). Ignored when `tooltip` is not set.
79
+ * @default undefined
80
+ */
81
+ tooltipProps?: Omit<TooltipProps, "title" | "children">;
71
82
  }
72
83
  declare const _default: import('react').ForwardRefExoticComponent<Omit<AutocompleteFilterProps<boolean | undefined, boolean | undefined, false, ElementType, unknown> & {
73
84
  inputValue?: string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@getsoren/design-system",
3
3
  "description": "Design System React library",
4
4
  "sideEffects": false,
5
- "version": "4.40.1",
5
+ "version": "4.42.0",
6
6
  "license": "ISC",
7
7
  "type": "module",
8
8
  "types": "./dist/src/main.d.ts",