react-magma-dom 4.14.0-next.3 → 4.14.0-next.4

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.
@@ -12,10 +12,12 @@ export declare enum ButtonGroupOrientation {
12
12
  horizontal = "horizontal",
13
13
  vertical = "vertical"
14
14
  }
15
- /**
16
- * @children required
17
- */
18
- export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
15
+ declare type ButtonGroupElement = HTMLDivElement | HTMLUListElement;
16
+ export interface ButtonGroupProps extends React.HTMLAttributes<ButtonGroupElement> {
17
+ /**
18
+ * @children required
19
+ */
20
+ children: React.ReactNode;
19
21
  /**
20
22
  * Alignment of the dropdown content
21
23
  * @default ButtonGroupAlignment.left
@@ -60,6 +62,11 @@ export interface ButtonGroupProps extends React.HTMLAttributes<HTMLDivElement> {
60
62
  * @internal
61
63
  */
62
64
  theme?: ThemeInterface;
65
+ /**
66
+ * Renders ButtonGroup as a `<ul>` with children wrapped in `<li>`.
67
+ * @default false
68
+ */
69
+ isList?: boolean;
63
70
  }
64
71
  export interface ButtonGroupContextInterface {
65
72
  variant?: ButtonVariant;
@@ -69,4 +76,5 @@ export interface ButtonGroupContextInterface {
69
76
  isInverse?: boolean;
70
77
  }
71
78
  export declare const ButtonGroupContext: React.Context<ButtonGroupContextInterface>;
72
- export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
79
+ export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<ButtonGroupElement>>;
80
+ export {};