@worldresources/wri-design-systems 2.192.0 → 2.193.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/index.cjs.js +320 -290
- package/dist/index.d.ts +5 -1
- package/dist/index.esm.js +324 -294
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -660,9 +660,13 @@ type MenuProps = {
|
|
|
660
660
|
}[];
|
|
661
661
|
onSelect?: (value: string) => void;
|
|
662
662
|
customTrigger?: React.ReactNode;
|
|
663
|
+
/** When set, enables checkable items. 'multiple' allows many items checked at once; 'radio' allows only one. Omit (default) for a non-selectable menu. */
|
|
664
|
+
selectionMode?: 'multiple' | 'radio';
|
|
665
|
+
/** Values that are checked by default on first render. */
|
|
666
|
+
defaultSelectedValues?: string[];
|
|
663
667
|
};
|
|
664
668
|
|
|
665
|
-
declare const Menu: ({ theme, label, fontSize, items, groups, onSelect, customTrigger, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
669
|
+
declare const Menu: ({ theme, label, fontSize, items, groups, onSelect, customTrigger, selectionMode, defaultSelectedValues, }: MenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
666
670
|
|
|
667
671
|
type MultiActionButtonProps = Omit<ButtonProps$1, 'size' | 'variant' | 'colorPalette' | 'children'> & {
|
|
668
672
|
variant?: 'primary' | 'secondary';
|