@nimbus-ds/patterns 1.25.0-rc.3 → 1.25.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/CHANGELOG.md +7 -0
- package/dist/CHANGELOG.md +7 -0
- package/dist/Menu/index.d.ts +7 -10
- package/dist/Menu/index.js +1 -1
- package/dist/MenuButton/index.d.ts +18 -6
- package/dist/MenuButton/index.js +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +11 -15
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { DndContextProps, DragEndEvent, DragOverEvent, DragOverlayProps, DragStartEvent, DraggableAttributes, PointerSensorOptions, UniqueIdentifier } from '@dnd-kit/core';
|
|
4
4
|
import { SyntheticListenerMap } from '@dnd-kit/core/dist/hooks/utilities';
|
|
5
|
-
import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProperties, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
|
|
5
|
+
import { BoxBaseProps, BoxProperties, BoxProps, ButtonProperties, ButtonProps, CheckboxProperties, CheckboxProps, IconButtonProperties, IconButtonProps, InputProperties, InputProps, PaginationProperties, PaginationProps, PopoverPlacement, PopoverProperties, RadioProps, SelectProperties, SelectProps, SidebarProperties, TableCellProps, TableProperties, TableRowProperties, TextareaProperties, TextareaProps, ThumbnailProperties, ThumbnailProps, ToggleProperties, ToggleProps } from '@nimbus-ds/components';
|
|
6
6
|
import { IconProps } from '@nimbus-ds/icons';
|
|
7
7
|
import { PolymorphicForwardRefComponent } from '@nimbus-ds/typings';
|
|
8
8
|
import React from 'react';
|
|
@@ -580,13 +580,9 @@ export interface MenuButtonProperties {
|
|
|
580
580
|
*/
|
|
581
581
|
expanded?: boolean;
|
|
582
582
|
/**
|
|
583
|
-
*
|
|
583
|
+
* Whether to show popovers when the button is collapsed. Defaults to true.
|
|
584
584
|
*/
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Whether to show tooltips when the button is collapsed. Defaults to true.
|
|
588
|
-
*/
|
|
589
|
-
showTooltipsWhenCollapsed?: boolean;
|
|
585
|
+
showPopoversWhenCollapsed?: boolean;
|
|
590
586
|
}
|
|
591
587
|
export type MenuButtonBaseProps = MenuButtonProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">;
|
|
592
588
|
export declare const MenuButton: PolymorphicForwardRefComponent<"a" | "button", MenuButtonBaseProps> & MenuButtonComponents;
|
|
@@ -646,13 +642,13 @@ export interface MenuProperties {
|
|
|
646
642
|
*/
|
|
647
643
|
expanded?: boolean;
|
|
648
644
|
/**
|
|
649
|
-
* Whether to show
|
|
645
|
+
* Whether to show popover for buttons when the menu is collapsed. Defaults to true.
|
|
650
646
|
*/
|
|
651
|
-
|
|
647
|
+
showPopoversWhenCollapsed?: boolean;
|
|
652
648
|
/**
|
|
653
|
-
* Position of the
|
|
649
|
+
* Position of the popovers for buttons when the menu is collapsed. Defaults to "right".
|
|
654
650
|
*/
|
|
655
|
-
|
|
651
|
+
popoverPosition?: PopoverPlacement;
|
|
656
652
|
}
|
|
657
653
|
export type MenuProps = MenuProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
658
654
|
export declare const Menu: React.FC<MenuProps> & MenuComponents;
|
|
@@ -1412,10 +1408,10 @@ export declare const ChatInput: React.FC<ChatInputProps> & ChatInputComponents;
|
|
|
1412
1408
|
export interface MenuExpandContextValue {
|
|
1413
1409
|
/** True when the menu is expanded; false when collapsed. */
|
|
1414
1410
|
expanded: boolean;
|
|
1415
|
-
/** Whether to show
|
|
1416
|
-
|
|
1417
|
-
/** Position of the
|
|
1418
|
-
|
|
1411
|
+
/** Whether to show popovers for buttons when the menu is collapsed. Defaults to true. */
|
|
1412
|
+
showPopoversWhenCollapsed?: boolean;
|
|
1413
|
+
/** Position of the popovers for buttons when the menu is collapsed. Defaults to "right". */
|
|
1414
|
+
popoverPosition?: PopoverPlacement;
|
|
1419
1415
|
/** ID of the currently active accordion popover. Used to ensure only one popover is open at a time. */
|
|
1420
1416
|
activeAccordionPopover: string | null;
|
|
1421
1417
|
/** Function to set the active accordion popover ID. */
|