@lax-wp/design-system 0.4.5 → 0.4.7

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.
@@ -17,6 +17,10 @@ export interface IButtonProps {
17
17
  options?: ItemType[];
18
18
  tooltip?: string;
19
19
  tooltipPlacement?: 'top' | 'bottom' | 'left' | 'right';
20
+ /** Array of keyboard shortcut keys to display inline in the button (e.g., ['Meta', 'S'] or ['Ctrl', 'Enter']) */
21
+ shortcuts?: string[];
22
+ /** Array of keyboard shortcut keys to display in the tooltip (e.g., ['Meta', 'S']). Falls back to shortcuts if not provided. */
23
+ tooltipShortcuts?: string[];
20
24
  theme?: 'light' | 'dark';
21
25
  }
22
26
  export type IButtonStatus = 'secondary-neutral' | 'primary' | 'secondary' | 'error' | 'warning' | 'success' | 'error-secondary' | 'cancel' | 'no-background' | 'publish' | 'default';
@@ -43,6 +43,8 @@ export interface OptionButtonProps {
43
43
  tooltip?: string;
44
44
  /** Whether the flow is available (controls button enabled state) */
45
45
  isFlowAvailable?: boolean;
46
+ /** Array of keyboard shortcut keys to display inline in the button (e.g., ['Meta', 'S'] or ['Ctrl', 'Enter']) */
47
+ shortcuts?: string[];
46
48
  }
47
49
  /**
48
50
  * OptionButton component provides a flexible button for lists, menus, and option selections.