@nimbus-ds/patterns 1.23.4-rc.1 → 1.24.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.d.ts CHANGED
@@ -540,9 +540,13 @@ export interface MenuButtonAccordionProperties {
540
540
  * If provided, it overrides the context.
541
541
  */
542
542
  expanded?: boolean;
543
+ /**
544
+ * Text to be displayed in the tooltip when the button is collapsed. If not provided, the label will be used.
545
+ */
546
+ tooltipText?: string;
543
547
  }
544
548
  export type MenuButtonAccordionBaseProps = MenuButtonAccordionProperties & {
545
- menuButton: MenuButtonProps;
549
+ menuButton: Omit<MenuButtonProps, "expanded" | "tooltipText">;
546
550
  } & Omit<HTMLAttributes<HTMLElement>, "color">;
547
551
  declare const MenuButtonAccordion: PolymorphicForwardRefComponent<"a" | "button", MenuButtonAccordionBaseProps>;
548
552
  export interface MenuButtonComponents {
@@ -579,6 +583,10 @@ export interface MenuButtonProperties {
579
583
  * If not provided, the expanded state will be determined by the context.
580
584
  */
581
585
  expanded?: boolean;
586
+ /**
587
+ * Text to be displayed in the tooltip when the button is collapsed. If not provided, the label will be used.
588
+ */
589
+ tooltipText?: string;
582
590
  }
583
591
  export type MenuButtonBaseProps = MenuButtonProperties & Omit<ButtonHTMLAttributes<HTMLButtonElement>, "color">;
584
592
  export declare const MenuButton: PolymorphicForwardRefComponent<"a" | "button", MenuButtonBaseProps> & MenuButtonComponents;
@@ -637,6 +645,14 @@ export interface MenuProperties {
637
645
  * If provided, it overrides the context.
638
646
  */
639
647
  expanded?: boolean;
648
+ /**
649
+ * Whether to show tooltips for buttons when the menu is collapsed. Defaults to true.
650
+ */
651
+ showTooltipsWhenCollapsed?: boolean;
652
+ /**
653
+ * Position of the tooltips for buttons when the menu is collapsed. Defaults to "right".
654
+ */
655
+ tooltipsPosition?: "top" | "bottom" | "left" | "right";
640
656
  }
641
657
  export type MenuProps = MenuProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
642
658
  export declare const Menu: React.FC<MenuProps> & MenuComponents;
@@ -1396,6 +1412,10 @@ export declare const ChatInput: React.FC<ChatInputProps> & ChatInputComponents;
1396
1412
  export interface MenuExpandContextValue {
1397
1413
  /** True when the menu is expanded; false when collapsed. */
1398
1414
  expanded: boolean;
1415
+ /** Whether to show tooltips for buttons when the menu is collapsed. Defaults to true. */
1416
+ showTooltipsWhenCollapsed?: boolean;
1417
+ /** Position of the tooltips for buttons when the menu is collapsed. Defaults to "right". */
1418
+ tooltipsPosition?: "top" | "bottom" | "left" | "right";
1399
1419
  }
1400
1420
  export declare const MenuExpandContext: import("react").Context<MenuExpandContextValue | undefined>;
1401
1421
  /**