@getsoren/design-system 4.50.0 → 4.51.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.
- package/dist/main.cjs +42 -42
- package/dist/main.js +3125 -3122
- package/dist/src/components/Inputs/ChipFilter/ChipFilter.d.ts +16 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChipProps } from '@mui/material';
|
|
1
|
+
import { ChipProps, MenuProps } from '@mui/material';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
export type OptionValue = string | number;
|
|
4
4
|
type Option<T = OptionValue> = {
|
|
@@ -51,6 +51,21 @@ interface ChipFilterBaseProps<T = OptionValue> {
|
|
|
51
51
|
* When false (default), changes require clicking "Apply" to be applied.
|
|
52
52
|
*/
|
|
53
53
|
applyOnSelect?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Hides the menu header row (the labelMenu title and its close button).
|
|
56
|
+
* Useful when the chip itself is the only expected way to toggle the menu.
|
|
57
|
+
*/
|
|
58
|
+
hideMenuHeader?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Compact menu rendering: dense menu items and smaller option labels,
|
|
61
|
+
* for tight containers (e.g. a menu nested inside a popover).
|
|
62
|
+
*/
|
|
63
|
+
denseMenu?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Props forwarded to the underlying MUI Menu (e.g. elevation, sx, slotProps).
|
|
66
|
+
* Passing slotProps replaces the default paper minWidth.
|
|
67
|
+
*/
|
|
68
|
+
menuProps?: Partial<Omit<MenuProps, "open" | "anchorEl" | "onClose">>;
|
|
54
69
|
}
|
|
55
70
|
export interface ChipFilterToggleProps extends ChipFilterBaseProps<boolean> {
|
|
56
71
|
/**
|